regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string.
[bpt/emacs.git] / src / ChangeLog
1 2010-01-27 Kenichi Handa <handa@m17n.org>
2
3 * regex.c (analyse_first): Fix setting of fastmap for unibyte
4 pattern string.
5
6 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
7
8 * xfns.c (Fx_create_frame): If frame height is too big, try
9 sizes 24 and 10. Bug #3643.
10
11 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 Try and fix bug#788, hopefully for real this time.
14 * keymap.c (shadow_lookup): Add `remap' arg.
15 (describe_map, describe_vector): Update calls to shadow_lookup.
16 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
17 `remapped' so this flag is applicable to `sequence'. Be careful to
18 perform remapping during shadow_lookup check of remapped_sequences.
19
20 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
21
22 * image.c (png_load): Use png_sig_cmp instead of the obsolete
23 png_check_sig, which has been removed in libpng 1.4.
24
25 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
26
27 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
28 lacks this header file).
29
30 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31
32 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
33 as in Emacs 22.
34
35 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
36
37 * lisp.h (make_pure_string): String pointer arg now points to const.
38
39 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
40 args now point to const.
41
42 2010-01-22 Eli Zaretskii <eliz@gnu.org>
43
44 * lread.c (Fload): Don't treat files without .elc extension as
45 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
46 them. (bug#5303)
47
48 2010-01-20 Kenichi Handa <handa@m17n.org>
49
50 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
51 treat the source as actual byte sequence.
52
53 2010-01-19 Alan Mackenzie <acm@muc.de>
54
55 Fix spurious before-change-functions invocation from (insert ?\n).
56 * textprop.c (set_text_properties): rename parameter
57 `signal_after_change_p' to `coherent_change_p', and make the
58 invocation of `modify_region' conditional on it.
59
60 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
61
62 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
63 for debug purpose.
64 (syms_of_xsettings): Declare xft-settings.
65
66 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
67
68 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
69
70 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
71
72 * xterm.c (event_handler_gdk): Block input (Bug#5037).
73
74 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
75
76 * emacs.c (standard_args): Adjust arg priorities to reflect how
77 they are processed in startup.el.
78
79 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
80
81 * Makefile.in (lisp, shortlisp): Update.
82
83 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
84
85 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
86 code, link the new kboard into all_kboard before running Lisp code,
87 and protect the new terminal with GCPRO (Bug#5365).
88 (x_term_init): Remove unused var `atom'.
89 (x_delete_display, x_delete_terminal): Remove unused var `i'.
90
91 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
92
93 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
94 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
95 to find out usable size of the desktop. Don't make frames larger than
96 this. Bug #3643.
97
98 2010-01-15 Kenichi Handa <handa@m17n.org>
99
100 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
101
102 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
103
104 * nsterm.m (Qnone): Define.
105
106 * nsfns.m (Qnone): Move definition to nsterm.m.
107
108 2010-01-14 Kenichi Handa <handa@m17n.org>
109
110 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
111 systems.
112
113 2010-01-14 Kenichi Handa <handa@m17n.org>
114
115 Make auto-composition work on all buffers even if they are
116 fundamental mode.
117
118 * composite.c (Vauto_composition_mode): New variable.
119 (composition_compute_stop_pos): Check Vauto_composition_mode
120 instead of Vauto_composition_function.
121 (composition_adjust_point, Ffind_composition_internal): Likewise.
122 (syms_of_composite): Declare Lisp variable
123 "auto-composition-mode" here.
124
125 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
126
127 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
128 during call to vendor-specific-keysyms (Bug#5365).
129
130 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
131
132 * keyboard.c (input_available_signal) [SYNC_INPUT]:
133 Call SIGNAL_THREAD_CHECK (Bug#5333).
134
135 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
136 Call SIGNAL_THREAD_CHECK.
137
138 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
139
140 Try to fix bug#5314. This is probably not the final word, tho.
141 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
142 recent-auto-save-p as a side-effect.
143 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
144 * buffer.c (Fkill_buffer, reset_buffer):
145 * editfns.c (Fsubst_char_in_region):
146 * fileio.c (Finsert_file_contents, Fdo_auto_save)
147 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
148
149 2010-01-13 Kenichi Handa <handa@m17n.org>
150
151 Display buffer name, etc. in mode line by composing correctly.
152
153 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
154 STRING is not nil.
155 (display_mode_element): Adjust for the change of
156 decode_mode_spec and display_line.
157 (decode_mode_spec): Change arg MULTIBYTE to STRING.
158 (display_string): Handle the case that STRING is non-null and
159 LISP_STRING is not nil.
160
161 * xterm.c (x_draw_composite_glyph_string_foreground):
162 Pay attention to s->face->overstrike.
163
164 * composite.c (composition_reseat_it): Don't check PT if STRING is
165 non nil.
166
167 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
168
169 * keyboard.c (read_char): Don't apply previous change when current
170 buffer is unchanged by command execution.
171
172 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
173
174 * keyboard.c (read_char): Return after executing from special map.
175
176 2010-01-12 Glenn Morris <rgm@gnu.org>
177
178 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
179 bug-gnu-emacs rather than emacs-pretest-bug.
180
181 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
182
183 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
184 initializing the Lisp variables that depend on them.
185
186 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
187
188 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
189 Clear areas that will not be updated after change of menu bar lines.
190 Clear the menu bar window's current matrix when the window gets empty.
191
192 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
193
194 * intervals.h, textprop.c (extend_property_ranges): Return value
195 and args changed. Discard properties that begin at or after the
196 new end (Bug#5306).
197
198 * editfns.c (Fformat): Caller changed.
199
200 * nsterm.m (ns_set_default_prefs): Delete function.
201 (syms_of_nsterm): Initialize ns_command_modifier,
202 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
203 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
204
205 * xdisp.c (pos_visible_p): Check for invisible text at the correct
206 position (Bug#4040).
207
208 2010-01-09 Eli Zaretskii <eliz@gnu.org>
209
210 * editfns.c (Ffloat_time): Doc fix.
211
212 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
213
214 * xfns.c (Fx_create_frame): Don't create frame larger than display
215 by default bug#3643.
216
217 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
218
219 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
220 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
221 windows above internal border.
222
223 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
224 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
225 windows above internal border.
226
227 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
228 tool bar windows specially.
229
230 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
231
232 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
233 specially.
234 (XTflash): Take account of menu bar height.
235
236 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
237 specially.
238
239 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
240
241 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
242 also be true before we can return early (bug #5339).
243
244 2010-01-06 David Reitter <david.reitter@gmail.com>
245
246 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
247 (Fns_display_usable_bounds): Rewrite, computing bounds properly
248 (Bug#3233).
249
250 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
251
252 * font.c (font_open_entity): Enable chache and call cached_font_ok
253 for the driver if defined.
254 (QCuser_spec): New symbol.
255 (font_spec_from_name): Save name as user-spec.
256 (font_load_for_lface): Keep user-spec instead of name.
257 (font_open_by_name): Save name as user-spec.
258 (syms_of_font): Initialize QCuser_spec.
259 (font_clear_prop): Clear name if it exists in font (bug#5157).
260
261 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
262 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
263 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
264
265 * font.h (struct font_driver): Add cached_font_ok.
266
267 * xterm.c (x_clear_frame): Queue draw for scroll bars.
268
269 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
270
271 * xterm.c (x_new_font): Move code for setting rows/cols before
272 resizing ...
273 (x_set_window_size): ... to here. bug #2568.
274
275 * gtkutil.c (xg_clear_under_internal_border): New function.
276 (xg_frame_resized, xg_frame_set_char_size):
277 Call xg_clear_under_internal_border.
278 (xg_update_scrollbar_pos): Clear under old scroll bar position.
279
280 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
281
282 * keyboard.c (read_key_sequence): Catch keyboard switch after
283 making a new tty frame (Bug#5095).
284
285 2010-01-05 Kenichi Handa <handa@m17n.org>
286
287 * fontset.c (fontset_find_font): Fix getting the frame pointer.
288
289 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
290
291 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
292 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
293 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
294
295 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
296
297 * dbusbind.c (xd_add_watch): Improve debug message.
298 (xd_remove_watch): Improve debug message. If DATA is the session
299 bus, unset D-Bus session environment.
300 (Fdbus_init_bus): Pass the bus as argument to
301 dbus_connection_set_watch_functions. (Bug#5283)
302
303 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
304
305 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
306
307 * lread.c (syms_of_lread): Make it clearer that these are the
308 names of loaded files (Bug#5068).
309
310 * eval.c (run_hook_with_args): Handle the case where the global
311 value has the obsolete single-function form (Bug#5026).
312
313 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
314
315 * minibuf.c (Fall_completions): Minor optimization.
316
317 2009-12-26 Eli Zaretskii <eliz@gnu.org>
318
319 * .gdbinit (pgx): Fix display of composite glyphs.
320 Display cmp.from and cmp.to as well.
321 (pitx): Fix last change.
322
323 2009-12-25 Kenichi Handa <handa@m17n.org>
324
325 * composite.h (composition_adjust_point): Update prototype.
326
327 * composite.c (composition_reseat_it): Don't make a composition
328 spanning over point.
329 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
330 composable characters.
331 (composition_adjust_point): New arg NEW_PT. Callers changed.
332
333 * keyboard.c (command_loop_1): Force redisplay if the last point
334 was within a composition.
335 (adjust_point_for_property): Don't adjust point for automatic
336 composition when called after buffer modification.
337
338 2009-12-19 Eli Zaretskii <eliz@gnu.org>
339
340 * .gdbinit (pitx): Don't use enum names, use their values.
341 Remove reference to non-existing value GET_FROM_COMPOSITION.
342 (pgx): Don't use enum names, use their values.
343 (pitmethod): New helper command.
344 (pitx): Use it to display iteration method.
345 (pgrowit): New command.
346
347 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
348
349 Update dependencies in Makefile.in.
350
351 * Makefile.in (alloc.o): Depend on termhooks.h.
352 (atimer.o): Depend on blockinput.h.
353 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
354 and frame.h.
355 (callint.o): Depend on systime.h, coding.h, and composite.h.
356 (callproc.o): Depend on buffer.h.
357 (casefiddle.o): Don't depend on charset.h.
358 (casetab.o): Depend on character.h.
359 (ccl.o): Depend on composite.h.
360 (chartab.o): Depend on ccl.h.
361 (cm.o): Depend on dispextern.h.
362 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
363 (coding.o): Don't depend on $(INTERVALS_H).
364 (composite.o): Don't depend on dispextern.h explicitly (it's in
365 $(INTERVALS_H)). Depend on ccl.h.
366 (data.o): Depend on systime.h, coding.h, composite.h,
367 dispextern.h, font.h, and ccl.h.
368 (dired.o): Depend on composite.h.
369 (dispnew.o): Depend on coding.h. Don't depend explicitly on
370 composite.h (it's in $(INTERVALS_H)).
371 (doc.o): Depend on systime.h, coding.h, and composite.h.
372 (editfns.o): Don't depend explicitly on dispextern.h.
373 (emacs.o): Depend on frame.h and coding.h.
374 (eval.o): Depend on coding.h, composite.h, and xterm.h.
375 (fileio.o): Depend on frame.h and commands.h. Don't depend
376 explicitly on dispextern.h.
377 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
378 composite.h.
379 (fns.o): Don't depend on termhooks.h.
380 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
381 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
382 coding.h, $(INTERVALS_H), window.h, xterm.h.
383 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
384 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
385 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
386 fontset.h, ccl.h, and ftfont.h.
387 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
388 (gtkutil.o): Depend on dispextern.h and composite.h.
389 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
390 termhooks.h, and ccl.h.
391 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
392 (intervals.o): Depend on systime.h and coding.h.
393 (keyboard.o): Depend on composite.h and coding.h.
394 (keymap.o): Depend on coding.h and frame.h.
395 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
396 (macros.o): Depend on systime.h, coding.h, and composite.h.
397 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
398 and atimer.h.
399 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
400 dispextern.h explicitly.
401 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
402 Don't depend explicitly on dispextern.h and composite.h.
403 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
404 (regex.o): Don't depend on charset.h.
405 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
406 (search.o): Don't depend explicitly on composite.h.
407 (sound.o): Depend on atimer.h and systime.h.
408 (syntax.o): Don't depend explicitly on composite.h.
409 (sysdep.o): Depend on coding.h and composite.h.
410 (term.o): Depend on xterm.h and buffer.h.
411 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
412 (textprop.o): Don't depend on dispextern.h explicitly.
413 (undo.o): Depend on dispextern.h.
414 (window.o): Depend on coding.h and termhooks.h. Don't depend on
415 dispextern.h and composite.h explicitly.
416 (xdisp.o): Depend on ccl.h.
417 (xfaces.o): Depend on coding.h and ccl.h.
418 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
419 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
420 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
421 ftfont.h.
422 (xgselect.o): New dependency.
423 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
424 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
425 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
426 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
427 (xsmfns.o): Depend on frame.h and dispextern.h.
428 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
429 sysselect.h.
430
431 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
432
433 * font.c (Fclear_font_cache): Pass correct cache argument to
434 font_clear_cache.
435
436 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
437
438 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
439 twice.
440
441 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
442
443 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
444 calling file-remote-p. Reported by Jim Meyering.
445
446 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
447
448 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
449 avoid compiler warnings. (Bug #5217)
450
451 2009-12-14 Kenichi Handa <handa@m17n.org>
452
453 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
454 in 8-bit encoding.
455
456 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
457
458 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
459 tooltip windows.
460
461 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
462
463 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
464 Xatom_net_window_type.
465
466 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
467 Xatom_net_window_type.
468
469 * xterm.c (my_log_handler): New function.
470 (x_term_init): Set my_log_handler as log handler during gtk_init
471 so we can filter out buggy messages. (Bug #5120).
472
473 * xterm.c (xg_scroll_callback): Parameter list changed,
474 use parameter GtkScrollType to determine scroll/line/page.
475 Only allow dragging if a button < 4 is grabbed (bug #5177).
476 (xg_end_scroll_callback): New function.
477 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
478 xg_create_scroll_bar.
479
480 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
481 (scroll_end_callback): Remove.
482 (xg_create_scroll_bar): Add parameter end_callback, bind it to
483 button-release-event. Replace value-changed event with change-value,
484 bug #5177,
485 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
486 bug #5177.
487
488 * gtkutil.h (XG_LAST_SB_DATA): Remove.
489 (xg_create_scroll_bar): Add GCallback end_callback.
490
491 * xftfont.c (QClcdfilter): New variable.
492 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
493 (syms_of_xftfont): Initialize QClcdfilter.
494
495 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
496
497 * xsettings.c (struct xsettings): Add member seen.
498 (parse_xft_settings): Update member seen with what we have read.
499 Return non-zero if Xft-settings have been parsed, 0 otherwise.
500 (apply_xft_settings): Only update Xft settings with what member seen
501 indicates as new.
502
503 2009-12-12 Eli Zaretskii <eliz@gnu.org>
504
505 * dispextern.h (struct text_pos): Use EMACS_INT;
506 (struct glyph): Use EMACS_INT for charpos.
507 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
508 region_beg_charpos, region_end_charpos,
509 redisplay_end_trigger_charpos, and also for
510 iterator_stack_entry.end_charpos and
511 iterator_stack_entry.stop_charpos.
512
513 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
514
515 * gtkutil.c (scroll_end_callback): New function (bug #5177).
516 (xg_create_scroll_bar): Call scroll_end_callback on button release
517 event (bug #5177).
518 (xg_event_is_for_scrollbar): != replaced with ==.
519
520 2009-12-12 Kenichi Handa <handa@m17n.org>
521
522 * ftfont.c (struct ftfont_info): New member matrix.
523 (ftfont_open): Setup xftfont_info->matrix.
524 (MFLTFontFT): New member matrix.
525 (FLOOR, CEIL, ROUND): New macros.
526 (ftfont_get_metrics): Handle matrix transformation.
527 (ftfont_shape_by_flt): New arg matrix. Callers changed.
528
529 * xftfont.c (struct xftfont_info): New member matrix.
530 (xftfont_open): Setup xftfont_info->matrix.
531
532 2009-12-10 Kenichi Handa <handa@m17n.org>
533
534 * xdisp.c (append_space_for_newline): Consider face-remapping.
535
536 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
537
538 * xsettings.c: Include "keyboard.h".
539
540 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
541
542 Fix implicit function declarations.
543 * cmds.c: Include "frame.h".
544 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
545 * frame.h: Move declaration of delete_frame outside of
546 HAVE_WINDOW_SYSTEM.
547
548 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
549
550 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
551
552 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
553 GTK builds.
554
555 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
556
557 * unexelf.c (unexec): Don't search for .data twice.
558
559 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
560
561 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
562 if push failed.
563 (handle_line_prefix): Set avoid_cursor_p here. Check return value
564 of push_display_prop (Bug#5000).
565
566 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
567 value of font_list_entities (Bug#5085).
568
569 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
570
571 Fix `string-to-number' to deal consistently with integers and floats.
572 * lread.c (isfloat_string): New argument ignore_trailing to accept all
573 trailing characters, not just whitespace.
574 (read1): Pass new arg 0 to keep old behavior.
575 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
576 trailing chars, as it is already done for integers. Doc fixes.
577 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
578
579 2009-12-04 Eli Zaretskii <eliz@gnu.org>
580
581 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
582 Delete unused enumeration value.
583
584 2009-12-03 Eli Zaretskii <eliz@gnu.org>
585
586 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
587
588 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
589
590 * process.c (Fmake_network_process): Fix up the tests for
591 "connectionless socket", so they DTRT for seqpacket sockets as well.
592
593 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
594
595 * process.c (Qseqpacket): New symbol.
596 (HAVE_SEQPACKET): New macro.
597 (Fmake_network_process): Accept new :type `seqpacket'.
598 (init_process): Add `seqpacket' feature when applicable.
599 (syms_of_process): Initialize Qseqpacket.
600
601 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
602
603 * font.c (font_load_for_lface, font_open_by_name): Don't store name
604 if entity is Qnil.
605
606 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
607
608 * print.c (print_preprocess): Preprocess the key_and_value table of
609 hashtables, even tho they're "hidden" (bug#5082).
610
611 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
612
613 * frame.c (frame_make_pointer_invisible)
614 (frame_make_pointer_visible): Declare f before statements.
615
616 2009-11-28 Eli Zaretskii <eliz@gnu.org>
617
618 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
619 omitted dependencies on lisp.h.
620
621 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
622
623 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
624 is NULL.
625
626 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
627
628 * frame.c (frame_make_pointer_invisible)
629 (frame_make_pointer_visible): Just return if there isn't any selected
630 frame.
631
632 * search.c (simple_search): Remove warning by making *p const.
633
634 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
635
636 * xdisp.c (power_letter): Remove duplicate const.
637
638 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
639
640 * term.c (delete_tty): Remove check for last terminal (bug#4970).
641
642 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
643 defaults (bug #5025).
644
645 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
646
647 * insdel.c (adjust_markers_for_delete): Move it in the
648 right direction! (bug#4803)
649
650 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
651
652 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
653
654 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
655
656 2009-11-24 Glenn Morris <rgm@gnu.org>
657
658 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
659
660 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
661
662 * Makefile.in: Must create deps for ecrt0.o in its rule.
663
664 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
665 because that is what Gtk+ font dialog understands.
666
667 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
668 of Fcopy_sequence.
669 (font_open_by_name): Put name given into QCname for font-object returned.
670
671 * frame.c (x_set_font): Save original font name as frame parameter
672 font-parameter.
673
674 * xsettings.c (set_default_xft_settings): New function.
675 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
676 is found.
677
678 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
679
680 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
681 searching backwards through multibyte buffer.
682
683 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
684
685 * xterm.c: #include xgselect.h.
686 (x_initialize): Call xgselect_initialize.
687
688 * xsettings.c (something_changedCB): C++ comments => C comments.
689 (init_gconf): Do not deal with any GLib file descriptors, xg_select
690 does that now.
691
692 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
693 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
694 (scroll_bar_button_cb): Remove.
695 (create_menus): C++ comments => C comments. Don't bind grab-notify
696 event.
697 (xg_create_scroll_bar): Don't bind button-press-event and
698 button-release-event.
699
700 * process.c: Include xgselect.h if defined (USE_GTK) ||
701 defined (HAVE_GCONF).
702 (wait_reading_process_output): Call xg_select for the same condition.
703
704 * xgselect.c (xg_select): New function to better integrate with
705 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
706
707 * xgselect.h: New file, declare xg_select, xgselect_initialize.
708
709 * Makefile.in (XOBJ): Add xgselect.o.
710
711 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
712
713 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
714 Remove ignored second argument. All callers changed.
715 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
716 (RE_STRING_CHAR_AND_LENGTH): Likewise.
717 * xdisp.c (string_char_and_length): Likewise.
718
719 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
720
721 * xterm.c (x_new_font):
722 * print.c (print_object):
723 * cmds.c (Fself_insert_command): Move declarations before statements.
724
725 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
726
727 * s/cygwin.h: Remove unneeded linker flags.
728
729 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
730
731 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
732
733 * xsettings.h: Declare xsettings_get_system_font.
734
735 * xsettings.c (xsettings_get_system_font): New function.
736 (init_gconf): No use initiating gconf unless we have Xft also.
737 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
738 HAVE_GCONF.
739
740 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
741 add a blank entry so it doesn't collapse into nothing.
742
743 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
744
745 * lread.c (Funintern): Comment out last change.
746
747 2009-11-19 Richard Stallman <rms@gnu.org>
748
749 * lread.c (Funintern): Error if symbol is t or nil.
750
751 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
752
753 * insdel.c (make_gap_larger): Don't make as many assumptions about the
754 representation of Lisp integers.
755 Reported by MJ Chan <mjchan.inbox@gmail.com>.
756
757 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
758
759 * lisp.h: Remove declaration of Ffont_get_system_font.
760 * xfns.c: Move include of "xsettings.h".
761 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
762
763 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
764
765 * xsettings.c (something_changedCB, Ffont_get_system_font):
766 Check use_system_font.
767 (syms_of_xsettings): DEFVAR font-use-system-font.
768
769 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
770
771 * xfns.c (x_default_font_parameter): Remove dead assignment.
772
773 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
774
775 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
776
777 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
778 not have FC_LCD_*. #define them if not there.
779
780 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
781
782 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
783
784 * xterm.c (handle_one_xevent): Call xft_settings_event for
785 ClientMessage, PropertyNotify and DestroyNotify.
786 (x_term_init): If we have XFT, get DPI from Xft.dpi.
787 Call xsettings_initialize.
788
789 * xftfont.c (xftfont_fix_match): New function.
790 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
791 Call xftfont_fix_match after XftFontMatch.
792
793 * xfont.c (xfont_driver): Initialize all members.
794
795 * xfns.c (x_default_font_parameter):
796 Try font from Ffont_get_system_font.
797 Do not get font from x_default_parameter if we got one from
798 Ffont_get_system_font.
799 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
800
801 * w32font.c (w32font_driver): Initialize all members.
802
803 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
804
805 * lisp.h: Declare syms_of_xsettings.
806
807 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
808 Handle CONFIG_CHANGED_EVENT.
809
810 * ftfont.c (ftfont_filter_properties): New function.
811
812 * frame.c (x_set_font): Remove unused variable lval.
813
814 * font.h (struct font_driver): Add filter_properties.
815
816 * font.c (font_put_extra): Don't return if val is nil, it means
817 boolean option is off.
818 (font_parse_fcname): Collect all extra properties in extra_props
819 and call filter_properties for all drivers with extra_props and
820 font as parameter.
821 (font_open_entity): Do not use cache, it does not pick up new
822 fontconfig settings like hinting.
823 (font_load_for_lface): If spec had a name in it, store it in entity.
824
825 * emacs.c (main): Call syms_of_xsettings
826
827 * config.in: HAVE_GCONF is new.
828
829 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
830 xsettings.o is new.
831
832 2009-11-17 Kenichi Handa <handa@m17n.org>
833
834 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
835 back to the default font in case that no suitable font is found.
836
837 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
838
839 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
840 Suggested by Chad Brown <yandros@mit.edu>.
841 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
842
843 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
844
845 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
846
847 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
848
849 * Makefile.in: Ignore errors from mkdir when creating deps directory.
850
851 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
852
853 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
854 has a parent.
855
856 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
857 dependency files in deps/. Include those files into Makefile.
858
859 * config.in: Generated (AUTO_DEPEND).
860
861 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
862
863 * dbusbind.c (Vdbus_registered_objects_table): Rename from
864 Vdbus_registered_functions_table, because it contains also
865 properties. Fix docstring.
866 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
867
868 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
869
870 * alloc.c (mark_object): Don't reprocess marked strings.
871 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
872 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
873
874 2009-11-13 Kenichi Handa <handa@m17n.org>
875
876 * category.c (word_boundary_p): Adjust for the change of the
877 semantics of Vword_combining_categories.
878 (Vword_combining_categories): Describe the slight change of the
879 semantics.
880
881 2009-11-13 Eli Zaretskii <eliz@gnu.org>
882
883 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
884
885 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
886
887 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
888
889 * xdisp.c (syms_of_xdisp): Fix typo in last change.
890
891 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
892
893 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
894
895 2009-11-11 David Reitter <david.reitter@gmail.com>
896
897 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
898 variables to fix 2009-11-09 change.
899
900 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
901
902 * process.c (ifflag_def): Make flag_sym constant.
903 (Fnetwork_interface_info): Use a constant pointer.
904 (ifflag_table):
905 * xfns.c (cursor_bits):
906 * xdisp.c (power_letter):
907 * termcap.c (speeds, esctab):
908 * sysdep.c (baud_convert):
909 * keyboard.c (lispy_accent_codes, modifier_names):
910 * image.c (xbm_format, xpm_format, pbm_format, png_format)
911 (jpeg_format, tiff_format, gif_format, svg_format)
912 (interlace_start, interlace_increment, gs_format):
913 * gtkutil.c (separator_names):
914 * fringe.c (swap_nibble):
915 * fns.c (base64_value_to_char, base64_char_to_value):
916 * fileio.c (make_temp_name_tbl):
917 * coding.c (suffixes): Make constant.
918
919 * frame.c (make_initial_frame):
920 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
921 build_string.
922 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
923
924 * s/freebsd.h:
925 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
926
927 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
928 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
929
930 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
931 * xterm.c (syms_of_xterm):
932 * xfaces.c (syms_of_xfaces):
933 * xdisp.c (syms_of_xdisp):
934 * lread.c (syms_of_lread):
935 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
936 build_string.
937
938 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
939
940 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
941
942 * fns.c (Fplist_get): Merge the active and the commented out code.
943
944 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
945
946 * keyboard.h: Declare timer_check.
947
948 * keyboard.c (timer_check_2): New function that does what the old
949 timer_check did.
950 (timer_check): Call timer_check_2 until -1 or a non-zero time is
951 returned, i.e. don't return -1 with timers pending.
952
953 * process.c: Remove extern declaration of timer_check.
954
955 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
956 even if timer_check returned -1.
957
958 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
959 xg_dialog_data.
960 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
961 the event loop.
962 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
963 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
964 Destroy the dialog after xg_dialog_run.
965
966 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
967
968 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
969
970 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
971
972 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
973
974 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
975
976 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
977
978 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
979
980 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
981 w32menu.c, and nsmenu.m.
982 Simplify the obsolete case where position is nil.
983 (cleanup_popup_menu): New function, moved from nsmenu.m.
984 (struct skp): Remove slot `notreal'.
985 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
986 adjust callers.
987 (single_menu_item): Adjust call to parse_menu_item.
988 (syms_of_menu): Defsubr x-popup-menu.
989 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
990 (keymap_panes): Don't export any more.
991 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
992 (xmenu_show): Declare.
993 * keyboard.c (parse_menu_item): Remove arg `notreal'.
994 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
995 * keyboard.h (parse_menu_item): Update declaration.
996 * xmenu.c (Fx_popup_menu): Remove.
997 (syms_of_xmenu): Don't defsubr x-popup-menu.
998 * w32menu.c (Fx_popup_menu): Remove.
999 (syms_of_w32menu): Don't defsubr x-popup-menu.
1000 * nsmenu.m (cleanup_popup_menu): Remove.
1001 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1002 moved to menu.c's Fx_popup_menu.
1003 (Fx_popup_menu): Remove.
1004 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1005 menu_items (it's done in menu.c already).
1006
1007 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1008
1009 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1010 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1011
1012 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
1013
1014 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
1015 xmenu_show. Hide any tooltip before opening a menu.
1016 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1017 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1018
1019 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1020
1021 Let integers use up 2 tags to give them one extra bit and thus double
1022 their range.
1023 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1024 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1025 New macros.
1026 (enum Lisp_Type): Use them. Give explicit values.
1027 (Lisp_Type_Limit): Remove.
1028 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1029 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1030 Pay attention to USE_2_TAGS_FOR_INTS.
1031 (INTEGERP): Use LISP_INT_TAG_P.
1032 * fns.c (internal_equal): Simplify the default case.
1033 (sxhash): Use case_Lisp_Int.
1034 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1035 any more.
1036 (Ftype_of): Use case_Lisp_Int.
1037 (store_symval_forwarding): Take into account the fact that Ints can
1038 now have more than one tag.
1039 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1040 buffer_slot_type_mismatch):
1041 * xfaces.c (face_attr_equal_p):
1042 * print.c (print_object):
1043 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1044 Use case_Lisp_Int.
1045
1046 2009-11-06 Eli Zaretskii <eliz@gnu.org>
1047
1048 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1049
1050 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1051 warning.
1052
1053 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1054
1055 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1056
1057 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1058
1059 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1060 ButtonPressRelease and MotionNotify (bug#4870).
1061
1062 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1063
1064 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1065
1066 * xterm.c (syms_of_xterm):
1067 * xselect.c (syms_of_xselect):
1068 * xmenu.c (syms_of_xmenu):
1069 * xfns.c (syms_of_xfns):
1070 * xfaces.c (syms_of_xfaces):
1071 * xdisp.c (syms_of_xdisp):
1072 * window.c (syms_of_window):
1073 * w32fns.c (syms_of_w32fns):
1074 * undo.c (syms_of_undo):
1075 * textprop.c (syms_of_textprop):
1076 * terminal.c (syms_of_terminal):
1077 * syntax.c (syms_of_syntax):
1078 * sound.c (syms_of_sound):
1079 * search.c (syms_of_search):
1080 * print.c (syms_of_print):
1081 * minibuf.c (syms_of_minibuf):
1082 * macros.c (syms_of_macros):
1083 * keymap.c (syms_of_keymap, initial_define_key)
1084 (initial_define_lispy_key):
1085 * keyboard.c (syms_of_keyboard):
1086 * insdel.c (syms_of_insdel):
1087 * image.c (syms_of_image):
1088 * fringe.c (syms_of_fringe):
1089 * frame.c (syms_of_frame):
1090 * fontset.c (syms_of_fontset):
1091 * fns.c (syms_of_fns):
1092 * fns.c (syms_of_fns):
1093 * fileio.c (syms_of_fileio):
1094 * fileio.c (syms_of_fileio):
1095 * eval.c (syms_of_eval):
1096 * doc.c (syms_of_doc):
1097 * dispnew.c (syms_of_display):
1098 * dired.c (syms_of_dired):
1099 * dbusbind.c (syms_of_dbusbind):
1100 * data.c (syms_of_data):
1101 * composite.c (syms_of_composite):
1102 * coding.c (syms_of_coding):
1103 * cmds.c (syms_of_cmds):
1104 * charset.c (define_charset_internal, syms_of_character):
1105 * ccl.c (syms_of_ccl):
1106 * category.c (syms_of_category, init_category_once):
1107 * casetab.c (syms_of_casetab):
1108 * casefiddle.c (syms_of_casefiddle):
1109 * callint.c (syms_of_callint):
1110 * bytecode.c (syms_of_bytecode):
1111 * buffer.c (keys_of_buffer, syms_of_buffer):
1112 * alloc.c (syms_of_alloc):
1113 * process.c (syms_of_process, init_process):
1114 * lread.c (syms_of_lread, init_obarray):
1115 * font.c (build_style_table):
1116 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1117 intern_c_string, calls to make_pure_string with
1118 make_pure_c_string. Use pure_cons instead of Fcons.
1119
1120 * process.c (socket_options): Make it const.
1121 (set_socket_option, init_process): Use a const pointer.
1122
1123 * lread.c (intern_c_string): New function.
1124 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1125 (defvar_int): Uset it. Make the name const char*.
1126
1127 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1128 (defvar_int): Update prototypes.
1129 (DEFUN, EXFUN): Support for prototypes is now required.
1130 (intern_c_string): New prototype.
1131 (struct Lisp_Subr): Make symbol_name constant.
1132
1133 * font.c (struct table_entry): Remove unused member. Make NAMES
1134 constant.
1135 (weight_table, slant_table, width_table): Make constant.
1136
1137 * emacs.c (struct standard_args): Make name and longname constant.
1138
1139 * character.h (DEFSYM): Use intern_c_string.
1140
1141 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1142
1143 * alloc.c (make_pure_c_string): New function.
1144
1145 * eval.c (Fautoload): Purecopy all arguments.
1146
1147 2009-11-05 Kenichi Handa <handa@m17n.org>
1148
1149 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1150 the buffer in case of replace.
1151
1152 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1153
1154 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1155
1156 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1157
1158 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1159 when applicable (bug#4851).
1160
1161 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1162 (P_): Support for prototypes is now required.
1163
1164 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
1165
1166 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1167 (Bug#4827).
1168
1169 2009-10-30 Eli Zaretskii <eliz@gnu.org>
1170
1171 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
1172
1173 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1174
1175 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1176
1177 * lread.c (Fload): Purecopy the file name when building
1178 Vpreloaded_file_list.
1179
1180 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1181
1182 * w32fns.c (syms_of_w32fns): Change default value of
1183 w32-scroll-lock-modifier to nil. (Bug#2827)
1184
1185 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1186
1187 * minibuf.c (Fall_completions): Fix typos in docstring.
1188
1189 2009-10-26 Andreas Schwab <schwab@redhat.com>
1190
1191 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1192
1193 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1194
1195 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1196 For delta < 0, skip check that only makes sense when the mini-window
1197 is going to be enlarged. (Bug#4534)
1198
1199 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
1200
1201 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1202 string in menu maps (Bug#4471).
1203
1204 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
1205
1206 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1207 FRAME_NS_VIEW on terminal frames (Bug#4765).
1208
1209 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1210
1211 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1212 DBUS_TYPE_UINTnn separately to get proper sign extension.
1213
1214 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1215 can properly handle unsigned types.
1216 (make_uid, make_gid): Remove.
1217
1218 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1219 types again.
1220
1221 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
1222 (system_process_attributes): Likewise.
1223
1224 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1225
1226 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1227
1228 * eval.c (Fautoload): Purecopy the filename. Simplify.
1229
1230 * category.c (Fdefine_category): Purecopy docstring.
1231
1232 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1233
1234 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1235
1236 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1237
1238 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
1239
1240 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1241 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1242 (Bug#4775).
1243
1244 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1245
1246 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1247 (init_fileio_once):
1248 * lisp.h (init_fileio_once): Remove.
1249 * emacs.c (main): Don't call init_fileio_once.
1250
1251 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1252
1253 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1254
1255 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1256
1257 * doprnt.c (doprnt): Fix overflow check.
1258
1259 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1260
1261 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1262
1263 * xterm.h (x_wait_for_event): Declare it.
1264
1265 * xterm.c (pending_event_wait): New variable.
1266 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1267 see pending_event_wait.eventtype.
1268 (handle_one_xevent): Don't change gravity when parent changes.
1269 (x_new_font): Call change_frame_size with new rows/columns before we
1270 try to resize the frame.
1271 (x_wait_for_event): New function.
1272 (x_set_window_size_1): Don't change gravity unless change_gravity
1273 is set.
1274 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1275 don't change frame size, instead wait for the ConfigureNotify.
1276 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1277 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1278 (x_initialize): Initialize pending_event_wait.
1279
1280 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1281 size.
1282
1283 * widget.c (EmacsFrameSetValues): Add comment.
1284 (EmacsFrameSetCharSize): Just call x_set_window_size.
1285
1286 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1287 x_wait_for_event.
1288 (flush_and_sync): Remove again.
1289 (xg_get_font_name): Suggest monospace if no previous font is known.
1290
1291 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1292
1293 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
1294 8th bit, since that only made sense in the ASCII world (bug#4751).
1295
1296 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1297
1298 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1299 processing pending events when event is filtered for input method.
1300 (Bug#3681)
1301
1302 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
1303
1304 * fns.c: Add #endif accidentally removed in previous change.
1305
1306 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1307
1308 * fns.c: Remove code for unsupported system: MAC_OS.
1309 * image.c: Likewise. Include setjmp.h.
1310
1311 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1312
1313 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1314 pixel -1 (bug #4742).
1315
1316 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1317
1318 * process.c (create_pty): Remove conditionals for no longer
1319 supported systems: UNIPLUS and RTU.
1320
1321 * xterm.c:
1322 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1323
1324 * alloc.c: Do not define struct catchtag.
1325 * eval.c: Move struct catchtag definition ...
1326 * lisp.h: ... here.
1327
1328 * image.c: Move png.h #include earlier to avoid warnings.
1329
1330 * xterm.c:
1331 * xsmfns.c:
1332 * xselect.c:
1333 * xrdb.c:
1334 * xmenu.c:
1335 * xftfont.c:
1336 * xfont.c:
1337 * xfns.c:
1338 * xfaces.c:
1339 * xdisp.c:
1340 * window.c:
1341 * widget.c:
1342 * w32xfns.c:
1343 * w32uniscribe.c:
1344 * w32term.c:
1345 * w32select.c:
1346 * w32reg.c:
1347 * w32proc.c:
1348 * w32menu.c:
1349 * w32inevt.c:
1350 * w32heap.c:
1351 * w32font.c:
1352 * w32fns.c:
1353 * w32console.c:
1354 * w32.c:
1355 * w16select.c:
1356 * vm-limit.c:
1357 * unexsol.c:
1358 * unexec.c:
1359 * unexcw.c:
1360 * unexaix.c:
1361 * undo.c:
1362 * tparam.c:
1363 * textprop.c:
1364 * terminfo.c:
1365 * terminal.c:
1366 * termcap.c:
1367 * term.c:
1368 * syntax.c:
1369 * sound.c:
1370 * sheap.c:
1371 * search.c:
1372 * scroll.c:
1373 * region-cache.c:
1374 * regex.c:
1375 * ralloc.c:
1376 * process.c:
1377 * print.c:
1378 * nsterm.m:
1379 * nsselect.m:
1380 * nsmenu.m:
1381 * nsimage.m:
1382 * nsfont.m:
1383 * nsfns.m:
1384 * msdos.c:
1385 * minibuf.c:
1386 * menu.c:
1387 * marker.c:
1388 * macros.c:
1389 * keymap.c:
1390 * keyboard.c:
1391 * intervals.c:
1392 * insdel.c:
1393 * indent.c:
1394 * gtkutil.c:
1395 * ftxfont.c:
1396 * ftfont.c:
1397 * fringe.c:
1398 * frame.c:
1399 * fontset.c:
1400 * font.c:
1401 * fns.c:
1402 * floatfns.c:
1403 * filelock.c:
1404 * fileio.c:
1405 * emacs.c:
1406 * editfns.c:
1407 * dosfns.c:
1408 * doprnt.c:
1409 * doc.c:
1410 * dispnew.c:
1411 * dired.c:
1412 * dbusbind.c:
1413 * data.c:
1414 * composite.c:
1415 * coding.c:
1416 * cmds.c:
1417 * cm.c:
1418 * chartab.c:
1419 * charset.c:
1420 * character.c:
1421 * ccl.c:
1422 * category.c:
1423 * casetab.c:
1424 * casefiddle.c:
1425 * callproc.c:
1426 * callint.c:
1427 * bytecode.c:
1428 * buffer.c:
1429 * atimer.c: Include setjmp.h. (Bug#4643)
1430
1431 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1432
1433 Remove leftover table unibyte_to_multibyte_table.
1434 * character.c (unibyte_to_multibyte_table): Remove.
1435 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1436 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1437 * character.h (UNIBYTE_TO_CHAR): New macro.
1438 (MAKE_CHAR_MULTIBYTE): Use it.
1439 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1440 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1441 (message_dolog, set_message_1):
1442 * search.c (Freplace_match):
1443 * editfns.c (Fcompare_buffer_substrings):
1444 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1445 (concat):
1446 * insdel.c (copy_text, count_size_as_multibyte):
1447 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1448 * term.c (produce_glyphs):
1449 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1450 * regex.c (RE_CHAR_TO_MULTIBYTE):
1451 * cmds.c (internal_self_insert):
1452 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1453
1454 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1455
1456 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1457
1458 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1459
1460 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
1461
1462 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1463
1464 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1465
1466 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1467 still needed under Tiger.
1468
1469 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1470
1471 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1472 __Apple__.
1473
1474 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1475
1476 2009-10-15 Kenichi Handa <handa@m17n.org>
1477
1478 * print.c (print_object): Escape a symbol like "2E10" too.
1479
1480 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
1481
1482 Cleanups and changes for 64-bit compile under Snow Leopard.
1483 Based on suggestions by Erik Charlebois.
1484
1485 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1486
1487 * nsfont.m (ns_char_width): Replace deprecated call.
1488 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1489 cast argument.
1490 (nsfont_open): Use ns_char_width() everywhere.
1491 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
1492
1493 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1494
1495 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1496 where appropriate.
1497
1498 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1499 where appropriate.
1500 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1501 Use stringWithUTF8String.
1502 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1503
1504 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1505 Add formal protocol mention to inheritance.
1506 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1507
1508 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1509 Fix printf format.
1510 (ns_query_color): Use CGFloat where appropriate.
1511 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1512 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1513 argument.
1514
1515 * config.in (NS_HAVE_NSINTEGER): Drop.
1516
1517 * dbusbind.c (dbus-method-return-internal)
1518 (dbus-method-error-internal): Use long format in printf, and cast
1519 argument.
1520
1521 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1522 in printf, and cast argument.
1523
1524 * process.c (list_processes_1): Use long format in printf, and
1525 cast argument.
1526
1527 2009-10-11 Glenn Morris <rgm@gnu.org>
1528
1529 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1530
1531 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1532
1533 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1534 menu bar with a small width so it doesn't enlarge the frame.
1535
1536 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
1537
1538 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1539
1540 2009-10-06 Glenn Morris <rgm@gnu.org>
1541
1542 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1543 SOME_MACHINE_LISP (this enters indirectly via DOC).
1544
1545 2009-10-05 Eli Zaretskii <eliz@gnu.org>
1546
1547 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1548
1549 2009-10-04 Eli Zaretskii <eliz@gnu.org>
1550
1551 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1552 Doc fix.
1553
1554 2009-10-03 Martin Rudalics <rudalics@gmx.at>
1555
1556 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1557
1558 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
1559
1560 * lisp.h (Qdelete_directory_internal): Remove, because it is not
1561 used anymore outside fileio.c.
1562
1563 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1564
1565 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
1566
1567 * lisp.h (Qdelete_directory_internal):
1568 Declare, instead of Qdelete_directory.
1569
1570 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1571
1572 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1573
1574 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1575
1576 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
1577
1578 * fileio.c (Fdelete_directory_internal): Rename from
1579 Fdelete_directory. It is not a command anymore. It has no file
1580 name handler.
1581
1582 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1583
1584 * xdisp.c (get_next_display_element): Use an enum in last change.
1585
1586 2009-09-28 Kenichi Handa <handa@m17n.org>
1587
1588 * xdisp.c (get_next_display_element): Pay attention to
1589 unibyte_display_via_language_environment in handling
1590 Vnobreak_char_display.
1591
1592 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1593
1594 * nsterm.h (ns_app_name): New extern variable.
1595
1596 * nsterm.m (ns_app_name): New variable.
1597 (ns_term_init): Set and use it.
1598 (ns_term_shutdown): Use it.
1599
1600 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1601 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1602
1603 * nsfns.m (ns_set_name_iconic, ns_set_name)
1604 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1605 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1606
1607 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1608 Remove double-casting in client_data comparison.
1609
1610 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1611
1612 * keyboard.c (make_lispy_event): Remember last wheel direction.
1613 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1614
1615 2009-09-26 Glenn Morris <rgm@gnu.org>
1616
1617 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1618 internal.elc. Add term/pc-win.elc.
1619 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1620 term/x-win.elc.
1621 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1622 term/w32-win.elc.
1623 (NS_SUPPORT): New.
1624 (lisp): Add NS_SUPPORT.
1625 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1626
1627 2009-09-25 David Reitter <david.reitter@gmail.com>
1628
1629 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1630 on Mac OS X 10.6+ (bug#4513).
1631
1632 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1633
1634 * frame.c (xrdb_get_resource): Return nil for empty string resources;
1635 some parts of Emacs code (like font selection) don't grok them.
1636 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
1637
1638 2009-09-24 Andreas Schwab <schwab@redhat.com>
1639
1640 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1641
1642 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1643
1644 * dired.c (Fdirectory_files): Fix typo in docstring.
1645
1646 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1647
1648 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1649 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1650 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1651 under GNUstep.
1652 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1653
1654 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1655 glyph advancement.
1656
1657 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1658
1659 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
1660 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
1661
1662 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1663 deleted (bug #4492).
1664
1665 * nsfont.m (Vns_reg_to_script): New lisp variable.
1666 (syms_of_nsfont): Declare it.
1667 (ns_registry_to_script): New function.
1668 (ns_get_req_script): Call it.
1669 (ns_findfonts): Don't give up on non-unicode registry.
1670
1671 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1672
1673 2009-09-20 Tom Tromey <tromey@redhat.com>
1674
1675 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1676 batch mode (bug#4228).
1677
1678 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
1679
1680 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
1681 carefully. (Bug #4339)
1682
1683 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
1684
1685 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
1686
1687 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1688
1689 * emacs.c (inhibit_x_resources): Update doc string for NS.
1690 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
1691 legacy code for -NXHost. Fix error printf in daemon case.
1692
1693 * nsterm.h (ns_no_defaults): Remove.
1694
1695 * nsterm.m (ns_no_defaults): Remove.
1696 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1697 (ns_use_qd_smoothing): Remove legacy variable.
1698 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1699 don't update the NSWindow itself.
1700 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
1701 state detection and store user rect ourselves. (Bug #3581)
1702
1703 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1704 ns_use_qd_smoothing.
1705
1706 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1707 platform versions. Drop support for emacs-20-style face specs.
1708 (x-close-connection): Drop PSFlush() under OS X.
1709 (x-focus-frame): Activate the app first. (Bug #4180)
1710
1711 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
1712
1713 * emacs.c (inhibit_x_resources): New variable.
1714 (main) [HAVE_NS]: Don't process --quick command line option.
1715 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1716
1717 * lisp.h (inhibit_x_resources): Declare it extern.
1718
1719 * w32reg.c (x_get_string_resource):
1720 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1721
1722 2009-09-17 Eli Zaretskii <eliz@gnu.org>
1723
1724 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1725 Add lisp/term/internal.elc.
1726
1727 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1728
1729 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1730 (bug#4461).
1731
1732 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1733
1734 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1735
1736 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1737 (OBJECTS_MACHINE): Remove, unused.
1738
1739 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1740
1741 * frame.c (x_get_resource_string): Remove unused.
1742
1743 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1744
1745 * xterm.c (x_new_font): Call change_frame_size before calling
1746 x_set_window_size, in case frame size won't change.
1747
1748 * frame.c (x_set_font): Remove dead code.
1749
1750 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1751
1752 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1753
1754 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1755
1756 * lread.c (Fload): Don't output a message after loading an obsolete
1757 package any more (done in Lisp now).
1758
1759 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
1760
1761 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1762
1763 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1764
1765 * keymap.c (Fwhere_is_internal): Use nconc2.
1766
1767 2009-09-11 Alan Mackenzie <acm@muc.de>
1768
1769 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1770 batch mode.
1771
1772 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1773
1774 * xdisp.c (display_mode_element): Detect cycles.
1775
1776 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1777
1778 * keymap.c (where_is_internal): Don't erroneously return nil right after
1779 filling the cache.
1780 (where_is_internal_1): Fix up typo.
1781
1782 2009-09-11 Glenn Morris <rgm@gnu.org>
1783
1784 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1785 share a common doc-string.
1786
1787 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1788
1789 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1790 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1791
1792 * keymap.c (QCadvertised_binding): New constant.
1793 (syms_of_keymap): Initialize it.
1794 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1795 if applicable.
1796
1797 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1798
1799 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1800 (parse_menu_item): Streamline since bindings are recomputed all the
1801 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1802 more and don't support lmenu's menu-alias any more either.
1803
1804 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1805 (where_is_internal): Strip it down to only traverse the keymaps.
1806 Move the cache handling from Fwhere_is_internal to here.
1807 (Fwhere_is_internal): Move the handling of remapping and the choice of
1808 the best binding from where_is_internal to here.
1809 Unify the cached/noncached paths, so remapping is also handled
1810 correctly when the cache is used, and so the cache can be used to
1811 speed up remap-handling when applicable.
1812 Give preference to non-remapped bindings.
1813 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1814 non-remapped bindings.
1815 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1816 command remapping.
1817
1818 * xdisp.c (display_mode_element): Move list length limit from 50 to
1819 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1820
1821 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
1822
1823 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1824
1825 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1826
1827 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1828 (Bug#4334)
1829
1830 * keymap.c (where_is_internal): Filter out shadowed remappings.
1831 Assume that where_is_internal returns unshadowed bindings to simplify
1832 the code and get rid of the gotos. Use ASIZE.
1833
1834 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1835
1836 * xterm.c (x_focus_changed): If we get a focusout and pointer
1837 is invisible, make it visible.
1838
1839 * xterm.h: Remove condition for declaration of
1840 x_*_window_to_frame.
1841
1842 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1843
1844 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1845 initial terminal as well.
1846
1847 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1848
1849 * xterm.h: Rename x_non_menubar_window_to_frame to
1850 x_menubar_window_to_frame.
1851
1852 * xterm.c: Remove declarations also in xterm.h
1853 (XTmouse_position): Do not return valid positions
1854 for clicks in the menubar and the toolbar for Gtk+.
1855
1856 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1857 if the widget for the event has the same top level as a frame,
1858 return the frame.
1859 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1860 internal windows, bug #4122.
1861 (x_non_menubar_window_to_frame): Remove.
1862
1863 2009-09-02 Glenn Morris <rgm@gnu.org>
1864
1865 * buffer.c (default-major-mode): Move most of the doc from here...
1866 (major-mode): ... to here.
1867
1868 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
1869
1870 * process.c (wait_reading_process_output): Keep the descriptor
1871 when pty is used by a non-child process, e.g., in I/O buffer of
1872 GDB this allows inferior to be restarted.
1873
1874 2009-08-29 Eli Zaretskii <eliz@gnu.org>
1875
1876 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1877 both branches into one.
1878
1879 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1880
1881 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1882 (main): Use enable-multibyte-characters rather than
1883 default-enable-multibyte-characters. Output a warning message when
1884 running a unibyte session.
1885
1886 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1887
1888 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1889 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1890 (copy_data_segment): Also copy __program_vars section.
1891 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1892 (dump_it) [LC_DYLD_INFO]: Use it.
1893
1894 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1895
1896 2009-08-28 Eli Zaretskii <eliz@gnu.org>
1897
1898 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1899 $(SRC)/buildobj.h.
1900 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1901 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1902 $(SRC)/buildobj.h.
1903 (clean): Add buildobj.h.
1904
1905 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1906
1907 * print.c (print_object): Set escapeflag to 1 when printing
1908 hashtable keys and values.
1909
1910 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1911
1912 * lread.c (read_integer): Use doubles (and potentially return a float
1913 number) as we do in string-to-number.
1914 (read1): Use strtol to read integers, signal errors on strtol's
1915 overflow and use floats if strtol's output is too large for
1916 Elisp integers.
1917
1918 2009-08-27 Eli Zaretskii <eliz@gnu.org>
1919
1920 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1921 (make-buildobj-SH): Fix last change.
1922 (SRC): Move to before where it's first used.
1923
1924 2009-08-27 Kenichi Handa <handa@m17n.org>
1925
1926 * process.c (send_process): Use encode_coding_object instead of
1927 encode_coding_string to perform eol-conversion even if the string
1928 is unibyte.
1929
1930 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1931 character.
1932
1933 * cmds.c (Fself_insert_command): Avoid unnecessay
1934 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
1935
1936 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1937
1938 * callproc.c (Fcall_process): Remove always true #if.
1939
1940 * lisp.h: Replace #if 0 code for checking with text pointing to
1941 the --enable-checking configure flag.
1942
1943 * emacs.c (main): Mention the --enable-profiling configure flag
1944 instead of using CFLAGS.
1945
1946 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
1947
1948 * Makefile.in (buildobj.h): New target.
1949 (doc.o): Depend on it.
1950 (temacs${EXEEXT}): Don't generate buildobj.lst.
1951 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1952 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1953 ($(BLD)/doc.$(O)): Depend on it.
1954 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1955 provided by Eli Zaretskii.)
1956 ($(TEMACS)): Don't generate buildobj.lst.
1957 * doc.c: Include buildobj.h.
1958 (buildobj): New static variable.
1959 (Fsnarf_documentation): Use it, instead of opening and reading
1960 buildobj.lst.
1961
1962 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
1963
1964 * dbusbind.c (Fdbus_call_method)
1965 (Fdbus_call_method_asynchronously): Use English numeric format for
1966 timeout values in doc string.
1967
1968 2009-08-25 Kenichi Handa <handa@m17n.org>
1969
1970 * alloc.c (mark_char_table): New function.
1971 (mark_object): Use mark_char_table for a char-table.
1972
1973 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1974 (CHAR_TABLE_REF): Use it.
1975
1976 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
1977
1978 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1979 before invoking the newly build emacs to check for load-path
1980 shadowing.
1981
1982 2009-08-22 Glenn Morris <rgm@gnu.org>
1983
1984 * Makefile.in (bootstrap_exe): New variable.
1985 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1986 Use ${bootstrap_exe}.
1987
1988 2009-08-22 Eli Zaretskii <eliz@gnu.org>
1989
1990 * coding.h (encode_coding_string): Don't encode unibyte strings.
1991 (Bug#4047)
1992
1993 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
1994
1995 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1996
1997 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1998 intended as hotfix only.
1999 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2000
2001 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2002
2003 * nsterm.m (ns_get_color): Update documentation properly for last
2004 change, and clean up loose ends in the code left by it. Fix
2005 longstanding bug with 16-bit hex parsing, and add support for
2006 yet another X11 format (rgb:r/g/b) for compatibility.
2007 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2008 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2009
2010 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2011
2012 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2013
2014 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
2015
2016 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2017 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2018 (xd_initialize, xd_pending_messages): Check, whether
2019 $DBUS_SESSION_BUS_ADDRESS is set.
2020
2021 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2022
2023 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2024
2025 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2026
2027 2009-08-20 Glenn Morris <rgm@gnu.org>
2028
2029 * emacs.c (system-type): Doc fix.
2030
2031 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2032
2033 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2034 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2035
2036 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
2037
2038 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2039 New functions.
2040 (xd_initialize): Revert change from 2009-08-16.
2041
2042 2009-08-18 Kenichi Handa <handa@m17n.org>
2043
2044 * fontset.c (Ffontset_font): If a nil element is found in a
2045 font-group vector, return nil.
2046
2047 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
2048
2049 * process.c (status_notify): Don't perform redisplay.
2050 (Fdelete_process, list_processes_1, process_send_signal):
2051 Expliticly perform redisplay.
2052 (wait_reading_process_output): Always check process status, but
2053 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2054
2055 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
2056
2057 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
2058 (XFLOAT_INIT): New macro for storing a float value.
2059 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2060 * fns.c (sxhash): Copy out the value of a float in order to
2061 examine its bytes.
2062 * dbusbind.c (xd_append_arg): Likewise.
2063
2064 * emacs.c (main): Don't call syms_of_data twice.
2065
2066 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
2067
2068 * dbusbind.c (xd_initialize): Add connection file descriptor to
2069 input_wait_mask, in order to let select() detect, whether a new
2070 message has been arrived.
2071 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
2072
2073 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
2074
2075 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2076 New functions.
2077
2078 * lisp.h (xd_pending_messages): Declare.
2079
2080 * keyboard.c (readable_events): Call xd_pending_messages.
2081
2082 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
2083
2084 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
2085
2086 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2087
2088 * buffer.c (set_buffer_internal_1)
2089 (swap_out_buffer_local_variables): Check for unbound local
2090 variables (Bug#4138).
2091
2092 2009-08-14 Eli Zaretskii <eliz@gnu.org>
2093
2094 * process.c (create_pty): Fix last change.
2095
2096 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
2097
2098 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2099 (xbm_load_image): Caller changed.
2100 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
2101
2102 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
2103
2104 * process.c (create_pty): New function.
2105 (Fstart_process): Use it to allow Emacs to just associate a pty
2106 with the buffer. See associated change in gdb-mi.el.
2107 (list_processes_1): Deal with no program name.
2108 (start_process_unwind): Use pid == -2 to mean no process.
2109
2110 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2111
2112 * cmds.c (nonundocount): New global variable.
2113 (keys_of_cmds): Initialize it.
2114 (Fself_insert_command): Use it to combine upto 20 sequential chars
2115 into a single undo entry, just like the Qself_insert_command code in
2116 keyboard.c does.
2117 Call frame_make_pointer_invisible, also like the Qself_insert_command
2118 code in keyboard.c does.
2119 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2120 than its own local replacement for it.
2121
2122 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
2123
2124 * fns.c (concat): Don't re-set string length to its current value.
2125
2126 * coding.h (decode_coding_string, encode_coding_string):
2127 Use SBYTES macro.
2128
2129 * doprnt.c (doprnt_lisp): Delete unused function.
2130 (doprnt): Merge with doprnt1, discarding lispstrings code.
2131 * lisp.h (doprnt_lisp): Don't declare.
2132
2133 2009-08-07 Juri Linkov <juri@jurta.org>
2134
2135 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2136
2137 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2138
2139 * print.c (syms_of_print): Undo previous change.
2140
2141 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2142
2143 * lread.c (read1, syms_of_lread): Read hashtables back from the
2144 readable format.
2145
2146 * print.c (print_preprocess, print_object): Print hashtables fully
2147 and readably.
2148 (syms_of_print): Provide 'hashtable-print-readable.
2149
2150 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2151
2152 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2153 no family set.
2154 (nsfont_open): Handle case when entity has no family.
2155
2156 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2157
2158 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2159 element, not a list, for match case.
2160
2161 2009-07-28 Kenichi Handa <handa@m17n.org>
2162
2163 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2164 rigidly.
2165
2166 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2167 font_parse_xlfd. Check font properties more rigidly.
2168
2169 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2170
2171 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2172 bsd-common.h.
2173
2174 2009-07-27 Kenichi Handa <handa@m17n.org>
2175
2176 * xfaces.c (face_with_height): Call font_clear_prop.
2177
2178 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
2179
2180 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2181
2182 * xterm.c (x_term_init): Use Qx.
2183
2184 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2185
2186 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
2187 (ns_get_color): Revert 2009-07-16 change.
2188
2189 2009-07-25 Eli Zaretskii <eliz@gnu.org>
2190
2191 * lread.c (syms_of_lread) <force_load_messages>: New variable.
2192 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
2193
2194 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
2195
2196 * coding.h (decode_coding_string, encode_coding_string):
2197 Use SCHARS macro.
2198
2199 * lread.c: Rewrite 2009-07-21 changes.
2200 (load_depth): Delete.
2201 (Qload_in_progress): New variable.
2202 (load_unwind): Don't reference load_depth or load_in_progress.
2203 (Fload): Likewise; specbind Qload_in_progress instead.
2204 (init_lread): Don't initialize load_depth.
2205 (syms_of_lread): Initialize and protect Qload_in_progress.
2206
2207 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2208
2209 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2210
2211 2009-07-23 Yavor Doganov <yavor@gnu.org>
2212
2213 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2214
2215 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2216
2217 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
2218 Bugs 3792, 3720, 2402.
2219 (ns_lookup_indexed_color): Check for bad index.
2220 (ns_index_color): Init unused slot to 0.
2221 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2222 Bug 3714, possibly 3082.
2223
2224 2009-07-22 Jason Rumney <jasonr@gnu.org>
2225
2226 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2227 Position IME window at cursor (Bug#2570).
2228 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2229 (globals_of_w32fns): Dynamically load functions required above.
2230
2231 * w32term.c (w32_draw_window_cursor): Send message to reposition
2232 any IME window.
2233
2234 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2235
2236 * fileio.c: Revert 2009-07-16 changes.
2237 (Vauto_save_include_big_deletions): New variable.
2238 (Fdo_auto_save): Disable auto-save only if
2239 auto-save-include-big-deletions is nil.
2240
2241 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2242
2243 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2244 the overflowed pixels into account (Bug#3879).
2245
2246 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
2247
2248 * lread.c (load_depth): New variable.
2249 (Fload, load_unwind, init_lread): Set it to the load recursion
2250 depth; set load_in_progress as a simple boolean based on the
2251 current load_depth. (Bug#3892)
2252
2253 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2254
2255 * nsfont.m (ns_has_attribute): Remove.
2256 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2257
2258 2009-07-18 Juri Linkov <juri@jurta.org>
2259
2260 * process.c (Fset_process_query_on_exit_flag): Mention killing
2261 a buffer in docstring.
2262
2263 2009-07-17 Kenichi Handa <handa@m17n.org>
2264
2265 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2266
2267 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2268
2269 * nsfns.m (Fns_set_alpha): Remove function.
2270 (syms_of_nsfns): Don't defsubr it.
2271
2272 * nsterm.m (ns_get_color): Remove incompatible color formats.
2273 (ns_color_to_lisp): Generate #rrggbb color format string.
2274
2275 2009-07-16 Richard Stallman <rms@gnu.org>
2276
2277 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2278 (Fset_buffer_auto_saved): Handle save_length = -2.
2279
2280 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
2281
2282 * xterm.c (Qx_gtk_map_stock): New var.
2283
2284 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2285 of calling intern each time.
2286
2287 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2288
2289 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2290 does tiling.
2291
2292 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2293
2294 2009-07-14 Kenichi Handa <handa@m17n.org>
2295
2296 * font.c (font_vconcat_entity_vectors): New function.
2297 (struct font_sort_data): New member font_driver_preference.
2298 (font_compare): Check font_driver_preference.
2299 (font_sort_entities): The format of the first argument changed.
2300 (font_delete_unmatched): Likewise.
2301 (font_list_entities): The return type changed.
2302 (font_select_entity): The format of the second argument changed.
2303 (font_find_for_lface): Adjuste for the above changes.
2304 Don't suppress the checking of C even if the repertory supports it.
2305 (Flist_fonts): Adjust for the above changes.
2306
2307 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2308 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
2309 Reject a font who has adstyle property that is different from a
2310 langname derived from registry property.
2311 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
2312
2313 2009-07-13 Eli Zaretskii <eliz@gnu.org>
2314
2315 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2316 local copy of dirfilename.
2317
2318 2009-07-13 Kenichi Handa <handa@m17n.org>
2319
2320 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2321 against max_char.
2322
2323 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2324 calling XSYMBOL (sym).
2325
2326 2009-07-11 Eli Zaretskii <eliz@gnu.org>
2327
2328 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2329 New function.
2330 (directory_files_internal) [WINDOWSNT]:
2331 Bind w32-get-true-file-attributes to either t or nil, depending whether
2332 the filesystem of the directory is fast or slow.
2333
2334 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2335 file name.
2336 (is_slow_fs): New function.
2337 (stat): Use it to determine whether to issue more system calls to
2338 get accurate file attributes, when w32-get-true-file-attributes is
2339 `local'.
2340
2341 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2342
2343 * xfns.c (Fx_select_font): Remember last font selected in
2344 x_last_font_name and use that the next time. Also try the frame
2345 parameter font-parameter as default to the font dialog.
2346
2347 2009-07-10 Kenichi Handa <handa@m17n.org>
2348
2349 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2350
2351 2009-07-09 Eli Zaretskii <eliz@gnu.org>
2352
2353 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2354
2355 * w32.c (stat): Treat UNC file names as residing on remote
2356 drives. (Bug#3542)
2357
2358 2009-07-09 Kenichi Handa <handa@m17n.org>
2359
2360 * fontset.c (fontset_find_font): Fix previous change.
2361
2362 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
2363
2364 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2365 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2366 error flag.
2367
2368 2009-07-08 Kenichi Handa <handa@m17n.org>
2369
2370 * fontset.c (fontset_find_font): Fix the logic of handling
2371 charset_matched.
2372 (font_for_char): Delete unused var.
2373 (generate_ascii_font_name): Delete it.
2374
2375 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2376
2377 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2378 (encode_coding_sjis): Fix the code range check.
2379
2380 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
2381
2382 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2383 (Fexpand_file_name): Copy string data properly (Bug#3772).
2384
2385 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2386
2387 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2388 first MapNotify.
2389
2390 2009-07-07 Kenichi Handa <handa@m17n.org>
2391
2392 * character.h (unibyte_has_multibyte_table): Delete extern.
2393 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2394
2395 * charset.c (Fset_charset_priority): Update charset_unibyte.
2396 (syms_of_charset): Initialize charset_unibyte.
2397
2398 * character.c (unibyte_has_multibyte_table): Delete it.
2399 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2400 charset_unibyte.
2401 (multibyte_char_to_unibyte_safe): Likewise.
2402 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2403
2404 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
2405 (x_produce_glyphs): Likewise.
2406
2407 * .gdbinit (xcharset): Fix the treating $arg0.
2408
2409 2009-07-04 Eli Zaretskii <eliz@gnu.org>
2410
2411 Emulation of `getloadavg' on MS-Windows.
2412 * w32.c: Include float.h
2413 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2414 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2415 (get_native_system_info, get_system_times): New functions.
2416 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2417 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2418 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2419 g_b_init_get_system_times, and num_of_processors.
2420
2421 2009-07-03 Jason Rumney <jasonr@gnu.org>
2422
2423 * w32term.c (w32_initialize): Use standard types.
2424
2425 2009-07-03 Eli Zaretskii <eliz@gnu.org>
2426
2427 * dired.c (Ffile_attributes): Decode user and group names by the
2428 locale's encoding. (Bug#3443)
2429
2430 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2431
2432 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2433 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2434
2435 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2436
2437 * term.c (init_tty): Remove spurious #ifdef.
2438
2439 * m/mips.h: Mention this file is also used for netbsd.
2440 * m/pmax.h: Remove file.
2441
2442 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2443
2444 * xterm.h (struct x_display_info): Add invisible_cursor.
2445 (struct x_output): Add current_cursor.
2446
2447 * xterm.c (XTtoggle_invisible_pointer): New function.
2448 (x_define_frame_cursor): Don't define cursor if invisible or the
2449 same as before. Set current_cursor.
2450 (x_create_terminal): Set toggle_invisible_pointer_hook.
2451
2452 * xfns.c (make_invisible_cursor): New function.
2453 (x_set_mouse_color): Call make_invisible_cursor.
2454 Set current_cursor.
2455 (x_window): Set current_cursor.
2456
2457 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2458
2459 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2460 inserting a character.
2461 (read_avail_input): Call frame_make_pointer_visible.
2462
2463 * frame.c (Vmake_pointer_invisible): New variable.
2464 (frame_make_pointer_invisible, frame_make_pointer_visible):
2465 New functions.
2466 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2467
2468 * frame.h: Declare frame_make_pointer_invisible and
2469 frame_make_pointer_visible.
2470 (struct frame): Add pointer_invisible.
2471
2472 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2473
2474 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2475 frame isn't visible.
2476 (xg_frame_resized): If width/height is -1, get size of window
2477 from X server.
2478
2479 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2480 for MapNotify.
2481
2482 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
2483 here or call change_frame_size. Just call flush_and_sync.
2484 (flush_and_sync): Reintroduce.
2485
2486 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
2487
2488 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
2489
2490 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2491 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2492
2493 * frame.h: Declare Qsticky.
2494
2495 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2496
2497 * nsfns.m (ns_frame_parm_handlers): Ditto.
2498
2499 * frame.c: Declare Qsticky.
2500 (frame_parms): Add sticky.
2501
2502 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2503
2504 * xterm.h: Declare x_set_sticky.
2505
2506 * xterm.c (x_set_sticky): New function.
2507
2508 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2509 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2510 xg_tool_bar_proxy_help_callback.
2511
2512 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2513
2514 * frame.c: Qmaximized is new.
2515 (x_set_frame_parameters): Do not handle fullscreen specially.
2516 Only set width and height if explicitly set.
2517 (x_set_fullscreen): Handle Qmaximized.
2518 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2519 (syms_of_frame): Initialize Qmaximized.
2520
2521 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2522 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
2523
2524 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
2525 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2526 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
2527 set gravity to NorthWestGravity when USE_GTK.
2528 (set_wm_state): New function.
2529 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
2530 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2531 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
2532 or the case when no window manager is running. That means remove calls
2533 to x_real_positions and x_fullscreen_adjust.
2534
2535 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2536 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2537 flush_and_sync.
2538 (xg_height_changed): New function.
2539 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
2540 and gtk_window_set_policy. Set frame gravity after parsing the
2541 geometry string.
2542 (xg_update_frame_menubar, free_frame_menubar)
2543 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2544 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2545 Remove calls to xg_frame_set_char_size.
2546
2547 2009-07-01 Kenichi Handa <handa@m17n.org>
2548
2549 * keyboard.c (decode_keyboard_code): New function.
2550 (tty_read_avail_input): Decode the input bytes if necessary.
2551
2552 * coding.c (setup_coding_system):
2553 Initialize coding->carryover_bytes to 0.
2554 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2555 use Qno_conversion.
2556
2557 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2558
2559 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2560
2561 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
2562
2563 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
2564
2565 2009-06-30 Jason Rumney <jasonr@gnu.org>
2566
2567 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2568 is already loaded.
2569 Set user model ID if supported (bug#1849).
2570
2571 2009-06-29 Jim Meyering <meyering@redhat.com>
2572
2573 Remove useless if-before-xfree test.
2574 * nsfont.m (nsfont_close): Remove useless test.
2575 * term.c (delete_tty): Likewise.
2576 * w32.c (system_process_attributes): Likewise.
2577 * w32font.c (w32font_close): Likewise.
2578 * xfaces.c (x_free_gc): Likewise.
2579 * xselect.c (buffer): Likewise.
2580
2581 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2582
2583 * process.c (send_process): Keep decoded string in a local
2584 variable and protect it from GC. (Bug#3521)
2585
2586 2009-06-28 Eli Zaretskii <eliz@gnu.org>
2587
2588 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2589 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2590
2591 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
2592
2593 * xdisp.c (start_display, handle_face_prop)
2594 (move_it_vertically_backward, cursor_row_fully_visible_p)
2595 (redisplay_window, try_window_id, produce_image_glyph):
2596 Delete some #ifdef-ed out code chunks that are now obsolete.
2597
2598 * xterm.c (x_update_window_begin, x_new_focus_frame)
2599 (x_scroll_bar_handle_click, handle_one_xevent)
2600 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2601 (x_make_frame_visible, x_make_frame_invisible)
2602 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2603 code chunks that are now obsolete.
2604
2605 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
2606
2607 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2608 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2609 for hours, when optimzation is enabled.
2610 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2611 (xd_read_message): Make them static.
2612
2613 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2614
2615 * term.c (turn_on_face): Allow simultaneously bold and dim
2616 terminal faces (Bug#3530).
2617
2618 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
2619
2620 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2621
2622 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2623 truncation glyphs (Bug#3686).
2624
2625 2009-06-27 Glenn Morris <rgm@gnu.org>
2626
2627 * m/pmax.h: Restore file, with only netbsd portions.
2628
2629 2009-06-26 David Reitter <david.reitter@gmail.com>
2630
2631 * nsterm.m (keydown): Avoid infinite loop.
2632
2633 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2634
2635 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2636 the arg FORCE_SYMBOL.
2637
2638 2009-06-25 Kenichi Handa <handa@m17n.org>
2639
2640 * fontset.c (fontset_find_font): When a usable rfont_def is found
2641 in a fallback font-group, make it the first element of the group.
2642
2643 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
2644
2645 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2646
2647 2009-06-24 Kenichi Handa <handa@m17n.org>
2648
2649 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2650 set for C.
2651 (fontset_font): Record the availability of a font for C both in
2652 the realized fontsets of the current one and the default one.
2653
2654 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2655
2656 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2657 conditional, it is always defined on AIX.
2658
2659 2009-06-23 Miles Bader <miles@gnu.org>
2660
2661 * window.c (Vrecenter_redisplay): New variable.
2662 (syms_of_window): Initialize it.
2663 (Qtty): New extern declaration.
2664 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2665
2666 2009-06-23 Jim Meyering <meyering@redhat.com>
2667
2668 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2669 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
2670 pointer dereferences are guaranteed to be valid.
2671
2672 2009-06-23 Kenichi Handa <handa@m17n.org>
2673
2674 * emacs.c (main): Call init_font ().
2675
2676 * font.h (Vfont_log): Extern it.
2677 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2678
2679 * font.c (font_sort_entities, font_list_entities)
2680 (font_matching_entity, font_open_entity)
2681 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2682 (Vfont_log): Delete static.
2683 (font_log_env_checked): Delete this variable.
2684 (font_add_log): Don't check font_log_env_checked.
2685 (font_deferred_log): Check Vfont_log.
2686 (init_font): New function.
2687
2688 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2689
2690 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2691
2692 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2693
2694 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2695
2696 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2697 (face_for_char): Don't call font_deferred_log here.
2698 (font_for_char): Likewise.
2699
2700 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
2701
2702 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2703 rather than its background_width for drawing the overline and
2704 underline (Bug#489).
2705
2706 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2707 rather than its background_width for drawing the overline and
2708 underline (Bug#489).
2709 (xg_default_icon_file): New variable.
2710 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2711 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
2712
2713 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2714 (load_overlay_strings): Remove externs.
2715 (fast_find_position): Function deleted.
2716 (mouse_face_from_buffer_pos): New function, based on
2717 fast_find_position. Correctly handle before-strings,
2718 display-strings, and after-strings (Bug#1220).
2719 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2720
2721 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2722
2723 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
2724 (move_it_in_display_line_to, move_it_in_display_line_to)
2725 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2726
2727 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2728
2729 * Branch for 23.1.
2730
2731 2009-06-21 Jason Rumney <jasonr@gnu.org>
2732
2733 * w32term.c (keyboard_codepage): New static variable.
2734 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2735 (w32_read_socket) [WM_CHAR]: Use it to decode character
2736 input (bug#3237).
2737 (w32_initialize): Initialize it.
2738 (codepage_for_locale): New function.
2739
2740 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
2741
2742 * process.c (status_message): Pass Faset index argument as a lisp
2743 object, so as to work with USE_LISP_UNION_TYPE.
2744
2745 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2746
2747 * coding.c (Ffind_coding_systems_region_internal):
2748 Cache checked characters.
2749
2750 2009-06-18 Kenichi Handa <handa@m17n.org>
2751
2752 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
2753
2754 2009-06-18 Andreas Schwab <aschwab@redhat.com>
2755
2756 * xdisp.c (redisplay_internal): Check that the frame is still
2757 live after redisplay of its windows.
2758 (redisplay_windows): Check that the window is still live.
2759
2760 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2761
2762 * coding.c (detect_coding_utf_16): Fix previous change.
2763
2764 2009-06-16 Kenichi Handa <handa@m17n.org>
2765
2766 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2767 UTF-16 by checking the dispersion of Eth and Oth bytes.
2768
2769 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2770
2771 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2772
2773 2009-06-15 Kenichi Handa <handa@m17n.org>
2774
2775 * process.c (status_message): Fix previous change. Be sure to
2776 decode a localized string.
2777
2778 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2779
2780 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2781 add comment explaining why.
2782
2783 2009-06-14 Sidney Markowitz <sidney@sidney.com>
2784
2785 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
2786
2787 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2788
2789 * nsfont.m (ns_attribute_value): Remove.
2790 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2791 (ns_has_attribute): Shrink the normal range.
2792 (ns_findfonts): Don't worry about requested spec in determining
2793 need for synthItal.
2794 (ns_get_covering_families): Retain scriptToFamilies.
2795
2796 2009-06-14 Seiji Zenitani <zenitani@mac.com>
2797
2798 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2799
2800 2009-06-11 Kenichi Handa <handa@m17n.org>
2801
2802 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2803 overhang for the static composition case.
2804
2805 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2806
2807 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2808 overhang for the automatic composition case.
2809
2810 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2811 composition case.
2812
2813 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
2814
2815 * xdisp.c (get_next_display_element): When handling wrap-prefix
2816 and line-prefix, treat \n as a control character (bug#3502).
2817
2818 2009-06-10 Kenichi Handa <handa@m17n.org>
2819
2820 * font.c (font_parse_family_registry): Fix for one-char foundry.
2821 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2822
2823 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2824
2825 * process.c (status_message): Fix handling of multibyte signal
2826 string (Bug#3499).
2827
2828 2009-06-09 Jim Meyering <meyering@redhat.com>
2829
2830 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2831 color name is missing.
2832
2833 2009-06-09 Kenichi Handa <handa@m17n.org>
2834
2835 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2836 FROM-CODE and TO-CODE are codepoints of CHARSET.
2837
2838 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2839
2840 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2841
2842 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2843
2844 Changes to support :script/:lang/:otf in NS font driver.
2845 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2846 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2847 indicate not part of font driver interface, and change callers.
2848 (ns_get_family): Remove pointless null check.
2849 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2850 ns_spec_to_descriptor, ns_descriptor_to_entity.
2851 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2852 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2853 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2854 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2855 (ns_get_req_script, ns_accumulate_script_ranges)
2856 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2857 New functions.
2858 (nsfont_list, nsfont_match): Use ns_findfonts.
2859 (nsfont_open): Use font descriptor instead of traits.
2860 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2861 (dump_glyphstring): Rename to ns_dump_glyphstring.
2862
2863 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2864
2865 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2866
2867 * fontset.c (fontset_from_font): Remove NS-specific code.
2868
2869 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
2870
2871 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2872 nonactive windows.
2873
2874 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
2875
2876 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
2877
2878 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2879
2880 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2881
2882 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
2883
2884 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2885 account for the overflowing of newlines into the last glyph on the
2886 display line (Bug#3482).
2887
2888 2009-06-05 David Reitter <david.reitter@gmail.com>
2889
2890 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2891 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
2892 Fns_selection_exists_p, Fns_selection_owner_p.
2893
2894 2009-06-03 Jason Rumney <jasonr@gnu.org>
2895
2896 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2897 available. (Bug#3379)
2898
2899 2009-05-29 Kenichi Handa <handa@m17n.org>
2900
2901 * coding.c (get_translation_table):
2902 Check Venable_character_translation.
2903
2904 2009-05-26 David Reitter <david.reitter@gmail.com>
2905
2906 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2907 (x_make_frame_visible): Move frame to front rather than calling
2908 ns_raise_frame().
2909 (keyDown:): Do not swallow events that aren't re-sent if frame
2910 isn't key window.
2911 (drawRect:): Do not set visibility/iconified flags because
2912 drawRect may be called by NSView even if the frame is hidden.
2913
2914 * nsfns.m (Fx_create_frame): Follow other ports in
2915 determining visibility; default to t. Ensure async_visible is set.
2916
2917 2009-05-23 Eli Zaretskii <eliz@gnu.org>
2918
2919 * dired.c (Ffile_attributes): Doc fix.
2920
2921 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
2922
2923 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2924
2925 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2926
2927 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2928 and xfont_scratch_props.
2929 (syms_of_xfont): Do it here instead.
2930 (xfont_find_ccl_program): Delete, unused.
2931 (xfont_open): Delete unused var `i'.
2932
2933 2009-05-21 Kenichi Handa <handa@m17n.org>
2934
2935 * fontset.c (Qlatin): Don't make it static.
2936
2937 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2938 New functions.
2939 (xfont_scripts_cache, xfont_scratch_props): New variables.
2940 (Qlatin, Vscalable_fonts_allowed): Extern it.
2941 (xfont_list_pattern): Argument changed. Callers changed.
2942 Check Vscalable_fonts_allowed. Check the support of a script.
2943 (xfont_list): Don't reject a font spec with :script property.
2944 (xfont_has_char): Fix setting of encoding.
2945 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2946 xfont_scratch_props.
2947
2948 2009-05-19 Kenichi Handa <handa@m17n.org>
2949
2950 * font.c (font_sort_entities): Rename from font_sort_entites.
2951 Callers changed.
2952
2953 2009-05-18 Kenichi Handa <handa@m17n.org>
2954
2955 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2956
2957 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2958
2959 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2960 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2961
2962 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2963
2964 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2965 (x_delete_terminal): Dissociate resource database from display and
2966 then call XrmDestroyDatabase before closing display.
2967
2968 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2969
2970 * nsterm.m (ns_read_socket): Remove unused variable.
2971 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2972 whether selected frame is viable before raising it (based on patch
2973 by David Reitter), and improve commentary.
2974 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
2975
2976 2009-05-15 Kenichi Handa <handa@m17n.org>
2977
2978 * font.c (Ffont_spec): Check arguments.
2979
2980 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
2981
2982 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2983 weight when testing attributes (Bug#3282).
2984
2985 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2986
2987 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2988 what we expect to get in the next ConfigureNotify event.
2989
2990 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2991 before Xft one (Bug#1696).
2992
2993 2009-05-07 David Reitter <david.reitter@gmail.com>
2994
2995 * nsfns.m (Fx_display_planes): Compute bitplanes using
2996 NSBitsPerPixelFromDepth (Bug#3207).
2997
2998 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
2999
3000 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3001
3002 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
3003
3004 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3005
3006 2009-05-07 David Reitter <david.reitter@gmail.com>
3007
3008 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3009 Respect mouse face background.
3010
3011 2009-05-07 David Reitter <david.reitter@gmail.com>
3012
3013 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3014 Mouse movement/highlight: bracket drawing operations
3015 in ns_update_begin and ns_update_end.
3016
3017 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3018
3019 * nsfns.m (ns_get_screen): Rewrite.
3020 Don't presume selected-frame is of type `ns'.
3021
3022 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3023 all drivers.
3024
3025 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3026
3027 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3028
3029 * keyboard.h (add_user_signal): Fix typo in extern.
3030
3031 * lisp.h (add_user_signal): Remove extern.
3032
3033 * unexelf.c (unexec): Consider a section to precede the .bss section
3034 if its addresses overlap that of .bss.
3035 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3036 instead of dumping process.
3037
3038 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3039
3040 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3041
3042 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3043
3044 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3045
3046 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3047
3048 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3049 any statements.
3050
3051 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3052
3053 * process.c (read_process_output): Make sure the current buffer is
3054 always restored.
3055
3056 * coding.c (record_conversion_result): Don't modify
3057 Vlast_code_conversion_error for successful result.
3058 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3059
3060 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3061
3062 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
3063 (load_charset_map): Remove unnecessary code.
3064
3065 2009-04-30 David Reitter <david.reitter@gmail.com>
3066
3067 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
3068 through f24.
3069
3070 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
3071
3072 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3073
3074 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3075 face_at_buffer_position.
3076 (face_before_or_after_it_pos, get_next_display_element)
3077 (note_mouse_highlight): Update face_at_buffer_position call.
3078
3079 * term.c (term_mouse_highlight):
3080 * msdos.c (IT_note_mouse_highlight):
3081 * fontset.c (Finternal_char_font):
3082 * font.c (font_at, font_range): Update face_at_buffer_position call.
3083
3084 * dispextern.h (face_at_buffer_position): Update prototype.
3085
3086 2009-04-30 Kenichi Handa <handa@m17n.org>
3087
3088 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
3089
3090 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3091
3092 * callproc.c (Fcall_process): Fix GC protection. Make sure
3093 current buffer is always restored.
3094
3095 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3096
3097 * atimer.c (init_atimer): Also clear stopped_atimers.
3098
3099 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3100
3101 * process.c (create_process): Clean up merger residues of
3102 2008-07-17 change.
3103
3104 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
3105
3106 * lread.c (Vread_circle): New variable.
3107 (read1): Disable recursive read if Vread_circle is nil.
3108
3109 2009-04-29 Kenichi Handa <handa@m17n.org>
3110
3111 * fontset.h (set_default_ascii_font): Delete extern.
3112
3113 * fontset.c (set_default_ascii_font): Delete this unused function.
3114
3115 * frame.c (x_set_font): When ARG is a font-object, check if the
3116 font-object matches with the ASCII font-spec of the frame's
3117 fontset. If not, create a new fontset for the frame. (Bug #3075)
3118
3119 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3120
3121 * fns.c (Flocale_info): Protect vector from GC during decoding.
3122
3123 * process.c (Fstart_process): Protect argv strings from GC during
3124 encoding.
3125
3126 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3127
3128 * sysdep.c: Include <ctype.h>.
3129
3130 2009-04-27 David Reitter <david.reitter@gmail.com>
3131
3132 * nsfont.m (nsfont_open): Remove unused variable shrink.
3133 Remove commented-out code.
3134
3135 2009-04-26 Johan Bockgård <bojohan@gnu.org>
3136
3137 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3138
3139 2009-04-25 Jason Rumney <jasonr@gnu.org>
3140
3141 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3142
3143 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3144
3145 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3146 Swap bytes in short integer if fringe bitmap width > 8.
3147
3148 2009-04-23 Kenichi Handa <handa@m17n.org>
3149
3150 * xfaces.c (Fx_list_fonts): If a font size is specified in
3151 PATTERN, set it in returned scalable fonts.
3152
3153 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
3154
3155 * keyboard.c (Fset_input_meta_mode): Doc fix.
3156
3157 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3158
3159 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
3160
3161 * coding.c (Fterminal_coding_system): Doc fix.
3162
3163 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3164 (Fx_display_pixel_height, Fx_display_planes)
3165 (Fx_display_color_cells, Fx_server_max_request_size)
3166 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3167 (Fx_display_mm_height, Fx_display_mm_width)
3168 (Fx_display_backing_store, Fx_display_visual_class)
3169 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3170 Doc fixes, replacing "terminal id" with "terminal object".
3171 (check_x_display_info): Handle terminal objects instead of
3172 terminal ids.
3173
3174 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3175 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
3176 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3177 Doc fixes, replacing "terminal id" with "terminal object".
3178
3179 2009-04-21 Kenichi Handa <handa@m17n.org>
3180
3181 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
3182 (font_score): Check AVGWIDTH too.
3183
3184 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3185 worst case.
3186 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3187 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
3188
3189 2009-04-19 Jason Rumney <jasonr@gnu.org>
3190
3191 The following changes fix Bug#3005 for wide glyphs on each platform,
3192 without reintroducing Bug#1258 for stretch glyphs.
3193
3194 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3195 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3196 get_phys_cursor_geometry.
3197
3198 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
3199 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3200 using get_phys_cursor_geometry.
3201
3202 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3203 correctly calculated.
3204
3205 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3206
3207 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3208 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
3209 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3210 is deprecated.
3211
3212 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3213
3214 * font.c (font_put_frame_data): Use xfree instead of free.
3215
3216 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
3217
3218 * w32font.c (Qja, Qko): Remove declarations.
3219 (syms_of_w32font): Don't DEFSYM them.
3220
3221 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
3222
3223 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3224
3225 * font.h (Qja, Qko): Extern them.
3226
3227 * ftfont.c (Qja, Qko): Remove declarations.
3228
3229 * xfont.c (Qja, Qko): Remove declarations.
3230
3231 2009-04-17 Kenichi Handa <handa@m17n.org>
3232
3233 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3234 string from a vector to handle Latin-1 characters correctly.
3235
3236 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3237 entity even if the cache hits.
3238
3239 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3240
3241 * search.c (boyer_moore): Use zero as marker value for a possible
3242 match instead of depending on overflow behavior. (Bug#2844)
3243
3244 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3245 * lisp.h: Adjust prototypes.
3246
3247 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
3248
3249 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3250 change (Bug#3003).
3251
3252 2009-04-16 Kenichi Handa <handa@m17n.org>
3253
3254 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
3255
3256 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3257 adstyle.
3258
3259 * ftfont.c (Qja, Qko): Don't make them static.
3260 (enum ftfont_cache_for): New enum.
3261 (fc_charset_table): Undo the previous change.
3262 (ftfont_get_latin1_charset): Delete it.
3263 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3264 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
3265 non-scarable font, try to get AVERAGE_WIDTH.
3266 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3267 Change ft_face_cache from a list of a hash-table. Don't check
3268 `ja' and `ko' adstyle here.
3269 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3270 FTFONT_CACHE_FOR_CHARET.
3271 (ftfont_get_charset): Undo the previous change.
3272 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
3273 (ftfont_close): Likewise.
3274 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3275
3276 * font.c (font_sort_entites): Change the meaning of the arg
3277 BEST-ONLY. Don't optimize for VEC of lenght 1.
3278 (font_select_entity): Just return the value of font_sort_entites.
3279
3280 * xfaces.c (merge_face_vectors): Reflect font properties in
3281 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3282 font_clear_prop if a face attribute doesn't change.
3283
3284 * charset.h (charset_ksc5601): Extern it.
3285
3286 * charset.c (charset_ksc5601): New variable.
3287 (Fdefine_charset_internal): Set charset_ksc5601.
3288 (init_charset_once): Initialize charset_ksc5601 to -1.
3289
3290 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3291
3292 * fileio.c (history_delete_duplicates): Remove unused declaration.
3293
3294 * callint.c (history_delete_duplicates): New declaration.
3295 (Fcall_interactively): Remove command history duplicates when
3296 history_delete_duplicates is true.
3297
3298 2009-04-14 Eli Zaretskii <eliz@gnu.org>
3299
3300 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3301
3302 2009-04-14 Kenichi Handa <handa@m17n.org>
3303
3304 * font.c (Ffont_info): Fix docstring. Fix the second element of
3305 the returned value (bug#2949).
3306
3307 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
3308
3309 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3310
3311 2009-04-14 Kenichi Handa <handa@m17n.org>
3312
3313 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3314 encoding charset is ascii_compatible.
3315
3316 * charset.c (Fdefine_charset_internal): Make charset
3317 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3318 code_offset is 0, and covers all ASCII characters.
3319
3320 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3321
3322 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3323 (ns_string_to_pasteboard_internal):
3324 * nsmenu.m (process_dialog):
3325 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3326 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3327 * lisp.h (Fx_load_color_file): Declare.
3328
3329 2009-04-13 Kenichi Handa <handa@m17n.org>
3330
3331 * font.c (font_delete_unmatched): Preserve the order of list elements.
3332 (font_select_entity): Suppress the code to optimize for the same
3333 kind of fonts.
3334 (font_load_for_lface): Get a font that supports at least ASCII
3335 characters.
3336
3337 * ftfont.c (Qja, Qko): New variables.
3338 (fc_charset_table): Delete uniquifier data for iso8859-1.
3339 (ftfont_get_latin1_charset): New function.
3340 (get_adstyle_property): New function.
3341 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3342 bitmap fonts.
3343 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3344 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3345 `ko' or `ja'.
3346 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
3347 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
3348 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3349 property.
3350 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3351 (syms_of_ftfont): DEFSYM Qja and Qko.
3352
3353 2009-04-09 Kenichi Handa <handa@m17n.org>
3354
3355 * charset.c (map_charset_chars): For a charset of `superset'
3356 method, fix calculation of code range.
3357
3358 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3359 from the list of extra properties.
3360 (font_clear_prop): Be sure to delete `:name' font property.
3361
3362 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3363
3364 * dispnew.c (redraw_overlapping_rows): Fix detection of
3365 overlapping for topmost and bottommost rows.
3366
3367 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
3368
3369 2009-04-06 Jason Rumney <jasonr@gnu.org>
3370
3371 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3372
3373 2009-04-06 Kenichi Handa <handa@m17n.org>
3374
3375 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3376
3377 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3378
3379 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3380
3381 * ftfont.c (ftfont_open): Fix checking of the return value of
3382 FT_Load_Char. Fix setting font->underline_thickness.
3383
3384 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
3385
3386 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3387 (Fterminal_parameters, Fterminal_parameter)
3388 (Fset_terminal_parameter): In doc string, refer to terminal
3389 objects rather than terminal ids.
3390
3391 2009-04-04 Eli Zaretskii <eliz@gnu.org>
3392
3393 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3394 ret_lim_data. (Bug#2867)
3395
3396 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
3397
3398 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3399 so they don't get wider than the window, matching 2006-01-23
3400 change to the partner function in xdisp.c (Bug#2800).
3401
3402 2009-04-03 Kenichi Handa <handa@m17n.org>
3403
3404 * print.c (print_object): Make each lowest sub_char_table start a
3405 new line (Bug#2866).
3406
3407 2009-04-02 Kenichi Handa <handa@m17n.org>
3408
3409 * fontset.c (fontset_font): Record no-font when a fontset
3410 explicitly tells not to try another font-specs.
3411
3412 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3413
3414 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3415
3416 2009-03-30 Kenichi Handa <handa@m17n.org>
3417
3418 * fontset.c (fontset_from_font): Specify only registry in a
3419 font-spec for all characters supported by that registry.
3420
3421 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3422 even if HAVE_M17N_FLT is not defined.
3423
3424 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3425
3426 * ftfont.c: Conditionalize prototyping and use of
3427 ftfont_variation_glyphs.
3428
3429 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3430
3431 * frame.c (delete_frame): Work around compiler bug.
3432
3433 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3434 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3435 Some more EMACS_INT.
3436 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3437
3438 * xdisp.c (dump_glyph): Fix typo.
3439
3440 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3441 (adjust_markers_gap_motion, adjust_markers_for_delete)
3442 (adjust_markers_for_insert, adjust_point)
3443 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3444 (make_gap, copy_text, count_size_as_multibyte, insert)
3445 (insert_and_inherit, insert_before_markers)
3446 (insert_before_markers_and_inherit, insert_1)
3447 (count_combining_before, count_combining_after, insert_1_both)
3448 (insert_from_string, insert_from_string_before_markers)
3449 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3450 (insert_from_buffer_1, adjust_after_replace)
3451 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3452 (replace_range_2, del_range, del_range_1, del_range_byte)
3453 (del_range_both, del_range_2, modify_region)
3454 (prepare_to_modify_buffer, signal_before_change)
3455 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3456 for buffer positions and sizes.
3457 * lisp.h: Adjust prototypes accordingly.
3458
3459 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3460 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3461 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3462
3463 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3464
3465 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3466
3467 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3468 lines and columns so we keep the same pixel height and width.
3469
3470 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3471 the property _NET_WM_STATE has changed.
3472 (x_handle_net_wm_state): New function to update frame parameter
3473 fullscreen.
3474 (x_term_init): Initialize atoms for _NET_WM_STATE.
3475
3476 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3477
3478 2009-03-27 Kevin Ryde <user42@zip.com.au>
3479
3480 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3481 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3482 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3483 (Fgpm_mouse_stop): Pass that new parameter.
3484 * termhooks.h (close_gpm): Adjust prototype.
3485
3486 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3487
3488 * lisp.h (Fx_focus_frame): Declare.
3489
3490 * callint.c (Fcall_interactively): For '^' just delegate the work to
3491 handle-shift-selection.
3492 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3493
3494 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
3495
3496 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3497
3498 * data.c (Qinteractive_form): New variable.
3499 (Finteractive_form): Use it.
3500
3501 * eval.c (Fcommandp): Use Qinteractive_form.
3502
3503 2009-03-24 Jason Rumney <jasonr@gnu.org>
3504
3505 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3506 Calculate total size precisely. Decode environment variables
3507 before substituting. (Bug#38)
3508
3509 2009-03-24 Kenichi Handa <handa@m17n.org>
3510
3511 * font.c (find_font_encoding): Return Qnil for unsupported
3512 encoding (Bug#2722).
3513
3514 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3515
3516 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3517 that gdpy is set.
3518
3519 2009-03-22 Alan Mackenzie <acm@muc.de>
3520
3521 * callint.c (Finteractive): Clarify the doc string - even
3522 promptless elements need \n separators.
3523
3524 2009-03-22 Jason Rumney <jasonr@gnu.org>
3525
3526 * w32term.c (syms_of_w32term): Doc fix for
3527 x-use-underline-position-properties.
3528
3529 2009-03-21 Eli Zaretskii <eliz@gnu.org>
3530
3531 * w32.c (getpwuid): Change argument type to unsigned.
3532 (struct w32_id): Change type of `rid' member to unsigned.
3533 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3534 argument ID to unsigned. All callers changed.
3535 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3536
3537 2009-03-20 Eli Zaretskii <eliz@gnu.org>
3538
3539 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3540 negative, produce a float value.
3541
3542 * dired.c (make_uid, make_gid): New functions.
3543 (Ffile_attributes): Use them to avoid negative UID and GID.
3544
3545 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
3546
3547 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3548 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3549 Fix typos in docstrings.
3550
3551 2009-03-19 Kenichi Handa <handa@m17n.org>
3552
3553 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
3554 changed, use font_load_for_lface to get a new font object.
3555 Call free_realized_fontset after handling ASCII font change.
3556
3557 * frame.c (x_set_font): Handle the case that ARG is a cons.
3558
3559 2009-03-19 Glenn Morris <rgm@gnu.org>
3560
3561 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3562
3563 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
3564
3565 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3566
3567 2009-03-19 Kenichi Handa <handa@m17n.org>
3568
3569 * charset.c (load_charset_map_from_file): When a mapfile can't be
3570 loaded, signal an error.
3571
3572 2009-03-18 Eli Zaretskii <eliz@gnu.org>
3573
3574 * dired.c (Ffile_attributes): Make sure UID and GID are always
3575 positive, even if the value is too large for a positive EMACS_INT.
3576 Doc fix.
3577
3578 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3579
3580 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3581
3582 * xmenu.c (xdialog_show): Move Fredisplay call ...
3583 (Fx_popup_dialog): ... here.
3584
3585 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3586
3587 * dired.c (file_name_completion): Disable the first optimization just
3588 installed, since it is not implemented correctly.
3589
3590 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3591
3592 * dired.c (file_name_completion): Check completion-ignored-extensions
3593 only if the entry can affect bestmatch.
3594 Stop the search early, as Ftry_completion already does.
3595
3596 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
3597
3598 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
3599
3600 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
3601
3602 * keyboard.c (parse_menu_item): Don't display remappings as menu
3603 equivalent bindings (Bug#788).
3604
3605 2009-03-15 Jason Rumney <jasonr@gnu.org>
3606
3607 * w32term.h (WM_EMACS_PAINT): New message.
3608 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3609 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3610 before passing to lisp thread. (Bug#950)
3611
3612 2009-03-14 David Reitter <david.reitter@gmail.com>
3613
3614 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3615 variable as it was never reset.
3616 (ns_term_init): Remove initialization of Lisp-settable defaults
3617 and ns_expand_space.
3618 (-setPanelFromDefaultValues): Remove ns_expand_space.
3619 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3620 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
3621 i.e. no additional spacing, similar to Carbon port.
3622
3623 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3624 * nsfns.m (ns-popup-prefs-panel): Remove.
3625
3626 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3627
3628 * sound.c (alsa_configure): Remove call to deprecated
3629 snd_pcm_sw_params_set_xfer_align.
3630
3631 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
3632
3633 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3634 after clicking in a detached tool bar.
3635 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3636
3637 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3638
3639 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3640 int/Lisp_Object mixup).
3641
3642 2009-03-13 Kenichi Handa <handa@m17n.org>
3643
3644 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
3645 Handle NAME nil and t correctly. Callers changed.
3646 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3647 (set_fontset_font): Change ARG to a vector. Handle range_list in
3648 ARG correctly.
3649 (Fset_fontset_font): Fix the case that TARGET is both a script
3650 name and charset name. Adjust the arg to set_fontset_font for
3651 the above change.
3652 (fontset_from_font): Fix previous change.
3653 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
3654 entry. If FONTSET is the default fontset, don't set the extra
3655 slot of the returning char-table.
3656
3657 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
3658
3659 * nsfns.m (Fx_close_connection): Doc fix.
3660 (Fns_do_applescript): Reflow docstring.
3661 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3662 (Fx_display_pixel_width, Fx_display_pixel_height)
3663 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3664 Fix typos in docstrings.
3665 (Fns_set_alpha): Fix typos in error messages.
3666
3667 2009-03-12 David Reitter <david.reitter@gmail.com>
3668
3669 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
3670 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3671 were used for such events.
3672
3673 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3674 (toggleToolbar, performDragOperation, runHelp): Use it.
3675
3676 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
3677 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3678
3679 2009-03-11 Kenichi Handa <handa@m17n.org>
3680
3681 * font.h (font_open_by_spec): Extern it.
3682
3683 * font.c (font_open_by_spec): New function.
3684 (font_open_by_name): Use font_open_by_spec.
3685
3686 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3687 fontset of the frame.
3688
3689 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3690 modify the default font of frames that use this fontset.
3691 (num_auto_fontsets): New variable.
3692 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3693 name. Be sure to set FONTSET_ASCII to the correct font name.
3694 (update_auto_fontset_alist): New function.
3695
3696 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
3697
3698 * makefile.w32-in: Update dependencies.
3699
3700 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3701
3702 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3703
3704 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3705
3706 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3707
3708 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
3709
3710 * lread.c (Feval_buffer): Doc fix.
3711
3712 2009-03-09 Kenichi Handa <handa@m17n.org>
3713
3714 * charset.c (Qfile_name_handler_alist): Extern it.
3715 (load_charset_map_from_file): Temporarily bind
3716 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3717
3718 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
3719
3720 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3721 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
3722
3723 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3724
3725 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3726 (x_set_window_size): Change back to calculated method of setting
3727 toolbar height under Cocoa. (Bug#2546)
3728 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3729 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3730
3731 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3732
3733 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3734 accelerator in parens under GNUstep.
3735
3736 2009-03-06 Kenichi Handa <handa@m17n.org>
3737
3738 These changes are to detect incorrect composition sequence without
3739 looking ahead the source. (Bug#2370)
3740
3741 * coding.h: Include "composite.h".
3742 (enum compisition_state): New enum.
3743 (struct compisition_status): New struct.
3744 (struct iso_2022_spec): New member cmp_status.
3745 (struct emacs_mule_spec): New struct.
3746 (struct coding_system): New members ctext_extended_segment_len and
3747 embedded_utf_8. Change the union member
3748 spec.emacs_mule_full_support to spec.emacs_mule.
3749
3750 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3751 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
3752 (MAX_ANNOTATION_LENGTH): Define to 5.
3753 (ADD_COMPOSITION_DATA): New arg nbytes.
3754 (emacs_mule_char): New arg cmp_status.
3755 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3756 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3757 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3758 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3759 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3760 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3761 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3762 (EMACS_MULE_COMPOSITION_END): New macro.
3763 (emacs_mule_finish_composition): New function.
3764 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3765 (decode_coding_emacs_mule): Avoid long looking ahead while
3766 handling composition.
3767 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3768 (ENCODE_COMPOSITION_RULE): New macro.
3769 (finish_composition): New function.
3770 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3771 (DECODE_COMPOSITION_START): New implementation.
3772 (DECODE_COMPOSITION_END): Likewise.
3773 (STORE_COMPOSITION_RULE): New macro.
3774 (decode_coding_iso_2022): Avoid long looking ahead while handling
3775 composition, CTEXT extended segment, and embedded UTF-8.
3776 (setup_coding_system): For a coding of type iso-2022, reset
3777 CODING_ISO_EXTSEGMENT_LEN (coding) and
3778 CODING_ISO_EMBEDDED_UTF_8 (coding).
3779 (get_translation): Delete arguments last_block, from_nchars,
3780 to_nchars. Callers changed.
3781 (produce_chars): Don't modify charbuf. Adjusted for the change of
3782 get_translation.
3783 (produce_composition): Adjust for the new annotation sequence.
3784 (handle_composition_annotation): Likewise.
3785 (consume_chars): Adjust for the change of get_translation.
3786
3787 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3788
3789 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
3790
3791 2009-03-05 Kenichi Handa <handa@m17n.org>
3792
3793 * font.c (font_select_entity): New function.
3794 (font_find_for_lface): Use font_select_entity to select a font.
3795
3796 * fontset.c (fontset_find_font): If a font found without
3797 restricting to the characters C doesn't support C, try to find a
3798 font with C restriction.
3799
3800 2009-03-04 Nikolaj Schumacher <me@nschum.de>
3801
3802 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
3803
3804 2009-03-04 Jason Rumney <jasonr@gnu.org>
3805
3806 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
3807 characters that have already been read. (Bug#2569)
3808
3809 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3810 Log an error message if check_image_size failed.
3811 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
3812 (gs_load): Mention max-image-size in size error message. (Bug#2560)
3813
3814 2009-03-02 Eli Zaretskii <eliz@gnu.org>
3815
3816 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3817 when decoding process output.
3818
3819 2009-03-01 Richard M Stallman <rms@gnu.org>
3820
3821 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3822
3823 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3824
3825 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3826
3827 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3828 (decode_coding_emacs_mule, decode_coding_iso_2022)
3829 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3830 (decode_coding_raw_text, decode_coding_charset)
3831 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3832 Honor inhibit-eol-conversion. (Bug #2186)
3833
3834 2009-02-28 Jason Rumney <jasonr@gnu.org>
3835
3836 * coding.c (detect_coding_charset): If not checking latin extra,
3837 fail on characters between 0x80 and 0xA0. (Bug#2354)
3838
3839 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3840
3841 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
3842 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
3843
3844 2009-02-27 Glenn Morris <rgm@gnu.org>
3845
3846 * callint.c (Finteractive): Doc fix.
3847
3848 2009-02-27 Kenichi Handa <handa@m17n.org>
3849
3850 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3851
3852 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
3853
3854 * font.c (font_style_to_value): Set value for unknown symbols to
3855 100 instead of 255.
3856 (weight_table, slant_table, width_table): Treat "unspecified" as
3857 the default value.
3858
3859 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
3860
3861 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3862
3863 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
3864
3865 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3866 error as soon as a recursive load is detected.
3867
3868 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3869
3870 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3871 before caching.
3872
3873 2009-02-24 Kenichi Handa <handa@m17n.org>
3874
3875 * fontset.c (fontset_find_font): Fix the condition for checking
3876 unavailable font.
3877
3878 2009-02-24 Glenn Morris <rgm@gnu.org>
3879
3880 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3881 whitespace that confuses documentation.
3882
3883 2009-02-23 Miles Bader <miles@gnu.org>
3884
3885 * process.c (Flist_system_processes, Fprocess_attributes)
3886 (syms_of_process): Rename `system-process-attributes' to
3887 `process-attributes'.
3888
3889 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3890
3891 * coding.h (struct coding_system): Make safe_charsets a pointer to
3892 unsigned char.
3893 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3894 being 255.
3895 (SAFE_CHARSET_P): Likewise.
3896 (setup_iso_safe_charsets): Properly setup safe_charsets.
3897 (Fdefine_coding_system_internal): Likewise.
3898 (setup_coding_system): Likewise. Remove unneeded casts.
3899 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3900 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3901 unneeded casts.
3902
3903 * insdel.c (del_range_2): Don't modify gap contents when called
3904 from decode_coding_object. (Bug#1809)
3905
3906 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
3907
3908 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3909 Qfont_object.
3910 (Ftype_of): Recognize font objects.
3911
3912 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3913
3914 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3915 moved to data.c.
3916
3917 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3918
3919 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3920 async_iconified. Based on a patch by Christian Lynbech
3921 <christian.lynbech@tieto.com>.
3922 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3923
3924 2009-02-20 Glenn Morris <rgm@gnu.org>
3925
3926 * syntax.c (Fskip_chars_forward): Fix doc typo.
3927
3928 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
3929
3930 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3931
3932 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
3933
3934 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3935
3936 2009-02-19 Kenichi Handa <handa@m17n.org>
3937
3938 * coding.c (detect_coding): Preserve coding->mode.
3939 Don't overflow coding->carryover. (Bug#2370)
3940
3941 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3942
3943 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3944
3945 2009-02-18 Kenichi Handa <handa@m17n.org>
3946
3947 * font.c (font_check_otf_features): Fix handling of `nil' element.
3948 (Ffont_spec): Describe :lang and :otf in the docstring.
3949
3950 2009-02-16 Andreas Schwab <schwab@suse.de>
3951
3952 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3953 string.
3954
3955 2009-02-16 Kenichi Handa <handa@m17n.org>
3956
3957 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
3958 (Bug#1723)
3959
3960 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
3961
3962 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
3963
3964 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3965 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3966
3967 2009-02-14 Eli Zaretskii <eliz@gnu.org>
3968
3969 * msdos.c (MAX_SCREEN_BUF): New macro.
3970 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3971 Encode the entire run of glyphs sharing the same face, instead of
3972 doing that one glyph at a time (fixes a bug with displaying
3973 double-size characters).
3974
3975 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3976
3977 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3978
3979 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3980 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
3981 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
3982
3983 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
3984 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
3985
3986 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3987
3988 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3989 invisible areas.
3990
3991 2009-02-12 Jason Rumney <jasonr@gnu.org>
3992
3993 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3994 (add_font_entity_to_list): Call check_face_name even when family
3995 is unspecified.
3996
3997 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3998 Release DC when finished. Use NULL window to refer to desktop.
3999 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
4000
4001 * w32font.c (add_font_entity_to_list): Fix check for substituted
4002 raster fonts. (Bug#2219)
4003
4004 2009-02-12 Kenichi Handa <handa@m17n.org>
4005
4006 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4007 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4008 (autocmp_chars): Use fast_looking_at. Don't compose more
4009 characters than MAX_COMPOSITION_COMPONENTS.
4010 (find_automatic_composition): While looking forward and backward,
4011 check static composition. Fix where to stop looking forward.
4012 (composition_adjust_point): Fix checking of static composition.
4013 (Fcomposition_get_gstring): Pay attention to
4014 MAX_COMPOSITION_COMPONENTS.
4015
4016 * lisp.h (fast_looking_at): Extern it.
4017
4018 * search.c (fast_looking_at): New function.
4019
4020 * term.c (encode_terminal_code): Adjust for the change of
4021 <struct glyph>.u.cmp.to.
4022 (append_composite_glyph): Likewise.
4023
4024 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
4025 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4026 composition.
4027 (append_composite_glyph): Adjust for the change of
4028 <strcut glyph>.u.cmp.to.
4029
4030 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
4031
4032 * casetab.c (init_casetab_once):
4033 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4034 * font.c (font_update_lface):
4035 * fontset.c (Fnew_fontset):
4036 * ftfont.c (ftfont_drive_otf):
4037 * xfont.c (xfont_open):
4038 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4039
4040 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4041
4042 * fileio.c (Fwrite_region): !NILP -> CONSP.
4043
4044 2009-02-10 Andreas Schwab <schwab@suse.de>
4045
4046 * process.c (send_process): Properly relocate pointer into data
4047 when using encoded data. (Bug#2272)
4048
4049 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4050
4051 * coding.c (detect_coding_charset): Fix previous change.
4052
4053 2009-02-08 Jason Rumney <jasonr@gnu.org>
4054
4055 * w32fns.c (w32_hide_hourglass): Handle case where frame
4056 disappeared while hourglass was displayed. (Bug #2193)
4057
4058 2009-02-07 Andreas Schwab <schwab@suse.de>
4059
4060 * unexelf.c (unexec): Fix error message.
4061
4062 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4063
4064 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
4065 when modal window is active. (Bug #2152)
4066 (applicationShouldTerminate:): Remove now-unneeded while loop
4067 around NSRunAlertPanel.
4068
4069 * nsmenu.m (popupSession): New file-global variable.
4070 (pop_down_menu): End the popupSession before closing dialog.
4071 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4072 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4073 don't query NSApp for events (just sleep instead).
4074
4075 2009-02-07 Eli Zaretskii <eliz@gnu.org>
4076
4077 * coding.c (syms_of_coding) <translation-table-for-input>:
4078 Modify doc string to discourage use for character code unification.
4079
4080 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4081
4082 * atimer.c (run_timers): Update pending_atimers.
4083
4084 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
4085
4086 * image.c (svg_load_image): Fix last change.
4087
4088 * xfns.c (Fx_create_frame): Signal an error if no font is
4089 found (Bug#2147).
4090
4091 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
4092
4093 * character.c (syms_of_character) <script-representative-chars>:
4094 Fix typo in docstring.
4095
4096 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4097
4098 * nsmenu.m (pop_down_menu): New function.
4099 (ns_popup_dialog): Call it on unwind.
4100 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4101 call timer_check() (Bug#2154).
4102 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4103 handling_signal is set.
4104 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4105
4106 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
4107
4108 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4109
4110 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4111
4112 * keyboard.c (poll_for_input_1, handle_async_input):
4113 Set handling_signal under HAVE_NS.
4114
4115 2009-02-04 Glenn Morris <rgm@gnu.org>
4116
4117 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4118
4119 2009-02-04 Kenichi Handa <handa@m17n.org>
4120
4121 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4122
4123 * charset.c (Fchar_charset): New optional arg restriction.
4124
4125 * coding.h (coding_system_charset_list): Extern it.
4126
4127 * coding.c (coding_system_charset_list): New function.
4128
4129 * composite.c: Include coding.h and termhooks.h.
4130 (composition_gstring_p): Fix for the terminal case.
4131 (composition_gstring_width): Likewise.
4132 (fill_gstring_body): Likewise.
4133 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4134 the frame.
4135 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4136 is within a composition.
4137 (Fcomposition_get_gstring): Fix the terminal case.
4138
4139 * term.c (encode_terminal_code): Fix handling of composition.
4140 (produce_composite_glyph): For static composition, get pixel_width
4141 from struct composition.
4142
4143 2009-02-02 Andreas Schwab <schwab@suse.de>
4144
4145 * unexelf.c (unexec): Handle unaligned bss offset.
4146
4147 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4148
4149 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4150 XT,w32read_socket changes to ns_read_socket.
4151
4152 * keyboard.c (handle_interrupt): Don't call
4153 quit_throw_to_read_char() under NS.
4154
4155 * blockinput.h: Remove NS-specific code.
4156
4157 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4158
4159 * dispnew.c (window_change_signal): Don't try to get the size of a
4160 suspended tty frame.
4161 * term.c (Fresume_tty): Resize if the size has changed while the
4162 tty was suspended.
4163
4164 * alloc.c (mark_stack): Properly conditionalize previous change.
4165
4166 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4167
4168 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4169 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4170 Remove; this code is not used on Windows.
4171
4172 2009-01-30 Eli Zaretskii <eliz@gnu.org>
4173
4174 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4175 EOLs that also has stray ^M characters.
4176
4177 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4178
4179 * atimer.c (run_timers, alarm_signal_handler):
4180 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4181 * w32inevt.c (w32_console_read_socket):
4182 * w32term.c (w32_read_socket):
4183 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4184
4185 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
4186
4187 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4188 Initialize it as a relative filename pattern.
4189 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4190 (Fcall_process_region): Simplify temp file creation using
4191 temporary-file-directory.
4192
4193 2009-01-29 Eli Zaretskii <eliz@gnu.org>
4194
4195 * msdos.c: Rename pending_signals to msdos_pending_signals.
4196 (sig_suspender, sigprocmask): Adjust.
4197
4198 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
4199
4200 * keyboard.c (pending_signals): New var.
4201 (poll_for_input, input_available_signal, init_keyboard): Set it.
4202 (process_pending_signals): New function.
4203
4204 * lisp.h (QUIT): Check pending_signals instead of
4205 interrupt_input_pending. Use process_pending_signals.
4206
4207 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
4208
4209 * process.c (wait_reading_process_output): Use process_pending_signals.
4210
4211 * sysdep.c (emacs_write): Use process_pending_signals.
4212
4213 * xterm.c (XTread_socket): Update pending_signals.
4214
4215 * w32term.c (w32_read_socket): Update pending_signals.
4216
4217 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4218
4219 2009-01-29 Kenichi Handa <handa@m17n.org>
4220
4221 * xftfont.c (xftfont_has_char): New function.
4222 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4223
4224 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4225
4226 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4227 under GNUstep.
4228 (ns_query_color): New declaration.
4229
4230 * nsterm.m (ns_confirm_quit): New variable.
4231 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4232 (EmacsApp-applicationShouldTerminate:): Use it.
4233 (EmacsPrefsController): Let user set it.
4234 (ns_query_color): New function.
4235 (ns_defined_color): Use it.
4236 (ns_initialize): Drop.
4237 (ns_term_init): Add two lines from ns_initialize(), and set
4238 input_interrupt_mode to nil.
4239
4240 * image.c (svg_load_image): Don't right-shift background RGB when
4241 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
4242
4243 2009-01-28 Kenichi Handa <handa@m17n.org>
4244
4245 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4246 (fontset_get_font_group): Remember that no font-group is specified
4247 for C.
4248
4249 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
4250
4251 * fns.c (concat): Check for string overflow (bug#1787).
4252
4253 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4254 Quadruple undo limits (bug#1501).
4255
4256 2009-01-27 Kenichi Handa <handa@m17n.org>
4257
4258 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4259 directly use GT_Get_Char_index.
4260
4261 * xftfont.c (struct xftfont_info): New member `index'.
4262
4263 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4264 (Ffontset_font): Adjust for the change of fontset entry.
4265
4266 2009-01-26 Kenichi Handa <handa@m17n.org>
4267
4268 * fontset.c (fontset_find_font): Fix handling of non-cons return
4269 value of fontset_get_font_group.
4270 (fontset_font): Revert last change.
4271
4272 2009-01-26 Jason Rumney <jasonr@gnu.org>
4273
4274 * w32font.c (w32font_list_internal): Return quickly if registry is
4275 unknown. Simplify final return.
4276 (add_font_entity_to_list): Break complex logic down into more
4277 manageable chunks. Move unknown registry check to
4278 w32font_list_internal.
4279
4280 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4281
4282 Changes to remove Feval calls from GUI under NS.
4283
4284 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4285 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
4286 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4287
4288 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4289 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4290 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4291 instead of NON_ASCII_KEYSTROKE_EVENT.
4292 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4293 (EmacsApp-applicationShouldTerminate:): Query user.
4294 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4295 instead of Feval.
4296
4297 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4298
4299 * keyboard.c (kbd_buffer_get_event): Check for it.
4300 (keys_of_keyboard): Define lispy keys for
4301 ns-put/unput-working-text.
4302
4303 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4304 versions.
4305 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4306
4307 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
4308
4309 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
4310 setting current_buffer directly. (Bug#2044)
4311
4312 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
4313
4314 * fontset.c (fontset_font): If we know there is no font, don't do
4315 any work. (Bug#1952, bug#1990).
4316
4317 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
4318
4319 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4320
4321 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
4322 (ns_no_defaults): New declaration.
4323 (main): Use it.
4324
4325 * nsterm.h (ns_no_defaults): New declaration.
4326
4327 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
4328
4329 * nsterm.m (ns_no_defaults): New variable.
4330 (ns_initialize): Don't read defaults when ns_no_defaults.
4331 (EmacsView-readSelectionFromPasteboard:)
4332 (writeSelectionToPasteboard:types:): New stubbed-out methods for
4333 NSServicesRequests protocol. (Bug#1435)
4334 (ns_dumpglyphs_stretch): New function.
4335 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
4336 of 2008-11-15 to other terms. (Bug#615)
4337
4338 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4339
4340 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4341
4342 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4343 call for Sparc64.
4344
4345 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4346
4347 * nsfns.m:
4348 * nsgui.h:
4349 * nsmenu.m:
4350 * nsselect.m:
4351 * nsterm.h:
4352 * nsterm.m: Remove '23' comments that indicated code added during
4353 update from emacs-20 -> emacs-23.
4354
4355 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4356
4357 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4358 ns_alternate_modifier. (Bug#1217)
4359
4360 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4361 Display all shortcuts, including those w/o super modifier.
4362
4363 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4364
4365 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
4366
4367 * fileio.c (Vwrite_region_post_annotation_function)
4368 (Vwrite_region_annotation_buffers): New vars.
4369 (build_annotations_unwind): Just reset
4370 Vwrite_region_annotation_buffers.
4371 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4372 Call write-region-post-annotation-function.
4373 (build_annotations): Add to Vwrite_region_annotation_buffers if
4374 buffer changes.
4375
4376 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4377
4378 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4379 Tiger.
4380 * nsfns.m (ns_do_applescript):
4381 Conditionalize typeUTF16ExternalRepresentation on Tiger.
4382
4383 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4384
4385 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4386
4387 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4388
4389 * nsmenu.m (NSMENUPROFILE): Change #if style.
4390
4391 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4392
4393 * nsterm.m (x_set_frame_alpha): Add prototype.
4394 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4395 handle Ctrl-tab. (Bug#1841)
4396 (ns_get_color): Use unsigned long long for scanned hex string value.
4397 (ns_term_shutdown): Abort on non SIGTERM signals.
4398 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
4399 (EmacsPrefsController-setPanelFromDefaultValues): New function.
4400 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
4401 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
4402 (ns_defined_color): Fix settings of the XColor variable fields:
4403 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
4404
4405 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
4406 DPI. (Bug#1316)
4407 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4408 values in onTiger section.
4409
4410 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
4411
4412 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4413 Check return value of font_spec_from_name.
4414 (Fx_list_fonts): Doc fix. (Bug#1951)
4415
4416 * font.c (font_spec_from_name): Return Qnil if font name could not
4417 be parsed.
4418 (font_parse_name): Treat a `?' character as part of an XLFD.
4419
4420 * fns.c (Fsubstring): Doc fix.
4421
4422 2009-01-19 Kenichi Handa <handa@m17n.org>
4423
4424 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
4425 (ftfont_list): Likewise.
4426
4427 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
4428
4429 * dbusbind.c (Fdbus_register_signal):
4430 * process.c (conv_sockaddr_to_lisp):
4431 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4432
4433 * callproc.c (Fgetenv_internal): Doc fix.
4434
4435 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
4436
4437 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4438 it is not even used.
4439
4440 2009-01-16 Glenn Morris <rgm@gnu.org>
4441
4442 * font.c (Ffont_variation_glyphs): Silence compiler.
4443
4444 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
4445
4446 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4447 Reported by David Robinow <drobinow@gmail.com>.
4448
4449 2009-01-15 Kenichi Handa <handa@m17n.org>
4450
4451 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4452
4453 2009-01-14 Jason Rumney <jasonr@gnu.org>
4454
4455 * frame.c (x_set_font): Always store a font to the font parameter,
4456 never a fontset. (Bug#1562)
4457
4458 2009-01-14 Kenichi Handa <handa@m17n.org>
4459
4460 * coding.c (TWO_MORE_BYTES): New macro.
4461 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
4462
4463 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
4464
4465 * font.c (font_clear_prop): If clearing the family, clear the font
4466 width index too.
4467
4468 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4469
4470 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
4471
4472 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4473 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4474 functions, use sizeof.
4475
4476 2009-01-12 Martin Rudalics <rudalics@gmx.at>
4477
4478 * keyboard.c (read_char): Fix case where last_nonmenu_event
4479 returned a bad value with submenus. (Bug#447)
4480
4481 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
4482
4483 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4484 family, clear the font width index too.
4485
4486 2009-01-11 Jason Rumney <jasonr@gnu.org>
4487
4488 * keyboard.c (cmd_error_internal): Exit when errors occur before
4489 frame creation and not in daemon mode. (Bug#1836)
4490
4491 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
4492
4493 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4494 of a display vector, backtrack.
4495 (try_window_reusing_current_matrix): Check glyph type before
4496 referencing charpos member.
4497
4498 2009-01-10 Eli Zaretskii <eliz@gnu.org>
4499
4500 Fix Bug #876:
4501
4502 * coding.c (inhibit_null_byte_detection): New variable.
4503 (detect_coding, detect_coding_system): Don't pay attention to null
4504 bytes if inhibit_null_byte_detection is non-zero.
4505 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
4506 <inhibit-iso-escape-detection>: Doc fix.
4507
4508 2009-01-09 Jason Rumney <jasonr@gnu.org>
4509
4510 * w32font.c (add_font_entity_to_list): Don't report unknown
4511 Windows charset as any unrecognized registry. (Bug#1548)
4512 Only report Unicode Plane 2 fonts as unicode-sip.
4513
4514 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
4515
4516 * xfaces.c (Fx_font_family_list): Delete function.
4517 Move compatibility version to faces.el.
4518
4519 * font.c (Ffont_family_list): Return a list of strings, not symbols.
4520
4521 2009-01-09 Martin Rudalics <rudalics@gmx.at>
4522
4523 * frame.c (x_set_frame_parameters): Remember requested value for
4524 fullscreen before it's reset by the parameter handler.
4525
4526 2009-01-09 Glenn Morris <rgm@gnu.org>
4527
4528 * keyboard.c (last_command_char): For clarity, rename to...
4529 (last_command_event): ... and update all users.
4530 (last_input_char): For clarity, rename to...
4531 (last_input_event): ... and update all users.
4532 (last-command-char, last-input-char): Move to subr.el as aliases.
4533 * cmds.c, commands.h: Update for last_command_char rename.
4534
4535 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
4536
4537 * font.c (font_open_for_lface): Handle unspecified height attribute.
4538
4539 2009-01-08 Jason Rumney <jasonr@gnu.org>
4540
4541 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4542 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4543 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4544 Don't declare.
4545 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
4546 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4547
4548 2009-01-07 Kenichi Handa <handa@m17n.org>
4549
4550 * fileio.c (Finsert_file_contents): In the case of replace,
4551 remember the coding system used for decoding in
4552 coding_system (Bug#1039).
4553
4554 * coding.c (decode_coding_utf_8): Check byte_after_cr before
4555 breaking the loop. (Bug#870)
4556 (decode_coding_utf_16, decode_coding_emacs_mule)
4557 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4558 (decode_coding_charset): Likewise.
4559
4560 2009-01-05 Martin Rudalics <rudalics@gmx.at>
4561
4562 * frame.c (x_set_frame_parameters): Make sure height (width) get
4563 applied when fullwidth (fullheight) is set. (Bug#1522)
4564
4565 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
4566
4567 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4568 (utc_base): Declare as ULONGLONG, not long double.
4569 (convert_time_raw): Delete.
4570 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4571 (initialize_utc_base): New function.
4572 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4573 (convert_from_time_t): Use initialize_utc_base; compute result with
4574 64-bit arithmetic.
4575 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4576
4577 2009-01-03 Eli Zaretskii <eliz@gnu.org>
4578
4579 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
4580 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4581 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4582 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4583 [!subprocesses]: Define.
4584 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4585 (Flist_system_processes, Fsystem_process_attributes)
4586 [!subprocesses]: Call list_system_processes and
4587 system_process_attributes instead of returning Qnil.
4588
4589 * dosfns.c (system_process_attributes, list_system_processes):
4590 New functions.
4591
4592 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4593
4594 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4595 Don't use the default (no-op) implementation.
4596
4597 2009-01-03 Jason Rumney <jasonr@gnu.org>
4598
4599 * keyboard.c (parse_modifiers_uncached): Wheel events are
4600 clicks (bug#687).
4601
4602 * w32term.c (x_query_colors, x_query_color): New functions.
4603
4604 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4605 (svg_load_image): Cast returned pointers from dynamically loaded
4606 functions. Eliminate W32 specific code.
4607
4608 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4609
4610 * nsfns.m (x_set_foreground_color, x_set_background_color)
4611 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4612 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4613 x_ prefix instead of ns_. Update references.
4614 (syms_of_nsfns): Add a FIXME comment.
4615
4616 * nsterm.m (x_set_cursor_type): New prototype.
4617 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4618
4619 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4620 for Solaris instead of incorrectly providing Qutime and Qcutime.
4621
4622 2009-01-02 Eli Zaretskii <eliz@gnu.org>
4623
4624 * w32.c (process_times): Compute sum of utime and stime.
4625 (system_process_attributes): Add Qtime to the alist.
4626
4627 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4628 and add them to the alist.
4629
4630 * process.c (top level) <Qtime, Qctime>: New variables.
4631 (syms_of_process): staticpro them.
4632 (Fsystem_process_attributes): Add their documentation to the doc
4633 string.
4634
4635 * process.h: Declare Qtime and Qctime.
4636
4637 2009-01-02 Jason Rumney <jasonr@gnu.org>
4638
4639 * image.c (Qgobject): New symbol.
4640 (syms_of_image): Initialize it.
4641 (init_svg_functions): Load some functions from gobject library.
4642
4643 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4644
4645 * frame.c (make_terminal_frame): Remove redundant code and useless
4646 block.
4647
4648 2009-01-01 Andreas Schwab <schwab@suse.de>
4649
4650 * process.c (conv_sockaddr_to_lisp): Add workaround for
4651 getsockname bug on BSD.
4652
4653 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
4654
4655 * xfns.c (x_create_tip_frame): Set border width of the X window.
4656
4657 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
4658
4659 2009-01-01 Jason Rumney <jasonr@gnu.org>
4660
4661 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
4662 Don't block input, as per earlier xterm.c changes.
4663
4664 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4665
4666 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4667 (ns_appkit_version_int): New function.
4668 (x-server-version): Use ns_appkit_version_int and follow 21+
4669 convention of returning 3 integers.
4670
4671 2008-12-30 Kenichi Handa <handa@m17n.org>
4672
4673 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4674 (CHAR_SURROGATE_PAIR_P): New macro.
4675
4676 * font.h (struct font_driver): New member get_variation_glyphs.
4677
4678 * font.c (font_range): Don't require a font for a variation selector.
4679 (Ffont_variation_glyphs): New function.
4680 (syms_of_font): Defsubr it.
4681
4682 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4683 ftfont_variation_glyphs.
4684 (setup_otf_gstring): New function.
4685 (ftfont_drive_otf): Use it.
4686 (ftfont_shape_by_flt): Handle variation selector.
4687 (ftfont_variation_glyphs): New function.
4688
4689 2008-12-30 Martin Rudalics <rudalics@gmx.at>
4690
4691 * frame.c (Vemacs_iconified): Remove.
4692
4693 2008-12-30 Jason Rumney <jasonr@gnu.org>
4694
4695 * frame.c (store_frame_param, x_get_arg): Enable newer code on
4696 WINDOWSNT too, as related changes have already been synced. (Bug#117)
4697
4698 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
4699
4700 * indent.c (Fvertical_motion): Don't advance iterator if we have
4701 reseated to the desired position.
4702
4703 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4704 checking for pos match.
4705
4706 2008-12-30 Kenichi Handa <handa@m17n.org>
4707
4708 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4709 just get the low 8-bit of the code.
4710
4711 * font.c (font_intern_prop): Validate str as multibyte.
4712
4713 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4714
4715 * dispextern.h (struct face): Move lface and hash from the middle
4716 of bitfields.
4717
4718 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4719
4720 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4721
4722 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4723 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4724 instead of intervals.h.
4725
4726 2008-12-26 Andreas Schwab <schwab@suse.de>
4727
4728 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4729 cons.
4730
4731 2008-12-26 Martin Rudalics <rudalics@gmx.at>
4732
4733 * textprop.c (Qminibuffer_prompt): New variable.
4734 (syms_of_textprop): Initialize it.
4735 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4736 in minibuffer-prompt face. (Bug#1662)
4737
4738 2008-12-25 Jason Rumney <jasonr@gnu.org>
4739
4740 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4741
4742 2008-12-24 Jason Rumney <jasonr@gnu.org>
4743
4744 * ralloc.c (r_alloc_reset_variable): New function.
4745
4746 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
4747 record of what points where. (Bug#716)
4748
4749 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4750
4751 * minibuf.c (read_minibuf): Follow the non-interactive case when
4752 running as a daemon, before detaching.
4753
4754 2008-12-22 Andreas Schwab <schwab@suse.de>
4755
4756 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4757 * gtkutil.c (free_widget_value): Use xfree instead of free.
4758
4759 2008-12-22 Martin Rudalics <rudalics@gmx.at>
4760
4761 * frame.c (delete_frame): New function derived from
4762 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4763 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4764 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4765 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4766 * frame.h: Extern delete_frame.
4767 * window.c (window_loop):
4768 * terminal.c (delete_terminal):
4769 * xterm.c (x_connection_closed):
4770 * xfns.c (Fx_hide_tip):
4771 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
4772
4773 2008-12-21 Jason Rumney <jasonr@gnu.org>
4774
4775 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4776 when character maps to .notdef character.
4777
4778 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4779
4780 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4781
4782 2008-12-20 Jason Rumney <jasonr@gnu.org>
4783
4784 * frame.c (Fmake_terminal_frame): Raise an error when called from
4785 a graphical frame on Windows. (Bug#1325)
4786
4787 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4788
4789 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4790
4791 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
4792
4793 * minibuf.c (Fread_buffer): Doc fix.
4794
4795 2008-12-20 Jason Rumney <jasonr@gnu.org>
4796
4797 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
4798 server name in UNC paths. (Bug#719)
4799
4800 * coding.c (decode_coding): Clear chars_at_source flag when using
4801 charbuf. (Bug#1035)
4802
4803 2008-12-19 Daniel Engeler <engeler@gmail.com>
4804
4805 * sysdep.c (serial_configure): Fix typo.
4806
4807 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4808
4809 * sysdep.c: Include alloca.h.
4810 (system_process_attributes): Add implementation for Solaris.
4811
4812 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
4813
4814 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4815
4816 Reorganize implementation of Flist_system_processes and
4817 Fsystem_process_attributes. No functional changes.
4818 * process.c: Don't #include pwd.h, grp.h and limits.h.
4819 (Flist_system_processes): Just call list_system_processes.
4820 (Fsystem_process_attributes): Just call system_process_attributes.
4821 (procfs_list_system_processes, time_from_jiffies)
4822 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4823 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4824
4825 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4826 (list_system_processes): Rename from
4827 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4828 Provide a do nothing implementation.
4829 (system_process_attributes): Rename from
4830 procfs_list_system_processes.
4831 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4832 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
4833
4834 * w32.c (list_system_processes): Rename from
4835 w32_list_system_processes.
4836 (system_process_attributes): Rename from
4837 w32_system_process_attributes.
4838
4839 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4840
4841 * process.h (w32_list_system_processes)
4842 (w32_system_process_attributes): Remove.
4843 (list_system_processes, system_process_attributes):
4844 New prototypes.
4845
4846 2008-12-19 Kenichi Handa <handa@m17n.org>
4847
4848 * xfont.c (xfont_decode_coding_xlfd): New function.
4849 (xfont_encode_coding_xlfd): New function.
4850 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4851 (xfont_list): Decode and encode XLFD by iso-8859-1.
4852 (xfont_match): Likewise.
4853 (xfont_list_family): Likewise.
4854 (xfont_open): Likewise.
4855
4856 * ftfont.c (ftfont_open): Generate a multibyte string if given
4857 names are utf-8.
4858
4859 * xftfont.c (xftfont_open): Generate a multibyte string if given
4860 names are utf-8.
4861
4862 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4863
4864 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4865 changed.
4866 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4867 clicked on a detached tool bar button.
4868
4869 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4870
4871 * emacs.c (main): Print and error and exit when no data is read
4872 from the pipe.
4873
4874 2008-12-17 Jason Rumney <jasonr@gnu.org>
4875
4876 * w32font.c (w32font_has_char): Always return -1.
4877
4878 2008-12-16 Kenichi Handa <handa@m17n.org>
4879
4880 * font.c (font_open_entity): Fix previous change.
4881
4882 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4883
4884 * process.c: Include <limits.h>.
4885
4886 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
4887
4888 * font.c (font_update_drivers): Fix mistake in reconstructing the
4889 driver list.
4890
4891 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
4892
4893 * font.c (font_clear_cache): Fix format of font cache data.
4894
4895 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
4896
4897 * xftfont.c (xftfont_open): Free Xft font pattern if
4898 XftFontOpenPattern fails.
4899
4900 * xterm.c (x_free_frame_resources): Remove extraneous call to
4901 free_frame_faces.
4902
4903 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4904
4905 * xterm.c (x_delete_display): Move xim_close_dpy call to
4906 x_delete_terminal.
4907 (x_delete_terminal): Call xim_close_dpy.
4908
4909 2008-12-13 Jason Rumney <jasonr@gnu.org>
4910
4911 * w32font.c (intern_font_name): New function.
4912 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4913 (w32font_open_internal, Fx_select_font): Decode font name.
4914 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4915
4916 * w32font.h (intern_font_name): Declare new function.
4917
4918 * w32uniscribe.c (add_opentype_font_name_to_list):
4919 Use intern_font_name.
4920
4921 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4922
4923 * frame.c (Fdelete_frame): Call free_font_driver_list.
4924
4925 * font.c (free_font_driver_list): Implement missing function.
4926
4927 * w32term.c (w32_term_init): Don't initialize the image cache
4928 here; it will be done in init_frame_faces.
4929
4930 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4931 (struct x_display_info): Remove unused member null_pixel. New
4932 member xim_callback_data.
4933
4934 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4935 (xim_initialize): Save pointer to callback function data.
4936 (xim_close_dpy): Free callback function data. Call XCloseIM,
4937 reverting 2008-11-04 change by David Smith.
4938 (x_term_init): Don't initialize the image cache here; it will be
4939 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4940 (x_delete_display): Free x_dnd_atoms member.
4941
4942 2008-12-13 Kenichi Handa <handa@m17n.org>
4943
4944 * font.c (font_rescale_ratio): Moved from xfaces.c.
4945 Argument type changed. Handle a font-spec too.
4946 (font_score): Check Vface_font_rescale_alist.
4947 (font_open_entity): Likewise. (Bug#1547)
4948
4949 * xfaces.c (font_rescale_ratio): Moved to font.c.
4950
4951 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4952
4953 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4954
4955 2008-12-12 Jason Rumney <jasonr@gnu.org>
4956
4957 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4958 Vwindow_system_version to the real w32 major version.
4959
4960 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4961
4962 * term.c (init_tty): Move setting the terminal name before the
4963 potential user: maybe_fatal.
4964
4965 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
4966
4967 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4968 all callers changed. Call free_frame_faces to free the face cache.
4969
4970 2008-12-11 Jason Rumney <jasonr@gnu.org>
4971
4972 * w32font.c (fill_in_logfont): Don't assume symbol script means
4973 SYMBOL_CHARSET. (Bug#547)
4974
4975 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
4976 size for surrogates. (Bug#1096, bug#872)
4977
4978 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4979
4980 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4981
4982 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4983
4984 * process.c (Fsystem_process_attributes, syms_of_process):
4985 Fix typo in name of Ssystem_process_attributes.
4986 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4987
4988 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4989
4990 * syntax.c (Fmodify_syntax_entry): Doc fix.
4991
4992 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4993
4994 * font.c (Ffont_spec): Move usage to end of docstring.
4995
4996 2008-12-10 Jason Rumney <jasonr@gnu.org>
4997
4998 * w32font.c (Qcham): New symbol.
4999 (font_supported_scripts): Add cham, and comments for other new
5000 scripts in bitfield from OpenType spec.
5001 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5002 contain characters beyond the bmp.
5003
5004 2008-12-10 Kenichi Handa <handa@m17n.org>
5005
5006 * ftfont.c (fc_charset_table): Add "unicode-sip".
5007 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
5008 Qunicode_sip.
5009
5010 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5011
5012 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5013 (Fcoding_system_put): Use QCdefault_char.
5014 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5015
5016 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
5017
5018 * xftfont.c (syms_of_xftfont): Fix typo.
5019
5020 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
5021
5022 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5023
5024 * emacs.c (main): Close daemon_pipe on exec.
5025
5026 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
5027
5028 * termchar.h (struct tty): New members termcap_term_buffer and
5029 termcap_strings_buffer.
5030
5031 * term.c (encode_terminal_code): Free any previous memory blocks
5032 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
5033 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5034 All callers changed.
5035 (init_tty): Store termcap data and string buffers in new struct
5036 tty members termcap_term_buffer and termcap_strings_buffer.
5037 (delete_tty): Free them.
5038 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
5039
5040 2008-12-07 Seiji Zenitani <zenitani@mac.com>
5041
5042 * nsfns.m (ns_set_background_color): Remove code duplication.
5043 It was a substitute for face-transparency on OS X 10.3.
5044
5045 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
5046
5047 * coding.c (make_conversion_work_buffer): Disable buffer
5048 modification hooks in the work buffer.
5049
5050 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5051
5052 * process.c (procfs_system_process_attributes): If `nread' has a
5053 negative value, assign zero to it.
5054
5055 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
5056
5057 * eval.c (Vdebug_on_error): Doc fix.
5058
5059 2008-12-05 Kenichi Handa <handa@m17n.org>
5060
5061 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5062 second character is a combining character.
5063
5064 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5065
5066 * process.c (procfs_system_process_attributes): Don't use cmd,
5067 cmdsize, and q without initializing them first.
5068
5069 2008-12-04 Jason Rumney <jasonr@gnu.org>
5070
5071 * w32font.c (w32font_draw): Initialize orig_clip before getting
5072 it, and delete it when finished.
5073
5074 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5075
5076 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5077 case when running as a daemon before detaching.
5078
5079 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
5080
5081 * w32.c (init_environment): Don't unload library shell32.dll.
5082
5083 2008-12-03 Kenichi Handa <handa@m17n.org>
5084
5085 * font.c (font_at): Set `multibyte' at first.
5086
5087 * coding.c (decode_coding_charset): Check type of an element of
5088 vector VALIDS.
5089 (encode_coding_emacs_mule): Be sure to set `code'.
5090
5091 * fontset.c (face_for_char): Handle invalid charset property correctly.
5092 (font_for_char): Likewise.
5093
5094 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
5095
5096 * font.c (Fopen_font): Compute pixel size correctly.
5097 (font_update_lface): Handle fonts with corrupted size specs,
5098 i.e. non-int and non-float.
5099
5100 * ftfont.c (ftfont_match): Initialize entity variable.
5101 (ftfont_resolve_generic_family): Avoid using uninitialized var.
5102 (ftfont_list_family): Initialize list var earlier.
5103
5104 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5105
5106 * xterm.c (x_draw_glyph_string): Fall back on
5107 underline_minimum_offset for underline position.
5108
5109 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5110
5111 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5112
5113 * character.c (c_string_width): Specify the type for LEN.
5114
5115 2008-12-03 Kenichi Handa <handa@m17n.org>
5116
5117 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
5118 (decode_coding_utf_8): Likewise.
5119 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
5120 (produce_chars): Initialize consumed_chars to 0.
5121
5122 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5123
5124 * keyboard.c (make_lispy_position): Only use PT if the selected
5125 window is current.
5126
5127 2008-12-02 Andreas Schwab <schwab@suse.de>
5128
5129 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5130
5131 * doprnt.c (doprnt1): Fix size of charbuf.
5132
5133 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5134
5135 * keyboard.c (timer_check): Revert last change.
5136
5137 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
5138
5139 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5140
5141 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
5142
5143 * makefile.w32-in: Update dependencies.
5144 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5145
5146 2008-12-01 Andreas Schwab <schwab@suse.de>
5147
5148 * font.c (register_font_driver): Use xmalloc.
5149 (font_put_frame_data): Likewise.
5150
5151 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
5152
5153 * xfaces.c (realize_x_face): Make abort condition clearer.
5154
5155 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5156
5157 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
5158
5159 * keyboard.c (timer_check): After a timer runs, ensure that the
5160 selected window's buffer is current.
5161
5162 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
5163
5164 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5165 It was accidentally restored by the Unicode merge.
5166
5167 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5168
5169 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
5170
5171 * w32proc.c: Include "coding.h".
5172 (Fw32_short_file_name): Encode filename passed to Windows API.
5173 (Fw32_long_file_name): Encode filename passed to Windows API and
5174 decode back the result. (Bug#1433)
5175
5176 2008-11-29 Kenichi Handa <handa@m17n.org>
5177
5178 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5179 not before accessing it.
5180
5181 * charset.c (Fdefine_charset_internal): After calculating
5182 min_char, max_char, and fastmap, copy the charset structure again.
5183 (encode_char): Fix the previous change.
5184
5185 2008-11-28 Seiji Zenitani <zenitani@mac.com>
5186
5187 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5188
5189 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5190
5191 * nsterm.m (x_set_frame_alpha): New function.
5192
5193 2008-11-27 Eli Zaretskii <eliz@gnu.org>
5194
5195 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5196
5197 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
5198
5199 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5200 pointer to check_face_name.
5201
5202 2008-11-27 Kenichi Handa <handa@m17n.org>
5203
5204 * category.h (SET_CATEGORY_SET): Call set_category_set.
5205 (set_category_set): Extern it.
5206
5207 * category.c (hash_get_category_set): New function.
5208 (Fmodify_category_entry): Adjusted for the change of
5209 char_table_ref_and_range. Call hash_get_category_set to get a
5210 category set to store in the table.
5211
5212 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5213 Funify_charset.
5214
5215 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
5216 (DECODE_CHAR): Check if the decoder vector is ready.
5217 (ENCODE_CHAR): Check if the encoder char-table is ready.
5218 (maybe_unify_char): Extern it.
5219
5220 * charset.c (Vchar_unified_charset_table): Delete it.
5221 (inhibit_load_charset_map): New variable.
5222 (temp_charset_work): New variable.
5223 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5224 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5225 New macros.
5226 (load_charset_map): Meaning of control_flag changed. If
5227 inhibit_load_charset_map is nonzero, setup a table in
5228 temp_charset_work.
5229 (load_charset): New argument control_flag.
5230 (map_charset_for_dump): New function.
5231 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5232 map_charset_for_dump.
5233 (Fdefine_charset_internal): If the charset method is MAP, load
5234 mapping tables by calling load_charset.
5235 (Funify_charset): Don't load a mapping table but directly set
5236 Vchar_unify_table.
5237 (maybe_unify_char): New function.
5238 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5239 Handle the case of inhibit_load_charset_map being nonzero.
5240 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5241 Handle the case of inhibit_load_charset_map being nonzero.
5242 (Fclear_charset_maps): Just free temp_charset_work.
5243 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5244 variable.
5245
5246 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5247 change of char_table_ref_and_range.
5248 (char_table_ref_and_range): Change the meaning of argument FROM
5249 and TO. Now the caller must provide initial values for *FROM
5250 and *TO.
5251
5252 * fontset.c (fontset_add): Adjusted for the change of
5253 char_table_ref_and_range.
5254 (fontset_get_font_group): Likewise.
5255 (Ffontset_info): Likewise.
5256
5257 * keymap.c (describe_vector): Adjusted for the change of
5258 char_table_ref_and_range. For char-table, put boundary between
5259 non-ASCII and 8-bit characters.
5260
5261 * print.c (print_object): For bool-vector, delete unnecessary
5262 check of ASCII_BYTE_P.
5263
5264 2008-11-26 Jason Rumney <jasonr@gnu.org>
5265
5266 * w32font.c (w32font_open_internal): Don't include external
5267 leading in font height. (Bug#879)
5268
5269 2008-11-26 Glenn Morris <rgm@gnu.org>
5270
5271 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5272 redefinition with ifdef. (Bug#1383)
5273
5274 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5275
5276 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5277
5278 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5279
5280 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5281 New EmacsView methods.
5282 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5283 Fixes bug #1048,1357,1414.
5284
5285 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5286
5287 Fix bug #1362.
5288 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5289 is not an indexed color.
5290 * nsterm.m (free_indexed_color): Add argument checking.
5291 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5292
5293 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
5294
5295 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5296 Document confirm-after-completion value for
5297 minibuffer-completion-confirm.
5298
5299 2008-11-24 Jason Rumney <jasonr@gnu.org>
5300
5301 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5302 warning.
5303
5304 2008-11-23 Jason Rumney <jasonr@gnu.org>
5305
5306 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5307 restored before returning.
5308
5309 * w32font.c (check_face_name): New function.
5310 (add_font_entity_to_list): Use it to filter out common substituted
5311 fonts. (Bug#642)
5312
5313 2008-11-22 Martin Rudalics <rudalics@gmx.at>
5314
5315 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5316 confirm-nonexistent-file-or-buffer in doc-string.
5317
5318 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5319
5320 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5321 Fix copy/paste typo. Add checks.
5322
5323 2008-11-21 Kenichi Handa <handa@m17n.org>
5324
5325 * coding.c (detect_coding_iso_2022): Reject invalid composition
5326 sequence.
5327 (DECODE_COMPOSITION_START): If the current source is the last
5328 block, and the current composition doesn't end, regard this
5329 sequence as invalid.
5330 (decode_coding_iso_2022): Handle invalid composition sequence.
5331
5332 2008-11-20 Martin Rudalics <rudalics@gmx.at>
5333
5334 * window.c (coordinates_in_window): Don't return
5335 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5336 line when the window is not the rightmost one. (Bug#1372)
5337
5338 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5339
5340 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5341
5342 2008-11-15 Eli Zaretskii <eliz@gnu.org>
5343
5344 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5345 and bright_bg if noninteractive is non-zero.
5346
5347 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5348
5349 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5350 x_draw_glyph_string_background.
5351
5352 * w32term.c (x_draw_glyph_string): Likewise.
5353
5354 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
5355
5356 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5357 the next glyph string once past the overhang width.
5358
5359 * nsterm.m (ns_draw_glyph_string): Likewise.
5360
5361 * w32term.c (x_draw_glyph_string): Likewise.
5362
5363 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5364
5365 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5366 double file close.
5367
5368 2008-11-14 Martin Rudalics <rudalics@gmx.at>
5369
5370 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5371 dedicated status of window before attempting to display another
5372 buffer in it.
5373
5374 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
5375
5376 * msdos.c (Fmsdos_long_file_names):
5377 (syms_of_msdos) <dos-unsupported-char-glyph>:
5378 * dosfns.c (Fint86): Fix typos in docstrings.
5379
5380 2008-11-14 Eli Zaretskii <eliz@gnu.org>
5381
5382 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5383
5384 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5385
5386 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5387
5388 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5389
5390 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5391
5392 * frame.h: Negative alpha means "don't touch".
5393
5394 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5395
5396 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5397
5398 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5399
5400 * hftctl.c:
5401 * chpdef.h:
5402 * acldef.h: Remove files used only for systems no longer supported.
5403
5404 * Makefile.in: Fix .o alphabetical ordering.
5405 (hftctl.o): Remove dependency, file removed.
5406 (keymap.o, print.o): Depend on charset.h.
5407
5408 2008-11-10 Kenichi Handa <handa@m17n.org>
5409
5410 * character.c (Fget_byte): Fix and make it faster for unibyte target.
5411
5412 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
5413
5414 * dired.c (file_name_completion): If completion_ignore_case is
5415 enabled, ignore case when checking completion-regexp-list.
5416
5417 2008-11-08 Eli Zaretskii <eliz@gnu.org>
5418
5419 * vm-limit.c (get_lim_data): Fix last change.
5420
5421 2008-11-08 Kenichi Handa <handa@m17n.org>
5422
5423 * character.c (Fget_byte): New function.
5424 (syms_of_character): Defsubr Fget_byte.
5425
5426 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
5427
5428 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5429 cursor position is valid after scrolling.
5430
5431 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
5432
5433 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5434
5435 2008-11-06 Glenn Morris <rgm@gnu.org>
5436
5437 * xterm.c (handle_one_xevent): Don't let popup menus cause
5438 mouse-autoselect-window related window switching. (Bug#1261)
5439
5440 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5441
5442 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5443
5444 2008-11-04 Andreas Schwab <schwab@suse.de>
5445
5446 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5447
5448 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
5449
5450 * xfns.c (Fx_wm_set_size_hint): New function.
5451
5452 2008-11-03 Martin Rudalics <rudalics@gmx.at>
5453
5454 * textprop.c (Fprevious_single_char_property_change): Return 0
5455 when there's no change in a string. (Bug#1301)
5456
5457 2008-11-02 Martin Rudalics <rudalics@gmx.at>
5458
5459 * frame.c (do_switch_frame): New argument NORECORD passed to
5460 Fselect_window.
5461 (Fselect_frame): New argument NORECORD passed to
5462 do_switch_frame.
5463 (Fset_frame_selected_window): New argument NORECORD passed to
5464 Fselect_frame.
5465 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5466 in call of do_switch_frame.
5467 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5468 Handle NORECORD argument in call of Fselect_frame.
5469 * lisp.h (do_switch_frame, Fselect_frame)
5470 (Fset_frame_selected_window): Adjust declarations.
5471 * window.c (select_frame_norecord): New function.
5472 (run_window_configuration_change_hook): Use it and call
5473 Fselect_frame with NORECORD set.
5474 (Fselect_window): Pass NORECORD to Fselect_frame.
5475 (Fset_window_configuration): Handle NORECORD argument in call of
5476 do_switch_frame.
5477 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5478 Fset_frame_selected_window.
5479 * keyboard.c (command_loop_1): Handle NORECORD in call of
5480 Fselect_frame (currently ifdefd).
5481
5482 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5483
5484 * emacs.c (USAGE2): Untabify.
5485
5486 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5487
5488 * composite.c (fill_gstring_header): Fix copy/paste typo.
5489
5490 2008-10-31 Martin Rudalics <rudalics@gmx.at>
5491
5492 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5493 (Fother_window): Rename argument and rewrite doc-string.
5494 (select_window_norecord): Fix return value. (Bug#1276)
5495
5496 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
5497
5498 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5499 new frames overriding foreground for tooltips. Based on similar patch
5500 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5501
5502 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
5503
5504 * emacs.c (Fdaemon_initialized): Initialize nfd.
5505
5506 2008-10-29 Martin Rudalics <rudalics@gmx.at>
5507
5508 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5509 (Fwindow_text_height): Clarify doc-strings.
5510 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5511 doc-string of window-scroll-functions.
5512
5513 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5514
5515 * category.c (syms_of_category): Fix typo in docstring.
5516
5517 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
5518
5519 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5520 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5521 Fix typos in docstrings.
5522
5523 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5524
5525 * emacs.c (daemon_pipe): Make non-static.
5526 (IS_DAEMON): Move definition ...
5527 * lisp.h (IS_DAEMON): ... here.
5528 (daemon_pipe): Declare.
5529 (is_daemon): Remove.
5530 * dispnew.c (init_display): Use IS_DAEMON.
5531
5532 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5533
5534 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5535 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5536
5537 * emacs.c (is_daemon): Remove.
5538 (main): Don't set is_daemon.
5539 (IS_DAEMON): New macro.
5540 (Fdaemonp, Fdaemon_initialized): Use it.
5541 (Fdaemon_initialized): Write a char into the pipe to make sure the
5542 parent exits.
5543 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5544
5545 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
5546
5547 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5548 over-sized glyph, draw it with the default glyph width.
5549
5550 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5551 glyph, draw it with the default glyph width.
5552
5553 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5554 glyph, draw it with the default glyph width.
5555
5556 * xdisp.c (try_scrolling): When computing the distance from the
5557 scroll margin to PT, try moving some distance past the window
5558 bottom before giving up.
5559
5560 2008-10-27 Martin Rudalics <rudalics@gmx.at>
5561
5562 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5563 (Fset_window_buffer): Explain in doc-string that a window can be
5564 "strongly" dedicated to its buffer.
5565
5566 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5567
5568 * emacs.c (daemon_name): New variable.
5569 (main): Deal with --daemon=SERVER_NAME.
5570 (Fdaemonp): Return a name if one was passed to --daemon.
5571
5572 2008-10-26 Romain Francoise <romain@orebokech.com>
5573
5574 * emacs.c (daemon_pipe): New variable.
5575 (main): Create a pipe before forking, make the parent exit only after
5576 the child has closed its end of the pipe. Move closing the
5577 descriptors ...
5578 (Fdaemon_initialized): ... here. New function.
5579
5580 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5581
5582 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5583 the previous unoptimized table.
5584
5585 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5586 the distinction between non-nil and non-t value of `dedicated'.
5587
5588 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
5589
5590 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
5591 read_char_minibuf_menu_text is large enough to hold the menu string.
5592
5593 2008-10-25 Martin Rudalics <rudalics@gmx.at>
5594
5595 * window.c (Fget_buffer_window, Fdelete_windows_on)
5596 (Freplace_buffer_in_windows): Make buffer argument optional and
5597 rename to buffer_or_name.
5598
5599 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
5600
5601 * xdisp.c (handle_single_display_spec, handle_display_prop):
5602 Undo 2005-05-16 change.
5603 (handle_stop): Pop iterator if it's loaded with an empty string.
5604 (get_overlay_strings_1): Don't save iterator if it's loaded with
5605 an empty string (bug#1201).
5606
5607 2008-10-24 Kenichi Handa <handa@m17n.org>
5608
5609 * ftfont.c (ftfont_otf_features): Fix previous change.
5610 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5611 calling ftfont_otf_features.
5612
5613 2008-10-24 Kenichi Handa <handa@m17n.org>
5614
5615 * font.c (font_match_p): Fix for the case that a vector of
5616 characters is in script-representative-chars.
5617
5618 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
5619
5620 * dbusbind.c (xd_in_read_queued_messages): New variable.
5621 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
5622 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5623 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5624 macro. (Bug#1186)
5625
5626 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
5627
5628 * s/sol2-10.h: New file.
5629
5630 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5631
5632 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5633 poor beast has survived 9+ years and the jump from xterm.c!).
5634
5635 2008-10-23 Martin Rudalics <rudalics@gmx.at>
5636
5637 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5638 Reword doc-string.
5639 (Fbury_buffer): In doc-string say what happens to the buffer's window.
5640
5641 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5642
5643 * character.c (syms_of_character) <script-representative-chars>:
5644 <unicode-category-table>: Doc fixes.
5645
5646 2008-10-23 Noah Friedman <friedman@splode.com>
5647
5648 * coding.c (make_conversion_work_buffer): Check that
5649 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5650 Fget_buffer_create.
5651
5652 2008-10-23 Kenichi Handa <handa@m17n.org>
5653
5654 * font.c (font_add_log): Check the values of extra properties.
5655
5656 2008-10-22 Martin Rudalics <rudalics@gmx.at>
5657
5658 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5659 Reword doc-string.
5660 (Fset_window_parameter): Use NILP.
5661 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
5662 (Frecenter): Use "selected" instead of "current" window in doc-strings.
5663
5664 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5665
5666 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5667
5668 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5669
5670 * nsfns.m (ns_appkit_version): New function.
5671 (x-server-version): Use it.
5672 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5673 (x-server-vendor): Don't check_ns().
5674
5675 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5676
5677 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5678
5679 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5680 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5681
5682 2008-10-22 Kenichi Handa <handa@m17n.org>
5683
5684 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5685 scripts.
5686
5687 * category.c (word_boundary_p): Check scripts instead of charset.
5688 Handle nil value in word-separating-categories and
5689 word-combining-categories.
5690 (syms_of_category): Fix docstrings of word-separating-categories
5691 and word-combining-categories.
5692
5693 2008-10-21 Eli Zaretskii <eliz@gnu.org>
5694
5695 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5696 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5697
5698 2008-10-21 Martin Rudalics <rudalics@gmx.at>
5699
5700 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5701 Rename arg "buffer" to "buffer_or_name".
5702 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5703 it optional.
5704 (no_switch_window): Remove since the return value is not used.
5705 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
5706 Consider window as dedicated when Fwindow_dedicated_p returns a
5707 non-nil value.
5708 * lisp.h: Remove prototype for no_switch_window.
5709
5710 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5711
5712 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
5713 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
5714
5715 2008-10-21 Kenichi Handa <handa@m17n.org>
5716
5717 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5718 check Vlatin_extra_code_table.
5719
5720 2008-10-20 Eli Zaretskii <eliz@gnu.org>
5721
5722 * fileio.c (Fset_file_modes): Doc fix.
5723
5724 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
5725
5726 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5727 in arrays.
5728
5729 2008-10-19 Martin Rudalics <rudalics@gmx.at>
5730
5731 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5732 Mention kill-buffer in doc-string.
5733 (Fset_window_buffer): Reinsert tem check removed in last commit.
5734 (Fenlarge_window, Fshrink_window): Have argument names and
5735 doc-string follow Elisp manual more closely.
5736
5737 2008-10-18 Eli Zaretskii <eliz@gnu.org>
5738
5739 * fileio.c (Fset_file_modes): Doc fix.
5740
5741 2008-10-18 Martin Rudalics <rudalics@gmx.at>
5742
5743 * window.c (Fwindow_width, Fset_window_start)
5744 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
5745 (Fdelete_windows_on, Freplace_buffer_in_windows):
5746 Make doc-strings follow code and Elisp manual more closely.
5747 (Fwindow_dedicated_p): Make window argument optional.
5748 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5749 (Fset_window_buffer): Respect any non-nil dedicated value for
5750 window. Rename "buffer" argument to "buffer_or_name".
5751
5752 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
5753
5754 * m/sh3.h: New file, machine description for SuperH.
5755
5756 2008-10-17 Martin Rudalics <rudalics@gmx.at>
5757
5758 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5759
5760 2008-10-17 Kenichi Handa <handa@m17n.org>
5761
5762 * ftfont.c (ftfont_otf_features): Fix indexing
5763 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5764
5765 2008-10-16 Magnus Henoch <mange@freemail.hu>
5766
5767 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5768 (Fdbus_call_method_asynchronously): Ditto.
5769 This change makes C-h f display the argument list.
5770
5771 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
5772
5773 * fileio.c (Fexpand_file_name): Doc fix.
5774
5775 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5776 of :foreground and :background equivalent to unspecified (20.x
5777 compatibility).
5778
5779 2008-10-15 Eli Zaretskii <eliz@gnu.org>
5780
5781 * buffer.c (syms_of_buffer): Doc fix.
5782
5783 2008-10-14 Kenichi Handa <handa@m17n.org>
5784
5785 * font.c (font_clear_prop): When clearing font width, clear the
5786 average width field too.
5787
5788 2008-10-12 Andreas Schwab <schwab@suse.de>
5789
5790 * ftfont.c (ftfont_shape_by_flt): Make static.
5791 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5792
5793 * font.c: Don't include <m17n-flt.h>.
5794
5795 2008-10-10 Eli Zaretskii <eliz@gnu.org>
5796
5797 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5798
5799 2008-10-09 Eli Zaretskii <eliz@gnu.org>
5800
5801 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5802 away code.
5803
5804 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
5805
5806 * dispnew.c (update_text_area): Avoid looping due to large glyph
5807 overhangs (bug#1070).
5808
5809 2008-10-09 Kenichi Handa <handa@m17n.org>
5810
5811 * fontset.c (face_for_char): If face->fontset is negative, just
5812 return ascii_face.
5813
5814 * font.c (font_delete_unmatched): Fix previous change.
5815 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
5816
5817 2008-10-09 Martin Rudalics <rudalics@gmx.at>
5818
5819 * frame.c (Fraise_frame): On text-only terminals select frame in
5820 order to make it visible. (Bug#1061)
5821
5822 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
5823
5824 * fontset.c (fontset_find_font): Check frame validity.
5825
5826 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
5827
5828 * gtkutil.c (xg_display_open): Reset default display if none exists.
5829 (xg_display_close): Allow Emacs to close all displays (bug#985).
5830
5831 2008-10-06 Andreas Schwab <schwab@suse.de>
5832
5833 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
5834
5835 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
5836
5837 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
5838
5839 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
5840
5841 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5842 during initialization.
5843
5844 2008-10-04 Eli Zaretskii <eliz@gnu.org>
5845
5846 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5847 whole thing on MSDOS frames as well as on a TTY.
5848
5849 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5850 well as for TTY.
5851 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5852 well as on a TTY.
5853
5854 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5855 as well as for TTY.
5856
5857 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5858
5859 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5860 MSDOS frames as well.
5861
5862 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5863
5864 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5865 correct arguments.
5866 * menu.c (find_and_return_menu_selection): Add cast.
5867
5868 2008-10-03 Glenn Morris <rgm@gnu.org>
5869
5870 * emacs.c (USAGE1): Add --daemon.
5871
5872 2008-10-02 Eli Zaretskii <eliz@gnu.org>
5873
5874 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5875 100, so it's in percents as advertised.
5876
5877 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5878
5879 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5880 (ns_output.current_cursor, ns_output.desired_cursor)
5881 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5882 (FRAME_NEW_CURSOR_COLOR): Remove.
5883
5884 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
5885 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
5886 enumeration (HOLLOW_BOX_CURSOR, etc.).
5887
5888 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5889 (draw_window_cursor): Simplify code.
5890 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5891 Don't change cursor type. In latter, call rehighlight instead of doing
5892 updates manually.
5893 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5894 Use core Emacs cursor types.
5895
5896 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
5897
5898 2008-10-02 Martin Rudalics <rudalics@gmx.at>
5899
5900 * process.c (Faccept_process_output): Fix doc-string.
5901
5902 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5903
5904 * gmalloc.c (__sbrk): Also define for uClibc.
5905
5906 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5907 for uClibc.
5908
5909 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5910
5911 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5912 styles.
5913 (nsfont_open): Reenable the cache.
5914
5915 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5916
5917 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5918 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5919
5920 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5921
5922 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5923 a suspended terminal.
5924
5925 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
5926
5927 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5928
5929 2008-09-30 Eli Zaretskii <eliz@gnu.org>
5930
5931 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5932
5933 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
5934
5935 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5936 in a continued line coincides with a line beginning.
5937
5938 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5939
5940 * nsfont.m (nsfont_trait_distance): Fix bug.
5941 (nsfont_list): Return a list rather than a vector (syncs with Handa
5942 changes of 2008-05-14).
5943 (nsfont_open): Improve logging.
5944
5945 2008-09-29 Andreas Schwab <schwab@suse.de>
5946
5947 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5948
5949 2008-09-28 Martin Rudalics <rudalics@gmx.at>
5950
5951 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5952 name as char-resolve-modifiers.
5953 Reported by: Markus Triska <markus.triska@gmx.at>
5954
5955 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5956
5957 * dispnew.c (init_display): Return earlier when running as a daemon.
5958
5959 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5960
5961 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5962
5963 2008-09-27 Eli Zaretskii <eliz@gnu.org>
5964
5965 * composite.c (Fcomposition_get_gstring)
5966 (Fcompose_region_internal, Fcompose_string_internal)
5967 (Ffind_composition_internal): Doc fix.
5968 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5969 (syms_of_composite) <auto-composition-function>: Doc fix.
5970 (syms_of_composite) <composition-function-table>: Doc fix.
5971
5972 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
5973
5974 * search.c (wordify): New argument for lax word-ends.
5975 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5976
5977 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5978
5979 * lisp.h (is_daemon): Declare.
5980 * dispnew.c (init_display): Do not try to initialize the terminal
5981 when running as a daemon.
5982
5983 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
5984
5985 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5986 x_display_pixel_height.
5987
5988 2008-09-22 Martin Rudalics <rudalics@gmx.at>
5989
5990 * undo.c (record_point): Don't call Fundo_boundary for first
5991 change. (Bug#731)
5992
5993 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
5994
5995 * emacs.c (Fdaemonp): Doc fix.
5996
5997 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5998
5999 * emacs.c (main): Place #ifdef in the proper place.
6000
6001 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6002
6003 * emacs.c (standard_args): Add --daemon.
6004 (main): Disconnect from the terminal when --daemon is passed.
6005 (is_daemon): New variable.
6006 (Fdaemonp): New function.
6007 (syms_of_emacs): Defsubr it.
6008
6009 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
6010
6011 * xdisp.c (get_next_display_element): Handle string display
6012 correctly when checking for the end of a box run.
6013
6014 2008-09-20 Glenn Morris <rgm@gnu.org>
6015
6016 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6017 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6018 (Frename_file): Avoid copying to trash if a rename involves
6019 a delete. (Bug#964).
6020
6021 2008-09-20 Eli Zaretskii <eliz@gnu.org>
6022
6023 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6024 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6025 frames as well as termcap frames.
6026 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6027 get_named_tty.
6028
6029 2008-09-19 Eli Zaretskii <eliz@gnu.org>
6030
6031 * process.c (procfs_system_process_attributes): Fix cmdline in
6032 case /proc/PID/cmdline is empty.
6033
6034 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6035 x_display_pixel_height.
6036
6037 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
6038
6039 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6040
6041 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6042 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6043
6044 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6045
6046 * dispextern.h (struct it): Move line_wrap away from the middle of
6047 bitfields. Move voffset in struct iterator_stack_entry after the
6048 bitfields. Move tab_width near after another short.
6049
6050 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6051
6052 * frame.h (struct frame): Move alpha from the middle of bitfields.
6053
6054 * window.h (struct window): Move frozen_window_start_p after the
6055 rest of the bitfields to reduce padding.
6056
6057 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
6058
6059 * xterm.h (x_display_info): Remove `height' and `width' members.
6060
6061 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6062
6063 * w32term.h (w32_display_info): Remove `height', `width',
6064 `height_in', and `width_in' members.
6065
6066 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6067 New functions.
6068 (x_calc_absolute_position): Use them.
6069 (x_term_init): Omit removed `height' and `width' members.
6070
6071 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6072 New functions.
6073 (w32_read_socket, x_calc_absolute_position): Use them.
6074 (w32_initialize_display_info, w32_term_init): Omit removed members
6075 of w32_display_info.
6076
6077 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6078 New functions.
6079 (ns_initialize_display_info): Omit removed members of ns_display_info.
6080
6081 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6082 New functions.
6083 (x_calc_absolute_position): Use them.
6084 (x_term_init): Omit removed `height' and `width' members.
6085
6086 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6087 (compute_tip_xy):
6088 * frame.c (x_fullscreen_adjust):
6089 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6090 x_display_pixel_width.
6091
6092 2008-09-18 Kenichi Handa <handa@m17n.org>
6093
6094 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6095 (composition_compute_stop_pos): Fix handling of static composition.
6096 (Fcomposition_get_gstring): Check FROM and TO at first.
6097
6098 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6099
6100 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
6101 mixup (YAILOM).
6102
6103 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
6104
6105 * indent.c (Fvertical_motion): Use position reported by iterator
6106 instead of PT for determining screen motion (bug#943).
6107
6108 2008-09-17 Romain Francoise <romain@orebokech.com>
6109
6110 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6111
6112 2008-09-17 Kenichi Handa <handa@m17n.org>
6113
6114 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6115
6116 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6117 if necessary.
6118
6119 2008-09-16 Kenichi Handa <handa@m17n.org>
6120
6121 * coding.c (make_conversion_work_buffer): Avoid calling
6122 Fget_buffer_create if it is not necessary.
6123
6124 2008-09-15 Martin Rudalics <rudalics@gmx.at>
6125
6126 * window.c (Fselect_window): Don't update window_select_count and
6127 use_time when norecord is not nil.
6128
6129 2008-09-14 Kenichi Handa <handa@m17n.org>
6130
6131 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6132 specpdl_ptr.
6133
6134 2008-09-12 Kenichi Handa <handa@m17n.org>
6135
6136 * indent.c (scan_for_column): Don't handle automatic composition
6137 if the current buffer is not associated with a window.
6138
6139 * composite.c (composition_reseat_it): If the current buffer is
6140 not associated with a window, ignore the automatic composition.
6141 (find_automatic_composition): Likewise.
6142
6143 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6144
6145 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6146 (Fgpm_mouse_stop): Use it.
6147 * termhooks.h (close_gpm): Declare.
6148 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6149 connection if Gpm_GetEvent fails.
6150
6151 * window.c (set_window_buffer): Always preserve current-buffer.
6152
6153 2008-09-12 Glenn Morris <rgm@gnu.org>
6154
6155 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6156
6157 2008-09-11 Glenn Morris <rgm@gnu.org>
6158
6159 * charset.c (charset-map-path): Doc fix.
6160
6161 2008-09-10 Kenichi Handa <handa@m17n.org>
6162
6163 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6164
6165 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6166 compose a grapheme cluster with the preceding base glyph.
6167
6168 * composite.c (composition_compute_stop_pos): Fix previous change.
6169 Reset cmp_it->id to -1 at first.
6170
6171 2008-09-10 Glenn Morris <rgm@gnu.org>
6172
6173 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6174
6175 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * keyboard.c (read_key_sequence): Reapply translation maps when
6178 switching keyboards.
6179
6180 2008-09-09 Kenichi Handa <handa@m17n.org>
6181
6182 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6183 characters.
6184
6185 * composite.c (FORWARD_CHAR): Fix calculation
6186 of (POSITION).pos_byte.
6187 (composition_compute_stop_pos): Limit the search of composition to
6188 at most 500 characters ahead. If we reach the limit or find a
6189 newline, set cmp_it->ch to -2 and return 0.
6190 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6191
6192 2008-09-08 Kenichi Handa <handa@m17n.org>
6193
6194 * indent.c (Fvertical_motion): Be sure to set
6195 it_overshoot_expected if it.cmp_it.id is non-negative.
6196
6197 2008-09-07 Andreas Schwab <schwab@suse.de>
6198
6199 * callproc.c (Fcall_process): Don't hold references to string data
6200 across garbage collection. Move initialisation of new_argv down
6201 to avoid compiler bug.
6202
6203 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6204
6205 * process.c (Fsystem_process_attributes): Doc fix.
6206
6207 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
6208
6209 * callproc.c (Fcall_process): Canonicalize current directory name.
6210
6211 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6212 iterator advances to the next line if the current line ends in a
6213 continued tab.
6214
6215 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6216
6217 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6218 member to point to cmp_from.
6219
6220 * xdisp.c: Doc fix for references to gidx data member.
6221
6222 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6223
6224 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6225
6226 2008-09-07 Kenichi Handa <handa@m17n.org>
6227
6228 * composite.c (FORWARD_CHAR): Check STOP after
6229 incrementing (POSITION).pos.
6230
6231 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6232
6233 * process.c (Fsystem_process_attributes): Doc fix.
6234
6235 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
6236
6237 * keyboard.c (Ftop_level): Doc fix.
6238
6239 2008-09-06 Eli Zaretskii <eliz@gnu.org>
6240
6241 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6242 minibuffer, don't let lower part of menu invade the echo area.
6243
6244 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6245 "char *q" to access menu text and advance through it. Revert the
6246 change that displayed ">" instead of ASCII character 0x10.
6247
6248 2008-09-05 Eli Zaretskii <eliz@gnu.org>
6249
6250 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6251 toggle boxes and radio buttons on MS-DOS as well.
6252
6253 2008-09-05 Kenichi Handa <handa@m17n.org>
6254
6255 * composite.c (autocmp_chars): Check lookback count.
6256 (composition_compute_stop_pos): Set cmp_it->lookback.
6257 (composition_reseat_it): Check lookback count.
6258 (struct position_record): New struct.
6259 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6260 (find_automatic_composition): New function.
6261 (composition_adjust_point): Use find_automatic_composition.
6262
6263 * dispextern.h (struct composition_it): New member lookback.
6264
6265 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
6266
6267 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6268 if moving by a single line.
6269
6270 2008-09-02 Andreas Schwab <schwab@suse.de>
6271
6272 * xterm.c (x_delete_display): Fix merge error.
6273
6274 * fileio.c (Fexpand_file_name): Remove unused variables.
6275
6276 2008-09-02 Eli Zaretskii <eliz@gnu.org>
6277
6278 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6279 storage on all platforms, not just on DOS_NT.
6280
6281 2008-09-02 Jason Rumney <jasonr@gnu.org>
6282
6283 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6284 Ensure mouse is not grabbed after menu is finished.
6285
6286 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
6287
6288 * xfaces.c (Finternal_set_alternative_font_family_alist)
6289 (Finternal_set_alternative_font_registry_alist): Properly copy
6290 entire alist structure.
6291
6292 2008-09-01 Kenichi Handa <handa@m17n.org>
6293
6294 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
6295 representative chars of the script is a vector.
6296 (ftfont_list): Handle the case where the representative chars of
6297 the script is a vector.
6298
6299 * character.c (syms_of_character): Docstring of
6300 script-representative-chars fixed.
6301
6302 2008-08-31 Eli Zaretskii <eliz@gnu.org>
6303
6304 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6305 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6306 the menu. Allocate larger buffer for `text', to account for
6307 possible ^C characters.
6308
6309 2008-08-31 Martin Rudalics <rudalics@gmx.at>
6310
6311 * xdisp.c (prepare_menu_bars): Don't call
6312 Vwindow_size_change_functions with arg Qt.
6313
6314 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6315
6316 * font.h (font_range):
6317 * fileio.c (report_file_error):
6318 * composite.c (composition_update_it): Yet another int/Lisp_Object
6319 mixup (YAILOM).
6320
6321 2008-08-30 Glenn Morris <rgm@gnu.org>
6322
6323 * data.c (Fmake_variable_frame_local): Doc fix.
6324
6325 * frame.c (Fmodify_frame_parameters): Doc fix.
6326
6327 2008-08-30 Eli Zaretskii <eliz@gnu.org>
6328
6329 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6330 needed by GetTokenInformation.
6331 (w32_system_process_attributes): Check return values of all system
6332 APIs.
6333
6334 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6335 only when the state changes.
6336 (IT_update_begin, IT_update_end): Add termscript trace.
6337
6338 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6339 clipboard is unavailable. Set dst to NULL if it doesn't point to
6340 malloc'ed data.
6341 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6342 passing random values to xfree.
6343
6344 * dispnew.c (init_display): Set `tty's association in frame's
6345 parameters alist to the name of the terminal device, if that is known.
6346
6347 2008-08-29 Jason Rumney <jasonr@gnu.org>
6348
6349 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6350
6351 2008-08-29 Eli Zaretskii <eliz@gnu.org>
6352
6353 * composite.c (fill_gstring_body): Avoid compiler warnings.
6354
6355 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6356 LGLYPH_SET_CODE to avoid compiler warnings.
6357
6358 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
6359
6360 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6361
6362 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6363 LGLYPH_SET_CODE.
6364
6365 2008-08-29 Kenichi Handa <handa@m17n.org>
6366
6367 * fileio.c (report_file_error): Don't downcase the first character
6368 of errstring if it is still unibyte.
6369
6370 2008-08-29 Kenichi Handa <handa@m17n.org>
6371
6372 These changes are to re-implement the automatic composition so
6373 that it doesn't use text properties.
6374
6375 * Makefile.in (ftfont.o): Depend on composite.h.
6376 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6377
6378 * character.h (Vunicode_category_table): Extern it.
6379
6380 * character.c (Vunicode_category_table): New variable.
6381 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6382
6383 * chartab.c (optimize_sub_char_table): Perform more greedy
6384 optimization.
6385
6386 * composite.h (enum composition_method):
6387 Delete COMPOSITION_WITH_GLYPH_STRING.
6388 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6389 (Vcomposition_function_table): Extern it.
6390 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6391 (composition_gstring_put_cache, composition_gstring_from_id)
6392 (composition_gstring_p, composition_gstring_width)
6393 (composition_compute_stop_pos, composition_reseat_it)
6394 (composition_update_it, composition_adjust_point): Extern them.
6395 (Fcomposition_get_gstring): EXFUN it.
6396
6397 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
6398 (Vcomposition_function_table)
6399 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
6400 (gstring_hash_table, gstring_work, gstring_work_headers):
6401 New variables.
6402 (gstring_lookup_cache, composition_gstring_put_cache)
6403 (composition_gstring_from_id, composition_gstring_p)
6404 (composition_gstring_width, fill_gstring_header)
6405 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6406 (composition_reseat_it, composition_update_it)
6407 (composition_adjust_point, Fcomposition_get_gstring): New functions.
6408 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6409 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6410 Defsubr compostion_get_gstring.
6411
6412 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6413 cmp_id.
6414 (struct glyph_string): Delete the member gidx. New members
6415 cmp_id, cmp_from, and cmp_to.
6416 (enum it_method): Delete GET_FROM_COMPOSITION.
6417 (struct composition_it): New struct.
6418 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6419 Delete c, len, cmp_id, cmp_len in u.comp.
6420
6421 * font.h (enum lgstring_indices): Delete it.
6422 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
6423 (enum lglyph_indices): Likewise.
6424 (font_range): Adjust extern.
6425 (font_fill_lglyph_metrics): Extern it.
6426
6427 * font.c (QCf): New variable.
6428 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6429 (font_prepare_composition): Delete this function.
6430 (font_range): Type and arguments changed.
6431 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6432 (font_fill_lglyph_metrics): New function.
6433 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
6434 (syms_of_font): DEFSYM QCf. Delete defsubr for
6435 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6436 Defsubr Sfont_shape_gstring.
6437
6438 * fontset.h (font_for_char): Extern it.
6439
6440 * fontset.c (font_for_char): New function.
6441
6442 * ftfont.c: Include composite.h.
6443 (ftfont_resolve_generic_family): Add langset "en" to pattern.
6444 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6445
6446 * indent.c: Include composite.h and dispextern.h.
6447 (check_composition): Delete this function.
6448 (scan_for_column): Handle composition by
6449 composition_compute_stop_pos, composition_reseat_it, and
6450 composition_update_it.
6451 (compute_motion): Likewise.
6452 (Fvertical_motion): Fix checking of composition.
6453
6454 * keyboard.c (adjust_point_for_property): Check composition by
6455 composition_adjust_point.
6456
6457 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
6458 struct glyph_string.
6459
6460 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6461 (append_composite_glyph): Adjust for the change of struct it and
6462 struct glyph.
6463 (produce_composite_glyph): Likewise.
6464
6465 * w32term.c (x_draw_composite_glyph_string_foreground):
6466 Adjust for the change of struct glyph_string.
6467 (x_draw_glyph_string): Likewise.
6468
6469 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6470 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6471
6472 * xdisp.c: Include font.h.
6473 (it_props): Delete the entry for Qauto_composed.
6474 (init_iterator): Initialize it->cmp_it.id to -1.
6475 (compute_stop_pos): Call composition_compute_stop_pos.
6476 (face_before_or_after_it_pos): Adjust for the change of struct it.
6477 (handle_auto_composed_prop): Delete it.
6478 (handle_composition_prop): Handle only static composition.
6479 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6480 from xassert. Initialize it->cmp_it.stop_pos.
6481 (push_it): Adjust for the change of struct it.
6482 (pop_it): Likewise.
6483 (get_next_element): Delete next_element_from_composition.
6484 (CHAR_COMPOSED_P): New macro.
6485 (get_next_display_element): For automatic composition, get a face
6486 from the font in the glyph-string.
6487 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
6488 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
6489 (next_element_from_string): Check if the character at the current
6490 position is composed by CHAR_COMPOSED_P.
6491 (next_element_from_buffer): Likewise.
6492 (next_element_from_composition): Adjust for the change of struct it.
6493 Update it->cmp_it.
6494 (dump_glyph): Adjust for the change of struct glyph.
6495 (fill_composite_glyph_string): Adjust for the change of struct
6496 it and struct glyph. Don't handle automatic composition here.
6497 (fill_gstring_glyph_string): New function.
6498 (x_get_glyph_overhangs): Handle automatic composition.
6499 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
6500 (BUILD_GSTRING_GLYPH_STRING): New macro.
6501 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6502 automatic composition.
6503 (append_composite_glyph): Adjust for the change of struct it and
6504 struct glyph.
6505 (x_produce_glyphs): Adjust for the change of struct it.
6506
6507 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6508 the change of struct glyph_string.
6509 (x_draw_glyph_string): Likewise.
6510
6511 2008-08-29 Glenn Morris <rgm@gnu.org>
6512
6513 * buffer.c (word-wrap): Doc fix.
6514 * xdisp.c (truncate-partial-width-windows): Doc fix.
6515 Increase default to 50.
6516
6517 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
6518
6519 * xdisp.c (update_tool_bar_unwind): New function.
6520 (update_tool_bar): Temporarily set selected frame before building
6521 tool-bar items.
6522
6523 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
6524
6525 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6526 snprintf, respectively.
6527 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6528
6529 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
6530
6531 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6532 LDFLAGS to GNUstep CC invocation.
6533
6534 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
6535
6536 * indent.c (Fvertical_motion): Revert last change. Handle the
6537 general case where we are moving forward, and PT spans multiple
6538 screen lines.
6539
6540 * eval.c (find_handler_clause): Temporarily increase
6541 max-lisp-eval-depth while printing the backtrace buffer, to
6542 guarantee that help-mode code can run.
6543
6544 2008-08-27 Eli Zaretskii <eliz@gnu.org>
6545
6546 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6547 colors under -rv.
6548 (IT_set_frame_parameters): Don't swap foreground and background
6549 colors if `(reverse . t)' is present in the frame properties.
6550 (internal_terminal_init): Call init_frame_faces only for the
6551 initial frame.
6552
6553 2008-08-27 Andreas Schwab <schwab@suse.de>
6554
6555 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6556
6557 2008-08-27 Andreas Schwab <schwab@suse.de>
6558
6559 * search.c (search_buffer): Set char_base to zero only at the end.
6560
6561 2008-08-27 Kenichi Handa <handa@m17n.org>
6562
6563 * fileio.c (report_file_error): Fix handling of multibyte error string.
6564
6565 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6566
6567 * xterm.c (x_term_init): Temporarily hide the partially
6568 initialized terminal while calling vendor-specific-keysyms.
6569
6570 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6571
6572 * msdos.c (internal_terminal_init): Most initializations done only
6573 once, especially initial_screen_colors[] and termscript open.
6574
6575 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6576
6577 * eval.c (Fcondition_case): Doc fix.
6578
6579 * widgetprv.h (EmacsFramePart): Change font member to the new font
6580 struct.
6581
6582 * widget.c: Include character.h and font.h for XSETFONT.
6583 (setup_frame_gcs): Compute X font id from font struct, just once.
6584
6585 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6586
6587 * term.c (get_named_tty): Fix last change.
6588
6589 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6590
6591 * indent.c (Fvertical_motion): If moving forward starting from a
6592 multi-line string, move the iterator to the last line of that string.
6593
6594 2008-08-25 Eli Zaretskii <eliz@gnu.org>
6595
6596 * frame.c (do_switch_frame): Mark previously displayed frame as
6597 obscured for FRAME_MSDOS_P frames as well.
6598
6599 2008-08-24 Eli Zaretskii <eliz@gnu.org>
6600
6601 * frame.c (make_terminal_frame): Initialize f->terminal,
6602 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6603 Set the top frame to newly created frame.
6604 (Fmake_terminal_frame): Reuse the_only_display_info.
6605
6606 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6607 estimating available memory.
6608
6609 2008-08-23 David Reitter <david.reitter@gmail.com>
6610
6611 * nsterm.m (ns_draw_window_cursor): Don't call
6612 NSDisableScreenUpdates and NSEnableScreenUpdates on
6613 non-NS_IMPL_COCOA systems.
6614
6615 2008-08-23 Andreas Schwab <schwab@suse.de>
6616
6617 * process.c (procfs_system_process_attributes): Fix use of
6618 uninitialized variables.
6619
6620 2008-08-23 Eli Zaretskii <eliz@gnu.org>
6621
6622 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6623
6624 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6625 calling tty-set-up-initial-frame-faces.
6626
6627 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6628 Allow MSDOS frames along with X frames.
6629
6630 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6631 addition to output_termcap.
6632
6633 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6634
6635 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6636 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6637 highlight.
6638
6639 * process.c [!subprocesses]: Define QCname.
6640 (syms_of_process): Intern and staticpro it.
6641
6642 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6643 Adjust for changes in encoding/decoding routines.
6644 Use encode_coding_object and decode_coding_object instead of
6645 encode_coding and decode_coding.
6646
6647 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
6648
6649 * dosfns.c: Include frame.h before termhooks.h.
6650 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6651 variable termscript.
6652
6653 * s/msdos.h (USER_FULL_NAME): Define.
6654 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6655
6656 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6657 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6658 pw->pw_gecos.
6659
6660 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6661 SELECTED_FRAME as additional (1st) argument.
6662 (tty_read_avail_input): Handle output_msdos_raw in
6663 addition to output_termcap.
6664
6665 * msdos.c: Include frame.h before termhooks.h.
6666 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6667 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6668 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6669 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6670 (IT_set_terminal_modes, IT_reset_terminal_modes)
6671 (IT_set_frame_parameters): Use tty->termscript instead of a global
6672 variable termscript.
6673 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6674 global variable terminal_coding. Don't refer to
6675 Vnonascii_translation_table.
6676 (internal_terminal_init): Set Vwindow_system in current_kboard.
6677 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6678 Announce date and time of session start, if termscript is open.
6679 Don't zero out the_only_display_info (it is done in
6680 term.c:init_tty). Open termscript only of not already open.
6681 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
6682 here instead of dos_ttraw. Don't initialize display if this is an
6683 initial tty. Don't set FRAME_FONT.
6684 (Vwindow_system_version): Bump to 23.
6685 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6686 is available, set up mouse_position_hook.
6687 (dos_ttraw, IT_set_terminal_modes): If called with initial
6688 terminal, do nothing.
6689 (IT_set_frame_parameters): Handle the Qtty_type frame
6690 parameter by calling internal_terminal_init.
6691 (dos_set_window_size, show_mouse_face)
6692 (clear_mouse_face, IT_note_mode_line_highlight)
6693 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6694 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6695 (initialize_msdos_display): New function.
6696 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6697 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6698 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6699 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
6700 Accept additional argument: a pointer to a frame. Update all callers.
6701 (request_sigio, unrequest_sigio): Don't define, now defined on
6702 sysdep.c.
6703 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6704
6705 * term.c [MSDOS]: Include msdos.h.
6706 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6707 conditional to DOS_NT. Allow only one call to this function in a
6708 session. Don't allocate a new struct tty_display_info; instead,
6709 reuse the_only_display_info. Call get_tty_size to get screen
6710 dimensions. Call init_baud_rate to set bad_rate.
6711 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6712 (Fsuspend_tty) [MSDOS]: Don't close input and output.
6713 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
6714 (get_tty_terminal, get_named_tty, Ftty_type)
6715 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6716 output_termcap.
6717 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6718 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
6719 only when subprocesses are supported.
6720
6721 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6722 f->output_data.x.
6723 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6724 terminal devices.
6725
6726 * msdos.h: Remove definition of struct x_display_info and struct
6727 x_output.
6728 (FRAME_FONT): Use output_data.tty.
6729 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
6730 (struct x_display_info): Rename from display_info. Update all users in
6731 msdos.c.
6732 (struct x_output): Remove background_pixel and foreground_pixel.
6733 (the_only_display_info): Rename from the_only_x_display.
6734 (dos_ttraw): Update prototype.
6735
6736 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6737 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6738
6739 2008-08-23 Jason Rumney <jasonr@gnu.org>
6740
6741 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6742 (fn_TIFFSetDirectory): New library function used.
6743 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6744 (tiff_load): Use :index to select among multiple images. Set count
6745 property when multiple images exist.
6746 (gif_format): Use :index, not :image.
6747
6748 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
6749
6750 * xdisp.c (try_scrolling): Check INT_MAX instead of
6751 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6752 to obtain INT_MAX.
6753
6754 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6755
6756 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6757
6758 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6759
6760 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6761 GNUstep library location.
6762
6763 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
6764
6765 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6766 before using it.
6767
6768 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6769
6770 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6771
6772 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6773 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6774 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6775 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6776 (EmacsApp-cursor_blink_handler): Remove declaration.
6777 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6778 match 01 Feb 2008 changes in xterm.c.
6779 (ns_read_socket): Add cast to avoid warning.
6780 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6781 GNUstep.
6782
6783 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
6784
6785 * xselect.c (x_get_foreign_selection): Return nil if desired
6786 selection could not be obtained, instead of signalling an error.
6787
6788 2008-08-20 David Reitter <david.reitter@gmail.com>
6789
6790 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6791 * nsterm.m: Remove ns-specific code for cursor blinking.
6792 (ns_draw_window_cursor): Clear cursor properly rather than
6793 redrawing the area. Respect width of bar cursors.
6794 These changes enable the use of generic blink-cursor-mode and
6795 generic cursor types in NS and support smooth cursor movements (do
6796 not blink off after command).
6797 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6798 Nextstep, too.
6799
6800 2008-08-19 Kenichi Handa <handa@m17n.org>
6801
6802 * font.c (Vfont_log_deferred): New variable.
6803 (font_add_log): Check Vfont_log_deferred.
6804 (font_deferred_log): New function.
6805
6806 * font.h (font_deferred_log): Extern it.
6807
6808 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6809 for sorting.
6810 (face_for_char): Use deferred log.
6811
6812 2008-08-18 Kenichi Handa <handa@m17n.org>
6813
6814 * fontset.c (face_for_char): Add font log.
6815
6816 * font.c (font_add_log): Add the font properties :script, :lang,
6817 and :otf in the log.
6818
6819 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
6820
6821 * xdisp.c: Remove dead code.
6822 (handle_invisible_prop, next_overlay_string): Defer call to
6823 setup_for_ellipsis.
6824 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6825
6826 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
6827
6828 * xfaces.c (lookup_derived_face): Properly handle possible zero
6829 return value of get_lface_attributes.
6830 (merge_faces): Don't tell lookup_derived_face to signal an error
6831 if face is not found.
6832
6833 * dired.c (Fdirectory_files): Doc fix.
6834
6835 * process.c (make_process): Initialize kill_without_query struct
6836 member.
6837
6838 2008-08-15 Eli Zaretskii <eliz@gnu.org>
6839
6840 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6841 Alternative calculation of totphys for Visual Studio 6.
6842
6843 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6844
6845 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6846 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6847 All users changed.
6848 (stat): Only root directory passed to GetDriveType. Allow RAM
6849 disk as well as local fixed disk when w32-get-true-file-attributes
6850 is set to `local'.
6851 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6852 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6853 (w32_cached_id, w32_add_to_cache): New functions.
6854 (get_name_and_id): Look account names in the cache before calling
6855 lookup_account_sid.
6856 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6857 New initialization flags.
6858 (globals_of_w32): Initialize them to zero.
6859 (w32_system_process_attributes): Use w32_cached_id and
6860 w32_add_to_cache.
6861
6862 2008-08-14 Lawrence Mitchell <wence@gmx.li>
6863
6864 * lread.c (Fread_char, Fread_char_exclusive): If no character
6865 event is read before timeout is reached, return nil, rather than
6866 converting to a number.
6867
6868 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
6869
6870 * fns.c (use_dialog_box): Doc fix.
6871
6872 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6873 on OS X.
6874
6875 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
6876
6877 * frame.c (Qns_parse_geometry): New var.
6878 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6879
6880 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
6881
6882 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6883 space character in calculating tabs.
6884
6885 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6886
6887 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6888
6889 2008-08-10 Glenn Morris <rgm@gnu.org>
6890
6891 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6892 silence gcc "limited range of data type" warnings in some
6893 make_fixnum_or_float calls.
6894
6895 2008-08-09 Eli Zaretskii <eliz@gnu.org>
6896
6897 * w32.c (w32_system_process_attributes): If the process does not
6898 exist, return nil.
6899
6900 * w32.c: Include thelp32.h, psapi.h and coding.h.
6901 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6902 declarations.
6903 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6904 (Process32Next_Proc): New typedefs.
6905 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6906 (g_b_init_process32_next, g_b_init_open_thread_token)
6907 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6908 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6909 (g_b_init_get_process_working_set_size)
6910 (g_b_init_global_memory_status_ex): New static variables.
6911 (globals_of_w32): Initialize them.
6912 (create_toolhelp32_snapshot, process32_first, process32_next)
6913 (open_thread_token, impersonate_self, revert_to_self)
6914 (get_process_memory_info, get_process_working_set_size)
6915 (global_memory_status, global_memory_status_ex): New wrapper
6916 functions.
6917 (w32_list_system_processes, w32_system_process_attributes)
6918 (enable_privilege, restore_privilege, ltime, process_times):
6919 New functions.
6920 (convert_time_raw): New function.
6921 (convert_time): Remove conversion of FILETIME into time in 100
6922 nsec units, call convert_time_raw instead.
6923
6924 * process.h (w32_list_system_processes, w32_system_process_attributes):
6925 Add prototypes.
6926 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6927 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6928 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6929 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6930
6931 * process.c (Fsystem_process_attributes): Doc fix.
6932
6933 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
6934
6935 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6936 a continued multi-char glyph; if so, advance to the actual glyph.
6937
6938 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6939
6940 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6941
6942 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6943 (.m.o): Use it.
6944 * config.in: Regenerate.
6945
6946 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
6947
6948 * xdisp.c (redisplay_window): Revert last change.
6949 (try_window): Check bottom scroll margin too.
6950
6951 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6952
6953 * config.in: Regenerate.
6954
6955 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6956 -list-load-path-shadows'.
6957 (nsgui.h): Reduce number of things depending on it.
6958
6959 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
6960
6961 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6962 instead of window-end which does the wrong thing at eob.
6963 (try_cursor_movement): Minor optimization.
6964 (redisplay_window): If scroll margin is defined, don't assume
6965 window doesn't need scrolling.
6966
6967 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6968
6969 * config.in: Regenerate.
6970
6971 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6972 (mostlyclean): Don't delete *.d under NS.
6973
6974 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6975
6976 2008-08-06 Kenichi Handa <handa@m17n.org>
6977
6978 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6979
6980 2008-08-06 Andreas Schwab <schwab@suse.de>
6981
6982 * config.in: Regenerate.
6983
6984 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
6985
6986 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6987 forcing a window start.
6988
6989 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6990 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6991
6992 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6993
6994 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6995 argument.
6996
6997 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
6998
6999 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7000 <scroll-down-aggressively, before-change-functions>:
7001 <after-change-functions>: Reflow docstrings.
7002
7003 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7004 Ken Raeburn <raeburn@gnu.org>
7005
7006 Dock menu customization, based on a patch by Ken Raeburn, plus some
7007 other fixes.
7008 * nsmenu.m (dockMenu): New variable.
7009 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7010
7011 * nsterm.h (dockMenu): Declare.
7012
7013 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7014 (ns_term_init): Initialize dockMenu.
7015 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7016 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7017 left.
7018
7019 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7020
7021 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7022
7023 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7024
7025 * config.in: Regenerate.
7026
7027 2008-08-04 Seiji Zenitani <zenitani@mac.com>
7028
7029 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7030
7031 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7032
7033 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7034
7035 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7036
7037 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7038
7039 * keyboard.h: Comment an #endif.
7040
7041 * lisp.h (have_menus_p): Adjust comment.
7042
7043 * menu.c (find_and_return_menu_selection): Fix comparison with
7044 client_data.
7045
7046 * nsmenu.m (popup_activated_flag): New variable.
7047 (popup_activated): New function.
7048 (menu-or-popup-active-p): New exported lisp definition.
7049 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7050 when popup done.
7051 (ns_popup_dialog): Set popup_activated_flag.
7052
7053 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7054 version for GNUstep (handled by conditional typedef in nsterm.m).
7055 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7056 in rgb.txt).
7057
7058 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7059
7060 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7061
7062 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7063
7064 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7065 shortcircuit if popup_activated like GTK and X toolkit.
7066
7067 * m/inter386.h: Change DARWIN to DARWIN_OS.
7068
7069 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7070 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7071 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7072 comment on NO_SOCK_SIGIO.
7073
7074 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
7075
7076 * nsterm.m (windowDidResize): Remove stopModal call.
7077
7078 2008-08-03 Andreas Schwab <schwab@suse.de>
7079
7080 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7081 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7082
7083 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
7084
7085 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7086 Don't use uninitialized pointer variable when using getrlimit.
7087
7088 2008-08-02 Jason Rumney <jasonr@gnu.org>
7089
7090 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7091
7092 2008-08-02 Eli Zaretskii <eliz@gnu.org>
7093
7094 * alloc.c (NSTATICS): Bump to 0x640.
7095
7096 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7097
7098 * lisp.h: Add prototype for directory_files_internal.
7099
7100 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7101 New functions.
7102 (syms_of_process): Defsubr them. Add initializations for various
7103 Q* symbols used in procfs_system_process_attributes.
7104 (procfs_list_system_processes, procfs_system_process_attributes)
7105 [HAVE_PROCFS]: New functions.
7106 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7107 (procfs_get_total_memory): New functions.
7108
7109 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7110
7111 * xfaces.c (Fx_load_color_file): Fix previous change;
7112 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7113
7114 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
7115
7116 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7117
7118 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7119
7120 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7121
7122 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
7123
7124 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7125
7126 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7127 define NSApplicationDelegateReplySuccess.
7128 (EmacsView -converstationIdentifier): Use long instead of
7129 NSInteger for GNUstep, since it doesn't have NSInteger.
7130
7131 * xmenu.c: Revert last change.
7132
7133 * keyboard.h: Fix last change.
7134
7135 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7136
7137 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7138 on Windows.
7139
7140 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7141
7142 Warning clearing and clean-up in NS port.
7143 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7144 Add prototypes.
7145 * nsgui.h (FACE_DEFAULT): Remove, unused.
7146 (XGCValues): Change colors to unsigned long.
7147 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7148 nsterm.m.
7149 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7150 (ns_list_fonts): Remove, unused.
7151 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7152 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7153 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7154 (nsfont_draw): Compare face colors to 0, not nil.
7155 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7156 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7157 (-addSubmenuWithTitle:): Use NSMenuItem class.
7158 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7159 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7160 (ns_clip_to_row): Make gc arg a BOOL.
7161 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7162 ns_clip_to_row() call.
7163 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7164 used). Cast FRAME_FONT assignments.
7165 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7166 (ns_string_to_lispmod): Change arg to const char.
7167 (ns_term_init): Use NSMenuItem class.
7168 (EmacsApp -openFile:): Move to different section of file.
7169 (EmacsApp -application:openFiles:): Don't return a value, call
7170 -replyToOpenOrPrint:.
7171 (EmacsView -keyDown:): Fix up cast.
7172 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7173 (EmacsView -menuDown:): Cast tag in call to
7174 find_and_call_menu_selection().
7175 (ns_list_fonts): Remove, unused.
7176 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7177 (ns_fontname_to_xlfd): Make static.
7178 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7179 Remove prototypes (now in keyboard.h).
7180 (next_menubar_widget_id): Remove, unused.
7181 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7182 Remove prototypes (now in keyboard.h).
7183 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7184
7185 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7186
7187 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7188 (floatfns.o): Depend on syssignal.h.
7189 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7190
7191 * systty.h: Fix previous change that removed BSD_TERMIOS.
7192 Add comments to #ifdefs.
7193
7194 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7195
7196 * w32fns.c (w32-load-color-file): Remove.
7197 (x-open-connection): Use renamed Fx_load_color_file.
7198 * xfaces.c (x-load-color-file): Add.
7199 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7200 Emacs.clr.
7201 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7202
7203 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
7204
7205 * dbusbind.c (Fdbus_call_method_asynchronously)
7206 (Fdbus_method_error_internal): New defuns.
7207 (xd_read_message): Handle also reply messages.
7208 (Vdbus_registered_functions_table): Extend docstring.
7209
7210 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
7211
7212 * keyboard.c (gobble_input): Fix previous change.
7213
7214 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7215
7216 * bitmaps/README:
7217 * xfns.c:
7218 * termcap.c:
7219 * term.c:
7220 * syswait.h:
7221 * systty.h:
7222 * systime.h:
7223 * syssignal.h:
7224 * sysdep.c:
7225 * process.h:
7226 * process.c:
7227 * print.c:
7228 * ndir.h:
7229 * lread.c:
7230 * keyboard.c:
7231 * getpagesize.h:
7232 * floatfns.c:
7233 * fileio.c:
7234 * emacs.c:
7235 * doc.c:
7236 * dispnew.c:
7237 * dired.c:
7238 * data.c:
7239 * callproc.c:
7240 * buffer.c:
7241 * README:
7242 * Makefile.in:
7243 * s/template.h:
7244 * s/msdos.h:
7245 * m/vax.h: Remove VMS support.
7246 * s/vms.h:
7247 * vlimit.h:
7248 * uaf.h:
7249 * temacs.opt:
7250 * param.h:
7251 * ioctl.h: Remove file.
7252
7253 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7254
7255 * s/ms-w32.h (MULTI_KBOARD): Remove.
7256 * xterm.c:
7257 * xselect.c:
7258 * xfns.c:
7259 * window.c:
7260 * w32term.c:
7261 * w32fns.c:
7262 * terminal.c:
7263 * termhooks.h:
7264 * term.c:
7265 * sysdep.c:
7266 * keyboard.h:
7267 * keyboard.c:
7268 * frame.h:
7269 * frame.c:
7270 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7271 * config.in: Regenerate.
7272
7273 2008-07-30 Jason Rumney <jasonr@gnu.org>
7274
7275 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7276
7277 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7278 (w32font_open_internal): Get unicode version of textmetrics.
7279 Don't enable or disable glyph indices here.
7280 (w32font_open): Disable use of glyph indices.
7281
7282 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7283
7284 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
7285
7286 * minibuf.c (Vread_buffer_function): Doc fix.
7287
7288 2008-07-30 John Paul Wallington <jpw@pobox.com>
7289
7290 * minibuf.c (read_buffer_completion_ignore_case): New var.
7291 (Fread_buffer): Use it.
7292
7293 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7294
7295 * systty.h (sensemode): Remove empty #if. Remove reference to
7296 BSD_TERMIOS, unused.
7297
7298 * sysdep.c: Remove reference to DGUX.
7299 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7300
7301 * config.in: Regenerate.
7302
7303 2008-07-30 Jason Rumney <jasonr@gnu.org>
7304
7305 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7306
7307 2008-07-29 Jason Rumney <jasonr@gnu.org>
7308
7309 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7310 is populated.
7311 (uniscribe_encode_char): Always use uniscribe.
7312 Avoid using context if cache is populated.
7313
7314 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7315
7316 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7317 open menu.
7318
7319 * gtkutil.c (menu_nav_ended): Remove.
7320 (create_menus): Remove signal connect for menu_nav_ended.
7321
7322 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
7323
7324 * xdisp.c (redisplay_window): Check return value of
7325 compute_window_start_on_continuation_line before forcing a window
7326 start.
7327
7328 2008-07-28 Jason Rumney <jasonr@gnu.org>
7329
7330 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7331
7332 * w32term.c (w32_enable_unicode_output, cleartype_active):
7333 Remove obsolete display options.
7334 (x_draw_glyph_string_background): Don't use old cleartype_active
7335 workaround.
7336 (w32_initialize): Remove cleartype_active initialization.
7337 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7338
7339 2008-07-28 Andreas Schwab <schwab@suse.de>
7340
7341 * lisp.h (init_weak_hash_tables, syms_of_font)
7342 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7343 (remove_hash_entry): Don't declare.
7344 * eval.c (maybe_call_debugger): Make static and move before use.
7345 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7346 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7347 * xterm.h (x_set_frame_alpha): Declare.
7348
7349 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7350
7351 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7352 (create_menus): Connect selection-done to menu_nav_ended.
7353
7354 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7355
7356 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7357 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7358 parameter with read of 'alpha' one.
7359 (Qns_frame_parameter): Remove.
7360 * nsselect.m (selection-coding-system)
7361 (next-selection-coding-system, Vselection_coding_system)
7362 (Vnext_selection_coding_system): Drop.
7363
7364 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7365
7366 * nsfns.m (do-applescript, do_applescript): Rename to
7367 ns-do-applescript, ns_do_applescript, and move within file.
7368
7369 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7370
7371 Remove support for Mac Carbon.
7372 * mactoolbox.c:
7373 * macterm.h:
7374 * macterm.c:
7375 * macselect.c:
7376 * macmenu.c:
7377 * macgui.h:
7378 * macfns.c:
7379 * mac.c: Remove file.
7380 * s/darwin.h:
7381 * m/intel386.h:
7382 * xfaces.c:
7383 * xdisp.c:
7384 * window.c:
7385 * tparam.c:
7386 * termhooks.h:
7387 * termcap.c:
7388 * term.c:
7389 * syssignal.h:
7390 * sysselect.h:
7391 * sysdep.c:
7392 * process.c:
7393 * lread.c:
7394 * lisp.h:
7395 * keyboard.c:
7396 * image.c:
7397 * fringe.c:
7398 * frame.h:
7399 * frame.c:
7400 * fontset.c:
7401 * font.h:
7402 * font.c:
7403 * fns.c:
7404 * fileio.c:
7405 * emacs.c:
7406 * dispnew.c:
7407 * dispextern.h:
7408 * config.in:
7409 * atimer.c:
7410 * Makefile.in: Remove code for Carbon.
7411
7412 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7413
7414 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7415
7416 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7417
7418 * macterm.h (kCGBitmapByteOrder32Host): New define for
7419 non-universal SDKs.
7420
7421 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7422 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7423
7424 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7425 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7426
7427 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7428
7429 * w32inevt.c: Include dispextern.h.
7430
7431 2008-07-26 Andreas Schwab <schwab@suse.de>
7432
7433 * print.c (print_object): Fix off-by-one in last change.
7434
7435 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
7436
7437 * term.c (syms_of_term): Don't initialize default_orig_pair,
7438 default_set_foreground and default_set_background on Windows.
7439
7440 2008-07-25 Jason Rumney <jasonr@gnu.org>
7441
7442 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7443 ScriptItemize. Clean up return value checking. Remove unused
7444 variables.
7445 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7446 shaping engine.
7447
7448 * w32font.c (w32font_has_char): Handle the case where we can't
7449 determine the script for a character.
7450
7451 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7452
7453 * term.c (syms_of_term): Initialize default_orig_pair,
7454 default_set_foreground, and default_set_background.
7455
7456 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7457 clash (bug#86).
7458 (getloadavg): Callers changed.
7459
7460 * image.c (svg_load_image): Fix last change.
7461 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7462 image size is valid. Use g_object_unref instead of deprecated
7463 rsvg_handle_free to free rsvg handle.
7464 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7465
7466 2008-07-25 Jason Rumney <jasonr@gnu.org>
7467
7468 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7469 surrogates before looking up glyph index.
7470 (w32font_text_extents): Encode as surrogates if falling back to
7471 functions that need UTF-16 wide chars.
7472
7473 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7474 BMP as surrogates before looking up glyph index.
7475
7476 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7477
7478 * image.c (svg_load_image): Check for failure in return value of
7479 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7480
7481 2008-07-25 Jason Rumney <jasonr@gnu.org>
7482
7483 * w32font.c (Fx_select_font): Reverse sense of second arg.
7484
7485 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7486
7487 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7488 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7489
7490 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7491 (PURESIZE): Use it.
7492
7493 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7494
7495 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7496 * m/alpha.h (TEXT_END):
7497 * m/ibmrs6000.h (TEXT_END):
7498 * m/macppc.h (TEXT_END):
7499 * s/darwin.h (TEXT_END):
7500 * s/msdos.h (TEXT_END): Remove, unused.
7501 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7502 * s/cygwin.h: Remove comment.
7503
7504 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7505 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7506 * m/intel386.h (DOT_GLOBAL_START):
7507 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7508 (USG): Remove, file not used on USG platforms.
7509
7510 * Makefile.in (HAVE_X11): Remove empty #else.
7511
7512 2008-07-24 Andreas Schwab <schwab@suse.de>
7513
7514 * fileio.c (Finsert_file_contents): Properly adjust undo list
7515 after format conversion.
7516
7517 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7518
7519 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7520 (menu_nav_ended): Remove.
7521 (create_menus): Remove signal connect for menu_nav_ended.
7522 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7523 create_menus.
7524 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7525
7526 2008-07-23 Jason Rumney <jasonr@gnu.org>
7527
7528 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7529 with opened font.
7530 (w32font_open): Set font type to gdi.
7531
7532 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7533
7534 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7535
7536 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7537 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7538 defines it.
7539 * unexec.c (ADDR_CORRECT): Define unconditionally.
7540
7541 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7542
7543 * unexec.c: Remove code depending on !COFF and USG, the file is
7544 not used for such systems.
7545
7546 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7547 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7548 (LD_SWITCH_SYSTEM_1): Remove, update users.
7549
7550 * s/darwin.h (DATA_END):
7551 * m/intel386.h (DATA_END):
7552 * m/ibmrs6000.h (DATA_END):
7553 * m/alpha.h (DATA_END): Remove, unused.
7554
7555 * config.in: Regenerate.
7556 * s/ms-w32.h (subprocesses): Define unconditionally.
7557 * s/template.h (subprocesses): Update comment.
7558 * s/vms.h (subprocesses):
7559 * s/usg5-4.h (subprocesses):
7560 * s/hpux10-20.h (subprocesses):
7561 * s/gnu-linux.h (subprocesses):
7562 * s/cygwin.h (subprocesses):
7563 * s/bsd-common.h (subprocesses):
7564 * s/aix4-2.h (subprocesses):
7565 * s/darwin.h (subprocesses): Do not define, defined by default now.
7566
7567 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7568 Remove all references.
7569 (temacs): Add GNUstep specific ld flags.
7570
7571 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7572 similarly to what X does.
7573
7574 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7575
7576 * nsfns.m (x-list-fonts): Remove.
7577 (syms_of_nsfns): Drop the x-list-fonts declaration.
7578 * nsterm.m: Get rid of remaining "//" comments.
7579
7580 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
7581
7582 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7583
7584 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7585 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7586 (Fns_own_selection_internal, Fx_disown_selection_internal)
7587 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7588
7589 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7590 ... */' style of docstrings. Doc fixes.
7591
7592 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7593
7594 * terminfo.c (UP, BC, PC): Undo previous change.
7595
7596 * nsfns.m: Rename ns prefixed functions/variables to the
7597 corresponding x versions. Update references.
7598
7599 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7600
7601 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7602
7603 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7604
7605 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7606 Remove forwarding functions.
7607 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7608 non-static.
7609 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7610 non-static.
7611 (ns_frame_parm_handlers): Use the new names.
7612 (syms_of_nsfns): Move to the end of file.
7613
7614 * nsterm.m (syms_of_nsterm): Move to the end of file.
7615
7616 * dispnew.c (init_display): Remove code for X10.
7617
7618 2008-07-22 Jason Rumney <jasonr@gnu.org>
7619
7620 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7621 bare drive.
7622
7623 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7624
7625 * nsterm.m (syms_of_nsterm): Remove debugging println.
7626
7627 2008-07-22 David Reitter <david.reitter@gmail.com>
7628
7629 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7630 Carbon implementation of the same functionality: execute arbitrary
7631 AppleScript code.
7632
7633 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7634
7635 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7636 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7637 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7638 (Fx_display_mm_height, Fx_display_mm_width)
7639 (Fx_display_backing_store, Fx_display_visual_class)
7640 (Fx_display_save_under, Fx_open_connection)
7641 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7642 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7643 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7644 (Fx_display_pixel_width, Fx_display_pixel_height)
7645 (Fx_display_usable_bounds, Fx_display_planes)
7646 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7647 ... */' style of docstrings.
7648
7649 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7650
7651 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7652 on this platform.
7653 (mips):
7654 * m/iris4d.h (mips): Do not define.
7655 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7656
7657 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7658
7659 * image.c:
7660 * nsfns.m:
7661 * nsselect.m:
7662 * nsterm.h:
7663 * nsterm.m: Rename ns prefixed functions/variables to the
7664 corresponding x versions. Update references.
7665
7666 * m/ibms390x.h (NO_REMAP): Do not undefine.
7667
7668 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7669
7670 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
7671
7672 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7673 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7674 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7675 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7676 (Fns_display_mm_height, Fns_display_mm_width)
7677 (Fns_display_backing_store, Fns_display_visual_class)
7678 (Fns_display_save_under, Fns_open_connection)
7679 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7680 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7681 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7682 (Fns_display_pixel_width, Fns_display_pixel_height)
7683 (Fns_display_usable_bounds, Fx_display_planes)
7684 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7685
7686 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7687
7688 * print.c (print_object): Check print_depth before searching for
7689 circularities.
7690
7691 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
7692
7693 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7694 only sprintf.
7695
7696 2008-07-21 Kenichi Handa <handa@m17n.org>
7697
7698 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7699
7700 2008-07-20 Andreas Schwab <schwab@suse.de>
7701
7702 * syntax.c (find_start_pos, find_start_value)
7703 (find_start_value_byte, find_start_begv, find_defun_start)
7704 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7705
7706 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7707
7708 * s/sol2-3.h: Insert contents of s/sol2.h.
7709 (LD_SWITCH_SYSTEM): Remove redundant definition.
7710 * s/sol2.h: Remove, unused.
7711
7712 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7713
7714 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7715
7716 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7717
7718 * Makefile.in (ns_appdir): Fix typo in find command.
7719
7720 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7721
7722 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7723
7724 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7725 added not supported anymore.
7726
7727 * s/usg5-4-2.h (LIBS_SYSTEM):
7728 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7729
7730 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7731 * s/lynxos.h (GETPGRP_NO_ARG):
7732 * s/hpux10-20.h (NO_SIOCTL_H):
7733 * s/gnu.h (GETPGRP_NO_ARG):
7734 * s/gnu-linux.h (NO_SIOCTL_H):
7735 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7736 * s/cygwin.h (GETPGRP_NO_ARG):
7737 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7738 (C_DEBUG_SWITCH): Remove duplicate definition.
7739
7740 * m/ibms390.h: Remove boilerplate comments.
7741
7742 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7743
7744 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7745 (wait_reading_process_output): Remove code for SunOS, platform not
7746 supported anymore. Use SOLARIS2 instead of sun.
7747
7748 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7749
7750 * font.c (font_open_by_name): Under NS, default lface height to zero.
7751 (font_open_for_lface): Under NS, set size based on frame fontsize.
7752 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7753 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7754
7755 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7756
7757 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7758 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7759 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7760 YES/NO.
7761 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7762 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7763 * Makefile.in (clean): Clear out build destination dir.
7764
7765 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7766
7767 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7768 xterm, xselect.
7769 * lisp.h: Remove declaration of hash_remove.
7770 * nsgui.h: Remove redefinitions of hash_remove.
7771 * fns.c (hash_remove): Rename to hash_remove_from_table.
7772
7773 2008-07-19 Seiji Zenitani <zenitani@mac.com>
7774
7775 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7776 strdup() the family UTF8String before modifying it.
7777
7778 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7779
7780 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7781 NS_FACE_BACKGROUND with 0 instead of nil.
7782 * nsfont.m (nsfont_draw): Same.
7783
7784 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
7785
7786 * nsfns.m (ns_set_background_color): Fix crash.
7787
7788 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
7789
7790 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7791
7792 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7793
7794 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7795
7796 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7797
7798 * gtkutil.c: Include <config.h> instead of "config.h".
7799
7800 * lisp.h (Foverlay_buffer): Add EXFUN.
7801
7802 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7803 child process to complete child_setup. Undo 2005-09-21 change.
7804
7805 * s/darwin.h: Mention setsid after vfork.
7806
7807 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7808
7809 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7810 Depend on macgui.h.
7811
7812 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7813 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7814
7815 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7816 and f19.
7817 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7818
7819 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7820 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7821 Remove enumerators.
7822
7823 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7824 Check if FACE_FROM_ID returns NULL.
7825
7826 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7827
7828 * w32inevt.c (change_frame_size): Remove extern declaration.
7829 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7830 change_frame_size.
7831
7832 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7833
7834 * getloadavg.c: Revert last change (2008-07-15).
7835
7836 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7837
7838 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
7839 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
7840 from configure.
7841
7842 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7843
7844 * s/sol2.h:
7845 * s/sol2-4.h: Reorganize conditionals.
7846
7847 * ecrt0.c: Remove code depending on m68000, not used anymore.
7848
7849 * fns.c (hash_remove): Make static.
7850 * lisp.h (hash_remove): Don't prototype.
7851
7852 * m/ibmrs6000.h:
7853 * m/ibms390x.h:
7854 * m/macppc.h: Remove boilerplate comments.
7855
7856 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7857 Solaris, which does not need them.
7858
7859 * m/vax.h: Remove comments about unsupported systems.
7860
7861 * s/darwin.h: Reorganize ifdefs.
7862
7863 2008-07-17 Andreas Schwab <schwab@suse.de>
7864
7865 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7866
7867 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7868
7869 Use SDATA. Follow coding convention of placing operators at
7870 beginning of next line rather than end of previous line, and placing
7871 spaces around infix operators.
7872
7873 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7874 in case it was defined already.
7875 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7876 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7877 ns_default.
7878 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7879 Lisp_Objects.
7880 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7881 (ns_defined_color, ns_color_to_lisp): Declare.
7882 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7883 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7884 it's accepted even with USE_LISP_UNION_TYPE.
7885 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7886 (update_frame_tool_bar): Remove apparently obsolete tests for
7887 non-integerness of f->tool_bar_lines.
7888 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7889 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7890 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7891 (nsfont_open): Don't confuse NULL for Qnil.
7892 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7893 * menu.h (find_and_call_menu_selection):
7894 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7895 (find_and_return_menu_selection): Always return something.
7896 * frame.h: Include dispextern.h for Display_Info.
7897 (display_x_get_resource): Declare.
7898
7899 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7900
7901 * syntax.c: Remove stdio.h include accidentally introduced in
7902 Emacs.app commit.
7903 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7904 NS_IMPL_COCOA.
7905 * keyboard.c (handle_async_input, input_available_signal): Remove
7906 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7907
7908 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7909
7910 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7911 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7912 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7913 Use SDATA.
7914
7915 * keymap.c: Remove all NS-specific code.
7916 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7917 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7918 where_is_preferred_modifier, return a different value depending on how
7919 preferred is the binding.
7920 (where_is_internal): Adjust accordingly.
7921 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7922 Adjust to new preferred_sequence_p.
7923 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7924 * keyboard.c (parse_solitary_modifier): Not static any more.
7925 * keyboard.h (parse_solitary_modifier): Declare.
7926
7927 2008-07-16 Andreas Schwab <schwab@suse.de>
7928
7929 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7930 of easymenu.
7931
7932 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
7933
7934 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7935 that we don't move off the line.
7936
7937 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7938
7939 * keyboard.c (Qsuper): Remove.
7940 (parse_menu_item): Don't call where_is_internal specially for NS.
7941
7942 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7943
7944 * s/gnu-linux.h: Remove boilerplate comments.
7945
7946 * m/alpha.h (__ELF__): Consolidate conditions.
7947
7948 * m/m68k.h (linux): Use GNU_LINUX instead.
7949 Remove boilerplate comments.
7950
7951 * m/intel386.h: Undo refactoring from previous change.
7952 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7953 too, remove dead code.
7954 (linux): Use GNU_LINUX instead.
7955
7956 2008-07-16 Jason Rumney <jasonr@gnu.org>
7957
7958 * w32gui.h: Repeat 26 June changes lost by last change.
7959
7960 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7961
7962 * systty.h: Remove code for Aix on 386, unsupported platform.
7963
7964 * s/ms-w32.h: Remove boilerplate comments.
7965 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7966
7967 * s/gnu-linux.h (TERM): Remove support.
7968 (HAVE_SYSVIPC): Remove, unused.
7969 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7970 for this system.
7971
7972 * process.c: Remove support for IRIS, unused.
7973 Remove support for TERM, not relevant anymore.
7974
7975 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7976 used with the definition.
7977
7978 * s/aix4-2.h (static): Do not undef.
7979
7980 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7981 only used on Aix.
7982 (HAVE_SYSVIPC): Remove, unused.
7983
7984 * m/hp800.h (CANNOT_DUMP): Do not undef.
7985
7986 * m/alpha.h: Fix comment.
7987
7988 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7989 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7990 used by this configuration.
7991 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7992 * unexec.c: Remove code depending on HPUX and
7993 USG_SHARED_LIBRARIES, not used with this file. Remove code
7994 depending on IRIS, unused. Remove if 0-ed code.
7995
7996 * s/template.h: Remove comments about static.
7997
7998 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7999 Remove if 0-ed code.
8000 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8001 were the same as the default.
8002 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8003 Remove boilerplate comments.
8004 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8005 (HAVE_SYSVIPC): Remove, unused.
8006 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8007
8008 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8009 Remove boilerplate comments.
8010 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8011 Remove boilerplate comments.
8012 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8013 Remove boilerplate comments.
8014 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8015
8016 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8017 USG systems which do not use DATA_SEG_BITS.
8018 Refactor code. Remove boilerplate comments.
8019
8020 * m/ibms390.h:
8021 * m/m68k.h:
8022 * s/bsd-common.h:
8023 * s/cygwin.h:
8024 * s/darwin.h:
8025 * s/freebsd.h:
8026 * s/gnu.h:
8027 * s/msdos.h: Remove boilerplate comments.
8028
8029 * m/iris4d.h: Remove boilerplate comments and code for systems that
8030 do not use this file.
8031 (IRIS_4D): Remove, unused.
8032
8033 * m/mips.h: Remove boilerplate comments and code for systems that
8034 do not use this file.
8035 (SIGN_EXTEND_CHAR):
8036 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8037 * unexmips.c: Remove file, unused.
8038
8039 * editfns.c (Fuser_full_name): Replace the only use of
8040 USER_FULL_NAME with its value.
8041 * config.in: Regenerate.
8042
8043 2008-07-16 David Reitter <david.reitter@gmail.com>
8044
8045 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8046 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8047
8048 2008-07-16 Glenn Morris <rgm@gnu.org>
8049
8050 * emacs.c (system-type): Doc fix.
8051
8052 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8053
8054 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8055 If the cache doesn't work, let's fix it, rather than work around it.
8056
8057 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8058
8059 * Makefile.in: Correct additions for nsfont.o in last commit.
8060 * nsfont.m: New file (forgot last commit).
8061
8062 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8063
8064 * callproc.c (set_initial_environment): Initialize
8065 Vprocess_environment under CANNOT_DUMP (fixes crash when
8066 batch-compiling for bootstrap).
8067
8068 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8069 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8070
8071 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8072 fix crash due to different init order.
8073
8074 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8075
8076 Changes and additions for NeXTstep windowing system (Cocoa and
8077 GNUstep) support.
8078
8079 * Makefile.in:
8080 * config.in: Support defines and build commands for NS port.
8081 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8082 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8083 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8084 windowing.
8085 (struct face): Add synth_ital field.
8086 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8087 (init_display): Initialize Vinitial_window_system to "ns" when so
8088 compiled.
8089 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8090 (display_arg): Use under NS.
8091 (main): Under NS, allocate autorelease pool and handle command line
8092 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8093 (standard_args): Add NS-specific args.
8094 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8095 * font.c (DEFAULT_ENCODING): New variable.
8096 (font_find_for_lface): Use it.
8097 (syms_of_font): Load syms_of_nsfont under NS.
8098 * font.h: Declare nsfont_driver when compiled under NS.
8099 * fontset.c: When compiling under NS, include nsterm.h.
8100 (fontset_from_font): Autoconstruct fontset under NS.
8101 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8102 symbol, document and use it.
8103 (do_switch_frame): When for_deletion under Cocoa, add
8104 Fraise_frame(Qnil).
8105 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8106 (x_get_arg): Allow "yes" and "no" as boolean values.
8107 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8108 Qright under Cocoa.
8109 (focus-follows-mouse): Default to 0 under NS.
8110 * frame.h (enum output_method): Add output_ns.
8111 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8112 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8113 (FRAME_WINDOW_P): NS-specific definition.
8114 * fringe.c (max_used_fringe_bitmap): Make public.
8115 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8116 (getloadavg): Use NeXT code under descendant OS's.
8117 * image.c (includes and header section, x_create_bitmap_from_data)
8118 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8119 (image_background_transparent, x_clear_image_1)
8120 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8121 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8122 (x_to_xcolors, x_from_xcolors, x_disable_image)
8123 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8124 other GUIs, including XPM support using code originally written for
8125 Carbon GUI.
8126 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8127 using NS API.
8128 (image_ascent): Use font metrics macros instead of direct struct field
8129 access.
8130 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8131 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8132 Also, handle NS as GTK for menu bar purposes.
8133 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8134 toolkit where they differ.
8135 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8136 use cachelist, still needed under NS.
8137 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8138 (struct widget_value): Define it here for menu.c.
8139 * keymap.c (includes): Include modifier internals.
8140 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8141 NS.
8142 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8143 support for preferring sequences using certain modifiers, specified by
8144 the FIRSTONLY argument.
8145 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8146 under NS GNUstep implementation.
8147 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8148 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8149 * menu.c: Include nsterm.h under NS.
8150 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8151 (free_menubar_widget_tree_value, update_submenu_strings)
8152 (find_and_call_menu_selection): Treat NS as X and NT.
8153 (find_and_return_menu_selection): New function, used for popup menus.
8154 * nsgui.h:
8155 * nsterm.h:
8156 * nsfns.m:
8157 * nsimage.m:
8158 * nsmenu.m:
8159 * nsselect.m:
8160 * nsterm.m: New files.
8161 * process.c (wait_reading_process_output): Under NS, call ns_select()
8162 instead of plain select().
8163 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8164 beginning of buffer.
8165 * sysselect.h (init_process): Rename when compiling under Cocoa to
8166 avoid name conflict.
8167 * termhooks.h (display_info): Add ns_display_info to union.
8168 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8169 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8170 COCOA environment.
8171 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8172 unexec() signature. (Note, this will dump, but the resulting file
8173 crashes; unexosx is used instead; keeping around for reference and
8174 possible aid in getting dump working under GNUstep.)
8175 * w32gui.h (button_type, widget_value): Remove definitions (now in
8176 keyboard.h).
8177 * window.c: Include nsterm.h when compiling under NS.
8178 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8179 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8180 other GUI windowing systems.
8181 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8182 GTK.
8183 (x_consider_frame_title): Under NS, set icon type and frame
8184 modified-state indicator; use ns_set_name_as_filename() when using
8185 formatted title.
8186 (update_window_cursor): Make public when compiling under NS.
8187 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8188 (hourglass_atimer, Vhourglass_delay
8189 * xfaces.c (header section, init_frame_faces, clear_font_table)
8190 (defined_color, unload_color, x_face_list_fonts)
8191 (prepare_face_for_display): Add NS support parallel to other GUIs.
8192 Emulate GCs like other non-X GUIs.
8193 (split_font_name): Don't lowercase font name under NS.
8194 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8195 under NS.
8196 * s/darwin.h: Add support for compilation under NS.
8197
8198 2008-07-15 Jason Rumney <jasonr@gnu.org>
8199
8200 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8201 (w32_show_hourglass): Rename from show_hourglass.
8202 (w32_hide_hourglass): Rename from hide_hourglass.
8203 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8204 (Vhourglass_delay): Declare extern.
8205 (hourglass_started): Remove.
8206
8207 * xdisp.c (Vhourglass_delay): Remove static.
8208 (hourglass_started, start_hourglass, cancel_hourglass):
8209 Don't include these versions on WINDOWSNT.
8210
8211 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8212
8213 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8214 variables (formerly in xfns.c).
8215 (show_hourglass, hide_hourglass): New prototypes (same).
8216 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8217 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8218 in xfns.c).
8219 (syms_of_xdisp): Declare/initialize display-hourglass,
8220 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8221 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8222 formerly in xfns.c.
8223 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8224 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8225 (start_hourglass, cancel_hourglass): Remove.
8226 (show_hourglass, hide_hourglass): Remove prototypes and static
8227 modifiers.
8228 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8229 hourglass_atimer, hourglass_shown_p declaration/initialization.
8230 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8231 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8232 (start_hourglass, cancel_hourglass): Remove.
8233 (show_hourglass, hide_hourglass): Remove prototypes and static
8234 modifiers.
8235 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8236 hourglass_atimer, hourglass_shown_p declaration/initialization.
8237 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8238 (DEFAULT_HOURGLASS_DELAY): Remove.
8239 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8240 hourglass_shown_p declaration/initialization.
8241
8242 2008-07-14 Jason Rumney <jasonr@gnu.org>
8243
8244 * w32fns.c (w32_get_arg): Remove wrapper function.
8245 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8246 directly.
8247 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8248
8249 2008-07-14 Kenichi Handa <handa@m17n.org>
8250
8251 * xfont.c (xfont_open): Add workaround for X's bug.
8252
8253 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8254
8255 * fontset.c: Include <stdio.h> unconditionally.
8256
8257 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
8258
8259 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8260 for filtering.
8261
8262 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8263
8264 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8265
8266 * m/macppc.h:
8267 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8268
8269 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8270 (SPECIAL_EMACS_INT):
8271 * m/ia64.h (SPECIAL_EMACS_INT):
8272 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8273 * s/gnu.h (NLIST_STRUCT):
8274 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8275 * s/gnu-linux.h (LINUX):
8276 * s/msdos.h (HAVE_FACES):
8277 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8278
8279 * systty.h:
8280 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8281 anymore.
8282
8283 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8284
8285 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8286 always defined as int.
8287
8288 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8289 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8290 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8291 * s/freebsd.h (HAVE_WAIT_HEADER):
8292 * s/bsd-common.h (HAVE_UNION_WAIT):
8293 * s/aix4-2.h (HAVE_WAIT_HEADER):
8294 * m/mips.h (HAVE_UNION_WAIT):
8295 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8296 (COFF, static): Do not define, they are undefined later in the file.
8297
8298 * process.c (update_status): Don't use a union.
8299 (status_convert):
8300 (sigchld_handler): Use int instead of WAITTYPE.
8301
8302 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
8303
8304 * indent.c (Fvertical_motion): Restore hscroll before moving to
8305 goal column.
8306
8307 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8308
8309 * lisp.h: Remove left over code.
8310
8311 2008-07-11 Andreas Schwab <schwab@suse.de>
8312
8313 * lisp.h: Fix logic in last change.
8314
8315 * menu.h: New file.
8316 * menu.c: Include it.
8317 * xmenu.c: Likewise.
8318 * Makefile.in: Update dependencies.
8319
8320 2008-07-11 Kenichi Handa <handa@m17n.org>
8321
8322 * fontset.c (fontset_from_font): Cancel the previous change.
8323
8324 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8325
8326 * lisp.h:
8327 * w32heap.c:
8328 * emacs.c:
8329 * alloc.c: Replace all references of NO_UNION_TYPE with
8330 USE_LISP_UNION_TYPE.
8331
8332 * m/xtensa.h (NO_UNION_TYPE):
8333 * m/vax.h (NO_UNION_TYPE):
8334 * m/template.h (NO_UNION_TYPE):
8335 * m/sparc.h (NO_UNION_TYPE):
8336 * m/mips.h (NO_UNION_TYPE):
8337 * m/macppc.h (NO_UNION_TYPE):
8338 * m/m68k.h (NO_UNION_TYPE):
8339 * m/iris4d.h (NO_UNION_TYPE):
8340 * m/intel386.h (NO_UNION_TYPE):
8341 * m/ibms390x.h (NO_UNION_TYPE):
8342 * m/ibms390.h (NO_UNION_TYPE):
8343 * m/ibmrs6000.h (NO_UNION_TYPE):
8344 * m/ia64.h (NO_UNION_TYPE):
8345 * m/hp800.h (NO_UNION_TYPE):
8346 * m/arm.h (NO_UNION_TYPE):
8347 * m/amdx86-64.h (NO_UNION_TYPE):
8348 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8349 defining it the same.
8350
8351 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
8352
8353 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8354
8355 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8356
8357 * fileio.c:
8358 * sysdep.c
8359 * systty.h:
8360 * m/ibmrs6000.h:
8361 * m/iris4d.h:
8362 * s/aix4-2.h:
8363 * s/freebsd.h:
8364 * s/gnu-linux.h:
8365 * s/hpux10-20.h:
8366 * s/hpux11.h:
8367 * s/netbsd.h:
8368 * s/sol2-3.h:
8369 * s/sol2-4.h:
8370 * s/sol2.h:
8371 * s/usg5-4.h:
8372 * s/vms.h: Remove references to unused variables.
8373
8374 2008-07-10 Andreas Schwab <schwab@suse.de>
8375
8376 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8377 pattern before matching the generic family.
8378
8379 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8380
8381 * unexec.c:
8382 * s/vms.h:
8383 * s/usg5-4-2.h:
8384 * s/sol2-5.h:
8385 * s/freebsd.h:
8386 * s/darwin.h: Remove dead code.
8387
8388 * m/template.h:
8389 * m/sparc.h:
8390 * m/mips.h:
8391 * m/m68k.h:
8392 * m/iris4d.h:
8393 * m/intel386.h:
8394 * m/ibms390x.h:
8395 * m/ibms390.h:
8396 * m/ia64.h:
8397 * m/hp800.h:
8398 * m/arm.h:
8399 * m/amdx86-64.h: Remove dead code and references to unused
8400 and compiler defined symbols.
8401
8402 * unexmips.c:
8403 * unexelf.c: Remove references to desupported systems.
8404
8405 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8406
8407 * m/powermac.h: Remove boilerplate comments.
8408 (NO_REMAP): Remove unused definition.
8409
8410 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8411 define them.
8412
8413 2008-07-10 Kenichi Handa <handa@m17n.org>
8414
8415 * xfont.c (xfont_open): Log the reason of failure.
8416
8417 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8418
8419 * fontset.c (fontset_get_font_group):
8420 * font.c (font_check_otf): Specify argument types.
8421
8422 2008-07-09 Kenichi Handa <handa@m17n.org>
8423
8424 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8425 non-ASCII char is found.
8426
8427 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8428 (reorder_font_vector): Change the arg preferred_family to font.
8429 Prefer the spec matching with font.
8430 (fontset_get_font_group): New function.
8431 (fontset_find_font): Change the format of an element of a realized
8432 fontset. Use fontset_get_font_group.
8433 (fontset_font): Try the current fontset, the default fontset, the
8434 fallbacks of the current fontset, and the fallbacks of the default
8435 fontset in this order.
8436 (face_for_char): Delete the shortcut to use the current font.
8437 (fontset_from_font): Don't set fonts for Latin in the fontset.
8438
8439 * font.h (font_make_object, font_match_p): Adjust prototypes.
8440
8441 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8442
8443 * font.c (font_make_object): New arg entity and pixelsize.
8444 (font_check_otf_features, font_check_otf): New functions.
8445 (font_match_p): Check :lang, :script, and :otf properties.
8446
8447 * xfont.c (xfont_open): Adjust it for the change of
8448 font_make_object.
8449 (xfont_text_extents): Fix initial setting of metrics.
8450
8451 * ftfont.c (struct ftfont_info): New member index, delete member
8452 fc_charset_idx. Make the member order compatible with struct
8453 xftfont_info.
8454 (fc_charset_table): Change charset names to registry names.
8455 (ftfont_pattern_entity): Delete the args registry and
8456 fc_charset_idx. Change the value of :font-entity property
8457 to (FONTNAME . INDEX). Always set :registry property to
8458 `iso10646-1'.
8459 (struct ftfont_cache_data): New struct.
8460 (ftfont_lookup_cache): New arg for_face.
8461 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8462 (ftfont_driver): Set the member otf_capability.
8463 (ftfont_get_charset): Adjust it for the change of
8464 fc_charset_table.
8465 (OTF_TAG_SYM): New macro.
8466 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8467 for the change of fc_charset_table.
8468 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8469 ftfont_pattern_entity. Add FC_INDEX to objset.
8470 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8471 and ftfont_pattern_entity.
8472 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8473 font_make_object, struct ftfont_info.
8474 (ftfont_has_char): Use ftfont_get_fc_charset.
8475 (ftfont_otf_features, ftfont_otf_capability): New functions.
8476 (ftfont_shape): Use ftfont_get_otf.
8477 (ftfont_text_extents): Fix initial setting of metrics.
8478
8479 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8480 member order compatible with struct ftfont_info.
8481 (xftfont_open): Add FC_CHARSET to the pattern. Set
8482 xftfont_info->ft_size. Don't unlock the face. Check BDF
8483 properties if appropriate.
8484 (xftfont_close): Unlock the face.
8485 (xftfont_anchor_point, xftfont_shape): Deleted.
8486 (syms_of_xftfont): Don't set members anchor_point and shape of
8487 xftfont_driver.
8488
8489 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8490 font_make_object.
8491
8492 * w32font.c (w32font_open): Adjust it for the change of
8493 font_make_object.
8494 (w32font_open_internal): Don't set properties of font_object here.
8495
8496 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
8497
8498 * macfns.c (x_create_tip_frame):
8499 * w32fns.c (x_create_tip_frame):
8500 * xfns.c (x_create_tip_frame): Pass parameter argument to
8501 face-set-after-frame-default.
8502
8503 * xfaces.c (Finternal_merge_in_global_face): Save merged
8504 attributes for the default face back into the face vector.
8505
8506 2008-07-08 Andreas Schwab <schwab@suse.de>
8507
8508 * fontset.h: Declare fontset_from_font. Don't declare
8509 new_fontset_from_font and fontset_from_font_name.
8510 * xterm.c: Include "fontset.h".
8511 * Makefile.in (xterm.o): Update dependencies.
8512
8513 2008-07-08 Glenn Morris <rgm@gnu.org>
8514
8515 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8516 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8517
8518 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
8519
8520 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8521 (x_set_frame_parameters): Don't bind it.
8522
8523 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
8524
8525 * w32fns.c (map_w32_filename): Declare extern.
8526
8527 2008-07-07 Jason Rumney <jasonr@gnu.org>
8528
8529 * w32term.c (WS_EX_LAYERED): Define if not already.
8530
8531 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
8532
8533 * xfaces.c (set_font_frame_param): Don't try to set the font
8534 parameter if it is still unspecified in the lface.
8535
8536 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8537
8538 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8539 face if it didn't already exist.
8540
8541 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8542
8543 2008-07-05 Andreas Schwab <schwab@suse.de>
8544
8545 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8546
8547 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8548
8549 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8550 word-wrapping.
8551 (IT_DISPLAYING_WHITESPACE): New macro.
8552 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8553 when word-wrapping. Simplify word-wrapping logic. Use correct
8554 pixel positions when saving copies of the iterator.
8555 (display_line): Use proper wrap point if the last character on a
8556 line was preceded by whitespace.
8557
8558 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8559
8560 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8561
8562 2008-07-04 Kenichi Handa <handa@m17n.org>
8563
8564 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8565
8566 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8567
8568 2008-07-02 Jason Rumney <jasonr@gnu.org>
8569
8570 * xfns.c (syms_of_xfns): Only define x-select-font when both
8571 HAVE_FREETYPE and USE_GTK.
8572
8573 * xdisp.c (next_element_from_display_vector): Move assignment out
8574 of if statement.
8575
8576 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8577
8578 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8579
8580 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8581 (syms_of_fileio): Initialize and export them.
8582 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8583
8584 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8585 (Fsystem_move_file_to_trash): New function.
8586 (syms_of_w32fns): Export it to lisp.
8587
8588 2008-07-01 Jason Rumney <jasonr@gnu.org>
8589
8590 * w32font.c (w32font_text_extents): Don't count overhang as part
8591 of width.
8592
8593 2008-06-30 Miles Bader <miles@gnu.org>
8594
8595 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8596 Add `avoid_cursor_p' field.
8597
8598 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8599 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8600 (append_glyph, append_composite_glyph, produce_image_glyph)
8601 (append_stretch_glyph): Initialize avoid_cursor_p.
8602 (get_it_property): Rename from `get_line_height_property'.
8603 (x_produce_glyphs): Use get_it_property.
8604 (handle_line_prefix, push_display_prop): New functions.
8605 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8606 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8607 New variables.
8608 (syms_of_xdisp): Initialize them.
8609
8610 2008-06-30 Kenichi Handa <handa@m17n.org>
8611
8612 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8613 XftDefaultSubstitute (they are called in XftFontMatch).
8614 (xftfont_open): Fix args to ftfont_font_format.
8615
8616 * ftfont.c (fc_charset_table): New member lang.
8617 (ftfont_resolve_generic_family): New arg pattern.
8618 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
8619 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8620 (ftfont_open): Fix args to ftfont_font_format.
8621 (ftfont_font_format): New arg filename.
8622
8623 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
8624
8625 * xfaces.c (Finternal_merge_in_global_face): If default face was
8626 modified, realize it again. Update the font face attribute.
8627
8628 2008-06-29 Jason Rumney <jasonr@gnu.org>
8629
8630 * w32term.c (x_set_frame_alpha): Fix logic.
8631
8632 2008-06-29 Kenichi Handa <handa@m17n.org>
8633
8634 * fontset.c (Finternal_char_font): Return font-object instead of
8635 font-name.
8636
8637 * composite.c (get_composition_id): Fix the width calculation for TAB.
8638
8639 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8640
8641 * indent.c (Fvertical_motion): Properly handle float column arg.
8642
8643 2008-06-28 Jason Rumney <jasonr@gnu.org>
8644
8645 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8646 (pfnSetLayeredWindowAttributes): New function pointer.
8647 (w32_initialize): Initialize it when supported.
8648 (x_set_frame_alpha): New function.
8649
8650 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8651 (w32_frame_parm_handlers): Set alpha handler.
8652
8653 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8654
8655 2008-06-27 Jason Rumney <jasonr@gnu.org>
8656
8657 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8658 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8659 (w32_to_x_charset, x_to_w32_charset)
8660 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8661 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8662 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8663 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8664 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8665 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8666 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8667 (Qw32_charset_unicode): Remove.
8668 (syms_of_w32fns): Update for above changes.
8669
8670 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8671 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8672 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8673 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8674 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8675 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8676 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8677 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8678 (syms_of_w32font): Update for above changes.
8679
8680 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8681
8682 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8683 removed #if.
8684 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8685
8686 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8687 Eli Zaretskii <eliz@gnu.org>
8688
8689 * makefile.w32-in (LOCAL_FLAGS):
8690 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8691
8692 * sysdep.c (_spawnlp, _getpid):
8693 Declare with explicit _cdecl instead of _CRTAPI1.
8694
8695 * editfns.c (Fget_internal_run_time):
8696 Check for WINDOWSNT with #ifdef, not #if.
8697
8698 2008-06-26 Jason Rumney <jasonr@gnu.org>
8699
8700 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8701
8702 * w32term.c (x_draw_glyph_string_foreground)
8703 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8704 Use FONT_HANDLE macro.
8705 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8706
8707 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8708 (uniscribe_encode_char): Use FONT_HANDLE macro.
8709
8710 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8711 (w32font_text_extents): Use precast w32_font.
8712 (w32font_close): Free cached metrics.
8713 (w32font_open_internal): Allocate space for name on stack.
8714
8715 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
8716
8717 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8718
8719 2008-06-26 Jason Rumney <jasonr@gnu.org>
8720
8721 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8722 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8723
8724 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8725
8726 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8727
8728 2008-06-26 Jason Rumney <jasonr@gnu.org>
8729
8730 * w32bdf.c, w32bdf.h: Remove obsolete files.
8731
8732 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8733
8734 * w32gui.h: Don't include w32bdf.h.
8735 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8736 Remove obsolete font support.
8737
8738 * w32font.h (struct w32font_info): Remove compat_w32_font.
8739 Add hfont member.
8740 (FONT_COMPAT): Remove obsolete macro.
8741
8742 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8743 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8744 (w32font_open_internal): Remove compat code. Set new hfont member.
8745 (Fx_select_font): Use new hfont member.
8746
8747 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8748 (uniscribe_encode_char): Use new hfont member.
8749
8750 * w32term.c (x_draw_glyph_string_foreground)
8751 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8752 (x_draw_glyph_string): Use metrics in w32font_info.
8753
8754 2008-06-26 Kenichi Handa <handa@m17n.org>
8755
8756 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8757
8758 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8759
8760 * unexnext.c:
8761 * m/ews4800.h:
8762 * m/hp9000s300.h:
8763 * m/ibm370aix.h:
8764 * m/mips-siemens.h:
8765 * m/ncr386.h:
8766 * m/next.h:
8767 * m/pmax.h:
8768 * m/powerpcle.h:
8769 * m/tandem-s2.h:
8770 * s/386bsd.h:
8771 * s/bsd386.h:
8772 * s/bsd4-1.h:
8773 * s/bsd4-2.h:
8774 * s/bsdos2-1.h:
8775 * s/bsdos2.h:
8776 * s/bsdos3.h:
8777 * s/bsdos4.h:
8778 * s/nextstep.h:
8779 * s/ultrix4-3.h:
8780 * s/usg5-0.h:
8781 * s/usg5-2-2.h:
8782 * s/usg5-2.h:
8783 * s/usg5-4-3.h:
8784 * s/ux4800.h:
8785 * s/uxpds.h:
8786 * s/uxpv.h: Remove support for obsolete systems.
8787 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8788 Remove, insert contents in s/hpux10-20.h.
8789 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8790 Remove, insert contents in s/aix4-2.h.
8791 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8792 * s/bsd4-3.h: Rename to ...
8793 * s/bsd-common.h: ... this.
8794 * data.c:
8795 * doc.c:
8796 * ecrt0.c:
8797 * emacs.c:
8798 * fileio.c:
8799 * floatfns.c:
8800 * keyboard.c:
8801 * mem-limits.h:
8802 * print.c:
8803 * process.c:
8804 * sysdep.c:
8805 * syssignal.h:
8806 * systty.h:
8807 * syswait.h:
8808 * term.c:
8809 * unexec.c:
8810 * unexelf.c:
8811 * unexhp9k800.c:
8812 * m/hp800.h:
8813 * m/ibmrs6000.h:
8814 * m/mips.h:
8815 * m/vax.h:
8816 * s/darwin.h:
8817 * s/freebsd.h:
8818 * s/gnu.h:
8819 * s/ms-w32.h:
8820 * s/msdos.h:
8821 * s/netbsd.h:
8822 * s/template.h: Remove references to obsolete variables.
8823
8824 * Makefile.in: Add dependencies for all unexec files.
8825 (admindir): Remove unused variable.
8826 (UNEXEC_SRC): Remove references.
8827
8828 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
8829
8830 * xfns.c (x_default_font_parameter): If Xft is available, first
8831 try Monospace-12 for the default font.
8832
8833 2008-06-25 Jason Rumney <jasonr@gnu.org>
8834
8835 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8836
8837 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8838
8839 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8840
8841 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8842
8843 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
8844
8845 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8846 <scroll-conservatively>: Fix typo in docstring.
8847
8848 * xselect.c (Fx_send_client_event): Doc fix.
8849
8850 2008-06-25 Kenichi Handa <handa@m17n.org>
8851
8852 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8853
8854 * font.c (font_parse_fcname): Remove unused variables.
8855 (font_sort_entites): Delete the arg SPEC. Caller changed.
8856 Fix for the case of ! best_only.
8857 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8858
8859 * lisp.h (Fstring_to_unibyte): EXFUN it.
8860
8861 * character.h (str_to_unibyte): Extern it.
8862
8863 * character.c (str_to_unibyte): New function.
8864
8865 * fns.c (Fstring_to_unibyte): New function.
8866 (syms_of_fns): Defsubr it.
8867
8868 2008-06-24 Kenichi Handa <handa@m17n.org>
8869
8870 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8871 DPI too.
8872 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8873
8874 2008-06-24 Andreas Schwab <schwab@suse.de>
8875
8876 * Makefile.in (${lispsource}loaddefs.el): Rename from
8877 ../lisp/loaddefs.el.
8878 (bootstrap-clean): Do what distclean does but don't remove
8879 Makefile.
8880 (distclean): Depend on bootstrap-clean and remove Makefile.
8881
8882 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
8883
8884 * buffer.h (struct buffer): New member word_wrap.
8885
8886 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8887 word-wrap.
8888 (init_buffer_once): Initialize them.
8889
8890 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8891 line_wrap enum possessing three possible values.
8892
8893 * termopts.h: Replace truncate_partial_width_windows with
8894 Vtruncate_partial_width_windows.
8895
8896 * dispnew.c (direct_output_for_insert): Avoid direct output when
8897 inserting a space with word wrap on.
8898
8899 * indent.c (compute_motion): Obey integer values of
8900 truncate-partial-width-windows.
8901
8902 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8903 replacing truncate_partial_width_windows.
8904 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8905 truncate only if the window width is below that integer.
8906 (start_display, resize_mini_window, produce_stretch_glyph)
8907 (display_string, move_it_in_display_line_to): Use line_wrap.
8908 (back_to_previous_visible_line_start, reseat_1): Reset
8909 string_from_display_prop_p.
8910 (display_line): Extend default face to end of line when wrapping.
8911
8912 2008-06-24 Kim F. Storm <storm@cua.dk>
8913
8914 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8915 to wrap continued lines at word boundaries.
8916
8917 2008-06-24 Jason Rumney <jasonr@gnu.org>
8918
8919 * font.c (Ffont_face_attributes): Multiply pixel size before point
8920 conversion to avoid multiplying rounding error.
8921
8922 2008-06-23 Jason Rumney <jasonr@gnu.org>
8923
8924 * w32term.c (x_draw_glyph_string_background)
8925 (x_draw_glyph_string): Remove old bdf font code.
8926
8927 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8928
8929 2008-06-22 Kenichi Handa <handa@m17n.org>
8930
8931 * font.c (font_find_for_lface): Try the adstyle specified in
8932 the property of LFACE_FONT of LFACE (if any).
8933
8934 2008-06-21 Seiji Zenitani <zenitani@mac.com>
8935 Ryo Yoshitake <ryo@shiftmode.net>
8936
8937 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8938
8939 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8940
8941 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8942 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8943 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8944 (witness-emacs): Remove.
8945 (lisp, shortlisp): Move loaddefs.el earlier.
8946 (mostlyclean): Forget about witness-emacs.
8947
8948 2008-06-22 Glenn Morris <rgm@gnu.org>
8949
8950 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8951 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8952
8953 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8954
8955 * Makefile.in (PRECOMP): Remove.
8956 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8957 (witness-emacs): Run `compile-first'.
8958 (.el.elc): Use the new compile-onefile target.
8959
8960 2008-06-21 Kenichi Handa <handa@m17n.org>
8961
8962 * xftfont.c (xftfont_open): Handle QCembolden only when
8963 FC_EMBOLDEN is defined.
8964
8965 2008-06-21 Andreas Schwab <schwab@suse.de>
8966
8967 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8968 (.el.elc): Likewise.
8969
8970 2008-06-21 Miles Bader <miles@gnu.org>
8971
8972 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8973 build dir, not the lisp source dir.
8974
8975 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8976
8977 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8978 (bootstrapclean): Remove.
8979 (.el.elc): New rule.
8980 (PRECOMP): New var.
8981 (../lisp/subdirs.el): Remove.
8982 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8983 (witness-emacs): New target.
8984 (mostlyclean): Remove witness-emacs as well.
8985 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8986 Add witness-emacs dependency.
8987
8988 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
8989
8990 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8991 defined by the font.
8992
8993 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8994
8995 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8996 (bootstrap-clean): New target that keeps TAGS around.
8997 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8998 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8999
9000 2008-06-20 Jason Rumney <jasonr@gnu.org>
9001
9002 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9003 Remove obsolete font code.
9004
9005 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9006 to determine language support.
9007
9008 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9009
9010 * sysdep.c (cfsetspeed): New fun extracted from the code.
9011 (cfmakeraw): Move before first use.
9012
9013 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9014
9015 * sysdep.c (cfmakeraw): Provide fallback implementation.
9016 (serial_configure): Provide fallback implementation of cfsetspeed.
9017
9018 2008-06-20 Kenichi Handa <handa@m17n.org>
9019
9020 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9021 the pattern.
9022
9023 * fontset.c (fontset_from_font): Copy font_spec before changing
9024 the elements.
9025
9026 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9027
9028 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9029
9030 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9031 for explicit `font' parameters.
9032
9033 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9034
9035 2008-06-19 Kenichi Handa <handa@m17n.org>
9036
9037 * frame.c: Include <ctype.h>.
9038 (x_set_font_backend): Allow spacing characters in the X resource
9039 for FontBackend.
9040
9041 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9042
9043 * w32fns.c, xfns.c (Qfont_param): New var.
9044 (syms_of_w32fns): Initialize it.
9045 (x_default_font_parameter): Record explicit `font' into
9046 `font-parameter'.
9047
9048 2008-06-18 Kenichi Handa <handa@m17n.org>
9049
9050 * font.c (font_parse_xlfd): Fix previous change.
9051 (font_parse_fcname): Don't use :fc-unknown-spec.
9052 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9053 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9054 (font_add_log): Prepend the driver name to the resulting fonts.
9055
9056 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9057 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9058 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9059
9060 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9061 (QCembolden): New variables.
9062 (syms_of_xftfont): DEFSYM them.
9063 (xftfont_open): Call XftFontMatch. Don't trust the result of
9064 XftTextExtents8 if the pixel_size is less than 5.
9065
9066 2008-06-18 Andreas Schwab <schwab@suse.de>
9067
9068 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9069 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9070
9071 2008-06-18 Jason Rumney <jasonr@gnu.org>
9072
9073 * w32font.c (w32font_list, w32font_match): Add logging.
9074
9075 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9076
9077 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
9078
9079 * font.c (font_parse_fcname): Store divider characters for
9080 unknown-spec list. For known key symbols, intern using correct
9081 symbol name.
9082
9083 2008-06-17 Kenichi Handa <handa@m17n.org>
9084
9085 * xfaces.c (realize_default_face): If the frame is not on window
9086 system, set the fontset of face to nil.
9087
9088 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9089
9090 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9091
9092 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9093
9094 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9095 (build_font_name_from_vector): Delete externs.
9096
9097 * xfaces.c (struct font_name): Don't declare.
9098
9099 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9100
9101 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9102
9103 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9104
9105 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9106
9107 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9108
9109 * font.c (Ffont_spec): Fix usage in docstring.
9110 (Ffont_face_attributes): Doc fix.
9111
9112 2008-06-16 Andreas Schwab <schwab@suse.de>
9113
9114 * font.c (Ffont_face_attributes): Fix definition.
9115
9116 2008-06-16 Jason Rumney <jasonr@gnu.org>
9117
9118 * font.h (font_style_symbolic_from_value): Remove.
9119
9120 * font.c (font_style_symbolic_from_value): Remove.
9121 (font_style_symbolic): Revert to pre 2008-06-13 version.
9122
9123 * w32font.c (w32_to_fc_weight): New function.
9124 (w32font_full_name, logfont_to_fcname): Use it.
9125
9126 2008-06-16 Kenichi Handa <handa@m17n.org>
9127
9128 * font.c (font_check_object): Delete it.
9129 (font_clear_cache): Check if a font-object is alive.
9130 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9131 font-object to nil.
9132 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9133 (font_at): Don't call font_check_object.
9134 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9135
9136 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9137
9138 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9139
9140 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9141
9142 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9143
9144 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
9145
9146 * font.c (font_parse_fcname): Only one decimal point.
9147 (font_unparse_fcname): Handle data in family and foundry indices
9148 as symbols, not strings.
9149 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9150
9151 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9152
9153 * font.h (font_unparse_gtkname): Add prototype.
9154
9155 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9156
9157 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9158
9159 2008-06-15 Andreas Schwab <schwab@suse.de>
9160
9161 * font.c (font_update_drivers): Fix crash when no drivers match.
9162
9163 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9164
9165 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9166 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9167
9168 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9169
9170 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9171
9172 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9173
9174 * process.c (Fserial_process_configure, Fprocess_send_eof):
9175 Use EQ to compare Lisp_Objects.
9176
9177 2008-06-13 Jason Rumney <jasonr@gnu.org>
9178
9179 * w32fns.c (Fw32_select_font): Remove old font API function.
9180
9181 * w32font.c (logfont_to_fcname): New function.
9182 (Fx_select_font): New font dialog function compatible with
9183 GTK/fontconfig version.
9184
9185 * font.c (font_style_symbolic_from_value): New function.
9186 (font_style_symbolic): Use it.
9187
9188 * font.h (font_style_symbolic_from_value): Declare new function.
9189
9190 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
9191
9192 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9193 <font-width-table>: Fix typos in docstrings.
9194
9195 2008-06-13 Daniel Engeler <engeler@gmail.com>
9196
9197 These changes add serial port access.
9198 * process.c: Add HAVE_SERIAL.
9199 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9200 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9201 (list_processes_1, select_wrapper, Fstop_process)
9202 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9203 (status_notify): Modify to handle serial processes.
9204 [HAVE_SERIAL] (Fserial_process_configure)
9205 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9206 New functions.
9207 * process.h (struct Lisp_Process): Add `type'.
9208 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9209 New functions.
9210 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9211 serial ports.
9212 (serial_open, serial_configure): New functions.
9213 * w32.h: Add FILE_SERIAL.
9214 (struct _child_process): Add ovl_read, ovl_write.
9215
9216 2008-06-13 Kenichi Handa <handa@m17n.org>
9217
9218 * dispextern.h (enum lface_attribute_index): New member
9219 LFACE_FOUNDRY_INDEX.
9220
9221 * font.c (font_score): Delete arg alternate_families. Check only
9222 weight, slant, width, and size. Ignore the difference of alias
9223 style symbols.
9224 (font_sort_entites): Adjust for the above change. Reflect the
9225 order of font-driver to scores.
9226 (font_list_entities): Don't check alternate_familes here.
9227 (font_clear_prop): Handle foundry.
9228 (font_update_lface): Don't parse "foundry-family" form here.
9229 Handle FONT_FOUNDRY_INDEX.
9230 (font_find_for_lface): Likewise. Handle alternate families here.
9231 If registry is nil, try iso8859-1 and ascii-0.
9232 (font_open_for_lface): Pay attention to size in ENTITY.
9233 (font_open_by_name): Simplify by calling font_load_for_lface.
9234 (free_font_driver_list): Delete it.
9235 (font_update_drivers): Preserve the order of backends.
9236 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9237 of font_score and font_sort_entites.
9238 (font_update_sort_order): Likewise.
9239
9240 * xfaces.c (LFACE_FOUNDRY): New macro.
9241 (check_lface_attrs): Check foundry.
9242 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9243 (merge_face_vectors): Check foundry.
9244 (merge_face_ref): Likewise.
9245 (Finternal_set_lisp_face_attribute): Likewise.
9246 (x_update_menu_appearance): Likewise.
9247 (Finternal_get_lisp_face_attribute): Likewise.
9248 (lface_hash): Likewise.
9249 (lface_same_font_attributes_p): Likewise.
9250 (x_supports_face_attributes_p): Likewise.
9251 (tty_supports_face_attributes_p): Likewise.
9252 (Finternal_set_alternative_font_family_alist): Intern strings.
9253 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9254 (realize_default_face): Set LFACE_FOUNDRY (lface).
9255
9256 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9257 font-driver at first.
9258
9259 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9260
9261 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9262
9263 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9264
9265 2008-06-12 Jim Meyering <meyering@redhat.com>
9266
9267 Make unexec_free handle NULL the same way free does.
9268 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9269
9270 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9271
9272 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9273 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9274 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9275 (WEAK_ALIAS): Simplify.
9276 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9277 when searching a unibyte buffer.
9278
9279 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
9280
9281 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9282
9283 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
9284
9285 * w32font.c: Include ctype.h.
9286
9287 2008-06-11 Jason Rumney <jasonr@gnu.org>
9288
9289 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9290 misreported as space.
9291 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9292 as aliases for registry iso10646-1.
9293
9294 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9295
9296 * buffer.c (clone_per_buffer_values): Skip `name'.
9297
9298 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
9299
9300 * font.c (font_parse_fcname): Fix last change; accept decimal
9301 points in font size.
9302
9303 2008-06-10 Jason Rumney <jasonr@gnu.org>
9304
9305 * w32uniscribe.c (add_opentype_font_name_to_list):
9306 Skip non unicode fonts.
9307
9308 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9309
9310 * xfns.c (Fx_font_dialog): New function.
9311
9312 * gtkutil.c (xg_dialog_response_cb): Rename from
9313 xg_file_response_callback.
9314 (pop_down_dialog): Rename from pop_down_file_dialog.
9315 (xg_get_file_name): Callers changed.
9316 (xg_get_font_name): New function.
9317
9318 * gtkutil.h (xg_get_font_name): Insert prototype.
9319
9320 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9321
9322 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9323 x_underline_minimum_display_offset.
9324 (syms_of_xdisp): Declare it here rather than in xterm.c.
9325 * dispextern.h (underline_minimum_offset): Declare it.
9326 * w32term.c (x_draw_glyph_string): Use it.
9327 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9328 (syms_of_xterm): Don't declare it any more.
9329 (x_draw_glyph_string): Adjust to the new name.
9330
9331 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
9332
9333 * xterm.c (x_underline_minimum_display_offset): New var.
9334 (x_draw_glyph_string): Use it.
9335 (syms_of_xterm): Declare it.
9336
9337 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9338
9339 * font.c (font_parse_fcname): Accept GTK-style font names too.
9340
9341 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9342
9343 * dired.c (file_name_completion): Don't return t if the match is exact
9344 but with different capitalization.
9345 * minibuf.c (Ftry_completion): Simplify.
9346
9347 * window.c (Vwindow_point_insertion_type): New var.
9348 (set_window_buffer): Use it.
9349 (syms_of_window): Init and export it to Lisp.
9350
9351 2008-06-10 Kenichi Handa <handa@m17n.org>
9352
9353 * font.h (font_intern_prop): Prototype adjusted.
9354
9355 * font.c (font_intern_prop): New arg force_symbol.
9356 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9357 Adjust for the change of font_intern_prop.
9358
9359 * ftfont.c (ftfont_pattern_entity):
9360 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9361 (w32_registry):
9362 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9363 the change of font_intern_prop.
9364
9365 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
9366
9367 * w32menu.c (digest_single_submenu): Declare extern.
9368
9369 2008-06-09 Jason Rumney <jasonr@gnu.org>
9370
9371 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9372
9373 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9374 (parse_single_submenu): Remove.
9375 (digest_single_submenu): Remove.
9376 (syms_of_w32menu): Don't initialise variables that have moved
9377 to menu.c.
9378 (set_frame_menubar): Sync with version in xmenu.c.
9379 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9380
9381 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9382 Make static again.
9383
9384 2008-06-09 Jason Rumney <jasonr@gnu.org>
9385
9386 Changes to w32 files related to the move of common menu code
9387 to menu.c on 2008-06-08 by Chong Yidong.
9388
9389 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9390 defs to w32gui.h.
9391 (single_keymap_panes, push_menu_item, push_menu_pane):
9392 Make globally visible.
9393
9394 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9395 (local_free, malloc_widget_value, free_widget_value)
9396 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9397 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9398 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9399 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9400 (menu_items, menu_items_allocated, menu_items_used)
9401 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9402 (init_menu_items, finish_menu_items, discard_menu_items)
9403 (grow_menu_items, push_submenu_start, push_submenu_end)
9404 (push_left_right_boundary, push_menu_pane, push_menu_item)
9405 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9406 (free_menubar_widget_tree_value, parse_single_submenu)
9407 (update_submenu_strings): Remove functions.
9408 (xmalloc_widget_value): Remove and declare extern.
9409
9410 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9411 (OBJ1): Build it.
9412
9413 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9414 (local_heap, local_alloc, local_free, malloc_widget_value)
9415 (free_widget_value): Define here.
9416
9417 2008-06-09 Kenichi Handa <handa@m17n.org>
9418
9419 * font.h (Qascii_0): Extern it.
9420
9421 * font.c (Qascii_0): New variable.
9422 (syms_of_font): DEFSYM it.
9423 (font_open_by_name): If the registry "iso8859-1" fails, try also
9424 "ascii-0".
9425
9426 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9427
9428 2008-06-08 Kenichi Handa <handa@m17n.org>
9429
9430 * .gdbinit (xfont): New command.
9431
9432 2008-06-08 Andreas Schwab <schwab@suse.de>
9433
9434 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9435 * Makefile.in (menu.o): Update dependencies.
9436
9437 * Makefile.in (obj): Always add menu.o.
9438 * emacs.c (main): Always call syms_of_menu.
9439 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9440
9441 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
9442
9443 * Makefile.in: Compile menu.c.
9444
9445 * lisp.h: Declare syms_of_menu.
9446
9447 * emacs.c (main): Call syms_of_menu.
9448
9449 * keyboard.h: Relocate platform-independent menu definitions from
9450 xmenu.c.
9451
9452 * menu.c: New file. Relocate platform-independent menu
9453 definitions from xmenu.c. Suggested by Adrian Robert.
9454
9455 * xmenu.c: Remove platform-independent menu definitions.
9456 (menu_items menu_items_inuse, menu_items_allocated)
9457 (menu_items_used, menu_items_n_panes)
9458 (menu_items_submenu_depth): Move to keyboard.h.
9459 (init_menu_items, finish_menu_items, unuse_menu_items)
9460 (discard_menu_items, restore_menu_items, save_menu_items)
9461 (grow_menu_items, push_submenu_start, push_submenu_end)
9462 (push_left_right_boundary, push_menu_pane, push_menu_item)
9463 (keymap_panes, single_keymap_panes, single_menu_item)
9464 (list_of_panes, list_of_items, find_and_call_menu_selection)
9465 (xmalloc_widget_value, free_menubar_widget_value_tree)
9466 (parse_single_submenu, digest_single_submenu)
9467 (update_submenu_strings): Move to menu.c.
9468
9469 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9470
9471 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9472
9473 2008-06-06 Miles Bader <miles@gnu.org>
9474
9475 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9476 face, not frame default.
9477
9478 2008-06-05 Martin Rudalics <rudalics@gmx.at>
9479
9480 * window.c (pop_up_windows, pop_up_frames)
9481 (display_buffer_reuse_frames, Vpop_up_frame_function)
9482 (Vdisplay_buffer_function, Veven_window_heights)
9483 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9484 (Vspecial_display_function, Vsame_window_buffer_names)
9485 (Vsame_window_regexps, split_height_threshold)
9486 (Vsplit_window_preferred_function): Move those vars to window.el.
9487 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9488 (Fdisplay_buffer): Move those functions to window.el.
9489 (syms_of_window): Remove corresponding declarations.
9490 (display_buffer): New function.
9491 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9492 * dispnew.c (Flast_nonminibuf_frame): New function.
9493 * buffer.c (Fpop_to_buffer): Move to window.el.
9494
9495 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9496
9497 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9498
9499 2008-06-05 Kenichi Handa <handa@m17n.org>
9500
9501 * coding.c (detect_coding): Fix previous change.
9502 (detect_coding_system): Likewise.
9503
9504 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9505
9506 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9507
9508 * keymap.c (Vminibuffer_local_filename_must_match_map):
9509 Rename from Vminibuffer_local_must_match_filename_map.
9510 (syms_of_keymap):
9511 * minibuf.c (Fcompleting_read): Adjust accordingly.
9512 * commands.h: Rename declaration as well.
9513
9514 2008-06-05 Kenichi Handa <handa@m17n.org>
9515
9516 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9517 family name.
9518 (Ffont_put): Likewise.
9519
9520 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9521 current font-spec.
9522
9523 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9524 is unspecified.
9525
9526 * xfaces.c (realize_x_face): If the font-related face attributes
9527 are the same as those of default face, realize a new fontset from
9528 default->fontset.
9529 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9530
9531 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9532
9533 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9534 (move_it_in_display_line): New wrapper.
9535
9536 * window.c (window_scroll_pixel_based_preserve_x)
9537 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9538 (window_scroll_pixel_based, window_scroll_line_based):
9539 Use them to preserve column positions.
9540 (syms_of_window): Initialize them.
9541
9542 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9543 (HPOS . VPOS) pair.
9544
9545 * dispextern.h (move_it_in_display_line): Declare.
9546
9547 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
9548
9549 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9550 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9551 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9552
9553 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
9554
9555 * window.c (Fset_window_parameter): Doc fix.
9556 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9557
9558 2008-06-04 Joakim Verona <joakim@verona.se>
9559
9560 * window.h (struct window): Add new member window_parameters.
9561
9562 * window.c (Fwindow_parameters, Fwindow_parameter)
9563 (Fset_window_parameter): New defuns.
9564 (syms_of_window): Defsubr the new defuns.
9565 (make_window): Initialize window_parameters to nil.
9566
9567 2008-06-04 John Paul Wallington <jpw@pobox.com>
9568
9569 * eval.c (Fdefmacro): Doc fix.
9570
9571 2008-06-04 Kenichi Handa <handa@m17n.org>
9572
9573 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9574 Be sure to call setup_coding_system when we find a proper coding system.
9575 (detect_coding_system): Fix handling of coding->head_ascii.
9576
9577 2008-06-03 Andreas Schwab <schwab@suse.de>
9578
9579 * font.c (font_prop_validate_spacing): Fix last change.
9580
9581 2008-06-03 Kenichi Handa <handa@m17n.org>
9582
9583 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9584 (font_parse_fcname): Fix handling of unknown key.
9585
9586 * xfont.c (xfont_list): Try an alias.
9587
9588 * charset.c (char_charset): Return NULL if the arg charset_list is
9589 specified and C doesn't belong to any of them.
9590
9591 2008-06-02 Chip Coldwell <coldwell@redhat.com>
9592
9593 * font.c (font_pixel_size): Don't take cdr of an integer.
9594
9595 2008-06-02 Jim Meyering <meyering@redhat.com>
9596
9597 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9598 * alloc.c (xfree): Return right away for a NULL arg.
9599 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9600 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9601 * mac.c (create_apple_event_from_event_ref): Likewise.
9602 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9603 Likewise.
9604 * doprnt.c (doprnt1): Likewise.
9605 * frame.c (frame): Likewise.
9606 * keyboard.c (wipe_kboard): Likewise.
9607 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9608 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9609 * term.c (tty_default_color_capabilities, maybe_fatal)
9610 (delete_tty): Likewise.
9611 * w16select.c (string): Likewise.
9612 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9613 * w32bdf.c (w32_free_bdf_font): Likewise.
9614 * w32fns.c (w32_unload_font): Likewise.
9615 * w32font.c (w32font_close): Likewise.
9616 * window.c (size_window): Likewise.
9617 * xselect.c (receive_incremental_selection): Likewise.
9618 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9619 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9620 * w32.c (stat): Likewise.
9621
9622 Remove useless if-before-free tests.
9623 * editfns.c (Fset_time_zone_rule): Likewise.
9624 * lread.c (nosuffix): Likewise.
9625 * ralloc.c (get_bloc): Likewise.
9626 * regex.c (reg_free): Likewise.
9627 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9628 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9629 * xsmfns.c (smc_save_yourself_CB): Likewise.
9630
9631 2008-06-02 Kenichi Handa <handa@m17n.org>
9632
9633 * font.c (font_find_for_lface): Handle float font size.
9634 (font_open_for_lface): Likewise.
9635
9636 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9637 comparing the properties.
9638
9639 2008-06-01 Jason Rumney <jasonr@gnu.org>
9640
9641 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9642 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9643 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9644 Don't add empty script list.
9645 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9646
9647 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9648
9649 * Makefile.in (dot, dotdot): Remove, update users.
9650 ".." has been used elsewhere in the file for a long time.
9651 (LIBXT_STATIC): Remove conditional based on unused variable.
9652
9653 2008-06-01 Miles Bader <miles@gnu.org>
9654
9655 * xfaces.c (Vface_remapping_alist): New variable.
9656 (syms_of_xfaces): Initialize it.
9657 (enum named_merge_point_kind): New type.
9658 (struct named_merge_point): Add `named_merge_point_kind' field.
9659 (push_named_merge_point): Make cycle detection respect different
9660 named-merge-point kinds.
9661 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9662 Remove face-name alias resolution.
9663 (lface_from_face_name): New definition using
9664 `lface_from_face_name_no_resolve'.
9665 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9666 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9667 (get_lface_attributes): New definition that layers face-remapping on
9668 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9669 (lookup_basic_face): New function.
9670 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9671 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9672 `get_lface_attributes'.
9673 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9674 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9675 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9676
9677 * xdisp.c (init_iterator): Pass base_face_id through
9678 `lookup_basic_face' when we actually use it as a face-id.
9679 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9680 DEFAULT_FACE_ID.
9681
9682 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9683 lookup the initial face-id.
9684
9685 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9686
9687 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
9688
9689 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9690 (Fremove_text_properties): Fix typos in docstrings.
9691
9692 2008-05-31 Kenichi Handa <handa@m17n.org>
9693
9694 * font.c (font_list_entities): Fix the car part of data to be
9695 stored in the cache.
9696
9697 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9698
9699 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9700
9701 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9702 Add a `test' argument so another predicate than `equal' can be used.
9703 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9704 (map_char_table): Remove unused vars `c' and `i'.
9705 * lisp.h (Foptimize_char_table): Adjust declaration.
9706 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9707
9708 2008-05-30 Kenichi Handa <handa@m17n.org>
9709
9710 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9711 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9712 defined.
9713
9714 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9715
9716 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9717 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9718 frame-local settings for the same variable.
9719
9720 2008-05-30 Kenichi Handa <handa@m17n.org>
9721
9722 * fontset.c (Ffont_info): Move to font.c.
9723 (syms_of_fontset): Delete defsubr of Sfont_info.
9724
9725 * font.c (font_style_to_value, font_score): Delete casting of the
9726 args to xstcasecmp.
9727 (register_font_driver): Increment num_font_drivers only when
9728 registering the driver globally.
9729 (Ffont_info): Move from fontset.c. Handle a font object too.
9730 (syms_of_font): Defsubr Sfont_info.
9731
9732 2008-05-29 Kenichi Handa <handa@m17n.org>
9733
9734 * coding.h (enum define_coding_utf8_arg_index): New enum.
9735 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9736 coding_attr_utf_bom.
9737 (enum utf_bom_type): Rename from utf_16_bom_type.
9738 (struct utf_16_spec): Adjust for the above change.
9739 (struct coding_system): Add utf_8_bom in `spec' union.
9740
9741 * coding.c (CODING_UTF_8_BOM): New macro.
9742 (enum coding_category): Delete coding_category_utf_8, add
9743 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9744 coding_category_utf_8_sig.
9745 (CATEGORY_MASK_UTF_8): Delete it.
9746 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9747 (CATEGORY_MASK_UTF_8_SIG): New macros.
9748 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9749 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9750 CATEGORY_MASK_UTF_8_SIG.
9751 (CATEGORY_MASK_UTF_8): New macro.
9752 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9753 (detect_coding_utf_8): Check BOM.
9754 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9755 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9756 (encode_coding_utf_16): Likewise.
9757 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9758 (detect_coding, detect_coding_system): Handle utf-8-auto.
9759 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9760 (syms_of_coding): Fix setting up of Vcoding_category_table.
9761
9762 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9763
9764 * process.c (Faccept_process_output): If `millisec' is non-nil,
9765 `seconds' default to 0.
9766 (wait_reading_process_output): Also return non-nil if we read output
9767 from a non-running process.
9768
9769 2008-05-29 Jason Rumney <jasonr@gnu.org>
9770
9771 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9772 `raster' specified.
9773 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9774 in the uniscribe backend, but disallow any font that has no
9775 unicode subrange support.
9776
9777 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
9778
9779 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9780 Fix typos in docstrings.
9781
9782 2008-05-29 Kenichi Handa <handa@m17n.org>
9783
9784 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9785 (Fx_family_fonts): Set frame correctly.
9786
9787 2008-05-28 Jason Rumney <jasonr@gnu.org>
9788
9789 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9790
9791 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9792
9793 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9794 calling build_annotations.
9795
9796 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
9797
9798 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9799 (Fencode_coding_string):
9800 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9801 <latin-extra-code-table>: Fix typos in docstrings.
9802 (syms_of_coding) <coding-system-alist>: Doc fix.
9803 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9804
9805 2008-05-28 Kenichi Handa <handa@m17n.org>
9806
9807 * fontset.c (Ffont_info): Don't call font_close_object.
9808
9809 * font.c (font_parse_family_registry): Use Ffont_put to validate
9810 foundry and family.
9811 (font_delete_unmatched): Don't check spacing.
9812 (font_list_entities): Add spacing to the spec to list fonts.
9813
9814 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9815 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9816
9817 * coding.c (encode_coding_raw_text): Fix previous change.
9818 (encode_coding_object): When the dst_object is a buffer and is
9819 different from src_object, move gap to PT.
9820
9821 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9822
9823 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9824
9825 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9826
9827 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9828 all branches. Compute it differently.
9829
9830 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9831
9832 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
9833
9834 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9835 into "else if () ... else ...".
9836
9837 2008-05-27 Jason Rumney <jasonr@gnu.org>
9838
9839 * w32font.c (w32font_open_internal): Determine if glyph indices
9840 are likely to work here.
9841
9842 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9843
9844 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9845 draw overlap glyphs with appropriate highlighting.
9846
9847 2008-05-27 Kenichi Handa <handa@m17n.org>
9848
9849 * xfont.c (xfont_open): Fix calculation of font->average_width.
9850
9851 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9852
9853 * casefiddle.c (casify_object): Try to guess better whether the
9854 argument is a byte or a char.
9855
9856 2008-05-26 Andreas Schwab <schwab@suse.de>
9857
9858 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9859 Always send multiples of format size.
9860
9861 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9862
9863 2008-05-26 Jason Rumney <jasonr@gnu.org>
9864
9865 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9866 (compute_metrics): Don't set failure if we just cleared the cache.
9867 (w32_weight_table): Remove unused variable.
9868 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9869 backwards compatibility.
9870
9871 2008-05-25 Kenichi Handa <handa@m17n.org>
9872
9873 * w32term.c (x_draw_glyph_string):
9874 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9875
9876 * xfaces.c: Delete unused function prototypes.
9877 (xstrlwr, font_frame): Delete them.
9878 (clear_face_cache): Delete unused variable.
9879
9880 * xftfont.c (xftfont_open): Delete unused variable.
9881 If underline_thickness is not 1, adjust underline_position.
9882
9883 * ftxfont.c (ftxfont_open): Delete unused variable.
9884
9885 * fontset.c (face_for_char): Optimize for the case of no charset
9886 property.
9887
9888 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9889 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9890 (otf_open, font_otf_capability, generate_otf_features)
9891 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9892 Comment out by surrounding "#if 0" and "#endif" for the moment.
9893 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9894 (syms_of_font): Codes for accessing above commented out.
9895
9896 2008-05-24 Eli Zaretskii <eliz@gnu.org>
9897
9898 * w32proc.c: Include dispextern.h.
9899
9900 * w32.c: Include dispextern.h.
9901
9902 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
9903
9904 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9905 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9906 Fix typos in docstrings.
9907
9908 2008-05-23 Jason Rumney <jasonr@gnu.org>
9909
9910 * xsmfns.c: Remove includes that are already included by config.h.
9911
9912 2008-05-23 Kenichi Handa <handa@m17n.org>
9913
9914 * charset.c (Qemacs, charset_emacs): New variables.
9915 (char_charset): Fix for non-Unicode characters.
9916 (syms_of_charset): Define charset_emacs.
9917
9918 * w32term.c (x_draw_glyph_string): Be sure to update
9919 s->underline_thickness and s->underline_position. Be sure to draw
9920 underline within the current line area.
9921
9922 * xterm.c (x_draw_glyph_string): Be sure to update
9923 s->underline_thickness and s->underline_position. Be sure to draw
9924 underline within the current line area.
9925
9926 * fontset.c: Delete unused variables and add casting for char *
9927 throughout the file.
9928 (fontset_font): Try the fallback fonts of the current fontset
9929 before consulting the default fontset.
9930
9931 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9932
9933 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9934
9935 2008-05-22 Jason Rumney <jasonr@gnu.org>
9936
9937 * font.c: Don't include strings.h.
9938
9939 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9940
9941 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9942 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9943 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9944 to call xstrcasecmp.
9945
9946 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9947
9948 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9949
9950 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9951
9952 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9953
9954 2008-05-22 Kenichi Handa <handa@m17n.org>
9955
9956 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9957
9958 * font.c (font_prop_validate_style): Adjust for the format
9959 change of font_style_table.
9960
9961 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9962 two args.
9963
9964 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9965 two args.
9966
9967 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9968
9969 * minibuf.c (keys_of_minibuf): Delete.
9970 * lisp.h (keys_of_minibuf): Delete.
9971 * emacs.c (main): Don't call keys_of_minibuf.
9972
9973 2008-05-22 Kenichi Handa <handa@m17n.org>
9974
9975 * ftfont.c (ftfont_resolve_generic_family): Rename from
9976 ftfont_list_generic_family. Return a single family for each
9977 generic family.
9978 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9979 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9980 Call font_add_log.
9981 (ftfont_match): Call font_add_log.
9982
9983 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9984 (FONT_DEBUG): Define it.
9985 (font_add_log): Extern it.
9986 (font_assert): Rename from xassert.
9987
9988 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9989 (xfont_list_family): Call font_add_log.
9990 (xfont_match): Likewise.
9991 (memq_no_quit): Delete.
9992
9993 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9994 call of Ffont_xlfd_name.
9995
9996 * xfaces.c (struct table_entry, slant_table, weight_table)
9997 (swidth_table): Move to font.c.
9998
9999 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10000 xassert are changed to font_assert. Delete many unused variables.
10001 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10002 New variables.
10003 (struct table_entry): Move from xfaces.c and modified.
10004 (weight_table, slant_table, width_table): Move from xfaces.c and
10005 contents adjusted for the change of struct table_entry.
10006 (font_style_to_value, font_style_symbolic): Adjust for the
10007 format change of font_style_table.
10008 (font_parse_family_registry): Don't overwrite existing foundry and
10009 family of font_spec.
10010 (font_score): Fix calculation of diff for sizes.
10011 (font_sort_entites): Call font_add_log.
10012 (font_delete_unmatched): Return a newly created list.
10013 (font_list_entities): Fix previous change. Call font_add_log.
10014 (font_matching_entity, font_open_entity, font_close_entity):
10015 Call font_add_log.
10016 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10017 (Finternal_set_font_style_table): Delete.
10018 (BUILD_STYLE_TABLE): New macro.
10019 (build_style_table): New function.
10020 (Vfont_log, font_log_env_checked): New variables.
10021 (font_add_log): New function.
10022 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10023 Declare Lisp variables "font-weight-table", "font-slant-table",
10024 "font-width-table", and "font-log". Initialize font_style_table.
10025
10026 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10027
10028 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10029
10030 2008-05-21 Seiji Zenitani <zenitani@mac.com>
10031 Ryo Yoshitake <ryo@shiftmode.net>
10032
10033 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10034 (Vframe_alpha_lower_limit): New variable.
10035 (x_set_alpha): New function.
10036
10037 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10038
10039 * xfns.c (x-create-frame, Qalpha):
10040 Initialize the frame parameter `alpha'.
10041 * xterm.c (OPAQUE, OPACITY): New.
10042 (x_set_frame_alpha): New function.
10043 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10044
10045 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10046 * w32fns.c (w32_frame_parm_handlers): Likewise.
10047
10048 2008-05-20 Jason Rumney <jasonr@gnu.org>
10049
10050 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10051 truetype fonts to opentype list.
10052
10053 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
10054
10055 * fontset.c (Ffontset_info): Doc fix.
10056 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10057 <ignore-relative-composition>: Fix typos in docstrings.
10058
10059 * font.c (syms-of-font) <font-encoding-alist>:
10060 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10061 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10062 (Ffont_otf_alternates): Doc fixes.
10063
10064 2008-05-20 Kenichi Handa <handa@m17n.org>
10065
10066 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10067 font.h through out the file.
10068 (FONT_DRIVERS): Rename from FONTOBJ.
10069 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10070 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10071
10072 * emacs.c (main): Call syms_of_font unconditionally.
10073
10074 * font.h (find_font_encoding): Extern it.
10075
10076 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10077 fontset.c.
10078 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10079 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10080 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10081 only when HAVE_WINDOW_SYSTEM is defined.
10082 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10083 when HAVE_WINDOW_SYSTEM is defined.
10084
10085 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10086 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10087
10088 * xfaces.c: Include font.h unconditionally.
10089 (merge_face_ref, merge_face_vectors)
10090 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10091
10092 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10093
10094 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10095 indirect_variable.
10096 * eval.c (lisp_indirect_variable): New fun.
10097 (Fuser_variable_p): Use it.
10098
10099 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10100
10101 * lisp.h (indirect_variable):
10102 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10103 Use Lisp_Symbol pointers rather than Lisp_Object.
10104 Adjust callers.
10105 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10106 To this end, change calling-convention.
10107
10108 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10109 if some non-hidden buffers are selected by string&pred.
10110
10111 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
10112
10113 * process.c (wait_reading_process_output): Always check status
10114 when in batch mode.
10115
10116 2008-05-19 Kenichi Handa <handa@m17n.org>
10117
10118 * font.c (font_list_entities): Fix handling of cache.
10119 (font_matching_entity): Likewise.
10120
10121 * ftfont.c (cs_iso8859_1): Delete.
10122 (ft_face_cache): New variable.
10123 (struct ftfont_info): New member fc_charset_idx.
10124 (ftfont_build_basic_charsets): Delete.
10125 (fc_charset_table): New variable.
10126 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10127 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10128 Callers changed.
10129 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10130 (ftfont_spec_pattern): New argument fc_charset_idx.
10131 Check registry more rigidly. Change callers.
10132 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10133 change of :font-entity property of the font.
10134
10135 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10136 property of the font.
10137
10138 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
10139
10140 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10141 (Funencodable_char_position, Fcheck_coding_systems_region)
10142 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10143 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10144 (Ffind_operation_coding_system, Fset_coding_system_priority)
10145 (Fcoding_system_eol_type): Doc fixes.
10146
10147 2008-05-17 Glenn Morris <rgm@gnu.org>
10148
10149 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10150
10151 2008-05-16 Eli Zaretskii <eliz@gnu.org>
10152
10153 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10154 and st_gid.
10155
10156 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10157 HAVE_WINDOW_SYSTEM is not defined.
10158
10159 * xfaces.c (merge_face_ref, merge_face_vectors)
10160 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10161 HAVE_WINDOW_SYSTEM is defined.
10162 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10163
10164 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10165
10166 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10167
10168 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10169
10170 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10171
10172 2008-05-15 Kenichi Handa <handa@m17n.org>
10173
10174 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10175 preference.
10176
10177 2008-05-15 Glenn Morris <rgm@gnu.org>
10178
10179 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10180
10181 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
10182
10183 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10184 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10185
10186 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10187
10188 2008-05-15 Kenichi Handa <handa@m17n.org>
10189
10190 * ftfont.c (ftfont_list): Downcase family name to check generic
10191 families.
10192
10193 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10194 font-spec for QCfont value.
10195
10196 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10197 buffer. Check the return value of it.
10198
10199 2008-05-14 Jason Rumney <jasonr@gnu.org>
10200
10201 * w32term.c (w32_get_glyph_overhangs): Remove.
10202 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10203
10204 2008-05-14 Kenichi Handa <handa@m17n.org>
10205
10206 * font.c (font_prop_validate): Make nil a valid value.
10207 (font_clear_cache): Check if the cached vector of entities is nil
10208 or not.
10209
10210 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10211
10212 * emacs.c (main_thread): Conditionalize on
10213 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10214 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10215
10216 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10217 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10218 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10219
10220 2008-05-14 Kenichi Handa <handa@m17n.org>
10221
10222 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10223 has no corresponding coding system.
10224
10225 2008-05-14 Jason Rumney <jasonr@gnu.org>
10226
10227 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10228
10229 * w32font.h (w32font_open_internal): Update declaration.
10230
10231 * w32font.c (w32font_open_internal): Change last argument from
10232 w32font_info struct to font object. Fill in font object from
10233 font_entity. Get Outline metrics if possible. Use them to
10234 calculate underline position and thickness. Use xlfd name as name
10235 property. Don't set codepage.
10236 (w32font_open): Pass font_object to w32font_open_internal. Don't
10237 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10238 (w32font_draw): Use s->font.
10239 (clear_cached_metrics): Don't clear non-existent blocks.
10240
10241 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10242 font was not found.
10243 (x_draw_glyph_string): Use underline position and thickness from font.
10244
10245 * w32uniscribe.c (uniscribe_open): Pass font_object to
10246 w32font_open_internal.
10247
10248 2008-05-14 Kenichi Handa <handa@m17n.org>
10249
10250 These changes are to delete all legacy font-handling codes, and
10251 make Emacs use only font-backends.
10252
10253 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10254 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10255
10256 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10257
10258 * charset.h (Vcharset_non_preferred_head)
10259 (Vcurrent_iso639_language): Extern them.
10260
10261 * charset.c (Vcharset_non_preferred_head): New variable.
10262 (Vcurrent_iso639_language): New variable.
10263 (syms_of_charset): Declare it as a Lisp variable.
10264 (char_charset): Don't check non preferred charsets. As a last
10265 resort, return charset_unicode.
10266 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10267
10268 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10269 conditionals. Don't check enable_font_backend. Delete all codes
10270 used only when USE_FONT_BACKEND is not defined.
10271
10272 * dispextern.h (struct glyph_string): Change type of `font' to
10273 `struct font *'.
10274 (struct glyph_string): New member underline_position and
10275 underline_thickness.
10276 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10277 (struct face): Change type of `font' to `struct font *'. Remove
10278 members `font_name', `font_info_id'.
10279 (per_char_metric, encode_char): Delete externs.
10280 (calc_pixel_width_or_height): Adjust the prototype.
10281
10282 * emacs.c (enable_font_backend): Delete extern.
10283 (main): Don't set enable_font_backend. Don't check the command
10284 line argument "-disable-font-backend".
10285
10286 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10287 (enum font_property_index): New members FONT_DPI_INDEX,
10288 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10289 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10290 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10291 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10292 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10293 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10294 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10295 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10296 (struct font_spec, struct font_entity): New structs.
10297 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10298 (struct font): Many members from old "struct font_info" moved to
10299 here. Members font and entity deleted.
10300 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10301 the new font-related objects.
10302 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10303 (CHECK_FONT_GET_OBJECT): Likewise.
10304 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10305 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10306 (struct font_driver): New members case_sensitive anc check. Type
10307 of the member list and open changed.
10308 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10309 (font_symbolic_width, font_find_object, font_get_spec)
10310 (font_set_lface_from_name): Delete extern.
10311 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10312
10313 * font.c: Include <strings.h>.
10314 (enable_font_backend): Delete it.
10315 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10316 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10317 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10318 (null_string): Delete it.
10319 (null_vector): Make it static.
10320 (font_family_alist): Delete it.
10321 (Qnormal): Extern it.
10322 (QCextra, QClanguage): Delete it.
10323 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10324 (font_make_spec, font_make_entity, font_make_object)
10325 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10326 the string. Callers changed.
10327 (font_pixel_size): Adjusted for the format change of font-related
10328 objects.
10329 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10330 (font_style_to_value, font_style_symbolic): New function.
10331 (build_font_family_alist): Delete it.
10332 (font_registry_charsets): Use Fassoc_string instead of
10333 assq_no_quit.
10334 (font_prop_validate_symbol): Don't return null_string.
10335 (font_prop_validate_style): Adjusted for the change of
10336 style-related values in a font vector.
10337 (font_property_table): Delete entries for QClanguage and
10338 QCantialias, add entries for QCavgwidth.
10339 (get_font_prop_index): Delete the 2nd argument FROM.
10340 (font_prop_validate): Arguments changed.
10341 (font_put_extra): Adjusted for the change of font-related objects.
10342 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10343 (font_parse_fcname, font_unparse_fcname)
10344 (font_prepare_composition): Likewise.
10345 (font_parse_family_registry): Renamed from font_merge_old_spec.
10346 (otf_open): Delete the 1st arg entity.
10347 (font_otf_capability): Adjusted for the above change.
10348 (font_score): New arg alternate_families. Adjusted for the change
10349 of font-related objects.
10350 (font_sort_entites): New arg best_only.
10351 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10352 Delete them.
10353 (font_match_p): Check alternate families.
10354 (font_find_object): Delete it.
10355 (font_check_object): New function.
10356 (font_clear_cache): Adjusted for the change of font-related objects.
10357 (font_delete_unmatched): New arg.
10358 (font_list_entities): Call font_driver->list with a spec that
10359 doesn't specify style-related properties.
10360 (font_matching_entity): Arguments changed. Caller changed.
10361 (font_open_entity): Adjusted for the change of font-related objects.
10362 (font_close_object, font_has_char, font_encode_char)
10363 (font_get_name, font_get_spec): Likewise.
10364 (font_spec_from_name, font_clear_prop, font_update_lface):
10365 New functions.
10366 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10367 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10368 (font_at): Adjusted for the change of font-related objects.
10369 (font_range): New function.
10370 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10371 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10372 (Fcopy_font_spec, Fmerge_font_spec): New function.
10373 (Ffont_family_list): Renamed from list-families.
10374 (Finternal_set_font_style_table): Arguments changed.
10375 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10376 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10377 change of font-related objects.
10378 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10379
10380 * fontset.h (struct font_info): Delete it. Most members go to
10381 struct font.
10382 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10383 (enum FONT_SPEC_INDEX): Delete it.
10384 (font_info, list_fonts_func, load_font_func, query_font_func)
10385 (set_frame_fontset_func, find_ccl_program_func)
10386 (get_font_repertory_func, new_fontset_from_font_name): Delete
10387 externs.
10388 (fontset_from_font_name): Extern it.
10389 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10390 (FONT_INFO_FROM_FACE): Deleted.
10391 (face_for_font): Adjust prototype.
10392
10393 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10394 conditionals. Don't check enable_font_backend. Delete all codes
10395 used only when USE_FONT_BACKEND is not defined.
10396 (get_font_info_func, list_font_func, load_font_func)
10397 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10398 (get_font_repertory_func): Delete them.
10399 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10400 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10401 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10402 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10403 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10404 (fontset_compare_rfontdef): New function.
10405 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10406 rfont-defs by qsort. Adjusted for the change of font-group vector.
10407 (load_font_get_repertory): Deleted.
10408 (fontset_find_font): Use new macros to ref/set elements of
10409 font-def and rfont-def.
10410 (fontset_font): Fix the timing of remembering that no font for C.
10411 (free_face_fontset): Do nothing if the face has no fontset.
10412 (face_suitable_for_char_p): Use new macros to ref/set elements of
10413 rfont-def.
10414 (face_for_char): Likewise. Call face_for_char with font_object.
10415 (fs_load_font): Delete. Delete #pragma surrounding it.
10416 (fs_query_fontset): Use strcasecmp instead of strcmp.
10417 (generate_ascii_font_name): Adjusted for the format change of
10418 font-spec.
10419 (Fset_fontset_font): Likewise. Use new macros to set elements of
10420 font-def.
10421 (Fnew_fontset): Use font_unparse_xlfd to generate
10422 FONTSET_ASCII (fontset).
10423 (new_fontset_from_font_name): Deleted.
10424 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10425 a fontset is already created for the font. FIx updating of
10426 Vfontset_alias_alist.
10427 (fontset_ascii_font): Deleted.
10428 (Ffont_info): Adjusted for the format change of font-spec.
10429 (Finternal_char_font): Likewise.
10430 (Ffontset_info): Likewise.
10431 (syms_of_fontset): Don't check load_font_func.
10432
10433 * fns.c (internal_equal): Handle PREV_FONT.
10434
10435 * frame.h: Delete USE_FONT_BACKEND conditional.
10436
10437 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10438 conditionals. Don't check enable_font_backend. Delete all codes
10439 used only when USE_FONT_BACKEND is not defined.
10440 (x_set_font): Call x_new_font, not x_new_fontset2.
10441 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10442 already set for the frame.
10443
10444 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10445 a font-entity by font_make_entity. Use font_intern_prop instead
10446 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10447 font property. If a font is scalable, set avgwidth property to 0.
10448 Set font-entity property by font_put_extra.
10449 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10450 (ffont_driver): Adjusted for the change of struct font_driver.
10451 (ftfont_spec_pattern): New function.
10452 (ftfont_list): Return a list, not vector.
10453 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10454 (ftfont_list_family): Don't downcase names.
10455 (ftfont_free_entity): Deleted.
10456 (ftfont_open): Return a font-object. Adjusted for the change of
10457 struct font. Get underline_thickness and underline_position from
10458 font property. Don't update dpyinfo->smallest_font_height and
10459 dpyinfo->smallest_char_width.
10460 (ftfont_close): Don't free `struct font'.
10461 (ftfont_has_char): Adjusted for the format change of font-entity.
10462 (ftfont_encode_char, ftfont_text_extents): Likewise.
10463
10464 * ftxfont.c (ftxfont_list): Return a list, not vector.
10465 (ftxfont_open): Return a font-object. Adjusted for the change of
10466 struct font. Get underline_thickness and underline_position from
10467 font property. Don't update dpyinfo->smallest_font_height and
10468 dpyinfo->smallest_char_width.
10469 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10470 (ftxfont_draw): Adjusted for the change of struct font.
10471
10472 * image.c (image_ascent): Don't include "charset.h". Include
10473 "character.h" and "font.h".
10474
10475 * lisp.h (enum pvec_type): New member PREV_FONT.
10476 (Fassoc_string): EXFUN it.
10477
10478 * print.c: Include font.h.
10479 (print_object): Handle font-related objects.
10480
10481 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10482 conditionals. Don't check enable_font_backend. Delete all codes
10483 used only when USE_FONT_BACKEND is not defined.
10484 (handle_auto_composed_prop): Do nothing if it->f is not on a
10485 window system. Check how many following characters can be
10486 displayed by the same font.
10487 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10488 'struct font *'.
10489 (get_char_face_and_encoding): Assign the whole encoding task to
10490 the `encode-char' method of a font driver.
10491 (fill_composite_glyph_string): Adjusted for the change of `struct
10492 face' and `struct glyph_string'.
10493 (fill_glyph_string): Likewise.
10494 (get_per_char_metric): Arguments changed.
10495 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10496 and `struct glyph_string'.
10497 (produce_stretch_glyph, calc_line_height_property)
10498 (x_produce_glyphs): Likewise.
10499
10500 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10501 conditionals. Don't check enable_font_backend. Delete all codes
10502 used only when USE_FONT_BACKEND is not defined. Use
10503 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10504 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10505 (Qp): Extern them.
10506 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10507 Deleted.
10508 (struct font_name): Deleted.
10509 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10510 (compare_fonts_by_sort_order): New function.
10511 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10512 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10513 Deleted.
10514 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10515 compare_fonts_by_sort_order.
10516 (Fx_font_family_list): Call Ffont_family_list.
10517 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10518 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10519 (face_symbolic_slant, face_symbolic_swidth)
10520 (split_font_name_into_vector, build_font_name_from_vector)
10521 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10522 (font_rescale_ratio, split_font_name, build_font_name)
10523 (free_font_names, sort_fonts, x_face_list_fonts)
10524 (face_font_available_p, sorted_font_list, cmp_font_names)
10525 (font_list_1, concat_font_list, font_list, remove_duplicates):
10526 Deleted.
10527 (Fx_list_fonts): Use Ffont_list.
10528 (LFACE_AVGWIDTH): Deleted.
10529 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10530 by FONTP.
10531 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10532 (set_lface_from_font_name): Delete it.
10533 (set_lface_from_font): Renamed from
10534 set_lface_from_font_and_fontset. Caller changed. Don't set
10535 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10536 for face.
10537 (merge_face_vectors): Copy font-spec if necessary.
10538 Clear properties of the font-spec if necessary.
10539 (merge_face_ref): Clear properties of the font-spec if necessary.
10540 (Finternal_set_lisp_face_attribute): Likewise.
10541 (set_font_frame_param): Use font_load_for_lface to load a
10542 font-object, and call Fmodify_frame_parameters with it.
10543 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10544 font name by Ffont_xlfd_name.
10545 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10546 QCslant, and QCwidth.
10547 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10548 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10549 Compare fonts by EQ.
10550 (lookup_non_ascii_face): Deleted.
10551 (face_for_font): The 2nd argument changed.
10552 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10553 Check atomic font properties by case insensitive.
10554 (realize_non_ascii_face): Set face->overstrike correctly.
10555 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10556 (dump_realized_face): Get font name from
10557 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10558
10559 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10560 conditionals. Don't check enable_font_backend. Delete all codes
10561 used only when USE_FONT_BACKEND is not defined.
10562 (xic_create_xfontset): Original code deleted and renamed from
10563 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10564 (x_make_gc): Don't set GCFont in GCs.
10565 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10566 opened by "fixed".
10567 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10568 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10569 get_font_repertory_func.
10570
10571 * xfont.c: Include <stdlib.h> and "ccl.h".
10572 (struct xfont_info): New structure.
10573 (xfont_query_font): Deleted.
10574 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10575 moved from xterm.c.
10576 (xfont_driver): Adjusted for the change of struct font_driver.
10577 (compare_font_names): New function.
10578 (xfont_list_pattern): Sort font names case insensitively. Make
10579 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10580 (xfont_list): Return a list, not vector.
10581 (xfont_match): If the font doesn't have QCname property, generate
10582 a name from the other font properties.
10583 (xfont_open): Return a font-object. Adjusted for the change of
10584 struct font. Get underline_thickness and underline_position from
10585 font property. Don't update dpyinfo->smallest_font_height and
10586 dpyinfo->smallest_char_width.
10587 (xfont_close): Don't free struct font.
10588 (xfont_prepare_face): Adjusted for the change of struct font.
10589 (xfont_done_face): Deleted.
10590 (xfont_has_char): Adjusted for the change of struct font.
10591 (xfont_encode_char, xfont_draw): Likewise.
10592 (xfont_check): New function.
10593
10594 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10595 callback function.
10596 (xftfont_match): Adjusted for the format change of font-entity.
10597 (xftfont_open): Adjusted for the format change of font-entity and
10598 font-object. Adjusted for the change of struct font. Return a
10599 font-object. Don't update dpyinfo->smallest_font_height and
10600 dpyinfo->smallest_char_width.
10601 (xftfont_close): Block input while calling XftFontClose.
10602 (xftfont_prepare_face): Don't block input while calling
10603 xftfont_get_colors. Adjusted for the change of struct font.
10604 (xftfont_shape): Return value of error case fixed.
10605
10606 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10607
10608 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10609 conditionals.
10610 (FONT_WIDTH): Return (f)->max_width.
10611 (struct x_display_info): Delete member `font'.
10612 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10613 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10614 (struct x_output): Change type of `font' to `struct font *'.
10615
10616 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10617 conditionals. Don't check enable_font_backend. Delete all codes
10618 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10619 (x_per_char_metric, x_encode_char): Deleted.
10620 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10621 (x_compute_glyph_string_overhangs): Adjusted for the change of
10622 `struct face'.
10623 (x_draw_glyph_string_foreground)
10624 (x_draw_composite_glyph_string_foreground): Likewise.
10625 (x_draw_glyph_string): Likewise. Use font->underline_position and
10626 font->underline_thickness.
10627 (x_new_font): Renamed from x_new_fontset2.
10628 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10629 (x_check_font): Call `check' method of a font driver.
10630 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10631 (x_query_font, x_get_font_repertory): Deleted.
10632 (x_find_ccl_program): Renamed and moved to xfont.c.
10633 (x_redisplay_interface): Adjusted for the change of `struct
10634 redisplay_interface'.
10635
10636 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10637 conditionals. Don't check enable_font_backend. Delete all codes
10638 used only when USE_FONT_BACKEND is not defined. Surround non-used
10639 code by "#ifdef OLD_FONT" and "endif".
10640 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10641
10642 * w32font.h (struct w32font_info): New member.
10643 (FONT_COMPAT): New macro.
10644 (w32font_open_internal): Prototype adjusted.
10645
10646 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10647 OLD_FONT" and "endif".
10648
10649 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10650 conditionals. Don't check enable_font_backend. Delete all codes
10651 used only when USE_FONT_BACKEND is not defined.
10652 (w32font_open): Return a font-object. Make a font-object by
10653 font_make_object. Adjusted for the change of struct w32font_info.
10654 (w32font_close): Don't free struct font. Adjusted for the change
10655 of struct w32font_info.
10656 (w32font_encode_char, w32font_text_extents, w32font_draw):
10657 Adjusted for the change of struct w32font_info.
10658 (w32font_draw): Likewise.
10659 (w32font_list_internal): Return a list, not vector.
10660 (w32font_open_internal): Change the 4th arg to font-object.
10661 Adjusted for the change of struct w32font_info and font-object format.
10662 (add_font_name_to_list): Don't downcase names.
10663 (w32_enumfont_pattern_entity): Make a font-entity by
10664 font_make_entity. Adjusted for the format change of font-entity.
10665 Use FONT_SET_STYLE to set a style-related font property. If a
10666 font is scalable, set avgwidth property to 0. Set font-entity
10667 property by font_put_extra.
10668 (font_matches_spec): Adjusted for the format change of font-entity.
10669 (w32_weight_table, w32_decode_weight): New variables.
10670 (w32_encode_weight): New function.
10671 (fill_in_logfont): Adjusted for the format change of font-spec.
10672 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10673 weight value.
10674 (w32font_driver): Adjusted for the change of struct font_driver.
10675
10676 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10677 conditionals. Don't check enable_font_backend. Surround non-used
10678 code by "#ifdef OLD_FONT" and "endif".
10679 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10680 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10681
10682 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10683 conditionals. Don't check enable_font_backend. Delete all codes
10684 used only when USE_FONT_BACKEND is not defined. Surround non-used
10685 code by "#ifdef OLD_FONT" and "endif".
10686
10687 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10688 (uniscribe_open): Return value changed to font-object.
10689 Adjusted for the format change of font-object.
10690 (uniscribe_otf_capability): Adjusted for the change of struct font.
10691 (add_opentype_font_name_to_list): Don't downcase names.
10692 (uniscribe_font_driver): Adjusted for the change of struct
10693 font_driver.
10694
10695 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
10696
10697 * dispnew.c (update_frame_1): Check if tty output is still valid
10698 before flushing it.
10699
10700 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10701
10702 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10703 to Gtk+ menus.
10704
10705 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10706
10707 * dired.c (file_name_completion): Tweak the code so as to always do it
10708 in a single pass. Tighten the scope of some variables.
10709
10710 * dired.c (Qdefault_directory): New var.
10711 (file_name_completion): Use it instead of Fexpand_file_name.
10712 (syms_of_dired): Initialize it.
10713
10714 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10715
10716 * fileio.c (double_dollars): Remove dead code.
10717
10718 2008-05-10 Eli Zaretskii <eliz@gnu.org>
10719
10720 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10721 Mention w32-get-true-file-attributes in doc string.
10722
10723 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10724
10725 2008-05-09 Glenn Morris <rgm@gnu.org>
10726
10727 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10728 2008-04-23.
10729
10730 2008-05-09 Eli Zaretskii <eliz@gnu.org>
10731
10732 Support for reporting owner and group of each file on MS-Windows:
10733 * dired.c (stat_uname, stat_gname): New functions, with special
10734 implementation for w32.
10735 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10736
10737 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10738 (dflt_group_name): New static variable.
10739 (dflt_group): Rename from the_group.
10740 (init_user_info): Init dflt_group fields. Get user's group name
10741 from LookupAccountSid.
10742 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10743 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10744 New initialization states.
10745 (globals_of_w32): Initialize them to zero. Initialize the default
10746 group name to "None".
10747 (GetFileSecurity_Name): New global var, the name of the function
10748 to call for GetFileSecurity.
10749 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10750 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10751 (get_file_security, get_security_descriptor_owner)
10752 (get_security_descriptor_group, is_valid_sid)
10753 (get_file_security_desc, get_rid, get_name_and_id)
10754 (get_file_owner_and_group): New functions.
10755 (stat): Use get_file_security_desc and get_file_owner_and_group to
10756 report the owner and primary group of each file. Don't ignore the
10757 high 32 bits of file's size, now that st_size is 64-bit wide.
10758 Fix test when to get true file attributes.
10759 (init_user_info): Use get_rid instead of equivalent inline code.
10760 (fstat): Don't ignore the high 32 bits of file's size.
10761
10762 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
10763
10764 * image.c (png_load): Use correct bit-depth for setting background
10765 color.
10766
10767 2008-05-08 Eli Zaretskii <eliz@gnu.org>
10768
10769 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10770 epa-hook.elc.
10771
10772 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
10773
10774 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10775
10776 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10777
10778 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10779 because the original parameters are in pure storage now.
10780 (mac_window): Remove unused params. Update callers.
10781
10782 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10783
10784 * lread.c (substitute_object_recurse): Use lower-level primitives.
10785 Don't signal errors when traversing sub-char-tables.
10786 Don't loop over all the possible characters when traversing char-tables.
10787
10788 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10789 just like we do in print.c.
10790
10791 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10792
10793 * minibuf.c (Ftry_completion): Remove code left over from when we used
10794 scmp instead of Fcompare_strings.
10795
10796 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
10797
10798 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10799
10800 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10801
10802 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10803 Create bitmap context in native byte order.
10804
10805 * macterm.c (XDrawLine)
10806 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10807 context in native byte order.
10808
10809 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10810
10811 * config.in: Regenerate.
10812
10813 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10814 New definitions for Image I/O support.
10815 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10816 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10817 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10818 (mac_data_provider_release_data, image_load_image_io)
10819 [USE_MAC_IMAGE_IO]: New functions.
10820 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10821 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10822 (init_image_func_pointer) [MAC_OSX]: Remove function.
10823 (image_load_quartz2d) [MAC_OSX]: Check availability of
10824 CGImageCreateWithPNGDataProvider at compile time.
10825 Use lowercase `false' for boolean constant.
10826 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10827 Use image_load_image_io.
10828 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10829 Don't check MyCGImageCreateWithPNGDataProvider.
10830 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10831 Don't call init_image_func_pointer.
10832
10833 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10834
10835 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10836 Make variable non-static.
10837 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10838 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10839
10840 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10841 (RED_FROM_ULONG): Mask off higher bits.
10842 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10843
10844 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10845 Include AvailabilityMacros.h.
10846 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10847 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10848
10849 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10850
10851 * chartab.c (Fset_char_table_range): If range is t, really set all
10852 chars to that value.
10853
10854 2008-05-03 Eli Zaretskii <eliz@gnu.org>
10855
10856 * dired.c (Ffile_attributes): Don't allow the device number become
10857 negative.
10858
10859 2008-05-02 Daiki Ueno <ueno@unixuser.org>
10860
10861 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10862
10863 2008-05-02 Juri Linkov <juri@jurta.org>
10864
10865 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10866 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10867 DEFAULT argument as a list of default values in docstrings.
10868
10869 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
10870
10871 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10872
10873 2008-05-01 Martin Rudalics <rudalics@gmx.at>
10874
10875 * dispnew.c (change_frame_size_1): Preserve small windows when
10876 shrinking frames by calling set_window_height|width with third
10877 arg 2.
10878
10879 * window.h (struct window): Replace field too_small_ok by field
10880 resize_proportionally.
10881
10882 * window.c (make_window): Initialize resize_proportionally.
10883 (enlarge_window): Temporarily set resize_proportionally to make
10884 sure that shrink_windows does scale the window proportionally.
10885 (shrink_windows): When window has resize_proportionally set try
10886 to shrink it proportionally by stealing from other windows.
10887 (struct saved_window, Fset_window_configuration)
10888 (compare_window_configurations): Handle resize_proportionally.
10889 (WINDOW_TOTAL_SIZE): New macro.
10890 (window_min_size, shrink_windows, size_window): Use it.
10891 (check_min_window_sizes): Remove. Invalid values of
10892 window-min-height|width are handled by window_min_size_2 now.
10893 (size_window, Fsplit_window, enlarge_window)
10894 (adjust_window_trailing_edge, grow_mini_window): Don't call
10895 check_min_window_sizes.
10896 (window_min_size_2, window_min_size_1, window_min_size):
10897 New argument safe_p for retrieving "safe" minimum sizes.
10898 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10899 (adjust_window_trailing_edge, grow_mini_window):
10900 Adjust arguments of window_min_size... functions.
10901 (shrink_windows): Argument min_size removed. New argument
10902 safe_p allows shrinking windows to their safe minimum sizes.
10903 Calculate minimum size and decide whether a window shall be
10904 deleted for each window individually.
10905 (size_window): When nodelete_p equals 2, tell shrink_windows to
10906 delete windows only if their new minimum size is no more safe.
10907 (shrink_window_lowest_first): Call window_min_size_1 to make
10908 sure to preserve modeline of bottom-most window when resizing
10909 the minibuffer.
10910 (Fset_window_configuration, Fcurrent_window_configuration)
10911 (compare_window_configurations): Do not handle
10912 window-min-height|width any more.
10913 (syms_of_window): Clarify window-min-height|width doc-strings.
10914
10915 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10916
10917 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10918 some more. Copy some of the code from Ftry_completions.
10919 Remove special case code that dates back to initial revision when the
10920 slash was only added when necessary and that can't trigger nowadays.
10921
10922 2008-04-27 Kenichi Handa <handa@m17n.org>
10923
10924 * font.c (font_prop_validate): Signal `error' instead of `font'.
10925
10926 2008-04-29 Jason Rumney <jasonr@gnu.org>
10927
10928 * w32fns.c (Fw32_battery_status): New defun.
10929 (syms_of_w32fns): Defsubr it.
10930
10931 2008-04-28 Andreas Schwab <schwab@suse.de>
10932
10933 * dired.c (file_name_completion): Fix another mixing of encoded
10934 and decoded names.
10935
10936 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
10937
10938 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10939
10940 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
10941
10942 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10943
10944 2008-04-27 Andreas Schwab <schwab@suse.de>
10945
10946 * dired.c (file_name_completion): Fix inappropriate mixing of
10947 encoded and decoded names.
10948
10949 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10950
10951 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10952
10953 2008-04-26 Eli Zaretskii <eliz@gnu.org>
10954
10955 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10956 2008-03-31, it's not needed anymore with `struct stat' definition
10957 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10958 for the same reasons.
10959
10960 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10961
10962 * m/sparc.h: Additional redefinitions for GNU/Linux.
10963
10964 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10965
10966 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10967 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10968 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10969 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10970 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10971 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10972 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10973 Likewise.
10974
10975 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10976 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10977 (mac_ax_number_of_characters): Add externs.
10978 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10979 [USE_MAC_TSM]: Likewise.
10980 (mac_handle_text_input_event) [MAC_OSX]:
10981 Handle kEventTextInputOffsetToPos for no active input area case.
10982 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10983 (mac_handle_document_access_event)
10984 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10985 (install_application_handler) [MAC_OSX]: Register handlers for
10986 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10987 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10988 Register mac_handle_document_access_event.
10989
10990 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10991 Make functions non-static.
10992
10993 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10994
10995 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10996 (read_file_name_completion_ignore_case, insert_default_directory)
10997 (Qdefault_directory): Move to minibuffer.el.
10998 (Fread_file_name): Call the new `read-file-name' instead.
10999
11000 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11001
11002 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11003 Make function non-static.
11004 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11005 Remove function.
11006 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11007 Move to mactoolbox.c.
11008 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11009
11010 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11011 (mac_rect_make): New macro.
11012
11013 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11014 instead of float.
11015 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11016 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11017 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11018 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11019 CGRectMake.
11020 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11021 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11022 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11023 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11024 instead of WindowRef in argument type.
11025 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11026 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11027 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11028 instead of DISPLAY. All uses changed.
11029 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11030 (x_calc_absolute_position): Simplify so as not to use
11031 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11032
11033 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11034 instead of WindowRef in argument type.
11035 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11036 [TARGET_API_MAC_CARBON]: Remove externs.
11037 (create_apple_event, mac_event_parameters_to_lisp)
11038 [TARGET_API_MAC_CARBON]: Add externs.
11039
11040 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11041 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11042 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11043 is clicked.
11044 (x_activate_menubar): Remove extern for saved_menu_event_location.
11045 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11046 Move from mac.c.
11047
11048 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11049
11050 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11051 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11052
11053 2008-04-23 Jason Rumney <jasonr@gnu.org>
11054
11055 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11056 attributes only for local files.
11057
11058 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11059 default to Qlocal.
11060
11061 2008-04-22 Juri Linkov <juri@jurta.org>
11062
11063 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11064 read-buffer-to-switch instead of using the letter "B".
11065
11066 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11067
11068 * fileio.c (Qdefault_directory): New variable.
11069 (Fread_file_name): Use it to pass `dir' to the completion functions.
11070
11071 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
11072
11073 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11074
11075 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11076
11077 * keyboard.c (Vpre_help_message): Remove.
11078 (show_help_echo): Remove default C code.
11079
11080 * dired.c (directory_files_internal, file_name_completion):
11081 Only call ENCODE_FILE if the string is indeed decoded.
11082
11083 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11084
11085 * Makefile.in (TOOLKIT_DEFINES): Remove.
11086 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11087
11088 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11089
11090 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11091 (mactoolbox.o): New target.
11092
11093 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11094 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11095
11096 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11097 Use mac_set_frame_window_background instead of XSetWindowBackground.
11098 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11099 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11100 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11101 instead of SetWindowTitleWithCFString.
11102 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11103 Move function to mactoolbox.c.
11104 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11105 Use mac_set_window_modified instead of SetWindowModified.
11106 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11107 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11108 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11109 FrontNonFloatingWindow. Use mac_activate_window instead of
11110 ActivateWindow. Use mac_active_non_floating_window instead of
11111 ActiveNonFloatingWindow.
11112 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11113 Use mac_show_hourglass and mac_hide_hourglass.
11114 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11115 instead of GetGlobalMouse.
11116 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11117 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11118 Use mac_bring_window_to_front instead of BringToFront.
11119 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11120 mactoolbox.c.
11121 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11122 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11123 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11124 mactoolbox.c.
11125
11126 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11127 (XtPointer): Move typedef from macmenu.c.
11128 (enum button_type): Move enum from macmenu.c.
11129 (widget_value): Move typedef from macmenu.c.
11130 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11131 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11132 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11133 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11134 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11135 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11136 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11137 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11138 (Selection): Move typedef from macselect.c.
11139 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11140 macterm.c.
11141 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11142 (mac_is_window_collapsed, mac_bring_window_to_front)
11143 (mac_send_window_behind, mac_hide_window, mac_show_window)
11144 (mac_collapse_window, mac_front_non_floating_window)
11145 (mac_active_non_floating_window, mac_activate_window)
11146 (mac_move_window_structure, mac_move_window, mac_size_window)
11147 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11148
11149 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11150 (enum mac_menu_kind): Move enum to mactoolbox.c.
11151 (min_menu_id): Move variable to mactoolbox.c.
11152 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11153 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11154 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11155 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11156 [TARGET_API_MAC_CARBON]: Likewise.
11157 (XtPointer): Move typedef to macgui.h.
11158 (enum button_type): Move enum to macgui.h.
11159 (widget_value): Move typedef to macgui.h.
11160 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11161 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11162 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11163 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11164 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11165 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11166 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11167 (popup_activated_flag): Make variable non-static.
11168 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11169 (add_menu_item, fill_menu, dispose_menus):
11170 Move functions to mactoolbox.c.
11171 (restore_show_help_function, menu_target_item_handler)
11172 (install_menu_target_item_handler, mac_handle_dialog_event)
11173 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11174 [TARGET_API_MAC_CARBON]: Likewise.
11175 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11176 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11177 (find_and_call_menu_selection, name_is_separator): Make function
11178 non-static.
11179 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11180 to mactoolbox.c.
11181 (set_frame_menubar): Don't call install_menu_quit_handler.
11182 (menu_item_selection): New variable.
11183 (mac_menu_show): Use create_and_show_popup_menu.
11184 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11185 selection but set variable menu_item_selection. All uses changed.
11186 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11187 Call install_menu_quit_handler. Move to mactoolbox.c.
11188
11189 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11190 (Selection): Move typedef to macgui.h.
11191 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11192 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11193 Make variables non-static.
11194 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11195 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11196 Make functions non-static.
11197 (Vmac_service_selection) [MAC_OSX]: Likewise.
11198 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11199 (mac_valid_selection_target_p, mac_clear_selection)
11200 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11201 (mac_put_selection_value, mac_selection_has_target_p)
11202 (mac_get_selection_value, mac_get_selection_target_list)
11203 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11204 Move functions to mactoolbox.c.
11205 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11206 Likewise.
11207 (copy_scrap_flavor_data, mac_handle_service_event)
11208 (install_service_handler) [MAC_OSX]: Likewise.
11209 (syms_of_macselect) <Vmac_dnd_known_types>:
11210 Use mac_dnd_default_known_types.
11211
11212 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11213 Move to mactoolbox.c.
11214 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11215 (Fx_selection_owner_p): Add EXFUN.
11216 (install_window_handler, remove_window_handler, XSetWindowBackground):
11217 Remove externs.
11218 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11219 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11220 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11221 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11222 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11223 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11224 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11225 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11226 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11227 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11228 (mac_valid_selection_target_p, mac_clear_selection)
11229 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11230 (mac_put_selection_value, mac_selection_has_target_p)
11231 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11232 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11233 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11234 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11235 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11236 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11237 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11238 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11239 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11240
11241 * mactoolbox.c: New file.
11242
11243 2008-04-18 Jason Rumney <jasonr@gnu.org>
11244
11245 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11246
11247 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11248
11249 * character.c (Fmultibyte_char_to_unibyte):
11250 Return latin1 chars unchanged.
11251
11252 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11253 relocated if it points to `name'.
11254
11255 2008-04-17 Kenichi Handa <handa@m17n.org>
11256
11257 * data.c (Faset): Allow setting a multibyte character in an
11258 ASCII-only unibyte string.
11259
11260 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11261
11262 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11263
11264 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11265 done in config.h.
11266
11267 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
11268
11269 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11270 (Fchar_direction): Add usage in the docstring.
11271
11272 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
11273
11274 * keyboard.c (read_key_sequence): Remove always-true checks.
11275
11276 2008-04-14 Jason Rumney <jasonr@gnu.org>
11277
11278 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11279 compatibility struct, for better underline positioning.
11280
11281 2008-04-13 David Hansen <david.hansen@gmx.net>
11282
11283 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11284 string.
11285
11286 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11287
11288 * m/hp800.h (XUINT, XSET): Remove.
11289
11290 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
11291
11292 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11293 previous change.
11294
11295 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11296
11297 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11298 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11299
11300 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11301
11302 * keymap.h (map_keymap_canonical): Declare.
11303 * xmenu.c (single_keymap_panes): Use it.
11304
11305 2008-04-11 Glenn Morris <rgm@gnu.org>
11306
11307 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11308 set the target's value to that of the alias.
11309
11310 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11311
11312 * term.c (set_tty_color_mode): Left over typo.
11313
11314 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
11315
11316 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11317 only after check for file name handler functions. Signal, when
11318 native functionality is not supported.
11319 (syms_of_fileio): Declare it unconditionally.
11320
11321 2008-04-10 Jason Rumney <jasonr@gnu.org>
11322
11323 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11324 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11325
11326 * w32.c (logon_network_drive): Also logon to remote drives that
11327 are mapped to drive letters.
11328
11329 2008-04-10 Glenn Morris <rgm@gnu.org>
11330
11331 * xdisp.c (truncate-partial-width-windows): Doc fix.
11332
11333 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11334
11335 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11336 Move functions to minibuffer.el.
11337 (syms_of_fileio): Don't declare them.
11338
11339 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11340
11341 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11342 (syms_of_minibuf): Remove its initialization.
11343
11344 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11345
11346 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
11347
11348 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11349
11350 2008-04-09 Jason Rumney <jasonr@gnu.org>
11351
11352 * makefile.w32-in (distclean): Delete makefile too.
11353 (maintainer-clean): New target.
11354
11355 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11356
11357 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11358 for new font backend and composite cases.
11359
11360 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11361
11362 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11363 Most of the code moved to run_timers.
11364 (do_pending_atimers): Call run_timers.
11365 (run_timers): New function.
11366
11367 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11368 run atimers.
11369
11370 * process.c (wait_reading_process_output): The same as above.
11371
11372 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11373
11374 * minibuf.c (last_exact_completion): Remove variable.
11375 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11376 (complete_and_exit_1, complete_and_exit_2)
11377 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11378 (Fdisplay_completion_list, display_completion_list_1)
11379 (Fminibuffer_completion_help, Fself_insert_and_exit)
11380 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11381 minibuffer.el.
11382 (syms_of_minibuf): Remove corresponding initializations.
11383
11384 * keyboard.c (Qdeactivate_mark): New var.
11385 (command_loop_1): Use it to call `deactivate-mark'.
11386 (syms_of_keyboard): Initialize it.
11387
11388 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11389 to another frame.
11390 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11391 Don't call set_tty_color_mode.
11392 (store_frame_param): Reset previous_frame rather than call
11393 set_tty_color_mode.
11394 * term.c (set_tty_color_mode): Rewrite.
11395 * dispextern.h (set_tty_color_mode): New type.
11396 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11397
11398 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11399
11400 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11401 for generic chars, which do not exist any more in emacs-unicode.
11402
11403 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
11404
11405 * coding.c (detect_coding_emacs_mule)
11406 (Ffind_operation_coding_system): Fix typo.
11407
11408 2008-04-08 Jason Rumney <jasonr@gnu.org>
11409
11410 * w32uniscribe.c (SNAME): Extract only symbol name.
11411
11412 * w32font.h (struct w32_metric_cache): New struct.
11413 (w32font_info): Use it.
11414 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11415 (CACHE_BLOCKSIZE): New constants.
11416
11417 * w32font.c (Qja, Qko, Qzh): New symbols.
11418 (syms_of_w32font): Initialise them.
11419 (font_matches_spec): Use them to filter by language.
11420 (recompute_cached_metrics): Remove function.
11421 (compute_metrics, clear_cached_metrics): New functions.
11422 (w32font_encode_char): Use them to manage metric cache.
11423 (w32font_text_extents): Cache metrics for all glyphs on demand.
11424 Delay converting glyph indices to WORD until needed.
11425 (w32font_open_internal): Initialize metric cache to empty.
11426 (registry_to_w32_charset): Charset should always be a symbol.
11427 (fill_in_logfont, list_all_matching_fonts): Family should
11428 always be a symbol.
11429
11430 2008-04-06 Jason Rumney <jasonr@gnu.org>
11431
11432 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11433 Give up if glyph indices not supported. Use uniscribe obtained
11434 ABC widths for individual metrics. Map glyph clusters back to
11435 characters using fClusterStart flag. Return number of glyphs
11436 produced, not chars processed.
11437 (uniscribe_shape): Map char at FROM to current glyph.
11438
11439 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11440
11441 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11442 Use SetMenuItemHierarchicalMenu.
11443
11444 2008-04-05 Jason Rumney <jasonr@gnu.org>
11445
11446 * image.c (pbm_load): Allow color values up to 65535.
11447 Throw an error if max_color_idx is outside the supported range.
11448 Report an error when image size is invalid.
11449 Read two bytes at a time when raw images have max_color_idx above 255.
11450
11451 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11452
11453 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11454 cFileName a file name that includes `?' characters, use the 8+3
11455 alias in cAlternateFileName instead.
11456
11457 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11458
11459 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11460 append "CCL: Quitted" when the CCL program is quitted.
11461 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11462
11463 * ccl.h (struct ccl_program): New member quit_silently.
11464
11465 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
11466
11467 * search.c (compile_pattern_1): Treat non-nil and non-string of
11468 search-spaces-regexp as nil.
11469
11470 * minibuf.c (Fassoc_string): Tweak docstring.
11471
11472 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11473
11474 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11475 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11476 2008-03-14 to force inode be positive.
11477
11478 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11479 _S_* ones, since we now use our own sys/stat.h.
11480 (stat, fstat): Don't mangle the inode number.
11481 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11482
11483 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11484
11485 * frame.h (struct frame): Give one more bit to `visible' since we use
11486 values larger than 1 to indicate obscured frames on ttys.
11487
11488 * keymap.c (Qkeymap_canonicalize): New var.
11489 (Fmap_keymap_internal): New fun.
11490 (describe_map): Use keymap-canonicalize.
11491
11492 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11493 (Fundo_boundary): Set them.
11494 (syms_of_undo): Initialize them.
11495 (record_point): Use them instead of last_point_position*.
11496 (last_undo_buffer): Change type.
11497
11498 2008-04-04 Jason Rumney <jasonr@gnu.org>
11499
11500 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11501 (recompute_cached_metrics): Don't set ascent and descent per char.
11502
11503 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11504 (uniscribe_check_otf): Add GC protection before consing.
11505 Rearrange loop for counting features.
11506
11507 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11508
11509 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11510 buffer with byte-size of source buffer.
11511
11512 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
11513
11514 * callint.c (Fcall_interactively): Handle temporary region even
11515 when shift-select-mode is off.
11516
11517 2008-04-03 Jason Rumney <jasonr@gnu.org>
11518
11519 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11520
11521 2008-04-03 Kenichi Handa <handa@m17n.org>
11522
11523 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11524 (CATEGORY_MASK_UTF_16): Likewise.
11525 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11526 binary file.
11527 (detect_coding): Add null-byte detection for a binary file.
11528 (detect_coding_system): Likewise.
11529
11530 2008-04-03 Jason Rumney <jasonr@gnu.org>
11531
11532 * w32uniscribe.c: New file.
11533
11534 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11535
11536 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11537
11538 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11539 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11540 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11541 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11542 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11543 (Qphonetic): New symbols.
11544 (syms_of_w32font): Initialize them.
11545 (font_supported_scripts): Use them.
11546 (w32font_list_family): List all charsets.
11547 (w32font_text_extents, recompute_cached_metrics): Fix metric
11548 calculations.
11549 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11550 Give opentype fonts their own format.
11551 (font_matches_spec): New arguments backend and logfont.
11552 Handle :otf spec for uniscribe backend.
11553 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11554 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11555
11556 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11557 font backend.
11558 (globals_of_w32fns): Initialize uniscribe font backend.
11559
11560 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11561 dependencies.
11562 (w32uniscribe.$(O)): New file to build.
11563 (FONT_OBJ): Include w32uniscribe.$(O).
11564 (LIBS): Add uniscribe libraries.
11565
11566 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11567
11568 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
11569
11570 * callint.c (Vshift_select_mode): New var.
11571 (Finteractive): Document new ^ spec.
11572 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11573 is present.
11574
11575 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11576 (command_loop_1): Avoid running the direct display versions of
11577 forward-char and backward-char if shift-selection may occur.
11578 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11579 shift-translation takes place.
11580
11581 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11582 avoid clobbering by define-minor-mode.
11583
11584 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11585 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11586
11587 * syntax.c (Fforward_word): Add ^ interactive spec.
11588
11589 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11590 (Fscroll_right): Add ^ interactive spec.
11591
11592 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11593
11594 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11595
11596 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11597
11598 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11599
11600 2008-03-31 Juri Linkov <juri@jurta.org>
11601
11602 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11603
11604 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11605
11606 * gtkutil.c (xg_set_geometry): Fix indentation.
11607 (xg_resize_outer_widget): Remove.
11608 (x_wm_size_hint_off): Fix indentation.
11609 (xg_frame_set_char_size): Call flush_and_sync after
11610 gtk_window_resize.
11611 (x_wm_set_size_hint): Pass NULL as geometry window to
11612 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11613 Add menu bar and tool bar height to base height.
11614 (xg_update_frame_menubar, free_frame_menubar)
11615 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11616 (update_frame_tool_bar, free_frame_tool_bar):
11617 Change xg_resize_outer_widget to xg_frame_set_char_size.
11618
11619 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
11620
11621 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11622 (Fdbus_call_method): New parameter TIMEOUT.
11623 (dbus-send-signal): Optimize UNGCPRO call.
11624
11625 2008-03-29 Juri Linkov <juri@jurta.org>
11626
11627 * window.c (Fdisplay_buffer): Move call to
11628 Vsplit_window_preferred_function out of conditions that check
11629 if window is eligible for vertical splitting.
11630 When Vsplit_window_preferred_function is non-nil, call it and use
11631 its non-nil return value as window. Otherwise, continue doing
11632 vertical splitting using Fsplit_window with arg horflag=nil.
11633 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11634 default value from `split-window' to nil.
11635
11636 2008-03-29 Juri Linkov <juri@jurta.org>
11637
11638 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11639 for interactive code letters 'b' and 'B'.
11640
11641 2008-03-29 Eli Zaretskii <eliz@gnu.org>
11642
11643 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11644 multibyte string.
11645
11646 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11647
11648 * keyboard.c (pending_funcalls): New var.
11649 (timer_check): Run it.
11650 (syms_of_keyboard): Initialize it.
11651 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11652 (Vdelete_terminal_functions): New vars.
11653 (syms_of_terminal): Initialize them.
11654 (Fdelete_terminal): Run delete-terminal-functions.
11655 * xdisp.c (safe_eval): Rewrite.
11656 (safe_call2): New fun.
11657 * frame.c (Qdelete_frame_functions): New var.
11658 (syms_of_frame): Initialize it.
11659 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11660 * lisp.h (safe_call2, pending_funcalls): Declare.
11661
11662 2008-03-28 Andreas Schwab <schwab@suse.de>
11663
11664 * indent.c (Fmove_to_column): Move declaration before statements.
11665
11666 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11667
11668 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11669 (struct frame): Use bit fields for boolean vars.
11670
11671 * process.c (server_accept_connection): Simplify naming.
11672 (emacs_get_tty_pgrp): Use SDATA.
11673
11674 * coding.c (decode_coding_object): Fix last change.
11675
11676 2008-03-27 Jason Rumney <jasonr@gnu.org>
11677
11678 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11679
11680 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11681
11682 * charset.c (Fdefine_charset_internal): Change the way of
11683 registering charsets in Vcharset_order_list.
11684 (syms_of_charset): Make the charset `eight-bit' supplementary.
11685
11686 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11687
11688 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11689 operations, to avoid having the difference between pointers
11690 overflow.
11691
11692 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11693
11694 * indent.c (check_display_width): New fun.
11695 (scan_for_column): Use it.
11696
11697 * data.c (syms_of_data): Mark most-positive-fixnum and
11698 most-negative-fixnum as constants.
11699
11700 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11701
11702 * indent.c (scan_for_column): Extract from current_column_1.
11703 Merge with the same code from Fmove_to_column.
11704 (current_column_1, Fmove_to_column): Use it.
11705
11706 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11707
11708 * keymap.c (map_keymap_internal): New fun.
11709 (map_keymap): Use it.
11710 (Fmap_keymap_internal): New fun.
11711 (Fmap_keymap): Remove left-out test from before make_save_value.
11712
11713 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11714
11715 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11716 Use XCAR/XCDR.
11717
11718 * process.h (struct Lisp_Process): Remove filter_multibyte.
11719 * process.c (QCfilter_multibyte): Remove.
11720 (setup_process_coding_systems): Don't use filter_multibyte.
11721 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11722 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11723 (Fset_process_filter_multibyte): Change the coding-system to
11724 approximate the previous behavior.
11725 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11726 coding-system.
11727
11728 * coding.c (decode_coding_object): When not decoding into a buffer,
11729 obey the coding system's preference of (uni|multi)byte.
11730
11731 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11732
11733 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11734 every char is changed and has a different byte-length.
11735 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11736 Fix int -> EMACS_INT.
11737
11738 2008-03-23 David Hansen <david.hansen@gmx.net>
11739
11740 * dbusbind.c (xd_read_message): Remove extra copying of message
11741 strings. Check for NULL `interface' or `member'.
11742
11743 2008-03-22 Eli Zaretskii <eliz@gnu.org>
11744
11745 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11746 cFileName a file name that includes `?' characters, use the 8+3
11747 alias in cAlternateFileName instead.
11748
11749 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11750
11751 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11752
11753 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11754
11755 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11756 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11757 work on current_buffer only instead (that was already the case
11758 for some of the code anyway).
11759 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11760 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11761 (SET_PT, SET_PT_BOTH): Adjust.
11762 * intervals.h (set_point, temp_set_point, set_point_both)
11763 (temp_set_point_both): Remove redundant declarations.
11764
11765 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11766
11767 * fileio.c (Finsert_file_contents):
11768 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11769 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11770 when buffer != current_buffer anyway.
11771
11772 2008-03-20 Andreas Schwab <schwab@suse.de>
11773
11774 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11775 as default.
11776
11777 2008-03-19 Jason Rumney <jasonr@gnu.org>
11778
11779 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11780 (syms_of_w32fns): Initialize them.
11781 (HOURGLASS_ID): New constant.
11782 (x_window_to_frame): Don't check hourglass_window.
11783 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11784 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11785 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11786 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11787 Only change the cursor if hourglass is not active.
11788 (Fx_create_frame): Initialize frame's current_cursor.
11789 (hourglass_atimer): Remove.
11790 (hourglass_started): New function.
11791 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11792 (show_hourglass): Adapt to w32, changing argument to frame.
11793
11794 * w32term.h (struct w32_output): Remove hourglass_window.
11795 Add current_cursor.
11796
11797 * eval.c (call_debugger, Fsignal):
11798 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11799 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11800 (Fexecute_extended_command, cancel_hourglass_unwind):
11801 * minibuf.c (read_minibuf):
11802 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11803
11804 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11805
11806 * window.c (run_funs): New fun.
11807 (run_window_configuration_change_hook): Use it to run the buffer-local
11808 and the global part of the hook.
11809
11810 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11811 (unwind_format_mode_line): Restore selected window.
11812 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11813
11814 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11815
11816 * editfns.c (Fchar_equal): Check they are valid characters.
11817
11818 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11819
11820 2008-03-17 Andreas Schwab <schwab@suse.de>
11821
11822 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11823 against a charset.
11824
11825 * lisp.h (Fbuffer_list): Declare.
11826
11827 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
11828
11829 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11830 handlebox_widget is != 0.
11831
11832 2008-03-16 Juri Linkov <juri@jurta.org>
11833
11834 * callint.c (Fcall_interactively): For interactive code letters
11835 'b' and 'B' put the buffer list into the list of default "future"
11836 values of the minibuffer.
11837
11838 2008-03-16 Andreas Schwab <schwab@suse.de>
11839
11840 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11841 modifiers.
11842
11843 * regex.c (re_match_2_internal): Correct matching of a charset
11844 against latin-1 characters.
11845
11846 2008-03-16 Kenichi Handa <handa@m17n.org>
11847
11848 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11849 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11850 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11851 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11852 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11853 CHAR_STRING_ADVANCE.
11854 (produce_chars): Fix for the case that the source and the
11855 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11856 instead of CHAR_STRING_ADVANCE.
11857 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11858 STRING_CHAR_ADVANCE.
11859
11860 2008-03-15 Andreas Schwab <schwab@suse.de>
11861
11862 * regex.c (re_match_2_internal): Correct matching of eight bit
11863 characters in unibyte strings.
11864
11865 2008-03-15 Martin Rudalics <rudalics@gmx.at>
11866
11867 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11868 at end of range when it coincides with the end of the buffer.
11869
11870 2008-03-14 Eli Zaretskii <eliz@gnu.org>
11871
11872 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11873
11874 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11875
11876 2008-03-14 Jason Rumney <jasonr@gnu.org>
11877
11878 * editfns.c (initial_tz): New variable.
11879 (syms_of_editfns): Initialize it.
11880 (Fset_time_zone_rule): Set it when first called.
11881 Use it when TZSTRING is nil.
11882
11883 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11884 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11885 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11886 (globals_of_w32fns): Initialize them.
11887 (compute_tip_xy): Use them to position tooltips.
11888
11889 2008-03-14 Glenn Morris <rgm@gnu.org>
11890
11891 * emacs.c (main): Revert previous change.
11892 (standard_args): Revert -internal-script back to -scriptload,
11893 and remove the long-option form.
11894
11895 2008-03-13 Glenn Morris <rgm@gnu.org>
11896
11897 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11898 Remove option -enable-font-backend.
11899
11900 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11901
11902 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11903
11904 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11905
11906 * xterm.c (x_connection_closed): For GTK: If this is the last
11907 terminal just exit without closing the display.
11908
11909 2008-03-11 Jason Rumney <jasonr@gnu.org>
11910
11911 * w32font.c (w32font_full_name): Use floor to round.
11912
11913 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11914
11915 * sound.c (alsa_configure): Declare vol at beginning of block.
11916
11917 * fontset.c (Ffontset_info): Remove extra semicolon.
11918
11919 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11920
11921 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11922 size of resulting string.
11923
11924 2008-03-10 Jason Rumney <jasonr@gnu.org>
11925
11926 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11927
11928 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11929
11930 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11931 Don't pretend as if characters with display property haven't been
11932 consumed for string-replacing-string case.
11933
11934 2008-03-08 Kim F. Storm <storm@cua.dk>
11935
11936 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11937 (get_next_display_element, next_element_from_string)
11938 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11939
11940 2008-03-08 Andreas Schwab <schwab@suse.de>
11941
11942 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11943
11944 2008-03-06 Jason Rumney <jasonr@gnu.org>
11945
11946 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11947 when charset not specified. Only translate ANSI to unicode when
11948 font_type is truetype.
11949 (w32font_coverage_ok): New function.
11950 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11951
11952 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11953
11954 * lread.c (Fread_char): Resolve modifiers.
11955 (Fread_char_exclusive): Likewise.
11956
11957 * character.c (char_resolve_modifier_mask): New function.
11958 (char_string): Use char_resolve_modifier_mask.
11959 (Fchar_resolve_modifiers): New function.
11960 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11961 function.
11962
11963 2008-03-04 Jason Rumney <jasonr@gnu.org>
11964
11965 * makefile.w32-in: Always include w32font.c in the build.
11966 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11967
11968 2008-03-04 Andreas Schwab <schwab@suse.de>
11969
11970 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11971 (versionclean): Likewise.
11972
11973 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
11974
11975 * .cvsignore: Add oo.
11976
11977 2008-03-03 Andreas Schwab <schwab@suse.de>
11978
11979 * coding.c (decode_coding_object): Inhibit gap shrinking while
11980 decoding in place.
11981
11982 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11983
11984 * w32term.c: Remove unused include "gnu.h".
11985 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11986
11987 * gnu.h: Rename to ...
11988 * emacs-icon.h: ... this.
11989 * xterm.c: Use emacs-icon.h instead of gnu.h.
11990 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11991
11992 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
11993
11994 * w32font.c: Include math.h.
11995
11996 2008-03-03 Jason Rumney <jasonr@gnu.org>
11997
11998 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11999 Compute options separately.
12000 (w32font_open_internal): Set glyph_idx before caching metrics.
12001
12002 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12003 Define if system headers don't.
12004 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12005 (w32font_encode_char): Don't declare here.
12006
12007 * w32font.c (Quniscribe, QCformat): New symbols.
12008 (syms_of_w32font): Define them.
12009 (w32font_has_char): Indicate uncertainty.
12010 (w32font_encode_char): Encode as glyph point. Make static.
12011 (recompute_cached_metrics): New function.
12012 (w32font_open_internal): Use it. Set font to use glyph points
12013 initially. Set format based on type of font.
12014 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12015 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12016 on it. Set format based on information available here.
12017 (add_font_entity_to_list): Identify backend based on opentype_only.
12018
12019 2008-03-02 Andreas Schwab <schwab@suse.de>
12020
12021 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12022
12023 * coding.c (decode_coding_big5, produce_chars):
12024 Fix typos in last change.
12025
12026 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12027
12028 * gnu.h: New icon.
12029
12030 2008-03-02 Kenichi Handa <handa@m17n.org>
12031
12032 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12033 `dos', don't decode '\r' if that is the last in the source.
12034 (decode_coding_utf_16, decode_coding_emacs_mule)
12035 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12036 (decode_coding_raw_text, decode_coding_charset): Likewise.
12037 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12038
12039 2008-03-01 Jason Rumney <jasonr@gnu.org>
12040
12041 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12042
12043 2008-03-01 Kim F. Storm <storm@cua.dk>
12044
12045 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12046
12047 2008-03-01 Jason Rumney <jasonr@gnu.org>
12048
12049 * w32font.c (w32font_full_name): New function.
12050 (w32font_open_internal): Use it.
12051
12052 2008-03-01 Kim F. Storm <storm@cua.dk>
12053
12054 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12055
12056 2008-03-01 Jason Rumney <jasonr@gnu.org>
12057
12058 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12059
12060 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12061
12062 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12063 xg_frame_resized when the event is for the edit widget.
12064
12065 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12066
12067 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12068 set_char_size.
12069 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12070 operations on widgets here. Just set frame size if needed.
12071 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12072 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12073 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12074 the whole frame.
12075 (xg_create_tool_bar): Move attachment of the tool bar to
12076 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12077 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12078
12079 2008-03-01 Jason Rumney <jasonr@gnu.org>
12080
12081 * w32fns.c (w32_msg_pump): Disable debug code.
12082
12083 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12084
12085 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12086
12087 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12088
12089 * xdisp.c (next_overlay_string): Don't set
12090 overlay_strings_at_end_processed_p if we're currently reading from
12091 a display string.
12092
12093 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12094
12095 * xdisp.c (get_overlay_strings_1): Fix typo.
12096
12097 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12098
12099 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12100
12101 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12102
12103 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12104
12105 * xdisp.c (display_mode_element): Cancel the previous change.
12106 (decode_mode_spec): Likewise.
12107 (handle_auto_composed_prop): Don't make composition if it->string
12108 is a string.
12109
12110 2008-02-27 Kim F. Storm <storm@cua.dk>
12111
12112 * lisp.h (GLYPH): Change type from int to struct with separate char
12113 and face_id members.
12114 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12115 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12116 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12117 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12118 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12119 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12120 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12121 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12122 handle new Lisp glyph code encoding, either an integer or a cons.
12123
12124 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12125 (GLYPH_ALIAS): Delete.
12126 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12127 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12128 (GLYPH_FROM_CHAR): Replace macro by ...
12129 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12130
12131 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12132 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12133 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12134 (GLYPH_INVALID_P): New macro.
12135 (spec_glyph_lookup_face): Update prototype.
12136
12137 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12138 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12139 new glyph code encoding.
12140 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12141 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12142
12143 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12144 Adapt to new glyph type and new glyph code encoding.
12145
12146 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12147
12148 * indent.c (current_column, current_column_1, Fmove_to_column)
12149 (compute_motion): Adapt to new glyph code encoding.
12150
12151 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12152
12153 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
12154
12155 * process.c (wait_reading_process_output): Check for window
12156 changes caused by timers.
12157 Suggested by Johan Bockgård.
12158
12159 2008-02-27 Glenn Morris <rgm@gnu.org>
12160
12161 * emacs.c (USAGE1): Add `--disable-font-backend'.
12162
12163 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12164
12165 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12166 is made to the buffer.
12167
12168 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12169
12170 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12171 (face_at_string_position):
12172 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12173 (face_at_string_position):
12174 * xdisp.c (display_string, next_overlay_change):
12175 * buffer.h (overlays_at):
12176 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12177 Update callers.
12178
12179 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
12180
12181 * editfns.c (Fformat): Doc fix.
12182
12183 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
12184
12185 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12186 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12187 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12188
12189 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12190
12191 * buffer.c (Fbuffer_swap_text): New function.
12192 (syms_of_buffer): Defsubr it.
12193
12194 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
12195
12196 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12197
12198 2008-02-25 Jason Rumney <jasonr@gnu.org>
12199
12200 * w32font.c (w32font_draw): Draw one character at a time when padding.
12201
12202 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12203
12204 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12205 Handle a nil arg. Use run_window_configuration_change_hook.
12206 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12207 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12208 Use run_window_configuration_change_hook.
12209
12210 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12211
12212 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12213 1-pixel width.
12214
12215 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12216
12217 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12218 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12219 if the glyph in the font is zero pixel with.
12220
12221 * dispextern.h (struct glyph_string): New member padding_p.
12222
12223 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12224
12225 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12226
12227 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12228
12229 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12230
12231 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12232
12233 2008-02-25 Jason Rumney <jasonr@gnu.org>
12234
12235 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12236
12237 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12238
12239 Allow fine-grained image-cache flushing.
12240 * dispextern.h (struct image): Add `dependencies' field.
12241 (clear_image_caches): Change arg to Lisp_Object.
12242 * image.c (make_image): Initialize `dependencies' field.
12243 (clear_image_cache): Change arg to allow fine-grained flushing.
12244 Perform the flush even if image-cache-eviction-delay is nil.
12245 (clear_image_caches): Change arg to Lisp_Object.
12246 (Fclear_image_cache): Expand meaning of the argument.
12247 (mark_image): Mark `dependencies' field.
12248 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12249 (lface_hash): Use XHASH rather than XFASTINT.
12250 (face_at_buffer_position): Fix int -> EMACS_INT position.
12251 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12252 (select_frame_for_redisplay): Remove code duplication.
12253 (redisplay_internal): Adapt arg to call to clear_image_caches.
12254
12255 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12256
12257 * s/vms4-0.h:
12258 * s/vms4-2.h:
12259 * s/vms4-4.h:
12260 * s/vms5-5.h: Remove, unused.
12261
12262 * s/irix5-2.h:
12263 * s/irix6-0.h:
12264 * s/riscos5.h:
12265 * s/mach-bsd4-3.h:
12266 * m/mips4.h: Remove files for obsolete systems.
12267
12268 * Makefile.in:
12269 * filelock.c:
12270 * unexmips.c:
12271 * m/hp9000s300.h:
12272 * m/iris4d.h:
12273 * s/aix3-1.h:
12274 * s/hpux.h:
12275 * s/msdos.h:
12276 * s/usg5-0.h:
12277 * s/usg5-2-2.h:
12278 * s/usg5-2.h:
12279 * s/usg5-3.h: Remove references to obsolete variables.
12280
12281 * s/irix5-0.h: Remove, move all the contents ...
12282 * s/irix6-5.h: ... here. Simplify.
12283 * config.in: Regenerate.
12284
12285 2008-02-24 Jason Rumney <jasonr@gnu.org>
12286
12287 * w32term.c (x_draw_glyph_string_background): Clear the background
12288 manually when cleartype is in use.
12289 (x_draw_glyph_string_foreground): Draw text transparently when
12290 cleartype is in use.
12291
12292 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12293 a font into it unless we have to.
12294
12295 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12296
12297 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12298 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
12299
12300 2008-02-18 Jason Rumney <jasonr@gnu.org>
12301
12302 * w32fns.c (Fw32_shell_execute): Encode parameters.
12303
12304 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12305
12306 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12307
12308 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
12309
12310 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12311
12312 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12313
12314 * xterm.c (x_set_offset): Don't change the gravity if
12315 CHANGE_GRAVITY is -1.
12316
12317 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
12318
12319 * fileio.c (auto_save_error_occurred): New var.
12320 (auto_save_error): Set it.
12321 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12322 error occurred.
12323
12324 2008-02-23 Eli Zaretskii <eliz@gnu.org>
12325
12326 * w32.c (globals_of_w32): Add initializations for
12327 g_b_init_get_sid_sub_authority and
12328 g_b_init_get_sid_sub_authority_count.
12329
12330 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12331
12332 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12333 (font_parse_xlfd): Use them for sanity check.
12334 (Finternal_set_font_style_table): Make sure the table is bijective.
12335
12336 Consolidate the image_cache to the terminal struct.
12337 * termhooks.h (P_): Remove redundant def.
12338 (struct terminal): New field `image_cache'.
12339 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12340 of FRAME_X_IMAGE_CACHE.
12341 * xterm.h (struct x_display_info): Remove image_cache field.
12342 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12343 * w32term.h (struct w32_display_info): Remove image_cache field.
12344 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12345 * macterm.h (struct mac_display_info): Remove image_cache field.
12346 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12347 * xterm.c (x_term_init):
12348 * w32term.c (w32_term_init):
12349 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12350 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12351 Remove declarations.
12352 (clear_image_caches, mark_image_cache): New declarations.
12353 * xfaces.c (clear_face_cache):
12354 * xdisp.c (redisplay_internal): Use clear_image_caches.
12355 * image.c (clear_image_cache): Don't check that a frame is on
12356 a window-system before checking if it shares the same cache.
12357 (clear_image_caches): New function.
12358 (Fclear_image_cache): Use it.
12359 (mark_image): Move from allo.c.
12360 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12361 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12362 (mark_object): Don't call mark_image_cache for frames.
12363 (mark_terminals): Call mark_image_cache.
12364
12365 * lisp.h (Fdelete_terminal): Declare.
12366
12367 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12368 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12369 wrong_type_argument.
12370
12371 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12372
12373 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12374 malayalam.el, and tamil.el. Add sinhala.el.
12375
12376 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12377
12378 * xterm.c (x_connection_closed): Consolidate identical tests.
12379 (x_delete_terminal): Don't crash if called via x_connection_closed.
12380
12381 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12382
12383 * xdisp.c (decode_mode_spec): New arg string.
12384 (display_mode_element): Adjust for the above change.
12385
12386 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12387
12388 * callint.c (Fcall_interactively): Use AREF.
12389
12390 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12391
12392 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12393
12394 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12395
12396 * xfns.c (Fx_show_tip): Set string to " " if empty.
12397
12398 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12399
12400 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12401 with Qt.
12402
12403 2008-02-17 Kenichi Handa <handa@m17n.org>
12404
12405 * ftfont.c (ftfont_shape): Return Lispy number.
12406
12407 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12408 for GCs.
12409 (Finternal_set_font_selection_order): Call font_update_sort_order
12410 only when enable_font_backend is set.
12411 (realize_x_face): Set face->font_info to that of default face only
12412 when enable_font_backend is set.
12413
12414 * xdisp.c (handle_composition_prop): Set it->c to the fist
12415 character of the composed region.
12416 (fill_composite_glyph_string): Set base_face->font_info to
12417 s->font_info. Get a face for ascii from base_face->ascii_face.
12418 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12419 with a face already decided.
12420 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12421 non-negative.
12422 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12423 call font_prepare_composition unconditionally.
12424
12425 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12426
12427 * xterm.h (struct x_display_info): New member font.
12428
12429 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12430 (x_set_mouse_face_gc, x_new_font): Likewise.
12431 (x_term_init): Setup display_info->font.
12432 (x_delete_terminal): Free display_info->font.
12433
12434 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12435
12436 * ftxfont.c (ftxfont_default_fid): Delete it.
12437 (ftxfont_open): Set xfont->fid to 0.
12438 (ftxfont_end_for_frame): Clear data specific to the frame and the
12439 font-driver.
12440
12441 * xftfont.c (xftfont_default_fid): Delete it.
12442 (xftfont_open): Set xfont->fid to 0.
12443
12444 * fontset.c (FONTSET_OBJLIST): New macro.
12445 (fontset_find_font): Update font-object list of the fontset.
12446 (free_realized_fontset): New function.
12447 (free_face_fontset): Call free_realized_fontset.
12448 (Ffont_info): Call font_close_object only when enable_font_backend
12449 is set.
12450
12451 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12452 [HAVE_NTGUI]: Include w32term.h.
12453 [MAC_OS]: Include macterm.ch.
12454 (font_otf_ValueRecord): Use make_number.
12455 (font_finish_cache): Fix handling of reference count.
12456 (font_clear_cache): Update num_fonts.
12457 (font_open_entity): Update smallest_char_width and
12458 smallest_font_height of the frame.
12459 (font_close_object): Update num_fonts.
12460 (Fclear_font_cache): Fix finding the target cache data.
12461
12462 2008-02-16 Glenn Morris <rgm@gnu.org>
12463
12464 * fontset.c (Finternal_char_font): Fix compilation warning.
12465
12466 2008-02-16 Eli Zaretskii <eliz@gnu.org>
12467
12468 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12469 instead of char arrays. Enlarge the size of array passed to
12470 get_token_information.
12471
12472 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12473 warnings.
12474
12475 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12476
12477 * .gdbinit: Don't set `args', it breaks gdb --args.
12478
12479 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12480
12481 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12482 within a narrowed buffer.
12483
12484 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12485
12486 * coding.c (decode_coding_object, encode_coding_object):
12487 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12488
12489 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12490
12491 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12492 hardcoding 1.
12493 (detect_coding_system):
12494 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12495 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12496 * insdel.c (insert_from_gap):
12497 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12498 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12499 (string_to_multibyte):
12500 * character.c (chars_in_text, multibyte_chars_in_text):
12501 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12502
12503 * character.h (FETCH_STRING_CHAR_ADVANCE)
12504 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12505 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12506 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12507
12508 * casefiddle.c (casify_region): Only call after-change and composition
12509 functions on the part of the region that was changed.
12510
12511 * keyboard.c (read_avail_input):
12512 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12513
12514 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12515
12516 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12517 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12518
12519 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
12520
12521 * w32menu.c (push_submenu_start, push_submenu_end)
12522 (push_left_right_boundary, push_menu_pane, push_menu_item):
12523 * keyboard.c (read_key_sequence): Don't pass args with side effects
12524 to AREF, it fails when compiling with -DENABLE_CHECKING.
12525
12526 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12527
12528 * Makefile.in (${lispsource}international/charprop.el):
12529 Delete this target.
12530
12531 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12532 emacs-unicode-2.
12533
12534 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12535
12536 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12537
12538 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12539
12540 * frame.c (Qnoelisp): New symbol.
12541 (syms_of_frame): Initialize it.
12542 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12543 harmless Elisp code, from a strong `force' from x_connection_closed.
12544 * frame.h (Qnoelisp): Declare.
12545 * xterm.c (x_connection_closed): Pass `noelisp'.
12546
12547 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12548 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12549 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12550 rather than `int' for the type of `type'.
12551
12552 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12553
12554 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12555
12556 * Makefile.in (GNUC): Remove support for gcc-1.x.
12557
12558 2008-02-10 Richard Stallman <rms@gnu.org>
12559
12560 * lisp.h (ASET): Use AREF, not ASLOT.
12561
12562 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12563
12564 * lisp.h (ASET): Check bounds.
12565
12566 2008-02-10 Glenn Morris <rgm@gnu.org>
12567
12568 * buffer.c (mode-name): Doc fix.
12569
12570 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12571
12572 * Makefile.in:
12573 * emacs.c:
12574 * gmalloc.c:
12575 * keyboard.c:
12576 * lisp.h:
12577 * m/ibm370aix.h:
12578 * process.c:
12579 * regex.c:
12580 * s/hpux.h:
12581 * sysdep.c:
12582 * sysselect.h:
12583 * systty.h:
12584 * unexec.c:
12585 * w32term.c:
12586 * xsmfns.c:
12587 * xterm.c: Remove code that deals with obsolete variables.
12588
12589 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12590
12591 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12592 nothing else needs it anymore.
12593
12594 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12595
12596 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12597 instead of unibyte_char_to_multibyte.
12598
12599 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12600
12601 * s/gnu-linux.h: Remove commented out code.
12602
12603 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12604
12605 * Makefile.in: Update what RMS says about using autoconf.
12606 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12607 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12608 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12609 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12610
12611 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12612
12613 * keymap.c (Fkey_description): Move side effect outside of macro call.
12614
12615 * xfaces.c (Finternal_make_lisp_face):
12616 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12617
12618 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12619 (syms_of_fontset): Use ASET.
12620
12621 * fns.c (concat): Move side effect outside of macro call.
12622 (hash_clear): Use ASET.
12623
12624 2008-02-08 Richard Stallman <rms@gnu.org>
12625
12626 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12627 If FORCE, and frame has a surrogate minibuffer for another frame,
12628 delete the other frame first.
12629
12630 2008-02-07 Timo Savola <timo.savola@iki.fi>
12631
12632 * xterm.c (x_detect_focus_change): Handle embed client message.
12633 (handle_one_xevent): Ditto.
12634 (handle_one_xevent): If embedded and we get a button press/release,
12635 request focus.
12636 (xembed_set_info, xembed_send_message): New functions.
12637 (x_make_frame_visible): Call xembed_set_info if embedded.
12638 (x_make_frame_invisible): Call xembed_set_info if embedded.
12639 (x_term_init): Initialize Xatom_XEMBED.
12640 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12641 (x_iconify_frame): Ditto.
12642
12643 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12644 (enum xembed_info, enum xembed_message, enum xembed_focus)
12645 (enum xembed_modifier, enum xembed_accelerator): New.
12646 (xembed_set_info, xembed_send_message): Declare.
12647 (FRAME_X_EMBEDDED_P): New.
12648
12649 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12650 gtk_plug_new.
12651
12652 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12653 window ID of a frame.
12654 (x_window): Reparent frame if embedded.
12655 (Fx_create_frame): Don't set border width if embedded.
12656
12657 * emacs.c (USAGE3): Add --parent-id.
12658 (standard_args): Ditto.
12659
12660 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12661
12662 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12663
12664 2008-02-07 Jim Meyering <meyering@redhat.com>
12665
12666 Use "do...while (0)", not "if (1)...else" in macro definitions.
12667 The latter provokes a warning from gcc about the empty else, when
12668 followed by ";". Also, without that trailing semicolon, it would
12669 silently swallow up any following statement.
12670 * syntax.h (SETUP_SYNTAX_TABLE)
12671 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12672 * buffer.h (DECODE_POSITION): Likewise.
12673 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12674 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12675 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12676 (FETCH_CHAR_ADVANCE): Likewise.
12677 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12678
12679 2008-02-07 Jim Meyering <meyering@redhat.com>
12680
12681 * lread.c [lint]: Don't include <sys/inode.h>.
12682
12683 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12684
12685 * xselect.c (x_handle_dnd_message):
12686 * xmenu.c (digest_single_submenu, xmenu_show):
12687 * xdisp.c (with_echo_area_buffer_unwind_data)
12688 (format_mode_line_unwind_data, unwind_format_mode_line)
12689 (display_menu_bar):
12690 * eval.c (Ffetch_bytecode):
12691 * doc.c (store_function_docstring):
12692 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12693 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12694 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12695
12696 2008-02-07 Kenichi Handa <handa@m17n.org>
12697
12698 * ftxfont.c (ftxfont_open): Don't set
12699 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12700
12701 * ftfont.c (ftfont_open): Fix previous change.
12702
12703 2008-02-06 Jason Rumney <jasonr@gnu.org>
12704
12705 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12706 Use cached metrics for ASCII characters.
12707 (w32font_open_internal): Don't set font's owning_frame.
12708 Cache metrics for ASCII characters.
12709
12710 * w32font.h (struct w32font_info): Add ascii_metrics.
12711 Remove owning_frame.
12712
12713 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12714
12715 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12716 to negative value.
12717
12718 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12719
12720 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12721
12722 * charset.c (syms_of_charset): Set QCtest and Qeq.
12723
12724 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12725
12726 * process.c (Fstart_process):
12727 * callproc.c (Fcall_process): Handle the case where
12728 Funhandled_file_name_directory returns nil.
12729
12730 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12731 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12732 * font.c (check_gstring): Use them and AREF to access the vector before
12733 we know it's really a gstring.
12734 (Ffont_shape_text): Fix typo.
12735 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
12736
12737 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12738 Declare.
12739
12740 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12741
12742 2008-02-05 Jason Rumney <jasonr@gnu.org>
12743
12744 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12745 Set smallest_font_height and smallest_char_width in display info.
12746
12747 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12748
12749 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12750
12751 2008-02-05 Miles Bader <miles@gnu.org>
12752
12753 * xfaces.c (get_lface_attributes, merge_named_face)
12754 (lookup_named_face, lookup_derived_face, realize_named_face):
12755 Revert 2008-02-01 change by cyd@stupidchicken.com.
12756
12757 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12758
12759 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12760 fallback fonts.
12761 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12762
12763 2008-02-04 Jason Rumney <jasonr@gnu.org>
12764
12765 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12766 set full_name.
12767 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12768
12769 2008-02-03 Jason Rumney <jasonr@gnu.org>
12770
12771 * makefile.w32-in (OBJ1): Include font.o here.
12772 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12773
12774 2008-02-02 Jason Rumney <jasonr@gnu.org>
12775
12776 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12777
12778 2008-02-01 Jason Rumney <jasonr@gnu.org>
12779
12780 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12781
12782 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12783
12784 2008-02-01 Andreas Schwab <schwab@suse.de>
12785
12786 * Makefile.in (shortlisp, lisp): Update for rename of
12787 ../lisp/language/myanmar.el.
12788
12789 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
12790
12791 * xfaces.c (get_lface_attributes): Delete function.
12792 (merge_named_face, lookup_named_face, lookup_derived_face)
12793 (realize_named_face): Call lface_from_face_name directly, and use
12794 the fact that merge_face_vectors does not alter its FROM argument.
12795
12796 2008-02-01 Jason Rumney <jasonr@gnu.org>
12797
12798 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12799 input in the default locale. Handle non-Unicode multibyte input.
12800
12801 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12802
12803 * fontset.c (reorder_font_vector): Exclude nil elements from the
12804 font group. Don't try multiple fonts.
12805 (fontset_font): Adjust for the above change.
12806 (Finternal_char_font): Return nil if the found font doesn't
12807 contain the character ch.
12808
12809 * Makefile.in (lisp, shortlisp): Add cham.el.
12810
12811 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12812
12813 * font.h (FONTP): Make it return 1 also for a font-object.
12814
12815 * .gdbinit (xfontset): New function.
12816
12817 * font.c (font_find_for_lface): Check if the character C is
12818 supported or not only for the first font.
12819
12820 * fontset.c (reorder_font_vector): Fix typo.
12821 (fontset_find_font): Don't add a font-spec specifying a script.
12822 Use 0 (not Qt) for the indication of empty font-group. Change the
12823 format of RFONT-DEF. Return Qt if no font in the font-group
12824 support the character.
12825 (fontset_font): Adjust for the above change. If no font was
12826 found the character, remember that.
12827 (face_for_char): Adjust for the change of RFONT-DEF.
12828 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12829 no font for the target.
12830 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12831
12832 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12833
12834 * font.c (font_load_for_face): Handle the case that the font in
12835 face->lface is a string.
12836
12837 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12838
12839 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12840
12841 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12842
12843 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12844 Fix previous change. If the frame is not on a window system,
12845 signal an error.
12846
12847 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12848
12849 * coding.c (decode_coding_object, encode_coding_object): Adjust
12850 marker positions after conversion.
12851
12852 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12853
12854 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12855
12856 * font.c (font_find_for_lface): Fix the handling of the return
12857 value of font_has_char.
12858 (Ffont_shape_text): Fix previous change.
12859
12860 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12861 (fontset_ref_and_range): Delete it.
12862 (fontset_find_font): Call char_table_ref_and_range instead of
12863 FONTSET_REF_AND_RANGE.
12864 (make_fontset): Don't setup font groups of Latin here.
12865 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12866 (new_fontset_from_font): Make the specified font the default for
12867 all Latin characters.
12868
12869 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12870
12871 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12872 is on a window system before accessing the fontset of the frame.
12873
12874 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12875
12876 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12877
12878 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12879 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12880
12881 * font.c (Ffont_shape_text): If the font driver doesn't have a
12882 shaper function, make zero-width glyphs to have at least one-pixel
12883 width. Fix setting of `to' field of glyphs.
12884
12885 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12886
12887 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12888 glyphs.
12889
12890 * font.h (struct font_driver): Improve docstring of member `shape'.
12891
12892 2008-02-01 Kenichi Handa <handa@m17n.org>
12893
12894 * composite.c (syms_of_composite): Fix docstring of
12895 auto-composition-function.
12896
12897 * font.h (LGLYPH_SIZE): New macro.
12898
12899 * font.c (Ffont_fill_gstring): Stop filling when a character not
12900 supported by the font is found.
12901 (Ffont_shape_text): When a shape callback function returns nil,
12902 try at most two more times with larger gstring.
12903 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12904
12905 * xdisp.c (handle_auto_composed_prop): Change the argument to
12906 auto-composition-function.
12907
12908 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12909 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12910 Lispy glyph and store it in the lgstring.
12911
12912 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12913
12914 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12915
12916 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12917
12918 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12919
12920 * fontset.c (Vfont_encoding_charset_alist): New variable.
12921 (syms_of_fontset): DEFVAR it.
12922 (reorder_font_vector, fontset_find_font): Optimize for the case of
12923 no need of reordering.
12924 (face_for_char): Map the charset property by
12925 Vfont_encoding_charset_alist.
12926
12927 2008-02-01 Jason Rumney <jasonr@gnu.org>
12928
12929 * w32font.c (logfonts_match): Don't check adstyle here.
12930 (font_matches_spec): Check here against physical font instead.
12931 (add_font_entity_to_list): Avoid some substitutions.
12932
12933 * font.c (font_parse_fcname): Default weight and slant to normal.
12934 (font_score): Prefer normal fonts if weight or slant unspecified.
12935 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12936 match freetype scores.
12937
12938 2008-02-01 Jason Rumney <jasonr@gnu.org>
12939
12940 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12941 font, as it may have been deleted.
12942 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12943 most common hyphenless variation.
12944 (logfonts_match): Check generic family.
12945 (font_matches_spec): Don't check generic family here.
12946 (fill_in_logfont): Set generic family based on adstyle.
12947
12948 * w32font.h (w32font_get_cache): Update declaration.
12949
12950 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12951
12952 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12953
12954 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12955 If none of the new drivers are available, call font_update_drivers
12956 with the old drivers.
12957
12958 * w32font.c (w32font_get_cache): Adjust the argument type.
12959
12960 * xfont.c (xfont_get_cache): Adjust the argument type.
12961
12962 * font.h (struct font_driver): Change argument type of get_cache.
12963
12964 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12965
12966 * font.c (Ffont_get): Fix arguments to Fassoc.
12967 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12968 (font_clear_cache): New function.
12969 (font_list_entities, font_matching_entity): Use font_get_cache.
12970 (font_update_drivers): Call font_clear_cache when finishing a driver.
12971
12972 * fontset.c (fontset_find_font): Fix previous change.
12973
12974 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12975
12976 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12977 dpyinfo->font_table.
12978 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12979 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12980
12981 * font.c (font_at): Handle the case that the arg C is negative.
12982 Handle the unibyte case.
12983 (Ffont_at): Call font_at with the arg C -1.
12984
12985 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12986 the position here, and call font_at with the arg C -1.
12987 Don't check the range of the existing composition at the point.
12988
12989 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12990
12991 * fontset.c (fontset_add): New args charset_id and family.
12992 Change caller.
12993 (load_font_get_repertory, fontset_find_font): Assume that
12994 font_spec is always a font-spec object.
12995 (Fset_fontset_font): Always store a font-spec object in a fontset.
12996
12997 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12998 instead of get_property_and_range.
12999
13000 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13001
13002 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13003 (xftfont_open): Don't keep locking face.
13004 (xftfont_close): Don't unlock face.
13005 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13006
13007 * fontset.c (fontset_find_font): Don't prefer a font of
13008 supplementary charset.
13009
13010 2008-02-01 Kenichi Handa <handa@m17n.org>
13011
13012 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13013 script, langsys_tag to langsys, new member script.
13014 (OTF_TAG_STR): Terminate by '\0'.
13015 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
13016 listing to the script specified in that property. Fix arg to
13017 OTF_check_features.
13018
13019 2008-02-01 Jason Rumney <jasonr@gnu.org>
13020
13021 * w32font.h: New file.
13022
13023 * w32font.c: Include it.
13024 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13025 (w32font_open): Set owning_frame.
13026 (w32font_text_extents): Use owning_frame.
13027 (struct font_callback_data): Add opentype_only field.
13028 (add_font_entity_to_list): Use it to filter fonts.
13029 Don't check against full name.
13030 (w32font_list_internal): New function.
13031 (w32font_list): Use it.
13032 (w32font_match_internal): New function.
13033 (w32font_match): Use it.
13034 (w32font_open_internal): New function.
13035 (w32font_open): Use it.
13036 (w32font_get_cache, w32font_close, w32font_has_char)
13037 (w32font_encode_char, w32font_text_extents, w32font_draw):
13038 Make non-static.
13039
13040 * makefile.w32-in (w32font.o): Depend on w32font.h.
13041
13042 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13043
13044 * charset.c (Fdefine_charset_internal): Record a supplementary
13045 charset at the tail of Vcharset_order_list.
13046
13047 * font.c (Ffont_shape_text): Fix the return value.
13048
13049 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13050
13051 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13052
13053 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13054
13055 * ftfont.c (struct OpenTypeSpec): New struct.
13056 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13057 (ftfont_get_open_type_spec): New function.
13058 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13059
13060 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13061
13062 2008-02-01 Jason Rumney <jasonr@gnu.org>
13063
13064 * w32font.c (add_font_entity_to_list): Compare only the beginning
13065 of full name.
13066
13067 2008-02-01 Kenichi Handa <handa@m17n.org>
13068
13069 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13070 Never return HANDLED_RECOMPUTE_PROPS.
13071
13072 2008-02-01 Kenichi Handa <handa@m17n.org>
13073
13074 * font.c (font_gstring_produce): Delete it.
13075
13076 * composite.h (COMPOSITION_METHOD):
13077 Handle COMPOSITION_WITH_GLYPH_STRING.
13078
13079 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13080
13081 * xfont.c (Qx): Delete.
13082 (syms_of_xfont): Don't initialize Qx.
13083
13084 * composite.h (enum composition_method):
13085 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13086
13087 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13088
13089 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13090 (choose_face_font): Accept new form of font-spec.
13091
13092 * frame.h (font_driver_list): Declare it unconditionally.
13093 (struct frame): Define members font_driver_list and font_data_list
13094 unconditionally.
13095
13096 * fontset.c: Include "font.h" unconditionally.
13097 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13098 (Fset_fontset_font): Accept a font-spec object.
13099
13100 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13101 PIXEL_SIZE part a wild card.
13102
13103 * dispextern.h (struct glyph_string): Define members clip and
13104 num_clips unconditionally.
13105 (struct face): Define members font_info and extra unconditionally.
13106
13107 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13108 ftfont_info only when HAVE_LIBOTF is defined.
13109
13110 2008-02-01 Andreas Schwab <schwab@suse.de>
13111
13112 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13113 and end.
13114
13115 2008-02-01 Jason Rumney <jasonr@gnu.org>
13116
13117 * w32font.c (w32font_driver): Add new fields.
13118
13119 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13120
13121 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13122 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13123 (LIBES): Add @M17N_FLT_CFLAGS@.
13124
13125 * composite.c (compose_text): Don't treat the new style
13126 composition specially.
13127
13128 * emacs.c (main): Call syms_of_font unconditionally.
13129
13130 * font.h (FONT_ENTITY_NOT_LOADABLE)
13131 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13132 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13133 (struct font_driver): New member shape.
13134 (font_registry_charsets): Extern it.
13135 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13136 (font_otf_capability, font_drive_otf): Delete their externs.
13137
13138 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13139 (font_charset_alist, font_registry_charsets): Move from xfont.c
13140 and rename.
13141 (font_prop_validate_otf): New function.
13142 (font_property_table): Register it for QCotf.
13143 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13144 (font_drive_otf): Delete.
13145 (font_prepare_composition): New arg F. Adjust for the change of
13146 lispy gstring.
13147 (font_find_for_lface): New arg C.
13148 (font_load_for_face): Adjust for the change of font_find_for_lface.
13149 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13150 lispy gstring.
13151 (Ffont_shape_text): New function.
13152 (Fopen_font): If the font size is not given, use 12-pixel.
13153 (Ffont_at): New arg STRING.
13154 (syms_of_font): Initalize font_charset_alist.
13155 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13156 conditionally.
13157
13158 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13159 fonts of the same font-spec. Change the format of RFONT-DEF.
13160 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13161 Adjust for the change of RFONT-DEF.
13162 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13163
13164 * ftfont.h: New file.
13165
13166 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13167 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13168 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13169 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13170 font_otf_capability and font_drive_otf, set ftfont_shape.
13171 (ftfont_list): Adjust for the change of :otf property value.
13172 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13173 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13174 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13175 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13176 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13177 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13178
13179 * w32term.c (x_draw_composite_glyph_string_foreground):
13180 Adjust for the change of lispy gstring.
13181
13182 * xdisp.c (handle_composition_prop): Adjust for the change of
13183 lispy gstring. Call a function for auto-composition with the
13184 third arg it->window.
13185 (fill_composite_glyph_string): Adjust for the change of lispy string.
13186 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13187
13188 * xfaces.c (set_font_frame_param): Adjust for the change of
13189 font_find_for_lface.
13190
13191 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13192 (xfont_registry_charsets): Likewise. Change caller.
13193 (syms_of_xfont): Don't handle x_font_charset_alist.
13194
13195 * xftfont.c: Include "ftfont.h".
13196 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13197 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13198 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13199 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13200 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13201 Set xftfont_driver.shape to xftfont_shape.
13202
13203 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13204 the change of lispy gstring.
13205
13206 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13207
13208 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13209
13210 2008-02-01 Jason Rumney <jasonr@gnu.org>
13211
13212 * w32font.c (w32font_draw): Fill background manually.
13213
13214 2008-02-01 Jason Rumney <jasonr@gnu.org>
13215
13216 * font.c (Qfontp): Remove unused symbol.
13217 (QCantialias): New symbol.
13218 (syms_of_font): Define it.
13219 (font_property_table): Set a validator for QCantialias.
13220
13221 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13222 Define if not already.
13223 (QCfamily): Share with xfaces.c.
13224 (Qstandard, Qsubpixel, Qnatural): New symbols.
13225 (syms_of_w32font): Define them. Don't define QCfamily here.
13226 (w32_antialias_type, lispy_antialias_type): New functions.
13227 (w32_enumfont_pattern_entity): New arg requested_font.
13228 Set antialias parameter if non-default was requested.
13229 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13230
13231 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13232
13233 * lread.c (read1): Undo the previous change.
13234
13235 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13236
13237 * frame.c (Fdelete_frame): Call font_update_drivers only when
13238 USE_FONT_BACKEND is defined.
13239
13240 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13241
13242 * font.h (struct font_bitmap): New member bits_per_pixel.
13243 (struct font_driver): New members start_for_frame and end_for_frame.
13244 (struct font_data_list): New struct.
13245 (font_put_frame_data, font_get_frame_data): Extern them.
13246
13247 * frame.h (struct frame): New member font_data_list.
13248
13249 * font.c (font_update_drivers): Call driver->start_for_frame and
13250 driver->end_for_frame at proper timings.
13251 (font_put_frame_data, font_get_frame_data): New functions.
13252 (Ffont_spec): Add usage in the docstring.
13253
13254 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13255 (Fdelete_frame): Call font_update_drivers.
13256
13257 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13258 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13259 (xftfont_get_xft_draw): New function.
13260 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13261 (xftfont_end_for_frame): New function.
13262 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13263
13264 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13265 Change argument. Cache GCs in the per-frame data.
13266 (struct ftxfont_frame_data): New struct.
13267 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13268 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13269 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13270 (ftxfont_end_for_frame): New function.
13271 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13272
13273 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13274
13275 2008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * xselect.c (Vselection_coding_system)
13278 (Vnext_selection_coding_system): Delete them.
13279 (syms_of_xselect): Don't declare selection-coding-system and
13280 next-selection-coding-system. They are declared in select.el.
13281
13282 2008-02-01 Jason Rumney <jasonr@gnu.org>
13283
13284 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13285
13286 * w32fns.c: Include imm.h.
13287 (get_composition_string_fn, get_ime_context_fn): New optional
13288 system functions.
13289 (globals_of_w32fns): Load them from imm32.dll.
13290 (ignore_ime_char): New flag.
13291 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13292 WM_IME_ENDCOMPOSITION messages.
13293
13294 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13295 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13296
13297 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13298
13299 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13300 (READCHAR_REPORT_MULTIBYTE): New macro.
13301 (readchar): New 2nd arg MULTIBYTE.
13302 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13303 Make symbol's name multibyte according to the multibyteness of the
13304 source.
13305
13306 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13307
13308 * xfaces.c (face_for_overlay_string): Call lookup_face with
13309 correct arguments (fix of synching with the trunk).
13310
13311 2008-02-01 Kenichi Handa <handa@m17n.org>
13312
13313 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13314 (font_prop_validate_non_neg, font_prop_validate_spacing):
13315 Delete argument prop_index.
13316 (font_property_table): Change arguments to validater. Change Callers.
13317 (font_lispy_object): Delete.
13318 (font_at): Use font_find_object instead fo font_lispy_object.
13319
13320 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13321
13322 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13323 and file names.
13324
13325 2008-02-01 Jason Rumney <jasonr@gnu.org>
13326
13327 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13328 (font_matches_spec): Remove debug output.
13329 (add_font_entity_to_list): Avoid using substituted fonts.
13330
13331 2008-02-01 Jason Rumney <jasonr@gnu.org>
13332
13333 * doc.c (Fsnarf_documentation):
13334 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13335
13336 2008-02-01 Miles Bader <miles@gnu.org>
13337
13338 * dispextern.h (struct glyph_row): Only define "clip" field if
13339 HAVE_WINDOW_SYSTEM is defined.
13340
13341 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13342
13343 Fix up multi-tty merge.
13344
13345 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13346 and indentation.
13347
13348 * xfaces.c (free_realized_face, clear_face_gcs):
13349 Include font_done_for_face in the input_blocked section, just in case.
13350
13351 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13352 (get_char_face_and_encoding): Undo last change and remove the *other*
13353 duplicate definition (i.e. keep the one that's better scoped and that
13354 includes code for the font-backend).
13355
13356 * terminal.c (create_terminal): Default keyboard_coding to
13357 `no-conversion' and terminal_coding to `undecided'.
13358
13359 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13360
13361 * fontset.c (free_realized_fontsets): Check that the table entry does
13362 contain a fontset before trying to compare it to `base'.
13363
13364 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13365 syms_of_charset, and syms_of_coding earlier because init_window_once
13366 now needs Vcoding_system_hash_table to be setup.
13367
13368 * coding.h (default_buffer_file_coding): Remove.
13369
13370 * coding.c (default_buffer_file_coding): Remove.
13371 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13372 than ->symbol, and use the terminal-local coding system.
13373 (syms_of_coding): Don't setup the coding-systems that are not
13374 terminal-local.
13375 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13376
13377 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13378 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13379
13380 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13381 in chartab.c and were re-added here by mistake.
13382 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13383
13384 * doc.c (Fsnarf_documentation):
13385 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13386 src to etc.
13387
13388 * ChangeLog.10: Add mistakenly removed entry.
13389
13390 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13391
13392 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13393
13394 2008-02-01 Miles Bader <miles@gnu.org>
13395
13396 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13397 Add extra args to FACE_FOR_CHAR.
13398
13399 2008-02-01 Kenichi Handa <handa@m17n.org>
13400
13401 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13402 in sequence.
13403
13404 * chartab.c (map_sub_char_table, map_char_table): If the range
13405 contains just one character, call the function with that character
13406 even if the depth is not 3.
13407
13408 2008-02-01 Jason Rumney <jasonr@gnu.org>
13409
13410 * w32font.c (w32font_text_extents): Calculate metrics for the
13411 whole string.
13412
13413 2008-02-01 Jason Rumney <jasonr@gnu.org>
13414
13415 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13416
13417 2008-02-01 Jason Rumney <jasonr@gnu.org>
13418
13419 * w32term.c (x_set_glyph_string_clipping): Use
13420 get_glyph_string_clip_rects.
13421 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13422 Adjust for the change of struct glyph_string.
13423
13424 * w32font.c (w32font_draw): Do clipping here.
13425
13426 2008-02-01 Kenichi Handa <handa@m17n.org>
13427
13428 * xftfont.c (xftfont_draw): Adjust for the change of struct
13429 glyph_string.
13430
13431 * xterm.c (x_set_glyph_string_clipping): Use
13432 get_glyph_string_clip_rects.
13433 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13434 Adjust for the change of struct glyph_string.
13435
13436 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13437 the resulting clip(s}.
13438 (expose_overlaps): Add arg r. Change callers. Set it to
13439 row->clip temporarily.
13440 (expose_window): Redraw rows overlapping the exposed area.
13441
13442 * dispextern.h (struct glyph_row): New member clip.
13443 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13444 clip_height, new member clip, and num_clips.
13445
13446 2008-02-01 Kenichi Handa <handa@m17n.org>
13447
13448 * data.c (Fchar_or_string_p): Fix docstring.
13449
13450 2008-02-01 Kenichi Handa <handa@m17n.org>
13451
13452 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13453 create a temporary XftDraw object.
13454
13455 2008-02-01 Kenichi Handa <handa@m17n.org>
13456
13457 * font.c (Ffontp): Fix docstring.
13458
13459 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13460 strong evidence of ISO-2022.
13461
13462 2008-02-01 Kenichi Handa <handa@m17n.org>
13463
13464 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13465 SYNTAX_ENTRY_FOLLOW_PARENT.
13466
13467 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13468
13469 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13470 its type.
13471 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13472 Update to the new type of weak_hash_tables and next_weak.
13473
13474 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13475 a plain C pointer to Lisp_Hash_Table.
13476
13477 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13478 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13479 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13480 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13481 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13482 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13483 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13484 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13485 (GC_EQ): Remove since they've been identical to their non-GC_
13486 alter-egos ever since the markbit was eradicated.
13487
13488 * alloc.c:
13489 * buffer.c:
13490 * buffer.h:
13491 * data.c:
13492 * fileio.c:
13493 * filelock.c:
13494 * fns.c:
13495 * frame.h:
13496 * lisp.h:
13497 * macterm.c:
13498 * print.c:
13499 * process.c:
13500 * w32fns.c:
13501 * w32menu.c:
13502 * w32term.c:
13503 * xfns.c:
13504 * xmenu.c:
13505 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13506
13507 2008-02-01 Kenichi Handa <handa@m17n.org>
13508
13509 * chartab.c (map_sub_char_table): Make it work for the top-level
13510 char-table. Fix handling of parent char-table.
13511 (map_char_table): Adjust for the above change.
13512
13513 2008-02-01 Jason Rumney <jasonr@gnu.org>
13514
13515 * w32font.c (Qgdi): Rename from Qw32.
13516
13517 2008-02-01 Jason Rumney <jasonr@gnu.org>
13518
13519 * w32bdf.c (get_quoted_string): Make function static.
13520
13521 2008-02-01 Kenichi Handa <handa@m17n.org>
13522
13523 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13524 bigger ascent and descent than those of the font, use them as
13525 font's ascent and descent.
13526
13527 2008-02-01 Kenichi Handa <handa@m17n.org>
13528
13529 * Makefile.in (${lispsource}international/charprop.el): Move this
13530 target within "#ifdef HAVE_UNIDATA" and "#endif".
13531
13532 2008-02-01 Kenichi Handa <handa@m17n.org>
13533
13534 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13535 (shortlisp): Add ../lisp/language/tai-viet.el.
13536
13537 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
13538
13539 * Makefile.in (${lispsource}international/charprop.el): Depend on
13540 temacs${EXEEXT}.
13541
13542 2008-02-01 Jason Rumney <jasonr@gnu.org>
13543
13544 * w32font.c (w32font_close): Delete the GDI font object.
13545
13546 * w32menu.c: Include character.h.
13547
13548 * w32proc.c: Likewise.
13549
13550 * w32select.c: Likewise.
13551
13552 * makefile.w32-in (w32proc.o): Depend on character.h.
13553
13554 2008-02-01 Jason Rumney <jasonr@gnu.org>
13555
13556 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13557
13558 * w32menu.c (syms_of_w32menu): Likewise.
13559
13560 * w32proc.c (syms_of_ntproc): Likewise.
13561
13562 * w32select.c (syms_of_w32select): Likewise.
13563
13564 * w32term.c (syms_of_w32term): Likewise.
13565
13566 2008-02-01 Jason Rumney <jasonr@gnu.org>
13567
13568 * w32font.c (w32font_draw): Delete brush after using it.
13569
13570 2008-02-01 Jason Rumney <jasonr@gnu.org>
13571
13572 * w32font.c (w32font_open): Don't set font_idx.
13573 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13574 to font settings.
13575 (w32font_draw): Fill background explicitly.
13576
13577 2008-02-01 Jason Rumney <jasonr@gnu.org>
13578
13579 * w32term.c (w32_initialize): Don't call w32font_initialize.
13580
13581 * w32font.c (w32font_info): Remove subranges.
13582 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13583 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13584 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13585 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13586 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13587 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13588 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13589 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13590 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13591 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13592 New symbols.
13593 (font_callback_data): New struct.
13594 (w32font_list, w32font_match): Use it.
13595 (w32font_open): Don't populate subranges.
13596 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13597 (w32font_encode_char): Always return unicode code-point as-is.
13598 (w32font_text_extents): Supply a transformation matrix to
13599 GetGlyphOutline. Never look up by glyph index. Avoid looping
13600 twice. Use unicode version of GetTexExtentPoint32 instead of
13601 glyph index version.
13602 (set_fonts_frame): Remove.
13603 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13604 set frame parameter. Use backward compatible fake foundries.
13605 Save generic family in extra slot under QCfamily. Make width slot
13606 constant. Save QCspacing value. Save list of scripts instead of
13607 binary subranges.
13608 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13609 (add_font_entity_to_list): Use font_callback_data struct. Filter
13610 unwanted fonts.
13611 (add_one_font_entity_to_list): Use font_callback_data struct.
13612 (w32_registry): Default to iso10646_1.
13613 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13614 string font registries. Don't fill in font name if it is a generic
13615 family name, fill family instead. Use spacing, family and script
13616 extra info to fill pitch, family and charset fields.
13617 (list_all_matching_fonts): Use font_callback_data struct.
13618 (unicode_range_for_char): Remove.
13619 (font_supported_scripts): New function.
13620 (w32font_initialize): Remove.
13621 (syms_of_w32font): Update which symbols are defined.
13622
13623 2008-02-01 Jason Rumney <jasonr@gnu.org>
13624
13625 * font.c (font_pixel_size): Reverse assq_no_quit args.
13626
13627 * w32term.h (FONT_WIDTH): Report max width, not average.
13628 (FONT_MAX_WIDTH): Remove.
13629 (FONT_AVG_WIDTH): New macro.
13630
13631 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13632 redefinition of FONT_WIDTH.
13633
13634 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13635 (w32_cache_char_metrics): Use FONT_WIDTH.
13636
13637 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13638
13639 2008-02-01 Jason Rumney <jasonr@gnu.org>
13640
13641 * w32font.c (w32font_open): Make lfHeight negative.
13642
13643 * w32fns.c (x_default_font_parameter): Use new style font name.
13644 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13645
13646 2008-02-01 Jason Rumney <jasonr@gnu.org>
13647
13648 * w32font.c (QCsubranges): New symbol.
13649 (w32font_open, w32font_has_char): Get subranges from subproperty
13650 of extra.
13651 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13652 (syms_of_w32font): Define :subranges symbol.
13653
13654 * font.c (font_put_extra): Expose externally.
13655
13656 * font.h (font_put_extra): Move declaration from font.c.
13657
13658 * font.c (Ffont_get): Use font driver to determine otf capability.
13659 (adjust_anchor): Check if driver defines anchor_point before using.
13660
13661 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13662 (w32font_draw): Use options.
13663 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13664 Fix detection of truetype fonts.
13665 (registry_to_w32_charset): Handle charsets other than iso8859-1
13666 expressed as lisp symbols.
13667 (w32_registry): Express charset as lisp symbol.
13668 (fill_in_logfont): Reverse pixel and point height logic.
13669 Don't set width here. Set quality to default.
13670
13671 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13672 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13673
13674 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13675 Remove redundant loop and allocation.
13676
13677 * makefile.w32-in (font.o, w32font.o): New objects.
13678 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13679 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13680
13681 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13682 STORE_XCHARB a valid l-value.
13683
13684 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13685 calculations for non-Truetype fonts.
13686 (x_draw_glyph_string): Sync with xterm.c.
13687 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13688 Remove redundant code.
13689 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13690
13691 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13692 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13693
13694 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13695 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13696
13697 * w32font.c: New file for w32 font backend.
13698
13699 2008-02-01 Kenichi Handa <handa@m17n.org>
13700
13701 * term.c: Don't include "buffer.h" twice.
13702
13703 2008-02-01 Kenichi Handa <handa@m17n.org>
13704
13705 * character.c (Funibyte_string): New function.
13706 (syms_of_character): Defsubr it.
13707
13708 2008-02-01 Jason Rumney <jasonr@gnu.org>
13709
13710 * w32term.c [USE_FONT_BACKEND]:
13711 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13712 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13713 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13714 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13715 (x_free_frame_resources): Sync with xterm.c.
13716
13717 2008-02-01 Andreas Schwab <schwab@suse.de>
13718
13719 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13720 char-table size.
13721
13722 2008-02-01 Kenichi Handa <handa@m17n.org>
13723
13724 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13725
13726 2008-02-01 Kenichi Handa <handa@m17n.org>
13727
13728 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13729 font_otf_gpos, add font_drive_otf.
13730
13731 * fontset.c (fontset_find_font): Pay attention to font size
13732 specified for a font.
13733 (reorder_font_vector): Check contents of font_def.
13734
13735 * font.c (struct otf_list): Delete it.
13736 (otf_list): Make it a lisp variable.
13737 (otf_open): Use lispy otf_list.
13738 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13739 (check_otf_features): New function.
13740 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13741 New functions.
13742 (font_drive_otf): New function merging font_otf_gsub and
13743 font_otf_gpos.
13744 (font_open_for_lface): New arg spec. Change argument order.
13745 (font_load_for_face): Adjust for the change of font_open_for_lface.
13746 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13747 Ffont_otf_gpos.
13748 (syms_of_font): Staticpro otf_list. Delete defsubr of
13749 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13750
13751 * xfaces.c (set_font_frame_param): Adjust for the change of
13752 font_open_for_lface.
13753
13754 * font.h (font_open_for_lface): Adjust prototype.
13755 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13756 member otf_drive.
13757 (font_otf_gsub, font_otf_gpos): Delete externs.
13758 (font_drive_otf): Extern it.
13759
13760 2008-02-01 Kenichi Handa <handa@m17n.org>
13761
13762 * font.c (font_at): If the window W is not on a window system,
13763 return Qnil.
13764
13765 * coding.c (produce_chars, encode_coding): Don't call
13766 insert_from_gap if no characters to produce.
13767
13768 2008-02-01 Kenichi Handa <handa@m17n.org>
13769
13770 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13771 Fclear_face_cache.
13772
13773 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13774
13775 2008-02-01 Miles Bader <miles@gnu.org>
13776
13777 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13778 Parse "--disable-font-backend" option.
13779 (standard_args): Add "--disable-font-backend" option.
13780
13781 2008-02-01 Kenichi Handa <handa@m17n.org>
13782
13783 * fontset.c (fontset_find_font): New function.
13784 (fontset_font): Use fontset_find_font.
13785 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13786 Register the specified font for all Latin characters.
13787 (new_fontset_from_font): Register the specified font for all Latin
13788 characters.
13789 (dump_fontset): For a realized fontset, include the base fontset
13790 name in the returned vector.
13791
13792 2008-02-01 Kenichi Handa <handa@m17n.org>
13793
13794 * character.h (CHAR_STRING): Cast C to unsigned on calling
13795 char_string.
13796
13797 * character.c (char_string): Type of arg C changed to unsigned.
13798 Signal an error if C is an invalid character code.
13799
13800 * editfns.c (general_insert_function, Fchar_to_string):
13801 Use CHARACTERP, not INTEGERP.
13802
13803 2008-02-01 Kenichi Handa <handa@m17n.org>
13804
13805 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13806 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13807
13808 * regex.c (analyse_first): Fix for multibyte characters in "case
13809 charset:" and "case categoryspec:".
13810
13811 2008-02-01 Andreas Schwab <schwab@suse.de>
13812
13813 * Makefile.in (LIBES): Move standard libraries to the end.
13814
13815 2008-02-01 Kenichi Handa <handa@m17n.org>
13816
13817 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13818 nonzero, don't shrink the buffer nextb.
13819
13820 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13821
13822 * coding.c (coding_alloc_by_making_gap): New arg offset.
13823 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13824 offset.
13825 (decode_coding_iso_2022): Update coding->safe_charsets.
13826 (decode_coding_gap): Temporarily set
13827 current_buffer->text->inhibit_shrinking to 1.
13828
13829 2008-02-01 Kenichi Handa <handa@m17n.org>
13830
13831 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13832 indexing into elements of s->cmp and s->char2b.
13833
13834 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
13835
13836 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13837
13838 2008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13841 target_multibyte instead of multibyte.
13842 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13843 (bcmp_translate): Change the argument name from multibyte to
13844 target_multibyte.
13845
13846 2008-02-01 Kenichi Handa <handa@m17n.org>
13847
13848 These changes are to compile a regexp into a pattern that can be
13849 used both for multibyte and unibyte targets.
13850
13851 * Makefile.in (search.o): Depend on charset.h.
13852
13853 * character.c (multibyte_char_to_unibyte_safe): New function.
13854
13855 * search.c: Include "charset.h".
13856 (compile_pattern_1): Delete argument multibyte. Don't set
13857 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13858 (compile_pattern): Don't compare cp->buf.target_multibyte.
13859 Compare cp->buf.charset_unibyte.
13860 (compile_pattern): Set cp->buf.target_multibyte.
13861
13862 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13863
13864 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13865
13866 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13867 multibyte. Change callers.
13868 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13869 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13870 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13871 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13872 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13873 (regex_compile): Make the compiled pattern usable both for
13874 multibyte and unibyte targets.
13875 (analyse_first): Make the fastmap usable both for multibyte and
13876 unibyte targets.
13877 (TRANSLATE_VIA_MULTIBYTE): Delete.
13878 (re_match_2_internal): Pay attention to the case that the
13879 multibyteness of bufp and target may be different.
13880
13881 2008-02-01 Kenichi Handa <handa@m17n.org>
13882
13883 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13884 empty box occupy at least one column width.
13885
13886 2008-02-01 Miles Bader <miles@gnu.org>
13887
13888 * Makefile.in: Remove redundant HAVE_XFT clause.
13889
13890 2008-02-01 Kenichi Handa <handa@m17n.org>
13891
13892 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13893
13894 2008-02-01 Kenichi Handa <handa@m17n.org>
13895
13896 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13897 being nil.
13898
13899 2008-02-01 Kenichi Handa <handa@m17n.org>
13900
13901 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13902
13903 2008-02-01 Kenichi Handa <handa@m17n.org>
13904
13905 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13906
13907 2008-02-01 Kenichi Handa <handa@m17n.org>
13908
13909 * search.c (simple_search): Fix previous change.
13910
13911 2008-02-01 Kenichi Handa <handa@m17n.org>
13912
13913 * xftfont.c (ftfont_font_format): Extern declaration.
13914
13915 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13916
13917 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13918 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13919
13920 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13921 (ftfont_font_format): Fix previous change.
13922
13923 * font.h (Ffont_xlfd_name): EXFUN it.
13924
13925 * font.c (font_parse_xlfd): Fix the array size of `f'.
13926 (register_font_driver): Use EQ to compare driver->type.
13927
13928 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13929 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13930 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13931
13932 2008-02-01 Kenichi Handa <handa@m17n.org>
13933
13934 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13935 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13936
13937 2008-02-01 Kenichi Handa <handa@m17n.org>
13938
13939 * xfont.c (xfont_open): Set font->format.
13940
13941 * xftfont.c (xftfont_open): Set font->format.
13942
13943 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13944 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13945 (ftfont_open): Set font->format.
13946 (ftfont_font_format): New function.
13947
13948 * font.h (struct font): New member format.
13949
13950 * font.c (Qopentype): New variable.
13951 (syms_of_font): Defsym it.
13952 (Fquery_font): Change the format of the last element of the return
13953 value.
13954
13955 2008-02-01 Kenichi Handa <handa@m17n.org>
13956
13957 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13958 last resort.
13959
13960 2008-02-01 Kenichi Handa <handa@m17n.org>
13961
13962 * coding.c (detect_coding_charset): Fix detection of multi-byte
13963 charset.
13964
13965 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13966
13967 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13968
13969 2008-02-01 Kenichi Handa <handa@m17n.org>
13970
13971 * xdisp.c (get_next_display_element): Set it->face_id for the
13972 first component of a composition.
13973 (x_produce_glyphs): Check if the font is changed or not for composition.
13974
13975 2008-02-01 Kenichi Handa <handa@m17n.org>
13976
13977 * fontset.c (Qlatin): New variable.
13978 (syms_of_fontset): Define it as a lisp symbol.
13979 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13980
13981 2008-02-01 Kenichi Handa <handa@m17n.org>
13982
13983 * font.c (font_unparse_fcname): Pay attention to the case that
13984 some of font property is a null string.
13985
13986 2008-02-01 Kenichi Handa <handa@m17n.org>
13987
13988 * term.c: Include "composite.h".
13989 (encode_terminal_code): Output all components of composition.
13990 Check the size of encode_terminal_src.
13991 (produce_glyphs): For composition, call produce_composite_glyph.
13992 (append_composite_glyph, produce_composite_glyph): New functions.
13993
13994 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13995 is not found, get font_info from the current ascii face.
13996
13997 2008-02-01 Kenichi Handa <handa@m17n.org>
13998
13999 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14000 buffer-file-name to Qnil before calling insert_from_buffer.
14001
14002 * font.c (font_unparse_fcname): Pay attention to the case that
14003 foundry is a null string.
14004
14005 2008-02-01 Kenichi Handa <handa@m17n.org>
14006
14007 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14008
14009 * font.c (Qunicode_sip): New variable.
14010 (syms_of_font): Declare it as a Lisp symbol.
14011
14012 * font.h (Qunicode_sip): Extern it.
14013
14014 2008-02-01 Kenichi Handa <handa@m17n.org>
14015
14016 * composite.c (get_composition_id): Pay attention to TAB component.
14017
14018 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14019 TAB. Adjust for the change of s->char2b which always points to
14020 the first element of allocated memory.
14021
14022 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14023
14024 * xdisp.c (handle_composition_prop): Set it->c to the first
14025 non-TAB component.
14026 (fill_composite_glyph_string): Change argument.
14027 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14028 (x_produce_glyphs): Fix handling of left/right padding.
14029
14030 2008-02-01 Kenichi Handa <handa@m17n.org>
14031
14032 * coding.c (detect_coding_system): Fix for handling off
14033 inhibit_iso_escape_detection. Fix for the case that no coding
14034 system is defined for a specific coding category.
14035
14036 2008-02-01 Kenichi Handa <handa@m17n.org>
14037
14038 * font.c (font_matching_entity): Delete unused local var.
14039
14040 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14041 opening a font.
14042
14043 * fileio.c (Finsert_file_contents): On recovering a file, assume
14044 Unix-like eol.
14045 (choose_write_coding_system): On auto-saving a file, force
14046 Unix-like eol.
14047
14048 * coding.c (setup_coding_system): Fix setting of
14049 coding->common_flags based on eol_type.
14050 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14051 inherit from it.
14052
14053 2008-02-01 Kenichi Handa <handa@m17n.org>
14054
14055 * alloc.c (NSTATICS): Increas to 0x600.
14056
14057 2008-02-01 Kenichi Handa <handa@m17n.org>
14058
14059 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14060 (ftfont_list): Don't check :name property.
14061 (ftfont_match): New function.
14062 (ftfont_pattern_entity): If the pattern doesn't contain
14063 FC_SPACING, don't assume FC_MONO.
14064
14065 * font.h (struct font_driver): New member `match'.
14066 (font_update_drivers): Adjust prototype.
14067
14068 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14069 property of FONT.
14070 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14071 them unconditionally.
14072 (font_matching_entity): New function.
14073 (font_open_by_name): Try font_matching_entity if exact match is
14074 not found.
14075 (font_update_drivers): Delete the arg FONT. Return a list of
14076 actually used backends. Don't free faces, font caches here.
14077 Don't store data in frame parameters. Don't call x_set_font.
14078 (Ffont_spec): Store :name property as is.
14079 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14080 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14081 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14082 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14083 Call font->driver->otf_gsub instead of font_otf_gsub.
14084
14085 * frame.c (x_set_font_backend): Do more works that were done in
14086 font_update_drivers before.
14087
14088 * xfont.c (xfont_match): New function.
14089 (xfont_driver): Set xfont_driver.match to xfont_match.
14090 (xfont_draw): Set font in GC if necessary.
14091
14092 * ftxfont.c (ftxfont_match): New function.
14093 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14094
14095 * xftfont.c (xftfont_match): New function.
14096 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14097
14098 2008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * font.h (struct font): New member scalable.
14101 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14102 (font_otf_gsub): Adjust prototype.
14103
14104 * font.c (font_otf_capability): Fix handling of the default langsys.
14105 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14106 Check the contents of SPEC.
14107 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14108 (check_gstring): New function.
14109 (REPLACEMENT_CHARACTER): New macro.
14110 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14111 glyph codes of GSTRING.
14112 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14113 (font_prepare_composition): Set cmp->glyph_len.
14114 (font_open_entity): Set font->scalable.
14115 (Ffont_get): Handle :otf property.
14116 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14117 functions.
14118 (Fquery_font): Use font->font.full_name.
14119 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14120 Sfont_otf_alternates.
14121
14122 * ftfont.c (ftfont_open): Set font->font.full_name and
14123 font->font.name properly. Fix calculation of font->font.height
14124 and font->min_width.
14125
14126 * ftxfont.c (ftxfont_create_gcs): New function.
14127 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14128 (ftxfont_draw_backgrond): Fix filling region.
14129 (ftxfont_default_fid): New function.
14130 (ftxfont_open): Set xfont->fid to the return value of
14131 ftxfont_default_fid.
14132 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14133 (ftxfont_done_face): Free only GCs that are created by
14134 ftxfont_create_gcs.
14135 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14136
14137 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14138 Clip to src->width, etc (not src->clip_XXX).
14139
14140 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14141 FontBackend frame parameter.
14142
14143 2008-02-01 Kenichi Handa <handa@m17n.org>
14144
14145 * font.h (struct font_driver_list): New member `on'.
14146 (Fclear_font_cache): EXFUN it.
14147 (font_update_drivers): Extern it.
14148
14149 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14150 (font_list_entities): Check driver_list->on.
14151 (register_font_driver): Initalize `on' member to 0.
14152 (font_update_drivers): New function.
14153 (Fclear_font_cache): Check driver_list->on.
14154
14155 * frame.h (Qfont_backend): Extern it.
14156 (x_set_font_backend): Extern it.
14157
14158 * frame.c (Qfont_backend): New variable.
14159 (frame_parms): New element for font-backend.
14160 (x_set_font_backend): New function.
14161
14162 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14163 FontBackend frame parameter.
14164 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14165 x_set_font_backend.
14166
14167 * xfont.c (xfont_list): Don't try listing by :name property if the
14168 name is not for XLFD.
14169
14170 2008-02-01 Kenichi Handa <handa@m17n.org>
14171
14172 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14173 (LGLYPH_SET_TO): New macros.
14174 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14175 element of G is vector or not.
14176 (font_at): Extern it.
14177
14178 * font.c: Include window.h.
14179 (font_lispy_object): New function.
14180 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14181 end of valid glyph.
14182 (font_close_object): Fix getting (struct font *).
14183 (font_at): New function.
14184 (Ffont_get): If FONT is a font-object, get entity from it.
14185 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14186 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14187 range check.
14188 (Ffont_at): New function.
14189 (syms_of_font): Defsubr Sfont_at.
14190
14191 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14192 before the entry for Qcomposition.
14193 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14194 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14195 the font in gstring.
14196 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14197 LGLYPH_FORM (g) to detect the end of valid glyph.
14198 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14199 we are composing with gstring.
14200
14201 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14202 Check if adjustment is vector or not.
14203
14204 * Makefile.in (font.o): Make it depends on window.h.
14205
14206 2008-02-01 Kenichi Handa <handa@m17n.org>
14207
14208 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14209 adjustment is vector or not.
14210
14211 2008-02-01 Miles Bader <miles@gnu.org>
14212
14213 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14214
14215 2008-02-01 Kenichi Handa <handa@m17n.org>
14216
14217 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14218 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14219 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14220
14221 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14222 (DEVICE_DELTA): Fix typo.
14223 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14224 LGLYPH format.
14225
14226 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14227 the change of LGLYPH format.
14228
14229 2008-02-01 Kenichi Handa <handa@m17n.org>
14230
14231 * ftfont.c (ftfont_list): Fix typo.
14232 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14233
14234 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14235
14236 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14237
14238 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14239 xftface_info is non-NULL.
14240
14241 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14242
14243 * ftfont.c (ftfont_list): Move misplaced #endif.
14244
14245 2008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * ftfont.c (ftfont_list): Pay attention to the case that
14248 FC_CAPABILITY is not defined.
14249
14250 2008-02-01 Kenichi Handa <handa@m17n.org>
14251
14252 * xftfont.c (xftfont_open): Set charset related members to -1.
14253
14254 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14255 QCname.
14256 (ftfont_open): Set charset related members to -1.
14257
14258 * fontset.c (Votf_script_alist): New variable.
14259 (syms_of_fontset): Initialize it.
14260 (fontset_font): Delete unused variable.
14261
14262 * fontset.h (Votf_script_alist): Extern it.
14263
14264 * font.c (font_find_for_lface): Optimize code.
14265
14266 * font.h (font_close_object, font_merge_old_spec): Extern them.
14267
14268 2008-02-01 Kenichi Handa <handa@m17n.org>
14269
14270 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14271 (syms_of_font): Initialize them.
14272 (font_pixel_size): Allow float value in dpi.
14273 (font_prop_validate_type): Delete.
14274 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14275 Change caller.
14276 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14277 (font_prop_validate_extra): Delete.
14278 (font_prop_validate_spacing): New function.
14279 (font_property_table): Add elements for all known properties.
14280 (get_font_prop_index): Rename from check_font_prop_name. New
14281 argument FROM. Change caller.
14282 (font_prop_validate): Validate all known properties.
14283 (font_put_extra): Delete argument force. Change caller.
14284 (font_expand_wildcards): Make it static. Fix the way of shrinking
14285 the possible range.
14286 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14287 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14288 Change caller.
14289 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14290 (font_parse_fcname): Delete argument merge. Fix parsing of point
14291 size. Don't validate properties values here. Change caller.
14292 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14293 (font_open_by_name): Delete unused variable.
14294 (Ffont_spec): Likewise. Validate property values.
14295 (Ffont_match_p): New function.
14296
14297 * font.h (QCscalable): Extern it.
14298 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14299
14300 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14301
14302 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14303 (xfont_list_pattern): New function.
14304 (xfont_list): Use xfont_list_pattern.
14305
14306 2008-02-01 Kenichi Handa <handa@m17n.org>
14307
14308 * font.h (Flist_fonts): EXFUN it.
14309
14310 2008-02-01 Jason Rumney <jasonr@gnu.org>
14311
14312 * w32term.c (w32_initialize): Add back smoothing_type and
14313 smoothing_enabled definitions.
14314
14315 2008-02-01 Kenichi Handa <handa@m17n.org>
14316
14317 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14318 s->face->font on determining underline position.
14319
14320 2008-02-01 Kenichi Handa <handa@m17n.org>
14321
14322 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14323 (font_has_char): Accept font-object too.
14324 (font_find_for_lface): Try at first with a size specified in face.
14325
14326 2008-02-01 Kenichi Handa <handa@m17n.org>
14327
14328 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14329 font_open_by_name.
14330
14331 2008-02-01 Kenichi Handa <handa@m17n.org>
14332
14333 * font.h (QCspacing, QCdpi): Extern them.
14334 (enum font_spacing): New enum.
14335 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14336
14337 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14338 (QCspacing, QCdpi): New variables.
14339 (syms_of_font): Initialize them.
14340 (font_pixel_size): New function.
14341 (font_put_extra): New function.
14342 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14343 in FONT_EXTRA.
14344 (font_parse_fcname): Handle enumerated values (e.g. bold).
14345 Fix handling font size. Add QCname property that contains only
14346 unknown properties.
14347 (font_score): Change argument. Change caller. Pay attention to
14348 FONT_PIXEL_SIZE_QUANTUM.
14349 (font_sort_entites, font_list_entities, font_find_for_lface)
14350 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14351 (Ffont_spec): Add QCname property that contains only unknown properties.
14352
14353 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14354 include weight in listing pattern, instead check weight of each
14355 listed font. Don't include scalable in pattern. Pay attention to
14356 FONT_PIXEL_SIZE_QUANTUM.
14357
14358 2008-02-01 Kenichi Handa <handa@m17n.org>
14359
14360 * font.c (font_parse_fcname): Fix parsing of point-size.
14361 (font_unparse_fcname): Produce symbolic names for style properties.
14362 (font_list_entities): Handle float size correctly.
14363 (font_open_by_name): Prefer `normal' property values if the name
14364 doesn't specify them.
14365
14366 * fontset.c (Finternal_char_font): Use font_get_name, not
14367 Ffont_xlfd_name.
14368
14369 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14370 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14371 pattern. Don't force scalable.
14372
14373 * xftfont.c (xftfont_open): For generating a name, start from
14374 96-byte buffer.
14375
14376 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14377
14378 * frame.h (x_new_fontset2): Fix prototype.
14379
14380 2008-02-01 Kenichi Handa <handa@m17n.org>
14381
14382 * font.h (struct font_driver): Delete member parse_name.
14383 (font_match_p, font_get_spec, font_parse_fcname)
14384 (font_unparse_fcname): Extern them.
14385 (font_get_name): Adjust prototype.
14386
14387 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14388 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14389 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14390 unnecessary checks for weight, slant, and swidth.
14391 (font_parse_fcname): New function.
14392 (font_unparse_fcname): New function.
14393 (font_parse_name): New function.
14394 (font_match_p): New function.
14395 (font_get_name): Change return value to Lisp string.
14396 (font_get_spec): New function.
14397 (Qunspecified, Qignore_defface): Don't extern them.
14398 (font_find_for_lface): Assume that LFACE is fully specified.
14399 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14400 object, use it for FACE.
14401 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14402 driver->parse_name.
14403 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14404
14405 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14406 prototype.
14407
14408 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14409 argument F. Don't call Fnew_fontset. Instead, directly call
14410 make_fontset.
14411
14412 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14413
14414 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14415 of x_new_fontset2.
14416
14417 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14418 (Qsans__serif): New variables.
14419 (ftfont_generic_family_list): New variable.
14420 (syms_of_ftfont): Initialize the above variables.
14421 (ftfont_pattern_entity): Delete argument NAME.
14422 (ftfont_list_generic_family): New function.
14423 (ftfont_parse_name): Delete this function.
14424 (ftfont_list): Try generic family only when FcFontList found no font.
14425 (ftfont_list_family): Fix args to FcObjectSetBuild.
14426
14427 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14428 object in attrs[LFACE_FONT_INDEX].
14429 (set_lface_from_font_name): Cancel all changes for font-backend.
14430 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14431 function.
14432 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14433 font object in QCfont attribute.
14434 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14435 (realize_default_face) [USE_FONT_BACKEND]: Call
14436 set_lface_from_font_and_fontset.
14437
14438 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14439 "fixed", and signal error here if no suitable font was found.
14440
14441 * xfont.c (xfont_parse_name): Delete this function.
14442
14443 * xftfont.c (xftfont_open): Change coding style of error
14444 handling. Generate fontconfig's fontname pattern.
14445
14446 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14447 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14448
14449 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14450 Both args FONTSET and FONT_OBJECT must be existing ones.
14451
14452 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14453
14454 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14455
14456 2008-02-01 Kenichi Handa <handa@m17n.org>
14457
14458 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14459
14460 * font.h (struct font): Fix typo.
14461
14462 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14463 XLFD_XXX_INDEX.
14464 (enum xlfd_field_mask): New enum.
14465 (intern_font_field): Changed argument. Change caller. If digits
14466 are followed by non-digits, return a symbol.
14467 (font_expand_wildcards): New function.
14468 (font_parse_xlfd): Fix wildcard handling.
14469 (Ffont_spec): If :name is specified, reflect the info in the other
14470 properties.
14471
14472 * ftfont.c (ftfont_pattern_entity): Fix typo.
14473 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14474 locale.
14475
14476 2008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14479
14480 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14481 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14482 registry doesn't specify encoding part.
14483 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14484 (font_open_by_name): At first try parsing the name.
14485 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14486 as Lisp symbols.
14487
14488 * fontset.c (reorder_font_vector): Pay attention to the case that
14489 the 3rd element of font_def is nil.
14490 (fontset_font): For the default fontset, append one more fontset
14491 elements for a script-based font specification. Don't add script
14492 attribute on finding a font.
14493 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14494 font name.
14495 (fontset_ascii_font): If a font can't be opened, return nil.
14496
14497 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14498 (ftfont_pattern_entity): New function.
14499 (ftfont_get_cache): Assume that freetype_font_cache is already
14500 initialized.
14501 (ftfont_list): Handle the case that a file is specified in font
14502 name. Use ftfont_pattern_entity to generate entities.
14503 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14504 (syms_of_ftfont): Initialize freetype_font_cache.
14505
14506 * xftfont.c (xftfont_open): Make the font name fontconfig's
14507 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14508 (xftfont_close): Free font->font.name if not NULL.
14509
14510 * xfont.c (xfont_list): If script is specified for a font, return
14511 null_vector.
14512 (xfont_list_family): Declare argument type.
14513
14514 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14515 name, set LFACE_FONT (lface) to nil.
14516
14517 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14518 return Qnil.
14519
14520 2008-02-01 Kenichi Handa <handa@m17n.org>
14521
14522 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14523 (standard_args): Add "-enable-font-backend".
14524
14525 2008-02-01 Kenichi Handa <handa@m17n.org>
14526
14527 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14528 (struct xftdraw_list, xftdraw_list): Delete them.
14529 (register_xftdraw, check_xftdraw): Delete them.
14530 (xftfont_prepare_face): Don't call register_xftdraw.
14531 (xftfont_done_face): Don't call check_xftdraw.
14532 (xftfont_draw): Get background color only when with_background is
14533 nonzero.
14534
14535 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14536
14537 2008-02-01 Kenichi Handa <handa@m17n.org>
14538
14539 These changes are for the new font handling codes.
14540
14541 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14542 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14543 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14544 (FONTSRC, FONTOBJ): New variables.
14545 (obj): Add $(FONTOBJ).
14546 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14547 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14548 @LIBOTF_LIBS@.
14549 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14550 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14551
14552 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14553
14554 * character.h (Vscript_representative_chars): Extern it.
14555
14556 * character.c (Vscript_representative_chars): New variable.
14557 (syms_of_character): Declare it as a Lisp variable.
14558
14559 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14560 enable_font_backend is nonzero, accept the composition method
14561 COMPOSITION_WITH_GLYPH_STRING.
14562
14563 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14564 enumeration COMPOSITION_WITH_GLYPH_STRING.
14565
14566 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14567 members clip_x, clip_y, clip_width, and clip_height.
14568 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14569
14570 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14571 --enable-font-backend. Call syms_of_font.
14572
14573 * fns.c (assoc_no_quit): New function.
14574
14575 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14576 (face_for_font, new_fontset_from_font)
14577 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14578
14579 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14580 (fontset_font, fontset_ascii, face_for_char)
14581 (make_fontset_for_ascii_face, Ffont_info)
14582 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14583 is nonzero, use font-backend mechanism.
14584 (find_font_encoding): Make it non-static.
14585 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14586 New functions.
14587
14588 * frame.h (struct frame): New members resx and resy.
14589 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14590 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14591
14592 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14593 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14594
14595 * lisp.h (assoc_no_quit): Extern it.
14596
14597 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14598 Through out the file, use FONT_INFO_FROM_FACE instead of
14599 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14600 rif->per_char_metric.
14601 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14602 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14603 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14604 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14605 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14606 nonzero, use font-backend mechanism.
14607 (get_per_char_metric): New function.
14608
14609 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14610 (set_lface_from_font_name)
14611 (set_font_frame_param, free_realized_face)
14612 (prepare_face_for_display, clear_face_gcs)
14613 (Finternal_set_font_selection_order, realize_x_face)
14614 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14615 font-backend mechanism.
14616 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14617 (load_face_font) [USE_FONT_BACKEND]: Abort.
14618 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14619 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14620
14621 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14622 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14623 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14624 nonzero, register all available font drivers. Call
14625 x_default_font_parameter for deciding a font.
14626 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14627
14628 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14629 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14630 (x_set_glyph_string_clipping_exactly)
14631 (x_compute_glyph_string_overhangs)
14632 (x_draw_glyph_string_foreground)
14633 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14634 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14635 enable_font_backend is nonzero, use font-backend mechanism.
14636 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14637
14638 2008-02-01 Kenichi Handa <handa@m17n.org>
14639
14640 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14641 system_eol_type.
14642 (syms_of_coding): Initialize system_eol_type.
14643
14644 * process.c (Fset_process_coding_system): Inherit system's eol
14645 format if necessary.
14646
14647 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14648
14649 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14650
14651 2008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * coding.c (decode_eol): Pay attention to buffer relocation in
14654 del_range_2.
14655 (decode_coding): Call decode_eol before restoring undo_list.
14656
14657 2008-02-01 Kenichi Handa <handa@m17n.org>
14658
14659 * charset.c (Fdefine_charset_internal): Fix setting of
14660 emacs_mule_bytes.
14661
14662 2008-02-01 Kenichi Handa <handa@m17n.org>
14663
14664 * keyboard.c (read_char): Check if C is a character or not before
14665 looking up Vkeyboard_translate_table.
14666
14667 2008-02-01 Kenichi Handa <handa@m17n.org>
14668
14669 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14670 condition to terminate the loop.
14671
14672 2008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * coding.c (produce_composition): Compare charbuf[i] instead of
14675 args[i] against 0.
14676 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14677
14678 2008-02-01 Kenichi Handa <handa@m17n.org>
14679
14680 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14681 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14682 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14683 detect_coding.
14684 (emacs_mule_char): Handle old style (Emacs 20) component character
14685 of a composition.
14686 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14687 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14688 composition rule.
14689 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14690
14691 2008-02-01 Kenichi Handa <handa@m17n.org>
14692
14693 * coding.c (encode_coding_ccl): Allocate destination dynamically
14694 when necessary.
14695
14696 2008-02-01 Kenichi Handa <handa@m17n.org>
14697
14698 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14699 the loop. When quitted, show a proper error message.
14700
14701 2008-02-01 Kenichi Handa <handa@m17n.org>
14702
14703 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14704 src->clip_head and src->clip_tail temporarily instead of src->hl.
14705
14706 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14707 character sequence.
14708 (Fccl_execute_on_string): Use ASET, not XSET.
14709
14710 2008-02-01 Kenichi Handa <handa@m17n.org>
14711
14712 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14713
14714 2008-02-01 Kenichi Handa <handa@m17n.org>
14715
14716 * coding.c (decode_coding): Fix the condition of terminating the
14717 decoding loop.
14718
14719 2008-02-01 Kenichi Handa <handa@m17n.org>
14720
14721 * data.c (Faset): On setting a character bigger than 255 in a
14722 unibyte string, signal an error instead of make the string multibyte.
14723
14724 2008-02-01 Kenichi Handa <handa@m17n.org>
14725
14726 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14727 made by a mapping table.
14728
14729 2008-02-01 Kenichi Handa <handa@m17n.org>
14730
14731 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14732 not.
14733 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14734 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14735
14736 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14737 s->face is NULL or not.
14738
14739 2008-02-01 Kenichi Handa <handa@m17n.org>
14740
14741 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14742 (x_draw_glyph_string): Fix drawing of right_overhang and
14743 left_overhang around/on cursor.
14744
14745 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14746
14747 2008-02-01 Kenichi Handa <handa@m17n.org>
14748
14749 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14750
14751 2008-02-01 Kenichi Handa <handa@m17n.org>
14752
14753 * coding.c (Fdefine_coding_system_internal)
14754 (Fdefine_coding_system_alias): Avoid a duplicated element in
14755 Vcoding_system_alist.
14756
14757 2008-02-01 Kenichi Handa <handa@m17n.org>
14758
14759 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14760
14761 * coding.c (Qcoding_system_define_form): New variable.
14762 (syms_of_coding): Intern and staticpro it.
14763 (Fcoding_system_p): Check Qcoding_system_define_form.
14764 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14765
14766 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14767 Fcoding_system_p.
14768 (CHECK_CODING_SYSTEM): If ID is not available, call
14769 Fcheck_coding_system.
14770 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14771 Try also Fcheck_coding_system.
14772
14773 2008-02-01 Kenichi Handa <handa@m17n.org>
14774
14775 * coding.c (code_conversion_restore): GCPRO arg.
14776
14777 2008-02-01 Kenichi Handa <handa@m17n.org>
14778
14779 * character.c (lisp_string_width): Check multibyteness of STRING.
14780
14781 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14782
14783 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14784 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14785 (decode_mac_font_name): Use decode_coding_c_string instead of
14786 decode_coding.
14787 (x_load_font): Initialize fontp->fontset to -1. Set
14788 fontp->encoding_type.
14789
14790 2008-02-01 Kenichi Handa <handa@m17n.org>
14791
14792 * search.c (search_buffer): Give up BM search on case-fold-search
14793 if one of a target character has a case-equivalence of different
14794 byte length even if that target charcter is an ASCII.
14795 (simple_search): Fix calculation of byte length of matched text.
14796 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14797
14798 2008-02-01 Kenichi Handa <handa@m17n.org>
14799
14800 * coding.c (decode_coding): Fix handling of invalid bytes.
14801
14802 2008-02-01 Kenichi Handa <handa@m17n.org>
14803
14804 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14805 Unicode characters.
14806
14807 2008-02-01 Kenichi Handa <handa@m17n.org>
14808
14809 * coding.c (encode_coding_object): If a pre-write-conversion
14810 function makes a new buffer, kill it.
14811
14812 2008-02-01 Kenichi Handa <handa@m17n.org>
14813
14814 * coding.c (QCascii_compatible_p): New variable.
14815 (syms_of_coding): Initialize it.
14816 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14817 calling string_char.
14818 (record_conversion_result): Add `default:' case.
14819 (coding_charset_list): Delete unused variable `coding_type'.
14820 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14821 property in the plist of the coding system.
14822 (Fcoding_system_put): Check QCascii_compatible_p.
14823
14824 2008-02-01 Miles Bader <miles@gnu.org>
14825
14826 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14827 removed calculation of frame `f', as it's now used.
14828
14829 2008-02-01 Kenichi Handa <handa@m17n.org>
14830
14831 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14832 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14833 (UNIDATA): New variable.
14834 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14835 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14836 $(RUN_TEMACS) unconditionally.
14837
14838 2008-02-01 Kenichi Handa <handa@m17n.org>
14839
14840 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14841 (admindir): New variable.
14842 ($(lispsource)international/charprop.el): New target.
14843
14844 2008-02-01 Miles Bader <miles@gnu.org>
14845
14846 * character.c (chars-in-region): Remove obsolete function.
14847 (syms_of_character): Remove its initialization.
14848
14849 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14850
14851 * w32select.c (validate_coding_system)
14852 (setup_windows_coding_system): New functions.
14853 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14854 setup_windows_coding_system.
14855 (setup_config, Fw32_get_clipboard_data): Use
14856 validate_coding_system.
14857 (Fx_selection_exists): Move call to setup_config to a place
14858 where signals are allowed.
14859
14860 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14861 (Fcheck_coding_system): Add declarations.
14862
14863 2008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14866
14867 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14868
14869 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14870 string as the second argument for x_new_fontset.
14871
14872 2008-02-01 Kenichi Handa <handa@m17n.org>
14873
14874 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14875 (encode_coding_object): Use safe_call instead of call2.
14876
14877 2008-02-01 Kenichi Handa <handa@m17n.org>
14878
14879 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14880
14881 * Makefile.in (lisp): Include charprop.el.
14882
14883 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14884
14885 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14886 Not sure if it's unnecessary.
14887
14888 2008-02-01 Steven Tamm <steventamm@mac.com>
14889
14890 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14891 some possibly unnecessary fontset checking code that crashed
14892 when creating a new frame.
14893
14894 2008-02-01 Kenichi Handa <handa@m17n.org>
14895
14896 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14897 lookup_face.
14898
14899 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14900
14901 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14902
14903 2008-02-01 Kenichi Handa <handa@m17n.org>
14904
14905 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14906 (coding_charset_list): New function.
14907
14908 * coding.h (coding_charset_list): Extern it.
14909
14910 2008-02-01 Kenichi Handa <handa@m17n.org>
14911
14912 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14913 concatenation of family and registry.
14914
14915 2008-02-01 Kenichi Handa <handa@m17n.org>
14916
14917 * character.h (BYTE8_STRING): Fix typo.
14918
14919 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14920 string to multibyte (sync to HEAD).
14921
14922 * casefiddle.c (casify_region): Handle changes in byte-length
14923 using replace_range_2 (sync to HEAD).
14924
14925 2008-02-01 Andreas Schwab <schwab@suse.de>
14926
14927 * chartab.c (map_char_table): GCPRO table and arg.
14928
14929 2008-02-01 Kenichi Handa <handa@m17n.org>
14930
14931 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14932 already at limit.
14933
14934 2008-02-01 Kenichi Handa <handa@m17n.org>
14935
14936 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14937 instead of fast_c_string_match_ignore_case.
14938 (find_font_encoding): Change argument to Lisp_Object. Use
14939 fast_string_match_ignore_case instead of
14940 fast_c_string_match_ignore_case. Change caller.
14941
14942 2008-02-01 Kenichi Handa <handa@m17n.org>
14943
14944 * xdisp.c (get_next_display_element): In unibyte case, decide to
14945 display in octal form by checking a character by
14946 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14947
14948 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14949
14950 * character.c (unibyte_has_multibyte_table): New variable.
14951
14952 * character.h (unibyte_has_multibyte_table): Extern it.
14953 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14954
14955 2008-02-01 Kenichi Handa <handa@m17n.org>
14956
14957 * coding.c (encode_coding_iso_2022): Fix handling of charset
14958 annotation.
14959
14960 2008-02-01 Kenichi Handa <handa@m17n.org>
14961
14962 * coding.c (setup_coding_system): If coding_system is nil, use
14963 Qundecided.
14964 (Fterminal_coding_system): Return nil if terminal coding system is
14965 `undecided'.
14966 (syms_of_coding): Define coding-system `undecided' here. Setup
14967 terminal_coding as `undecided'.
14968
14969 2008-02-01 Kenichi Handa <handa@m17n.org>
14970
14971 * xdisp.c (message_dolog, set_message_1): Call
14972 unibyte_char_to_multibyte with arg type int.
14973
14974 * lread.c (read1): Fix reading of a char-table.
14975
14976 * print.c (print_object): Include sub char-table in circularities
14977 detection.
14978
14979 2008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14982 Append the found sequences in car of ARGS instead of prepending.
14983
14984 2008-02-01 Kenichi Handa <handa@m17n.org>
14985
14986 * fileio.c (report_file_error): Make a unibyte string from
14987 strerror (errorno).
14988 (Fsubstitute_in_file_name): Fix the arg to
14989 unibyte_char_to_multibyte. It is evaluated twice.
14990
14991 2008-02-01 Kenichi Handa <handa@m17n.org>
14992
14993 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14994
14995 2008-02-01 Kenichi Handa <handa@m17n.org>
14996
14997 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14998 BOM is not found.
14999 (detect_coding, detect_coding_system): Optimization for ISO-2022
15000 when no 8-bit data is found.
15001
15002 2008-02-01 Jason Rumney <jasonr@gnu.org>
15003
15004 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15005
15006 2008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15009 CHARS.
15010
15011 2008-02-01 Steven Tamm <steventamm@mac.com>
15012
15013 * macterm.c (mac_encode_char): Add charset argument and update
15014 to use encoding_type.
15015 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15016 switch to pure fontset.
15017 (decode_mac_font_name): Temporarily remove decoding.
15018 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15019 (x_load_font): Temporarily remove encoding.
15020
15021 2008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * xfaces.c (Fface_font): If frame is not on a window system,
15024 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15025 refer to face->font.
15026 (split_font_name_into_vector, build_font_name_from_vector)
15027 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15028 when HAVE_WINDOW_SYSTEM is defined.
15029
15030 2008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15033 (x_produce_glyphs): Fix setting of members of cmp in case
15034 cmp->glyph_len is zero.
15035
15036 * fontset.c (Fset_fontset_font): Fix docstring.
15037 (Ffontset_info): Make it backward compatible. New arg ALL.
15038
15039 2008-02-01 Kim F. Storm <storm@cua.dk>
15040
15041 * process.c (read_process_output): Grow decoding_buf when needed;
15042 this could cause a crash in allocate_string and compact_small_strings.
15043
15044 2008-02-01 Kenichi Handa <handa@m17n.org>
15045
15046 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15047
15048 2008-02-01 Kenichi Handa <handa@m17n.org>
15049
15050 * coding.c (setup_coding_system): Set coding->common_flags
15051 correctly for raw-text.
15052 (consume_chars): On encoding unibyte text by raw-text, don't check
15053 multibyte form.
15054 (encode_coding): On encoding by raw-text, never use translation tables.
15055
15056 * fileio.c (e_write): Short cut for the case of no encoding.
15057
15058 2008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * coding.c (detect_coding, detect_coding_system): Delete unused
15061 variables.
15062
15063 2008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15066 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15067
15068 2008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * coding.c (Ffind_coding_systems_region_internal): Include
15071 raw-text and no-conversion in the result.
15072
15073 2008-02-01 Kenichi Handa <handa@m17n.org>
15074
15075 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15076 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15077 FONT_DEF.
15078 (font_def_arg, add_arg, from_arg, to_arg): New args.
15079 (set_fontset_font): Change argument.
15080 (Fset_fontset_font): Fix for the case that TARGET is a script
15081 name and charset name.
15082 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15083
15084 2008-02-01 Kenichi Handa <handa@m17n.org>
15085
15086 * fontset.c (fontset_font): Rename from fontset_face. Change return
15087 value.
15088 (face_suitable_for_char_p, face_for_char): Adjust for the change
15089 of fontset_font.
15090 (make_fontset_for_ascii_face): Fix setting of the fontset element
15091 for ASCII.
15092 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15093 to get a font name.
15094 (Ffontset_info): Adjust for the change of fontset_font.
15095
15096 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15097
15098 * character.h (LEADING_CODE_LATIN_1_MIN)
15099 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15100
15101 2008-02-01 Kenichi Handa <handa@m17n.org>
15102
15103 * editfns.c (check_translation): New function.
15104 (Ftranslate_region_internal): Handle M:N mapping.
15105
15106 2008-02-01 Kenichi Handa <handa@m17n.org>
15107
15108 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15109
15110 2008-02-01 Kenichi Handa <handa@m17n.org>
15111
15112 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15113 goto invalid_code.
15114 (decode_coding_iso_2022): Fix handling of invalid designation.
15115
15116 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15117 after calling code_conversion_save.
15118
15119 2008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15122
15123 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15124
15125 * fontset.c: Include "intervals.h".
15126 (fontset_face): Fix comparing of Lisp_Objects.
15127 (free_face_fontset, new_fontset_from_font_name): Fix
15128 Lisp_Object/int mixup.
15129
15130 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15131
15132 * coding.c: Add many prototypes for static functions.
15133 (get_translation_table): Allow max_lookup to be NULL.
15134 (decode_coding, Ffind_coding_systems_region_internal)
15135 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15136 get_translation_table with max_lookup NULL.
15137
15138 2008-02-01 Kenichi Handa <handa@m17n.org>
15139
15140 * coding.c (get_translation_table): Declare it as Lisp_Object.
15141 (LOOKUP_TRANSLATION_TABLE): New macro.
15142 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15143 instead of CHAR_TABLE_REF.
15144
15145 2008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15148 annotation data format.
15149 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15150 Change arguments FROM and TO to single argument NCHARS. Change caller.
15151 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15152 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15153 (decode_coding_ccl, decode_coding_charset): Pay attention to
15154 coding->charbuf_used.
15155 (get_translation): New function.
15156 (produce_chars): New arguments translation_table and last_block.
15157 Translate characters here. Return number of carryover chars.
15158 Change caller.
15159 (produce_composition): New argument pos. Change caller.
15160 Adjust for the change of annotation data format.
15161 (produce_charset, produce_annotation): Likewise.
15162 (decode_coding, encode_coding): Don't call translate_chars.
15163 (consume_chars): New arg translation_table. Change caller.
15164 (translate_chars): Delete.
15165 (syms_of_coding): Make translation-table's number of extra slots 2.
15166
15167 2008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * search.c (simple_search): Fix setting this_pos_byte in backward
15170 search.
15171
15172 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15173 byte sequence.
15174 (detect_coding_ccl): Fix setting of the variable valids.
15175
15176 2008-02-01 Kenichi Handa <handa@m17n.org>
15177
15178 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15179
15180 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15181
15182 * editfns.c (Ftranslate_region_internal): Rename from
15183 Ftranslate_region. Accept a char-table in TABLE.
15184 (syms_of_editfns): Defsubr Stranslate_region_internal.
15185
15186 * xfaces.c (set_lface_from_font_name): If a font is specified for
15187 a frame, generate a fontset from the font.
15188 (build_scalable_font_name): If the scalable font is requested for
15189 a specific size, don't change that size.
15190 (try_font_list): Try a scalable font also in the case that a
15191 pattern string is specified.
15192
15193 2008-02-01 Kenichi Handa <handa@m17n.org>
15194
15195 * xfaces.c (Fface_font): New optional arg CHARACTER.
15196
15197 2008-02-01 Kenichi Handa <handa@m17n.org>
15198
15199 * charset.h (CHARSET_OFFSET): New macro.
15200
15201 2008-02-01 Kenichi Handa <handa@m17n.org>
15202
15203 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15204
15205 * fontset.c (fontset_face): Handle the case that repertory is a
15206 char-table.
15207 (find_font_encoding): Return nil for unknown encoding.
15208 (Fset_fontset_font): Ignore a font of unknown encoding.
15209
15210 2008-02-01 Kenichi Handa <handa@m17n.org>
15211
15212 * keymap.c (describe_vector): Handle default value of a char table.
15213
15214 * fontset.c (fontset_face): Handle fallback fonts correctly.
15215 (Ffontset_info): Return infomation about fallback fonts.
15216
15217 2008-02-01 Kenichi Handa <handa@m17n.org>
15218
15219 * fontset.c (FONTSET_DEFAULT): New macro.
15220 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15221 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15222 the case that it is nil.
15223 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15224 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15225
15226 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15227 subset or superset.
15228
15229 2008-02-01 Kenichi Handa <handa@m17n.org>
15230
15231 * emacs.c (main): Call init_charset after syms_of_XXX.
15232
15233 * charset.c (Vcharset_map_directory): Delete.
15234 (Vcharset_map_path): New variable.
15235 (load_charset_map_from_file): Use Vcharset_map_path instead.
15236 (init_charset): Initialize Vcharset_map_path.
15237 (syms_of_charset): Delete declaration of "charset-map-directory",
15238 add declaration of "charset-map-path".
15239
15240 2008-02-01 Kenichi Handa <handa@m17n.org>
15241
15242 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15243 ASCII only string.
15244
15245 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15246
15247 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15248 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15249
15250 2008-02-01 Kenichi Handa <handa@m17n.org>
15251
15252 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15253
15254 * coding.c (QCmnemonic, QCdefalut_char)
15255 (QCdecode_translation_table, QCencode_translation_table)
15256 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15257 (get_translation_table): Return a list of translation tables if
15258 necessary.
15259 (decode_coding): Call get_translation_table with ENCODEP 0.
15260 (char_encodable_p): If translation_table is non-nil, always call
15261 translate_char.
15262 (Fdefine_coding_system_internal): Accept list of translation
15263 tables as :encode-translation-table and :decode-translation-table.
15264 (Fcoding_system_put): New function.
15265 (syms_of_coding): Declare new symbols. Defsubr
15266 Scoding_system_put.
15267 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15268 typically JISX0212.
15269
15270 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15271 when the charset is superset type.
15272
15273 * character.c (translate_char): Accept list of translation tables.
15274
15275 2008-02-01 Kenichi Handa <handa@m17n.org>
15276
15277 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15278 (CODING_ATTR_TRANS_TBL): New macro.
15279
15280 * coding.c (get_translation_table): New function.
15281 (translate_chars): Fix the bug of skipping annotation data.
15282 (decode_coding, encode_coding): Utilize get_translation_table.
15283 (char_encodable_p, Funencodable_char_position): Translate char if
15284 necessary.
15285 (Ffind_coding_systems_region_internal)
15286 (Fcheck_coding_systems_region): Setup translation table for encode
15287 in a coding system attribute vector in advance.
15288 (Fdefine_coding_system_internal): Allow a symbol as translation
15289 table. For shift-jis type coding system, allow 4th charset.
15290
15291 2008-02-01 Kenichi Handa <handa@m17n.org>
15292
15293 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15294
15295 * xdisp.c (get_next_display_element): Pass -1 as POS to
15296 FACE_FOR_CHAR if displaying a C-string.
15297
15298 2008-02-01 Kenichi Handa <handa@m17n.org>
15299
15300 * composite.c (get_composition_id): Handle xoff and yoff in a
15301 composition rule.
15302
15303 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15304 (struct composition): New member lbearing and rbearing.
15305
15306 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15307 (x_get_glyph_overhangs): Handle a composition glyph.
15308 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15309
15310 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15311 composition glyph.
15312
15313 2008-02-01 Kenichi Handa <handa@m17n.org>
15314
15315 * print.c: Include charset.h.
15316 (Vprint_charset_text_property): New variable.
15317 (Qdefault): Extern it.
15318 (PRINT_STRING_NON_CHARSET_FOUND)
15319 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15320 (print_check_string_result): New variable.
15321 (print_check_string_charset_prop): New function.
15322 (print_prune_charset_plist): New variable.
15323 (print_prune_string_charset): New function.
15324 (print_object): Call print_prune_string_charset if
15325 Vprint_charset_text_property is not t.
15326 (print_interval): Print nothing if interval->plist is nil.
15327 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15328 variable. Init and staticpro print_prune_charset_plist.
15329
15330 2008-02-01 Kenichi Handa <handa@m17n.org>
15331
15332 * fontset.c (new_fontset_from_font_name): Use the specified font
15333 for all characters in the new fontset.
15334
15335 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15336 OBJECT args.
15337
15338 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15339 OBJECT args for composition too.
15340
15341 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15342 OBJECT args.
15343
15344 2008-02-01 Kenichi Handa <handa@m17n.org>
15345
15346 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15347
15348 * fontset.c (reorder_font_vector): Adjust for the change of
15349 FONT_DEF format.
15350 (fontset_face): New arg id. Change caller.
15351 (face_for_char): New args pos and object.
15352 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15353 (fs_query_fontset): Check NAME by Fassoc too.
15354 (Fset_fontset_font): Allow non-XLFD font name.
15355 (Ffontset_info): Adjust for the change of FONT_DEF format.
15356
15357 * fontset.h (face_for_char): Adjust prototype.
15358
15359 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15360 (append_space, extend_face_to_end_of_line)
15361 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15362 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15363
15364 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15365 POS and OBJECT args.
15366
15367 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15368 POS and OBJECT args.
15369
15370 2008-02-01 Jason Rumney <jasonr@gnu.org>
15371
15372 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15373 of GlobalAlloc'ed memory.
15374
15375 2008-02-01 Kenichi Handa <handa@m17n.org>
15376
15377 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15378
15379 * charset.h (charset_table_used): Delete extern.
15380
15381 * charset.c (charset_table_used): Make it static.
15382 (map_charset_chars): Fix args to c_function with.
15383
15384 * chartab.c (map_sub_char_table_for_charset): Fix args to
15385 c_function with.
15386
15387 * coding.h (enum coding_result_code): Delete
15388 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15389
15390 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15391 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15392 (Vlast_code_conversion_error): New variables.
15393 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15394 (ONE_MORE_BYTE): Record error if any instead of signaling an
15395 error. If non-ASCII multibyte char is found, return the negative
15396 value of the code. All callers changed to check it.
15397 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15398 (record_conversion_result): New function. Change all codes setting
15399 coding->result to call this function.
15400 (detect_coding_utf_8, decode_coding_utf_8)
15401 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15402 Don't use the local variable incomplete.
15403 (emacs_mule_char): Change the second arg to `const'.
15404 (decode_coding): Fix of flushing out unprocessed data.
15405 (make_conversion_work_buffer): Fix making of a work buffer.
15406 (decode_coding_object): Return coding->dst_object.
15407
15408 * fontset.c (set_fontset_font): Fix args.
15409
15410 * lisp.h (CHARACTERBITS): Define as 22.
15411
15412 * process.c (send_process): Be sure to set coding->src_multibyte.
15413
15414 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15415
15416 2008-02-01 Kenichi Handa <handa@m17n.org>
15417
15418 * xdisp.c (handle_auto_composed_prop): Give limit to
15419 Fnext_single_char_property_change.
15420
15421 2008-02-01 Kenichi Handa <handa@m17n.org>
15422
15423 * composite.c (syms_of_composite): Don't make the composition hash
15424 table weak.
15425
15426 * fontset.c (Fset_fontset_font): Fix docstring.
15427
15428 * lisp.h (detect_coding_system): Adjust prototype.
15429
15430 * fileio.c (kill_workbuf_unwind): Delete this function.
15431 (Finsert_file_contents): Adjust the call of detect_coding_system.
15432 Get conversion_buffer by code_conversion_save. Use the macro
15433 CODING_MAY_REQUIRE_DECODING. After decoding, update
15434 coding_system.
15435
15436 * coding.h (make_conversion_work_buffer): Delete extern.
15437 (code_conversion_save): Extern it.
15438
15439 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15440 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15441 (decode_coding_utf_8): Don't do eol converion.
15442 (detect_coding_utf_16): Check coding->src_chars, not
15443 coding->src_bytes. Add heuristics for those that have no signature.
15444 (decode_coding_emacs_mule, decode_coding_iso_2022)
15445 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15446 Don't do eol converion.
15447 (adjust_coding_eol_type): Return a new coding system.
15448 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15449 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15450 each change.
15451 (decode_coding): Pay attention to undo_list. Do eol conversion for
15452 all types of coding-systems (if necessary).
15453 (Vcode_conversion_work_buf_list): Delete it.
15454 (Vcode_conversion_reused_workbuf): Rename from
15455 Vcode_conversion_reused_work_buf.
15456 (Vcode_conversion_workbuf_name): New variable.
15457 (reused_workbuf_in_use): New variable.
15458 (make_conversion_work_buffer): Delete the arg DEPTH.
15459 (code_conversion_restore): Change argument to cons.
15460 (code_conversion_save): Delete the argument BUFFER. Change callers.
15461 (detect_coding_system): New argument src_chars. Change callers.
15462 Fix for utf-16 detection.
15463 (init_coding_once): Don't use ISO_carriage_return.
15464 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15465 reused_workbuf_in_use.
15466
15467 2008-02-01 Kenichi Handa <handa@m17n.org>
15468
15469 * keymap.c (store_in_keymap): Pay attention to the case that idx
15470 is a cons specifying a character range.
15471
15472 2008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15475 HANDLED_RECOMPUTE_PROPS.
15476
15477 * coding.c (Fdefine_coding_system_internal): Fix checking of
15478 ascii compatibility.
15479
15480 2008-02-01 Kenichi Handa <handa@m17n.org>
15481
15482 * charset.c (find_charsets_in_text): Delete unused locale variable.
15483 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15484
15485 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15486 Resync charset_list to Vemacs_mule_charset_list.
15487
15488 * keymap.c (store_in_keymap): Pay attention to the case that idx
15489 is a cons specifying a character range.
15490
15491 2008-02-01 Kenichi Handa <handa@m17n.org>
15492
15493 * composite.c (update_compositions): Bind inhibit-read-only, etc
15494 to t before calling remove-list-of-text-properties.
15495
15496 * print.c (print_object): Always print ASCII chars as is.
15497
15498 2008-02-01 Kenichi Handa <handa@m17n.org>
15499
15500 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15501
15502 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15503 is a char table.
15504
15505 2008-02-01 Kenichi Handa <handa@m17n.org>
15506
15507 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15508
15509 2008-02-01 Kenichi Handa <handa@m17n.org>
15510
15511 * xfaces.c (set_lface_from_font_name): Fix for the case that
15512 FONTNAME is not fontset name.
15513
15514 2008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * fns.c (base64_encode_1): Fix previous change.
15517
15518 2008-02-01 Kenichi Handa <handa@m17n.org>
15519
15520 * fontset.c (set_fontset_font): New function.
15521 (Fset_fontset_font): If a font is specified for a charset, use
15522 map_charset_chars to store the font spec in a fontset.
15523
15524 2008-02-01 Kenichi Handa <handa@m17n.org>
15525
15526 * fontset.c (fontset_face): Create a fallback fontset on demand.
15527 (make_fontset): Don't create a fallback fontset here.
15528 (free_face_fontset): Free a fallback fontset (if any) too.
15529 (n_auto_fontsets): Delete this variable.
15530 (auto_fontset_alist): New variable.
15531 (new_fontset_from_font_name): Check auto_fontset_alist.
15532 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15533 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15534 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15535 Defsubr Sfontset_list_all.
15536
15537 2008-02-01 Kenichi Handa <handa@m17n.org>
15538
15539 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15540
15541 2008-02-01 Kenichi Handa <handa@m17n.org>
15542
15543 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15544
15545 2008-02-01 Kenichi Handa <handa@m17n.org>
15546
15547 * editfns.c (Fgoto_char): Fix docstring.
15548
15549 2008-02-01 Kenichi Handa <handa@m17n.org>
15550
15551 * insdel.c (insert_from_gap): Adjust intervals correctly.
15552
15553 2008-02-01 Jason Rumney <jasonr@gnu.org>
15554
15555 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15556 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15557 (w32_initialize): Try to load it.
15558 (x_get_font_repertory): Use it if available.
15559 (w32_encode_char): Add shortcut for unicode output.
15560
15561 * w32fns.c (w32_load_system_font): Default charset to -1.
15562 (x_to_w32_charset): Match all fonts for unicode.
15563 (w32_to_x_charset): New parameter matching. Don't return partial
15564 or wildcard charsets.
15565 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15566 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15567 (w32_to_x_font): Match charset to real charset.
15568 (enum_font_cb2): Always list unicode versions.
15569
15570 * makefile.w32-in (temacs): Increase EMHEAP.
15571
15572 2008-02-01 Jason Rumney <jasonr@gnu.org>
15573
15574 * w32term.c (w32_encode_char): New charset parameter.
15575 font_info.encoding becomes encoding_type.
15576 (x_get_font_repertory): New function. Warning: stub only!
15577 (x_new_font): Return quickly if font already set.
15578 (x_new_fontset): fontsetname parameter is Lisp_Object.
15579 Use new fs_query_fontset. Try new_fontset_from_font_name.
15580 Use fontset_name for return value.
15581
15582 * w32term.h: Declare x_get_font_repertory.
15583
15584 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15585 place of find_charset_in_text. Use encode_coding_object in place
15586 of encode_coding.
15587 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15588 decode_coding.
15589
15590 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15591 of x_new_fontset.
15592 (w32_load_system_font): Initialize charset as unicode.
15593 font_info.encoding becomes encoding_type.
15594 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15595 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15596 (syms_of_w32fns): Set get_font_repertory_func.
15597
15598 * w32console.c: Include character.h. Use terminal_encode_buffer
15599 from term.c.
15600 (write_glyphs): Use new version of encode_terminal_code. Use
15601 encode_coding_object in place of encode_coding.
15602
15603 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15604 encoding becomes encoding_type.
15605
15606 * term.c (terminal_encode_buffer): Make externally visible.
15607
15608 * makefile.w32-in: Add character.h dependancies.
15609 (character.o, chartab.o): New targets.
15610
15611 2008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15614 CODING_ID_EOL_TYPE.
15615
15616 2008-02-01 Andreas Schwab <schwab@suse.de>
15617
15618 * coding.c (produce_chars): Revert last change.
15619
15620 2008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * charset.h (charset_unicode): Extern it.
15623
15624 * charset.c (string_xstring_p): Check by (C >= 0x100).
15625 (find_charsets_in_text): Change format of the arc CHARSETS. New
15626 arg MULTIBYTE.
15627 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15628 change of find_charsets_in_text.
15629 (Fsplit_char): Fix doc. Never return unknown.
15630
15631 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15632
15633 * coding.c (Fdefine_coding_system_alias): Update
15634 Vcoding_system_list.
15635
15636 * fontset.c (load_font_get_repertory): Pay attention to the case
15637 that ENCODING of a font is specified by a char-table.
15638
15639 * xterm.c (x_get_font_repertory): Handle the case that the
15640 encoding of font is other than Unicode.
15641
15642 2008-02-01 Kenichi Handa <handa@m17n.org>
15643
15644 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15645 if a character is encodable by the terminal coding system. If
15646 not, produces proper number of `?'s. Update
15647 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15648 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15649
15650 2008-02-01 Kenichi Handa <handa@m17n.org>
15651
15652 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15653 variables.
15654 (encode_terminal_code): Change argument. Encode multiple
15655 characters at once. Store the result of encoding in
15656 terminal_encode_buffer.
15657 (write_glyphs, insert_glyphs): Adjust for the change of
15658 encode_terminal_code.
15659 (term_init): Initialize terminal_encode_buffer and
15660 terminal_encode_buf_size.
15661
15662 * coding.c (consume_chars): If coding->src_object is nil, don't
15663 check annotation.
15664
15665 2008-02-01 Kenichi Handa <handa@m17n.org>
15666
15667 * character.c (char_string): Use ASCII_CHAR_P instead of
15668 SINGLE_BYTE_CHAR_P.
15669
15670 2008-02-01 Kenichi Handa <handa@m17n.org>
15671
15672 * xdisp.c (handle_auto_composed_prop): Check if the last
15673 characters of auto-composed region is newly composed with the
15674 following characters.
15675 (handle_composition_prop): Fix checking of point being inside
15676 composition.
15677
15678 2008-02-01 Kenichi Handa <handa@m17n.org>
15679
15680 * fns.c (concat): Don't change multibyteness of the result by
15681 concatenating an 8-bit character.
15682
15683 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15684 multibyteness of the result when newelt is an 8-bit character.
15685
15686 2008-02-01 Dave Love <fx@gnu.org>
15687
15688 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15689 EMACS_INT.
15690
15691 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15692
15693 * xfaces.c (face_numeric_value): Declare dim size_t.
15694 (Finternal_lisp_face_equal_p): Remove unused f.
15695
15696 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15697 (MATRIX_ROW): Remove unused vars.
15698 (draw_glyphs, x_insert_glyphs, fast_find_position)
15699 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15700 byte/char counts.
15701
15702 * regex.c (regex_compile): Remove unused var.
15703
15704 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15705
15706 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15707 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15708
15709 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15710
15711 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15712
15713 * fileio.c (Fwrite_region): Remove unused var.
15714
15715 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15716 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15717
15718 * composite.c (Fremove_list_of_text_properties): Declare.
15719
15720 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15721 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15722 (coding_inherit_eol_type): Remove unused attrs.
15723 (detect_coding): Cast arg of detect_eol.
15724
15725 * charset.c (syms_of_charset): Remove unused var p.
15726 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15727 byte/char counts.
15728
15729 * casetab.c (set_case_table): Remove unused var.
15730
15731 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15732 unused vars.
15733
15734 2008-02-01 Dave Love <fx@gnu.org>
15735
15736 * xterm.c (x_bitmap_mask): Declare.
15737
15738 2008-02-01 Dave Love <fx@gnu.org>
15739
15740 * xterm.c (x_term_init): Fix type error.
15741
15742 * lisp.h: Add Funibyte_char_to_multibyte.
15743
15744 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15745 (Fset_coding_system_priority): Doc fix.
15746
15747 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15748
15749 * indent.c (check_composition): Make start and end EMACS_INT.
15750
15751 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15752
15753 * xdisp.c (handle_composition_prop, check_point_in_composition):
15754 Make buffer positions EMACS_INT.
15755
15756 * composite.c (find_composition, run_composition_function)
15757 (update_compositions, Ffind_composition_internal): Make buffer
15758 positions EMACS_INT.
15759
15760 * composite.h (find_composition, update_compositions): Make
15761 position args EMACS_INT.
15762
15763 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15764
15765 * intervals.c (get_property_and_range):
15766 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15767
15768 * unexalpha.c: Don't include varargs.h.
15769
15770 2008-02-01 Dave Love <fx@gnu.org>
15771
15772 * coding.h (ENCODE_UTF_8): New.
15773
15774 * Makefile.in (gtkutil.o): Depend on coding.h.
15775
15776 * coding.c (Fset_coding_system_priority): Doc fix.
15777
15778 2008-02-01 Kenichi Handa <handa@m17n.org>
15779
15780 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15781 the case of auto saving.
15782
15783 2008-02-01 Andreas Schwab <schwab@suse.de>
15784
15785 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15786 `range' from GC.
15787
15788 2008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15791
15792 2008-02-01 Kenichi Handa <handa@m17n.org>
15793
15794 * fileio.c (choose_write_coding_system): Return a decided coding system.
15795 (Fwrite_region): Set Vlast_coding_system_used to the return value
15796 of choose_write_coding_system.
15797
15798 2008-02-01 Kenichi Handa <handa@m17n.org>
15799
15800 * charset.c (Fset_charset_priority): Pay attention to duplicated
15801 arguments.
15802
15803 * coding.c (QCcategory): New variable.
15804 (syms_of_coding): Defsym it. Set all elements of
15805 Vcoding_category_table and their symbol values.
15806 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15807 coding-category-XXX, and coding-category-list.
15808 (Fdefine_coding_system_internal): Add category in the plist.
15809
15810 2008-02-01 Kenichi Handa <handa@m17n.org>
15811
15812 * callproc.c (Fcall_process): Handle carryover correctly.
15813
15814 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15815 (raw_text_coding_system): Check NILP (coding_system).
15816 (coding_inherit_eol_type): Check NILP (coding_system) and
15817 NILP (parent).
15818 (consume_chars): Fix for the case of raw-text.
15819
15820 * process.c (read_process_output): Handle carryover correctly.
15821
15822 2008-02-01 Dave Love <fx@gnu.org>
15823
15824 * regex.c (re_search_2): Fix last change.
15825
15826 2008-02-01 Kenichi Handa <handa@m17n.org>
15827
15828 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15829 target_multibyte. Even in a unibyte case, return a converted
15830 multibyte char.
15831 (GET_CHAR_AFTER): New macro.
15832 (PATFETCH): Translate via multibyte char.
15833 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15834 (SETUP_MULTIBYTE_RANGE): New macro.
15835 (regex_compile): Setup compiled code so that its multibyteness
15836 matches that of a target. Fix the handling of "[X-YZ]" using
15837 SETUP_MULTIBYTE_RANGE.
15838 (analyse_first) <charset>: For filling fastmap for all multibyte
15839 characters, don't check by BASE_LEADING_CODE_P.
15840 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15841 the same as RE_MULTIBYTE_P (bufp) now.
15842 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15843 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15844 (TRANSLATE_VIA_MULTIBYTE): New macro.
15845 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15846 It is the same as RE_MULTIBYTE_P (bufp) now.
15847 <exactn>: Translate via multibyte.
15848 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15849 translate it.
15850 <charset, charset_not>: Fetch a character by
15851 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15852 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15853 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15854 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15855 by GET_CHAR_AFTER.
15856 (bcmp_translate): Likewise.
15857
15858 * search.c (compile_pattern): Check the member target_multibyte,
15859 not the member multibyte of buf.
15860
15861 * lread.c (read1): While reading a string, set force_singlebyte
15862 and force_multibyte correctly.
15863
15864 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15865 up of unibyte_to_multibyte_table.
15866
15867 2008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * coding.c (setup_coding_system): If coding has
15870 post-read-conversion or pre-write-conversion, set
15871 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15872 respectively.
15873 (decode_coding_gap): Run post-read-conversion if any.
15874
15875 * fileio.c (Finsert_file_contents): Even if we read into a
15876 unibyte buffer, check if we must decode the result or not.
15877
15878 2008-02-01 Kenichi Handa <handa@m17n.org>
15879
15880 * coding.c (make_conversion_work_buffer): Change the work buffer
15881 name to the same one as that of Emacs 21.
15882
15883 2008-02-01 Kenichi Handa <handa@m17n.org>
15884
15885 * coding.h (make_conversion_work_buffer): Adjust prototype.
15886 (code_conversion_restore): Don't extern it.
15887
15888 * coding.c (detected_mask): Delete unused variable.
15889 (decode_coding_iso_2022): Pay attention to the byte sequence of
15890 CTEXT extended segment, and retain those bytes as is.
15891 (decode_coding_ccl): Delete unused variable `valids'.
15892 (setup_coding_system): Delete unused variable `category'.
15893 (consume_chars): Delete unused variable `category'. Make it work
15894 for non-multibyte case.
15895 (make_conversion_work_buffer): Change argument.
15896 (saved_coding): Delete unused variable.
15897 (code_conversion_restore): Don't check saved_coding->destination.
15898 (code_conversion_save): New function.
15899 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15900 instead of record_unwind_protect.
15901 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15902 (detect_coding_system): Delete unused variable `mask'.
15903 (Fdefine_coding_system_internal): Delete unused variable id.
15904
15905 * fileio.c (kill_workbuf_unwind): New function.
15906 (Finsert_file_contents): On replacing, call
15907 make_conversion_work_buffer with correct args, and call
15908 record_unwind_protect with the first arg kill_workbuf_unwind.
15909
15910 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15911
15912 2008-02-01 Kenichi Handa <handa@m17n.org>
15913
15914 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15915 (fontset_add): Fix for the case that TO is less than TO1.
15916 (Ffontset_info): Don't use fallback fontset on checking the
15917 default fontset.
15918 (dump_fontset): New function for debugging.
15919
15920 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15921 coding_type is Qcharset.
15922
15923 2008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15926 (map_char_table): Don't inherit the value from the parent on
15927 initializing VAL. Adjust for the above change.
15928
15929 2008-02-01 Kenichi Handa <handa@m17n.org>
15930
15931 * coding.c (Qsignature, Qendian): Delete these variables.
15932 (syms_of_coding): Don't initialize them.
15933 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15934 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15935 detect_info->found.
15936 (decode_coding_utf_16): Don't detect BOM here.
15937 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15938 is NOT utf_16_without_bom.
15939 (setup_coding_system): For a coding system of type utf-16, check
15940 if the attribute :endian is Qbig or not (not nil or not), and set
15941 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15942 (detect_coding): If coding type is utf-16 and BOM detection is
15943 required, detect it.
15944 (Fdefine_coding_system_internal): For a coding system of type
15945 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15946
15947 2008-02-01 Kenichi Handa <handa@m17n.org>
15948
15949 * coding.c (coding_set_source): Fix for the case that the current
15950 buffer is different from coding->src_object.
15951 (decode_coding_object): Don't use the conversion work buffer if
15952 DST_OBJECT is a buffer.
15953
15954 2008-02-01 Dave Love <fx@gnu.org>
15955
15956 * lread.c (read_emacs_mule_char) [len==2]: Index
15957 emacs_mule_charset correctly.
15958
15959 2008-02-01 Dave Love <fx@gnu.org>
15960
15961 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15962 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15963 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15964 treated specially.)
15965 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15966 (detected_mask): Remove Big5 bits.
15967
15968 2008-02-01 Kenichi Handa <handa@m17n.org>
15969
15970 The following changes are to make the font rescaling facility
15971 compatible with Emacs 21.
15972
15973 * xfaces.c (Vface_font_rescale_alist): Rename from
15974 Vface_resizing_fonts.
15975 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15976 (font_rescale_ratio): Rename from font_resizing_ratio.
15977 (split_font_name): Set font->rescale_ratio.
15978 (better_font_p): Pay attention to font->rescale_ratio.
15979 (build_scalable_font_name): Likewise. Change RESX, and RESY
15980 fields.
15981 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15982
15983 2008-02-01 Kenichi Handa <handa@m17n.org>
15984
15985 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15986 (Qutf_16_le): Remove these variables.
15987 (syms_of_coding): Don't DEFSYM them.
15988 (decode_coding_utf_16): Fix handling of BOM.
15989 (encode_coding_utf_16): Fix handling of BOM.
15990
15991 2008-02-01 Kenichi Handa <handa@m17n.org>
15992
15993 * fileio.c (Finsert_file_contents): On replacing, before decoding
15994 the file into the work buffer, set point of the work buffer to the end.
15995
15996 2008-02-01 Dave Love <fx@gnu.org>
15997
15998 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15999
16000 2008-02-01 Dave Love <fx@gnu.org>
16001
16002 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16003 and fix C types.
16004
16005 2008-02-01 Kenichi Handa <handa@m17n.org>
16006
16007 * xdisp.c (SKIP_GLYPHS): New macro.
16008 (set_cursor_from_row): Pay attention to string display properties.
16009
16010 * category.c (copy_category_entry): Fix for the case that RANGE
16011 is an integer.
16012
16013 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16014
16015 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16016
16017 2008-02-01 Kenichi Handa <handa@m17n.org>
16018
16019 * charset.c (Fcharset_id_internal): New function.
16020 (syms_of_charset): Defsubr it.
16021
16022 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16023 with the last arg charset_list acquired from coding.
16024 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16025 the attribute coding_attr_ccl_valids.
16026
16027 * coding.h (enum define_coding_ccl_arg_index): Set the first
16028 member coding_arg_ccl_decoder to coding_arg_max.
16029
16030 * ccl.h (ccl_driver): Adjust prototype.
16031
16032 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16033 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
16034 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
16035 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16036 last arg Qnil.
16037
16038 2008-02-01 Kenichi Handa <handa@m17n.org>
16039
16040 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16041 call encode_char.
16042
16043 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16044
16045 2008-02-01 Dave Love <fx@gnu.org>
16046
16047 * composite.c (syms_of_composite): Make composition_hash_table weak.
16048
16049 2008-02-01 Kenichi Handa <handa@m17n.org>
16050
16051 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16052 (font_name_registry): Don't extern them.
16053 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16054
16055 * fontset.h (Qfontset): Don't extern it.
16056 (new_fontset_from_font_name): Extern it.
16057
16058 * fontset.c: Give 8 extra slots to fontset objects.
16059 (Qfontset_info): New variable.
16060 (syms_of_fontset): Defsym it.
16061 (FONTSET_FALLBACK): New macro.
16062 (fontset_face): Try also the default fontset.
16063 (make_fontset): Realize a fallback fontset from the default fontset.
16064 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16065 using split_font_name_into_vector and build_font_name_from_vector.
16066 (Fset_fontset_font): Access the elements of font_spec by enum
16067 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16068 name by using split_font_name_into_vector.
16069 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16070 generate a proper font name from the fontset name. Update
16071 Vfontset_alias_alist.
16072 (n_auto_fontsets): New variable.
16073 (new_fontset_from_font_name): New function.
16074 (Ffont_info): Store the information about fonts generated from the
16075 default fontset in the first extra slot of the returned char-table.
16076
16077 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16078 (font_name_registry): Delete function.
16079 (split_font_name_into_vector): New function.
16080 (build_font_name_from_vector): New function.
16081 (font_list): The argument REGISTRY is now a list of registry names.
16082 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16083 specifies an explicit font name, return the name as is. Make a
16084 list of registy names.
16085
16086 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16087 of x_new_fontset.
16088 (Fx_create_frame): Don't call x_new_fontset here. Just use
16089 x_list_fonts to check the existence of fonts.
16090
16091 * xterm.h (x_new_fontset): Adjust prototype.
16092
16093 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16094 string. Use new_fontset_from_font_name to create a fontset from a
16095 font name.
16096
16097 2008-02-01 Kenichi Handa <handa@m17n.org>
16098
16099 * syntax.c (Vfind_word_boundary_function_table): New name for
16100 Vnext_word_boundary_function_table.
16101 (find-word-boundary-function-table): New name for
16102 next-word-boundary-function-table.
16103
16104 2008-02-01 Dave Love <fx@gnu.org>
16105
16106 * Makefile.in: Fix some dependencies.
16107
16108 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16109 set it to nil before returning.
16110
16111 * composite.c (update_compositions): Fix type error.
16112
16113 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16114
16115 2008-02-01 Kenichi Handa <handa@m17n.org>
16116
16117 * xterm.c (x_new_font): Optimize for the case that the font is
16118 already set for the frame.
16119
16120 2008-02-01 Kenichi Handa <handa@m17n.org>
16121
16122 * chartab.c (char_table_ascii): Check if the char table contents
16123 is sub-char-table or not.
16124 (char_table_set, char_table_set_range): Fix argument to
16125 char_table_ascii.
16126
16127 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16128 (detect_coding_utf_8, detect_coding_utf_16)
16129 (detect_coding_emacs_mule, detect_coding_iso_2022)
16130 (detect_coding_sjis, detect_coding_big5)
16131 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16132 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16133 sequence is valid in this coding system. Change callers.
16134 (MAX_ANNOTATION_LENGTH): New macro.
16135 (ADD_ANNOTATION_DATA): New macro.
16136 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16137 ADD_ANNOTATION_DATA. Change the format of annotation data.
16138 (ADD_CHARSET_DATA): New macro.
16139 (emacs_mule_char): New argument ID. Change callers.
16140 (decode_coding_emacs_mule, decode_coding_iso_2022)
16141 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16142 Produce charset annotation data in coding->charbuf.
16143 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16144 to charset annotation data in coding->charbuf.
16145 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16146 coding->common_flags if the coding system is iso-2022 based and
16147 uses designation.
16148 (produce_composition): Adjust for the new annotation data format.
16149 (produce_charset): New function.
16150 (produce_annotation): Handle charset annotation.
16151 (handle_composition_annotation, handle_charset_annotation): New
16152 functions.
16153 (consume_chars): Handle charset annotation. Utilize the above two
16154 functions.
16155 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16156 buffer, get the deleted text as a string and set
16157 coding->src_object to that string.
16158 (detect_coding, detect_coding_system): Use the new struct
16159 coding_detection_info.
16160
16161 * coding.h (struct coding_detection_info): New structure.
16162 (struct coding_system): Adjust prototype of the member `detector'.
16163 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16164
16165 2008-02-01 Kenichi Handa <handa@m17n.org>
16166
16167 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16168
16169 2008-02-01 Dave Love <fx@gnu.org>
16170
16171 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16172 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16173 to new local and nullify apropos_accumulate before returning.
16174 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16175
16176 2008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16179 correctly.
16180
16181 2008-02-01 Dave Love <fx@gnu.org>
16182
16183 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16184
16185 2008-02-01 Kenichi Handa <handa@m17n.org>
16186
16187 The following changes are to make character composition happen
16188 automatically on displaying.
16189
16190 * Makefile.in (lisp, shortlisp): Add composite.elc.
16191
16192 * composite.h (Qauto_composed, Vauto_composition_function)
16193 (Qauto_composition_function): Extern them.
16194
16195 * composite.c (Vcomposition_function_table)
16196 (Qcomposition_function_table): Delete variables.
16197 (Qauto_composed, Vauto_composition_function)
16198 (Qauto_composition_function): New variables.
16199 (run_composition_function): Don't call
16200 compose-chars-after-function.
16201 (update_compositions): Clear `auto-composed' text property.
16202 (compose_chars_in_text): Delete this function.
16203 (syms_of_composite): Staticpro Qauto_composed and
16204 Qauto_composition_function. Declare Vauto_composition_function as
16205 a Lisp variable.
16206
16207 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16208
16209 * xdisp.c (it_props): Add an entry for Qauto_composed.
16210 (handle_auto_composed_prop): New function.
16211
16212 * xselect.c (selection_data_to_lisp_data): Don't call
16213 compose_chars_in_text.
16214
16215 2008-02-01 Dave Love <fx@gnu.org>
16216
16217 * keyboard.c (read_char): Modify checking around use of
16218 Vkeyboard_translate_table.
16219
16220 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16221 and fix C types.
16222
16223 2008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16226 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16227 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16228 the case that the last byte is '\r' correctly.
16229 (decode_coding): Flush out the unprocessed data correctly.
16230 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16231
16232 2008-02-01 Dave Love <fx@gnu.org>
16233
16234 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16235 Add XK_ISO... case.
16236 (xaw_scroll_callback): Revert last change.
16237
16238 2008-02-01 Kenichi Handa <handa@m17n.org>
16239
16240 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16241
16242 2008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * xfaces.c (Vface_resizing_fonts): New variable.
16245 (struct font_name): New member `resizing_ratio'.
16246 (font_resizing_ratio): New function.
16247 (split_font_name): Set font->resizing_ratio.
16248 (better_font_p): Pay attention to font->resizing_ratio.
16249 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16250 RESX, and RESY fields.
16251 (try_alternative_families): Try scalable fonts if
16252 Vscalable_fonts_allowed is not Qt.
16253 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16254
16255 2008-02-01 Dave Love <fx@gnu.org>
16256
16257 * xterm.c (xaw_scroll_callback): Cast correctly.
16258
16259 2008-02-01 Dave Love <fx@gnu.org>
16260
16261 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16262 (lispy_kana_keys): Comment out.
16263 (make_lispy_event) [XK_kana_A]: Comment out.
16264
16265 * xterm.c (xaw_scroll_callback): Cast call_data.
16266 (XTread_socket): Deal with ASCII keysyms.
16267 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16268
16269 2008-02-01 Dave Love <fx@gnu.org>
16270
16271 * xterm.c (Vx_keysym_table): New.
16272 (syms_of_xterm): Initialize it.
16273 (XTread_socket): Use it.
16274 From head: Eliminate incorrect optimization that tried to avoid
16275 decoding the output of X*LookupString.
16276 (x_get_font_repertory): Delete charset declaration.
16277
16278 2008-02-01 Kenichi Handa <handa@m17n.org>
16279
16280 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16281 return 0.
16282 (Fdefine_coding_system_internal): Setup
16283 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16284
16285 2008-02-01 Dave Love <fx@gnu.org>
16286
16287 * coding.c (Fcheck_coding_system): Doc fix.
16288
16289 * editfns.c (Finsert_byte): Return a proper value.
16290
16291 2008-02-01 Kenichi Handa <handa@m17n.org>
16292
16293 * coding.c (decode_coding): Fix args to translate_chars. Pay
16294 attention to Vstandard_translation_table_for_decode.
16295 (encode_coding): Fix args to translate_chars. Pay attention to
16296 Vstandard_translation_table_for_encode.
16297
16298 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16299 SINGLE_BYTE_CHAR_P.
16300
16301 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16302 not by SINGLE_BYTE_CHAR_P.
16303
16304 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16305 SINGLE_BYTE_CHAR_P.
16306
16307 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16308 SINGLE_BYTE_CHAR_P.
16309
16310 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16311 by SINGLE_BYTE_CHAR_P.
16312
16313 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16314 SINGLE_BYTE_CHAR_P.
16315
16316 2008-02-01 Dave Love <fx@gnu.org>
16317
16318 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16319
16320 2008-02-01 Dave Love <fx@gnu.org>
16321
16322 * fns.c (Flanginfo): Fix typo.
16323
16324 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16325
16326 2008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16329 (detect_coding_emacs_mule, detect_coding_iso_2022)
16330 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16331 incomplete byte sequence. Don't update *mask when correctly detected.
16332 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16333 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16334 (detect_coding, detect_coding_system): Adjust for the changes above.
16335
16336 2008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * character.c (char_string): Rename from
16339 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16340 (string_char): Rename from string_char.
16341
16342 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16343 if C is greater than MAX_3_BYTE_CHAR.
16344 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16345 string_char instead of string_char_with_unification.
16346
16347 2008-02-01 Dave Love <fx@gnu.org>
16348
16349 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16350
16351 2008-02-01 Kenichi Handa <handa@m17n.org>
16352
16353 * keymap.c (push_key_description): Pay attention to force_multibyte.
16354
16355 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16356
16357 2008-02-01 Dave Love <fx@gnu.org>
16358
16359 * charset.c (define_charset_internal): Rename `supprementary'.
16360
16361 * Makefile.in (lisp, shortlisp): Remove latin-N.
16362
16363 2008-02-01 Dave Love <fx@gnu.org>
16364
16365 * xfns.c (x_window, x_window): Use use_xim.
16366
16367 * xterm.c (use_xim): Initialize.
16368 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16369 (x_term_init): Maybe set use_xim.
16370
16371 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16372
16373 2008-02-01 Kenichi Handa <handa@m17n.org>
16374
16375 * search.c (search_buffer): Fix case-fold-search of multibyte
16376 characters.
16377 (boyer_moore): Rename the last argument to char_high_bits.
16378
16379 2008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * xdisp.c (display_string): Fix for the case of zero width glyph.
16382
16383 * xfns.c (x_set_font): Change the error message of the case that
16384 x_new_fontset returns Qt.
16385
16386 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16387 (Finternal_set_lisp_face_attribute): Use signal_error for the
16388 error of invalid fontset.
16389
16390 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16391 fontset, return Qt.
16392
16393 2008-02-01 Dave Love <fx@gnu.org>
16394
16395 * unexelf.c (unexec): Make .got handling not SGI-specific.
16396
16397 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16398
16399 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16400
16401 * keyboard.c (read_key_sequence): Fix type error.
16402
16403 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16404 type error.
16405
16406 * fontset.c (fontset_add): Return Lisp_Object.
16407
16408 2008-02-01 Dave Love <fx@gnu.org>
16409
16410 * charset.h (charset_ordered_list_tick): Declare extern.
16411
16412 2008-02-01 Kenichi Handa <handa@m17n.org>
16413
16414 The following changes (and some of 2008-02-01 changes of mine) are
16415 for handling syntax, category, and case conversion for unibyte
16416 characters by converting them to multibyte on the fly. With these
16417 changes, we don't have to setup syntax and case tables for unibyte
16418 characters in each language environment.
16419
16420 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16421 multibyte if necessary.
16422
16423 * bytecode.c (Fbyte_code): Likewise.
16424
16425 * character.h (LEADING_CODE_LATIN_1_MIN)
16426 (LEADING_CODE_LATIN_1_MAX): New macros.
16427 (unibyte_to_multibyte_table): Extern it.
16428 (unibyte_char_to_multibyte): New macro.
16429 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16430 (CHAR_LEADING_CODE): New macro.
16431 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16432
16433 * character.c (unibyte_to_multibyte_table): New variable.
16434 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16435 (multibyte_char_to_unibyte): If C is an eight-bit character,
16436 convert it to the corresponding byte value.
16437
16438 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16439 not 1, signals an error. Update the elements of
16440 unibyte_to_multibyte_table.
16441 (init_charset_once): Initialize unibyte_to_multibyte_table.
16442 (syms_of_charset): Define the charset `iso-8859-1'.
16443
16444 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16445 as is without converting it to unibyte. In a unibyte buffer,
16446 convert C to multibyte before checking the syntax.
16447
16448 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16449
16450 * minibuf.c (Fminibuffer_complete_word): Use the macro
16451 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16452
16453 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16454
16455 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16456 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16457 that is zero, convert an eight-bit char to multibyte.
16458 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16459 non-emacs case.
16460 (PATFETCH): Convert an eight-bit char to multibyte.
16461 (HANDLE_UNIBYTE_RANGE): New macro.
16462 (regex_compile): Setup the compiled pattern for multibyte chars
16463 even if the given regex string is unibyte. Use PATFETCH_RAW
16464 instead of PATFETCH in many places. To handle `charset'
16465 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16466 only for ASCII chars.
16467 (analyse_first) <exactn>: Simplify because the compiled pattern
16468 is multibyte.
16469 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16470 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16471 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16472 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16473 multibyte always 1.
16474 (re_search_2): In emacs, set the locale variable multibyte to 1,
16475 otherwise to 0. New local variable target_multibyte. Check it
16476 to decide the multibyteness of STR1 and STR2. If
16477 target_multibyte is zero, convert unibyte chars to multibyte
16478 before translating and checking fastmap.
16479 (TARGET_CHAR_AND_LENGTH): New macro.
16480 (re_match_2_internal): In emacs, set the locale variable multibyte
16481 to 1, otherwise to 0. New local variable target_multibyte. Check
16482 it to decide the multibyteness of STR1 and STR2. Use
16483 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16484 <charset, charset_not>: If multibyte is nonzero, check fastmap
16485 only for ASCII chars. Call bcmp_translate with
16486 target_multibyte, not with multibyte.
16487 <begline>: Declare the local variable C as `unsigned'.
16488 (bcmp_translate): Change the last arg name to target_multibyte.
16489
16490 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16491 the regexp pattern and the matching target. Set cp->buf.multibyte
16492 to the multibyteness of the regexp pattern. Set
16493 cp->but.target_multibyte to the multibyteness of the matching target.
16494 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16495 FETCH_STRING_CHAR_ADVANCE.
16496 (Freplace_match): Convert unibyte chars to multibyte.
16497
16498 * syntax.c (char_quoted, back_comment, scan_words)
16499 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16500 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16501 unibyte chars to multibyte.
16502 (skip_chars): Delete the arg syntaxp, and move the code for
16503 handling syntaxes to skip_syntaxes. Change callers.
16504 Fix the case that the multibyteness of STRING and the current
16505 buffer doesn't match.
16506 (skip_syntaxes): New function.
16507 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16508 SINGLE_BYTE_CHAR_P.
16509
16510 2008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * xfaces.c (QCfontset): New variable.
16513 (LFACE_FONTSET): New macro.
16514 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16515 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16516 (Finternal_set_lisp_face_attribute)
16517 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16518 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16519 check also LFACE_FONTSET_INDEX.
16520 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16521 attrs[LFACE_FONT_INDEX].
16522 (syms_of_xfaces): Intern and staticpro QCfontset.
16523
16524 * dispextern.h (enum lface_attribute_index): New member
16525 LFACE_FONTSET_INDEX.
16526
16527 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16528
16529 2008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * coding.c (coding_set_destination): Fix coding->destination for
16532 the case converting a region.
16533 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16534 (encode_coding_object): Fix coding->dst_pos and
16535 coding->dst_pos_byte for the case converting a region.
16536
16537 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16538
16539 * character.h (BYTE8_STRING): New macro.
16540
16541 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16542
16543 2008-02-01 Kenichi Handa <handa@m17n.org>
16544
16545 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16546 characters by octal form.
16547
16548 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16549
16550 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16551 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16552 _fetch_multibyte_char_len.
16553 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16554
16555 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16556
16557 * casefiddle.c (casify_object): Simplify. Handle the case that
16558 the case conversion change the byte length.
16559 (casify_region): Likewise.
16560
16561 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16562
16563 * character.c (_fetch_multibyte_char_len): Delete this variable.
16564 (syms_of_character): Setup Vprintable_chars.
16565
16566 * editfns.c (Fchar_equal): Fix for the unibyte case.
16567 (Finsert_byte): New function.
16568 (syms_of_editfns): Defsubr it.
16569
16570 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16571 of direct code 0x3ffff.
16572
16573 * search.c (Freplace_match): Fix for the unibyte case.
16574
16575 2008-02-01 Kenichi Handa <handa@m17n.org>
16576
16577 * lread.c (safe_to_load_p): Fix the logic.
16578
16579 * syntax.c (scan_words): Don't treat characters belonging to
16580 different scripts as constituting a word.
16581
16582 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16583
16584 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16585
16586 * emacs.c (main): In the case of --unibyte, instead of aborting on
16587 finding non-empty buffer, make it unibyte.
16588
16589 2008-02-01 Kenichi Handa <handa@m17n.org>
16590
16591 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16592 to create a fontset.
16593
16594 2008-02-01 Dave Love <fx@gnu.org>
16595
16596 * character.c (Funibyte_char_to_multibyte): Doc fix.
16597
16598 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16599
16600 2008-02-01 Kenichi Handa <handa@m17n.org>
16601
16602 * fontset.c (fontset_add): Make the type `int'.
16603 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16604
16605 * character.c (unibyte_char_to_multibyte)
16606 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16607 charset_unibyte, not charset_primary.
16608
16609 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16610
16611 * charset.c (charset_unibyte): Rename from charset_primary.
16612 (Funibyte_charset): Rename from Fprimary_charset.
16613 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16614 (syms_of_charset): Adjust for the above changes.
16615
16616 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16617 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16618 it->multibyte_p is zero.
16619
16620 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16621 Delete extern.
16622
16623 2008-02-01 Kenichi Handa <handa@m17n.org>
16624
16625 * coding.c (Fdefine_coding_system_internal): Fix category setting
16626 for a coding system of type iso-2022.
16627
16628 2008-02-01 Kenichi Handa <handa@m17n.org>
16629
16630 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16631
16632 2008-02-01 Kenichi Handa <handa@m17n.org>
16633
16634 * syntax.c (Vnext_word_boundary_function_table): New variable.
16635 (next-word-boundary-function-table): Declare it as a Lisp variable
16636 in syms_of_syntax.
16637 (scan_words): Call functions in Vnext_word_boundary_function_table
16638 if any.
16639
16640 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16641
16642 * fontset.c (fs_load_font): If fontp->charset is not negative,
16643 return fontp without setting its members.
16644
16645 2008-02-01 Dave Love <fx@gnu.org>
16646
16647 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16648
16649 * m/sparc.h (HAVE_ALLOCA): Delete.
16650
16651 * s/irix6-5.h: Don't include strings.h.
16652 (bcopy, bzero, bcmp): Don't undef.
16653
16654 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16655
16656 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16657 (TIOCSIGSEND): Don't test IRIX6.
16658 (bcopy, bzero, bcmp): Define conditionally.
16659
16660 2008-02-01 Kenichi Handa <handa@m17n.org>
16661
16662 * buffer.c (Qas, Qmake, Qto): New variables.
16663 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16664 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16665
16666 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16667 we are inserting a process output into a multibyte buffer.
16668
16669 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16670 multibyte_char_to_unibyte.
16671
16672 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16673 by the primary charset, make it eight-bit char.
16674 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16675
16676 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16677 (charset_8_bit__control, charset_8_bit_graphic)
16678 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16679 (define_charset_internal): New function.
16680 (syms_of_charset): Call define_charset_internal for pre-defined
16681 charsets.
16682
16683 * charset.h (charset_8_bit): Extern it.
16684
16685 * coding.c (make_conversion_work_buffer): Adjust for the change
16686 of Fset_buffer_multibyte.
16687 (encode_coding_raw_text): Increment p0 in the loop.
16688
16689 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16690
16691 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16692 for the change of Fset_buffer_multibyte.
16693
16694 * fns.c (Fstring_to_multibyte): New function.
16695 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16696
16697 2008-02-01 Dave Love <fx@gnu.org>
16698
16699 * xfns.c (x_put_x_image): Declare args.
16700
16701 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16702 (try_font_list): Declare an arg.
16703
16704 * xdisp.c (message2_nolog, set_message): Declare an arg.
16705
16706 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16707
16708 * syntax.c (scan_sexps_forward): Declare an arg.
16709
16710 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16711 Declare an arg.
16712
16713 * lisp.h (Fnew_fontset): Declare.
16714
16715 * keymap.c (push_key_description): Call CHARACTERP correctly.
16716
16717 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16718 (face_for_char): Delete unused vars.
16719 (Fset_fontset_font): Doc fix. Delete unused vars.
16720
16721 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16722
16723 * composite.c (update_compositions): Declare arg.
16724
16725 * cm.c (calccost, cmgoto): Declare args.
16726
16727 * charset.c: Remove `emacs' conditional. Doc fixes.
16728 (map_char_table_for_charset): Declare.
16729
16730 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16731
16732 * ccl.c: Remove `emacs' conditional.
16733
16734 2008-02-01 Kenichi Handa <handa@m17n.org>
16735
16736 The following changes are to allow specifying multiple font
16737 patterns for a character range (specified by script or charset).
16738
16739 * Makefile.in (abbrev.o): Depend on syntax.h.
16740 (xfaces.o): Depend on charset.h.
16741
16742 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16743 SINGLE_BYTE_CHAR_P.
16744
16745 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16746
16747 * character.h (Vchar_script_table): Extern it.
16748
16749 * character.c (Vscript_alist): Delete.
16750 (Vchar_script_table, Qchar_script_table): New variable.
16751 (syms_of_character): Declare Vchar_script_table as a lisp variable
16752 and initialize it.
16753
16754 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16755 have property char-table-extra-slots, make no extra slot.
16756
16757 * dispextern.h (struct face): Delete member `charset'.
16758 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16759 SINGLE_BYTE_CHAR_P.
16760 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16761 Add prototypes.
16762 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16763 (generate_ascii_font_name): Rename from generate_ascii_font.
16764
16765 * fontset.h (get_font_repertory_func): New prototype.
16766 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16767 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16768
16769 * fontset.c (Qprepend, Qappend): New variables.
16770 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16771 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16772 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16773 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16774 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16775 (load_font_get_repertory): New functions.
16776 (fontset_set): Delete.
16777 (fontset_face): New arg FACE. Return face ID, not face.
16778 Complete re-write to handle new fontset structure. Change caller.
16779 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16780 (face_for_char): Don't call lookup_face.
16781 (make_fontset_for_ascii_face): New arg FACE.
16782 (fs_load_font): New arg CHARSET_ID. Don't check
16783 Vfont_encoding_alist here.
16784 (find_font_encoding): New function.
16785 (list_fontsets): Use STRINGP, not ! NILP.
16786 (accumulate_script_ranges): New function.
16787 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16788 re-written to handle new fontset structure.
16789 (Ffontset_font): Return a copy of element.
16790 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16791 docstring of font-encoding-alist.
16792
16793 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16794 (Fset_fotset_font): Fix arguments to 5.
16795
16796 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16797
16798 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16799 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16800 (highlight_trailing_whitespace): Adjust for the change of
16801 lookup_named_face.
16802
16803 * xfaces.c: Include charset.h.
16804 (load_face_font): Delete argument C. Change caller.
16805 (generate_ascii_font_name): Rename from generate_ascii_font.
16806 (font_name_registry): New function.
16807 (cache_face): Store ascii faces before non-ascii faces in buckets.
16808 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16809 Lookup only ascii faces.
16810 (lookup_non_ascii_face): New function.
16811 (lookup_named_face): Delete argument C. Change caller.
16812 (lookup_derived_face): Delete argument C. Change caller.
16813 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16814 a string, just call font_list with it.
16815 (choose_face_font): Delete arguments FACE and C. New arg
16816 FONT_SPEC. Change caller.
16817 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16818 Change caller.
16819 (realize_non_ascii_face): New function.
16820 (realize_x_face): Call load_face_font here.
16821 (realize_tty_face): Delete argument C. Change caller.
16822 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16823 get a face ID.
16824 (dump_realized_face): Don't print charset of FACE.
16825
16826 * xfns.c (x_set_font): Always call x_new_fontset and
16827 store_frame_parameter.
16828 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16829 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16830
16831 * xterm.h (x_get_font_repertory): Extern it.
16832
16833 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16834 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16835 it->multibyte_p is zero.
16836 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16837 (x_new_fontset): If FONTSETNAME doesn't match any existing
16838 fontsets, create a new one.
16839 (x_get_font_repertory): New function.
16840
16841 2008-02-01 Kenichi Handa <handa@m17n.org>
16842
16843 * coding.c (Ffind_coding_systems_region_internal): Detect an
16844 ASCII only string correctly.
16845
16846 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16847 version is 0.
16848
16849 2008-02-01 Kenichi Handa <handa@m17n.org>
16850
16851 * lread.c: Include "coding.h".
16852 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16853 (load_each_byte, unread_char): New variables.
16854 (readchar_backlog): Delete.
16855 (readchar): Return a character unless load_each_byte is nonzero.
16856 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16857 cons. If unread_char is not -1, simply return it.
16858 (unreadchar): Handle the case that readcharfun is
16859 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16860 (read_multibyte): Delete.
16861 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16862 (read_emacs_mule_char): New functions.
16863 (Fload): Even if the file doesn't have the extension ".elc", if
16864 safe_to_load_p returns a positive version number, assume that the
16865 file contains bytecompiled code. If the version is less than 22,
16866 load the file while decoding multibyte sequences by emacs-mule.
16867 (readevalloop): Don't use readchar_backlog.
16868 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16869 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16870 (read_escape): Delete the arg BYTEREP.
16871 (read1): Set load_each_byte to 1 temporarily while handling
16872 #@NUMBER. Don't call read_multibyte.
16873 (read_vector): Call Fread with a cons. If readcharfun is
16874 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16875 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16876 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16877 and Qload_force_doc_strings.
16878
16879 2008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * xdisp.c (face_before_or_after_it_pos): Call
16882 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16883
16884 2008-02-01 Kenichi Handa <handa@m17n.org>
16885
16886 * character.h (TRAILING_CODE_P): New macro.
16887 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16888 (string_char_with_unification): Fix prototype.
16889 (Vscript_alist): Extern it.
16890
16891 * character.c (Vscript_alist): New variable.
16892 (string_char_with_unification, str_as_unibyte)
16893 (string_escape_byte8): Add `const' to local variables.
16894 (syms_of_character): Declare script-alist as a Lisp variable.
16895
16896 * charset.h (Vcharset_ordered_list): Extern it.
16897 (charset_ordered_list_tick): Extern it.
16898 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16899 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16900 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16901 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16902 (Funify_charset): Adjust for the change of Funify_charset.
16903
16904 * charset.c (charset_ordered_list_tick): New variable.
16905 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16906 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16907 deunify intead of unify a charset.
16908 (string_xstring_p): Add `const' to local variables.
16909 (find_charsets_in_text): Add `const' to arguments and local variables.
16910 (encode_char): Adjust for the change of Funify_charset. Fix
16911 detecting of invalid code.
16912 (Fset_charset_priority): Increment charset_ordered_list_tick.
16913 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16914 and TO_CODE.
16915
16916 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16917 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16918 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16919 (decode_coding_ccl, consume_chars)
16920 (Ffind_coding_systems_region_internal)
16921 (Fcheck_coding_systems_region): Add `const' to local variables.
16922
16923 * print.c (print_object): Use octal form for printing the
16924 contents of a bool vector.
16925
16926 2008-02-01 Dave Love <fx@gnu.org>
16927
16928 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16929 <version == 20>: Refuse to load.
16930
16931 2008-02-01 Dave Love <fx@gnu.org>
16932
16933 * fns.c: Move coding.h.
16934 (Qcodeset, Qdays, Qmonths): New.
16935 (concat): Use CHARACTERP instead of INTEGERP.
16936 (Flocale_codeset): Delete.
16937 (Flanginfo): New function.
16938 (syms_of_fns): Change accordingly.
16939
16940 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16941
16942 2008-02-01 Dave Love <fx@gnu.org>
16943
16944 * casetab.c (init_casetab_once, init_casetab_once): Fix
16945 CHAR_TABLE_SET call.
16946
16947 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16948
16949 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16950
16951 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16952 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16953 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16954
16955 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16956
16957 * coding.c (ENCODE_DESIGNATION, decode_eol)
16958 (make_conversion_work_buffer, code_conversion_restore)
16959 (Fdefine_coding_system_internal): Convert Lisp types.
16960 (code_conversion_restore): Use EQ, not ==.
16961 (Fencode_coding_string): Fix code_convert_string call.
16962
16963 * coding.h (code_convert_region): Fix prototype.
16964
16965 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16966
16967 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16968 (Ffontset_info): Convert Lisp types.
16969
16970 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16971
16972 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16973
16974 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16975
16976 * chartab.c: Include "...h", not <...h> in some cases.
16977
16978 * callproc.c (Fcall_process): Remove unused variables.
16979
16980 2008-02-01 Dave Love <fx@gnu.org>
16981
16982 * coding.c (Fset_coding_system_priority): Allow null arg list.
16983
16984 2008-02-01 Dave Love <fx@gnu.org>
16985
16986 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16987 (Fself_insert_and_exit): Use CHARACTERP.
16988
16989 * callproc.c (Fcall_process): Remove unused vars.
16990
16991 * xterm.c (XTread_socket): Add extra dead keysyms.
16992
16993 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16994
16995 * dispextern.h: Remove prototypes for redraw_frame,
16996 redraw_garbaged_frames.
16997
16998 * cmds.c (Fself_insert_command): Use CHARACTERP.
16999
17000 * chartab.c (make_sub_char_table): Remove unused var.
17001 (Fset_char_table_default, Fmap_char_table): Doc fix.
17002
17003 * keymap.c (access_keymap): Remove generic char code.
17004 (push_key_description): Use CHARACTERP.
17005
17006 2008-02-01 Dave Love <fx@gnu.org>
17007
17008 * charset.c: Doc fixes.
17009 (Funify_charset): Extra checking.
17010
17011 2008-02-01 Dave Love <fx@gnu.org>
17012
17013 * lread.c: Remove some unused variables.
17014 (safe_to_load_p): If safe, return the magic number version byte.
17015 (Fload): Maybe use load-with-code-conversion.
17016
17017 2008-02-01 Kenichi Handa <handa@m17n.org>
17018
17019 * category.c (Fmodify_category_entry): Don't modify the contents
17020 of category_set for characters out of the range. Avoid
17021 unnecessary modification.
17022
17023 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17024 Vchar_unify_table. The default value of the table is now nil.
17025
17026 * character.c (syms_of_character): Setup Vchar_width_table for
17027 eight-bit-control and raw-byte chars.
17028
17029 * charset.h (enum define_charset_arg_index): Delete
17030 charset_arg_parents and add charset_arg_subset and
17031 charset_arg_superset.
17032 (enum charset_attr_index): Delete charset_parents and add
17033 charset_subset and charset_superset.
17034 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17035 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17036 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17037 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17038 (CHARSET_SUPERSET): New macros.
17039 (charset_work): Extern it.
17040 (ENCODE_CHAR): Use charset_work.
17041 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17042 (map_charset_chars): Extern it.
17043
17044 * charset.c (load_charset_map): Set the default value of encoder
17045 and deunifier char-tables to nil.
17046 (map_charset_chars): Change argument. Change callers. Use
17047 map_char_table_for_charset instead of map_char_table.
17048 (Fmap_charset_chars): New optional args from_code and to_code.
17049 (Fdefine_charset_internal): Adjust for the change of
17050 `define-charset' (:parents -> :subset or :superset).
17051 (charset_work): New variable.
17052 (encode_char, syms_of_charset): Adjust for the change of
17053 Fdefine_charset_internal.
17054 (Ffind_charset_string): Setup the vector `charsets' correctly.
17055
17056 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17057 the previous change.
17058 (char_table_ref_and_range): Adjust for the above change.
17059 (map_sub_char_table_for_charset): New function.
17060 (map_char_table_for_charset): New function.
17061
17062 * keymap.c (describe_vector): Handle a char-table directly here.
17063 (describe_char_table): Delete.
17064
17065 * lisp.h (map_charset_chars): Delete.
17066
17067 2008-02-01 Dave Love <fx@gnu.org>
17068
17069 * fns.c (count_combining): Comment out (unused).
17070 (Flocale_codeset): New.
17071 (syms_of_fns): Defsubr it.
17072
17073 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17074 (size_t): Remove.
17075
17076 2008-02-01 Dave Love <fx@gnu.org>
17077
17078 * Makefile.in (chartab.o): Depend on charset.h.
17079
17080 2008-02-01 Kenichi Handa <handa@m17n.org>
17081
17082 * character.c (syms_of_character): Set the default value of
17083 Vprintable_chars to Qnil.
17084
17085 2008-02-01 Dave Love <fx@gnu.org>
17086
17087 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17088
17089 2008-02-01 Kenichi Handa <handa@m17n.org>
17090
17091 * charset.c (load_charset_map): Handle the case that from < to
17092 correctly.
17093
17094 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17095 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17096 Pay attention to raw-8-bit chars.
17097
17098 2008-02-01 Kenichi Handa <handa@m17n.org>
17099
17100 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17101 It is not bytecompiled now.
17102
17103 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17104 (charset_jisx0208): New variables.
17105 (Fdefine_charset_internal): Setup them if appropriate.
17106 (init_charset_once): Initialize them to -1.
17107
17108 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17109 (charset_jisx0208): Extern them.
17110
17111 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17112 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17113 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17114 (setup_iso_safe_charsets): Fix arguments to Fassq.
17115 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17116 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17117 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17118 (encode_coding_iso_2022): Change the 1st arg to
17119 ENCODE_ISO_CHARACTER to a variable.
17120
17121 2008-02-01 Kenichi Handa <handa@m17n.org>
17122
17123 * charset.h (enum define_charset_arg_index): New enums
17124 charset_arg_min_code and charset_arg_max_code.
17125 (struct charset): New member char_index_offset.
17126
17127 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17128 Take charset->char_index_offset into account.
17129 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17130 args[charset_arg_max_code]. Setup charset.char_index_offset.
17131 (syms_of_charset): Fix args to Fdefine_charset_internal.
17132
17133 2008-02-01 Dave Love <fx@gnu.org>
17134
17135 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17136
17137 2008-02-01 Dave Love <fx@gnu.org>
17138
17139 * coding.c: Doc fixes.
17140 (Fcoding_system_aliases): Fix return value.
17141 (Qmac): Remove (duplicated) definition.
17142
17143 2008-02-01 Dave Love <fx@gnu.org>
17144
17145 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17146 New functions.
17147
17148 * character.c (Fstring): Doc fix.
17149
17150 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17151
17152 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
17153 (font-encoding-alist): Doc fix.
17154
17155 2008-02-01 Dave Love <fx@gnu.org>
17156
17157 * term.c (costs_set): Declare static, non-initialized for pcc.
17158 (encode_terminal_code): Remove unused var.
17159
17160 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17161 for K&R.
17162
17163 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17164
17165 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17166 (suffixes): Move out of make_subsidiaries for K&R.
17167
17168 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17169
17170 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17171
17172 2008-02-01 Dave Love <fx@gnu.org>
17173
17174 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17175
17176 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17177
17178 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17179
17180 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17181
17182 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17183
17184 2008-02-01 Kenichi Handa <handa@m17n.org>
17185
17186 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17187 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17188
17189 2008-02-01 Kenichi Handa <handa@m17n.org>
17190
17191 * coding.c (decode_coding_charset): Adjust for the change of
17192 Fdefine_coding_system_internal.
17193 (Fdefine_coding_system_internal): For a coding system of
17194 `charset' type, store a list of charset IDs in
17195 `charset_attr_charset_valids' element of coding attributes.
17196
17197 2008-02-01 Kenichi Handa <handa@m17n.org>
17198
17199 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17200 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17201 caller. Handle 2-byte and 3-byte charsets correctly.
17202 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17203 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17204 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17205 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17206 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17207 sequence.
17208 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17209 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17210 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17211 and alt&rule composition.
17212 (decode_coding_iso_2022): Handle composition correctly.
17213 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17214
17215 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17216 re-defining a charset. If the charset has :emacs-mule-id, setup
17217 emacs_mule_bytes.
17218 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17219
17220 2008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17223 (encode_coding_big5, encode_coding_charset): If coding requires safe
17224 encoding, produce a character specified by
17225 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17226
17227 2008-02-01 Dave Love <fx@gnu.org>
17228
17229 * xterm.c (XSetIMValues): Declare.
17230
17231 * process.c: Conditionally include sys/wait.h, pty.h.
17232
17233 * print.c (print_object): Fix print format for 64-bit systems.
17234
17235 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17236
17237 * buffer.c (emacs_strerror): Declare.
17238
17239 * fontset.c (Fclear_face_cache): Declare.
17240 (accumulate_font_info): Comment-out (unused).
17241 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17242 variables.
17243
17244 * character.h (string_escape_byte8): Declare.
17245
17246 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17247 unused vars.
17248 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17249 (Fmap_charset_chars): Doc fix.
17250
17251 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17252 (Fset_coding_system_priority, Fset_coding_system_priority)
17253 (Fdefine_coding_system_internal): Doc fix.
17254
17255 2008-02-01 Dave Love <fx@gnu.org>
17256
17257 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17258
17259 2008-02-01 Kenichi Handa <handa@m17n.org>
17260
17261 * character.c (string_escape_byte8): Make multibyte string with
17262 correct size.
17263
17264 * charset.c (Fmake_char): Delete unnecessary code.
17265
17266 2008-02-01 Kenichi Handa <handa@m17n.org>
17267
17268 * xfns.c (x_encode_text): Allocate coding.destination here, and
17269 call encode_coding_object with dst_object Qnil.
17270
17271 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17272 multibyte form correctly.
17273
17274 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17275 against Vfont_encoding_alist.
17276
17277 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17278 handling of charset list.
17279 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17280 (decode_coding_object): Move point to coding->dst_pos before
17281 calling post-read-conversion function.
17282 (encode_coding_object): Give correct arguments to
17283 pre-write-conversion. Ignore the return value of
17284 pre-write-conversion function. Pay attention to the case that
17285 pre-write-conversion changes the current buffer. If dst_object is
17286 Qt, even if coding->src_bytes is zero, allocate at least one byte
17287 to coding->destination.
17288
17289 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17290
17291 * charset.c (Fmake_char): Make it more backward compatible.
17292 (Fmap_charset_chars): Fix docstring.
17293
17294 2008-02-01 Dave Love <fx@gnu.org>
17295
17296 * coding.c: Doc fixes.
17297 (Fdefine_coding_system_alias): Use names, not symbols, in
17298 coding-system-alist.
17299
17300 2008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17303 of calling free_realized_face.
17304
17305 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17306
17307 * charset.c (read_hex): Don't treat SPC as a comment starter.
17308 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17309 (Fdecode_char): Fix typo.
17310
17311 2008-02-01 Kenichi Handa <handa@m17n.org>
17312
17313 * charset.h (struct charset): New member `code_space_mask'.
17314
17315 * coding.c (coding_set_source): Delete the local variable beg_byte.
17316 (encode_coding_charset, Fdefine_coding_system_internal):
17317 Delete the local variable charset.
17318 (Fdefine_coding_system_internal): Setup
17319 attrs[coding_attr_charset_valids] correctly.
17320
17321 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17322 member to check if CODE is valid or not.
17323 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17324 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17325 is within the range of charset->min_code and carset->max_code.
17326
17327 2008-02-01 Dave Love <fx@gnu.org>
17328
17329 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17330
17331 * dispextern.h (generate_ascii_font): Fix return type.
17332
17333 * xfaces.c (generate_ascii_font): Fix arg declaration.
17334
17335 * coding.c (coding_inherit_eol_type)
17336 (Fset_terminal_coding_system_internal)
17337 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17338
17339 2008-02-01 Kenichi Handa <handa@m17n.org>
17340
17341 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17342 multiple charsets correctly.
17343
17344 2008-02-01 Kenichi Handa <handa@m17n.org>
17345
17346 * search.c (boyer_moore): Fix handling of multibyte character
17347 translation.
17348
17349 * xdisp.c (display_mode_element): When the variable `elt' is
17350 changed, update `this' and `lisp_string'.
17351
17352 2008-02-01 Kenichi Handa <handa@m17n.org>
17353
17354 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17355
17356 * callproc.c (Fcall_process): Be sure to give the current buffer
17357 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17358
17359 * charset.c (struct charset_map_entries): New struct.
17360 (load_charset_map): Rename from parse_charset_map. New args
17361 entries and n_entries. Change caller.
17362 (load_charset_map_from_file): Rename from load_charset_map.
17363 Change caller. New arg control_flag. Call load_charset_map at
17364 the tail.
17365 (load_charset_map_from_vector): New function.
17366 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17367 (encode_char): If the charset is compact, change a character index
17368 to a code point.
17369
17370 * coding.c (coding_alloc_by_making_gap): Check the case that the
17371 source and destination are the same correctly.
17372 (decode_coding_raw_text): Set coding->consumed_char and
17373 coding->consumed to 0.
17374 (produce_chars): If coding->chars_at_source is nonzero, update
17375 coding->consumed_char and coding->consumed before calling
17376 alloc_destination.
17377 (Fdefine_coding_system_alias): Register ALIAS in
17378 Vcoding_system_alist.
17379 (syms_of_coding): Define `no-conversion' coding system at the tail.
17380
17381 * fileio.c (Finsert_file_contents): Set coding_system instead of
17382 val. If the current buffer is multibyte, always call
17383 decode_coding_gap.
17384
17385 * xfaces.c (try_font_list): Give higher priority to fontset's
17386 family than face's family.
17387
17388 2008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * callproc.c (Fcall_process): Be sure to give the current buffer
17391 to decode_coding_c_string.
17392
17393 * xfaces.c (try_font_list): Give a family specified in a fontset
17394 higher priority than a family specified in a face.
17395
17396 2008-02-01 Kenichi Handa <handa@m17n.org>
17397
17398 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17399 Fix arguments to insert_from_buffer.
17400
17401 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17402
17403 2008-02-01 Kenichi Handa <handa@m17n.org>
17404
17405 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17406 (decode_coding_gap): Set coding->dst_multibyte correctly.
17407
17408 2008-02-01 Kenichi Handa <handa@m17n.org>
17409
17410 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17411 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17412 (encode_coding_utf_16): Substitute coding->default_char for
17413 non-Unicode characters.
17414 (decode_coding): Don't call record_insert here.
17415 (setup_coding_system): Initialize `surrogate' of
17416 coding->spec.utf_16 to 0.
17417 (EMIT_ONE_BYTE): Fix for multibyte case.
17418
17419 * insdel.c (insert_from_gap): Call record_insert.
17420
17421 2008-02-01 Kenichi Handa <handa@m17n.org>
17422
17423 * casefiddle.c (casify_region): Fix multibyte case.
17424
17425 * character.c (c_string_width): Add return type `int'.
17426 (char_string_with_unification): Delete arg ADVANCED.
17427
17428 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17429 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17430 (CHAR_STRING_ADVANCE): Make it do-while statement.
17431
17432 * chartab.c (sub_char_table_set_range): Optimize for the case
17433 DEPTH == 3. Add workaround code for a GCC optimization bug.
17434
17435 * charset.c (parse_charset_map): Remove an unused variable.
17436
17437 * coding.c: Delete unused variables.
17438
17439 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17440 earlier. If inserted is zero and the coding system doesn't
17441 require flushing, don't call decode_coding_gap.
17442
17443 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17444
17445 2008-02-01 Kenichi Handa <handa@m17n.org>
17446
17447 The following changes are for using Unicode as an internal
17448 character model, and use UTF-8 format for buffer/string
17449 representation.
17450
17451 * .gdbinit (xchartable): Adjust for the change of char table structure.
17452 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17453
17454 * Makefile.in (obj): Add character.o and chartab.o.
17455 (lisp, shortlisp): Remove utf-8.elc.
17456 (*.o): For many files, change dependency on charset.h to
17457 character.h, and add dependency on character.h.
17458 (character.o, chartab.o): New targets.
17459
17460 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17461 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17462 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17463 of "charset.h".
17464
17465 * dired.c, filelock.c: Include "character.h".
17466
17467 * alloc.c: Include "character.h" instead of "charset.h".
17468 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17469 (syms_of_alloc): Remove defsubr for Smake_char_table.
17470
17471 * buffer.c: Include "character.h" instead of "charset.h", don't
17472 include "coding.h".
17473 (Fset_buffer_multibyte): Adjust for UTF-8.
17474
17475 * buffer.h: EXFUN Fbuffer_live_p.
17476
17477 * callproc.c: Include "character.h" instead of "charset.h".
17478 (Fcall_process): Big change for the new code-conversion APIs.
17479
17480 * casetab.c: Include "character.h" instead of "charset.h".
17481 (set_canon, set_identity, shuffle): Adjust for the new
17482 map_char_table spec.
17483 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17484 accessing the char table structure.
17485
17486 * chartab.c: New file that implements char table.
17487
17488 * category.c: Include "character.h".
17489 (copy_category_entry): New function.
17490 (copy_category_table): Call map_char_table and copy_category_entry.
17491 (Fmake_category_table): Initialize all top-level slots.
17492 (char_category_set): New function.
17493 (modify_lower_category_set): Delete.
17494 (Fmodify_category_entry): Call char_table_ref_and_range.
17495
17496 * category.h (CATEGORY_SET): Just call char_category_set.
17497
17498 * ccl.c: Include "character.h".
17499 (Qccl, Qcclp): New variables.
17500 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17501 it's less than 256.
17502 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17503 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17504 and DST type.
17505 (ccl_driver): Change types of argument, adjust code accordingly.
17506 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17507 ccl_driver.
17508 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17509
17510 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17511 New members src_multibyte, dst_multibyte, consumed, and produced.
17512 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17513 (CODING_SPEC_CCL_PROGRAM): New macro.
17514 (ccl_driver): Update prototype.
17515 (Qccl, Qcclp, Fccl_program_p): Extern them.
17516 (CHECK_CCL_PROGRAM): New macro.
17517
17518 * character.c, character.h, chartab.c: New files.
17519
17520 * charset.c: Mostly re-written. Move character and multibyte sequence
17521 handling codes to character.c.
17522
17523 * charset.h: Mostly re-written. Move character and multibyte sequence
17524 handling codes to character.h.
17525
17526 * coding.c, coding.h: Mostly re-written.
17527
17528 * composite.c: Include "character.h" instead of "charset.h".
17529 (CHAR_WIDTH): Move to character.h.
17530 (HASH_KEY, HASH_VALUE): Delete.
17531
17532 * composite.h (enum composition_method): Change order of enumeration
17533 symbols.
17534
17535 * data.c: Include "character.h" instead of "charset.h".
17536 (Faref): Call CHAR_TABLE_REF for a char table.
17537 (Faset): Call CHAR_TABLE_SET for a char table.
17538
17539 * dispextern.h (free_realized_face, check_face_attribytes)
17540 (generate_ascii_font): Extern them.
17541 (free_realized_multibyte_face): Delete extern.
17542
17543 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17544 table structure.
17545
17546 * editfns.c: Include "character.h" instead of "charset.h".
17547 (Fchar_to_string): Always call CHAR_STRING.
17548
17549 * emacs.c (main): Call init_charset_once, init_charset,
17550 syms_of_chartab, and syms_of_character.
17551
17552 * fileio.c: Include "character.h" instead of "charset.h".
17553 (Finsert_file_contents): Big change for the new code-conversion API.
17554 (choose_write_coding_system, Fwrite_region): Likewise.
17555 (build_annotations_2): Delete.
17556 (e_write): Big change for the new code-conversion API.
17557
17558 * fns.c: Include "character.h" instead of "charset.h".
17559 (copy_sub_char_table): Move to chartab.c.
17560 (Fcopy_sequence): Call copy_char_table for a char table.
17561 (concat): Delete codes calling count_multibyte.
17562 (string_char_to_byte, string_byte_to_char): Adjust for the new
17563 multibyte form.
17564 (internal_equal): Adjust for the change of char table structure.
17565 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17566 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17567 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17568 (char_table_translate, optimize_sub_char_table)
17569 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17570 chartab.c.
17571 (char_table_ref_and_index): Delete.
17572 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17573 (Fmd5): Call preferred_coding_system instead of accessing
17574 Vcoding_category_list. Adjust for the new code-conversion API.
17575 (syms_of_fns): Move defsubr for char table related functions to
17576 chartab.c.
17577
17578 * fontset.c: Mostly re-written.
17579
17580 * fontset.h (struct font_info): Change type of the member encoding_type.
17581 (enum FONT_SPEC_INDEX): New enum.
17582 (fontset_font_pattern, fs_load_font): Update prototype.
17583 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17584
17585 * indent.c: Include "character.h" instead of "charset.h".
17586 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17587
17588 * insdel.c: Include "character.h" instead of "charset.h".
17589 (copy_text): Don't refer to Vnonascii_translation_table.
17590 (insert_from_gap): New function.
17591
17592 * keyboard.c: Include "character.h" instead of "charset.h".
17593 (command_loop_1): Never call direct_output_forward_char before
17594 a non-ASCII character.
17595 (read_char): If Vkeyboard_translate_table is a char table, always
17596 translate a character.
17597
17598 * keymap.c: Include "character.h".
17599 (store_in_keymap): Handle the case that IDX is a cons.
17600 (Fdefine_key): Handle the case that KEY is a cons and the car part
17601 is also a cons (range).
17602 (push_key_description): Adjust for the new character code.
17603 (describe_vector): Call describe_char_table for a char table.
17604 (describe_char_table): New function.
17605
17606 * keymap.h (describe_char_table): Extern it.
17607
17608 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17609 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17610 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17611 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17612 Delete.
17613 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17614 structure.
17615 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17616 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17617 (CHARTAB_SIZE_BITS_3): New macros.
17618 (chartab_size): Extern it.
17619 (struct Lisp_Char_Table): Re-design.
17620 (struct Lisp_Sub_Char_Table): New structure.
17621 (HASH_KEY, HASH_VALUE): Move from fns.c.
17622 (CHARACTERBITS): Define as 22.
17623 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17624 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17625 (GC_SUB_CHAR_TABLE_P): New macro.
17626 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17627 (code_convert_string_norecord): Deleted extern.
17628 (init_character_once, syms_of_character, init_charset)
17629 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17630
17631 * lread.c: Include "character.h".
17632 (read_multibyte): New arg NBYTES.
17633 (read_escape): Change the meaning of returned *BYTEREP.
17634 (to_multibyte): Delete.
17635 (read1): Adjust the handling of char table and string.
17636
17637 * print.c: Include "character.h" instead of "charset.h".
17638 (print_string): Convert 8-bit raw bytes to octal form by
17639 string_escape_byte8.
17640 (print_object): Adjust for the new multibyte form. Print 8-bit
17641 raw bytes always in octal form. Handle sub char table correctly.
17642
17643 * process.c: Include "character.h" instead of "charset.h".
17644 (read_process_output, send_process): Adjust for the new
17645 code-conversion API.
17646
17647 * puresize.h (BASE_PURESIZE): Increase.
17648
17649 * regex.c: Include "character.h" instead of "charset.h".
17650 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17651 (regex_compile): Accept a range whose starting and ending
17652 character have different leading bytes.
17653 (analyse_first): Adjust for the above change.
17654
17655 * search.c: Include "character.h" instead of "charset.h".
17656 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17657 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17658
17659 * syntax.c: Include "character.h" instead of "charset.h".
17660 (syntax_parent_lookup): Delete.
17661 (Fmodify_syntax_entry): Accept a cons as CHAR.
17662 (skip_chars): Adjust for the new multibyte form.
17663 (init_syntax_once): Call char_table_set_range instead of directly
17664 accessing the structure of a char table.
17665
17666 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17667 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17668 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17669 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17670
17671 * term.c: Include "buffer.h" and "character.h".
17672 (encode_terminal_code, write_glyphs): Adjust for the new
17673 code-conversion API.
17674 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17675
17676 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17677
17678 * xdisp.c: Include "character.h".
17679 (get_next_display_element): Adjust for the new multibyte form.
17680 (disp_char_vector): Adjust for the new char table structure.
17681 (decode_mode_spec_coding): Adjust for the new structure of
17682 coding system.
17683 (decode_mode_spec): Adjust for the new code-conversion API.
17684
17685 * xfaces.c: Include "character.h" instead of "charset.h".
17686 (load_face_font): Adjust for the change of choose_face_font and
17687 FS_LOAD_FONT.
17688 (generate_ascii_font): New function.
17689 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17690 (set_font_frame_param): Adjust for the change of choose_face_font.
17691 (free_realized_face): Make it public.
17692 (free_realized_faces_for_fontset): Rename from
17693 free_realized_multibyte_face. Free also faces realized for ASCII.
17694 (choose_face_font): Change arguments. Adjust for the change of
17695 fontset_font_pattern and FS_LOAD_FONT.
17696
17697 * xfns.c: Include "character.h".
17698 (x_encode_text): Adjust for the new code-conversion API.
17699
17700 * xselect.c: Don't include "charset.h".
17701 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17702
17703 * xterm.c: Include "character.h".
17704 (x_encode_char): New argument CHARSET. Change caller.
17705 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17706 Call ENCODE_CHAR instead of SPLIT_CHAR.
17707 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17708 CHAR_WIDTH instead of CHARSET_WIDTH.
17709 (XTread_socket): Adjust for the new code-conversion API.
17710 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17711 (x_load_font): Adjust for the change of struct font.
17712
17713 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17714
17715 * xfaces.c (face_at_buffer_position): Remove unused vars.
17716
17717 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17718
17719 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17720 Fix overflow checking.
17721
17722 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17723
17724 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17725 Cancel previous change.
17726
17727 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17728
17729 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17730 ccl->eight_bit_control. Fix check for buffer overflow.
17731 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17732 (ccl_driver): Initialize extra_bytes to 0.
17733
17734 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17735
17736 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17737 return it ORed with ctrl_modifier.
17738
17739 2008-01-29 Miles Bader <miles@gnu.org>
17740
17741 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17742
17743 2008-01-28 Jason Rumney <jasonr@gnu.org>
17744
17745 * w32.c (stat): Don't double check for networked drive.
17746
17747 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17748
17749 * window.c (run_window_configuration_change_hook): New function.
17750 Code extracted from set_window_buffer. Set the selected frame.
17751 (set_window_buffer): Use it.
17752 * window.h (run_window_configuration_change_hook): Declare.
17753 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17754
17755 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17756
17757 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17758
17759 * Makefile.in: Remove references to unused macros.
17760
17761 2008-01-26 Eli Zaretskii <eliz@gnu.org>
17762
17763 * w32.c (g_b_init_get_sid_sub_authority)
17764 (g_b_init_get_sid_sub_authority_count): New static variables.
17765 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17766 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17767 (init_user_info): Use them to retrieve uid and gid.
17768 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17769 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17770 st_uid and st_gid of the file.
17771
17772 2008-01-26 Jason Rumney <jasonr@gnu.org>
17773
17774 * w32.c (logon_network_drive): New function.
17775 (stat): Use it.
17776
17777 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
17778
17779 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17780 invisible text covered with an ellipsis.
17781
17782 2008-01-25 Richard Stallman <rms@gnu.org>
17783
17784 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17785 jump back to beginning. Move some other initializations after that.
17786 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17787 New variables.
17788 (syms_of_xdisp): Init them.
17789
17790 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17791
17792 * buffer.c (reset_buffer_local_variables):
17793 Implement `permanent-local-hook'.
17794 (Qpermanent_local_hook): New variable.
17795 (syms_of_buffer): Init and staticpro it.
17796
17797 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
17798
17799 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17800
17801 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17802
17803 * fns.c (Fclrhash): Return TABLE.
17804
17805 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17806
17807 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17808 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17809 is set even without positional changes.
17810 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17811
17812 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17813
17814 2008-01-23 Jason Rumney <jasonr@gnu.org>
17815
17816 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17817
17818 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17819 the unicode range available in MULE by locale-coding-system.
17820 Improve dbcs lead byte detection. Set event timestamp and modifiers
17821 earlier.
17822
17823 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17824
17825 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17826 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17827 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17828 when used on child processes.
17829
17830 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
17831
17832 * dbusbind.c (Fdbus_method_return_internal): Rename from
17833 Fdbus_method_return.
17834 (Fdbus_unregister_object): Move to dbus.el.
17835 (Fdbus_call_method, Fdbus_method_return_internal)
17836 (Fdbus_send_signal): Improve debug messages.
17837
17838 2008-01-20 Martin Rudalics <rudalics@gmx.at>
17839
17840 * undo.c (undo_inhibit_record_point): New variable.
17841 (syms_of_undo): Initialize it.
17842 (record_point): Don't record point when undo_inhibit_record_point
17843 is set.
17844
17845 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17846
17847 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17848
17849 * xdisp.c (Qauto_hscroll_mode): New var.
17850 (syms_of_xdisp): Initialize it.
17851 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17852 window's buffer.
17853 (hscroll_windows): Don't check automatic_hscrolling_p here.
17854
17855 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17856 vscroll if we're setting window-buffer to the value it already has.
17857
17858 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17859
17860 * m/intel386.h: Remove references to XENIX.
17861
17862 2008-01-17 Andreas Schwab <schwab@suse.de>
17863
17864 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17865 instead of HAVE_X86_64_LIB64_DIR.
17866 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17867
17868 2008-01-17 Glenn Morris <rgm@gnu.org>
17869
17870 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17871 to HAVE_X86_64_LIB64_DIR.
17872
17873 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17874
17875 * s/irix3-3.h:
17876 * s/irix4-0.h:
17877 * s/386-ix.h:
17878 * s/domain.h:
17879 * s/hpux9-x11r4.h:
17880 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17881
17882 * sysdep.c: Remove code containing references to symbols defined
17883 by unsupported systems.
17884
17885 2008-01-16 Glenn Morris <rgm@gnu.org>
17886
17887 * coding.c (select-safe-coding-system-function): Doc fix.
17888
17889 2008-01-15 Glenn Morris <rgm@gnu.org>
17890
17891 * config.in: Revert 2008-01-13 change: this is a generated file.
17892
17893 2008-01-13 Tom Tromey <tromey@redhat.com>
17894
17895 * lisp.h: Fix typo.
17896
17897 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17898
17899 * m/sequent-ptx.h:
17900 * m/sequent.h:
17901 * s/ptx.h:
17902 * s/ptx4-2.h:
17903 * s/ptx4.h: Remove files for systems no longer supported.
17904
17905 * callproc.c (Fcall_process): Fix previous change.
17906
17907 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17908
17909 * unexsunos4.c: Remove file, system not supported anymore.
17910
17911 * m/mips.h:
17912 * m/intel386.h:
17913 * callproc.c:
17914 * config.in:
17915 * ecrt0.c:
17916 * emacs.c:
17917 * fileio.c:
17918 * frame.c:
17919 * getpagesize.h:
17920 * keyboard.c:
17921 * lread.c:
17922 * process.c:
17923 * puresize.h:
17924 * sysdep.c:
17925 * systty.h:
17926 * syswait.h:
17927 * unexec.c:
17928 * xdisp.c:
17929 * alloc.c: Remove code containing references to symbols defined by
17930 unsupported systems.
17931
17932 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17933
17934 * coding.c (detect_coding_mask): Fix previous change.
17935
17936 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17937
17938 * coding.c (detect_coding_iso2022): New arg
17939 latin_extra_code_state. Allow Latin extra codes only
17940 when *latin_extra_code_state is nonzero.
17941 (detect_coding_mask): If there is a NULL byte, detect the encoding
17942 as UTF-16 or binary. If Latin extra codes exist, detect the
17943 encoding as ISO-2022 only when there's no other proper encoding is
17944 found.
17945
17946 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17947
17948 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17949 #ifdef MAC_OS.
17950
17951 2008-01-08 Richard Stallman <rms@gnu.org>
17952
17953 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17954
17955 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
17956
17957 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17958 menu bar in parentheses.
17959
17960 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17961
17962 * m/7300.h:
17963 * m/acorn.h:
17964 * m/alliant-2800.h:
17965 * m/alliant.h:
17966 * m/alliant1.h:
17967 * m/alliant4.h:
17968 * m/altos.h:
17969 * m/amdahl.h:
17970 * m/apollo.h:
17971 * m/att3b.h:
17972 * m/aviion-intel.h:
17973 * m/aviion.h:
17974 * m/celerity.h:
17975 * m/clipper.h:
17976 * m/cnvrgnt.h:
17977 * m/convex.h:
17978 * m/cydra5.h:
17979 * m/delta88k.h:
17980 * m/dpx2.h:
17981 * m/dual.h:
17982 * m/elxsi.h:
17983 * m/f301.h:
17984 * m/gould-np1.h:
17985 * m/gould.h:
17986 * m/i860.h:
17987 * m/ibmps2-aix.h:
17988 * m/ibmrt-aix.h:
17989 * m/ibmrt.h:
17990 * m/irist.h:
17991 * m/is386.h:
17992 * m/isi-ov.h:
17993 * m/mega68.h:
17994 * m/mg1.h:
17995 * m/news-r6.h:
17996 * m/news-risc.h:
17997 * m/news.h:
17998 * m/nh3000.h:
17999 * m/nh4000.h:
18000 * m/ns16000.h:
18001 * m/ns32000.h:
18002 * m/nu.h:
18003 * m/orion.h:
18004 * m/orion105.h:
18005 * m/paragon.h:
18006 * m/pfa50.h:
18007 * m/plexus.h:
18008 * m/pyramid.h:
18009 * m/pyrmips.h:
18010 * m/sh3el.h:
18011 * m/sps7.h:
18012 * m/sr2k.h:
18013 * m/stride.h:
18014 * m/sun1.h:
18015 * m/sun2.h:
18016 * m/sun3-68881.h:
18017 * m/sun3-fpa.h:
18018 * m/sun3-soft.h:
18019 * m/sun3.h:
18020 * m/sun386.h:
18021 * m/symmetry.h:
18022 * m/tad68k.h:
18023 * m/tahoe.h:
18024 * m/targon31.h:
18025 * m/tek4300.h:
18026 * m/tekxd88.h:
18027 * m/tower32.h:
18028 * m/tower32v3.h:
18029 * m/ustation.h:
18030 * m/wicat.h:
18031 * m/xps100.h:
18032 * s/cxux.h:
18033 * s/cxux7.h:
18034 * s/dgux.h:
18035 * s/dgux4.h:
18036 * s/dgux5-4-3.h:
18037 * s/dgux5-4r2.h:
18038 * s/esix.h:
18039 * s/esix5r4.h:
18040 * s/hiuxmpp.h:
18041 * s/hiuxwe2.h:
18042 * s/iris3-5.h:
18043 * s/iris3-6.h:
18044 * s/isc2-2.h:
18045 * s/isc3-0.h:
18046 * s/isc4-0.h:
18047 * s/isc4-1.h:
18048 * s/newsos5.h:
18049 * s/newsos6.h:
18050 * s/osf1.h:
18051 * s/osf5-0.h:
18052 * s/riscix1-1.h:
18053 * s/riscix12.h:
18054 * s/sco4.h:
18055 * s/sco5.h:
18056 * s/sunos4-0.h:
18057 * s/sunos4-1.h:
18058 * s/sunos413.h:
18059 * s/sunos4shr.h:
18060 * s/umax.h:
18061 * s/unipl5-2.h:
18062 * s/xenix.h:
18063 * cxux-crt0.s:
18064 * unexapollo.c:
18065 * unexconvex.c:
18066 * unexenix.c:
18067 * unexsni.c: Remove files for systems no longer supported.
18068
18069 * m/intel386.h: Remove references to unsupported systems.
18070
18071 * w32.c (get_emacs_configuration): Remove reference to i860.
18072
18073 * sysdep.c: Remove dead code.
18074
18075 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18076
18077 * s/rtu.h:
18078 * m/masscomp.h: Remove files. Platform is obsolete.
18079
18080 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
18081
18082 * dbusbind.c (Fdbus_method_return): New function.
18083 (xd_read_message): Add the serial number to the event.
18084 (Fdbus_register_method): Activate the function.
18085
18086 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18087
18088 * keyboard.c (read_key_sequence): Fix typo.
18089
18090 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
18091
18092 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18093 (xd_signature, xd_append_arg): Handle element type detection for
18094 empty arrays.
18095 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18096 SDATA () calls; this must be solved more general.
18097 (Fdbus_register_signal): Use SBYTES instead of strlen.
18098
18099 2008-01-03 Magnus Henoch <magnus@zemdatav>
18100
18101 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18102 unsigned int for byte values (necessary for big-endian platform).
18103 (Fdbus_call_method): Handle the case of no returned arguments.
18104
18105 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18106
18107 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18108
18109 2007-12-31 Magnus Henoch <mange@freemail.hu>
18110
18111 * dbusbind.c (xd_signature): Signature of variant is just "v".
18112
18113 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
18114
18115 * dbusbind.c: Fix several errors and compiler warnings.
18116 Reported by Tom Tromey <tromey@redhat.com>.
18117 (XD_ERROR, XD_DEBUG_MESSAGE)
18118 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18119 (xd_append_arg): Part for basic D-Bus types rewritten.
18120 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18121 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18122 appropriate.
18123 (xd_read_message): Return Qnil. Don't signal an error; it is not
18124 useful during event reading.
18125 (Fdbus_register_signal): Signal an error if the check for
18126 FUNCTIONP fails.
18127 (Fdbus_register_method): New function. The implementation is not
18128 complete, the call of the function signals an error therefore.
18129 (Fdbus_unregister_object): New function, renamed from
18130 Fdbus_unregister_signal. The initial check signals an error, if
18131 the object is not well formed.
18132
18133 2007-12-30 Richard Stallman <rms@gnu.org>
18134
18135 * textprop.c (get_char_property_and_overlay):
18136 Signal error if POSITION is out of range in a buffer.
18137
18138 2007-12-29 Martin Rudalics <rudalics@gmx.at>
18139
18140 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18141 because the original parameters are in pure storage now.
18142
18143 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18144
18145 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18146
18147 2007-12-22 Eli Zaretskii <eliz@gnu.org>
18148
18149 * callint.c (syms_of_callint) <command-history>: Add reference to
18150 history-length in the doc string.
18151
18152 2007-12-17 Jason Rumney <jasonr@gnu.org>
18153
18154 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18155 before passing as wParam.
18156
18157 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
18158
18159 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18160 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18161 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18162 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18163 as number.
18164 (Fdbus_call_method): Fix docstring.
18165
18166 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
18167
18168 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18169 New macros.
18170 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18171 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18172 Simplify.
18173 (xd_signature): New function.
18174 (xd_append_arg): Compute also signatures. Major rewrite.
18175 (xd_retrieve_arg): Make debug messages friendly.
18176 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18177 Check for signatures of arguments.
18178
18179 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
18180
18181 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18182 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18183 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18184 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18185 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18186 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18187 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18188 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18189 (xd_retrieve_value): Remove. Functionality included in ...
18190 (xd_append_arg): New function.
18191 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18192
18193 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
18194
18195 * dbusbind.c (top): Include <stdio.h>.
18196 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18197 dbus_message_new_method_call and dbus_message_new_signal.
18198 (Fdbus_register_signal): Rename unique_name to uname.
18199 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18200 non-existing unique name. Fix typos in matching rule. Return an
18201 object which is useful in Fdbus_unregister_signal.
18202 (Fdbus_unregister_signal): Reimplementation, in order to remove
18203 only the corresponding entry.
18204 (Vdbus_registered_functions_table): Change the order of entries.
18205 Apply these changes in xd_read_message and Fdbus_register_signal.
18206
18207 2007-12-16 Andreas Schwab <schwab@suse.de>
18208
18209 * fileio.c (Finsert_file_contents): Fix overflow check to not
18210 depend on undefined integer overflow.
18211
18212 2007-12-14 Jason Rumney <jasonr@gnu.org>
18213
18214 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18215 for characters above 127.
18216
18217 2007-12-13 Jason Rumney <jasonr@gnu.org>
18218
18219 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18220 before dereferencing array.
18221 (lookup_vk_code): Remove zero comparison.
18222
18223 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
18224
18225 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18226 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18227 Use `unsigned int' instead of `uint'.
18228 (xd_read_message, Fdbus_register_signal): Split expressions into
18229 multiple lines before operators "&&" and "||", according to the
18230 GNU Coding Standards.
18231
18232 2007-12-14 Eli Zaretskii <eliz@gnu.org>
18233
18234 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18235
18236 2007-12-12 Juri Linkov <juri@jurta.org>
18237
18238 * buffer.c (Frename_buffer): In interactive spec replace
18239 `read-buffer' with `read-string' that uses `buffer-name-history'
18240 as history, and the current buffer's name as default.
18241
18242 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18243
18244 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18245 manipulating the backtrace manually.
18246 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18247 (struct backtrace, backtrace_list): Remove.
18248 (command_loop_1): Remove dead var `no_direct'.
18249
18250 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18251 preserve non-built-in buffer-local variables.
18252 (Fkill_all_local_variables): Don't re-create&re-set permanent
18253 buffer-local variables.
18254
18255 2007-12-09 Juri Linkov <juri@jurta.org>
18256
18257 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18258 Lisp code that uses `read-buffer' with current buffer as default.
18259
18260 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
18261
18262 * dbusbind.c (xd_read_message): Generate an event for every
18263 registered handler. There might be several handlers registered
18264 for the same signal.
18265 (Fdbus_register_signal): Don't overwrite a registration for the
18266 same signal. Add a new registration if handlers are different.
18267 (Vdbus_registered_functions_table): Rework doc string.
18268
18269 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
18270
18271 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18272 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18273 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18274 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18275 Unify argument lists.
18276 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18277 arguments and hash table keys. Use unique name for service.
18278 (Fdbus_unregister_signal): Remove checks.
18279 (Vdbus_registered_functions_table): Fix doc string.
18280
18281 2007-12-05 Magnus Henoch <mange@freemail.hu>
18282
18283 * process.c (make_process): Initialize pty_flag to 0.
18284
18285 2007-12-05 Jason Rumney <jasonr@gnu.org>
18286
18287 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18288 specified XBMs.
18289
18290 2007-12-05 Richard Stallman <rms@gnu.org>
18291
18292 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18293
18294 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18295
18296 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18297 New variable.
18298 (mac_try_close_socket) [MAC_OSX]: New function.
18299 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18300 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18301
18302 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18303 Use mac_try_close_socket.
18304
18305 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18306
18307 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18308 reloc_base.
18309 (copy_dysymtab): Compute relocation base here.
18310 (rebase_reloc_address) [__ppc64__]: New function.
18311 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18312 changed.
18313
18314 2007-12-05 Jason Rumney <jasonr@gnu.org>
18315
18316 * w32proc.c (sys_spawnve): Quote args with wildcards.
18317
18318 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18319
18320 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18321 __objc_* sections.
18322 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18323
18324 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
18325
18326 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18327 Move check for Vdbus_registered_functions_table to
18328 xd_read_queued_messages.
18329 (xd_read_queued_messages): Protect xd_read_message calls by
18330 internal_condition_case_1.
18331
18332 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
18333
18334 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18335 Qdbus_system_bus and Qdbus_session_bus, respectively.
18336 (Vdbus_intern_symbols): Remove.
18337 (Vdbus_registered_functions_table): New hash table.
18338 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18339 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18340 Rewrite in order to manage registered functions by hash table
18341 Vdbus_registered_functions_table.
18342
18343 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18344
18345 * xterm.c: Update URL to Window Manager Specification in comment.
18346
18347 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
18348
18349 * config.in (HAVE_DBUS): Add.
18350
18351 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18352 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18353 (obj): Add $(DBUS_OBJ).
18354 (LIBES): Add $(DBUS_LIBS).
18355 (dbusbind.o): New target.
18356
18357 * dbusbind.c: New file.
18358
18359 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18360
18361 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18362 (Qdbus_event): New Lisp symbol.
18363 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18364 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
18365 (keys_of_keyboard): Define dbus-event.
18366
18367 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18368
18369 2007-12-01 Richard Stallman <rms@gnu.org>
18370
18371 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18372
18373 2007-11-30 Jason Rumney <jasonr@gnu.org>
18374
18375 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18376 (w32con_reset_terminal_modes): Clear screen buffer.
18377 (w32_face_attributes): Don't use color indexes that are out of range.
18378 Only reverse the default colors.
18379
18380 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18381 WINDOWSNT.
18382
18383 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18384
18385 2007-11-29 Jason Rumney <jasonr@gnu.org>
18386
18387 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18388 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18389 if the terminal colors are initialized.
18390 (unspecified_fg, unspecified_bg): Remove unused declarations.
18391
18392 2007-11-29 Andreas Schwab <schwab@suse.de>
18393
18394 * keyboard.c (apply_modifiers): Fix typo.
18395
18396 2007-11-29 Richard Stallman <rms@gnu.org>
18397
18398 * keymap.c (Fcurrent_local_map): Doc fix.
18399
18400 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18401
18402 * s/gnu-kfreebsd.h: New file.
18403
18404 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18405
18406 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18407 Don't cast redundantly.
18408
18409 * keyboard.c (KEY_TO_CHAR): New macro.
18410 (parse_modifiers, apply_modifiers): Accept integer arguments.
18411 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18412 for chars and symbol keys.
18413 After doing such remapping, apply function-key-map again.
18414
18415 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18416
18417 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18418 compiled anymore.
18419
18420 2007-11-26 Andreas Schwab <schwab@suse.de>
18421
18422 * process.c (list_processes_1): Fix indentation level of the
18423 command column.
18424
18425 2007-11-23 Andreas Schwab <schwab@suse.de>
18426
18427 * editfns.c (Fformat): Handle %c specially since it requires the
18428 argument to be of type int.
18429
18430 2007-11-23 Markus Triska <markus.triska@gmx.at>
18431
18432 * emacs.c (main): Call init_editfns before init_process, since
18433 init_process sets Vprocess_connection_type depending on OS release.
18434
18435 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18436
18437 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18438 (find_symbol_value): Use do_symval_forwarding.
18439
18440 * data.c (set_internal): Set the value in the `cons-cell' (for
18441 Buffer_Local_values) not only for frame-local variables.
18442
18443 2007-11-22 Andreas Schwab <schwab@suse.de>
18444
18445 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18446 values to sprintf.
18447 * keymap.c (Fsingle_key_description): Likewise.
18448 * print.c (print_object): Likewise.
18449
18450 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18451
18452 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18453 file for image is nil.
18454
18455 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18456
18457 * term.c: Include stdarg.h.
18458 (fatal): Implement using varargs.
18459 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18460
18461 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18462
18463 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18464 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18465 Update call to buffer_slot_type_mismatch.
18466 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18467 (buffer_slot_type_mismatch): Update.
18468 * buffer.c (buffer_local_types): Remove.
18469 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18470 (defvar_per_buffer): Set the type in the buffer_objfwd.
18471
18472 2007-11-21 Jason Rumney <jasonr@gnu.org>
18473
18474 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18475 CreateFileMapping returns NULL on failure.
18476
18477 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18478
18479 * search.c (Fset_match_data): Remove the `evaporate' feature.
18480 (unwind_set_match_data): Don't use the `evaporate' feature.
18481
18482 2007-11-21 Jason Rumney <jasonr@gnu.org>
18483
18484 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18485
18486 * w32console.c (w32con_write_glyphs): Remove unused variables.
18487
18488 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18489
18490 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18491
18492 * s/darwin.h (MULTI_KBOARD): Remove.
18493
18494 * macfns.c (x_create_tip_frame, Fx_create_frame)
18495 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18496
18497 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18498
18499 * buffer.c (Fbuffer_local_value): Remove redundant test.
18500 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18501 than in `current-buffer' to match the comment.
18502 Do the swap using swap_in_global_binding.
18503
18504 * data.c (store_symval_forwarding, set_internal):
18505 * eval.c (specbind): Remove dead code.
18506
18507 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18508 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18509 Since we do not want to see internal Lisp_*fwd objects here.
18510
18511 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18512
18513 * sysdep.c (init_system_name): Use getaddrinfo if available.
18514
18515 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18516 (x_scroll_bar_note_movement): start, end, with, height in struct
18517 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18518
18519 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18520
18521 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18522
18523 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18524
18525 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18526 This undoes Richard's change of 14-Oct-2002.
18527
18528 * alloc.c (allocate_other_vector):
18529 * lisp.h (allocate_other_vector): Remove.
18530
18531 * window.c (struct save_window_data): Move non-lisp data to the end
18532 and make it `int' rather than Lisp_Object.
18533 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18534 Done wrap/unwrap integer values.
18535 (Fset_window_configuration, compare_window_configurations):
18536 Update use of fields to their new types.
18537
18538 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18539 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18540 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18541 (SET_SCROLL_BAR_X_WINDOW): Remove.
18542 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18543 Access the new x_window field directly.
18544 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18545 Don't wrap/unwrap integers into Lisp_Objects.
18546 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18547 (x_scroll_bar_report_motion):
18548 Don't wrap/unwrap integers into Lisp_Objects.
18549 (x_term_init): Use SDATA.
18550 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18551 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18552 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18553 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18554 * xfns.c (x_set_background_color):
18555 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18556 Access the new x_window field directly.
18557
18558 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18559 (allocate_pseudovector): Make non-static.
18560
18561 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18562 (allocate_pseudovector): Declare.
18563 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18564
18565 2007-11-15 Andreas Schwab <schwab@suse.de>
18566
18567 * editfns.c (Fformat): Correctly format EMACS_INT values.
18568 Also take precision into account when formatting an integer.
18569
18570 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18571
18572 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18573
18574 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18575 (syms_of_keyboard): Defsubr it.
18576
18577 * data.c (swap_in_global_binding): Fix longstanding bug where
18578 store_symval_forwarding was not called with the right second argument,
18579 thus causing objfwd-ing from being dropped.
18580
18581 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18582
18583 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18584 (Fx_display_pixel_height, Fx_display_planes)
18585 (Fx_display_color_cells, Fx_server_max_request_size)
18586 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18587 (Fx_display_visual_class, Fx_display_save_under):
18588 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18589 (Fx_display_pixel_height, Fx_display_planes)
18590 (Fx_display_color_cells, Fx_server_max_request_size)
18591 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18592 (Fx_display_mm_height, Fx_display_mm_width)
18593 (Fx_display_backing_store, Fx_display_visual_class)
18594 (Fw32_select_font, Fx_display_save_under):
18595 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18596 (Fx_display_pixel_height, Fx_display_planes)
18597 (Fx_display_color_cells, Fx_server_max_request_size)
18598 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18599 (Fx_display_save_under): Fix typos in docstrings.
18600
18601 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18602
18603 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18604 corresponding to deleted entries; they are an implementation detail.
18605 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18606 Remove variables.
18607 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18608 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18609 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18610 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18611 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18612 (Fw32_define_rgb_color, Fw32_load_color_file)
18613 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18614 Fix typos in docstrings.
18615 (Fx_server_version): Reflow docstring.
18616 (Fw32_shell_execute): Doc fixes.
18617
18618 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
18619
18620 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18621 if w32_parse_hot_key returned nil.
18622
18623 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18624
18625 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18626
18627 2007-11-09 Jason Rumney <jasonr@gnu.org>
18628
18629 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18630
18631 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18632
18633 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18634 Remove W32_SCROLL_BAR_CLICK_EVENT.
18635
18636 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18637 Add MULTIMEDIA_KEY_EVENT.
18638
18639 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18640 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18641 (make_lispy_event) [WINDOWSNT]: Use it to translate
18642 MULTIMEDIA_KEY_EVENT.
18643
18644 * w32term.h (WM_APPCOMMAND): Define if not already.
18645 (GET_APPCOMMAND_LPARAM): Likewise.
18646
18647 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18648 WM_APPCOMMAND.
18649
18650 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18651 (syms_of_w32fns): Export and initialize it.
18652 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18653
18654 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
18655
18656 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18657 twice.
18658
18659 * xdisp.c (handle_face_prop): Fix last change.
18660
18661 2007-11-09 Richard Stallman <rms@gnu.org>
18662
18663 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18664 not just for after-strings and before-strings.
18665 Call face_for_overlay_string and pass the overlay to it.
18666 (handle_display_prop): Determine whether property came from an overlay.
18667 Pass OVERLAY arg to handle_single_display_spec.
18668 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18669 (load_overlay_strings): Fill in it->string_overlays.
18670 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18671
18672 * xfaces.c (face_for_overlay_string): Function renamed from
18673 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18674
18675 * dispextern.h (struct it): New elt string_overlays.
18676 New elt from_overlay, also in stack.
18677 Rearrange a few elements.
18678 (face_for_overlay_string): Decl renamed from
18679 face_at_buffer_position_no_overlays, and add argument.
18680
18681 2007-11-09 Richard Stallman <rms@gnu.org>
18682
18683 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18684 to get the base face for an overlay string.
18685
18686 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18687
18688 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18689
18690 * xdisp.c (handle_stop): Move some code out of loop.
18691
18692 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18693
18694 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18695 Fix conversion from Lisp object to ATSUFontID.
18696
18697 2007-11-09 Jason Rumney <jasonr@gnu.org>
18698
18699 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18700
18701 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18702
18703 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18704 Don't assume regions are aligned to page boundary.
18705 (print_load_command_name): Add LC_UUID if defined.
18706
18707 2007-11-09 Richard Stallman <rms@gnu.org>
18708
18709 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18710
18711 2007-11-07 Jason Rumney <jasonr@gnu.org>
18712
18713 * s/windows95.h: Remove.
18714
18715 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18716
18717 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18718 abort with a message on unhandled store_type values.
18719
18720 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18721
18722 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18723 Remove HAVE_X11R5 and HAVE_X11R4.
18724
18725 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18726
18727 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18728
18729 2007-11-01 Johan Bockgård <bojohan@gnu.org>
18730
18731 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18732 Don't set s->stippled_p here, since it has already been set by
18733 x_set_glyph_string_gc from x_draw_glyph_string.
18734
18735 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18736
18737 * sunfns.c: Remove file.
18738
18739 * m/sun386.h:
18740 * m/sun2.h:
18741 * m/sparc.h: Remove Sun windows code.
18742
18743 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18744
18745 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18746 (init_keyboard): Set current_kboard's window-system to nil.
18747 (tty_read_avail_input): Typo.
18748 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18749
18750 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18751
18752 * s/usg5-4.h:
18753 * s/usg5-3.h:
18754 * s/ptx.h:
18755 * m/is386.h:
18756 * m/ibmps2-aix.h:
18757 * Makefile.in: Remove all mentions of X10.
18758
18759 * dispnew.c (syms_of_display): Don't mention version 10.
18760
18761 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
18762
18763 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18764 ($(BLD)/abbrev.$(O)): Remove.
18765
18766 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18767
18768 Rewrite abbrev.c in Elisp.
18769 * image.c (Qcount): Don't declare as extern.
18770 (syms_of_image): Initialize and staticpro `Qcount'.
18771 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18772 * emacs.c (main): Don't call syms_of_abbrev.
18773 * Makefile.in (obj): Remove abbrev.o.
18774 (abbrev.o): Remove.
18775 * abbrev.c: Remove.
18776
18777 2007-10-26 Martin Rudalics <rudalics@gmx.at>
18778
18779 * window.c (window_min_size_2): Don't count header-line.
18780
18781 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18782
18783 * frame.h (struct frame): Move all bit fields after the first bit
18784 field to take advantage of the available space. Group all the
18785 chars together to reduce wasted space due to padding.
18786
18787 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
18788
18789 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18790
18791 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18792 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18793 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18794 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18795 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18796 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18797 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18798 (last_marked, mark_object_loop_halt): Make static.
18799
18800 * frame.c (syms_of_frame) <delete-frame-functions>:
18801 Fix typo in docstring.
18802
18803 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
18804
18805 * w32.c (init_environment): Fix tiny memory leak.
18806 (w32_get_resource): Remove unused variable `ok'.
18807
18808 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18809
18810 Make `window-system' into a keyboard-local variable (rather than
18811 frame-local as done originally by multi-tty).
18812
18813 * keyboard.h (struct kboard): Add Vwindow_system.
18814 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18815 (mark_kboards): Mark Vwindow_system.
18816
18817 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18818 (init_display): Don't set the obsolete `window-system' frame-param.
18819
18820 * xterm.c (x_term_init):
18821 * w32term.c (w32_create_terminal):
18822 * term.c (init_tty): Set Vwindow_system.
18823 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18824 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18825
18826 * xfns.c (Fx_create_frame, x_create_tip_frame):
18827 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18828 * macfns.c (Fx_create_frame):
18829 Don't set the obsolete `window-system' frame-param.
18830
18831 * frame.h (Qwindow_system): Remove.
18832 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18833 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18834
18835 2007-10-24 Richard Stallman <rms@gnu.org>
18836
18837 * frame.c (x_figure_window_size): For fullscreen case,
18838 set USPosition | PPosition without clobbering rest of window_prompting.
18839
18840 * keyboard.c (Fcurrent_idle_time): Doc fix.
18841
18842 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18843
18844 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18845
18846 * process.c (unwind_request_sigio): Only define if __ultrix__.
18847
18848 * callproc.c (child_setup): Remove spurious *.
18849
18850 * lisp.h (Fget_text_property): Declare.
18851 (have_menus_p): Declare it here rather than in sys-dep header files.
18852 * macterm.h (have_menus_p):
18853 * msdos.h (have_menus_p):
18854 * xterm.h (have_menus_p): Remove.
18855
18856 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18857 (Fmake_variable_frame_local): Just check the variable's const-ness
18858 rather than checking nil or t.
18859
18860 2007-10-22 Jason Rumney <jasonr@gnu.org>
18861
18862 * w32fns.c: Include math.h.
18863 (w32_abort): Declaration moved to nt/config.nt.
18864
18865 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18866 (abort): Redefinition moved to nt/config.nt.
18867
18868 * m/windowsnt.h: Remove.
18869
18870 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
18871
18872 * emacs.c (Fdump_emacs): Fix typo in message.
18873 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18874 <installation-directory>: Reflow docstring.
18875
18876 2007-10-22 Juri Linkov <juri@jurta.org>
18877
18878 * minibuf.c: Allow minibuffer default to be a list of default values.
18879 With empty input use the first element of this list as returned default.
18880 (string_to_object)
18881 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18882 (read_minibuf): If defalt is cons, set histstring to its car.
18883 (Fread_string): If default_value is cons, set val to its car.
18884 (Fread_buffer): If def is cons, use its car.
18885 (Fcompleting_read): If defalt is cons, set val to its car.
18886
18887 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
18888
18889 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18890
18891 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
18892
18893 * doc.c (Fdocumentation): Check for advice in all cases.
18894
18895 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
18896
18897 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18898
18899 2007-10-19 Richard Stallman <rms@gnu.org>
18900
18901 * doc.c (Fdocumentation): Check for and handle an advised function.
18902
18903 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
18904
18905 * process.c (Fset_process_filter): Doc fix.
18906
18907 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18908
18909 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18910 which caused key-translation-map to applied repeatedly (thus breaking
18911 double-mode).
18912
18913 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18914
18915 * xselect.c (x_own_selection, x_handle_selection_clear)
18916 (x_clear_frame_selections):
18917 * w32menu.c (list_of_panes, list_of_items):
18918 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18919 * textprop.c (validate_plist, interval_has_all_properties)
18920 (interval_has_some_properties, interval_has_some_properties_list)
18921 (add_properties, text_property_list):
18922 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18923 * minibuf.c (Fassoc_string):
18924 * macselect.c (x_own_selection, x_clear_frame_selections)
18925 (Fx_disown_selection_internal):
18926 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18927 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18928
18929 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
18930
18931 * process.c: Link to libs for calling res_init() if available.
18932 (Fmake_network_process): Call res_init() before getaddrinfo or
18933 gethostbyname, if possible.
18934
18935 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18936
18937 * lread.c (read1): Set pvectype for char_tables.
18938
18939 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18940 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18941 Add type checks.
18942 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18943
18944 * alloc.c (free_misc): Use XMISCTYPE.
18945 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18946
18947 2007-10-17 Glenn Morris <rgm@gnu.org>
18948
18949 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18950 (syms_of_minibuf): Add Qcompletion_ignore_case.
18951 * dired.c (Qcompletion_ignore_case): Change to external.
18952 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18953 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18954 (Fread_file_name): Use it rather than intern'ing.
18955
18956 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18957 (Fread_coding_system): Ignore case of user input.
18958
18959 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18960
18961 * xdisp.c (handle_display_prop): Ignore display specs after
18962 replacing one when string text is being replaced.
18963 (handle_single_display_spec): Pretend as if characters with display
18964 property haven't been consumed only when buffer text is being replaced.
18965
18966 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18967
18968 * xfns.c (Fx_create_frame, Fx_display_list):
18969 * window.c (window_fixed_size_p, enlarge_window)
18970 (shrink_window_lowest_first):
18971 * macterm.c (init_font_name_table):
18972 * macfns.c (Fx_create_frame, Fx_display_list):
18973 * lread.c (close_load_descs):
18974 * keyboard.c (read_char_x_menu_prompt):
18975 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18976 * coding.c (code_convert_region_unwind): Test the type of an object
18977 rather than just !NILP before extracting data from it.
18978
18979 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18980
18981 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18982 (XMISCANY): New macro.
18983 (XMISCTYPE): Use it.
18984 (struct Lisp_Misc_Any): New type.
18985 (union Lisp_Misc): Use it.
18986 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18987 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18988 (find_symbol_value, set_internal, default_value, Fset_default)
18989 (Fmake_variable_buffer_local, Fmake_local_variable)
18990 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18991 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18992 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18993 * alloc.c (allocate_buffer): Set the size and tag.
18994 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18995 Use XMISCANY.
18996 (die): Follow the GNU convention for error messages.
18997 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18998 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18999 tag any more.
19000 (set_buffer_internal_1):
19001 * frame.c (store_frame_param):
19002 * eval.c (specbind):
19003 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19004
19005 * doc.c (Fsnarf_documentation): Simplify.
19006
19007 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19008
19009 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19010 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19011
19012 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19013
19014 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19015
19016 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19017
19018 * eval.c (do_autoload): Don't save autoloads.
19019
19020 * data.c (Ffset): Save autoload of the function being set.
19021
19022 2007-10-07 John Paul Wallington <jpw@pobox.com>
19023
19024 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19025 parameter before setting up faces.
19026
19027 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19028
19029 * ccl.c (Fregister_code_conversion_map):
19030 * keyboard.c (append_tool_bar_item): Reformat last change.
19031
19032 * lisp.h (eabs): Rename from `abs'. All callers changed.
19033
19034 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19035
19036 * buffer.c (add_overlay_mod_hooklist):
19037 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19038 * fontset.c (make_fontset):
19039 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19040 (append_tool_bar_item):
19041 * macmenu.c (grow_menu_items):
19042 * w32menu.c (grow_menu_items):
19043 * xmenu.c (grow_menu_items): Use larger_vector.
19044
19045 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19046
19047 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19048 selected frame'' on MSDOS).
19049
19050 2007-10-12 Martin Rudalics <rudalics@gmx.at>
19051
19052 * frame.c (Qexplicit_name): New variable.
19053 (x_report_frame_params): Report it in parameter alist.
19054 (syms_of_frame): Intern and staticpro it.
19055
19056 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19057
19058 * macfns.c (x_create_tip_frame): Set terminal for frame.
19059
19060 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19061
19062 * frame.c (Qenvironment): Remove.
19063 (syms_of_frame) <Qenvironment>: Don't initialize.
19064 (Fdelete_frame): Don't treat the `environment' param specially.
19065 * frame.h (Qenvironment): Don't declare.
19066 * callproc.c (set_initial_environment): Don't set unused frame param.
19067
19068 * frame.c (Fframe_with_environment): Remove.
19069 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19070
19071 * lisp.h (Fframe_with_environment): Don't declare.
19072
19073 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
19074
19075 * indent.c (indent_tabs_mode, last_known_column)
19076 (last_known_column_modified): Make static.
19077 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19078
19079 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19080
19081 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19082
19083 2007-10-09 Jason Rumney <jasonr@gnu.org>
19084
19085 * w32term.c (x_set_window_size): Disable code that attempts to tell
19086 Lisp code about a size change before it actually happens.
19087
19088 2007-10-09 Richard Stallman <rms@gnu.org>
19089
19090 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19091 return HANDLED_RETURN.
19092
19093 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19094
19095 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19096 when there's an unread command event.
19097
19098 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19099 window autoselection act appropriately when leaving selected frame.
19100 (syms_of_frame): Initialize focus_follows_mouse.
19101 * frame.h (focus_follows_mouse): Extern it.
19102 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19103 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19104 * msdos.c (dos_rawgetc): Likewise.
19105 * w32term.c (w32_read_socket): Likewise.
19106 * xterm.c (handle_one_xevent): Likewise.
19107 * xdisp.c (syms_of_xdisp): In doc-string of
19108 mouse-autoselect-window mention focus-follows-mouse.
19109
19110 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19111
19112 * macterm.c (mac_load_query_font): Fix missing return value.
19113 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19114 Add BLOCK_INPUT.
19115
19116 2007-10-08 Richard Stallman <rms@gnu.org>
19117
19118 * xdisp.c (get_window_cursor_type): Implement documented behavior
19119 for cursor-in-non-selected-windows = t.
19120
19121 2007-10-08 Jason Rumney <jasonr@gnu.org>
19122
19123 * w32.c (w32_get_resource): Always close registry keys.
19124
19125 2007-10-08 Jason Rumney <jasonr@gnu.org>
19126
19127 * makefile.w32-in (LIBS): Add COMCTL32.
19128
19129 * w32fns.c (globals_of_w32fns): Init common controls.
19130
19131 2007-10-08 Richard Stallman <rms@gnu.org>
19132
19133 * image.c (our_memory_buffer): Rename from omfib_buffer.
19134
19135 2007-10-08 Richard Stallman <rms@gnu.org>
19136
19137 * buffer.c (Foverlays_at): Doc fix.
19138
19139 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19140
19141 * fns.c (Fplist_put): Preserve uneven tail data.
19142
19143 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19144
19145 * termhooks.h (enum event_kind): Remove trailing comma.
19146
19147 * frame.h (enum): Remove trailing comma.
19148
19149 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19150
19151 * w32proc.c (delete_child): Don't terminate threads of zombies.
19152
19153 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19154
19155 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19156
19157 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19158 last-repeatable-command.
19159 (init_kboard): Initialize Vlast_repeatable_command.
19160 (command_loop_1): Set it to real_this_command unless that was
19161 bound to an input event.
19162 (mark_kboards): Mark it.
19163
19164 2007-10-08 Richard Stallman <rms@gnu.org>
19165
19166 * eval.c (condition-case): Doc fix.
19167
19168 2007-10-08 Masatake YAMATO <jet@gyve.org>
19169
19170 * xfaces.c (tty_supports_face_attributes_p): Fix code
19171 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19172 was copied and not edited.
19173
19174 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19175
19176 Add new `input-decode-map' keymap and use it for terminal
19177 escape sequences.
19178 * keyboard.h (struct kboard): Add Vinput_decode_map.
19179 Remove Vlocal_key_translation_map.
19180 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19181 (init_kboard): Init input-decode-map.
19182 Replace local-key-translation-map back with key-translation-map.
19183 (syms_of_keyboard): Declare input-decode-map.
19184 Remove local-key-translation-map. Update docstrings.
19185 (mark_kboards): Mark Vinput_decode_map.
19186 Don't mark Vlocal_key_translation_map.
19187 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19188 Replace local-key-translation-map back with key-translation-map.
19189 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19190 Bind in input-decode-map rather than function-key-map.
19191
19192 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19193 This was made redundant by the previous introduction of XSETPVECTYPE.
19194
19195 2007-10-09 Richard Stallman <rms@gnu.org>
19196
19197 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19198
19199 2007-09-29 Richard Stallman <rms@gnu.org>
19200
19201 * eval.c (internal_condition_case_2, internal_condition_case_1)
19202 (internal_condition_case): Reenable abort if x_catching_errors ()
19203 to see if that really happens and why.
19204
19205 2007-10-06 Andreas Schwab <schwab@suse.de>
19206
19207 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19208
19209 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
19210
19211 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19212
19213 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19214
19215 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19216
19217 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19218
19219 * window.h (struct window):
19220 * window.c (struct save_window_data, struct saved_window):
19221 * termhooks.h (struct terminal):
19222 * process.h (struct Lisp_Process):
19223 * frame.h (struct frame):
19224 * buffer.h (struct buffer):
19225 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19226 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19227 The size field of (pseudo)vectors is now unsigned.
19228 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19229
19230 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19231 Turn `count' into an integer.
19232
19233 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19234 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19235 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19236 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19237 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19238
19239 * alloc.c (allocate_pseudovector): New fun.
19240 (ALLOCATE_PSEUDOVECTOR): New macro.
19241 (allocate_window, allocate_terminal, allocate_frame)
19242 (allocate_process): Use it.
19243 (mark_vectorlike): New function.
19244 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19245 (mark_terminals): Use it.
19246 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19247 (Fmake_byte_code): Use XSETPVECTYPE.
19248
19249 * frame.c (Fframe_parameters): Minor simplification.
19250
19251 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19252
19253 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19254
19255 * buffer.c (Fget_buffer_create, init_buffer_once):
19256 * lread.c (defsubr):
19257 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19258
19259 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19260 defined differently in the m/*.h files.
19261 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19262 (XSETPVECTYPE): New macro.
19263 (XSETPSEUDOVECTOR): Use it.
19264
19265 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19266 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19267
19268 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19269 * lread.c (defvar_per_buffer):
19270 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19271
19272 * window.c (candidate_window_p): Only consider as visible frames that
19273 are on the same terminal.
19274
19275 * m/ibms390x.h (MARKBIT): Remove unused macro.
19276
19277 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
19278
19279 * lread.c (Fload): Fix typo in docstring.
19280
19281 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19282
19283 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19284 of a non-zero value can't yield zero.
19285
19286 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19287
19288 * term.c (term_clear_mouse_face, term_mouse_highlight)
19289 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19290
19291 * print.c (safe_debug_print): Use XHASH.
19292
19293 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19294 Lisp elements such as tags.
19295 (XHASH): New macro.
19296 (EQ): Use it.
19297 (SREF, SSET, STRING_COPYIN): Use SDATA.
19298 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19299
19300 * alloc.c (mark_terminal): Remove left-over declaration.
19301 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19302 (allocate_vectorlike): Remove type argument. Adjust callers.
19303 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19304 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19305
19306 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19307 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19308 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19309 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19310 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19311 Use them.
19312
19313 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19314 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19315 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19316
19317 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19318
19319 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19320 loaded by default.
19321
19322 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19323
19324 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19325 on this tty.
19326 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19327
19328 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19329 Update all users.
19330 (handle_one_term_event): Use Gpm_DrawPointer.
19331 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19332 Signal errors instead of returning nil. Always return nil.
19333 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19334 Make it a noop if gpm-mouse was not activated.
19335 (syms_of_term): Update names.
19336
19337 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19338
19339 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19340 (init_sys_modes): Check that gpm_tty is the current tty.
19341
19342 * alloc.c (allocate_terminal): Set the vector size to only count the
19343 lisp fields. Initialize those to nil.
19344 (mark_object): Don't treat terminals specially.
19345 (mark_terminal): Remove.
19346 (mark_terminals): Use mark_object instead.
19347
19348 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19349 the GC to the beginning.
19350
19351 * indent.h:
19352 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19353
19354 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19355
19356 2007-09-25 Jason Rumney <jasonr@gnu.org>
19357
19358 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19359
19360 * w32console.c (create_w32cons_output): Remove.
19361
19362 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19363
19364 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19365 (reset_sys_modes): Use reset_terminal_modes_hook.
19366
19367 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19368
19369 * eval.c (do_autoload): Don't output any message.
19370
19371 2007-09-24 Juri Linkov <juri@jurta.org>
19372
19373 * emacs.c (standard_args): Change priority of "--no-splash"
19374 from 40 to 3. Add "--no-desktop" with the same priority.
19375
19376 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19377
19378 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19379 and optimize the case where they are all 1.
19380
19381 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
19382
19383 * lisp.h (abs): Define if not defined.
19384 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19385 Don't define `abs', since it's defined in lisp.h.
19386
19387 2007-09-22 Eli Zaretskii <eliz@gnu.org>
19388
19389 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19390 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19391 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19392 (init_tty): Use DEV_TTY instead of "/dev/tty".
19393 [WINDOWSNT]: No need to protect from NAME arg being null.
19394
19395 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19396
19397 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19398 up the tty state.
19399
19400 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19401
19402 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19403 (gpm_tty): Change its type.
19404 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19405 (gpm_tty): Change its type and initialize it.
19406 (Fterm_open_connection): Check the frame is indeed a tty.
19407 Use the new gpm_tty.
19408 (Fterm_close_connection): Use the new gpm_tty.
19409 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19410 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19411
19412 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
19413
19414 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19415 underline_color, to draw strike-through.
19416
19417 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19418
19419 * lisp.h (allocate_terminal): Declare.
19420
19421 * window.c (candidate_window_p): Consider frames that are being placed
19422 by the user as somewhere between visible and iconified.
19423 (window_loop): Prefer windows on the current frame.
19424 (Fselect_window): Move the use of select-frame to the beginning so we
19425 can just delegate all the work (it'll call us back anyway).
19426
19427 * frame.c (Qdisplay_environment_variable):
19428 * frame.h (Qdisplay_environment_variable): Delete.
19429
19430 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19431 of the first arg, since that value may be a union.
19432
19433 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19434 parameter rather than Qdisplay_environment_variable. If all else
19435 fails, look for DISPLAY in initial-environment.
19436
19437 2007-09-21 Glenn Morris <rgm@gnu.org>
19438
19439 * Makefile.in (emacstool): Remove target.
19440 (lisp, shortlisp): Remove termdev.elc.
19441
19442 2007-09-21 Markus Triska <markus.triska@gmx.at>
19443
19444 * xterm.c (x_delete_display): Compile session management conditionally.
19445
19446 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19447
19448 * callproc.c (getenv_internal_1): New function.
19449 (getenv_internal): Use it.
19450 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19451
19452 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19453 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19454 (Fset_terminal_parameter): Work with dead terminals as well.
19455 (Fmodify_terminal_parameters): Remove.
19456
19457 * terminal.c (get_terminal): Handle terminals.
19458 Make sure the terminal returned is live.
19459 (create_terminal): Use allocate_terminal.
19460 (mark_terminals): Move to alloc.c.
19461 (delete_terminal): Use terminal->name as liveness status.
19462 NULL out fields after freeing their contents.
19463 Don't deallocate the object.
19464 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19465 rather than an int.
19466 (Fterminal_live_p): Accept non-integer arguments.
19467 (Fterminal_list): Return terminal objects rather than an ints.
19468
19469 * alloc.c (enum mem_type): New member for `terminal' objects.
19470 (allocate_terminal): New function.
19471 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19472 Handle terminals.
19473 (mark_terminal): New fun.
19474 (mark_terminals): Move from terminal.c.
19475
19476 * term.c (get_tty_terminal): Don't treat output_initial specially.
19477 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19478 (delete_tty): Use terminal->name as liveness status.
19479
19480 * termhooks.h (struct terminal): Make it into a pseudovector.
19481 Remove `deleted' replaced by checking `name's nullness.
19482
19483 * print.c (print_object): Handle terminals.
19484
19485 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19486 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19487
19488 * frame.c (make_terminal_frame):
19489 * keyboard.c (tty_read_avail_input):
19490 * w32term.c (x_delete_terminal):
19491 * xfns.c (Fx_create_frame, x_create_tip_frame):
19492 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19493
19494 2007-09-20 Glenn Morris <rgm@gnu.org>
19495
19496 * process.c (Fmake_network_process): Doc fix.
19497
19498 2007-09-19 Jason Rumney <jasonr@gnu.org>
19499
19500 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19501
19502 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19503
19504 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19505 Fix a C warning regarding variable constness.
19506
19507 * xterm.c (handle_one_xevent): Fix a C warning.
19508
19509 2007-09-18 Jason Rumney <jasonr@gnu.org>
19510
19511 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19512
19513 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19514
19515 * gtkutil.c (gdpy_def): New variable.
19516 (xg_initialize): Initialize gdpy_def.
19517 (xg_display_close): If no other display exists, set gdpy_def to a
19518 new connection.
19519
19520 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19521
19522 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19523 when we have no file name for the icon.
19524 (xg_tool_bar_expose_callback): Remove.
19525 (xg_create_tool_bar): Don't connect expose signal to
19526 xg_tool_bar_expose_callback.
19527 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19528
19529 2007-09-16 Andreas Schwab <schwab@suse.de>
19530
19531 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19532 values instead of zapping them.
19533
19534 2007-09-14 Glenn Morris <rgm@gnu.org>
19535
19536 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19537 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19538 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19539 scope and rename to omfib_buffer for clarity.
19540 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19541
19542 2007-09-14 Kenichi Handa <handa@m17n.org>
19543
19544 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19545
19546 2007-09-13 Jason Rumney <jasonr@gnu.org>
19547
19548 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19549
19550 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19551
19552 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19553 (mac_term_init): Call here instead, passing rif.
19554
19555 2007-09-13 Glenn Morris <rgm@gnu.org>
19556
19557 * s/hpux.h: No longer define `static' as nothing.
19558
19559 2007-09-13 Johan Bockgård <bojohan@gnu.org>
19560
19561 * callint.c (Fcall_interactively): Remove unused var `fun'.
19562
19563 2007-09-12 Romain Francoise <romain@orebokech.com>
19564
19565 * window.c (prefer_window_split_horizontally, display_buffer):
19566 Revert 2007-09-08 change.
19567
19568 2007-09-12 Glenn Morris <rgm@gnu.org>
19569
19570 * alloca.c: Remove file.
19571 * Makefile.in (alloca): Do not undef.
19572 (allocaobj, alloca.o): Remove.
19573 (otherobj): Remove allocaobj.
19574 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19575 * regex.c (C_ALLOCA): Remove all references and code that was only
19576 used when this was defined.
19577 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19578 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19579 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19580
19581 * Makefile.in (SOURCES, unlock, relock): Delete.
19582
19583 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19584 (menu_grab_callback): All uses changed.
19585
19586 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19587 (x_reply_selection_request): All uses changed.
19588
19589 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19590
19591 * lread.c (load_warn_old_style_backquotes): Change message to look
19592 better when it appears in the middle of byte-compiler messages.
19593
19594 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19595
19596 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19597
19598 * xterm.c (x_create_terminal): Add comment.
19599
19600 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19601
19602 2007-09-10 Richard Stallman <rms@gnu.org>
19603
19604 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19605
19606 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19607
19608 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19609 (DEFUN): Document `intspec', use it instead of `prompt'.
19610
19611 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19612
19613 * data.c (Finteractive_form): If the interactive specification starts
19614 with a `(', use it as a Lisp form.
19615
19616 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19617 name and file modes.
19618
19619 * callint.c (Fcall_interactively): Comment fixes.
19620
19621 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19622
19623 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19624 and compiled functions.
19625
19626 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19627
19628 * window.c (prefer_window_split_horizontally): New variable.
19629 (display_buffer): Consider splitting window horizontally depending
19630 on prefer_window_split_horizontally.
19631
19632 2007-09-08 Eli Zaretskii <eliz@gnu.org>
19633
19634 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19635
19636 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19637
19638 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19639
19640 * frame.c (x_set_frame_parameters): Check number is positive before
19641 using XFASTINT.
19642
19643 * window.c (freeze_window_start): Don't presume selected_window holds
19644 a window object.
19645 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19646
19647 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19648
19649 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19650
19651 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19652
19653 * window.c (Vsplit_window_preferred_function): New var.
19654 (Fdisplay_buffer): Use it.
19655 (syms_of_window): Export, and initialize it.
19656
19657 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19658
19659 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19660
19661 2007-09-06 Glenn Morris <rgm@gnu.org>
19662
19663 * gtkutil.c (menu_grab_callback) <cnt>:
19664 * xselect.c (x_reply_selection_request) <cnt>: Move static
19665 variable to file scope.
19666
19667 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19668
19669 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19670 consistent values of selected_frame and selected_window.
19671
19672 2007-09-04 Jason Rumney <jasonr@gnu.org>
19673
19674 * w32console.c (initialize_w32_display): Zero unused hooks.
19675
19676 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19677
19678 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19679 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19680
19681 2007-09-04 Jason Rumney <jasonr@gnu.org>
19682
19683 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19684 in w32console.c. Set up input. Remove XXX comments that have been
19685 confirmed as correct.
19686
19687 * s/ms-w32.h (MULTI_KBOARD): Define.
19688
19689 * w32console.c (one_and_only_w32cons): Remove.
19690 (initialize_w32_display): Take terminal argument.
19691
19692 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19693 initialize_w32_display.
19694 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19695
19696 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19697
19698 * keyboard.c (discard_mouse_events): Discard it.
19699 (make_lispy_event): Translate it to a lisp event.
19700 (lispy_wheel_names): Add wheel-left and right events.
19701 (syms_of_keyboard): Enlarge wheel_syms.
19702
19703 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19704 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19705
19706 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19707
19708 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19709 from WM_MOUSEHWHEEL.
19710 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19711
19712 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19713 terminal.
19714
19715 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19716 keyboard for the terminal.
19717
19718 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19719
19720 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19721 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19722 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19723 and resume-tty-function to resume-tty-hook.
19724 (Fsuspend_tty, Fresume_tty): Use new names.
19725
19726 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19727
19728 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19729 if it starts with "n:".
19730
19731 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19732
19733 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19734
19735 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19736
19737 * frame.h:
19738 * frame.c (Qterm_environment_variable): Remove.
19739 (syms_of_frame): Don't init and staticpro it.
19740
19741 * callproc.c (getenv_internal): Remove special case for $TERM.
19742
19743 * callproc.c (Vinitial_environment): New variable.
19744 (set_initial_environment): Initialize it.
19745 (syms_of_callproc): Declare it.
19746 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19747 TERM under which a process runs is never related to the TERM in which
19748 Emacs is running.
19749
19750 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19751
19752 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19753 * s/darwin.h: ... do it here.
19754
19755 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19756
19757 * lisp.h (set_initial_environment): Rename from set_global_environment.
19758
19759 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19760 removed by mistake on the multi-tty branch.
19761
19762 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19763 (Fmodify_frame_parameters): Return a value.
19764
19765 * image.c (png_load): Comment-out var only used in commented-out code.
19766
19767 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19768 before passing it to mark_object.
19769
19770 * xfaces.c (internal_resolve_face_name): Return a value.
19771 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19772
19773 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19774 (x_icon): Comment-out var only used in commented-out code.
19775
19776 2007-08-29 Romain Francoise <romain@orebokech.com>
19777
19778 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19779 QUIT hasn't been provided.
19780
19781 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19782
19783 * callproc.c (child_setup, getenv_internal): Use the
19784 display-environment-variable and term-environment-variable frame params.
19785 (set_initial_environment): Initialise Vprocess_environment.
19786
19787 * config.in: Disable multi-keyboard support on a mac.
19788
19789 * frame.c (Qterm_environment_variable)
19790 (Qdisplay_environment_variable): New variables.
19791 (syms_of_frame): Intern and staticpro them.
19792 (Fmake_terminal_frame): Disable output method test.
19793
19794 * frame.h: Declare them here.
19795
19796 * macfns.c (x_set_mouse_color): Get rif from the frame.
19797 (x_set_tool_bar_lines): Don't use updating_frame.
19798 (mac_window): Add 2 new parameters for consistency with other systems.
19799 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19800 frame parameters following what is done in X11 and w32. Don't use
19801 FRAME_MAC_DISPLAY_INFO.
19802 (Fx_open_connection, start_hourglass): Remove window-system check.
19803 (x_create_tip_frame): Get the keyboard from the terminal.
19804
19805 * macmenu.c: Reorder includes.
19806 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19807
19808 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19809 terminal parameter.
19810 (x_clear_frame): Add a frame parameter.
19811 (note_mouse_movement): Get rif from the frame.
19812 (mac_term_init): Initialize the terminal.
19813 (mac_initialize): Make static and move terminal initialization ...
19814 (mac_create_terminal): ... to this new function.
19815
19816 * macterm.h (struct mac_display_info): Add terminal.
19817 (mac_initialize): Delete declaration.
19818
19819 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19820
19821 * sysdep.c: Comment out text after #endif.
19822
19823 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19824 is defined. Better initialize ttys in windows. Use terminal
19825 specific mouse_position_hook.
19826
19827 * termhooks.h (union display_info): Add mac_display_info.
19828
19829 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19830 Set the default minibuffer frame, window_system and the rest of the
19831 frame parameters following what is done in X11.
19832
19833 * w32term.c (w32_initialize): Make static.
19834
19835 * xselect.c (x_handle_selection_clear): Only access
19836 terminal->kboard when MULTI_KBOARD is defined.
19837
19838 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19839 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19840
19841 2007-08-29 Jason Rumney <jasonr@gnu.org>
19842
19843 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19844 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19845
19846 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19847 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19848
19849 * keyboard.c (restore_kboard_configuration): Only define when
19850 MULTI_KBOARD defined.
19851
19852 * makefile.w32-in: Update dependancies from Makefile.in.
19853 (OBJ1): Add terminal.$(O)
19854
19855 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19856 Don't define function body.
19857 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19858
19859 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19860
19861 * w32.c (request_sigio, unrequest_sigio): Remove.
19862
19863 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19864 (w32con_clear_frame, w32con_clear_end_of_line)
19865 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19866 (w32con_delete_glyphs, w32con_set_terminal_window)
19867 (scroll_line, w32_sys_ring_bell): Add frame arg.
19868 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19869 Add terminal arg.
19870 (PICK_FRAME): Remove.
19871 (w32con_write_glyphs): Use frame specific terminal coding.
19872 (one_and_only_w32cons): New global variable.
19873 (initialize_w32_display): Use it for storing hooks.
19874 (create_w32cons_output): New function.
19875
19876 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19877 arg a frame.
19878
19879 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19880 Set window_system.
19881 (x_set_tool_bar_lines): Don't use updating_frame.
19882 (Fx_create_frame): Set terminal and ref count.
19883 (Fx_open_connection): Remove window-system check.
19884
19885 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19886
19887 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19888 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19889 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19890 Add frame arg.
19891 (x_delete_terminal, w32_create_terminal): New functions.
19892 (w32_term_init): Create a terminal.
19893 (w32_initialize): Move terminal specific initialization to
19894 w32_create_terminal.
19895
19896 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19897 (w32_clear_rect, w32_clear_area): Use background from frame.
19898 (w32_display_info): Add terminal.
19899 (w32_sys_ring_bell, x_delete_display): Declare here.
19900
19901 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19902
19903 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19904
19905 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19906
19907 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19908 Fix get_named_tty calls for the controlling tty.
19909
19910 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19911
19912 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19913
19914 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19915
19916 * term.c (tty_insert_glyphs): Add missing first parameter.
19917
19918 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19919
19920 * buffer.c (Fbuffer_list, Fbury_buffer):
19921 Take frame->buried_buffer_list into account.
19922
19923 * cm.c (current_tty): New variable, for cmputc().
19924 (cmputc): Use it.
19925 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19926 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19927 (cmgoto): Add tty parameter. Pass it on to calccost().
19928 Use emacs_tputs() instead of tputs().
19929
19930 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19931 tputs().
19932 (current_tty): New variable, for cmputc().
19933 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19934
19935 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19936 (internal_condition_case, internal_condition_case_1)
19937 (internal_condition_case_2): Don't abort when x_catching_errors.
19938
19939 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19940 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19941 prevent crashes caused by bogus longjmps in read_char.
19942
19943 * keymap.h (Fset_keymap_parent): Add EXFUN.
19944
19945 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19946 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19947 Remove redundant definition.
19948
19949 * macfns.c (x_set_mouse_color, x_make_gc):
19950 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19951
19952 * w32term.c (x_free_frame_resources):
19953 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19954 (w32_initialize): Use the accessor macros for terminal characteristics.
19955
19956 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19957 Use the accessor macros for terminal characteristics.
19958 * msdos.c (internal_terminal_init): Use the accessor macros for
19959 terminal characteristics.
19960 (ScreenVisualBell, internal_terminal_init):
19961 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19962
19963 * termopts.h (no_redraw_on_reenter): Declare.
19964
19965 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19966 (mark_terminals, mark_ttys): Declare.
19967 (Fgarbage_collect): Call them.
19968 (mark_object): Mark buried_buffer_list.
19969
19970 * prefix-args.c: Include stdlib.h for exit.
19971
19972 * syssignal.h: Add comment.
19973
19974 * indent.c: Include stdio.h.
19975
19976 * window.h (Vinitial_window_system): Declare.
19977 (Vwindow_system): Delete declaration.
19978
19979 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19980
19981 * image.c (lookup_image): Don't initialize `c' until the xasserts
19982 have been run.
19983
19984 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19985 FRAME_FOREGROUND_PIXEL.
19986
19987 * print.c (print_preprocess): Don't lose print_depth levels while
19988 iterating.
19989
19990 * widget.c (update_from_various_frame_slots):
19991 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19992
19993 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19994 frames.
19995 (window_internal_height): Remove bogus make_number call.
19996 (init_window_once): Call make_terminal_frame with two zero parameters.
19997
19998 * fileio.c (Fread_file_name): Update comment.
19999
20000 * callint.c (Fcall_interactively):
20001 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20002 Make sure it is correctly unwound.
20003
20004 * xsmfns.c (x_session_close): New function.
20005
20006 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20007 Delete declarations.
20008
20009 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20010 (x_output): Remove background_pixel and foreground_pixel fields.
20011 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20012 (x_delete_device, x_session_close): Declare.
20013
20014 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20015 (read_filtered_event): Call `read_char' with a local
20016 `wrong_kboard_jmpbuf'.
20017
20018 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20019 Don't call single_kboard_state. Use FRAME_RIF.
20020
20021 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20022 systems.
20023
20024 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20025 (Fframe_with_environment, Fset_input_meta_mode)
20026 (Fset_quit_char): EXFUN.
20027 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20028 (init_sys_modes, reset_sys_modes): Update prototypes.
20029 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20030
20031 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20032 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20033 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20034 Delete declarations.
20035 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20036 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20037 New declarations.
20038
20039 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20040 already does that during init_display(). Call syms_of_keymap
20041 before syms_of_keyboard. Call `syms_of_terminal'.
20042 Call set_initial_environment, not set_process_environment.
20043 (shut_down_emacs): Call reset_all_sys_modes() instead of
20044 reset_sys_modes().
20045
20046 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20047 (internal_resolve_face_name, resolve_face_name_error): New functions.
20048 (resolve_face_name): Protect against loops and errors thrown by Fget.
20049 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20050 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20051
20052 * scroll.c: Replace CURTTY() with local variables throughout the
20053 file (where applicable).
20054 (calculate_scrolling, calculate_direct_scrolling)
20055 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20056 characteristics.
20057
20058 * keymap.c (Vfunction_key_map): Remove.
20059 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20060 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20061 (Vkey_translation_map): Remove.
20062 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20063 (Fdescribe_buffer_bindings)
20064 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20065 Update for terminal-local key-translation-map.
20066
20067 * Makefile.in (callproc.o): Update dependencies.
20068 (lisp, shortlisp): Add termdev.elc.
20069 (obj): Add terminal.o.
20070 (terminal.o): Add dependencies.
20071 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20072 (data.o, fns.o): Add termhooks.h dependency.
20073 (SOME_MACHINE_LISP): Add dnd.elc.
20074 (minibuf.o): Fix typo.
20075 Update dependencies.
20076
20077 * data.c (do_symval_forwarding, store_symval_forwarding)
20078 (find_symbol_value): Use the selected frame's keyboard, not
20079 current_kboard.
20080
20081 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20082 Vwindow_system.
20083
20084 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20085 Fmenu_bar_open.
20086 (syms_of_xmenu): Update defsubr.
20087 (mouse_position_for_popup, Fx_popup_menu)
20088 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20089 (set_frame_menubar, free_frame_menubar)
20090 (create_and_show_popup_menu, xmenu_show)
20091 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20092 an X frame.
20093
20094 * xselect.c (x_own_selection): Abort if not an X frame.
20095 (some_frame_on_display): Check if it is an X frame.
20096 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20097
20098 * coding.c: Include frame.h and termhooks.h.
20099 (terminal_coding, keyboard_coding): Delete.
20100 (Fset_terminal_coding_system_internal)
20101 (Fset_keyboard_coding_system_internal)
20102 (Fkeyboard_coding_system)
20103 (Fterminal_coding_system): Add a terminal parameter.
20104 Get terminal_coding from the terminal.
20105 (init_coding_once): Don't call setup_coding_system here.
20106
20107 * dispextern.h (set_scroll_region, turn_off_insert)
20108 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20109 (tty_clear_end_of_line, tty_setup_colors)
20110 (delete_tty, updating_frame)
20111 (produce_special_glyphs, produce_glyphs, write_glyphs)
20112 (insert_glyphs): Remove.
20113 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20114 (tty_turn_off_highlight, get_tty_size): Add declaration.
20115 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20116
20117 * frame.h (enum output_method): Add output_initial.
20118 (struct x_output): Delete.
20119 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20120 Access foreground_pixel and background_pixel directly from the frame.
20121 (tty_display): Delete.
20122 (struct frame): Add buried_buffer_list, foreground_pixel,
20123 background_pixel and terminal. Delete kboard.
20124 (union output_data): Add tty.
20125 (FRAME_KBOARD): Get the kboard from the terminal.
20126 (FRAME_INITIAL_P): New macro.
20127 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20128 (Qterm_environment_variable, Qdisplay_environment_variable)
20129 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20130 New declarations.
20131
20132 * termchar.h (tty_output, tty_display_info): New structures.
20133 (tty_list): Declare.
20134 (FRAME_TTY, CURTTY): New macros.
20135 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20136 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20137 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20138 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20139
20140 * callproc.c: Include frame.h and termhooks.h, for terminal
20141 parameters.
20142 (add_env): New function.
20143 (child_setup): Use it.
20144 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20145 (getenv_internal): Fix get_terminal_param call.
20146 (Fgetenv_internal, egetenv): Update doc.
20147 (syms_of_callproc): Initialize Vprocess_environment to nil.
20148 Register and initialize them. Remove obsolete defvars. Update doc
20149 strings.
20150 (child_setup): Handle Vlocal_environment_variables.
20151 (getenv_internal): Add terminal parameter.
20152 Handle Vlocal_environment_variables.
20153 (Fgetenv_internal): Add terminal parameter.
20154 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20155 environment in a frame (not terminal) parameter. Update doc strings.
20156 (set_initial_environment): Rename from set_global_environment.
20157 Store Emacs environment in initial frame parameter.
20158
20159 * xdisp.c (redisplay_internal): Update references to
20160 `previous_terminal_frame'.
20161 (display_mode_line, Fformat_mode_line): Replace calls to
20162 `push_frame_kboard' with `push_kboard'.
20163 (get_glyph_string_clip_rects): Add extra parentheses and
20164 braces to prevent compiler warnings.
20165 (calc_pixel_width_or_height): Add xassert to check that the
20166 frame is alive. Don't call `lookup_image' on a termcap frame.
20167 (message2_nolog, message3_nolog, redisplay_internal)
20168 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20169 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20170 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20171 (Fx_display_pixel_width, Fx_display_pixel_height)
20172 (Fx_display_planes, Fx_display_color_cells)
20173 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20174 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20175 (Fx_display_backing_store, Fx_display_visual_class)
20176 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20177 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20178
20179 * xfns.c (x_set_foreground_color x_set_background_color)
20180 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20181 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20182 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20183 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20184 terminal that is being deleted.
20185 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20186 frame parameter, and make sure it overrides any user-supplied setting.
20187 (Fx_close_connection, Fx_synchronize): Unify argument names with
20188 the rest of the DEFUNs.
20189
20190 * dispnew.c (Fsend_string_to_terminal): Update call to
20191 `get_tty_terminal'.
20192 (Fredraw_frame, Fsend_string_to_terminal)
20193 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20194 FRAME_TERMCAP_P and FRAME_TTY.
20195 (window_change_signal): Don't believe width/height values that are
20196 impossibly small.
20197 (Vinitial_window_system): Rename from Vwindow_system.
20198 (termscript, Wcm, rif): Delete.
20199
20200 * termhooks.h (struct terminal): New struct containing the
20201 previously global text display hooks and new members NAME,
20202 DELETED and PARAM_ALIST.
20203 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20204 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20205 (FRAME_RIF): New macros.
20206 (get_terminal_param, get_device): New declarations.
20207 (termscript): Delete declaration.
20208
20209 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20210 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20211 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20212 FRAME_FOREGROUND_PIXEL.
20213 (x_fully_uncatch_errors): Disable definition.
20214 (x_scroll_bar_expose): Fix reference to foreground pixel.
20215 (XTread_socket): Disable loop on all X displays.
20216 (x_delete_terminal): Don't set terminal->deleted and let
20217 delete_terminal delete the frames on the terminal.
20218 (x_delete_display): Doc update to reflect changes in
20219 delete_terminal.
20220 (x_display_info) <terminal>: Move member earlier in the struct.
20221 (deleting_tty): Remove old variable.
20222 (Fsuspend_tty): Call clear_tty_hooks.
20223 (Fresume_tty, init_tty): Call set_tty_hooks.
20224 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20225 errors on X frames.
20226 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20227 (handle_one_xevent): Initialize `f' to NULL.
20228 (x_delete_terminal, x_create_terminal): New functions.
20229 (XTset_terminal_modes, XTreset_terminal_modes)
20230 (XTread_socket, x_connection_closed, x_term_init)
20231 (x_term_init, x_delete_display): Add terminal parameter.
20232 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20233 X connections.
20234
20235 * frame.c: Include termchar.h.
20236 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20237 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20238 (Qdisplay_environment_variable): New vars.
20239 (Fframep): Deal with output_initial.
20240 (Fframe-live-p): Doc fix.
20241 (Fwindow-system): New function.
20242 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20243 (make_terminal_frame): Don't create frames on a terminal that is
20244 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20245 (store_frame_param): Check for found_for_frame before calling XFRAME.
20246 (Fmake_terminal_frame): Handle NULL tty names correctly.
20247 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20248 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20249 frames to refer to a deleted frame in their 'environment parameter.
20250 (Fframe_with_environment): New function.
20251 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20252 (get_future_frame_param): New function.
20253 (Fmake_terminal_frame): Use it.
20254 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20255
20256 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20257 * sysdep.c (reset_sys_modes): Update for renames.
20258
20259 * keyboard.c (tty_read_avail_input): New function.
20260 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20261 (syms_of_keyboard): Defsubr them.
20262 (Fset_input_meta_mode, Fset_quit_char): New functions.
20263 (Fset_input_mode): Split to above functions.
20264 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20265 parameter. Use it in call to `read_char'.
20266 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20267 Set wrong_kboard_jmpbuf correctly in recursive calls.
20268 Use current_kboard to access Vkeyboard_translate_table.
20269 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20270 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20271 Update longjmp invocations. Remember the original current_kboard,
20272 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20273 changes it. Comment out unnecessary calls to
20274 `record_single_kboard_state' and `any_kboard_state'.
20275 Update recursive calls.
20276 (wrong_kboard_jmpbuf): Remove global variable.
20277 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20278 Handle deleted interrupted_kboards correctly; that is a legal
20279 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20280 and read_char calls. Abort if interrupted_kboard died in read_char.
20281 (any_kboard_state, single_kboard_state)
20282 (push_frame_kboard): Remove function.
20283 (pop_kboard): Switch out of single_kboard mode if the kboard has
20284 been deleted. Remove unused variable. Help debugging by not
20285 changing current_kboard unnecessarily. Set current_kboard to the
20286 kboard of the selected frame when the stored kboard object has
20287 been deleted before pop_kboard.
20288 (temporarily_switch_to_single_kboard): Change first parameter to a
20289 frame pointer. Throw an error when caller wants to change kboards
20290 while in single_kboard mode. Don't push_kboard if we weren't in
20291 single kboard state. Don't pop_kboard if we popped into any
20292 kboard state.
20293 (restore_kboard_configuration): Abort if pop_kboard changed the
20294 kboard in single_kboard mode. Call pop_kboard only after setting
20295 up single_kboard mode.
20296 (Frecursive_edit): Switch to single_kboard mode only in nested
20297 command loops.
20298 (cmd_error, command_loop, command_loop_1, timer_check):
20299 Comment out unnecessary call to `any_kboard_state' and
20300 `record_single_kboard_state'.
20301 (delete_kboard): Exit single_kboard mode if we have just deleted
20302 that kboard. Use FRAME_KBOARD.
20303 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20304 `fatal_error_signal'.
20305 (record_single_kboard_state): Don't push_kboard if we weren't in
20306 single kboard state. Don't pop_kboard if we popped into any
20307 kboard state.
20308 (push_frame_kboard): Rename to push_kboard.
20309 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20310 (read_avail_input): Read input from all terminals.
20311 (mark_kboards): Also mark Vkeyboard_translate_table.
20312 (kbd_buffer_store_event_hold): Simplify condition.
20313 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20314 (Vkeyboard_translate_table): Move to struct kboard.
20315 (init_kboard): Initialize Vkeyboard_translate_table.
20316 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20317 Vkeyboard_translate_table. Update doc strings. Update docs of
20318 local-function-key-map and function-key-map.
20319
20320 * terminal.c: New file.
20321
20322 * term.c: Include errno.h.
20323 (Vring_bell_function, device_list, initial_device)
20324 (next_device_id, ring_bell, update_begin, update_end)
20325 (set_terminal_window, cursor_to, raw_cursor_to)
20326 (clear_to_end, clear_frame, clear_end_of_line)
20327 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20328 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20329 (syms_of_term): Move their initialization to terminal.c.
20330 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20331 (Ftty_display_color_cells)
20332 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20333 (clear_tty_hooks, set_tty_hooks)
20334 (init_tty, maybe_fatal): New functions.
20335 (Ftty_type): Return nil if terminal is not on a tty instead of
20336 throwing an error. Doc update.
20337 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20338 Doc update. Initialize new subrs and variables.
20339 (delete_tty): Use terminal->deleted.
20340 (tty_set_terminal_modes): Rename from set_terminal_modes.
20341 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20342 (set_scroll_region): Rename to `tty_set_scroll_region'.
20343 (turn_on_insert): Rename to `tty_turn_on_insert'.
20344 (turn_off_insert): Rename to `tty_turn_off_insert'.
20345 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20346 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20347 (toggle_highligh): Rename to `tty_toggle_highlight'.
20348 (background_highlight): Rename to `tty_background_highlight'.
20349 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20350 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20351 (tty_set_scroll_region, tty_background_highlight)
20352 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20353 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20354 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20355 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20356 Add static modifier.
20357 (tty_reset_terminal_modes, tty_set_terminal_window)
20358 (tty_set_scroll_region, tty_background_highlight)
20359 (tty_highlight_if_desired, tty_cursor_to)
20360 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20361 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20362 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20363 renames.
20364
20365 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20366
20367 * keyboard.c: Qrtl is new.
20368 (parse_tool_bar_item): Handle :rtl keyword.
20369 (syms_of_keyboard): Intern :rtl keyword.
20370
20371 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20372
20373 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20374 so no Lisp code is executed.
20375 (file_for_image, find_rtl_image): New functions.
20376 (xg_get_image_for_pixmap): Use file_for_image.
20377 (update_frame_tool_bar): If direction is RTL, use RTL image if
20378 defined. Use Gtk stock images if defined.
20379
20380 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20381
20382 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20383 for nonexistent or zero-width glyph in composition glyph.
20384
20385 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20386
20387 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20388
20389 * xdisp.c (Finvisible_p): New function.
20390 (syms_of_xdisp): defsubr it.
20391
20392 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
20393
20394 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20395 Doc fixes.
20396
20397 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20398
20399 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20400
20401 2007-08-24 Martin Rudalics <rudalics@gmx.at>
20402
20403 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20404 whether decoding has modified buffer contents.
20405
20406 2007-08-24 Jason Rumney <jasonr@gnu.org>
20407
20408 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20409 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20410 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20411 (init_svg_functions) [HAVE_NTGUI]: New function.
20412 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20413 (svg_load_image): Use them.
20414 (svg_load_image) [HAVE_NTGUI]: Implement background.
20415
20416 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20417
20418 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20419 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20420 (LIBX): Remove @RSVG_LIBS@.
20421 (LIBES): Add $(RSVG_LIBS).
20422
20423 * image.c (svg_load_image): Blend with specified background if exists.
20424 Use IMAGE_BACKGROUND. Add Mac OS Support.
20425
20426 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20427 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20428 Remove macros.
20429 [MAC_OSX] (socket_callback): Do nothing.
20430 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20431 ReceiveNextEvent.
20432 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20433 socket_callback.
20434 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20435
20436 2007-08-22 Glenn Morris <rgm@gnu.org>
20437
20438 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20439
20440 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20441
20442 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20443
20444 * image.c: Add support for SVG images. Some additional comments
20445 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20446 (svg_image_p): New function to test for SVG image.
20447 (svg_load): New function to load SVG image.
20448 (svg_load_image): New function, helper for svg_load.
20449 (Qsvg): New Lisp_object.
20450 (svg_keyword_index): New enum.
20451 (svg_format): New static `image_keyword' struct.
20452 (svg_type): New static `image_type' struct.
20453 (librsvg/rsvg.h): Include it.
20454
20455 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20456
20457 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20458
20459 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20460
20461 * lread.c (Qold_style_backquotes): New var.
20462 (syms_of_lread): Init and staticpro it.
20463 (load_warn_old_style_backquotes): New fun.
20464 (Fload): Use them to warn about old style backquotes.
20465 (end_of_file_error, Fload): Remove unused vars.
20466
20467 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20468
20469 * lread.c (Vold_style_backquotes): New var.
20470 (syms_of_lread): Init and export it to Elisp.
20471 (read1): Set it when we find an old-style (back)quote.
20472
20473 2007-08-22 Jason Rumney <jasonr@gnu.org>
20474
20475 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20476
20477 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20478
20479 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20480
20481 2007-08-19 Richard Stallman <rms@gnu.org>
20482
20483 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20484
20485 2007-08-19 Andreas Schwab <schwab@suse.de>
20486
20487 * alloc.c (pure): Round PURESIZE up.
20488
20489 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20490
20491 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20492 active frame.
20493
20494 2007-08-16 Richard Stallman <rms@gnu.org>
20495
20496 * eval.c (Fcommandp): Add parens to clarify.
20497
20498 * minibuf.c (Fall_completions): Use enum for type of table.
20499
20500 * emacs.c (USAGE2): Improve text.
20501
20502 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20503
20504 * term.c (tty_default_color_capabilities): Declare static
20505 variables in file scope, to avoid HPUX compiler problem.
20506
20507 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20508
20509 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20510 to gtk_toolbar_insert.
20511
20512 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20513
20514 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20515
20516 * insdel.c (reset_var_on_error): New fun.
20517 (signal_before_change, signal_after_change):
20518 Use it to reset (after|before)-change-functions to nil in case of error.
20519 Bind inhibit-modification-hooks to t.
20520 Don't bind (after|before)-change-functions to nil while they run.
20521
20522 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20523
20524 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20525 filling pixmap with stippled background.
20526
20527 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20528
20529 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20530 Don't use invisible frame as parent window for repositioning.
20531
20532 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20533
20534 * print.c (new_backquote_output): Rename from old_backquote_output.
20535 (print): Inverse its logic (according to its name) so as to match the
20536 behavior of new_backquote_flag in lread.c.
20537
20538 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20539
20540 * gmalloc.c (posix_memalign): New function.
20541
20542 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20543 ActivateControl/DeactivateControl here.
20544 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20545 frame-notice-user-settings is non-nil.
20546 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20547 for kEventParamFMFontStyle.
20548 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20549 mac_pass_command_to_system and mac_pass_control_to_system here.
20550 (XTread_socket): Call ActivateControl/DeactivateControl here.
20551 (XTread_socket) [TARGET_API_MAC_CARBON]:
20552 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20553 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20554 for window repositioning.
20555
20556 2007-08-08 Glenn Morris <rgm@gnu.org>
20557
20558 * Replace `iff' in doc-strings and comments.
20559
20560 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
20561
20562 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20563
20564 2007-08-07 Martin Rudalics <rudalics@gmx.at>
20565
20566 * fileio.c (Finsert_file_contents): Run format-decode and
20567 after_insert_file_functions on entire buffer when REPLACE is
20568 non-nil and inhibit modification_hooks and point_motion_hooks.
20569 For consistency, run after_insert_file_functions iff something
20570 got inserted. Move signal_after_change and update_compositions
20571 after code running after_insert_file_functions. Make sure that
20572 undo_list doesn't record intermediate steps of the decoding process.
20573
20574 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20575
20576 * emacs.c (main)
20577 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20578 Call malloc_enable_thread on interactive startup.
20579
20580 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20581 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20582 [USE_PTHREAD]: Conditionalize with it.
20583 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20584 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20585 New functions.
20586
20587 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
20588
20589 * xdisp.c (redisplay_window): When restoring original buffer
20590 position, make sure it is still valid.
20591
20592 * image.c (png_load): Ignore png-supplied background color.
20593
20594 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20595
20596 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20597 Use kCFAbsoluteTimeIntervalSince1970.
20598
20599 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20600 New variable.
20601 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20602 event loop should be quit.
20603 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20604 Quit dialog event loop if quit_dialog_event_loop is set.
20605
20606 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20607 (Selection): New typedef. Use instead of ScrapRef.
20608 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20609 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20610 (mac_clear_selection): Rename from clear_scrap.
20611 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20612 scrap_has_target_type. All uses changed.
20613 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20614 (mac_selection_has_target_p): New functions.
20615 (mac_put_selection_value): Rename from put_scrap_string.
20616 (mac_get_selection_value): Rename from get_scrap_string.
20617 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20618 (put_scrap_private_timestamp, scrap_has_target_type)
20619 (get_scrap_private_timestamp): Remove functions.
20620 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20621 (x_own_selection, x_get_local_selection):
20622 Use mac_valid_selection_value_p.
20623 (x_own_selection): Don't use put_scrap_private_timestamp.
20624 Record OWNERSHIP-INFO into Vselection_alist instead.
20625 (x_get_local_selection): Don't check type if request is local.
20626 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20627 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20628
20629 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20630
20631 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20632 add comment explaining why.
20633
20634 2007-08-03 Richard Stallman <rms@gnu.org>
20635
20636 * fileio.c (Fvisited_file_modtime): Use make_time.
20637
20638 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20639
20640 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20641 build.
20642
20643 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20644
20645 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20646
20647 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20648
20649 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20650
20651 2007-07-30 Richard Stallman <rms@gnu.org>
20652
20653 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20654
20655 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20656
20657 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20658
20659 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
20660
20661 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20662 remote default-directory.
20663
20664 * buffer.c (mode-line-format): Update doc string.
20665
20666 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20667
20668 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20669 scroll bar gap.
20670 (x_scroll_bar_create): Set bar->fringe_extended_p.
20671 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20672 on frame edge. Check fringe background extension. Don't clear
20673 extended fringe background area.
20674
20675 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20676 (w32_fill_area): Enclose multiple statements with do ... while (0).
20677
20678 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20679 Extend fringe background to scroll bar gap.
20680 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20681 Set bar->fringe_extended_p.
20682 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20683 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20684 background extension. Don't clear extended fringe background area.
20685
20686 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20687 New member fringe_extended_p.
20688
20689 2007-07-25 Glenn Morris <rgm@gnu.org>
20690
20691 * Relicense all FSF files to GPLv3 or later.
20692
20693 * COPYING: Switch to GPLv3.
20694
20695 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20696
20697 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20698
20699 * data.c (Finteractive_form): Check for the presence of an
20700 `interactive-form' symbol property more thoroughly.
20701
20702 * data.c (Finteractive_form): Use an `interactive-form' property if
20703 present, analogous to the function-documentation property.
20704
20705 2007-07-24 Jason Rumney <jasonr@gnu.org>
20706
20707 * w32fns.c (x_real_positions): Get real position from OS instead of
20708 calculating it.
20709
20710 2007-07-23 Jason Rumney <jasonr@gnu.org>
20711
20712 * filelock.c (current_lock_owner): Allow for @ sign in username.
20713
20714 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
20715
20716 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20717 remote default-directory.
20718
20719 * buffer.c (mode-line-format): Describe above case in doc string.
20720
20721 2007-07-20 Eli Zaretskii <eliz@gnu.org>
20722
20723 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20724 Define if not defined.
20725
20726 2007-07-18 Jason Rumney <jasonr@gnu.org>
20727
20728 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20729
20730 2007-07-18 Richard Stallman <rms@gnu.org>
20731
20732 * data.c (Fsetq_default): Doc fix.
20733
20734 * eval.c (Fsetq): Doc fix.
20735
20736 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
20737
20738 * coding.c (Ffind_operation_coding_system):
20739 * eval.c (For, Fand): Doc fixes.
20740 Reported by Johan Bockgård.
20741
20742 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20743
20744 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20745
20746 * xterm.h: Declare x_ewmh_activate_frame.
20747
20748 * xterm.c (x_ewmh_activate_frame): New function.
20749 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20750
20751 2007-07-17 Martin Rudalics <rudalics@gmx.at>
20752
20753 * window.c (Fdisplay_buffer): If largest or LRU window is the
20754 only window, split it even if it is not eligible for splitting.
20755 This restores the original behavior broken by the 2007-07-15
20756 change.
20757
20758 2007-07-17 Glenn Morris <rgm@gnu.org>
20759
20760 * abbrev.c (abbrev_check_chars): New function.
20761 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20762 Call abbrev_check_chars to check abbrev characters are word
20763 constituents. Doc fix.
20764
20765 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20766
20767 * process.c (Fstart_process, Fmake_network_process)
20768 (read_process_output): Fix up last changes.
20769
20770 2007-07-16 Eli Zaretskii <eliz@gnu.org>
20771
20772 * makefile.w32-in (clean): Don't delete *~.
20773
20774 2007-07-16 Andreas Schwab <schwab@suse.de>
20775
20776 * window.c (Fdisplay_buffer): Use NILP.
20777 (Fset_window_scroll_bars): Likewise.
20778
20779 2007-07-15 Martin Rudalics <rudalics@gmx.at>
20780
20781 * window.c (window_min_size_2): New function.
20782 (window_min_size_1, size_window, Fdisplay_buffer)
20783 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20784 windows without mode- or header-lines when window-min-height is
20785 too small.
20786 (size_window): Reset nodelete_p after testing it, following an
20787 earlier note by Kim F. Storm.
20788 (display_buffer): Do not set split_height_threshold to twice the
20789 value of window_min_height to avoid changing the value of a
20790 customizable variable. Rather explicitly check whether the
20791 height of the window that shall be splitted is at least as large
20792 as split_height_threshold.
20793 (Fwindow_full_width_p): New defun.
20794 (syms_of_window): Defsubr it.
20795
20796 * window.h: Add EXFUN for Fwindow_full_width_p.
20797
20798 2007-07-14 Jason Rumney <jasonr@gnu.org>
20799
20800 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20801
20802 2007-07-14 Richard Stallman <rms@gnu.org>
20803
20804 * eval.c (maybe_call_debugger): New function.
20805 (find_handler_clause): Use maybe_call_debugger.
20806 Call it when the handler says `debug'.
20807 Eliminate DEBUGGER_VALUE_PTR.
20808 (Fsignal): Eliminate debugger_value.
20809 (Qdebug): New variable.
20810 (syms_of_eval): Initialize it.
20811
20812 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
20813
20814 * eval.c (Fprogn):
20815 * keyboard.c (Ftrack_mouse):
20816 * print.c (Fwith_output_to_temp_buffer):
20817 * window.c (Fsave_window_excursion): Doc fix.
20818
20819 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20820
20821 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20822
20823 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20824
20825 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20826 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20827 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20828 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20829 Remove unused encoding_carryover.
20830 * process.c: Adjust all functions accordingly.
20831
20832 2007-07-12 Richard Stallman <rms@gnu.org>
20833
20834 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20835
20836 2007-07-11 Jason Rumney <jasonr@gnu.org>
20837
20838 * makefile.w32-in (LIBS): Include OLE32.
20839
20840 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20841 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20842
20843 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20844
20845 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20846 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20847 from a Lisp_Object into a bare pointer.
20848 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20849 Adjust the code correspondingly.
20850
20851 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20852
20853 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20854 (term_show_mouse_face): Remove unused var `j'.
20855 (handle_one_term_event): Remove unused vars `i' and `j'.
20856 Don't cast return value of ttyname since it's not necessary.
20857
20858 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20859
20860 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20861 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20862
20863 * fns.c (map_char_table): Use an array of int for `indices' rather than
20864 an array of Lisp_Objects (which are only ever integers anyway).
20865 (Fmap_char_table): Update caller.
20866 * lisp.h: Update prototype.
20867 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20868 * fontset.c (Ffontset_info):
20869 * casetab.c (set_case_table): Update callers.
20870
20871 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20872
20873 * keymap.c (struct accessible_keymaps_data)
20874 (struct where_is_internal_data): New structures.
20875 (accessible_keymaps_1, where_is_internal_1): Use them to change
20876 interface to adhere to the one used by map_keymap.
20877 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20878 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20879
20880 * keymap.h (map_keymap_function_t): More informative prototype.
20881
20882 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20883
20884 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20885 (looking_at_1): Don't change search_regs and last_thing_searched
20886 if `inhibit-changing-match-data' is non-nil.
20887 (string_match_1, search_buffer, set_search_regs): Likewise.
20888 (syms_of_search): Add Lisp level definition for
20889 `inhibit-changing-match-data' and set it to nil.
20890 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20891 start and end of the match, instead of using values in search_regs.
20892
20893 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20894
20895 * minibuf.c (Fcompleting_read): New value `confirm-only'
20896 for `require-match'.
20897
20898 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20899
20900 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20901 part of the 2007-06-27 change to syms_of_fileio.
20902
20903 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20904
20905 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20906 Check WINDOWP before using XWINDOW. Consolidate return statements.
20907
20908 2007-06-27 Richard Stallman <rms@gnu.org>
20909
20910 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20911
20912 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
20913
20914 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20915
20916 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20917
20918 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20919 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20920 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20921 (_free_internal, memalign): Use them.
20922 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20923 Initialize to PTHREAD_MUTEX_INITIALIZER.
20924 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20925 (morecore_nolock): Rename from morecore. All uses changed.
20926 Use only nolock versions of internal allocation functions.
20927 (_malloc_internal_nolock, _realloc_internal_nolock)
20928 (_free_internal_nolock): New functions created from
20929 _malloc_internal, _realloc_internal, and _free_internal.
20930 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20931 Copy hook value to automatic variable before its use.
20932 (memalign): Copy hook value to automatic variable before its use.
20933
20934 2007-06-26 Kenichi Handa <handa@m17n.org>
20935
20936 * coding.c (Ffind_operation_coding_system): Docstring improved.
20937 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20938
20939 2007-06-25 David Kastrup <dak@gnu.org>
20940
20941 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20942 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20943 cater for additional parameter.
20944
20945 * keymap.h: Adjust number of parameters to `current-active-maps'.
20946
20947 * doc.c (Fsubstitute_command_keys): Adjust call of
20948 `current-active-maps'.
20949
20950 2007-06-25 David Kastrup <dak@gnu.org>
20951
20952 * callint.c (Fcall_interactively): Make the parsing of interactive
20953 specs somewhat more readable.
20954
20955 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20956
20957 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20958 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20959 if extended background has already been filled.
20960
20961 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20962
20963 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20964 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20965
20966 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20967 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20968 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20969 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20970 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20971 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20972 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20973 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20974 Run timers during dialog popup.
20975 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20976
20977 2007-06-21 Jason Rumney <jasonr@gnu.org>
20978
20979 * image.c (convert_mono_to_color_image): Swap fore and background.
20980
20981 2007-06-20 Jason Rumney <jasonr@gnu.org>
20982
20983 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20984 (w32_free_bdf_font): Unmap memory not handle.
20985
20986 2007-06-20 Sam Steingold <sds@gnu.org>
20987
20988 * gmalloc.c (__morecore): Fix the declaration to comply with the
20989 definition.
20990
20991 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
20992
20993 * w32term.c (w32_delete_display): Remove leftover declaration.
20994 (w32_define_cursor, w32_initialize): Make static.
20995
20996 * w32.c (_wsa_errlist): Fix typo in error message.
20997 (init_environment): Ignore any environment variable from the
20998 registry having a null value.
20999
21000 2007-06-20 Glenn Morris <rgm@gnu.org>
21001
21002 * Makefile.in (LIBGIF): Default to -lgif.
21003
21004 2007-06-17 Jason Rumney <jasonr@gnu.org>
21005
21006 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21007 unicode strings.
21008
21009 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
21010
21011 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21012 Fix typo in docstring.
21013
21014 2007-06-16 Eli Zaretskii <eliz@gnu.org>
21015
21016 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21017 and their keybindings.
21018
21019 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
21020
21021 * composite.c (update_compositions): Fix last fix.
21022
21023 2007-06-14 Jason Rumney <jasonr@gnu.org>
21024
21025 * w32.c (get_process_times_fn): New function pointer.
21026 (globals_of_w32): Intialize it if present in kernel32.dll.
21027 (w32_get_internal_run_time): New function.
21028
21029 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21030
21031 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21032
21033 * composite.c (update_compositions): Check the validness of
21034 compositions.
21035
21036 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21037
21038 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21039 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21040
21041 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21042 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21043
21044 * macgui.h (USE_MAC_TOOLBAR): New define.
21045
21046 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21047 Return immediately unless popup is activated.
21048
21049 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21050 background to scroll bar gap.
21051 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21052 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21053 scroll bars on frame edge. Check fringe background extension.
21054 Don't clear extended fringe background area.
21055 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21056 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21057 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21058 [USE_MAC_TOOLBAR]: New macros.
21059 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21060 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21061 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21062 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21063 [USE_MAC_TOOLBAR]: New functions.
21064 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21065 manually if previous repositioning has failed.
21066 (mac_handle_keyboard_event): Use precomputed event kind.
21067 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21068 as tool bar item click. Handle mouse movement over tool bar items.
21069
21070 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21071 toolbar_win_gravity.
21072 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21073 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21074 Add externs.
21075
21076 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21077 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21078
21079 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
21080
21081 * image.c (search_image_cache): Remove unused variable.
21082
21083 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
21084
21085 * xfns.c, xmenu.c: Link to xaw3d if available.
21086
21087 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21088
21089 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21090 frame_foreground and frame_background.
21091
21092 * image.c (lookup_image): Save frame foreground and background colors.
21093 (search_image_cache): Check if saved and current frame colors match.
21094
21095 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21096
21097 * regex.c (regex_compile): Remove the `regnum' counter.
21098 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21099
21100 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21101
21102 * term.c: Include intervals.h to declare Fget_text_property.
21103
21104 2007-06-10 Jason Rumney <jasonr@gnu.org>
21105
21106 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21107
21108 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
21109
21110 * callint.c (Fcall_interactively):
21111 * editfns.c (Fdelete_and_extract_region):
21112 * fileio.c (Fread_file_name):
21113 * fns.c (Fmapconcat):
21114 * keyboard.c (cmd_error_internal):
21115 * keymap.c (Fkey_description):
21116 * lread.c (openp):
21117 * minibuf.c (read_minibuf):
21118 * search.c (wordify):
21119 * sunfns.c (sel_read):
21120 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21121 * xfns.c (x_default_scroll_bar_color_parameter):
21122 * xmenu.c (menu_help_callback):
21123 * xselect.c (Fx_get_atom_name):
21124 * xterm.c (x_term_init): Use empty_unibyte_string.
21125
21126 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21127
21128 * alloc.c (init_strings): Initialize canonical empty strings.
21129 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21130 canonical empty string when the requested size is 0.
21131
21132 * emacs.c (empty_unibyte_string): Rename from empty_string.
21133 (empty_multibyte_string): New canonical empty string.
21134 (syms_of_emacs): Don't initialize empty_string.
21135
21136 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21137 string, if appropriate.
21138 (empty_unibyte_string, empty_multibyte_string): New externs.
21139 (empty_string): Remove extern.
21140
21141 * lread.c (syms_of_lread): Use empty_unibyte_string.
21142
21143 2007-06-07 Jason Rumney <jasonr@gnu.org>
21144
21145 * s/ms-w32.h: Don't define HAVE_TZNAME.
21146
21147 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21148
21149 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21150
21151 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21152
21153 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21154 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21155
21156 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21157 Don't call next handler.
21158 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21159 Remove argument. Install handler to application.
21160 (set_frame_menubar): Don't change deep_p.
21161 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21162 FRAME_OUTER_TO_INNER_DIFF_Y.
21163 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21164 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21165 [HAVE_DIALOGS]: New macros.
21166 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21167 Use them.
21168 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21169
21170 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21171 init_service_handler. All callers changed. Return OSStatus value.
21172
21173 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21174 All callers changed so as not to call SetPortWindowPort.
21175 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21176 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21177 mac_draw_string_common.
21178 (mac_draw_image_string_qd): Likewise.
21179 (mac_draw_string_common): Use them. Add INLINE.
21180 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21181 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21182 GetGlobalMouse.
21183 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21184 and FRAME_OUTER_TO_INNER_DIFF_Y.
21185 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21186 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21187 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21188 repositioning window to mac_handle_window_event.
21189 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21190 saving window location to mac_handle_window_event
21191 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21192 (install_menu_target_item_handler): Remove argument in extern.
21193 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21194 Also accept command events.
21195 (do_keystroke): New function created from XTread_socket.
21196 (init_command_handler): Remove functions.
21197 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21198 and save window location by kEventWindowShowing and kEventWindowHiding
21199 handlers here. Don't call next handler for window state change and
21200 focus events.
21201 (mac_handle_application_event, mac_handle_keyboard_event)
21202 [TARGET_API_MAC_CARBON]: New functions.
21203 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21204 kEventWindowShowing and kEventWindowHiding events. Move installation
21205 of mouse, font, text input and menu target item handlers to
21206 install_application_handler.
21207 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21208 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21209 New function.
21210 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21211 Register it.
21212 (XTread_socket) [TARGET_API_MAC_CARBON]:
21213 Consolidate SendEventToEventTarget calls.
21214 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21215 Move application activation handler to mac_handle_application_event.
21216 Move keyboard handler to mac_handle_keyboard_event.
21217 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21218 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21219 init_command_handler. Call install_application_handler.
21220
21221 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21222 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21223
21224 2007-06-07 Glenn Morris <rgm@gnu.org>
21225
21226 * emacs.c (main): Use `emacs-copyright' in --version output.
21227
21228 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
21229
21230 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21231
21232 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21233
21234 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21235
21236 * macgui.h: Replace WindowPtr with WindowRef.
21237
21238 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21239 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21240 Replace ControlHandle with ControlRef.
21241 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21242
21243 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21244 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21245 Replace ControlHandle with ControlRef.
21246 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21247 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21248
21249 * macterm.h (struct scroll_bar): Rename member control_handle_low
21250 and control_handle_high to control_ref_low and control_ref_high.
21251 All uses changed.
21252 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21253 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21254 respectively. All uses changed.
21255 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21256 (install_window_handler, remove_window_handler): Replace WindowPtr
21257 with WindowRef in externs.
21258
21259 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
21260
21261 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21262
21263 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
21264
21265 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21266
21267 * frame.c (Fmouse_position, Fmouse_pixel_position):
21268 Condition on HAVE_GPM too.
21269
21270 * term.c (term_mouse_highlight): Remove unused variables.
21271 (Fterm_open_connection): Set gpm_zerobased to 1.
21272 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21273 Use zero based co-ordinates.
21274 (handle_one_term_event): Report a drag as mouse movement too.
21275
21276 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21277
21278 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
21279
21280 * image.c (search_image_cache): New function. Require background
21281 color match if background color is unspecified in the image spec.
21282 (uncache_image, lookup_image): Use it.
21283
21284 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
21285
21286 * window.c (Fshrink_window): Reflow docstring.
21287
21288 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
21289
21290 * Version 22.1 released.
21291
21292 2007-06-01 Richard Stallman <rms@gnu.org>
21293
21294 * xfns.c (x_encode_text): Add GCPRO.
21295
21296 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21297
21298 * xfns.c (x_set_name_internal): Save encoded name before
21299 x_encode_text in case string data is relocated.
21300
21301 2007-05-31 Richard Stallman <rms@gnu.org>
21302
21303 * buffer.c (syms_of_buffer): Doc fix.
21304
21305 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
21306
21307 * sysdep.c (init_sys_modes): Add rather than replace with
21308 O_NONBLOCK.
21309
21310 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21311 term_mouse_moveto.
21312
21313 * termhooks.h (term_mouse_moveto): New extern.
21314
21315 * term.c (mouse_face_window): Rename...
21316 (Qmouse_face_window): ...to this.
21317 (term_show_mouse_face, term_clear_mouse_face)
21318 (term_mouse_highlight): Use Qmouse_face_window.
21319 (term_mouse_moveto): New function.
21320 (term_mouse_position): Make it work.
21321 (syms_of_term): Uncomment assignment to mouse_position_hook.
21322 Staticpro Qmouse_face_window.
21323
21324 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21325
21326 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21327 around current_column call.
21328
21329 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21330
21331 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21332 * xdisp.c (next_element_from_buffer):
21333 * window.c (delete_window):
21334 * term.c (term_mouse_highlight):
21335 * msdos.c (getdefdir):
21336 * macterm.c (mac_create_bitmap_from_bitmap_data)
21337 (init_font_name_table):
21338 * fns.c (Fsxhash):
21339 * data.c (Fmake_local_variable):
21340 * ccl.c (ccl_driver): Likewise.
21341
21342 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21343
21344 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21345 Call mac_wakeup_from_rne on window size change.
21346
21347 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
21348
21349 * image.c (uncache_image): Fix typo.
21350
21351 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21352
21353 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21354
21355 2007-05-22 Richard Stallman <rms@gnu.org>
21356
21357 * xterm.c (x_connection_closed): Remove NO_RETURN.
21358
21359 2007-05-22 Martin Rudalics <rudalics@gmx.at>
21360
21361 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21362
21363 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
21364
21365 * image.c (uncache_image): New function.
21366 (Fimage_refresh): New function.
21367
21368 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21369
21370 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21371
21372 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21373
21374 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21375 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21376
21377 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21378
21379 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21380 conditional on [HAVE_GPM_H].
21381
21382 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21383
21384 * syntax.c (skip_chars): Update syntax-table only after we checked that
21385 the new location is valid.
21386
21387 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21388
21389 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21390 mac_get_window_bounds.
21391
21392 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21393
21394 * Makefile.in (LIBGPM): Allow it to be set from configure.
21395 If set then link Emacs with it.
21396
21397 * config.in: Regenerate.
21398
21399 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21400 New externs.
21401
21402 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21403 Include gpm.h.
21404 (handle_one_term_event, term_gpm): New externs.
21405
21406 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21407 and allow it to be interrupted by SIGIO.
21408
21409 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21410 (wait_reading_process_output): Wait on gpm_fd too.
21411 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21412 (add_gpm_wait_descriptor_called_flag): New variable.
21413 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21414
21415 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21416 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21417 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21418 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21419 (make_lispy_event): Add case GPM_CLICK_EVENT.
21420 (read_avail_input): Handle mouse input.
21421
21422 * term.c (write_glyphs_with_face): New function.
21423 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21424 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21425 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21426 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21427 (last_mouse_x, last_mouse_y): New variables.
21428 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21429 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21430 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21431 (Fterm_close_connection): New functions.
21432 (term_init): Initialise mouse_face_window.
21433
21434 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
21435
21436 * xdisp.c (redisplay_window): If first window line is a
21437 continuation line, recompute the new window start instead of
21438 recentering.
21439
21440 2007-05-18 Glenn Morris <rgm@gnu.org>
21441
21442 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21443 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21444
21445 2007-05-17 Glenn Morris <rgm@gnu.org>
21446
21447 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21448
21449 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21450
21451 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21452 dead key repeat and up events.
21453
21454 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
21455
21456 * image.c (pbm_load): Check image size for monochrome pbm.
21457
21458 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
21459
21460 * xterm.c (XTread_socket): Revert last change.
21461
21462 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
21463
21464 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21465
21466 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21467
21468 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21469
21470 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21471 mixup (YAILOM).
21472
21473 2007-05-07 Andreas Schwab <schwab@suse.de>
21474
21475 * keymap.c (Flookup_key): Fix typo in last change.
21476
21477 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21478
21479 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21480 mapping for unibyte strings.
21481
21482 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21483
21484 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21485 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21486
21487 2007-04-29 Richard Stallman <rms@gnu.org>
21488
21489 * insdel.c (replace_range): For undo, record insertion first.
21490
21491 2007-04-29 Andreas Schwab <schwab@suse.de>
21492
21493 * lisp.h (VECSIZE): Use OFFSETOF.
21494
21495 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21496
21497 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21498 disabled lines.
21499
21500 2007-04-28 Richard Stallman <rms@gnu.org>
21501
21502 * lread.c (read_escape): In a string, \s is always space.
21503
21504 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21505
21506 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21507
21508 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21509 submenu for menu bar items.
21510
21511 See ChangeLog.10 for earlier changes.
21512
21513 ;; Local Variables:
21514 ;; coding: utf-8
21515 ;; add-log-time-zone-rule: t
21516 ;; End:
21517
21518 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
21519
21520 This file is part of GNU Emacs.
21521
21522 GNU Emacs is free software: you can redistribute it and/or modify
21523 it under the terms of the GNU General Public License as published by
21524 the Free Software Foundation, either version 3 of the License, or
21525 (at your option) any later version.
21526
21527 GNU Emacs is distributed in the hope that it will be useful,
21528 but WITHOUT ANY WARRANTY; without even the implied warranty of
21529 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21530 GNU General Public License for more details.
21531
21532 You should have received a copy of the GNU General Public License
21533 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21534
21535 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40