]> code.delx.au - gnu-emacs/blob - src/ChangeLog
* minibuf.c (Fall_completions): Minor optimization.
[gnu-emacs] / src / ChangeLog
1 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
2
3 * minibuf.c (Fall_completions): Minor optimization.
4
5 2009-12-26 Eli Zaretskii <eliz@gnu.org>
6
7 * .gdbinit (pgx): Fix display of composite glyphs. Display
8 cmp.from and cmp.to as well.
9 (pitx) Fix last change.
10
11 2009-12-19 Eli Zaretskii <eliz@gnu.org>
12
13 * .gdbinit (pitx): Don't use enum names, use their values. Remove
14 reference to non-existing value GET_FROM_COMPOSITION.
15 (pgx): Don't use enum names, use their values.
16 (pitmethod): New helper command.
17 (pitx): Use it to display iteration method.
18 (pgrowit): New command.
19
20 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
21
22 Update dependencies in Makefile.in.
23
24 * Makefile.in (alloc.o): Depend on termhooks.h.
25 (atimer.o): Depend on blockinput.h.
26 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
27 and frame.h.
28 (callint.o): Depend on systime.h, coding.h, and composite.h.
29 (callproc.o): Depend on buffer.h.
30 (casefiddle.o): Don't depend on charset.h.
31 (casetab.o): Depend on character.h.
32 (ccl.o): Depend on composite.h.
33 (chartab.o): Depend on ccl.h.
34 (cm.o): Depend on dispextern.h.
35 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
36 (coding.o): Don't depend on $(INTERVALS_H).
37 (composite.o): Don't depend on dispextern.h explicitly (it's in
38 $(INTERVALS_H)). Depend on ccl.h.
39 (data.o): Depend on systime.h, coding.h, composite.h,
40 dispextern.h, font.h, and ccl.h.
41 (dired.o): Depend on composite.h.
42 (dispnew.o): Depend on coding.h. Don't depend explicitly on
43 composite.h (it's in $(INTERVALS_H)).
44 (doc.o): Depend on systime.h, coding.h, and composite.h.
45 (editfns.o): Don't depend explicitly on dispextern.h.
46 (emacs.o): Depend on frame.h and coding.h.
47 (eval.o): Depend on coding.h, composite.h, and xterm.h.
48 (fileio.o): Depend on frame.h and commands.h. Don't depend
49 explicitly on dispextern.h.
50 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
51 composite.h.
52 (fns.o): Don't depend on termhooks.h.
53 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
54 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
55 coding.h, $(INTERVALS_H), window.h, xterm.h.
56 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
57 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
58 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
59 fontset.h, ccl.h, and ftfont.h.
60 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
61 (gtkutil.o): Depend on dispextern.h and composite.h.
62 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
63 termhooks.h, and ccl.h.
64 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
65 (intervals.o): Depend on systime.h and coding.h.
66 (keyboard.o): Depend on composite.h and coding.h.
67 (keymap.o): Depend on coding.h and frame.h.
68 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
69 (macros.o): Depend on systime.h, coding.h, and composite.h.
70 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
71 and atimer.h.
72 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
73 dispextern.h explicitly.
74 (print.o): Depend on termhooks.h, coding.h, and ccl.h. Don't
75 depend explicitly on dispextern.h and composite.h.
76 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
77 (regex.o): Don't depend on charset.h.
78 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
79 (search.o): Don't depend explicitly on composite.h.
80 (sound.o): Depend on atimer.h and systime.h.
81 (syntax.o): Don't depend explicitly on composite.h.
82 (sysdep.o): Depend on coding.h and composite.h.
83 (term.o): Depend on xterm.h and buffer.h.
84 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
85 (textprop.o): Don't depend on dispextern.h explicitly.
86 (undo.o): Depend on dispextern.h.
87 (window.o): Depend on coding.h and termhooks.h. Don't depend on
88 dispextern.h and composite.h explicitly.
89 (xdisp.o): Depend on ccl.h.
90 (xfaces.o): Depend on coding.h and ccl.h.
91 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
92 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
93 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
94 ftfont.h.
95 (xgselect.o): New dependency.
96 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
97 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
98 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
99 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
100 (xsmfns.o): Depend on frame.h and dispextern.h.
101 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
102 sysselect.h.
103
104 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
105
106 * font.c (Fclear_font_cache): Pass correct cache argument to
107 font_clear_cache.
108
109 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
110
111 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
112 twice.
113
114 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
115
116 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
117 calling file-remote-p. Reported by Jim Meyering.
118
119 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
120
121 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
122 avoid compiler warnings. (Bug #5217).
123
124 2009-12-14 Kenichi Handa <handa@m17n.org>
125
126 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
127 in 8-bit encoding.
128
129 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
130
131 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
132 tooltip windows.
133
134 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
135
136 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
137 Xatom_net_window_type.
138
139 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
140 Xatom_net_window_type.
141
142 * xterm.c (my_log_handler): New function.
143 (x_term_init): Set my_log_handler as log handler during gtk_init
144 so we can filter out buggy messages. (bug #5120).
145
146 * xterm.c (xg_scroll_callback): Parameter list changed,
147 use parameter GtkScrollType to determine scroll/line/page.
148 Only allow dragging if a button < 4 is grabbed (bug #5177).
149 (xg_end_scroll_callback): New function.
150 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
151 xg_create_scroll_bar.
152
153 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
154 (scroll_end_callback): Remove.
155 (xg_create_scroll_bar): Add parameter end_callback, bind it to
156 button-release-event. Replace value-changed event with change-value,
157 bug #5177,
158 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
159 bug #5177.
160
161 * gtkutil.h (XG_LAST_SB_DATA): Remove.
162 (xg_create_scroll_bar): Add GCallback end_callback.
163
164 * xftfont.c (QClcdfilter): New variable.
165 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
166 (syms_of_xftfont): Initialize QClcdfilter.
167
168 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
169
170 * xsettings.c (struct xsettings): Add member seen.
171 (parse_xft_settings): Update member seen with what we have read.
172 Return non-zero if Xft-settings have been parsed, 0 otherwise.
173 (apply_xft_settings): Only update Xft settings with what member seen
174 indicates as new.
175
176 2009-12-12 Eli Zaretskii <eliz@gnu.org>
177
178 * dispextern.h (struct text_pos): Use EMACS_INT;
179 (struct glyph): Use EMACS_INT for charpos.
180 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
181 region_beg_charpos, region_end_charpos,
182 redisplay_end_trigger_charpos, and also for
183 iterator_stack_entry.end_charpos and
184 iterator_stack_entry.stop_charpos.
185
186 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
187
188 * gtkutil.c (scroll_end_callback): New function (bug #5177)
189 (xg_create_scroll_bar): Call scroll_end_callback on button release
190 event (bug #5177).
191 (xg_event_is_for_scrollbar): != replaced with ==.
192
193 2009-12-12 Kenichi Handa <handa@m17n.org>
194
195 * ftfont.c (struct ftfont_info): New member matrix.
196 (ftfont_open): Setup xftfont_info->matrix.
197 (MFLTFontFT): New member matrix.
198 (FLOOR, CEIL, ROUND): New macros.
199 (ftfont_get_metrics): Handle matrix transformation.
200 (ftfont_shape_by_flt): New arg matrix. Callers changed.
201
202 * xftfont.c (struct xftfont_info): New member matrix.
203 (xftfont_open): Setup xftfont_info->matrix.
204
205 2009-12-10 Kenichi Handa <handa@m17n.org>
206
207 * xdisp.c (append_space_for_newline): Consider face-remapping.
208
209 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
210
211 * xsettings.c: Include "keyboard.h".
212
213 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
214
215 Fix implicit function declarations.
216 * cmds.c: Include "frame.h".
217 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
218 * frame.h: Move declaration of delete_frame outside of
219 HAVE_WINDOW_SYSTEM.
220
221 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
222
223 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
224
225 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
226 GTK builds.
227
228 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
229
230 * unexelf.c (unexec): Don't search for .data twice.
231
232 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
233
234 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
235 if push failed.
236 (handle_line_prefix): Set avoid_cursor_p here. Check return value
237 of push_display_prop (Bug#5000).
238
239 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
240 value of font_list_entities (Bug#5085).
241
242 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
243
244 Fix `string-to-number' to deal consistently with integers and floats.
245 * lread.c (isfloat_string): New argument ignore_trailing to accept all
246 trailing characters, not just whitespace.
247 (read1): Pass new arg 0 to keep old behavior.
248 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
249 trailing chars, as it is already done for integers. Doc fixes.
250 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
251
252 2009-12-04 Eli Zaretskii <eliz@gnu.org>
253
254 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
255 unused enumeration value.
256
257 2009-12-03 Eli Zaretskii <eliz@gnu.org>
258
259 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
260
261 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
262
263 * process.c (Fmake_network_process): Fix up the tests for
264 "connectionless socket", so they DTRT for seqpacket sockets as well.
265
266 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
267
268 * process.c (Qseqpacket): New symbol.
269 (HAVE_SEQPACKET): New macro.
270 (Fmake_network_process): Accept new :type `seqpacket'.
271 (init_process): Add `seqpacket' feature when applicable.
272 (syms_of_process): Initialize Qseqpacket.
273
274 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
275
276 * font.c (font_load_for_lface, font_open_by_name): Don't store name
277 if entity is Qnil.
278
279 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
280
281 * print.c (print_preprocess): Preprocess the key_and_value table of
282 hashtables, even tho they're "hidden" (bug#5082).
283
284 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
285
286 * frame.c (frame_make_pointer_invisible)
287 (frame_make_pointer_visible): Declare f before statements.
288
289 2009-11-28 Eli Zaretskii <eliz@gnu.org>
290
291 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
292 omitted dependencies on lisp.h.
293
294 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
295
296 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
297 is NULL.
298
299 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
300
301 * frame.c (frame_make_pointer_invisible)
302 (frame_make_pointer_visible): Just return if there isn't any selected
303 frame.
304
305 * search.c (simple_search): Remove warning by making *p const.
306
307 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
308
309 * xdisp.c (power_letter): Remove duplicate const.
310
311 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
312
313 * term.c (delete_tty): Remove check for last terminal (bug#4970).
314
315 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
316 defaults (bug #5025).
317
318 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
319
320 * insdel.c (adjust_markers_for_delete): Move it in the
321 right direction! (bug#4803)
322
323 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
324
325 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
326
327 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
328
329 2009-11-24 Glenn Morris <rgm@gnu.org>
330
331 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
332
333 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
334
335 * Makefile.in: Must create deps for ecrt0.o in its rule.
336
337 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
338 because that is what Gtk+ font dialog understands.
339
340 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
341 of Fcopy_sequence.
342 (font_open_by_name): Put name given into QCname for font-object returned.
343
344 * frame.c (x_set_font): Save original font name as frame parameter
345 font-parameter.
346
347 * xsettings.c (set_default_xft_settings): New function.
348 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
349 is found.
350
351 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
352
353 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
354 searching backwards through multibyte buffer.
355
356 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
357
358 * xterm.c: #include xgselect.h.
359 (x_initialize): Call xgselect_initialize.
360
361 * xsettings.c (something_changedCB): C++ comments => C comments.
362 (init_gconf): Do not deal with any GLib file descriptors, xg_select
363 does that now.
364
365 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
366 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
367 (scroll_bar_button_cb): Remove.
368 (create_menus): C++ comments => C comments. Don't bind grab-notify
369 event.
370 (xg_create_scroll_bar): Don't bind button-press-event and
371 button-release-event.
372
373 * process.c: Include xgselect.h if defined (USE_GTK) ||
374 defined (HAVE_GCONF).
375 (wait_reading_process_output): Call xg_select for the same condition.
376
377 * xgselect.c (xg_select): New function to better integrate with
378 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
379
380 * xgselect.h: New file, declare xg_select, xgselect_initialize.
381
382 * Makefile.in (XOBJ): Add xgselect.o.
383
384 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
385
386 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
387 ignored second argument. All callers changed.
388 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
389 (RE_STRING_CHAR_AND_LENGTH): Likewise.
390 * xdisp.c (string_char_and_length): Likewise.
391
392 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
393
394 * xterm.c (x_new_font):
395 * print.c (print_object):
396 * cmds.c (Fself_insert_command): Move declarations before statements.
397
398 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
399
400 * s/cygwin.h: Remove unneeded linker flags.
401
402 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
403
404 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
405
406 * xsettings.h: Declare xsettings_get_system_font.
407
408 * xsettings.c (xsettings_get_system_font): New function.
409 (init_gconf): No use initiating gconf unless we have Xft also.
410 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
411 HAVE_GCONF.
412
413 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
414 add a blank entry so it doesn't collapse into nothing.
415
416 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
417
418 * lread.c (Funintern): Comment out last change.
419
420 2009-11-19 Richard Stallman <rms@gnu.org>
421
422 * lread.c (Funintern): Error if symbol is t or nil.
423
424 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
425
426 * insdel.c (make_gap_larger): Don't make as many assumptions about the
427 representation of Lisp integers.
428 Reported by MJ Chan <mjchan.inbox@gmail.com>.
429
430 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
431
432 * lisp.h: Remove declaration of Ffont_get_system_font.
433 * xfns.c: Move include of "xsettings.h".
434 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
435
436 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
437
438 * xsettings.c (something_changedCB, Ffont_get_system_font):
439 Check use_system_font.
440 (syms_of_xsettings): DEFVAR font-use-system-font.
441
442 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
443
444 * xfns.c (x_default_font_parameter): Remove dead assignment.
445
446 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
447
448 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
449
450 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
451 not have FC_LCD_*. #define them if not there.
452
453 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
454
455 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
456
457 * xterm.c (handle_one_xevent): Call xft_settings_event for
458 ClientMessage, PropertyNotify and DestroyNotify.
459 (x_term_init): If we have XFT, get DPI from Xft.dpi.
460 Call xsettings_initialize.
461
462 * xftfont.c (xftfont_fix_match): New function.
463 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
464 Call xftfont_fix_match after XftFontMatch.
465
466 * xfont.c (xfont_driver): Initialize all members.
467
468 * xfns.c (x_default_font_parameter):
469 Try font from Ffont_get_system_font.
470 Do not get font from x_default_parameter if we got one from
471 Ffont_get_system_font.
472 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
473
474 * w32font.c (w32font_driver): Initialize all members.
475
476 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
477
478 * lisp.h: Declare syms_of_xsettings.
479
480 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
481 Handle CONFIG_CHANGED_EVENT.
482
483 * ftfont.c (ftfont_filter_properties): New function.
484
485 * frame.c (x_set_font): Remove unused variable lval.
486
487 * font.h (struct font_driver): Add filter_properties.
488
489 * font.c (font_put_extra): Don't return if val is nil, it means
490 boolean option is off.
491 (font_parse_fcname): Collect all extra properties in extra_props
492 and call filter_properties for all drivers with extra_props and
493 font as parameter.
494 (font_open_entity): Do not use cache, it does not pick up new
495 fontconfig settings like hinting.
496 (font_load_for_lface): If spec had a name in it, store it in entity.
497
498 * emacs.c (main): Call syms_of_xsettings
499
500 * config.in: HAVE_GCONF is new.
501
502 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
503 xsettings.o is new.
504
505 2009-11-17 Kenichi Handa <handa@m17n.org>
506
507 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
508 back to the default font in case that no suitable font is found.
509
510 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
511
512 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
513 Suggested by Chad Brown <yandros@mit.edu>.
514 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
515
516 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
517
518 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
519
520 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
521
522 * Makefile.in: Ignore errors from mkdir when creating deps directory.
523
524 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
525
526 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
527 has a parent.
528
529 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
530 dependency files in deps/. Include those files into Makefile.
531
532 * config.in: Generated (AUTO_DEPEND).
533
534 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
535
536 * dbusbind.c (Vdbus_registered_objects_table): Rename from
537 Vdbus_registered_functions_table, because it contains also
538 properties. Fix docstring.
539 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
540
541 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
542
543 * alloc.c (mark_object): Don't reprocess marked strings.
544 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
545 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
546
547 2009-11-13 Kenichi Handa <handa@m17n.org>
548
549 * category.c (word_boundary_p): Adjust for the change of the
550 semantics of Vword_combining_categories.
551 (Vword_combining_categories): Describe the slight change of the
552 semantics.
553
554 2009-11-13 Eli Zaretskii <eliz@gnu.org>
555
556 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
557
558 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
559
560 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
561
562 * xdisp.c (syms_of_xdisp): Fix typo in last change.
563
564 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
565
566 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
567
568 2009-11-11 David Reitter <david.reitter@gmail.com>
569
570 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
571 variables to fix 2009-11-09 change.
572
573 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
574
575 * process.c (ifflag_def): Make flag_sym constant.
576 (Fnetwork_interface_info): Use a constant pointer.
577 (ifflag_table):
578 * xfns.c (cursor_bits):
579 * xdisp.c (power_letter):
580 * termcap.c (speeds, esctab):
581 * sysdep.c (baud_convert):
582 * keyboard.c (lispy_accent_codes, modifier_names):
583 * image.c (xbm_format, xpm_format, pbm_format, png_format)
584 (jpeg_format, tiff_format, gif_format, svg_format)
585 (interlace_start, interlace_increment, gs_format):
586 * gtkutil.c (separator_names):
587 * fringe.c (swap_nibble):
588 * fns.c (base64_value_to_char, base64_char_to_value):
589 * fileio.c (make_temp_name_tbl):
590 * coding.c (suffixes): Make constant.
591
592 * frame.c (make_initial_frame):
593 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
594 build_string.
595 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
596
597 * s/freebsd.h:
598 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
599
600 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
601 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
602
603 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
604 * xterm.c (syms_of_xterm):
605 * xfaces.c (syms_of_xfaces):
606 * xdisp.c (syms_of_xdisp):
607 * lread.c (syms_of_lread):
608 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
609 build_string.
610
611 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
612
613 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
614
615 * fns.c (Fplist_get): Merge the active and the commented out code.
616
617 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
618
619 * keyboard.h: Declare timer_check.
620
621 * keyboard.c (timer_check_2): New function that does what the old
622 timer_check did.
623 (timer_check): Call timer_check_2 until -1 or a non-zero time is
624 returned, i.e. don't return -1 with timers pending.
625
626 * process.c: Remove extern declaration of timer_check.
627
628 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
629 even if timer_check returned -1.
630
631 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
632 xg_dialog_data.
633 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
634 the event loop.
635 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
636 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
637 Destroy the dialog after xg_dialog_run.
638
639 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
640
641 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
642
643 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
644
645 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
646
647 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
648
649 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
650
651 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
652
653 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
654 w32menu.c, and nsmenu.m.
655 Simplify the obsolete case where position is nil.
656 (cleanup_popup_menu): New function, moved from nsmenu.m.
657 (struct skp): Remove slot `notreal'.
658 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
659 adjust callers.
660 (single_menu_item): Adjust call to parse_menu_item.
661 (syms_of_menu): Defsubr x-popup-menu.
662 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
663 (keymap_panes): Don't export any more.
664 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
665 (xmenu_show): Declare.
666 * keyboard.c (parse_menu_item): Remove arg `notreal'.
667 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
668 * keyboard.h (parse_menu_item): Update declaration.
669 * xmenu.c (Fx_popup_menu): Remove.
670 (syms_of_xmenu): Don't defsubr x-popup-menu.
671 * w32menu.c (Fx_popup_menu): Remove.
672 (syms_of_w32menu): Don't defsubr x-popup-menu.
673 * nsmenu.m (cleanup_popup_menu): Remove.
674 (ns_menu_show): Rename from ns_popup_menu and remove all the code
675 moved to menu.c's Fx_popup_menu.
676 (Fx_popup_menu): Remove.
677 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
678 menu_items (it's done in menu.c already).
679
680 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
681
682 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
683 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
684
685 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
686
687 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
688 xmenu_show. Hide any tooltip before opening a menu.
689 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
690 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
691
692 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
693
694 Let integers use up 2 tags to give them one extra bit and thus double
695 their range.
696 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
697 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
698 New macros.
699 (enum Lisp_Type): Use them. Give explicit values.
700 (Lisp_Type_Limit): Remove.
701 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
702 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
703 Pay attention to USE_2_TAGS_FOR_INTS.
704 (INTEGERP): Use LISP_INT_TAG_P.
705 * fns.c (internal_equal): Simplify the default case.
706 (sxhash): Use case_Lisp_Int.
707 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
708 any more.
709 (Ftype_of): Use case_Lisp_Int.
710 (store_symval_forwarding): Take into account the fact that Ints can
711 now have more than one tag.
712 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
713 buffer_slot_type_mismatch):
714 * xfaces.c (face_attr_equal_p):
715 * print.c (print_object):
716 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
717 Use case_Lisp_Int.
718
719 2009-11-06 Eli Zaretskii <eliz@gnu.org>
720
721 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
722
723 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
724 warning.
725
726 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
727
728 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
729
730 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
731
732 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
733 ButtonPressRelease and MotionNotify (bug#4870).
734
735 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
736
737 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
738
739 * xterm.c (syms_of_xterm):
740 * xselect.c (syms_of_xselect):
741 * xmenu.c (syms_of_xmenu):
742 * xfns.c (syms_of_xfns):
743 * xfaces.c (syms_of_xfaces):
744 * xdisp.c (syms_of_xdisp):
745 * window.c (syms_of_window):
746 * w32fns.c (syms_of_w32fns):
747 * undo.c (syms_of_undo):
748 * textprop.c (syms_of_textprop):
749 * terminal.c (syms_of_terminal):
750 * syntax.c (syms_of_syntax):
751 * sound.c (syms_of_sound):
752 * search.c (syms_of_search):
753 * print.c (syms_of_print):
754 * minibuf.c (syms_of_minibuf):
755 * macros.c (syms_of_macros):
756 * keymap.c (syms_of_keymap, initial_define_key)
757 (initial_define_lispy_key):
758 * keyboard.c (syms_of_keyboard):
759 * insdel.c (syms_of_insdel):
760 * image.c (syms_of_image):
761 * fringe.c (syms_of_fringe):
762 * frame.c (syms_of_frame):
763 * fontset.c (syms_of_fontset):
764 * fns.c (syms_of_fns):
765 * fns.c (syms_of_fns):
766 * fileio.c (syms_of_fileio):
767 * fileio.c (syms_of_fileio):
768 * eval.c (syms_of_eval):
769 * doc.c (syms_of_doc):
770 * dispnew.c (syms_of_display):
771 * dired.c (syms_of_dired):
772 * dbusbind.c (syms_of_dbusbind):
773 * data.c (syms_of_data):
774 * composite.c (syms_of_composite):
775 * coding.c (syms_of_coding):
776 * cmds.c (syms_of_cmds):
777 * charset.c (define_charset_internal, syms_of_character):
778 * ccl.c (syms_of_ccl):
779 * category.c (syms_of_category, init_category_once):
780 * casetab.c (syms_of_casetab):
781 * casefiddle.c (syms_of_casefiddle):
782 * callint.c (syms_of_callint):
783 * bytecode.c (syms_of_bytecode):
784 * buffer.c (keys_of_buffer, syms_of_buffer):
785 * alloc.c (syms_of_alloc):
786 * process.c (syms_of_process, init_process):
787 * lread.c (syms_of_lread, init_obarray):
788 * font.c (build_style_table):
789 * emacs.c (syms_of_emacs, main): Replace calls to intern with
790 intern_c_string, calls to make_pure_string with
791 make_pure_c_string. Use pure_cons instead of Fcons.
792
793 * process.c (socket_options): Make it const.
794 (set_socket_option, init_process): Use a const pointer.
795
796 * lread.c (intern_c_string): New function.
797 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
798 (defvar_int): Uset it. Make the name const char*.
799
800 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
801 (defvar_int): Update prototypes.
802 (DEFUN, EXFUN): Support for prototypes is now required.
803 (intern_c_string): New prototype.
804 (struct Lisp_Subr): Make symbol_name constant.
805
806 * font.c (struct table_entry): Remove unused member. Make NAMES
807 constant.
808 (weight_table, slant_table, width_table): Make constant.
809
810 * emacs.c (struct standard_args): Make name and longname constant.
811
812 * character.h (DEFSYM): Use intern_c_string.
813
814 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
815
816 * alloc.c (make_pure_c_string): New function.
817
818 * eval.c (Fautoload): Purecopy all arguments.
819
820 2009-11-05 Kenichi Handa <handa@m17n.org>
821
822 * fileio.c (Finsert_file_contents): Be sure set coding-system of
823 the buffer in case of replace.
824
825 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
826
827 * puresize.h (BASE_PURESIZE): Increase to 1620000.
828
829 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
830
831 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
832 when applicable (bug#4851).
833
834 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
835 (P_): Support for prototypes is now required.
836
837 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
838
839 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
840 (Bug#4827).
841
842 2009-10-30 Eli Zaretskii <eliz@gnu.org>
843
844 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
845
846 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
847
848 * puresize.h (BASE_PURESIZE): Increase to 1470000.
849
850 * lread.c (Fload): Purecopy the file name when building
851 Vpreloaded_file_list.
852
853 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
854
855 * w32fns.c (syms_of_w32fns): Change default value of
856 w32-scroll-lock-modifier to nil. (Bug#2827)
857
858 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
859
860 * minibuf.c (Fall_completions): Fix typos in docstring.
861
862 2009-10-26 Andreas Schwab <schwab@redhat.com>
863
864 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
865
866 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
867
868 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
869 For delta < 0, skip check that only makes sense when the mini-window
870 is going to be enlarged. (Bug#4534)
871
872 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
873
874 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
875 string in menu maps (Bug#4471).
876
877 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
878
879 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
880 FRAME_NS_VIEW on terminal frames (Bug#4765).
881
882 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
883
884 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
885 DBUS_TYPE_UINTnn separately to get proper sign extension.
886
887 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
888 can properly handle unsigned types.
889 (make_uid, make_gid): Remove.
890
891 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
892 types again.
893
894 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
895 (system_process_attributes): Likewise.
896
897 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
898
899 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
900
901 * eval.c (Fautoload): Purecopy the filename. Simplify.
902
903 * category.c (Fdefine_category): Purecopy docstring.
904
905 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
906
907 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
908
909 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
910
911 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
912
913 * window.c (Fwindow_edges, Fwindow_pixel_edges)
914 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
915 (Bug#4775).
916
917 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
918
919 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
920 (init_fileio_once):
921 * lisp.h (init_fileio_once): Remove.
922 * emacs.c (main): Don't call init_fileio_once.
923
924 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
925
926 * puresize.h (BASE_PURESIZE): Increase to 1430000.
927
928 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
929
930 * doprnt.c (doprnt): Fix overflow check.
931
932 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
933
934 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
935
936 * xterm.h (x_wait_for_event): Declare it.
937
938 * xterm.c (pending_event_wait): New variable.
939 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
940 see pending_event_wait.eventtype.
941 (handle_one_xevent): Don't change gravity when parent changes.
942 (x_new_font): Call change_frame_size with new rows/columns before we
943 try to resize the frame.
944 (x_wait_for_event): New function.
945 (x_set_window_size_1): Don't change gravity unless change_gravity
946 is set.
947 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
948 don't change frame size, instead wait for the ConfigureNotify.
949 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
950 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
951 (x_initialize): Initialize pending_event_wait.
952
953 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
954 size.
955
956 * widget.c (EmacsFrameSetValues): Add comment.
957 (EmacsFrameSetCharSize): Just call x_set_window_size.
958
959 * gtkutil.c (xg_frame_set_char_size): Flush events and call
960 x_wait_for_event.
961 (flush_and_sync): Remove again.
962 (xg_get_font_name): Suggest monospace if no previous font is known.
963
964 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
965
966 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
967 8th bit, since that only made sense in the ASCII world (bug#4751).
968
969 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
970
971 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
972 processing pending events when event is filtered for input method.
973 (Bug#3681)
974
975 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
976
977 * fns.c: Add #endif accidentally removed in previous change.
978
979 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
980
981 * fns.c: Remove code for unsupported system: MAC_OS.
982 * image.c: Likewise. Include setjmp.h.
983
984 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
985
986 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
987 pixel -1 (bug #4742).
988
989 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
990
991 * process.c (create_pty): Remove conditionals for no longer
992 supported systems: UNIPLUS and RTU.
993
994 * xterm.c:
995 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
996
997 * alloc.c: Do not define struct catchtag.
998 * eval.c: Move struct catchtag definition ...
999 * lisp.h: ... here.
1000
1001 * image.c: Move png.h #include earlier to avoid warnings.
1002
1003 * xterm.c:
1004 * xsmfns.c:
1005 * xselect.c:
1006 * xrdb.c:
1007 * xmenu.c:
1008 * xftfont.c:
1009 * xfont.c:
1010 * xfns.c:
1011 * xfaces.c:
1012 * xdisp.c:
1013 * window.c:
1014 * widget.c:
1015 * w32xfns.c:
1016 * w32uniscribe.c:
1017 * w32term.c:
1018 * w32select.c:
1019 * w32reg.c:
1020 * w32proc.c:
1021 * w32menu.c:
1022 * w32inevt.c:
1023 * w32heap.c:
1024 * w32font.c:
1025 * w32fns.c:
1026 * w32console.c:
1027 * w32.c:
1028 * w16select.c:
1029 * vm-limit.c:
1030 * unexsol.c:
1031 * unexec.c:
1032 * unexcw.c:
1033 * unexaix.c:
1034 * undo.c:
1035 * tparam.c:
1036 * textprop.c:
1037 * terminfo.c:
1038 * terminal.c:
1039 * termcap.c:
1040 * term.c:
1041 * syntax.c:
1042 * sound.c:
1043 * sheap.c:
1044 * search.c:
1045 * scroll.c:
1046 * region-cache.c:
1047 * regex.c:
1048 * ralloc.c:
1049 * process.c:
1050 * print.c:
1051 * nsterm.m:
1052 * nsselect.m:
1053 * nsmenu.m:
1054 * nsimage.m:
1055 * nsfont.m:
1056 * nsfns.m:
1057 * msdos.c:
1058 * minibuf.c:
1059 * menu.c:
1060 * marker.c:
1061 * macros.c:
1062 * keymap.c:
1063 * keyboard.c:
1064 * intervals.c:
1065 * insdel.c:
1066 * indent.c:
1067 * gtkutil.c:
1068 * ftxfont.c:
1069 * ftfont.c:
1070 * fringe.c:
1071 * frame.c:
1072 * fontset.c:
1073 * font.c:
1074 * fns.c:
1075 * floatfns.c:
1076 * filelock.c:
1077 * fileio.c:
1078 * emacs.c:
1079 * editfns.c:
1080 * dosfns.c:
1081 * doprnt.c:
1082 * doc.c:
1083 * dispnew.c:
1084 * dired.c:
1085 * dbusbind.c:
1086 * data.c:
1087 * composite.c:
1088 * coding.c:
1089 * cmds.c:
1090 * cm.c:
1091 * chartab.c:
1092 * charset.c:
1093 * character.c:
1094 * ccl.c:
1095 * category.c:
1096 * casetab.c:
1097 * casefiddle.c:
1098 * callproc.c:
1099 * callint.c:
1100 * bytecode.c:
1101 * buffer.c:
1102 * atimer.c: Include setjmp.h. (Bug#4643)
1103
1104 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1105
1106 Remove leftover table unibyte_to_multibyte_table.
1107 * character.c (unibyte_to_multibyte_table): Remove.
1108 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1109 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1110 * character.h (UNIBYTE_TO_CHAR): New macro.
1111 (MAKE_CHAR_MULTIBYTE): Use it.
1112 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1113 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1114 (message_dolog, set_message_1):
1115 * search.c (Freplace_match):
1116 * editfns.c (Fcompare_buffer_substrings):
1117 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1118 (concat):
1119 * insdel.c (copy_text, count_size_as_multibyte):
1120 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1121 * term.c (produce_glyphs):
1122 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1123 * regex.c (RE_CHAR_TO_MULTIBYTE):
1124 * cmds.c (internal_self_insert):
1125 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1126
1127 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1128
1129 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1130
1131 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1132
1133 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
1134
1135 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1136
1137 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1138
1139 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1140 still needed under Tiger.
1141
1142 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1143
1144 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1145 __Apple__.
1146
1147 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1148
1149 2009-10-15 Kenichi Handa <handa@m17n.org>
1150
1151 * print.c (print_object): Escape a symbol like "2E10" too.
1152
1153 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
1154
1155 Cleanups and changes for 64-bit compile under Snow Leopard.
1156 Based on suggestions by Erik Charlebois.
1157
1158 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1159
1160 * nsfont.m (ns_char_width): Replace deprecated call.
1161 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1162 cast argument.
1163 (nsfont_open): Use ns_char_width() everywhere.
1164 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
1165
1166 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1167
1168 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1169 where appropriate.
1170
1171 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1172 where appropriate.
1173 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1174 Use stringWithUTF8String.
1175 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1176
1177 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1178 Add formal protocol mention to inheritance.
1179 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1180
1181 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1182 Fix printf format.
1183 (ns_query_color): Use CGFloat where appropriate.
1184 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1185 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1186 argument.
1187
1188 * config.in (NS_HAVE_NSINTEGER): Drop.
1189
1190 * dbusbind.c (dbus-method-return-internal)
1191 (dbus-method-error-internal): Use long format in printf, and cast
1192 argument.
1193
1194 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1195 in printf, and cast argument.
1196
1197 * process.c (list_processes_1): Use long format in printf, and
1198 cast argument.
1199
1200 2009-10-11 Glenn Morris <rgm@gnu.org>
1201
1202 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1203
1204 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1205
1206 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1207 menu bar with a small width so it doesn't enlarge the frame.
1208
1209 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
1210
1211 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1212
1213 2009-10-06 Glenn Morris <rgm@gnu.org>
1214
1215 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1216 SOME_MACHINE_LISP (this enters indirectly via DOC).
1217
1218 2009-10-05 Eli Zaretskii <eliz@gnu.org>
1219
1220 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1221
1222 2009-10-04 Eli Zaretskii <eliz@gnu.org>
1223
1224 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1225 Doc fix.
1226
1227 2009-10-03 Martin Rudalics <rudalics@gmx.at>
1228
1229 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1230
1231 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
1232
1233 * lisp.h (Qdelete_directory_internal): Remove, because it is not
1234 used anymore outside fileio.c.
1235
1236 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1237
1238 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
1239
1240 * lisp.h (Qdelete_directory_internal):
1241 Declare, instead of Qdelete_directory.
1242
1243 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1244
1245 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1246
1247 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1248
1249 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
1250
1251 * fileio.c (Fdelete_directory_internal): Rename from
1252 Fdelete_directory. It is not a command anymore. It has no file
1253 name handler.
1254
1255 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1256
1257 * xdisp.c (get_next_display_element): Use an enum in last change.
1258
1259 2009-09-28 Kenichi Handa <handa@m17n.org>
1260
1261 * xdisp.c (get_next_display_element): Pay attention to
1262 unibyte_display_via_language_environment in handling
1263 Vnobreak_char_display.
1264
1265 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1266
1267 * nsterm.h (ns_app_name): New extern variable.
1268
1269 * nsterm.m (ns_app_name): New variable.
1270 (ns_term_init): Set and use it.
1271 (ns_term_shutdown): Use it.
1272
1273 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1274 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1275
1276 * nsfns.m (ns_set_name_iconic, ns_set_name)
1277 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1278 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1279
1280 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1281 Remove double-casting in client_data comparison.
1282
1283 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1284
1285 * keyboard.c (make_lispy_event): Remember last wheel direction.
1286 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1287
1288 2009-09-26 Glenn Morris <rgm@gnu.org>
1289
1290 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1291 internal.elc. Add term/pc-win.elc.
1292 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1293 term/x-win.elc.
1294 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1295 term/w32-win.elc.
1296 (NS_SUPPORT): New.
1297 (lisp): Add NS_SUPPORT.
1298 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1299
1300 2009-09-25 David Reitter <david.reitter@gmail.com>
1301
1302 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1303 on Mac OS X 10.6+ (bug#4513).
1304
1305 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1306
1307 * frame.c (xrdb_get_resource): Return nil for empty string resources;
1308 some parts of Emacs code (like font selection) don't grok them.
1309 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
1310
1311 2009-09-24 Andreas Schwab <schwab@redhat.com>
1312
1313 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1314
1315 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1316
1317 * dired.c (Fdirectory_files): Fix typo in docstring.
1318
1319 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1320
1321 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1322 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1323 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1324 under GNUstep.
1325 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1326
1327 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1328 glyph advancement.
1329
1330 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1331
1332 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
1333 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
1334
1335 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1336 deleted (bug #4492).
1337
1338 * nsfont.m (Vns_reg_to_script): New lisp variable.
1339 (syms_of_nsfont): Declare it.
1340 (ns_registry_to_script): New function.
1341 (ns_get_req_script): Call it.
1342 (ns_findfonts): Don't give up on non-unicode registry.
1343
1344 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1345
1346 2009-09-20 Tom Tromey <tromey@redhat.com>
1347
1348 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1349 batch mode (bug#4228).
1350
1351 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
1352
1353 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
1354 carefully. (Bug #4339)
1355
1356 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
1357
1358 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
1359
1360 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1361
1362 * emacs.c (inhibit_x_resources): Update doc string for NS.
1363 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
1364 legacy code for -NXHost. Fix error printf in daemon case.
1365
1366 * nsterm.h (ns_no_defaults): Remove.
1367
1368 * nsterm.m (ns_no_defaults): Remove.
1369 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1370 (ns_use_qd_smoothing): Remove legacy variable.
1371 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1372 don't update the NSWindow itself.
1373 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
1374 state detection and store user rect ourselves. (Bug #3581)
1375
1376 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1377 ns_use_qd_smoothing.
1378
1379 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1380 platform versions. Drop support for emacs-20-style face specs.
1381 (x-close-connection): Drop PSFlush() under OS X.
1382 (x-focus-frame): Activate the app first. (Bug #4180)
1383
1384 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
1385
1386 * emacs.c (inhibit_x_resources): New variable.
1387 (main) [HAVE_NS]: Don't process --quick command line option.
1388 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1389
1390 * lisp.h (inhibit_x_resources): Declare it extern.
1391
1392 * w32reg.c (x_get_string_resource):
1393 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1394
1395 2009-09-17 Eli Zaretskii <eliz@gnu.org>
1396
1397 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1398 Add lisp/term/internal.elc.
1399
1400 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1401
1402 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1403 (bug#4461).
1404
1405 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1406
1407 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1408
1409 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1410 (OBJECTS_MACHINE): Remove, unused.
1411
1412 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1413
1414 * frame.c (x_get_resource_string): Remove unused.
1415
1416 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1417
1418 * xterm.c (x_new_font): Call change_frame_size before calling
1419 x_set_window_size, in case frame size won't change.
1420
1421 * frame.c (x_set_font): Remove dead code.
1422
1423 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1424
1425 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1426
1427 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1428
1429 * lread.c (Fload): Don't output a message after loading an obsolete
1430 package any more (done in Lisp now).
1431
1432 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
1433
1434 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1435
1436 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1437
1438 * keymap.c (Fwhere_is_internal): Use nconc2.
1439
1440 2009-09-11 Alan Mackenzie <acm@muc.de>
1441
1442 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1443 batch mode.
1444
1445 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1446
1447 * xdisp.c (display_mode_element): Detect cycles.
1448
1449 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1450
1451 * keymap.c (where_is_internal): Don't erroneously return nil right after
1452 filling the cache.
1453 (where_is_internal_1): Fix up typo.
1454
1455 2009-09-11 Glenn Morris <rgm@gnu.org>
1456
1457 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1458 share a common doc-string.
1459
1460 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1461
1462 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1463 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1464
1465 * keymap.c (QCadvertised_binding): New constant.
1466 (syms_of_keymap): Initialize it.
1467 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1468 if applicable.
1469
1470 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1471
1472 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1473 (parse_menu_item): Streamline since bindings are recomputed all the
1474 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1475 more and don't support lmenu's menu-alias any more either.
1476
1477 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1478 (where_is_internal): Strip it down to only traverse the keymaps.
1479 Move the cache handling from Fwhere_is_internal to here.
1480 (Fwhere_is_internal): Move the handling of remapping and the choice of
1481 the best binding from where_is_internal to here.
1482 Unify the cached/noncached paths, so remapping is also handled
1483 correctly when the cache is used, and so the cache can be used to
1484 speed up remap-handling when applicable.
1485 Give preference to non-remapped bindings.
1486 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1487 non-remapped bindings.
1488 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1489 command remapping.
1490
1491 * xdisp.c (display_mode_element): Move list length limit from 50 to
1492 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1493
1494 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
1495
1496 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1497
1498 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1499
1500 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1501 (Bug#4334)
1502
1503 * keymap.c (where_is_internal): Filter out shadowed remappings.
1504 Assume that where_is_internal returns unshadowed bindings to simplify
1505 the code and get rid of the gotos. Use ASIZE.
1506
1507 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1508
1509 * xterm.c (x_focus_changed): If we get a focusout and pointer
1510 is invisible, make it visible.
1511
1512 * xterm.h: Remove condition for declaration of
1513 x_*_window_to_frame.
1514
1515 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1516
1517 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1518 initial terminal as well.
1519
1520 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1521
1522 * xterm.h: Rename x_non_menubar_window_to_frame to
1523 x_menubar_window_to_frame.
1524
1525 * xterm.c: Remove declarations also in xterm.h
1526 (XTmouse_position): Do not return valid positions
1527 for clicks in the menubar and the toolbar for Gtk+.
1528
1529 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1530 if the widget for the event has the same top level as a frame,
1531 return the frame.
1532 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1533 internal windows, bug #4122.
1534 (x_non_menubar_window_to_frame): Remove.
1535
1536 2009-09-02 Glenn Morris <rgm@gnu.org>
1537
1538 * buffer.c (default-major-mode): Move most of the doc from here...
1539 (major-mode): ... to here.
1540
1541 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
1542
1543 * process.c (wait_reading_process_output): Keep the descriptor
1544 when pty is used by a non-child process, e.g., in I/O buffer of
1545 GDB this allows inferior to be restarted.
1546
1547 2009-08-29 Eli Zaretskii <eliz@gnu.org>
1548
1549 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1550 both branches into one.
1551
1552 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1553
1554 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1555 (main): Use enable-multibyte-characters rather than
1556 default-enable-multibyte-characters. Output a warning message when
1557 running a unibyte session.
1558
1559 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1560
1561 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1562 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1563 (copy_data_segment): Also copy __program_vars section.
1564 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1565 (dump_it) [LC_DYLD_INFO]: Use it.
1566
1567 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1568
1569 2009-08-28 Eli Zaretskii <eliz@gnu.org>
1570
1571 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1572 $(SRC)/buildobj.h.
1573 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1574 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1575 $(SRC)/buildobj.h.
1576 (clean): Add buildobj.h.
1577
1578 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1579
1580 * print.c (print_object): Set escapeflag to 1 when printing
1581 hashtable keys and values.
1582
1583 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1584
1585 * lread.c (read_integer): Use doubles (and potentially return a float
1586 number) as we do in string-to-number.
1587 (read1): Use strtol to read integers, signal errors on strtol's
1588 overflow and use floats if strtol's output is too large for
1589 Elisp integers.
1590
1591 2009-08-27 Eli Zaretskii <eliz@gnu.org>
1592
1593 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1594 (make-buildobj-SH): Fix last change.
1595 (SRC): Move to before where it's first used.
1596
1597 2009-08-27 Kenichi Handa <handa@m17n.org>
1598
1599 * process.c (send_process): Use encode_coding_object instead of
1600 encode_coding_string to perform eol-conversion even if the string
1601 is unibyte.
1602
1603 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1604 character.
1605
1606 * cmds.c (Fself_insert_command): Avoid unnecessay
1607 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
1608
1609 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1610
1611 * callproc.c (Fcall_process): Remove always true #if.
1612
1613 * lisp.h: Replace #if 0 code for checking with text pointing to
1614 the --enable-checking configure flag.
1615
1616 * emacs.c (main): Mention the --enable-profiling configure flag
1617 instead of using CFLAGS.
1618
1619 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
1620
1621 * Makefile.in (buildobj.h): New target.
1622 (doc.o): Depend on it.
1623 (temacs${EXEEXT}): Don't generate buildobj.lst.
1624 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1625 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1626 ($(BLD)/doc.$(O)): Depend on it.
1627 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1628 provided by Eli Zaretskii.)
1629 ($(TEMACS)): Don't generate buildobj.lst.
1630 * doc.c: Include buildobj.h.
1631 (buildobj): New static variable.
1632 (Fsnarf_documentation): Use it, instead of opening and reading
1633 buildobj.lst.
1634
1635 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
1636
1637 * dbusbind.c (Fdbus_call_method)
1638 (Fdbus_call_method_asynchronously): Use English numeric format for
1639 timeout values in doc string.
1640
1641 2009-08-25 Kenichi Handa <handa@m17n.org>
1642
1643 * alloc.c (mark_char_table): New function.
1644 (mark_object): Use mark_char_table for a char-table.
1645
1646 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1647 (CHAR_TABLE_REF): Use it.
1648
1649 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
1650
1651 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1652 before invoking the newly build emacs to check for load-path
1653 shadowing.
1654
1655 2009-08-22 Glenn Morris <rgm@gnu.org>
1656
1657 * Makefile.in (bootstrap_exe): New variable.
1658 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1659 Use ${bootstrap_exe}.
1660
1661 2009-08-22 Eli Zaretskii <eliz@gnu.org>
1662
1663 * coding.h (encode_coding_string): Don't encode unibyte strings.
1664 (Bug#4047)
1665
1666 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
1667
1668 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1669
1670 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1671 intended as hotfix only.
1672 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1673
1674 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1675
1676 * nsterm.m (ns_get_color): Update documentation properly for last
1677 change, and clean up loose ends in the code left by it. Fix
1678 longstanding bug with 16-bit hex parsing, and add support for
1679 yet another X11 format (rgb:r/g/b) for compatibility.
1680 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1681 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1682
1683 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1684
1685 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1686
1687 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
1688
1689 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1690 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1691 (xd_initialize, xd_pending_messages): Check, whether
1692 $DBUS_SESSION_BUS_ADDRESS is set.
1693
1694 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1695
1696 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1697
1698 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1699
1700 2009-08-20 Glenn Morris <rgm@gnu.org>
1701
1702 * emacs.c (system-type): Doc fix.
1703
1704 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1705
1706 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1707 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1708
1709 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
1710
1711 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1712 New functions.
1713 (xd_initialize): Revert change from 2009-08-16.
1714
1715 2009-08-18 Kenichi Handa <handa@m17n.org>
1716
1717 * fontset.c (Ffontset_font): If a nil element is found in a
1718 font-group vector, return nil.
1719
1720 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
1721
1722 * process.c (status_notify): Don't perform redisplay.
1723 (Fdelete_process, list_processes_1, process_send_signal):
1724 Expliticly perform redisplay.
1725 (wait_reading_process_output): Always check process status, but
1726 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1727
1728 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
1729
1730 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
1731 (XFLOAT_INIT): New macro for storing a float value.
1732 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1733 * fns.c (sxhash): Copy out the value of a float in order to
1734 examine its bytes.
1735 * dbusbind.c (xd_append_arg): Likewise.
1736
1737 * emacs.c (main): Don't call syms_of_data twice.
1738
1739 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
1740
1741 * dbusbind.c (xd_initialize): Add connection file descriptor to
1742 input_wait_mask, in order to let select() detect, whether a new
1743 message has been arrived.
1744 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
1745
1746 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
1747
1748 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1749 New functions.
1750
1751 * lisp.h (xd_pending_messages): Declare.
1752
1753 * keyboard.c (readable_events): Call xd_pending_messages.
1754
1755 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
1756
1757 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
1758
1759 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1760
1761 * buffer.c (set_buffer_internal_1)
1762 (swap_out_buffer_local_variables): Check for unbound local
1763 variables (Bug#4138).
1764
1765 2009-08-14 Eli Zaretskii <eliz@gnu.org>
1766
1767 * process.c (create_pty): Fix last change.
1768
1769 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
1770
1771 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1772 (xbm_load_image): Caller changed.
1773 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
1774
1775 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
1776
1777 * process.c (create_pty): New function.
1778 (Fstart_process): Use it to allow Emacs to just associate a pty
1779 with the buffer. See associated change in gdb-mi.el.
1780 (list_processes_1): Deal with no program name.
1781 (start_process_unwind): Use pid == -2 to mean no process.
1782
1783 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1784
1785 * cmds.c (nonundocount): New global variable.
1786 (keys_of_cmds): Initialize it.
1787 (Fself_insert_command): Use it to combine upto 20 sequential chars
1788 into a single undo entry, just like the Qself_insert_command code in
1789 keyboard.c does.
1790 Call frame_make_pointer_invisible, also like the Qself_insert_command
1791 code in keyboard.c does.
1792 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1793 than its own local replacement for it.
1794
1795 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
1796
1797 * fns.c (concat): Don't re-set string length to its current value.
1798
1799 * coding.h (decode_coding_string, encode_coding_string):
1800 Use SBYTES macro.
1801
1802 * doprnt.c (doprnt_lisp): Delete unused function.
1803 (doprnt): Merge with doprnt1, discarding lispstrings code.
1804 * lisp.h (doprnt_lisp): Don't declare.
1805
1806 2009-08-07 Juri Linkov <juri@jurta.org>
1807
1808 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1809
1810 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1811
1812 * print.c (syms_of_print): Undo previous change.
1813
1814 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1815
1816 * lread.c (read1, syms_of_lread): Read hashtables back from the
1817 readable format.
1818
1819 * print.c (print_preprocess, print_object): Print hashtables fully
1820 and readably.
1821 (syms_of_print): Provide 'hashtable-print-readable.
1822
1823 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1824
1825 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1826 no family set.
1827 (nsfont_open): Handle case when entity has no family.
1828
1829 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1830
1831 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1832 element, not a list, for match case.
1833
1834 2009-07-28 Kenichi Handa <handa@m17n.org>
1835
1836 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1837 rigidly.
1838
1839 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1840 font_parse_xlfd. Check font properties more rigidly.
1841
1842 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1843
1844 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1845 bsd-common.h.
1846
1847 2009-07-27 Kenichi Handa <handa@m17n.org>
1848
1849 * xfaces.c (face_with_height): Call font_clear_prop.
1850
1851 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
1852
1853 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1854
1855 * xterm.c (x_term_init): Use Qx.
1856
1857 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1858
1859 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
1860 (ns_get_color): Revert 2009-07-16 change.
1861
1862 2009-07-25 Eli Zaretskii <eliz@gnu.org>
1863
1864 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1865 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
1866
1867 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
1868
1869 * coding.h (decode_coding_string, encode_coding_string):
1870 Use SCHARS macro.
1871
1872 * lread.c: Rewrite 2009-07-21 changes.
1873 (load_depth): Delete.
1874 (Qload_in_progress): New variable.
1875 (load_unwind): Don't reference load_depth or load_in_progress.
1876 (Fload): Likewise; specbind Qload_in_progress instead.
1877 (init_lread): Don't initialize load_depth.
1878 (syms_of_lread): Initialize and protect Qload_in_progress.
1879
1880 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1881
1882 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1883
1884 2009-07-23 Yavor Doganov <yavor@gnu.org>
1885
1886 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1887
1888 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1889
1890 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
1891 Bugs 3792, 3720, 2402.
1892 (ns_lookup_indexed_color): Check for bad index.
1893 (ns_index_color): Init unused slot to 0.
1894 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1895 Bug 3714, possibly 3082.
1896
1897 2009-07-22 Jason Rumney <jasonr@gnu.org>
1898
1899 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1900 Position IME window at cursor (Bug#2570).
1901 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1902 (globals_of_w32fns): Dynamically load functions required above.
1903
1904 * w32term.c (w32_draw_window_cursor): Send message to reposition
1905 any IME window.
1906
1907 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1908
1909 * fileio.c: Revert 2009-07-16 changes.
1910 (Vauto_save_include_big_deletions): New variable.
1911 (Fdo_auto_save): Disable auto-save only if
1912 auto-save-include-big-deletions is nil.
1913
1914 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1915
1916 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1917 the overflowed pixels into account (Bug#3879).
1918
1919 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
1920
1921 * lread.c (load_depth): New variable.
1922 (Fload, load_unwind, init_lread): Set it to the load recursion
1923 depth; set load_in_progress as a simple boolean based on the
1924 current load_depth. (Bug#3892)
1925
1926 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1927
1928 * nsfont.m (ns_has_attribute): Remove.
1929 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1930
1931 2009-07-18 Juri Linkov <juri@jurta.org>
1932
1933 * process.c (Fset_process_query_on_exit_flag): Mention killing
1934 a buffer in docstring.
1935
1936 2009-07-17 Kenichi Handa <handa@m17n.org>
1937
1938 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1939
1940 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1941
1942 * nsfns.m (Fns_set_alpha): Remove function.
1943 (syms_of_nsfns): Don't defsubr it.
1944
1945 * nsterm.m (ns_get_color): Remove incompatible color formats.
1946 (ns_color_to_lisp): Generate #rrggbb color format string.
1947
1948 2009-07-16 Richard Stallman <rms@gnu.org>
1949
1950 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1951 (Fset_buffer_auto_saved): Handle save_length = -2.
1952
1953 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
1954
1955 * xterm.c (Qx_gtk_map_stock): New var.
1956
1957 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1958 of calling intern each time.
1959
1960 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1961
1962 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1963 does tiling.
1964
1965 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1966
1967 2009-07-14 Kenichi Handa <handa@m17n.org>
1968
1969 * font.c (font_vconcat_entity_vectors): New function.
1970 (struct font_sort_data): New member font_driver_preference.
1971 (font_compare): Check font_driver_preference.
1972 (font_sort_entities): The format of the first argument changed.
1973 (font_delete_unmatched): Likewise.
1974 (font_list_entities): The return type changed.
1975 (font_select_entity): The format of the second argument changed.
1976 (font_find_for_lface): Adjuste for the above changes.
1977 Don't suppress the checking of C even if the repertory supports it.
1978 (Flist_fonts): Adjust for the above changes.
1979
1980 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1981 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
1982 Reject a font who has adstyle property that is different from a
1983 langname derived from registry property.
1984 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
1985
1986 2009-07-13 Eli Zaretskii <eliz@gnu.org>
1987
1988 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1989 local copy of dirfilename.
1990
1991 2009-07-13 Kenichi Handa <handa@m17n.org>
1992
1993 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1994 against max_char.
1995
1996 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1997 calling XSYMBOL (sym).
1998
1999 2009-07-11 Eli Zaretskii <eliz@gnu.org>
2000
2001 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2002 New function.
2003 (directory_files_internal) [WINDOWSNT]:
2004 Bind w32-get-true-file-attributes to either t or nil, depending whether
2005 the filesystem of the directory is fast or slow.
2006
2007 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2008 file name.
2009 (is_slow_fs): New function.
2010 (stat): Use it to determine whether to issue more system calls to
2011 get accurate file attributes, when w32-get-true-file-attributes is
2012 `local'.
2013
2014 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2015
2016 * xfns.c (Fx_select_font): Remember last font selected in
2017 x_last_font_name and use that the next time. Also try the frame
2018 parameter font-parameter as default to the font dialog.
2019
2020 2009-07-10 Kenichi Handa <handa@m17n.org>
2021
2022 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2023
2024 2009-07-09 Eli Zaretskii <eliz@gnu.org>
2025
2026 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2027
2028 * w32.c (stat): Treat UNC file names as residing on remote
2029 drives. (Bug#3542)
2030
2031 2009-07-09 Kenichi Handa <handa@m17n.org>
2032
2033 * fontset.c (fontset_find_font): Fix previous change.
2034
2035 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
2036
2037 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2038 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2039 error flag.
2040
2041 2009-07-08 Kenichi Handa <handa@m17n.org>
2042
2043 * fontset.c (fontset_find_font): Fix the logic of handling
2044 charset_matched.
2045 (font_for_char): Delete unused var.
2046 (generate_ascii_font_name): Delete it.
2047
2048 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2049
2050 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2051 (encode_coding_sjis): Fix the code range check.
2052
2053 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
2054
2055 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2056 (Fexpand_file_name): Copy string data properly (Bug#3772).
2057
2058 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2059
2060 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2061 first MapNotify.
2062
2063 2009-07-07 Kenichi Handa <handa@m17n.org>
2064
2065 * character.h (unibyte_has_multibyte_table): Delete extern.
2066 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2067
2068 * charset.c (Fset_charset_priority): Update charset_unibyte.
2069 (syms_of_charset): Initialize charset_unibyte.
2070
2071 * character.c (unibyte_has_multibyte_table): Delete it.
2072 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2073 charset_unibyte.
2074 (multibyte_char_to_unibyte_safe): Likewise.
2075 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2076
2077 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
2078 (x_produce_glyphs): Likewise.
2079
2080 * .gdbinit (xcharset): Fix the treating $arg0.
2081
2082 2009-07-04 Eli Zaretskii <eliz@gnu.org>
2083
2084 Emulation of `getloadavg' on MS-Windows.
2085 * w32.c: Include float.h
2086 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2087 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2088 (get_native_system_info, get_system_times): New functions.
2089 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2090 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2091 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2092 g_b_init_get_system_times, and num_of_processors.
2093
2094 2009-07-03 Jason Rumney <jasonr@gnu.org>
2095
2096 * w32term.c (w32_initialize): Use standard types.
2097
2098 2009-07-03 Eli Zaretskii <eliz@gnu.org>
2099
2100 * dired.c (Ffile_attributes): Decode user and group names by the
2101 locale's encoding. (Bug#3443)
2102
2103 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2104
2105 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2106 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2107
2108 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2109
2110 * term.c (init_tty): Remove spurious #ifdef.
2111
2112 * m/mips.h: Mention this file is also used for netbsd.
2113 * m/pmax.h: Remove file.
2114
2115 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2116
2117 * xterm.h (struct x_display_info): Add invisible_cursor.
2118 (struct x_output): Add current_cursor.
2119
2120 * xterm.c (XTtoggle_invisible_pointer): New function.
2121 (x_define_frame_cursor): Don't define cursor if invisible or the
2122 same as before. Set current_cursor.
2123 (x_create_terminal): Set toggle_invisible_pointer_hook.
2124
2125 * xfns.c (make_invisible_cursor): New function.
2126 (x_set_mouse_color): Call make_invisible_cursor.
2127 Set current_cursor.
2128 (x_window): Set current_cursor.
2129
2130 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2131
2132 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2133 inserting a character.
2134 (read_avail_input): Call frame_make_pointer_visible.
2135
2136 * frame.c (Vmake_pointer_invisible): New variable.
2137 (frame_make_pointer_invisible, frame_make_pointer_visible):
2138 New functions.
2139 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2140
2141 * frame.h: Declare frame_make_pointer_invisible and
2142 frame_make_pointer_visible.
2143 (struct frame): Add pointer_invisible.
2144
2145 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2146
2147 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2148 frame isn't visible.
2149 (xg_frame_resized): If width/height is -1, get size of window
2150 from X server.
2151
2152 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2153 for MapNotify.
2154
2155 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
2156 here or call change_frame_size. Just call flush_and_sync.
2157 (flush_and_sync): Reintroduce.
2158
2159 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
2160
2161 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
2162
2163 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2164 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2165
2166 * frame.h: Declare Qsticky.
2167
2168 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2169
2170 * nsfns.m (ns_frame_parm_handlers): Ditto.
2171
2172 * frame.c: Declare Qsticky.
2173 (frame_parms): Add sticky.
2174
2175 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2176
2177 * xterm.h: Declare x_set_sticky.
2178
2179 * xterm.c (x_set_sticky): New function.
2180
2181 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2182 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2183 xg_tool_bar_proxy_help_callback.
2184
2185 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2186
2187 * frame.c: Qmaximized is new.
2188 (x_set_frame_parameters): Do not handle fullscreen specially.
2189 Only set width and height if explicitly set.
2190 (x_set_fullscreen): Handle Qmaximized.
2191 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2192 (syms_of_frame): Initialize Qmaximized.
2193
2194 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2195 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
2196
2197 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
2198 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2199 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
2200 set gravity to NorthWestGravity when USE_GTK.
2201 (set_wm_state): New function.
2202 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
2203 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2204 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
2205 or the case when no window manager is running. That means remove calls
2206 to x_real_positions and x_fullscreen_adjust.
2207
2208 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2209 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2210 flush_and_sync.
2211 (xg_height_changed): New function.
2212 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
2213 and gtk_window_set_policy. Set frame gravity after parsing the
2214 geometry string.
2215 (xg_update_frame_menubar, free_frame_menubar)
2216 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2217 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2218 Remove calls to xg_frame_set_char_size.
2219
2220 2009-07-01 Kenichi Handa <handa@m17n.org>
2221
2222 * keyboard.c (decode_keyboard_code): New function.
2223 (tty_read_avail_input): Decode the input bytes if necessary.
2224
2225 * coding.c (setup_coding_system):
2226 Initialize coding->carryover_bytes to 0.
2227 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2228 use Qno_conversion.
2229
2230 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2231
2232 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2233
2234 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
2235
2236 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
2237
2238 2009-06-30 Jason Rumney <jasonr@gnu.org>
2239
2240 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2241 is already loaded.
2242 Set user model ID if supported (bug#1849).
2243
2244 2009-06-29 Jim Meyering <meyering@redhat.com>
2245
2246 Remove useless if-before-xfree test.
2247 * nsfont.m (nsfont_close): Remove useless test.
2248 * term.c (delete_tty): Likewise.
2249 * w32.c (system_process_attributes): Likewise.
2250 * w32font.c (w32font_close): Likewise.
2251 * xfaces.c (x_free_gc): Likewise.
2252 * xselect.c (buffer): Likewise.
2253
2254 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2255
2256 * process.c (send_process): Keep decoded string in a local
2257 variable and protect it from GC. (Bug#3521)
2258
2259 2009-06-28 Eli Zaretskii <eliz@gnu.org>
2260
2261 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2262 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2263
2264 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
2265
2266 * xdisp.c (start_display, handle_face_prop)
2267 (move_it_vertically_backward, cursor_row_fully_visible_p)
2268 (redisplay_window, try_window_id, produce_image_glyph):
2269 Delete some #ifdef-ed out code chunks that are now obsolete.
2270
2271 * xterm.c (x_update_window_begin, x_new_focus_frame)
2272 (x_scroll_bar_handle_click, handle_one_xevent)
2273 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2274 (x_make_frame_visible, x_make_frame_invisible)
2275 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2276 code chunks that are now obsolete.
2277
2278 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
2279
2280 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2281 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2282 for hours, when optimzation is enabled.
2283 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2284 (xd_read_message): Make them static.
2285
2286 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2287
2288 * term.c (turn_on_face): Allow simultaneously bold and dim
2289 terminal faces (Bug#3530).
2290
2291 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
2292
2293 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2294
2295 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2296 truncation glyphs (Bug#3686).
2297
2298 2009-06-27 Glenn Morris <rgm@gnu.org>
2299
2300 * m/pmax.h: Restore file, with only netbsd portions.
2301
2302 2009-06-26 David Reitter <david.reitter@gmail.com>
2303
2304 * nsterm.m (keydown): Avoid infinite loop.
2305
2306 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2307
2308 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2309 the arg FORCE_SYMBOL.
2310
2311 2009-06-25 Kenichi Handa <handa@m17n.org>
2312
2313 * fontset.c (fontset_find_font): When a usable rfont_def is found
2314 in a fallback font-group, make it the first element of the group.
2315
2316 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
2317
2318 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2319
2320 2009-06-24 Kenichi Handa <handa@m17n.org>
2321
2322 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2323 set for C.
2324 (fontset_font): Record the availability of a font for C both in
2325 the realized fontsets of the current one and the default one.
2326
2327 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2328
2329 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2330 conditional, it is always defined on AIX.
2331
2332 2009-06-23 Miles Bader <miles@gnu.org>
2333
2334 * window.c (Vrecenter_redisplay): New variable.
2335 (syms_of_window): Initialize it.
2336 (Qtty): New extern declaration.
2337 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2338
2339 2009-06-23 Jim Meyering <meyering@redhat.com>
2340
2341 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2342 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
2343 pointer dereferences are guaranteed to be valid.
2344
2345 2009-06-23 Kenichi Handa <handa@m17n.org>
2346
2347 * emacs.c (main): Call init_font ().
2348
2349 * font.h (Vfont_log): Extern it.
2350 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2351
2352 * font.c (font_sort_entities, font_list_entities)
2353 (font_matching_entity, font_open_entity)
2354 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2355 (Vfont_log): Delete static.
2356 (font_log_env_checked): Delete this variable.
2357 (font_add_log): Don't check font_log_env_checked.
2358 (font_deferred_log): Check Vfont_log.
2359 (init_font): New function.
2360
2361 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2362
2363 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2364
2365 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2366
2367 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2368
2369 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2370 (face_for_char): Don't call font_deferred_log here.
2371 (font_for_char): Likewise.
2372
2373 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
2374
2375 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2376 rather than its background_width for drawing the overline and
2377 underline (Bug#489).
2378
2379 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2380 rather than its background_width for drawing the overline and
2381 underline (Bug#489).
2382 (xg_default_icon_file): New variable.
2383 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2384 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
2385
2386 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2387 (load_overlay_strings): Remove externs.
2388 (fast_find_position): Function deleted.
2389 (mouse_face_from_buffer_pos): New function, based on
2390 fast_find_position. Correctly handle before-strings,
2391 display-strings, and after-strings (Bug#1220).
2392 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2393
2394 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2395
2396 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
2397 (move_it_in_display_line_to, move_it_in_display_line_to)
2398 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2399
2400 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2401
2402 * Branch for 23.1.
2403
2404 2009-06-21 Jason Rumney <jasonr@gnu.org>
2405
2406 * w32term.c (keyboard_codepage): New static variable.
2407 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2408 (w32_read_socket) [WM_CHAR]: Use it to decode character
2409 input (bug#3237).
2410 (w32_initialize): Initialize it.
2411 (codepage_for_locale): New function.
2412
2413 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
2414
2415 * process.c (status_message): Pass Faset index argument as a lisp
2416 object, so as to work with USE_LISP_UNION_TYPE.
2417
2418 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2419
2420 * coding.c (Ffind_coding_systems_region_internal):
2421 Cache checked characters.
2422
2423 2009-06-18 Kenichi Handa <handa@m17n.org>
2424
2425 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
2426
2427 2009-06-18 Andreas Schwab <aschwab@redhat.com>
2428
2429 * xdisp.c (redisplay_internal): Check that the frame is still
2430 live after redisplay of its windows.
2431 (redisplay_windows): Check that the window is still live.
2432
2433 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2434
2435 * coding.c (detect_coding_utf_16): Fix previous change.
2436
2437 2009-06-16 Kenichi Handa <handa@m17n.org>
2438
2439 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2440 UTF-16 by checking the dispersion of Eth and Oth bytes.
2441
2442 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2443
2444 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2445
2446 2009-06-15 Kenichi Handa <handa@m17n.org>
2447
2448 * process.c (status_message): Fix previous change. Be sure to
2449 decode a localized string.
2450
2451 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2452
2453 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2454 add comment explaining why.
2455
2456 2009-06-14 Sidney Markowitz <sidney@sidney.com>
2457
2458 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
2459
2460 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2461
2462 * nsfont.m (ns_attribute_value): Remove.
2463 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2464 (ns_has_attribute): Shrink the normal range.
2465 (ns_findfonts): Don't worry about requested spec in determining
2466 need for synthItal.
2467 (ns_get_covering_families): Retain scriptToFamilies.
2468
2469 2009-06-14 Seiji Zenitani <zenitani@mac.com>
2470
2471 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2472
2473 2009-06-11 Kenichi Handa <handa@m17n.org>
2474
2475 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2476 overhang for the static composition case.
2477
2478 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2479
2480 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2481 overhang for the automatic composition case.
2482
2483 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2484 composition case.
2485
2486 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
2487
2488 * xdisp.c (get_next_display_element): When handling wrap-prefix
2489 and line-prefix, treat \n as a control character (bug#3502).
2490
2491 2009-06-10 Kenichi Handa <handa@m17n.org>
2492
2493 * font.c (font_parse_family_registry): Fix for one-char foundry.
2494 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2495
2496 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2497
2498 * process.c (status_message): Fix handling of multibyte signal
2499 string (Bug#3499).
2500
2501 2009-06-09 Jim Meyering <meyering@redhat.com>
2502
2503 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2504 color name is missing.
2505
2506 2009-06-09 Kenichi Handa <handa@m17n.org>
2507
2508 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2509 FROM-CODE and TO-CODE are codepoints of CHARSET.
2510
2511 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2512
2513 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2514
2515 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2516
2517 Changes to support :script/:lang/:otf in NS font driver.
2518 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2519 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2520 indicate not part of font driver interface, and change callers.
2521 (ns_get_family): Remove pointless null check.
2522 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2523 ns_spec_to_descriptor, ns_descriptor_to_entity.
2524 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2525 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2526 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2527 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2528 (ns_get_req_script, ns_accumulate_script_ranges)
2529 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2530 New functions.
2531 (nsfont_list, nsfont_match): Use ns_findfonts.
2532 (nsfont_open): Use font descriptor instead of traits.
2533 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2534 (dump_glyphstring): Rename to ns_dump_glyphstring.
2535
2536 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2537
2538 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2539
2540 * fontset.c (fontset_from_font): Remove NS-specific code.
2541
2542 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
2543
2544 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2545 nonactive windows.
2546
2547 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
2548
2549 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
2550
2551 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2552
2553 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2554
2555 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
2556
2557 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2558 account for the overflowing of newlines into the last glyph on the
2559 display line (Bug#3482).
2560
2561 2009-06-05 David Reitter <david.reitter@gmail.com>
2562
2563 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2564 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
2565 Fns_selection_exists_p, Fns_selection_owner_p.
2566
2567 2009-06-03 Jason Rumney <jasonr@gnu.org>
2568
2569 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2570 available. (Bug#3379)
2571
2572 2009-05-29 Kenichi Handa <handa@m17n.org>
2573
2574 * coding.c (get_translation_table):
2575 Check Venable_character_translation.
2576
2577 2009-05-26 David Reitter <david.reitter@gmail.com>
2578
2579 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2580 (x_make_frame_visible): Move frame to front rather than calling
2581 ns_raise_frame().
2582 (keyDown:): Do not swallow events that aren't re-sent if frame
2583 isn't key window.
2584 (drawRect:): Do not set visibility/iconified flags because
2585 drawRect may be called by NSView even if the frame is hidden.
2586
2587 * nsfns.m (Fx_create_frame): Follow other ports in
2588 determining visibility; default to t. Ensure async_visible is set.
2589
2590 2009-05-23 Eli Zaretskii <eliz@gnu.org>
2591
2592 * dired.c (Ffile_attributes): Doc fix.
2593
2594 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
2595
2596 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2597
2598 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2599
2600 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2601 and xfont_scratch_props.
2602 (syms_of_xfont): Do it here instead.
2603 (xfont_find_ccl_program): Delete, unused.
2604 (xfont_open): Delete unused var `i'.
2605
2606 2009-05-21 Kenichi Handa <handa@m17n.org>
2607
2608 * fontset.c (Qlatin): Don't make it static.
2609
2610 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2611 New functions.
2612 (xfont_scripts_cache, xfont_scratch_props): New variables.
2613 (Qlatin, Vscalable_fonts_allowed): Extern it.
2614 (xfont_list_pattern): Argument changed. Callers changed.
2615 Check Vscalable_fonts_allowed. Check the support of a script.
2616 (xfont_list): Don't reject a font spec with :script property.
2617 (xfont_has_char): Fix setting of encoding.
2618 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2619 xfont_scratch_props.
2620
2621 2009-05-19 Kenichi Handa <handa@m17n.org>
2622
2623 * font.c (font_sort_entities): Rename from font_sort_entites.
2624 Callers changed.
2625
2626 2009-05-18 Kenichi Handa <handa@m17n.org>
2627
2628 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2629
2630 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2631
2632 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2633 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2634
2635 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2636
2637 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2638 (x_delete_terminal): Dissociate resource database from display and
2639 then call XrmDestroyDatabase before closing display.
2640
2641 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2642
2643 * nsterm.m (ns_read_socket): Remove unused variable.
2644 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2645 whether selected frame is viable before raising it (based on patch
2646 by David Reitter), and improve commentary.
2647 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
2648
2649 2009-05-15 Kenichi Handa <handa@m17n.org>
2650
2651 * font.c (Ffont_spec): Check arguments.
2652
2653 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
2654
2655 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2656 weight when testing attributes (Bug#3282).
2657
2658 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2659
2660 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2661 what we expect to get in the next ConfigureNotify event.
2662
2663 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2664 before Xft one (Bug#1696).
2665
2666 2009-05-07 David Reitter <david.reitter@gmail.com>
2667
2668 * nsfns.m (Fx_display_planes): Compute bitplanes using
2669 NSBitsPerPixelFromDepth (Bug#3207).
2670
2671 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
2672
2673 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2674
2675 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
2676
2677 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2678
2679 2009-05-07 David Reitter <david.reitter@gmail.com>
2680
2681 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2682 Respect mouse face background.
2683
2684 2009-05-07 David Reitter <david.reitter@gmail.com>
2685
2686 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2687 Mouse movement/highlight: bracket drawing operations
2688 in ns_update_begin and ns_update_end.
2689
2690 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2691
2692 * nsfns.m (ns_get_screen): Rewrite.
2693 Don't presume selected-frame is of type `ns'.
2694
2695 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2696 all drivers.
2697
2698 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2699
2700 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2701
2702 * keyboard.h (add_user_signal): Fix typo in extern.
2703
2704 * lisp.h (add_user_signal): Remove extern.
2705
2706 * unexelf.c (unexec): Consider a section to precede the .bss section
2707 if its addresses overlap that of .bss.
2708 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2709 instead of dumping process.
2710
2711 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2712
2713 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2714
2715 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2716
2717 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2718
2719 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2720
2721 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2722 any statements.
2723
2724 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2725
2726 * process.c (read_process_output): Make sure the current buffer is
2727 always restored.
2728
2729 * coding.c (record_conversion_result): Don't modify
2730 Vlast_code_conversion_error for successful result.
2731 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2732
2733 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2734
2735 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
2736 (load_charset_map): Remove unnecessary code.
2737
2738 2009-04-30 David Reitter <david.reitter@gmail.com>
2739
2740 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
2741 through f24.
2742
2743 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
2744
2745 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2746
2747 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2748 face_at_buffer_position.
2749 (face_before_or_after_it_pos, get_next_display_element)
2750 (note_mouse_highlight): Update face_at_buffer_position call.
2751
2752 * term.c (term_mouse_highlight):
2753 * msdos.c (IT_note_mouse_highlight):
2754 * fontset.c (Finternal_char_font):
2755 * font.c (font_at, font_range): Update face_at_buffer_position call.
2756
2757 * dispextern.h (face_at_buffer_position): Update prototype.
2758
2759 2009-04-30 Kenichi Handa <handa@m17n.org>
2760
2761 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
2762
2763 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2764
2765 * callproc.c (Fcall_process): Fix GC protection. Make sure
2766 current buffer is always restored.
2767
2768 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2769
2770 * atimer.c (init_atimer): Also clear stopped_atimers.
2771
2772 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2773
2774 * process.c (create_process): Clean up merger residues of
2775 2008-07-17 change.
2776
2777 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
2778
2779 * lread.c (Vread_circle): New variable.
2780 (read1): Disable recursive read if Vread_circle is nil.
2781
2782 2009-04-29 Kenichi Handa <handa@m17n.org>
2783
2784 * fontset.h (set_default_ascii_font): Delete extern.
2785
2786 * fontset.c (set_default_ascii_font): Delete this unused function.
2787
2788 * frame.c (x_set_font): When ARG is a font-object, check if the
2789 font-object matches with the ASCII font-spec of the frame's
2790 fontset. If not, create a new fontset for the frame. (Bug #3075)
2791
2792 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2793
2794 * fns.c (Flocale_info): Protect vector from GC during decoding.
2795
2796 * process.c (Fstart_process): Protect argv strings from GC during
2797 encoding.
2798
2799 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2800
2801 * sysdep.c: Include <ctype.h>.
2802
2803 2009-04-27 David Reitter <david.reitter@gmail.com>
2804
2805 * nsfont.m (nsfont_open): Remove unused variable shrink.
2806 Remove commented-out code.
2807
2808 2009-04-26 Johan Bockgård <bojohan@gnu.org>
2809
2810 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2811
2812 2009-04-25 Jason Rumney <jasonr@gnu.org>
2813
2814 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2815
2816 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2817
2818 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2819 Swap bytes in short integer if fringe bitmap width > 8.
2820
2821 2009-04-23 Kenichi Handa <handa@m17n.org>
2822
2823 * xfaces.c (Fx_list_fonts): If a font size is specified in
2824 PATTERN, set it in returned scalable fonts.
2825
2826 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
2827
2828 * keyboard.c (Fset_input_meta_mode): Doc fix.
2829
2830 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2831
2832 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
2833
2834 * coding.c (Fterminal_coding_system): Doc fix.
2835
2836 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2837 (Fx_display_pixel_height, Fx_display_planes)
2838 (Fx_display_color_cells, Fx_server_max_request_size)
2839 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2840 (Fx_display_mm_height, Fx_display_mm_width)
2841 (Fx_display_backing_store, Fx_display_visual_class)
2842 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2843 Doc fixes, replacing "terminal id" with "terminal object".
2844 (check_x_display_info): Handle terminal objects instead of
2845 terminal ids.
2846
2847 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2848 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
2849 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2850 Doc fixes, replacing "terminal id" with "terminal object".
2851
2852 2009-04-21 Kenichi Handa <handa@m17n.org>
2853
2854 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
2855 (font_score): Check AVGWIDTH too.
2856
2857 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2858 worst case.
2859 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2860 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
2861
2862 2009-04-19 Jason Rumney <jasonr@gnu.org>
2863
2864 The following changes fix Bug#3005 for wide glyphs on each platform,
2865 without reintroducing Bug#1258 for stretch glyphs.
2866
2867 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2868 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2869 get_phys_cursor_geometry.
2870
2871 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
2872 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2873 using get_phys_cursor_geometry.
2874
2875 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2876 correctly calculated.
2877
2878 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2879
2880 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2881 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
2882 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2883 is deprecated.
2884
2885 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2886
2887 * font.c (font_put_frame_data): Use xfree instead of free.
2888
2889 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
2890
2891 * w32font.c (Qja, Qko): Remove declarations.
2892 (syms_of_w32font): Don't DEFSYM them.
2893
2894 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
2895
2896 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2897
2898 * font.h (Qja, Qko): Extern them.
2899
2900 * ftfont.c (Qja, Qko): Remove declarations.
2901
2902 * xfont.c (Qja, Qko): Remove declarations.
2903
2904 2009-04-17 Kenichi Handa <handa@m17n.org>
2905
2906 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2907 string from a vector to handle Latin-1 characters correctly.
2908
2909 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2910 entity even if the cache hits.
2911
2912 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2913
2914 * search.c (boyer_moore): Use zero as marker value for a possible
2915 match instead of depending on overflow behavior. (Bug#2844)
2916
2917 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2918 * lisp.h: Adjust prototypes.
2919
2920 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
2921
2922 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2923 change (Bug#3003).
2924
2925 2009-04-16 Kenichi Handa <handa@m17n.org>
2926
2927 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
2928
2929 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2930 adstyle.
2931
2932 * ftfont.c (Qja, Qko): Don't make them static.
2933 (enum ftfont_cache_for): New enum.
2934 (fc_charset_table): Undo the previous change.
2935 (ftfont_get_latin1_charset): Delete it.
2936 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2937 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
2938 non-scarable font, try to get AVERAGE_WIDTH.
2939 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2940 Change ft_face_cache from a list of a hash-table. Don't check
2941 `ja' and `ko' adstyle here.
2942 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2943 FTFONT_CACHE_FOR_CHARET.
2944 (ftfont_get_charset): Undo the previous change.
2945 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
2946 (ftfont_close): Likewise.
2947 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2948
2949 * font.c (font_sort_entites): Change the meaning of the arg
2950 BEST-ONLY. Don't optimize for VEC of lenght 1.
2951 (font_select_entity): Just return the value of font_sort_entites.
2952
2953 * xfaces.c (merge_face_vectors): Reflect font properties in
2954 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2955 font_clear_prop if a face attribute doesn't change.
2956
2957 * charset.h (charset_ksc5601): Extern it.
2958
2959 * charset.c (charset_ksc5601): New variable.
2960 (Fdefine_charset_internal): Set charset_ksc5601.
2961 (init_charset_once): Initialize charset_ksc5601 to -1.
2962
2963 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2964
2965 * fileio.c (history_delete_duplicates): Remove unused declaration.
2966
2967 * callint.c (history_delete_duplicates): New declaration.
2968 (Fcall_interactively): Remove command history duplicates when
2969 history_delete_duplicates is true.
2970
2971 2009-04-14 Eli Zaretskii <eliz@gnu.org>
2972
2973 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2974
2975 2009-04-14 Kenichi Handa <handa@m17n.org>
2976
2977 * font.c (Ffont_info): Fix docstring. Fix the second element of
2978 the returned value (bug#2949).
2979
2980 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
2981
2982 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2983
2984 2009-04-14 Kenichi Handa <handa@m17n.org>
2985
2986 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2987 encoding charset is ascii_compatible.
2988
2989 * charset.c (Fdefine_charset_internal): Make charset
2990 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2991 code_offset is 0, and covers all ASCII characters.
2992
2993 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2994
2995 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2996 (ns_string_to_pasteboard_internal):
2997 * nsmenu.m (process_dialog):
2998 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2999 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3000 * lisp.h (Fx_load_color_file): Declare.
3001
3002 2009-04-13 Kenichi Handa <handa@m17n.org>
3003
3004 * font.c (font_delete_unmatched): Preserve the order of list elements.
3005 (font_select_entity): Suppress the code to optimize for the same
3006 kind of fonts.
3007 (font_load_for_lface): Get a font that supports at least ASCII
3008 characters.
3009
3010 * ftfont.c (Qja, Qko): New variables.
3011 (fc_charset_table): Delete uniquifier data for iso8859-1.
3012 (ftfont_get_latin1_charset): New function.
3013 (get_adstyle_property): New function.
3014 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3015 bitmap fonts.
3016 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3017 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3018 `ko' or `ja'.
3019 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
3020 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
3021 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3022 property.
3023 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3024 (syms_of_ftfont): DEFSYM Qja and Qko.
3025
3026 2009-04-09 Kenichi Handa <handa@m17n.org>
3027
3028 * charset.c (map_charset_chars): For a charset of `superset'
3029 method, fix calculation of code range.
3030
3031 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3032 from the list of extra properties.
3033 (font_clear_prop): Be sure to delete `:name' font property.
3034
3035 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3036
3037 * dispnew.c (redraw_overlapping_rows): Fix detection of
3038 overlapping for topmost and bottommost rows.
3039
3040 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
3041
3042 2009-04-06 Jason Rumney <jasonr@gnu.org>
3043
3044 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3045
3046 2009-04-06 Kenichi Handa <handa@m17n.org>
3047
3048 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3049
3050 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3051
3052 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3053
3054 * ftfont.c (ftfont_open): Fix checking of the return value of
3055 FT_Load_Char. Fix setting font->underline_thickness.
3056
3057 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
3058
3059 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3060 (Fterminal_parameters, Fterminal_parameter)
3061 (Fset_terminal_parameter): In doc string, refer to terminal
3062 objects rather than terminal ids.
3063
3064 2009-04-04 Eli Zaretskii <eliz@gnu.org>
3065
3066 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3067 ret_lim_data. (Bug#2867)
3068
3069 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
3070
3071 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3072 so they don't get wider than the window, matching 2006-01-23
3073 change to the partner function in xdisp.c (Bug#2800).
3074
3075 2009-04-03 Kenichi Handa <handa@m17n.org>
3076
3077 * print.c (print_object): Make each lowest sub_char_table start a
3078 new line (Bug#2866).
3079
3080 2009-04-02 Kenichi Handa <handa@m17n.org>
3081
3082 * fontset.c (fontset_font): Record no-font when a fontset
3083 explicitly tells not to try another font-specs.
3084
3085 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3086
3087 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3088
3089 2009-03-30 Kenichi Handa <handa@m17n.org>
3090
3091 * fontset.c (fontset_from_font): Specify only registry in a
3092 font-spec for all characters supported by that registry.
3093
3094 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3095 even if HAVE_M17N_FLT is not defined.
3096
3097 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3098
3099 * ftfont.c: Conditionalize prototyping and use of
3100 ftfont_variation_glyphs.
3101
3102 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3103
3104 * frame.c (delete_frame): Work around compiler bug.
3105
3106 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3107 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3108 Some more EMACS_INT.
3109 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3110
3111 * xdisp.c (dump_glyph): Fix typo.
3112
3113 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3114 (adjust_markers_gap_motion, adjust_markers_for_delete)
3115 (adjust_markers_for_insert, adjust_point)
3116 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3117 (make_gap, copy_text, count_size_as_multibyte, insert)
3118 (insert_and_inherit, insert_before_markers)
3119 (insert_before_markers_and_inherit, insert_1)
3120 (count_combining_before, count_combining_after, insert_1_both)
3121 (insert_from_string, insert_from_string_before_markers)
3122 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3123 (insert_from_buffer_1, adjust_after_replace)
3124 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3125 (replace_range_2, del_range, del_range_1, del_range_byte)
3126 (del_range_both, del_range_2, modify_region)
3127 (prepare_to_modify_buffer, signal_before_change)
3128 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3129 for buffer positions and sizes.
3130 * lisp.h: Adjust prototypes accordingly.
3131
3132 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3133 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3134 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3135
3136 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3137
3138 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3139
3140 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3141 lines and columns so we keep the same pixel height and width.
3142
3143 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3144 the property _NET_WM_STATE has changed.
3145 (x_handle_net_wm_state): New function to update frame parameter
3146 fullscreen.
3147 (x_term_init): Initialize atoms for _NET_WM_STATE.
3148
3149 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3150
3151 2009-03-27 Kevin Ryde <user42@zip.com.au>
3152
3153 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3154 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3155 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3156 (Fgpm_mouse_stop): Pass that new parameter.
3157 * termhooks.h (close_gpm): Adjust prototype.
3158
3159 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3160
3161 * lisp.h (Fx_focus_frame): Declare.
3162
3163 * callint.c (Fcall_interactively): For '^' just delegate the work to
3164 handle-shift-selection.
3165 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3166
3167 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
3168
3169 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3170
3171 * data.c (Qinteractive_form): New variable.
3172 (Finteractive_form): Use it.
3173
3174 * eval.c (Fcommandp): Use Qinteractive_form.
3175
3176 2009-03-24 Jason Rumney <jasonr@gnu.org>
3177
3178 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3179 Calculate total size precisely. Decode environment variables
3180 before substituting. (Bug#38)
3181
3182 2009-03-24 Kenichi Handa <handa@m17n.org>
3183
3184 * font.c (find_font_encoding): Return Qnil for unsupported
3185 encoding (Bug#2722).
3186
3187 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3188
3189 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3190 that gdpy is set.
3191
3192 2009-03-22 Alan Mackenzie <acm@muc.de>
3193
3194 * callint.c (Finteractive): Clarify the doc string - even
3195 promptless elements need \n separators.
3196
3197 2009-03-22 Jason Rumney <jasonr@gnu.org>
3198
3199 * w32term.c (syms_of_w32term): Doc fix for
3200 x-use-underline-position-properties.
3201
3202 2009-03-21 Eli Zaretskii <eliz@gnu.org>
3203
3204 * w32.c (getpwuid): Change argument type to unsigned.
3205 (struct w32_id): Change type of `rid' member to unsigned.
3206 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3207 argument ID to unsigned. All callers changed.
3208 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3209
3210 2009-03-20 Eli Zaretskii <eliz@gnu.org>
3211
3212 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3213 negative, produce a float value.
3214
3215 * dired.c (make_uid, make_gid): New functions.
3216 (Ffile_attributes): Use them to avoid negative UID and GID.
3217
3218 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
3219
3220 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3221 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3222 Fix typos in docstrings.
3223
3224 2009-03-19 Kenichi Handa <handa@m17n.org>
3225
3226 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
3227 changed, use font_load_for_lface to get a new font object.
3228 Call free_realized_fontset after handling ASCII font change.
3229
3230 * frame.c (x_set_font): Handle the case that ARG is a cons.
3231
3232 2009-03-19 Glenn Morris <rgm@gnu.org>
3233
3234 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3235
3236 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
3237
3238 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3239
3240 2009-03-19 Kenichi Handa <handa@m17n.org>
3241
3242 * charset.c (load_charset_map_from_file): When a mapfile can't be
3243 loaded, signal an error.
3244
3245 2009-03-18 Eli Zaretskii <eliz@gnu.org>
3246
3247 * dired.c (Ffile_attributes): Make sure UID and GID are always
3248 positive, even if the value is too large for a positive EMACS_INT.
3249 Doc fix.
3250
3251 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3252
3253 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3254
3255 * xmenu.c (xdialog_show): Move Fredisplay call ...
3256 (Fx_popup_dialog): ... here.
3257
3258 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3259
3260 * dired.c (file_name_completion): Disable the first optimization just
3261 installed, since it is not implemented correctly.
3262
3263 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3264
3265 * dired.c (file_name_completion): Check completion-ignored-extensions
3266 only if the entry can affect bestmatch.
3267 Stop the search early, as Ftry_completion already does.
3268
3269 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
3270
3271 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
3272
3273 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
3274
3275 * keyboard.c (parse_menu_item): Don't display remappings as menu
3276 equivalent bindings (Bug#788).
3277
3278 2009-03-15 Jason Rumney <jasonr@gnu.org>
3279
3280 * w32term.h (WM_EMACS_PAINT): New message.
3281 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3282 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3283 before passing to lisp thread. (Bug#950)
3284
3285 2009-03-14 David Reitter <david.reitter@gmail.com>
3286
3287 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3288 variable as it was never reset.
3289 (ns_term_init): Remove initialization of Lisp-settable defaults
3290 and ns_expand_space.
3291 (-setPanelFromDefaultValues): Remove ns_expand_space.
3292 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3293 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
3294 i.e. no additional spacing, similar to Carbon port.
3295
3296 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3297 * nsfns.m (ns-popup-prefs-panel): Remove.
3298
3299 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3300
3301 * sound.c (alsa_configure): Remove call to deprecated
3302 snd_pcm_sw_params_set_xfer_align.
3303
3304 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
3305
3306 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3307 after clicking in a detached tool bar.
3308 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3309
3310 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3311
3312 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3313 int/Lisp_Object mixup).
3314
3315 2009-03-13 Kenichi Handa <handa@m17n.org>
3316
3317 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
3318 Handle NAME nil and t correctly. Callers changed.
3319 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3320 (set_fontset_font): Change ARG to a vector. Handle range_list in
3321 ARG correctly.
3322 (Fset_fontset_font): Fix the case that TARGET is both a script
3323 name and charset name. Adjust the arg to set_fontset_font for
3324 the above change.
3325 (fontset_from_font): Fix previous change.
3326 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
3327 entry. If FONTSET is the default fontset, don't set the extra
3328 slot of the returning char-table.
3329
3330 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
3331
3332 * nsfns.m (Fx_close_connection): Doc fix.
3333 (Fns_do_applescript): Reflow docstring.
3334 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3335 (Fx_display_pixel_width, Fx_display_pixel_height)
3336 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3337 Fix typos in docstrings.
3338 (Fns_set_alpha): Fix typos in error messages.
3339
3340 2009-03-12 David Reitter <david.reitter@gmail.com>
3341
3342 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
3343 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3344 were used for such events.
3345
3346 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3347 (toggleToolbar, performDragOperation, runHelp): Use it.
3348
3349 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
3350 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3351
3352 2009-03-11 Kenichi Handa <handa@m17n.org>
3353
3354 * font.h (font_open_by_spec): Extern it.
3355
3356 * font.c (font_open_by_spec): New function.
3357 (font_open_by_name): Use font_open_by_spec.
3358
3359 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3360 fontset of the frame.
3361
3362 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3363 modify the default font of frames that use this fontset.
3364 (num_auto_fontsets): New variable.
3365 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3366 name. Be sure to set FONTSET_ASCII to the correct font name.
3367 (update_auto_fontset_alist): New function.
3368
3369 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
3370
3371 * makefile.w32-in: Update dependencies.
3372
3373 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3374
3375 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3376
3377 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3378
3379 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3380
3381 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
3382
3383 * lread.c (Feval_buffer): Doc fix.
3384
3385 2009-03-09 Kenichi Handa <handa@m17n.org>
3386
3387 * charset.c (Qfile_name_handler_alist): Extern it.
3388 (load_charset_map_from_file): Temporarily bind
3389 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3390
3391 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
3392
3393 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3394 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
3395
3396 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3397
3398 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3399 (x_set_window_size): Change back to calculated method of setting
3400 toolbar height under Cocoa. (Bug#2546)
3401 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3402 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3403
3404 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3405
3406 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3407 accelerator in parens under GNUstep.
3408
3409 2009-03-06 Kenichi Handa <handa@m17n.org>
3410
3411 These changes are to detect incorrect composition sequence without
3412 looking ahead the source. (Bug#2370)
3413
3414 * coding.h: Include "composite.h".
3415 (enum compisition_state): New enum.
3416 (struct compisition_status): New struct.
3417 (struct iso_2022_spec): New member cmp_status.
3418 (struct emacs_mule_spec): New struct.
3419 (struct coding_system): New members ctext_extended_segment_len and
3420 embedded_utf_8. Change the union member
3421 spec.emacs_mule_full_support to spec.emacs_mule.
3422
3423 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3424 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
3425 (MAX_ANNOTATION_LENGTH): Define to 5.
3426 (ADD_COMPOSITION_DATA): New arg nbytes.
3427 (emacs_mule_char): New arg cmp_status.
3428 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3429 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3430 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3431 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3432 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3433 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3434 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3435 (EMACS_MULE_COMPOSITION_END): New macro.
3436 (emacs_mule_finish_composition): New function.
3437 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3438 (decode_coding_emacs_mule): Avoid long looking ahead while
3439 handling composition.
3440 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3441 (ENCODE_COMPOSITION_RULE): New macro.
3442 (finish_composition): New function.
3443 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3444 (DECODE_COMPOSITION_START): New implementation.
3445 (DECODE_COMPOSITION_END): Likewise.
3446 (STORE_COMPOSITION_RULE): New macro.
3447 (decode_coding_iso_2022): Avoid long looking ahead while handling
3448 composition, CTEXT extended segment, and embedded UTF-8.
3449 (setup_coding_system): For a coding of type iso-2022, reset
3450 CODING_ISO_EXTSEGMENT_LEN (coding) and
3451 CODING_ISO_EMBEDDED_UTF_8 (coding).
3452 (get_translation): Delete arguments last_block, from_nchars,
3453 to_nchars. Callers changed.
3454 (produce_chars): Don't modify charbuf. Adjusted for the change of
3455 get_translation.
3456 (produce_composition): Adjust for the new annotation sequence.
3457 (handle_composition_annotation): Likewise.
3458 (consume_chars): Adjust for the change of get_translation.
3459
3460 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3461
3462 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
3463
3464 2009-03-05 Kenichi Handa <handa@m17n.org>
3465
3466 * font.c (font_select_entity): New function.
3467 (font_find_for_lface): Use font_select_entity to select a font.
3468
3469 * fontset.c (fontset_find_font): If a font found without
3470 restricting to the characters C doesn't support C, try to find a
3471 font with C restriction.
3472
3473 2009-03-04 Nikolaj Schumacher <me@nschum.de>
3474
3475 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
3476
3477 2009-03-04 Jason Rumney <jasonr@gnu.org>
3478
3479 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
3480 characters that have already been read. (Bug#2569)
3481
3482 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3483 Log an error message if check_image_size failed.
3484 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
3485 (gs_load): Mention max-image-size in size error message. (Bug#2560)
3486
3487 2009-03-02 Eli Zaretskii <eliz@gnu.org>
3488
3489 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3490 when decoding process output.
3491
3492 2009-03-01 Richard M Stallman <rms@gnu.org>
3493
3494 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3495
3496 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3497
3498 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3499
3500 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3501 (decode_coding_emacs_mule, decode_coding_iso_2022)
3502 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3503 (decode_coding_raw_text, decode_coding_charset)
3504 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3505 Honor inhibit-eol-conversion. (Bug #2186)
3506
3507 2009-02-28 Jason Rumney <jasonr@gnu.org>
3508
3509 * coding.c (detect_coding_charset): If not checking latin extra,
3510 fail on characters between 0x80 and 0xA0. (Bug#2354)
3511
3512 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3513
3514 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
3515 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
3516
3517 2009-02-27 Glenn Morris <rgm@gnu.org>
3518
3519 * callint.c (Finteractive): Doc fix.
3520
3521 2009-02-27 Kenichi Handa <handa@m17n.org>
3522
3523 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3524
3525 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
3526
3527 * font.c (font_style_to_value): Set value for unknown symbols to
3528 100 instead of 255.
3529 (weight_table, slant_table, width_table): Treat "unspecified" as
3530 the default value.
3531
3532 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
3533
3534 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3535
3536 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
3537
3538 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3539 error as soon as a recursive load is detected.
3540
3541 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3542
3543 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3544 before caching.
3545
3546 2009-02-24 Kenichi Handa <handa@m17n.org>
3547
3548 * fontset.c (fontset_find_font): Fix the condition for checking
3549 unavailable font.
3550
3551 2009-02-24 Glenn Morris <rgm@gnu.org>
3552
3553 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3554 whitespace that confuses documentation.
3555
3556 2009-02-23 Miles Bader <miles@gnu.org>
3557
3558 * process.c (Flist_system_processes, Fprocess_attributes)
3559 (syms_of_process): Rename `system-process-attributes' to
3560 `process-attributes'.
3561
3562 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3563
3564 * coding.h (struct coding_system): Make safe_charsets a pointer to
3565 unsigned char.
3566 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3567 being 255.
3568 (SAFE_CHARSET_P): Likewise.
3569 (setup_iso_safe_charsets): Properly setup safe_charsets.
3570 (Fdefine_coding_system_internal): Likewise.
3571 (setup_coding_system): Likewise. Remove unneeded casts.
3572 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3573 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3574 unneeded casts.
3575
3576 * insdel.c (del_range_2): Don't modify gap contents when called
3577 from decode_coding_object. (Bug#1809)
3578
3579 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
3580
3581 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3582 Qfont_object.
3583 (Ftype_of): Recognize font objects.
3584
3585 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3586
3587 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3588 moved to data.c.
3589
3590 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3591
3592 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3593 async_iconified. Based on a patch by Christian Lynbech
3594 <christian.lynbech@tieto.com>.
3595 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3596
3597 2009-02-20 Glenn Morris <rgm@gnu.org>
3598
3599 * syntax.c (Fskip_chars_forward): Fix doc typo.
3600
3601 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
3602
3603 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3604
3605 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
3606
3607 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3608
3609 2009-02-19 Kenichi Handa <handa@m17n.org>
3610
3611 * coding.c (detect_coding): Preserve coding->mode.
3612 Don't overflow coding->carryover. (Bug#2370)
3613
3614 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3615
3616 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3617
3618 2009-02-18 Kenichi Handa <handa@m17n.org>
3619
3620 * font.c (font_check_otf_features): Fix handling of `nil' element.
3621 (Ffont_spec): Describe :lang and :otf in the docstring.
3622
3623 2009-02-16 Andreas Schwab <schwab@suse.de>
3624
3625 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3626 string.
3627
3628 2009-02-16 Kenichi Handa <handa@m17n.org>
3629
3630 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
3631 (Bug#1723)
3632
3633 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
3634
3635 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
3636
3637 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3638 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3639
3640 2009-02-14 Eli Zaretskii <eliz@gnu.org>
3641
3642 * msdos.c (MAX_SCREEN_BUF): New macro.
3643 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3644 Encode the entire run of glyphs sharing the same face, instead of
3645 doing that one glyph at a time (fixes a bug with displaying
3646 double-size characters).
3647
3648 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3649
3650 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3651
3652 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3653 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
3654 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
3655
3656 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
3657 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
3658
3659 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3660
3661 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3662 invisible areas.
3663
3664 2009-02-12 Jason Rumney <jasonr@gnu.org>
3665
3666 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3667 (add_font_entity_to_list): Call check_face_name even when family
3668 is unspecified.
3669
3670 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3671 Release DC when finished. Use NULL window to refer to desktop.
3672 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
3673
3674 * w32font.c (add_font_entity_to_list): Fix check for substituted
3675 raster fonts. (Bug#2219)
3676
3677 2009-02-12 Kenichi Handa <handa@m17n.org>
3678
3679 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3680 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3681 (autocmp_chars): Use fast_looking_at. Don't compose more
3682 characters than MAX_COMPOSITION_COMPONENTS.
3683 (find_automatic_composition): While looking forward and backward,
3684 check static composition. Fix where to stop looking forward.
3685 (composition_adjust_point): Fix checking of static composition.
3686 (Fcomposition_get_gstring): Pay attention to
3687 MAX_COMPOSITION_COMPONENTS.
3688
3689 * lisp.h (fast_looking_at): Extern it.
3690
3691 * search.c (fast_looking_at): New function.
3692
3693 * term.c (encode_terminal_code): Adjust for the change of
3694 <struct glyph>.u.cmp.to.
3695 (append_composite_glyph): Likewise.
3696
3697 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
3698 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3699 composition.
3700 (append_composite_glyph): Adjust for the change of
3701 <strcut glyph>.u.cmp.to.
3702
3703 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
3704
3705 * casetab.c (init_casetab_once):
3706 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3707 * font.c (font_update_lface):
3708 * fontset.c (Fnew_fontset):
3709 * ftfont.c (ftfont_drive_otf):
3710 * xfont.c (xfont_open):
3711 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3712
3713 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3714
3715 * fileio.c (Fwrite_region): !NILP -> CONSP.
3716
3717 2009-02-10 Andreas Schwab <schwab@suse.de>
3718
3719 * process.c (send_process): Properly relocate pointer into data
3720 when using encoded data. (Bug#2272)
3721
3722 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3723
3724 * coding.c (detect_coding_charset): Fix previous change.
3725
3726 2009-02-08 Jason Rumney <jasonr@gnu.org>
3727
3728 * w32fns.c (w32_hide_hourglass): Handle case where frame
3729 disappeared while hourglass was displayed. (Bug #2193)
3730
3731 2009-02-07 Andreas Schwab <schwab@suse.de>
3732
3733 * unexelf.c (unexec): Fix error message.
3734
3735 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3736
3737 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
3738 when modal window is active. (Bug #2152)
3739 (applicationShouldTerminate:): Remove now-unneeded while loop
3740 around NSRunAlertPanel.
3741
3742 * nsmenu.m (popupSession): New file-global variable.
3743 (pop_down_menu): End the popupSession before closing dialog.
3744 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3745 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3746 don't query NSApp for events (just sleep instead).
3747
3748 2009-02-07 Eli Zaretskii <eliz@gnu.org>
3749
3750 * coding.c (syms_of_coding) <translation-table-for-input>:
3751 Modify doc string to discourage use for character code unification.
3752
3753 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3754
3755 * atimer.c (run_timers): Update pending_atimers.
3756
3757 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
3758
3759 * image.c (svg_load_image): Fix last change.
3760
3761 * xfns.c (Fx_create_frame): Signal an error if no font is
3762 found (Bug#2147).
3763
3764 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
3765
3766 * character.c (syms_of_character) <script-representative-chars>:
3767 Fix typo in docstring.
3768
3769 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3770
3771 * nsmenu.m (pop_down_menu): New function.
3772 (ns_popup_dialog): Call it on unwind.
3773 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3774 call timer_check() (Bug#2154).
3775 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3776 handling_signal is set.
3777 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3778
3779 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
3780
3781 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3782
3783 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3784
3785 * keyboard.c (poll_for_input_1, handle_async_input):
3786 Set handling_signal under HAVE_NS.
3787
3788 2009-02-04 Glenn Morris <rgm@gnu.org>
3789
3790 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3791
3792 2009-02-04 Kenichi Handa <handa@m17n.org>
3793
3794 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3795
3796 * charset.c (Fchar_charset): New optional arg restriction.
3797
3798 * coding.h (coding_system_charset_list): Extern it.
3799
3800 * coding.c (coding_system_charset_list): New function.
3801
3802 * composite.c: Include coding.h and termhooks.h.
3803 (composition_gstring_p): Fix for the terminal case.
3804 (composition_gstring_width): Likewise.
3805 (fill_gstring_body): Likewise.
3806 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3807 the frame.
3808 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3809 is within a composition.
3810 (Fcomposition_get_gstring): Fix the terminal case.
3811
3812 * term.c (encode_terminal_code): Fix handling of composition.
3813 (produce_composite_glyph): For static composition, get pixel_width
3814 from struct composition.
3815
3816 2009-02-02 Andreas Schwab <schwab@suse.de>
3817
3818 * unexelf.c (unexec): Handle unaligned bss offset.
3819
3820 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3821
3822 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3823 XT,w32read_socket changes to ns_read_socket.
3824
3825 * keyboard.c (handle_interrupt): Don't call
3826 quit_throw_to_read_char() under NS.
3827
3828 * blockinput.h: Remove NS-specific code.
3829
3830 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3831
3832 * dispnew.c (window_change_signal): Don't try to get the size of a
3833 suspended tty frame.
3834 * term.c (Fresume_tty): Resize if the size has changed while the
3835 tty was suspended.
3836
3837 * alloc.c (mark_stack): Properly conditionalize previous change.
3838
3839 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3840
3841 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3842 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3843 Remove; this code is not used on Windows.
3844
3845 2009-01-30 Eli Zaretskii <eliz@gnu.org>
3846
3847 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3848 EOLs that also has stray ^M characters.
3849
3850 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3851
3852 * atimer.c (run_timers, alarm_signal_handler):
3853 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3854 * w32inevt.c (w32_console_read_socket):
3855 * w32term.c (w32_read_socket):
3856 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3857
3858 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
3859
3860 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3861 Initialize it as a relative filename pattern.
3862 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3863 (Fcall_process_region): Simplify temp file creation using
3864 temporary-file-directory.
3865
3866 2009-01-29 Eli Zaretskii <eliz@gnu.org>
3867
3868 * msdos.c: Rename pending_signals to msdos_pending_signals.
3869 (sig_suspender, sigprocmask): Adjust.
3870
3871 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
3872
3873 * keyboard.c (pending_signals): New var.
3874 (poll_for_input, input_available_signal, init_keyboard): Set it.
3875 (process_pending_signals): New function.
3876
3877 * lisp.h (QUIT): Check pending_signals instead of
3878 interrupt_input_pending. Use process_pending_signals.
3879
3880 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
3881
3882 * process.c (wait_reading_process_output): Use process_pending_signals.
3883
3884 * sysdep.c (emacs_write): Use process_pending_signals.
3885
3886 * xterm.c (XTread_socket): Update pending_signals.
3887
3888 * w32term.c (w32_read_socket): Update pending_signals.
3889
3890 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3891
3892 2009-01-29 Kenichi Handa <handa@m17n.org>
3893
3894 * xftfont.c (xftfont_has_char): New function.
3895 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3896
3897 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3898
3899 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3900 under GNUstep.
3901 (ns_query_color): New declaration.
3902
3903 * nsterm.m (ns_confirm_quit): New variable.
3904 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3905 (EmacsApp-applicationShouldTerminate:): Use it.
3906 (EmacsPrefsController): Let user set it.
3907 (ns_query_color): New function.
3908 (ns_defined_color): Use it.
3909 (ns_initialize): Drop.
3910 (ns_term_init): Add two lines from ns_initialize(), and set
3911 input_interrupt_mode to nil.
3912
3913 * image.c (svg_load_image): Don't right-shift background RGB when
3914 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
3915
3916 2009-01-28 Kenichi Handa <handa@m17n.org>
3917
3918 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3919 (fontset_get_font_group): Remember that no font-group is specified
3920 for C.
3921
3922 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
3923
3924 * fns.c (concat): Check for string overflow (bug#1787).
3925
3926 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3927 Quadruple undo limits (bug#1501).
3928
3929 2009-01-27 Kenichi Handa <handa@m17n.org>
3930
3931 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3932 directly use GT_Get_Char_index.
3933
3934 * xftfont.c (struct xftfont_info): New member `index'.
3935
3936 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3937 (Ffontset_font): Adjust for the change of fontset entry.
3938
3939 2009-01-26 Kenichi Handa <handa@m17n.org>
3940
3941 * fontset.c (fontset_find_font): Fix handling of non-cons return
3942 value of fontset_get_font_group.
3943 (fontset_font): Revert last change.
3944
3945 2009-01-26 Jason Rumney <jasonr@gnu.org>
3946
3947 * w32font.c (w32font_list_internal): Return quickly if registry is
3948 unknown. Simplify final return.
3949 (add_font_entity_to_list): Break complex logic down into more
3950 manageable chunks. Move unknown registry check to
3951 w32font_list_internal.
3952
3953 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3954
3955 Changes to remove Feval calls from GUI under NS.
3956
3957 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3958 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
3959 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3960
3961 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3962 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3963 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3964 instead of NON_ASCII_KEYSTROKE_EVENT.
3965 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3966 (EmacsApp-applicationShouldTerminate:): Query user.
3967 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3968 instead of Feval.
3969
3970 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3971
3972 * keyboard.c (kbd_buffer_get_event): Check for it.
3973 (keys_of_keyboard): Define lispy keys for
3974 ns-put/unput-working-text.
3975
3976 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3977 versions.
3978 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3979
3980 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
3981
3982 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
3983 setting current_buffer directly. (Bug#2044)
3984
3985 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
3986
3987 * fontset.c (fontset_font): If we know there is no font, don't do
3988 any work. (Bug#1952, bug#1990).
3989
3990 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
3991
3992 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3993
3994 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
3995 (ns_no_defaults): New declaration.
3996 (main): Use it.
3997
3998 * nsterm.h (ns_no_defaults): New declaration.
3999
4000 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
4001
4002 * nsterm.m (ns_no_defaults): New variable.
4003 (ns_initialize): Don't read defaults when ns_no_defaults.
4004 (EmacsView-readSelectionFromPasteboard:)
4005 (writeSelectionToPasteboard:types:): New stubbed-out methods for
4006 NSServicesRequests protocol. (Bug#1435)
4007 (ns_dumpglyphs_stretch): New function.
4008 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
4009 of 2008-11-15 to other terms. (Bug#615)
4010
4011 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4012
4013 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4014
4015 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4016 call for Sparc64.
4017
4018 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4019
4020 * nsfns.m:
4021 * nsgui.h:
4022 * nsmenu.m:
4023 * nsselect.m:
4024 * nsterm.h:
4025 * nsterm.m: Remove '23' comments that indicated code added during
4026 update from emacs-20 -> emacs-23.
4027
4028 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4029
4030 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4031 ns_alternate_modifier. (Bug#1217)
4032
4033 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4034 Display all shortcuts, including those w/o super modifier.
4035
4036 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4037
4038 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
4039
4040 * fileio.c (Vwrite_region_post_annotation_function)
4041 (Vwrite_region_annotation_buffers): New vars.
4042 (build_annotations_unwind): Just reset
4043 Vwrite_region_annotation_buffers.
4044 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4045 Call write-region-post-annotation-function.
4046 (build_annotations): Add to Vwrite_region_annotation_buffers if
4047 buffer changes.
4048
4049 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4050
4051 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4052 Tiger.
4053 * nsfns.m (ns_do_applescript):
4054 Conditionalize typeUTF16ExternalRepresentation on Tiger.
4055
4056 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4057
4058 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4059
4060 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4061
4062 * nsmenu.m (NSMENUPROFILE): Change #if style.
4063
4064 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4065
4066 * nsterm.m (x_set_frame_alpha): Add prototype.
4067 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4068 handle Ctrl-tab. (Bug#1841)
4069 (ns_get_color): Use unsigned long long for scanned hex string value.
4070 (ns_term_shutdown): Abort on non SIGTERM signals.
4071 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
4072 (EmacsPrefsController-setPanelFromDefaultValues): New function.
4073 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
4074 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
4075 (ns_defined_color): Fix settings of the XColor variable fields:
4076 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
4077
4078 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
4079 DPI. (Bug#1316)
4080 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4081 values in onTiger section.
4082
4083 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
4084
4085 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4086 Check return value of font_spec_from_name.
4087 (Fx_list_fonts): Doc fix. (Bug#1951)
4088
4089 * font.c (font_spec_from_name): Return Qnil if font name could not
4090 be parsed.
4091 (font_parse_name): Treat a `?' character as part of an XLFD.
4092
4093 * fns.c (Fsubstring): Doc fix.
4094
4095 2009-01-19 Kenichi Handa <handa@m17n.org>
4096
4097 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
4098 (ftfont_list): Likewise.
4099
4100 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
4101
4102 * dbusbind.c (Fdbus_register_signal):
4103 * process.c (conv_sockaddr_to_lisp):
4104 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4105
4106 * callproc.c (Fgetenv_internal): Doc fix.
4107
4108 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
4109
4110 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4111 it is not even used.
4112
4113 2009-01-16 Glenn Morris <rgm@gnu.org>
4114
4115 * font.c (Ffont_variation_glyphs): Silence compiler.
4116
4117 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
4118
4119 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4120 Reported by David Robinow <drobinow@gmail.com>.
4121
4122 2009-01-15 Kenichi Handa <handa@m17n.org>
4123
4124 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4125
4126 2009-01-14 Jason Rumney <jasonr@gnu.org>
4127
4128 * frame.c (x_set_font): Always store a font to the font parameter,
4129 never a fontset. (Bug#1562)
4130
4131 2009-01-14 Kenichi Handa <handa@m17n.org>
4132
4133 * coding.c (TWO_MORE_BYTES): New macro.
4134 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
4135
4136 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
4137
4138 * font.c (font_clear_prop): If clearing the family, clear the font
4139 width index too.
4140
4141 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4142
4143 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
4144
4145 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4146 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4147 functions, use sizeof.
4148
4149 2009-01-12 Martin Rudalics <rudalics@gmx.at>
4150
4151 * keyboard.c (read_char): Fix case where last_nonmenu_event
4152 returned a bad value with submenus. (Bug#447)
4153
4154 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
4155
4156 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4157 family, clear the font width index too.
4158
4159 2009-01-11 Jason Rumney <jasonr@gnu.org>
4160
4161 * keyboard.c (cmd_error_internal): Exit when errors occur before
4162 frame creation and not in daemon mode. (Bug#1836)
4163
4164 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
4165
4166 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4167 of a display vector, backtrack.
4168 (try_window_reusing_current_matrix): Check glyph type before
4169 referencing charpos member.
4170
4171 2009-01-10 Eli Zaretskii <eliz@gnu.org>
4172
4173 Fix Bug #876:
4174
4175 * coding.c (inhibit_null_byte_detection): New variable.
4176 (detect_coding, detect_coding_system): Don't pay attention to null
4177 bytes if inhibit_null_byte_detection is non-zero.
4178 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
4179 <inhibit-iso-escape-detection>: Doc fix.
4180
4181 2009-01-09 Jason Rumney <jasonr@gnu.org>
4182
4183 * w32font.c (add_font_entity_to_list): Don't report unknown
4184 Windows charset as any unrecognized registry. (Bug#1548)
4185 Only report Unicode Plane 2 fonts as unicode-sip.
4186
4187 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
4188
4189 * xfaces.c (Fx_font_family_list): Delete function.
4190 Move compatibility version to faces.el.
4191
4192 * font.c (Ffont_family_list): Return a list of strings, not symbols.
4193
4194 2009-01-09 Martin Rudalics <rudalics@gmx.at>
4195
4196 * frame.c (x_set_frame_parameters): Remember requested value for
4197 fullscreen before it's reset by the parameter handler.
4198
4199 2009-01-09 Glenn Morris <rgm@gnu.org>
4200
4201 * keyboard.c (last_command_char): For clarity, rename to...
4202 (last_command_event): ... and update all users.
4203 (last_input_char): For clarity, rename to...
4204 (last_input_event): ... and update all users.
4205 (last-command-char, last-input-char): Move to subr.el as aliases.
4206 * cmds.c, commands.h: Update for last_command_char rename.
4207
4208 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
4209
4210 * font.c (font_open_for_lface): Handle unspecified height attribute.
4211
4212 2009-01-08 Jason Rumney <jasonr@gnu.org>
4213
4214 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4215 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4216 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4217 Don't declare.
4218 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
4219 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4220
4221 2009-01-07 Kenichi Handa <handa@m17n.org>
4222
4223 * fileio.c (Finsert_file_contents): In the case of replace,
4224 remember the coding system used for decoding in
4225 coding_system (Bug#1039).
4226
4227 * coding.c (decode_coding_utf_8): Check byte_after_cr before
4228 breaking the loop. (Bug#870)
4229 (decode_coding_utf_16, decode_coding_emacs_mule)
4230 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4231 (decode_coding_charset): Likewise.
4232
4233 2009-01-05 Martin Rudalics <rudalics@gmx.at>
4234
4235 * frame.c (x_set_frame_parameters): Make sure height (width) get
4236 applied when fullwidth (fullheight) is set. (Bug#1522)
4237
4238 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
4239
4240 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4241 (utc_base): Declare as ULONGLONG, not long double.
4242 (convert_time_raw): Delete.
4243 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4244 (initialize_utc_base): New function.
4245 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4246 (convert_from_time_t): Use initialize_utc_base; compute result with
4247 64-bit arithmetic.
4248 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4249
4250 2009-01-03 Eli Zaretskii <eliz@gnu.org>
4251
4252 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
4253 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4254 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4255 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4256 [!subprocesses]: Define.
4257 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4258 (Flist_system_processes, Fsystem_process_attributes)
4259 [!subprocesses]: Call list_system_processes and
4260 system_process_attributes instead of returning Qnil.
4261
4262 * dosfns.c (system_process_attributes, list_system_processes):
4263 New functions.
4264
4265 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4266
4267 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4268 Don't use the default (no-op) implementation.
4269
4270 2009-01-03 Jason Rumney <jasonr@gnu.org>
4271
4272 * keyboard.c (parse_modifiers_uncached): Wheel events are
4273 clicks (bug#687).
4274
4275 * w32term.c (x_query_colors, x_query_color): New functions.
4276
4277 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4278 (svg_load_image): Cast returned pointers from dynamically loaded
4279 functions. Eliminate W32 specific code.
4280
4281 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4282
4283 * nsfns.m (x_set_foreground_color, x_set_background_color)
4284 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4285 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4286 x_ prefix instead of ns_. Update references.
4287 (syms_of_nsfns): Add a FIXME comment.
4288
4289 * nsterm.m (x_set_cursor_type): New prototype.
4290 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4291
4292 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4293 for Solaris instead of incorrectly providing Qutime and Qcutime.
4294
4295 2009-01-02 Eli Zaretskii <eliz@gnu.org>
4296
4297 * w32.c (process_times): Compute sum of utime and stime.
4298 (system_process_attributes): Add Qtime to the alist.
4299
4300 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4301 and add them to the alist.
4302
4303 * process.c (top level) <Qtime, Qctime>: New variables.
4304 (syms_of_process): staticpro them.
4305 (Fsystem_process_attributes): Add their documentation to the doc
4306 string.
4307
4308 * process.h: Declare Qtime and Qctime.
4309
4310 2009-01-02 Jason Rumney <jasonr@gnu.org>
4311
4312 * image.c (Qgobject): New symbol.
4313 (syms_of_image): Initialize it.
4314 (init_svg_functions): Load some functions from gobject library.
4315
4316 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4317
4318 * frame.c (make_terminal_frame): Remove redundant code and useless
4319 block.
4320
4321 2009-01-01 Andreas Schwab <schwab@suse.de>
4322
4323 * process.c (conv_sockaddr_to_lisp): Add workaround for
4324 getsockname bug on BSD.
4325
4326 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
4327
4328 * xfns.c (x_create_tip_frame): Set border width of the X window.
4329
4330 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
4331
4332 2009-01-01 Jason Rumney <jasonr@gnu.org>
4333
4334 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
4335 Don't block input, as per earlier xterm.c changes.
4336
4337 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4338
4339 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4340 (ns_appkit_version_int): New function.
4341 (x-server-version): Use ns_appkit_version_int and follow 21+
4342 convention of returning 3 integers.
4343
4344 2008-12-30 Kenichi Handa <handa@m17n.org>
4345
4346 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4347 (CHAR_SURROGATE_PAIR_P): New macro.
4348
4349 * font.h (struct font_driver): New member get_variation_glyphs.
4350
4351 * font.c (font_range): Don't require a font for a variation selector.
4352 (Ffont_variation_glyphs): New function.
4353 (syms_of_font): Defsubr it.
4354
4355 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4356 ftfont_variation_glyphs.
4357 (setup_otf_gstring): New function.
4358 (ftfont_drive_otf): Use it.
4359 (ftfont_shape_by_flt): Handle variation selector.
4360 (ftfont_variation_glyphs): New function.
4361
4362 2008-12-30 Martin Rudalics <rudalics@gmx.at>
4363
4364 * frame.c (Vemacs_iconified): Remove.
4365
4366 2008-12-30 Jason Rumney <jasonr@gnu.org>
4367
4368 * frame.c (store_frame_param, x_get_arg): Enable newer code on
4369 WINDOWSNT too, as related changes have already been synced. (Bug#117)
4370
4371 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
4372
4373 * indent.c (Fvertical_motion): Don't advance iterator if we have
4374 reseated to the desired position.
4375
4376 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4377 checking for pos match.
4378
4379 2008-12-30 Kenichi Handa <handa@m17n.org>
4380
4381 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4382 just get the low 8-bit of the code.
4383
4384 * font.c (font_intern_prop): Validate str as multibyte.
4385
4386 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4387
4388 * dispextern.h (struct face): Move lface and hash from the middle
4389 of bitfields.
4390
4391 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4392
4393 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4394
4395 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4396 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4397 instead of intervals.h.
4398
4399 2008-12-26 Andreas Schwab <schwab@suse.de>
4400
4401 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4402 cons.
4403
4404 2008-12-26 Martin Rudalics <rudalics@gmx.at>
4405
4406 * textprop.c (Qminibuffer_prompt): New variable.
4407 (syms_of_textprop): Initialize it.
4408 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4409 in minibuffer-prompt face. (Bug#1662)
4410
4411 2008-12-25 Jason Rumney <jasonr@gnu.org>
4412
4413 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4414
4415 2008-12-24 Jason Rumney <jasonr@gnu.org>
4416
4417 * ralloc.c (r_alloc_reset_variable): New function.
4418
4419 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
4420 record of what points where. (Bug#716)
4421
4422 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4423
4424 * minibuf.c (read_minibuf): Follow the non-interactive case when
4425 running as a daemon, before detaching.
4426
4427 2008-12-22 Andreas Schwab <schwab@suse.de>
4428
4429 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4430 * gtkutil.c (free_widget_value): Use xfree instead of free.
4431
4432 2008-12-22 Martin Rudalics <rudalics@gmx.at>
4433
4434 * frame.c (delete_frame): New function derived from
4435 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4436 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4437 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4438 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4439 * frame.h: Extern delete_frame.
4440 * window.c (window_loop):
4441 * terminal.c (delete_terminal):
4442 * xterm.c (x_connection_closed):
4443 * xfns.c (Fx_hide_tip):
4444 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
4445
4446 2008-12-21 Jason Rumney <jasonr@gnu.org>
4447
4448 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4449 when character maps to .notdef character.
4450
4451 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4452
4453 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4454
4455 2008-12-20 Jason Rumney <jasonr@gnu.org>
4456
4457 * frame.c (Fmake_terminal_frame): Raise an error when called from
4458 a graphical frame on Windows. (Bug#1325)
4459
4460 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4461
4462 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4463
4464 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
4465
4466 * minibuf.c (Fread_buffer): Doc fix.
4467
4468 2008-12-20 Jason Rumney <jasonr@gnu.org>
4469
4470 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
4471 server name in UNC paths. (Bug#719)
4472
4473 * coding.c (decode_coding): Clear chars_at_source flag when using
4474 charbuf. (Bug#1035)
4475
4476 2008-12-19 Daniel Engeler <engeler@gmail.com>
4477
4478 * sysdep.c (serial_configure): Fix typo.
4479
4480 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4481
4482 * sysdep.c: Include alloca.h.
4483 (system_process_attributes): Add implementation for Solaris.
4484
4485 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
4486
4487 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4488
4489 Reorganize implementation of Flist_system_processes and
4490 Fsystem_process_attributes. No functional changes.
4491 * process.c: Don't #include pwd.h, grp.h and limits.h.
4492 (Flist_system_processes): Just call list_system_processes.
4493 (Fsystem_process_attributes): Just call system_process_attributes.
4494 (procfs_list_system_processes, time_from_jiffies)
4495 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4496 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4497
4498 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4499 (list_system_processes): Rename from
4500 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4501 Provide a do nothing implementation.
4502 (system_process_attributes): Rename from
4503 procfs_list_system_processes.
4504 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4505 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
4506
4507 * w32.c (list_system_processes): Rename from
4508 w32_list_system_processes.
4509 (system_process_attributes): Rename from
4510 w32_system_process_attributes.
4511
4512 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4513
4514 * process.h (w32_list_system_processes)
4515 (w32_system_process_attributes): Remove.
4516 (list_system_processes, system_process_attributes):
4517 New prototypes.
4518
4519 2008-12-19 Kenichi Handa <handa@m17n.org>
4520
4521 * xfont.c (xfont_decode_coding_xlfd): New function.
4522 (xfont_encode_coding_xlfd): New function.
4523 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4524 (xfont_list): Decode and encode XLFD by iso-8859-1.
4525 (xfont_match): Likewise.
4526 (xfont_list_family): Likewise.
4527 (xfont_open): Likewise.
4528
4529 * ftfont.c (ftfont_open): Generate a multibyte string if given
4530 names are utf-8.
4531
4532 * xftfont.c (xftfont_open): Generate a multibyte string if given
4533 names are utf-8.
4534
4535 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4536
4537 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4538 changed.
4539 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4540 clicked on a detached tool bar button.
4541
4542 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4543
4544 * emacs.c (main): Print and error and exit when no data is read
4545 from the pipe.
4546
4547 2008-12-17 Jason Rumney <jasonr@gnu.org>
4548
4549 * w32font.c (w32font_has_char): Always return -1.
4550
4551 2008-12-16 Kenichi Handa <handa@m17n.org>
4552
4553 * font.c (font_open_entity): Fix previous change.
4554
4555 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4556
4557 * process.c: Include <limits.h>.
4558
4559 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
4560
4561 * font.c (font_update_drivers): Fix mistake in reconstructing the
4562 driver list.
4563
4564 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
4565
4566 * font.c (font_clear_cache): Fix format of font cache data.
4567
4568 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
4569
4570 * xftfont.c (xftfont_open): Free Xft font pattern if
4571 XftFontOpenPattern fails.
4572
4573 * xterm.c (x_free_frame_resources): Remove extraneous call to
4574 free_frame_faces.
4575
4576 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4577
4578 * xterm.c (x_delete_display): Move xim_close_dpy call to
4579 x_delete_terminal.
4580 (x_delete_terminal): Call xim_close_dpy.
4581
4582 2008-12-13 Jason Rumney <jasonr@gnu.org>
4583
4584 * w32font.c (intern_font_name): New function.
4585 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4586 (w32font_open_internal, Fx_select_font): Decode font name.
4587 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4588
4589 * w32font.h (intern_font_name): Declare new function.
4590
4591 * w32uniscribe.c (add_opentype_font_name_to_list):
4592 Use intern_font_name.
4593
4594 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4595
4596 * frame.c (Fdelete_frame): Call free_font_driver_list.
4597
4598 * font.c (free_font_driver_list): Implement missing function.
4599
4600 * w32term.c (w32_term_init): Don't initialize the image cache
4601 here; it will be done in init_frame_faces.
4602
4603 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4604 (struct x_display_info): Remove unused member null_pixel. New
4605 member xim_callback_data.
4606
4607 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4608 (xim_initialize): Save pointer to callback function data.
4609 (xim_close_dpy): Free callback function data. Call XCloseIM,
4610 reverting 2008-11-04 change by David Smith.
4611 (x_term_init): Don't initialize the image cache here; it will be
4612 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4613 (x_delete_display): Free x_dnd_atoms member.
4614
4615 2008-12-13 Kenichi Handa <handa@m17n.org>
4616
4617 * font.c (font_rescale_ratio): Moved from xfaces.c.
4618 Argument type changed. Handle a font-spec too.
4619 (font_score): Check Vface_font_rescale_alist.
4620 (font_open_entity): Likewise. (Bug#1547)
4621
4622 * xfaces.c (font_rescale_ratio): Moved to font.c.
4623
4624 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4625
4626 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4627
4628 2008-12-12 Jason Rumney <jasonr@gnu.org>
4629
4630 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4631 Vwindow_system_version to the real w32 major version.
4632
4633 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4634
4635 * term.c (init_tty): Move setting the terminal name before the
4636 potential user: maybe_fatal.
4637
4638 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
4639
4640 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4641 all callers changed. Call free_frame_faces to free the face cache.
4642
4643 2008-12-11 Jason Rumney <jasonr@gnu.org>
4644
4645 * w32font.c (fill_in_logfont): Don't assume symbol script means
4646 SYMBOL_CHARSET. (Bug#547)
4647
4648 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
4649 size for surrogates. (Bug#1096, bug#872)
4650
4651 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4652
4653 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4654
4655 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4656
4657 * process.c (Fsystem_process_attributes, syms_of_process):
4658 Fix typo in name of Ssystem_process_attributes.
4659 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4660
4661 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4662
4663 * syntax.c (Fmodify_syntax_entry): Doc fix.
4664
4665 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4666
4667 * font.c (Ffont_spec): Move usage to end of docstring.
4668
4669 2008-12-10 Jason Rumney <jasonr@gnu.org>
4670
4671 * w32font.c (Qcham): New symbol.
4672 (font_supported_scripts): Add cham, and comments for other new
4673 scripts in bitfield from OpenType spec.
4674 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4675 contain characters beyond the bmp.
4676
4677 2008-12-10 Kenichi Handa <handa@m17n.org>
4678
4679 * ftfont.c (fc_charset_table): Add "unicode-sip".
4680 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
4681 Qunicode_sip.
4682
4683 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4684
4685 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4686 (Fcoding_system_put): Use QCdefault_char.
4687 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4688
4689 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
4690
4691 * xftfont.c (syms_of_xftfont): Fix typo.
4692
4693 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
4694
4695 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4696
4697 * emacs.c (main): Close daemon_pipe on exec.
4698
4699 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
4700
4701 * termchar.h (struct tty): New members termcap_term_buffer and
4702 termcap_strings_buffer.
4703
4704 * term.c (encode_terminal_code): Free any previous memory blocks
4705 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
4706 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4707 All callers changed.
4708 (init_tty): Store termcap data and string buffers in new struct
4709 tty members termcap_term_buffer and termcap_strings_buffer.
4710 (delete_tty): Free them.
4711 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
4712
4713 2008-12-07 Seiji Zenitani <zenitani@mac.com>
4714
4715 * nsfns.m (ns_set_background_color): Remove code duplication.
4716 It was a substitute for face-transparency on OS X 10.3.
4717
4718 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
4719
4720 * coding.c (make_conversion_work_buffer): Disable buffer
4721 modification hooks in the work buffer.
4722
4723 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4724
4725 * process.c (procfs_system_process_attributes): If `nread' has a
4726 negative value, assign zero to it.
4727
4728 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
4729
4730 * eval.c (Vdebug_on_error): Doc fix.
4731
4732 2008-12-05 Kenichi Handa <handa@m17n.org>
4733
4734 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4735 second character is a combining character.
4736
4737 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4738
4739 * process.c (procfs_system_process_attributes): Don't use cmd,
4740 cmdsize, and q without initializing them first.
4741
4742 2008-12-04 Jason Rumney <jasonr@gnu.org>
4743
4744 * w32font.c (w32font_draw): Initialize orig_clip before getting
4745 it, and delete it when finished.
4746
4747 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4748
4749 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4750 case when running as a daemon before detaching.
4751
4752 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
4753
4754 * w32.c (init_environment): Don't unload library shell32.dll.
4755
4756 2008-12-03 Kenichi Handa <handa@m17n.org>
4757
4758 * font.c (font_at): Set `multibyte' at first.
4759
4760 * coding.c (decode_coding_charset): Check type of an element of
4761 vector VALIDS.
4762 (encode_coding_emacs_mule): Be sure to set `code'.
4763
4764 * fontset.c (face_for_char): Handle invalid charset property correctly.
4765 (font_for_char): Likewise.
4766
4767 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
4768
4769 * font.c (Fopen_font): Compute pixel size correctly.
4770 (font_update_lface): Handle fonts with corrupted size specs,
4771 i.e. non-int and non-float.
4772
4773 * ftfont.c (ftfont_match): Initialize entity variable.
4774 (ftfont_resolve_generic_family): Avoid using uninitialized var.
4775 (ftfont_list_family): Initialize list var earlier.
4776
4777 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4778
4779 * xterm.c (x_draw_glyph_string): Fall back on
4780 underline_minimum_offset for underline position.
4781
4782 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4783
4784 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4785
4786 * character.c (c_string_width): Specify the type for LEN.
4787
4788 2008-12-03 Kenichi Handa <handa@m17n.org>
4789
4790 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
4791 (decode_coding_utf_8): Likewise.
4792 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4793 (produce_chars): Initialize consumed_chars to 0.
4794
4795 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4796
4797 * keyboard.c (make_lispy_position): Only use PT if the selected
4798 window is current.
4799
4800 2008-12-02 Andreas Schwab <schwab@suse.de>
4801
4802 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4803
4804 * doprnt.c (doprnt1): Fix size of charbuf.
4805
4806 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4807
4808 * keyboard.c (timer_check): Revert last change.
4809
4810 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
4811
4812 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4813
4814 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
4815
4816 * makefile.w32-in: Update dependencies.
4817 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4818
4819 2008-12-01 Andreas Schwab <schwab@suse.de>
4820
4821 * font.c (register_font_driver): Use xmalloc.
4822 (font_put_frame_data): Likewise.
4823
4824 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
4825
4826 * xfaces.c (realize_x_face): Make abort condition clearer.
4827
4828 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4829
4830 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
4831
4832 * keyboard.c (timer_check): After a timer runs, ensure that the
4833 selected window's buffer is current.
4834
4835 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
4836
4837 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4838 It was accidentally restored by the Unicode merge.
4839
4840 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4841
4842 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
4843
4844 * w32proc.c: Include "coding.h".
4845 (Fw32_short_file_name): Encode filename passed to Windows API.
4846 (Fw32_long_file_name): Encode filename passed to Windows API and
4847 decode back the result. (Bug#1433)
4848
4849 2008-11-29 Kenichi Handa <handa@m17n.org>
4850
4851 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4852 not before accessing it.
4853
4854 * charset.c (Fdefine_charset_internal): After calculating
4855 min_char, max_char, and fastmap, copy the charset structure again.
4856 (encode_char): Fix the previous change.
4857
4858 2008-11-28 Seiji Zenitani <zenitani@mac.com>
4859
4860 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4861
4862 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4863
4864 * nsterm.m (x_set_frame_alpha): New function.
4865
4866 2008-11-27 Eli Zaretskii <eliz@gnu.org>
4867
4868 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4869
4870 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
4871
4872 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4873 pointer to check_face_name.
4874
4875 2008-11-27 Kenichi Handa <handa@m17n.org>
4876
4877 * category.h (SET_CATEGORY_SET): Call set_category_set.
4878 (set_category_set): Extern it.
4879
4880 * category.c (hash_get_category_set): New function.
4881 (Fmodify_category_entry): Adjusted for the change of
4882 char_table_ref_and_range. Call hash_get_category_set to get a
4883 category set to store in the table.
4884
4885 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4886 Funify_charset.
4887
4888 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
4889 (DECODE_CHAR): Check if the decoder vector is ready.
4890 (ENCODE_CHAR): Check if the encoder char-table is ready.
4891 (maybe_unify_char): Extern it.
4892
4893 * charset.c (Vchar_unified_charset_table): Delete it.
4894 (inhibit_load_charset_map): New variable.
4895 (temp_charset_work): New variable.
4896 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4897 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4898 New macros.
4899 (load_charset_map): Meaning of control_flag changed. If
4900 inhibit_load_charset_map is nonzero, setup a table in
4901 temp_charset_work.
4902 (load_charset): New argument control_flag.
4903 (map_charset_for_dump): New function.
4904 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4905 map_charset_for_dump.
4906 (Fdefine_charset_internal): If the charset method is MAP, load
4907 mapping tables by calling load_charset.
4908 (Funify_charset): Don't load a mapping table but directly set
4909 Vchar_unify_table.
4910 (maybe_unify_char): New function.
4911 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4912 Handle the case of inhibit_load_charset_map being nonzero.
4913 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4914 Handle the case of inhibit_load_charset_map being nonzero.
4915 (Fclear_charset_maps): Just free temp_charset_work.
4916 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4917 variable.
4918
4919 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4920 change of char_table_ref_and_range.
4921 (char_table_ref_and_range): Change the meaning of argument FROM
4922 and TO. Now the caller must provide initial values for *FROM
4923 and *TO.
4924
4925 * fontset.c (fontset_add): Adjusted for the change of
4926 char_table_ref_and_range.
4927 (fontset_get_font_group): Likewise.
4928 (Ffontset_info): Likewise.
4929
4930 * keymap.c (describe_vector): Adjusted for the change of
4931 char_table_ref_and_range. For char-table, put boundary between
4932 non-ASCII and 8-bit characters.
4933
4934 * print.c (print_object): For bool-vector, delete unnecessary
4935 check of ASCII_BYTE_P.
4936
4937 2008-11-26 Jason Rumney <jasonr@gnu.org>
4938
4939 * w32font.c (w32font_open_internal): Don't include external
4940 leading in font height. (Bug#879)
4941
4942 2008-11-26 Glenn Morris <rgm@gnu.org>
4943
4944 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4945 redefinition with ifdef. (Bug#1383)
4946
4947 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4948
4949 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4950
4951 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4952
4953 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4954 New EmacsView methods.
4955 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4956 Fixes bug #1048,1357,1414.
4957
4958 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4959
4960 Fix bug #1362.
4961 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4962 is not an indexed color.
4963 * nsterm.m (free_indexed_color): Add argument checking.
4964 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4965
4966 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
4967
4968 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4969 Document confirm-after-completion value for
4970 minibuffer-completion-confirm.
4971
4972 2008-11-24 Jason Rumney <jasonr@gnu.org>
4973
4974 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4975 warning.
4976
4977 2008-11-23 Jason Rumney <jasonr@gnu.org>
4978
4979 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4980 restored before returning.
4981
4982 * w32font.c (check_face_name): New function.
4983 (add_font_entity_to_list): Use it to filter out common substituted
4984 fonts. (Bug#642)
4985
4986 2008-11-22 Martin Rudalics <rudalics@gmx.at>
4987
4988 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4989 confirm-nonexistent-file-or-buffer in doc-string.
4990
4991 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4992
4993 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4994 Fix copy/paste typo. Add checks.
4995
4996 2008-11-21 Kenichi Handa <handa@m17n.org>
4997
4998 * coding.c (detect_coding_iso_2022): Reject invalid composition
4999 sequence.
5000 (DECODE_COMPOSITION_START): If the current source is the last
5001 block, and the current composition doesn't end, regard this
5002 sequence as invalid.
5003 (decode_coding_iso_2022): Handle invalid composition sequence.
5004
5005 2008-11-20 Martin Rudalics <rudalics@gmx.at>
5006
5007 * window.c (coordinates_in_window): Don't return
5008 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5009 line when the window is not the rightmost one. (Bug#1372)
5010
5011 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5012
5013 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5014
5015 2008-11-15 Eli Zaretskii <eliz@gnu.org>
5016
5017 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5018 and bright_bg if noninteractive is non-zero.
5019
5020 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5021
5022 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5023 x_draw_glyph_string_background.
5024
5025 * w32term.c (x_draw_glyph_string): Likewise.
5026
5027 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
5028
5029 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5030 the next glyph string once past the overhang width.
5031
5032 * nsterm.m (ns_draw_glyph_string): Likewise.
5033
5034 * w32term.c (x_draw_glyph_string): Likewise.
5035
5036 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5037
5038 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5039 double file close.
5040
5041 2008-11-14 Martin Rudalics <rudalics@gmx.at>
5042
5043 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5044 dedicated status of window before attempting to display another
5045 buffer in it.
5046
5047 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
5048
5049 * msdos.c (Fmsdos_long_file_names):
5050 (syms_of_msdos) <dos-unsupported-char-glyph>:
5051 * dosfns.c (Fint86): Fix typos in docstrings.
5052
5053 2008-11-14 Eli Zaretskii <eliz@gnu.org>
5054
5055 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5056
5057 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5058
5059 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5060
5061 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5062
5063 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5064
5065 * frame.h: Negative alpha means "don't touch".
5066
5067 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5068
5069 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5070
5071 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5072
5073 * hftctl.c:
5074 * chpdef.h:
5075 * acldef.h: Remove files used only for systems no longer supported.
5076
5077 * Makefile.in: Fix .o alphabetical ordering.
5078 (hftctl.o): Remove dependency, file removed.
5079 (keymap.o, print.o): Depend on charset.h.
5080
5081 2008-11-10 Kenichi Handa <handa@m17n.org>
5082
5083 * character.c (Fget_byte): Fix and make it faster for unibyte target.
5084
5085 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
5086
5087 * dired.c (file_name_completion): If completion_ignore_case is
5088 enabled, ignore case when checking completion-regexp-list.
5089
5090 2008-11-08 Eli Zaretskii <eliz@gnu.org>
5091
5092 * vm-limit.c (get_lim_data): Fix last change.
5093
5094 2008-11-08 Kenichi Handa <handa@m17n.org>
5095
5096 * character.c (Fget_byte): New function.
5097 (syms_of_character): Defsubr Fget_byte.
5098
5099 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
5100
5101 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5102 cursor position is valid after scrolling.
5103
5104 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
5105
5106 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5107
5108 2008-11-06 Glenn Morris <rgm@gnu.org>
5109
5110 * xterm.c (handle_one_xevent): Don't let popup menus cause
5111 mouse-autoselect-window related window switching. (Bug#1261)
5112
5113 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5114
5115 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5116
5117 2008-11-04 Andreas Schwab <schwab@suse.de>
5118
5119 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5120
5121 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
5122
5123 * xfns.c (Fx_wm_set_size_hint): New function.
5124
5125 2008-11-03 Martin Rudalics <rudalics@gmx.at>
5126
5127 * textprop.c (Fprevious_single_char_property_change): Return 0
5128 when there's no change in a string. (Bug#1301)
5129
5130 2008-11-02 Martin Rudalics <rudalics@gmx.at>
5131
5132 * frame.c (do_switch_frame): New argument NORECORD passed to
5133 Fselect_window.
5134 (Fselect_frame): New argument NORECORD passed to
5135 do_switch_frame.
5136 (Fset_frame_selected_window): New argument NORECORD passed to
5137 Fselect_frame.
5138 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5139 in call of do_switch_frame.
5140 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5141 Handle NORECORD argument in call of Fselect_frame.
5142 * lisp.h (do_switch_frame, Fselect_frame)
5143 (Fset_frame_selected_window): Adjust declarations.
5144 * window.c (select_frame_norecord): New function.
5145 (run_window_configuration_change_hook): Use it and call
5146 Fselect_frame with NORECORD set.
5147 (Fselect_window): Pass NORECORD to Fselect_frame.
5148 (Fset_window_configuration): Handle NORECORD argument in call of
5149 do_switch_frame.
5150 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5151 Fset_frame_selected_window.
5152 * keyboard.c (command_loop_1): Handle NORECORD in call of
5153 Fselect_frame (currently ifdefd).
5154
5155 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5156
5157 * emacs.c (USAGE2): Untabify.
5158
5159 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5160
5161 * composite.c (fill_gstring_header): Fix copy/paste typo.
5162
5163 2008-10-31 Martin Rudalics <rudalics@gmx.at>
5164
5165 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5166 (Fother_window): Rename argument and rewrite doc-string.
5167 (select_window_norecord): Fix return value. (Bug#1276)
5168
5169 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
5170
5171 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5172 new frames overriding foreground for tooltips. Based on similar patch
5173 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5174
5175 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
5176
5177 * emacs.c (Fdaemon_initialized): Initialize nfd.
5178
5179 2008-10-29 Martin Rudalics <rudalics@gmx.at>
5180
5181 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5182 (Fwindow_text_height): Clarify doc-strings.
5183 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5184 doc-string of window-scroll-functions.
5185
5186 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5187
5188 * category.c (syms_of_category): Fix typo in docstring.
5189
5190 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
5191
5192 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5193 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5194 Fix typos in docstrings.
5195
5196 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5197
5198 * emacs.c (daemon_pipe): Make non-static.
5199 (IS_DAEMON): Move definition ...
5200 * lisp.h (IS_DAEMON): ... here.
5201 (daemon_pipe): Declare.
5202 (is_daemon): Remove.
5203 * dispnew.c (init_display): Use IS_DAEMON.
5204
5205 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5206
5207 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5208 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5209
5210 * emacs.c (is_daemon): Remove.
5211 (main): Don't set is_daemon.
5212 (IS_DAEMON): New macro.
5213 (Fdaemonp, Fdaemon_initialized): Use it.
5214 (Fdaemon_initialized): Write a char into the pipe to make sure the
5215 parent exits.
5216 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5217
5218 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
5219
5220 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5221 over-sized glyph, draw it with the default glyph width.
5222
5223 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5224 glyph, draw it with the default glyph width.
5225
5226 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5227 glyph, draw it with the default glyph width.
5228
5229 * xdisp.c (try_scrolling): When computing the distance from the
5230 scroll margin to PT, try moving some distance past the window
5231 bottom before giving up.
5232
5233 2008-10-27 Martin Rudalics <rudalics@gmx.at>
5234
5235 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5236 (Fset_window_buffer): Explain in doc-string that a window can be
5237 "strongly" dedicated to its buffer.
5238
5239 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5240
5241 * emacs.c (daemon_name): New variable.
5242 (main): Deal with --daemon=SERVER_NAME.
5243 (Fdaemonp): Return a name if one was passed to --daemon.
5244
5245 2008-10-26 Romain Francoise <romain@orebokech.com>
5246
5247 * emacs.c (daemon_pipe): New variable.
5248 (main): Create a pipe before forking, make the parent exit only after
5249 the child has closed its end of the pipe. Move closing the
5250 descriptors ...
5251 (Fdaemon_initialized): ... here. New function.
5252
5253 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5254
5255 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5256 the previous unoptimized table.
5257
5258 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5259 the distinction between non-nil and non-t value of `dedicated'.
5260
5261 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
5262
5263 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
5264 read_char_minibuf_menu_text is large enough to hold the menu string.
5265
5266 2008-10-25 Martin Rudalics <rudalics@gmx.at>
5267
5268 * window.c (Fget_buffer_window, Fdelete_windows_on)
5269 (Freplace_buffer_in_windows): Make buffer argument optional and
5270 rename to buffer_or_name.
5271
5272 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
5273
5274 * xdisp.c (handle_single_display_spec, handle_display_prop):
5275 Undo 2005-05-16 change.
5276 (handle_stop): Pop iterator if it's loaded with an empty string.
5277 (get_overlay_strings_1): Don't save iterator if it's loaded with
5278 an empty string (bug#1201).
5279
5280 2008-10-24 Kenichi Handa <handa@m17n.org>
5281
5282 * ftfont.c (ftfont_otf_features): Fix previous change.
5283 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5284 calling ftfont_otf_features.
5285
5286 2008-10-24 Kenichi Handa <handa@m17n.org>
5287
5288 * font.c (font_match_p): Fix for the case that a vector of
5289 characters is in script-representative-chars.
5290
5291 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
5292
5293 * dbusbind.c (xd_in_read_queued_messages): New variable.
5294 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
5295 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5296 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5297 macro. (Bug#1186).
5298
5299 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
5300
5301 * s/sol2-10.h: New file.
5302
5303 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5304
5305 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5306 poor beast has survived 9+ years and the jump from xterm.c!).
5307
5308 2008-10-23 Martin Rudalics <rudalics@gmx.at>
5309
5310 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5311 Reword doc-string.
5312 (Fbury_buffer): In doc-string say what happens to the buffer's window.
5313
5314 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5315
5316 * character.c (syms_of_character) <script-representative-chars>:
5317 <unicode-category-table>: Doc fixes.
5318
5319 2008-10-23 Noah Friedman <friedman@splode.com>
5320
5321 * coding.c (make_conversion_work_buffer): Check that
5322 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5323 Fget_buffer_create.
5324
5325 2008-10-23 Kenichi Handa <handa@m17n.org>
5326
5327 * font.c (font_add_log): Check the values of extra properties.
5328
5329 2008-10-22 Martin Rudalics <rudalics@gmx.at>
5330
5331 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5332 Reword doc-string.
5333 (Fset_window_parameter): Use NILP.
5334 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
5335 (Frecenter): Use "selected" instead of "current" window in doc-strings.
5336
5337 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5338
5339 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5340
5341 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5342
5343 * nsfns.m (ns_appkit_version): New function.
5344 (x-server-version): Use it.
5345 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5346 (x-server-vendor): Don't check_ns().
5347
5348 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5349
5350 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5351
5352 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5353 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5354
5355 2008-10-22 Kenichi Handa <handa@m17n.org>
5356
5357 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5358 scripts.
5359
5360 * category.c (word_boundary_p): Check scripts instead of charset.
5361 Handle nil value in word-separating-categories and
5362 word-combining-categories.
5363 (syms_of_category): Fix docstrings of word-separating-categories
5364 and word-combining-categories.
5365
5366 2008-10-21 Eli Zaretskii <eliz@gnu.org>
5367
5368 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5369 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5370
5371 2008-10-21 Martin Rudalics <rudalics@gmx.at>
5372
5373 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5374 Rename arg "buffer" to "buffer_or_name".
5375 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5376 it optional.
5377 (no_switch_window): Remove since the return value is not used.
5378 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
5379 Consider window as dedicated when Fwindow_dedicated_p returns a
5380 non-nil value.
5381 * lisp.h: Remove prototype for no_switch_window.
5382
5383 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5384
5385 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
5386 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
5387
5388 2008-10-21 Kenichi Handa <handa@m17n.org>
5389
5390 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5391 check Vlatin_extra_code_table.
5392
5393 2008-10-20 Eli Zaretskii <eliz@gnu.org>
5394
5395 * fileio.c (Fset_file_modes): Doc fix.
5396
5397 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
5398
5399 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5400 in arrays.
5401
5402 2008-10-19 Martin Rudalics <rudalics@gmx.at>
5403
5404 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5405 Mention kill-buffer in doc-string.
5406 (Fset_window_buffer): Reinsert tem check removed in last commit.
5407 (Fenlarge_window, Fshrink_window): Have argument names and
5408 doc-string follow Elisp manual more closely.
5409
5410 2008-10-18 Eli Zaretskii <eliz@gnu.org>
5411
5412 * fileio.c (Fset_file_modes): Doc fix.
5413
5414 2008-10-18 Martin Rudalics <rudalics@gmx.at>
5415
5416 * window.c (Fwindow_width, Fset_window_start)
5417 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
5418 (Fdelete_windows_on, Freplace_buffer_in_windows):
5419 Make doc-strings follow code and Elisp manual more closely.
5420 (Fwindow_dedicated_p): Make window argument optional.
5421 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5422 (Fset_window_buffer): Respect any non-nil dedicated value for
5423 window. Rename "buffer" argument to "buffer_or_name".
5424
5425 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
5426
5427 * m/sh3.h: New file, machine description for SuperH.
5428
5429 2008-10-17 Martin Rudalics <rudalics@gmx.at>
5430
5431 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5432
5433 2008-10-17 Kenichi Handa <handa@m17n.org>
5434
5435 * ftfont.c (ftfont_otf_features): Fix indexing
5436 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5437
5438 2008-10-16 Magnus Henoch <mange@freemail.hu>
5439
5440 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5441 (Fdbus_call_method_asynchronously): Ditto.
5442 This change makes C-h f display the argument list.
5443
5444 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
5445
5446 * fileio.c (Fexpand_file_name): Doc fix.
5447
5448 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5449 of :foreground and :background equivalent to unspecified (20.x
5450 compatibility).
5451
5452 2008-10-15 Eli Zaretskii <eliz@gnu.org>
5453
5454 * buffer.c (syms_of_buffer): Doc fix.
5455
5456 2008-10-14 Kenichi Handa <handa@m17n.org>
5457
5458 * font.c (font_clear_prop): When clearing font width, clear the
5459 average width field too.
5460
5461 2008-10-12 Andreas Schwab <schwab@suse.de>
5462
5463 * ftfont.c (ftfont_shape_by_flt): Make static.
5464 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5465
5466 * font.c: Don't include <m17n-flt.h>.
5467
5468 2008-10-10 Eli Zaretskii <eliz@gnu.org>
5469
5470 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5471
5472 2008-10-09 Eli Zaretskii <eliz@gnu.org>
5473
5474 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5475 away code.
5476
5477 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
5478
5479 * dispnew.c (update_text_area): Avoid looping due to large glyph
5480 overhangs (bug#1070).
5481
5482 2008-10-09 Kenichi Handa <handa@m17n.org>
5483
5484 * fontset.c (face_for_char): If face->fontset is negative, just
5485 return ascii_face.
5486
5487 * font.c (font_delete_unmatched): Fix previous change.
5488 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
5489
5490 2008-10-09 Martin Rudalics <rudalics@gmx.at>
5491
5492 * frame.c (Fraise_frame): On text-only terminals select frame in
5493 order to make it visible. (Bug#1061)
5494
5495 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
5496
5497 * fontset.c (fontset_find_font): Check frame validity.
5498
5499 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
5500
5501 * gtkutil.c (xg_display_open): Reset default display if none exists.
5502 (xg_display_close): Allow Emacs to close all displays (bug#985).
5503
5504 2008-10-06 Andreas Schwab <schwab@suse.de>
5505
5506 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
5507
5508 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
5509
5510 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
5511
5512 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
5513
5514 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5515 during initialization.
5516
5517 2008-10-04 Eli Zaretskii <eliz@gnu.org>
5518
5519 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5520 whole thing on MSDOS frames as well as on a TTY.
5521
5522 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5523 well as for TTY.
5524 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5525 well as on a TTY.
5526
5527 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5528 as well as for TTY.
5529
5530 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5531
5532 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5533 MSDOS frames as well.
5534
5535 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5536
5537 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5538 correct arguments.
5539 * menu.c (find_and_return_menu_selection): Add cast.
5540
5541 2008-10-03 Glenn Morris <rgm@gnu.org>
5542
5543 * emacs.c (USAGE1): Add --daemon.
5544
5545 2008-10-02 Eli Zaretskii <eliz@gnu.org>
5546
5547 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5548 100, so it's in percents as advertised.
5549
5550 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5551
5552 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5553 (ns_output.current_cursor, ns_output.desired_cursor)
5554 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5555 (FRAME_NEW_CURSOR_COLOR): Remove.
5556
5557 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
5558 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
5559 enumeration (HOLLOW_BOX_CURSOR, etc.).
5560
5561 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5562 (draw_window_cursor): Simplify code.
5563 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5564 Don't change cursor type. In latter, call rehighlight instead of doing
5565 updates manually.
5566 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5567 Use core Emacs cursor types.
5568
5569 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
5570
5571 2008-10-02 Martin Rudalics <rudalics@gmx.at>
5572
5573 * process.c (Faccept_process_output): Fix doc-string.
5574
5575 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5576
5577 * gmalloc.c (__sbrk): Also define for uClibc.
5578
5579 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5580 for uClibc.
5581
5582 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5583
5584 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5585 styles.
5586 (nsfont_open): Reenable the cache.
5587
5588 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5589
5590 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5591 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5592
5593 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5594
5595 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5596 a suspended terminal.
5597
5598 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
5599
5600 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5601
5602 2008-09-30 Eli Zaretskii <eliz@gnu.org>
5603
5604 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5605
5606 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
5607
5608 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5609 in a continued line coincides with a line beginning.
5610
5611 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5612
5613 * nsfont.m (nsfont_trait_distance): Fix bug.
5614 (nsfont_list): Return a list rather than a vector (syncs with Handa
5615 changes of 2008-05-14).
5616 (nsfont_open): Improve logging.
5617
5618 2008-09-29 Andreas Schwab <schwab@suse.de>
5619
5620 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5621
5622 2008-09-28 Martin Rudalics <rudalics@gmx.at>
5623
5624 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5625 name as char-resolve-modifiers.
5626 Reported by: Markus Triska <markus.triska@gmx.at>
5627
5628 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5629
5630 * dispnew.c (init_display): Return earlier when running as a daemon.
5631
5632 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5633
5634 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5635
5636 2008-09-27 Eli Zaretskii <eliz@gnu.org>
5637
5638 * composite.c (Fcomposition_get_gstring)
5639 (Fcompose_region_internal, Fcompose_string_internal)
5640 (Ffind_composition_internal): Doc fix.
5641 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5642 (syms_of_composite) <auto-composition-function>: Doc fix.
5643 (syms_of_composite) <composition-function-table>: Doc fix.
5644
5645 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
5646
5647 * search.c (wordify): New argument for lax word-ends.
5648 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5649
5650 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5651
5652 * lisp.h (is_daemon): Declare.
5653 * dispnew.c (init_display): Do not try to initialize the terminal
5654 when running as a daemon.
5655
5656 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
5657
5658 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5659 x_display_pixel_height.
5660
5661 2008-09-22 Martin Rudalics <rudalics@gmx.at>
5662
5663 * undo.c (record_point): Don't call Fundo_boundary for first
5664 change. (Bug#731)
5665
5666 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
5667
5668 * emacs.c (Fdaemonp): Doc fix.
5669
5670 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5671
5672 * emacs.c (main): Place #ifdef in the proper place.
5673
5674 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5675
5676 * emacs.c (standard_args): Add --daemon.
5677 (main): Disconnect from the terminal when --daemon is passed.
5678 (is_daemon): New variable.
5679 (Fdaemonp): New function.
5680 (syms_of_emacs): Defsubr it.
5681
5682 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
5683
5684 * xdisp.c (get_next_display_element): Handle string display
5685 correctly when checking for the end of a box run.
5686
5687 2008-09-20 Glenn Morris <rgm@gnu.org>
5688
5689 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5690 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5691 (Frename_file): Avoid copying to trash if a rename involves
5692 a delete. (Bug#964).
5693
5694 2008-09-20 Eli Zaretskii <eliz@gnu.org>
5695
5696 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5697 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5698 frames as well as termcap frames.
5699 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5700 get_named_tty.
5701
5702 2008-09-19 Eli Zaretskii <eliz@gnu.org>
5703
5704 * process.c (procfs_system_process_attributes): Fix cmdline in
5705 case /proc/PID/cmdline is empty.
5706
5707 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5708 x_display_pixel_height.
5709
5710 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
5711
5712 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5713
5714 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5715 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5716
5717 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5718
5719 * dispextern.h (struct it): Move line_wrap away from the middle of
5720 bitfields. Move voffset in struct iterator_stack_entry after the
5721 bitfields. Move tab_width near after another short.
5722
5723 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5724
5725 * frame.h (struct frame): Move alpha from the middle of bitfields.
5726
5727 * window.h (struct window): Move frozen_window_start_p after the
5728 rest of the bitfields to reduce padding.
5729
5730 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
5731
5732 * xterm.h (x_display_info): Remove `height' and `width' members.
5733
5734 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5735
5736 * w32term.h (w32_display_info): Remove `height', `width',
5737 `height_in', and `width_in' members.
5738
5739 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5740 New functions.
5741 (x_calc_absolute_position): Use them.
5742 (x_term_init): Omit removed `height' and `width' members.
5743
5744 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5745 New functions.
5746 (w32_read_socket, x_calc_absolute_position): Use them.
5747 (w32_initialize_display_info, w32_term_init): Omit removed members
5748 of w32_display_info.
5749
5750 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5751 New functions.
5752 (ns_initialize_display_info): Omit removed members of ns_display_info.
5753
5754 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5755 New functions.
5756 (x_calc_absolute_position): Use them.
5757 (x_term_init): Omit removed `height' and `width' members.
5758
5759 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5760 (compute_tip_xy):
5761 * frame.c (x_fullscreen_adjust):
5762 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5763 x_display_pixel_width.
5764
5765 2008-09-18 Kenichi Handa <handa@m17n.org>
5766
5767 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5768 (composition_compute_stop_pos): Fix handling of static composition.
5769 (Fcomposition_get_gstring): Check FROM and TO at first.
5770
5771 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5772
5773 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
5774 mixup (YAILOM).
5775
5776 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
5777
5778 * indent.c (Fvertical_motion): Use position reported by iterator
5779 instead of PT for determining screen motion (bug#943).
5780
5781 2008-09-17 Romain Francoise <romain@orebokech.com>
5782
5783 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5784
5785 2008-09-17 Kenichi Handa <handa@m17n.org>
5786
5787 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5788
5789 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5790 if necessary.
5791
5792 2008-09-16 Kenichi Handa <handa@m17n.org>
5793
5794 * coding.c (make_conversion_work_buffer): Avoid calling
5795 Fget_buffer_create if it is not necessary.
5796
5797 2008-09-15 Martin Rudalics <rudalics@gmx.at>
5798
5799 * window.c (Fselect_window): Don't update window_select_count and
5800 use_time when norecord is not nil.
5801
5802 2008-09-14 Kenichi Handa <handa@m17n.org>
5803
5804 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5805 specpdl_ptr.
5806
5807 2008-09-12 Kenichi Handa <handa@m17n.org>
5808
5809 * indent.c (scan_for_column): Don't handle automatic composition
5810 if the current buffer is not associated with a window.
5811
5812 * composite.c (composition_reseat_it): If the current buffer is
5813 not associated with a window, ignore the automatic composition.
5814 (find_automatic_composition): Likewise.
5815
5816 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5817
5818 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5819 (Fgpm_mouse_stop): Use it.
5820 * termhooks.h (close_gpm): Declare.
5821 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5822 connection if Gpm_GetEvent fails.
5823
5824 * window.c (set_window_buffer): Always preserve current-buffer.
5825
5826 2008-09-12 Glenn Morris <rgm@gnu.org>
5827
5828 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5829
5830 2008-09-11 Glenn Morris <rgm@gnu.org>
5831
5832 * charset.c (charset-map-path): Doc fix.
5833
5834 2008-09-10 Kenichi Handa <handa@m17n.org>
5835
5836 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5837
5838 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5839 compose a grapheme cluster with the preceding base glyph.
5840
5841 * composite.c (composition_compute_stop_pos): Fix previous change.
5842 Reset cmp_it->id to -1 at first.
5843
5844 2008-09-10 Glenn Morris <rgm@gnu.org>
5845
5846 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5847
5848 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
5849
5850 * keyboard.c (read_key_sequence): Reapply translation maps when
5851 switching keyboards.
5852
5853 2008-09-09 Kenichi Handa <handa@m17n.org>
5854
5855 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5856 characters.
5857
5858 * composite.c (FORWARD_CHAR): Fix calculation
5859 of (POSITION).pos_byte.
5860 (composition_compute_stop_pos): Limit the search of composition to
5861 at most 500 characters ahead. If we reach the limit or find a
5862 newline, set cmp_it->ch to -2 and return 0.
5863 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5864
5865 2008-09-08 Kenichi Handa <handa@m17n.org>
5866
5867 * indent.c (Fvertical_motion): Be sure to set
5868 it_overshoot_expected if it.cmp_it.id is non-negative.
5869
5870 2008-09-07 Andreas Schwab <schwab@suse.de>
5871
5872 * callproc.c (Fcall_process): Don't hold references to string data
5873 across garbage collection. Move initialisation of new_argv down
5874 to avoid compiler bug.
5875
5876 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5877
5878 * process.c (Fsystem_process_attributes): Doc fix.
5879
5880 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
5881
5882 * callproc.c (Fcall_process): Canonicalize current directory name.
5883
5884 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5885 iterator advances to the next line if the current line ends in a
5886 continued tab.
5887
5888 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5889
5890 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5891 member to point to cmp_from.
5892
5893 * xdisp.c: Doc fix for references to gidx data member.
5894
5895 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5896
5897 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5898
5899 2008-09-07 Kenichi Handa <handa@m17n.org>
5900
5901 * composite.c (FORWARD_CHAR): Check STOP after
5902 incrementing (POSITION).pos.
5903
5904 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5905
5906 * process.c (Fsystem_process_attributes): Doc fix.
5907
5908 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
5909
5910 * keyboard.c (Ftop_level): Doc fix.
5911
5912 2008-09-06 Eli Zaretskii <eliz@gnu.org>
5913
5914 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5915 minibuffer, don't let lower part of menu invade the echo area.
5916
5917 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5918 "char *q" to access menu text and advance through it. Revert the
5919 change that displayed ">" instead of ASCII character 0x10.
5920
5921 2008-09-05 Eli Zaretskii <eliz@gnu.org>
5922
5923 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5924 toggle boxes and radio buttons on MS-DOS as well.
5925
5926 2008-09-05 Kenichi Handa <handa@m17n.org>
5927
5928 * composite.c (autocmp_chars): Check lookback count.
5929 (composition_compute_stop_pos): Set cmp_it->lookback.
5930 (composition_reseat_it): Check lookback count.
5931 (struct position_record): New struct.
5932 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5933 (find_automatic_composition): New function.
5934 (composition_adjust_point): Use find_automatic_composition.
5935
5936 * dispextern.h (struct composition_it): New member lookback.
5937
5938 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
5939
5940 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5941 if moving by a single line.
5942
5943 2008-09-02 Andreas Schwab <schwab@suse.de>
5944
5945 * xterm.c (x_delete_display): Fix merge error.
5946
5947 * fileio.c (Fexpand_file_name): Remove unused variables.
5948
5949 2008-09-02 Eli Zaretskii <eliz@gnu.org>
5950
5951 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5952 storage on all platforms, not just on DOS_NT.
5953
5954 2008-09-02 Jason Rumney <jasonr@gnu.org>
5955
5956 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5957 Ensure mouse is not grabbed after menu is finished.
5958
5959 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
5960
5961 * xfaces.c (Finternal_set_alternative_font_family_alist)
5962 (Finternal_set_alternative_font_registry_alist): Properly copy
5963 entire alist structure.
5964
5965 2008-09-01 Kenichi Handa <handa@m17n.org>
5966
5967 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
5968 representative chars of the script is a vector.
5969 (ftfont_list): Handle the case where the representative chars of
5970 the script is a vector.
5971
5972 * character.c (syms_of_character): Docstring of
5973 script-representative-chars fixed.
5974
5975 2008-08-31 Eli Zaretskii <eliz@gnu.org>
5976
5977 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5978 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5979 the menu. Allocate larger buffer for `text', to account for
5980 possible ^C characters.
5981
5982 2008-08-31 Martin Rudalics <rudalics@gmx.at>
5983
5984 * xdisp.c (prepare_menu_bars): Don't call
5985 Vwindow_size_change_functions with arg Qt.
5986
5987 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5988
5989 * font.h (font_range):
5990 * fileio.c (report_file_error):
5991 * composite.c (composition_update_it): Yet another int/Lisp_Object
5992 mixup (YAILOM).
5993
5994 2008-08-30 Glenn Morris <rgm@gnu.org>
5995
5996 * data.c (Fmake_variable_frame_local): Doc fix.
5997
5998 * frame.c (Fmodify_frame_parameters): Doc fix.
5999
6000 2008-08-30 Eli Zaretskii <eliz@gnu.org>
6001
6002 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6003 needed by GetTokenInformation.
6004 (w32_system_process_attributes): Check return values of all system
6005 APIs.
6006
6007 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6008 only when the state changes.
6009 (IT_update_begin, IT_update_end): Add termscript trace.
6010
6011 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6012 clipboard is unavailable. Set dst to NULL if it doesn't point to
6013 malloc'ed data.
6014 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6015 passing random values to xfree.
6016
6017 * dispnew.c (init_display): Set `tty's association in frame's
6018 parameters alist to the name of the terminal device, if that is known.
6019
6020 2008-08-29 Jason Rumney <jasonr@gnu.org>
6021
6022 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6023
6024 2008-08-29 Eli Zaretskii <eliz@gnu.org>
6025
6026 * composite.c (fill_gstring_body): Avoid compiler warnings.
6027
6028 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6029 LGLYPH_SET_CODE to avoid compiler warnings.
6030
6031 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
6032
6033 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6034
6035 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6036 LGLYPH_SET_CODE.
6037
6038 2008-08-29 Kenichi Handa <handa@m17n.org>
6039
6040 * fileio.c (report_file_error): Don't downcase the first character
6041 of errstring if it is still unibyte.
6042
6043 2008-08-29 Kenichi Handa <handa@m17n.org>
6044
6045 These changes are to re-implement the automatic composition so
6046 that it doesn't use text properties.
6047
6048 * Makefile.in (ftfont.o): Depend on composite.h.
6049 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6050
6051 * character.h (Vunicode_category_table): Extern it.
6052
6053 * character.c (Vunicode_category_table): New variable.
6054 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6055
6056 * chartab.c (optimize_sub_char_table): Perform more greedy
6057 optimization.
6058
6059 * composite.h (enum composition_method):
6060 Delete COMPOSITION_WITH_GLYPH_STRING.
6061 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6062 (Vcomposition_function_table): Extern it.
6063 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6064 (composition_gstring_put_cache, composition_gstring_from_id)
6065 (composition_gstring_p, composition_gstring_width)
6066 (composition_compute_stop_pos, composition_reseat_it)
6067 (composition_update_it, composition_adjust_point): Extern them.
6068 (Fcomposition_get_gstring): EXFUN it.
6069
6070 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
6071 (Vcomposition_function_table)
6072 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
6073 (gstring_hash_table, gstring_work, gstring_work_headers):
6074 New variables.
6075 (gstring_lookup_cache, composition_gstring_put_cache)
6076 (composition_gstring_from_id, composition_gstring_p)
6077 (composition_gstring_width, fill_gstring_header)
6078 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6079 (composition_reseat_it, composition_update_it)
6080 (composition_adjust_point, Fcomposition_get_gstring): New functions.
6081 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6082 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6083 Defsubr compostion_get_gstring.
6084
6085 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6086 cmp_id.
6087 (struct glyph_string): Delete the member gidx. New members
6088 cmp_id, cmp_from, and cmp_to.
6089 (enum it_method): Delete GET_FROM_COMPOSITION.
6090 (struct composition_it): New struct.
6091 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6092 Delete c, len, cmp_id, cmp_len in u.comp.
6093
6094 * font.h (enum lgstring_indices): Delete it.
6095 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
6096 (enum lglyph_indices): Likewise.
6097 (font_range): Adjust extern.
6098 (font_fill_lglyph_metrics): Extern it.
6099
6100 * font.c (QCf): New variable.
6101 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6102 (font_prepare_composition): Delete this function.
6103 (font_range): Type and arguments changed.
6104 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6105 (font_fill_lglyph_metrics): New function.
6106 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
6107 (syms_of_font): DEFSYM QCf. Delete defsubr for
6108 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6109 Defsubr Sfont_shape_gstring.
6110
6111 * fontset.h (font_for_char): Extern it.
6112
6113 * fontset.c (font_for_char): New function.
6114
6115 * ftfont.c: Include composite.h.
6116 (ftfont_resolve_generic_family): Add langset "en" to pattern.
6117 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6118
6119 * indent.c: Include composite.h and dispextern.h.
6120 (check_composition): Delete this function.
6121 (scan_for_column): Handle composition by
6122 composition_compute_stop_pos, composition_reseat_it, and
6123 composition_update_it.
6124 (compute_motion): Likewise.
6125 (Fvertical_motion): Fix checking of composition.
6126
6127 * keyboard.c (adjust_point_for_property): Check composition by
6128 composition_adjust_point.
6129
6130 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
6131 struct glyph_string.
6132
6133 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6134 (append_composite_glyph): Adjust for the change of struct it and
6135 struct glyph.
6136 (produce_composite_glyph): Likewise.
6137
6138 * w32term.c (x_draw_composite_glyph_string_foreground):
6139 Adjust for the change of struct glyph_string.
6140 (x_draw_glyph_string): Likewise.
6141
6142 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6143 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6144
6145 * xdisp.c: Include font.h.
6146 (it_props): Delete the entry for Qauto_composed.
6147 (init_iterator): Initialize it->cmp_it.id to -1.
6148 (compute_stop_pos): Call composition_compute_stop_pos.
6149 (face_before_or_after_it_pos): Adjust for the change of struct it.
6150 (handle_auto_composed_prop): Delete it.
6151 (handle_composition_prop): Handle only static composition.
6152 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6153 from xassert. Initialize it->cmp_it.stop_pos.
6154 (push_it): Adjust for the change of struct it.
6155 (pop_it): Likewise.
6156 (get_next_element): Delete next_element_from_composition.
6157 (CHAR_COMPOSED_P): New macro.
6158 (get_next_display_element): For automatic composition, get a face
6159 from the font in the glyph-string.
6160 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
6161 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
6162 (next_element_from_string): Check if the character at the current
6163 position is composed by CHAR_COMPOSED_P.
6164 (next_element_from_buffer): Likewise.
6165 (next_element_from_composition): Adjust for the change of struct it.
6166 Update it->cmp_it.
6167 (dump_glyph): Adjust for the change of struct glyph.
6168 (fill_composite_glyph_string): Adjust for the change of struct
6169 it and struct glyph. Don't handle automatic composition here.
6170 (fill_gstring_glyph_string): New function.
6171 (x_get_glyph_overhangs): Handle automatic composition.
6172 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
6173 (BUILD_GSTRING_GLYPH_STRING): New macro.
6174 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6175 automatic composition.
6176 (append_composite_glyph): Adjust for the change of struct it and
6177 struct glyph.
6178 (x_produce_glyphs): Adjust for the change of struct it.
6179
6180 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6181 the change of struct glyph_string.
6182 (x_draw_glyph_string): Likewise.
6183
6184 2008-08-29 Glenn Morris <rgm@gnu.org>
6185
6186 * buffer.c (word-wrap): Doc fix.
6187 * xdisp.c (truncate-partial-width-windows): Doc fix.
6188 Increase default to 50.
6189
6190 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
6191
6192 * xdisp.c (update_tool_bar_unwind): New function.
6193 (update_tool_bar): Temporarily set selected frame before building
6194 tool-bar items.
6195
6196 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
6197
6198 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6199 snprintf, respectively.
6200 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6201
6202 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
6203
6204 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6205 LDFLAGS to GNUstep CC invocation.
6206
6207 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
6208
6209 * indent.c (Fvertical_motion): Revert last change. Handle the
6210 general case where we are moving forward, and PT spans multiple
6211 screen lines.
6212
6213 * eval.c (find_handler_clause): Temporarily increase
6214 max-lisp-eval-depth while printing the backtrace buffer, to
6215 guarantee that help-mode code can run.
6216
6217 2008-08-27 Eli Zaretskii <eliz@gnu.org>
6218
6219 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6220 colors under -rv.
6221 (IT_set_frame_parameters): Don't swap foreground and background
6222 colors if `(reverse . t)' is present in the frame properties.
6223 (internal_terminal_init): Call init_frame_faces only for the
6224 initial frame.
6225
6226 2008-08-27 Andreas Schwab <schwab@suse.de>
6227
6228 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6229
6230 2008-08-27 Andreas Schwab <schwab@suse.de>
6231
6232 * search.c (search_buffer): Set char_base to zero only at the end.
6233
6234 2008-08-27 Kenichi Handa <handa@m17n.org>
6235
6236 * fileio.c (report_file_error): Fix handling of multibyte error string.
6237
6238 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6239
6240 * xterm.c (x_term_init): Temporarily hide the partially
6241 initialized terminal while calling vendor-specific-keysyms.
6242
6243 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6244
6245 * msdos.c (internal_terminal_init): Most initializations done only
6246 once, especially initial_screen_colors[] and termscript open.
6247
6248 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6249
6250 * eval.c (Fcondition_case): Doc fix.
6251
6252 * widgetprv.h (EmacsFramePart): Change font member to the new font
6253 struct.
6254
6255 * widget.c: Include character.h and font.h for XSETFONT.
6256 (setup_frame_gcs): Compute X font id from font struct, just once.
6257
6258 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6259
6260 * term.c (get_named_tty): Fix last change.
6261
6262 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6263
6264 * indent.c (Fvertical_motion): If moving forward starting from a
6265 multi-line string, move the iterator to the last line of that string.
6266
6267 2008-08-25 Eli Zaretskii <eliz@gnu.org>
6268
6269 * frame.c (do_switch_frame): Mark previously displayed frame as
6270 obscured for FRAME_MSDOS_P frames as well.
6271
6272 2008-08-24 Eli Zaretskii <eliz@gnu.org>
6273
6274 * frame.c (make_terminal_frame): Initialize f->terminal,
6275 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6276 Set the top frame to newly created frame.
6277 (Fmake_terminal_frame): Reuse the_only_display_info.
6278
6279 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6280 estimating available memory.
6281
6282 2008-08-23 David Reitter <david.reitter@gmail.com>
6283
6284 * nsterm.m (ns_draw_window_cursor): Don't call
6285 NSDisableScreenUpdates and NSEnableScreenUpdates on
6286 non-NS_IMPL_COCOA systems.
6287
6288 2008-08-23 Andreas Schwab <schwab@suse.de>
6289
6290 * process.c (procfs_system_process_attributes): Fix use of
6291 uninitialized variables.
6292
6293 2008-08-23 Eli Zaretskii <eliz@gnu.org>
6294
6295 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6296
6297 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6298 calling tty-set-up-initial-frame-faces.
6299
6300 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6301 Allow MSDOS frames along with X frames.
6302
6303 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6304 addition to output_termcap.
6305
6306 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6307
6308 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6309 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6310 highlight.
6311
6312 * process.c [!subprocesses]: Define QCname.
6313 (syms_of_process): Intern and staticpro it.
6314
6315 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6316 Adjust for changes in encoding/decoding routines.
6317 Use encode_coding_object and decode_coding_object instead of
6318 encode_coding and decode_coding.
6319
6320 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
6321
6322 * dosfns.c: Include frame.h before termhooks.h.
6323 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6324 variable termscript.
6325
6326 * s/msdos.h (USER_FULL_NAME): Define.
6327 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6328
6329 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6330 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6331 pw->pw_gecos.
6332
6333 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6334 SELECTED_FRAME as additional (1st) argument.
6335 (tty_read_avail_input): Handle output_msdos_raw in
6336 addition to output_termcap.
6337
6338 * msdos.c: Include frame.h before termhooks.h.
6339 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6340 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6341 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6342 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6343 (IT_set_terminal_modes, IT_reset_terminal_modes)
6344 (IT_set_frame_parameters): Use tty->termscript instead of a global
6345 variable termscript.
6346 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6347 global variable terminal_coding. Don't refer to
6348 Vnonascii_translation_table.
6349 (internal_terminal_init): Set Vwindow_system in current_kboard.
6350 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6351 Announce date and time of session start, if termscript is open.
6352 Don't zero out the_only_display_info (it is done in
6353 term.c:init_tty). Open termscript only of not already open.
6354 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
6355 here instead of dos_ttraw. Don't initialize display if this is an
6356 initial tty. Don't set FRAME_FONT.
6357 (Vwindow_system_version): Bump to 23.
6358 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6359 is available, set up mouse_position_hook.
6360 (dos_ttraw, IT_set_terminal_modes): If called with initial
6361 terminal, do nothing.
6362 (IT_set_frame_parameters): Handle the Qtty_type frame
6363 parameter by calling internal_terminal_init.
6364 (dos_set_window_size, show_mouse_face)
6365 (clear_mouse_face, IT_note_mode_line_highlight)
6366 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6367 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6368 (initialize_msdos_display): New function.
6369 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6370 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6371 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6372 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
6373 Accept additional argument: a pointer to a frame. Update all callers.
6374 (request_sigio, unrequest_sigio): Don't define, now defined on
6375 sysdep.c.
6376 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6377
6378 * term.c [MSDOS]: Include msdos.h.
6379 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6380 conditional to DOS_NT. Allow only one call to this function in a
6381 session. Don't allocate a new struct tty_display_info; instead,
6382 reuse the_only_display_info. Call get_tty_size to get screen
6383 dimensions. Call init_baud_rate to set bad_rate.
6384 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6385 (Fsuspend_tty) [MSDOS]: Don't close input and output.
6386 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
6387 (get_tty_terminal, get_named_tty, Ftty_type)
6388 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6389 output_termcap.
6390 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6391 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
6392 only when subprocesses are supported.
6393
6394 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6395 f->output_data.x.
6396 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6397 terminal devices.
6398
6399 * msdos.h: Remove definition of struct x_display_info and struct
6400 x_output.
6401 (FRAME_FONT): Use output_data.tty.
6402 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
6403 (struct x_display_info): Rename from display_info. Update all users in
6404 msdos.c.
6405 (struct x_output): Remove background_pixel and foreground_pixel.
6406 (the_only_display_info): Rename from the_only_x_display.
6407 (dos_ttraw): Update prototype.
6408
6409 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6410 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6411
6412 2008-08-23 Jason Rumney <jasonr@gnu.org>
6413
6414 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6415 (fn_TIFFSetDirectory): New library function used.
6416 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6417 (tiff_load): Use :index to select among multiple images. Set count
6418 property when multiple images exist.
6419 (gif_format): Use :index, not :image.
6420
6421 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
6422
6423 * xdisp.c (try_scrolling): Check INT_MAX instead of
6424 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6425 to obtain INT_MAX.
6426
6427 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6428
6429 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6430
6431 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6432
6433 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6434 GNUstep library location.
6435
6436 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
6437
6438 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6439 before using it.
6440
6441 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6442
6443 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6444
6445 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6446 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6447 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6448 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6449 (EmacsApp-cursor_blink_handler): Remove declaration.
6450 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6451 match 01 Feb 2008 changes in xterm.c.
6452 (ns_read_socket): Add cast to avoid warning.
6453 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6454 GNUstep.
6455
6456 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
6457
6458 * xselect.c (x_get_foreign_selection): Return nil if desired
6459 selection could not be obtained, instead of signalling an error.
6460
6461 2008-08-20 David Reitter <david.reitter@gmail.com>
6462
6463 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6464 * nsterm.m: Remove ns-specific code for cursor blinking.
6465 (ns_draw_window_cursor): Clear cursor properly rather than
6466 redrawing the area. Respect width of bar cursors.
6467 These changes enable the use of generic blink-cursor-mode and
6468 generic cursor types in NS and support smooth cursor movements (do
6469 not blink off after command).
6470 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6471 Nextstep, too.
6472
6473 2008-08-19 Kenichi Handa <handa@m17n.org>
6474
6475 * font.c (Vfont_log_deferred): New variable.
6476 (font_add_log): Check Vfont_log_deferred.
6477 (font_deferred_log): New function.
6478
6479 * font.h (font_deferred_log): Extern it.
6480
6481 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6482 for sorting.
6483 (face_for_char): Use deferred log.
6484
6485 2008-08-18 Kenichi Handa <handa@m17n.org>
6486
6487 * fontset.c (face_for_char): Add font log.
6488
6489 * font.c (font_add_log): Add the font properties :script, :lang,
6490 and :otf in the log.
6491
6492 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
6493
6494 * xdisp.c: Remove dead code.
6495 (handle_invisible_prop, next_overlay_string): Defer call to
6496 setup_for_ellipsis.
6497 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6498
6499 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
6500
6501 * xfaces.c (lookup_derived_face): Properly handle possible zero
6502 return value of get_lface_attributes.
6503 (merge_faces): Don't tell lookup_derived_face to signal an error
6504 if face is not found.
6505
6506 * dired.c (Fdirectory_files): Doc fix.
6507
6508 * process.c (make_process): Initialize kill_without_query struct
6509 member.
6510
6511 2008-08-15 Eli Zaretskii <eliz@gnu.org>
6512
6513 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6514 Alternative calculation of totphys for Visual Studio 6.
6515
6516 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6517
6518 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6519 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6520 All users changed.
6521 (stat): Only root directory passed to GetDriveType. Allow RAM
6522 disk as well as local fixed disk when w32-get-true-file-attributes
6523 is set to `local'.
6524 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6525 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6526 (w32_cached_id, w32_add_to_cache): New functions.
6527 (get_name_and_id): Look account names in the cache before calling
6528 lookup_account_sid.
6529 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6530 New initialization flags.
6531 (globals_of_w32): Initialize them to zero.
6532 (w32_system_process_attributes): Use w32_cached_id and
6533 w32_add_to_cache.
6534
6535 2008-08-14 Lawrence Mitchell <wence@gmx.li>
6536
6537 * lread.c (Fread_char, Fread_char_exclusive): If no character
6538 event is read before timeout is reached, return nil, rather than
6539 converting to a number.
6540
6541 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
6542
6543 * fns.c (use_dialog_box): Doc fix.
6544
6545 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6546 on OS X.
6547
6548 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
6549
6550 * frame.c (Qns_parse_geometry): New var.
6551 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6552
6553 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
6554
6555 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6556 space character in calculating tabs.
6557
6558 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6559
6560 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6561
6562 2008-08-10 Glenn Morris <rgm@gnu.org>
6563
6564 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6565 silence gcc "limited range of data type" warnings in some
6566 make_fixnum_or_float calls.
6567
6568 2008-08-09 Eli Zaretskii <eliz@gnu.org>
6569
6570 * w32.c (w32_system_process_attributes): If the process does not
6571 exist, return nil.
6572
6573 * w32.c: Include thelp32.h, psapi.h and coding.h.
6574 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6575 declarations.
6576 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6577 (Process32Next_Proc): New typedefs.
6578 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6579 (g_b_init_process32_next, g_b_init_open_thread_token)
6580 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6581 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6582 (g_b_init_get_process_working_set_size)
6583 (g_b_init_global_memory_status_ex): New static variables.
6584 (globals_of_w32): Initialize them.
6585 (create_toolhelp32_snapshot, process32_first, process32_next)
6586 (open_thread_token, impersonate_self, revert_to_self)
6587 (get_process_memory_info, get_process_working_set_size)
6588 (global_memory_status, global_memory_status_ex): New wrapper
6589 functions.
6590 (w32_list_system_processes, w32_system_process_attributes)
6591 (enable_privilege, restore_privilege, ltime, process_times):
6592 New functions.
6593 (convert_time_raw): New function.
6594 (convert_time): Remove conversion of FILETIME into time in 100
6595 nsec units, call convert_time_raw instead.
6596
6597 * process.h (w32_list_system_processes, w32_system_process_attributes):
6598 Add prototypes.
6599 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6600 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6601 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6602 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6603
6604 * process.c (Fsystem_process_attributes): Doc fix.
6605
6606 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
6607
6608 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6609 a continued multi-char glyph; if so, advance to the actual glyph.
6610
6611 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6612
6613 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6614
6615 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6616 (.m.o): Use it.
6617 * config.in: Regenerate.
6618
6619 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
6620
6621 * xdisp.c (redisplay_window): Revert last change.
6622 (try_window): Check bottom scroll margin too.
6623
6624 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6625
6626 * config.in: Regenerate.
6627
6628 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6629 -list-load-path-shadows'.
6630 (nsgui.h): Reduce number of things depending on it.
6631
6632 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
6633
6634 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6635 instead of window-end which does the wrong thing at eob.
6636 (try_cursor_movement): Minor optimization.
6637 (redisplay_window): If scroll margin is defined, don't assume
6638 window doesn't need scrolling.
6639
6640 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6641
6642 * config.in: Regenerate.
6643
6644 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6645 (mostlyclean): Don't delete *.d under NS.
6646
6647 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6648
6649 2008-08-06 Kenichi Handa <handa@m17n.org>
6650
6651 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6652
6653 2008-08-06 Andreas Schwab <schwab@suse.de>
6654
6655 * config.in: Regenerate.
6656
6657 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
6658
6659 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6660 forcing a window start.
6661
6662 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6663 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6664
6665 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6666
6667 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6668 argument.
6669
6670 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
6671
6672 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6673 <scroll-down-aggressively, before-change-functions>:
6674 <after-change-functions>: Reflow docstrings.
6675
6676 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6677 Ken Raeburn <raeburn@gnu.org>
6678
6679 Dock menu customization, based on a patch by Ken Raeburn, plus some
6680 other fixes.
6681 * nsmenu.m (dockMenu): New variable.
6682 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6683
6684 * nsterm.h (dockMenu): Declare.
6685
6686 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6687 (ns_term_init): Initialize dockMenu.
6688 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6689 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6690 left.
6691
6692 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6693
6694 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6695
6696 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6697
6698 * config.in: Regenerate.
6699
6700 2008-08-04 Seiji Zenitani <zenitani@mac.com>
6701
6702 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6703
6704 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6705
6706 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6707
6708 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6709
6710 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6711
6712 * keyboard.h: Comment an #endif.
6713
6714 * lisp.h (have_menus_p): Adjust comment.
6715
6716 * menu.c (find_and_return_menu_selection): Fix comparison with
6717 client_data.
6718
6719 * nsmenu.m (popup_activated_flag): New variable.
6720 (popup_activated): New function.
6721 (menu-or-popup-active-p): New exported lisp definition.
6722 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6723 when popup done.
6724 (ns_popup_dialog): Set popup_activated_flag.
6725
6726 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6727 version for GNUstep (handled by conditional typedef in nsterm.m).
6728 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6729 in rgb.txt).
6730
6731 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6732
6733 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6734
6735 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6736
6737 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6738 shortcircuit if popup_activated like GTK and X toolkit.
6739
6740 * m/inter386.h: Change DARWIN to DARWIN_OS.
6741
6742 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6743 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6744 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6745 comment on NO_SOCK_SIGIO.
6746
6747 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
6748
6749 * nsterm.m (windowDidResize): Remove stopModal call.
6750
6751 2008-08-03 Andreas Schwab <schwab@suse.de>
6752
6753 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6754 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6755
6756 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
6757
6758 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6759 Don't use uninitialized pointer variable when using getrlimit.
6760
6761 2008-08-02 Jason Rumney <jasonr@gnu.org>
6762
6763 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6764
6765 2008-08-02 Eli Zaretskii <eliz@gnu.org>
6766
6767 * alloc.c (NSTATICS): Bump to 0x640.
6768
6769 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6770
6771 * lisp.h: Add prototype for directory_files_internal.
6772
6773 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6774 New functions.
6775 (syms_of_process): Defsubr them. Add initializations for various
6776 Q* symbols used in procfs_system_process_attributes.
6777 (procfs_list_system_processes, procfs_system_process_attributes)
6778 [HAVE_PROCFS]: New functions.
6779 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6780 (procfs_get_total_memory): New functions.
6781
6782 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6783
6784 * xfaces.c (Fx_load_color_file): Fix previous change;
6785 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6786
6787 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
6788
6789 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6790
6791 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6792
6793 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6794
6795 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
6796
6797 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6798
6799 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6800 define NSApplicationDelegateReplySuccess.
6801 (EmacsView -converstationIdentifier): Use long instead of
6802 NSInteger for GNUstep, since it doesn't have NSInteger.
6803
6804 * xmenu.c: Revert last change.
6805
6806 * keyboard.h: Fix last change.
6807
6808 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6809
6810 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6811 on Windows.
6812
6813 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6814
6815 Warning clearing and clean-up in NS port.
6816 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6817 Add prototypes.
6818 * nsgui.h (FACE_DEFAULT): Remove, unused.
6819 (XGCValues): Change colors to unsigned long.
6820 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6821 nsterm.m.
6822 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6823 (ns_list_fonts): Remove, unused.
6824 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6825 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6826 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6827 (nsfont_draw): Compare face colors to 0, not nil.
6828 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6829 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6830 (-addSubmenuWithTitle:): Use NSMenuItem class.
6831 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6832 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6833 (ns_clip_to_row): Make gc arg a BOOL.
6834 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6835 ns_clip_to_row() call.
6836 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6837 used). Cast FRAME_FONT assignments.
6838 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6839 (ns_string_to_lispmod): Change arg to const char.
6840 (ns_term_init): Use NSMenuItem class.
6841 (EmacsApp -openFile:): Move to different section of file.
6842 (EmacsApp -application:openFiles:): Don't return a value, call
6843 -replyToOpenOrPrint:.
6844 (EmacsView -keyDown:): Fix up cast.
6845 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6846 (EmacsView -menuDown:): Cast tag in call to
6847 find_and_call_menu_selection().
6848 (ns_list_fonts): Remove, unused.
6849 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6850 (ns_fontname_to_xlfd): Make static.
6851 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6852 Remove prototypes (now in keyboard.h).
6853 (next_menubar_widget_id): Remove, unused.
6854 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6855 Remove prototypes (now in keyboard.h).
6856 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6857
6858 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6859
6860 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6861 (floatfns.o): Depend on syssignal.h.
6862 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6863
6864 * systty.h: Fix previous change that removed BSD_TERMIOS.
6865 Add comments to #ifdefs.
6866
6867 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6868
6869 * w32fns.c (w32-load-color-file): Remove.
6870 (x-open-connection): Use renamed Fx_load_color_file.
6871 * xfaces.c (x-load-color-file): Add.
6872 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6873 Emacs.clr.
6874 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6875
6876 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
6877
6878 * dbusbind.c (Fdbus_call_method_asynchronously)
6879 (Fdbus_method_error_internal): New defuns.
6880 (xd_read_message): Handle also reply messages.
6881 (Vdbus_registered_functions_table): Extend docstring.
6882
6883 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
6884
6885 * keyboard.c (gobble_input): Fix previous change.
6886
6887 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6888
6889 * bitmaps/README:
6890 * xfns.c:
6891 * termcap.c:
6892 * term.c:
6893 * syswait.h:
6894 * systty.h:
6895 * systime.h:
6896 * syssignal.h:
6897 * sysdep.c:
6898 * process.h:
6899 * process.c:
6900 * print.c:
6901 * ndir.h:
6902 * lread.c:
6903 * keyboard.c:
6904 * getpagesize.h:
6905 * floatfns.c:
6906 * fileio.c:
6907 * emacs.c:
6908 * doc.c:
6909 * dispnew.c:
6910 * dired.c:
6911 * data.c:
6912 * callproc.c:
6913 * buffer.c:
6914 * README:
6915 * Makefile.in:
6916 * s/template.h:
6917 * s/msdos.h:
6918 * m/vax.h: Remove VMS support.
6919 * s/vms.h:
6920 * vlimit.h:
6921 * uaf.h:
6922 * temacs.opt:
6923 * param.h:
6924 * ioctl.h: Remove file.
6925
6926 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6927
6928 * s/ms-w32.h (MULTI_KBOARD): Remove.
6929 * xterm.c:
6930 * xselect.c:
6931 * xfns.c:
6932 * window.c:
6933 * w32term.c:
6934 * w32fns.c:
6935 * terminal.c:
6936 * termhooks.h:
6937 * term.c:
6938 * sysdep.c:
6939 * keyboard.h:
6940 * keyboard.c:
6941 * frame.h:
6942 * frame.c:
6943 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6944 * config.in: Regenerate.
6945
6946 2008-07-30 Jason Rumney <jasonr@gnu.org>
6947
6948 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6949
6950 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6951 (w32font_open_internal): Get unicode version of textmetrics.
6952 Don't enable or disable glyph indices here.
6953 (w32font_open): Disable use of glyph indices.
6954
6955 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6956
6957 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
6958
6959 * minibuf.c (Vread_buffer_function): Doc fix.
6960
6961 2008-07-30 John Paul Wallington <jpw@pobox.com>
6962
6963 * minibuf.c (read_buffer_completion_ignore_case): New var.
6964 (Fread_buffer): Use it.
6965
6966 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6967
6968 * systty.h (sensemode): Remove empty #if. Remove reference to
6969 BSD_TERMIOS, unused.
6970
6971 * sysdep.c: Remove reference to DGUX.
6972 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6973
6974 * config.in: Regenerate.
6975
6976 2008-07-30 Jason Rumney <jasonr@gnu.org>
6977
6978 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6979
6980 2008-07-29 Jason Rumney <jasonr@gnu.org>
6981
6982 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6983 is populated.
6984 (uniscribe_encode_char): Always use uniscribe.
6985 Avoid using context if cache is populated.
6986
6987 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6988
6989 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6990 open menu.
6991
6992 * gtkutil.c (menu_nav_ended): Remove.
6993 (create_menus): Remove signal connect for menu_nav_ended.
6994
6995 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
6996
6997 * xdisp.c (redisplay_window): Check return value of
6998 compute_window_start_on_continuation_line before forcing a window
6999 start.
7000
7001 2008-07-28 Jason Rumney <jasonr@gnu.org>
7002
7003 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7004
7005 * w32term.c (w32_enable_unicode_output, cleartype_active):
7006 Remove obsolete display options.
7007 (x_draw_glyph_string_background): Don't use old cleartype_active
7008 workaround.
7009 (w32_initialize): Remove cleartype_active initialization.
7010 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7011
7012 2008-07-28 Andreas Schwab <schwab@suse.de>
7013
7014 * lisp.h (init_weak_hash_tables, syms_of_font)
7015 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7016 (remove_hash_entry): Don't declare.
7017 * eval.c (maybe_call_debugger): Make static and move before use.
7018 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7019 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7020 * xterm.h (x_set_frame_alpha): Declare.
7021
7022 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7023
7024 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7025 (create_menus): Connect selection-done to menu_nav_ended.
7026
7027 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7028
7029 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7030 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7031 parameter with read of 'alpha' one.
7032 (Qns_frame_parameter): Remove.
7033 * nsselect.m (selection-coding-system)
7034 (next-selection-coding-system, Vselection_coding_system)
7035 (Vnext_selection_coding_system): Drop.
7036
7037 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7038
7039 * nsfns.m (do-applescript, do_applescript): Rename to
7040 ns-do-applescript, ns_do_applescript, and move within file.
7041
7042 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7043
7044 Remove support for Mac Carbon.
7045 * mactoolbox.c:
7046 * macterm.h:
7047 * macterm.c:
7048 * macselect.c:
7049 * macmenu.c:
7050 * macgui.h:
7051 * macfns.c:
7052 * mac.c: Remove file.
7053 * s/darwin.h:
7054 * m/intel386.h:
7055 * xfaces.c:
7056 * xdisp.c:
7057 * window.c:
7058 * tparam.c:
7059 * termhooks.h:
7060 * termcap.c:
7061 * term.c:
7062 * syssignal.h:
7063 * sysselect.h:
7064 * sysdep.c:
7065 * process.c:
7066 * lread.c:
7067 * lisp.h:
7068 * keyboard.c:
7069 * image.c:
7070 * fringe.c:
7071 * frame.h:
7072 * frame.c:
7073 * fontset.c:
7074 * font.h:
7075 * font.c:
7076 * fns.c:
7077 * fileio.c:
7078 * emacs.c:
7079 * dispnew.c:
7080 * dispextern.h:
7081 * config.in:
7082 * atimer.c:
7083 * Makefile.in: Remove code for Carbon.
7084
7085 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7086
7087 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7088
7089 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7090
7091 * macterm.h (kCGBitmapByteOrder32Host): New define for
7092 non-universal SDKs.
7093
7094 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7095 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7096
7097 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7098 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7099
7100 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7101
7102 * w32inevt.c: Include dispextern.h.
7103
7104 2008-07-26 Andreas Schwab <schwab@suse.de>
7105
7106 * print.c (print_object): Fix off-by-one in last change.
7107
7108 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
7109
7110 * term.c (syms_of_term): Don't initialize default_orig_pair,
7111 default_set_foreground and default_set_background on Windows.
7112
7113 2008-07-25 Jason Rumney <jasonr@gnu.org>
7114
7115 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7116 ScriptItemize. Clean up return value checking. Remove unused
7117 variables.
7118 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7119 shaping engine.
7120
7121 * w32font.c (w32font_has_char): Handle the case where we can't
7122 determine the script for a character.
7123
7124 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7125
7126 * term.c (syms_of_term): Initialize default_orig_pair,
7127 default_set_foreground, and default_set_background.
7128
7129 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7130 clash (bug#86).
7131 (getloadavg): Callers changed.
7132
7133 * image.c (svg_load_image): Fix last change.
7134 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7135 image size is valid. Use g_object_unref instead of deprecated
7136 rsvg_handle_free to free rsvg handle.
7137 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7138
7139 2008-07-25 Jason Rumney <jasonr@gnu.org>
7140
7141 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7142 surrogates before looking up glyph index.
7143 (w32font_text_extents): Encode as surrogates if falling back to
7144 functions that need UTF-16 wide chars.
7145
7146 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7147 BMP as surrogates before looking up glyph index.
7148
7149 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7150
7151 * image.c (svg_load_image): Check for failure in return value of
7152 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7153
7154 2008-07-25 Jason Rumney <jasonr@gnu.org>
7155
7156 * w32font.c (Fx_select_font): Reverse sense of second arg.
7157
7158 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7159
7160 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7161 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7162
7163 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7164 (PURESIZE): Use it.
7165
7166 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7167
7168 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7169 * m/alpha.h (TEXT_END):
7170 * m/ibmrs6000.h (TEXT_END):
7171 * m/macppc.h (TEXT_END):
7172 * s/darwin.h (TEXT_END):
7173 * s/msdos.h (TEXT_END): Remove, unused.
7174 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7175 * s/cygwin.h: Remove comment.
7176
7177 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7178 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7179 * m/intel386.h (DOT_GLOBAL_START):
7180 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7181 (USG): Remove, file not used on USG platforms.
7182
7183 * Makefile.in (HAVE_X11): Remove empty #else.
7184
7185 2008-07-24 Andreas Schwab <schwab@suse.de>
7186
7187 * fileio.c (Finsert_file_contents): Properly adjust undo list
7188 after format conversion.
7189
7190 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7191
7192 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7193 (menu_nav_ended): Remove.
7194 (create_menus): Remove signal connect for menu_nav_ended.
7195 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7196 create_menus.
7197 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7198
7199 2008-07-23 Jason Rumney <jasonr@gnu.org>
7200
7201 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7202 with opened font.
7203 (w32font_open): Set font type to gdi.
7204
7205 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7206
7207 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7208
7209 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7210 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7211 defines it.
7212 * unexec.c (ADDR_CORRECT): Define unconditionally.
7213
7214 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7215
7216 * unexec.c: Remove code depending on !COFF and USG, the file is
7217 not used for such systems.
7218
7219 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7220 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7221 (LD_SWITCH_SYSTEM_1): Remove, update users.
7222
7223 * s/darwin.h (DATA_END):
7224 * m/intel386.h (DATA_END):
7225 * m/ibmrs6000.h (DATA_END):
7226 * m/alpha.h (DATA_END): Remove, unused.
7227
7228 * config.in: Regenerate.
7229 * s/ms-w32.h (subprocesses): Define unconditionally.
7230 * s/template.h (subprocesses): Update comment.
7231 * s/vms.h (subprocesses):
7232 * s/usg5-4.h (subprocesses):
7233 * s/hpux10-20.h (subprocesses):
7234 * s/gnu-linux.h (subprocesses):
7235 * s/cygwin.h (subprocesses):
7236 * s/bsd-common.h (subprocesses):
7237 * s/aix4-2.h (subprocesses):
7238 * s/darwin.h (subprocesses): Do not define, defined by default now.
7239
7240 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7241 Remove all references.
7242 (temacs): Add GNUstep specific ld flags.
7243
7244 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7245 similarly to what X does.
7246
7247 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7248
7249 * nsfns.m (x-list-fonts): Remove.
7250 (syms_of_nsfns): Drop the x-list-fonts declaration.
7251 * nsterm.m: Get rid of remaining "//" comments.
7252
7253 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
7254
7255 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7256
7257 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7258 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7259 (Fns_own_selection_internal, Fx_disown_selection_internal)
7260 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7261
7262 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7263 ... */' style of docstrings. Doc fixes.
7264
7265 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7266
7267 * terminfo.c (UP, BC, PC): Undo previous change.
7268
7269 * nsfns.m: Rename ns prefixed functions/variables to the
7270 corresponding x versions. Update references.
7271
7272 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7273
7274 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7275
7276 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7277
7278 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7279 Remove forwarding functions.
7280 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7281 non-static.
7282 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7283 non-static.
7284 (ns_frame_parm_handlers): Use the new names.
7285 (syms_of_nsfns): Move to the end of file.
7286
7287 * nsterm.m (syms_of_nsterm): Move to the end of file.
7288
7289 * dispnew.c (init_display): Remove code for X10.
7290
7291 2008-07-22 Jason Rumney <jasonr@gnu.org>
7292
7293 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7294 bare drive.
7295
7296 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7297
7298 * nsterm.m (syms_of_nsterm): Remove debugging println.
7299
7300 2008-07-22 David Reitter <david.reitter@gmail.com>
7301
7302 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7303 Carbon implementation of the same functionality: execute arbitrary
7304 AppleScript code.
7305
7306 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7307
7308 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7309 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7310 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7311 (Fx_display_mm_height, Fx_display_mm_width)
7312 (Fx_display_backing_store, Fx_display_visual_class)
7313 (Fx_display_save_under, Fx_open_connection)
7314 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7315 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7316 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7317 (Fx_display_pixel_width, Fx_display_pixel_height)
7318 (Fx_display_usable_bounds, Fx_display_planes)
7319 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7320 ... */' style of docstrings.
7321
7322 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7323
7324 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7325 on this platform.
7326 (mips):
7327 * m/iris4d.h (mips): Do not define.
7328 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7329
7330 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7331
7332 * image.c:
7333 * nsfns.m:
7334 * nsselect.m:
7335 * nsterm.h:
7336 * nsterm.m: Rename ns prefixed functions/variables to the
7337 corresponding x versions. Update references.
7338
7339 * m/ibms390x.h (NO_REMAP): Do not undefine.
7340
7341 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7342
7343 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
7344
7345 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7346 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7347 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7348 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7349 (Fns_display_mm_height, Fns_display_mm_width)
7350 (Fns_display_backing_store, Fns_display_visual_class)
7351 (Fns_display_save_under, Fns_open_connection)
7352 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7353 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7354 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7355 (Fns_display_pixel_width, Fns_display_pixel_height)
7356 (Fns_display_usable_bounds, Fx_display_planes)
7357 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7358
7359 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7360
7361 * print.c (print_object): Check print_depth before searching for
7362 circularities.
7363
7364 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
7365
7366 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7367 only sprintf.
7368
7369 2008-07-21 Kenichi Handa <handa@m17n.org>
7370
7371 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7372
7373 2008-07-20 Andreas Schwab <schwab@suse.de>
7374
7375 * syntax.c (find_start_pos, find_start_value)
7376 (find_start_value_byte, find_start_begv, find_defun_start)
7377 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7378
7379 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7380
7381 * s/sol2-3.h: Insert contents of s/sol2.h.
7382 (LD_SWITCH_SYSTEM): Remove redundant definition.
7383 * s/sol2.h: Remove, unused.
7384
7385 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7386
7387 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7388
7389 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7390
7391 * Makefile.in (ns_appdir): Fix typo in find command.
7392
7393 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7394
7395 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7396
7397 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7398 added not supported anymore.
7399
7400 * s/usg5-4-2.h (LIBS_SYSTEM):
7401 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7402
7403 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7404 * s/lynxos.h (GETPGRP_NO_ARG):
7405 * s/hpux10-20.h (NO_SIOCTL_H):
7406 * s/gnu.h (GETPGRP_NO_ARG):
7407 * s/gnu-linux.h (NO_SIOCTL_H):
7408 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7409 * s/cygwin.h (GETPGRP_NO_ARG):
7410 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7411 (C_DEBUG_SWITCH): Remove duplicate definition.
7412
7413 * m/ibms390.h: Remove boilerplate comments.
7414
7415 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7416
7417 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7418 (wait_reading_process_output): Remove code for SunOS, platform not
7419 supported anymore. Use SOLARIS2 instead of sun.
7420
7421 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7422
7423 * font.c (font_open_by_name): Under NS, default lface height to zero.
7424 (font_open_for_lface): Under NS, set size based on frame fontsize.
7425 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7426 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7427
7428 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7429
7430 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7431 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7432 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7433 YES/NO.
7434 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7435 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7436 * Makefile.in (clean): Clear out build destination dir.
7437
7438 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7439
7440 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7441 xterm, xselect.
7442 * lisp.h: Remove declaration of hash_remove.
7443 * nsgui.h: Remove redefinitions of hash_remove.
7444 * fns.c (hash_remove): Rename to hash_remove_from_table.
7445
7446 2008-07-19 Seiji Zenitani <zenitani@mac.com>
7447
7448 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7449 strdup() the family UTF8String before modifying it.
7450
7451 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7452
7453 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7454 NS_FACE_BACKGROUND with 0 instead of nil.
7455 * nsfont.m (nsfont_draw): Same.
7456
7457 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
7458
7459 * nsfns.m (ns_set_background_color): Fix crash.
7460
7461 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
7462
7463 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7464
7465 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7466
7467 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7468
7469 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7470
7471 * gtkutil.c: Include <config.h> instead of "config.h".
7472
7473 * lisp.h (Foverlay_buffer): Add EXFUN.
7474
7475 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7476 child process to complete child_setup. Undo 2005-09-21 change.
7477
7478 * s/darwin.h: Mention setsid after vfork.
7479
7480 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7481
7482 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7483 Depend on macgui.h.
7484
7485 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7486 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7487
7488 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7489 and f19.
7490 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7491
7492 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7493 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7494 Remove enumerators.
7495
7496 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7497 Check if FACE_FROM_ID returns NULL.
7498
7499 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7500
7501 * w32inevt.c (change_frame_size): Remove extern declaration.
7502 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7503 change_frame_size.
7504
7505 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7506
7507 * getloadavg.c: Revert last change (2008-07-15).
7508
7509 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7510
7511 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
7512 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
7513 from configure.
7514
7515 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7516
7517 * s/sol2.h:
7518 * s/sol2-4.h: Reorganize conditionals.
7519
7520 * ecrt0.c: Remove code depending on m68000, not used anymore.
7521
7522 * fns.c (hash_remove): Make static.
7523 * lisp.h (hash_remove): Don't prototype.
7524
7525 * m/ibmrs6000.h:
7526 * m/ibms390x.h:
7527 * m/macppc.h: Remove boilerplate comments.
7528
7529 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7530 Solaris, which does not need them.
7531
7532 * m/vax.h: Remove comments about unsupported systems.
7533
7534 * s/darwin.h: Reorganize ifdefs.
7535
7536 2008-07-17 Andreas Schwab <schwab@suse.de>
7537
7538 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7539
7540 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7541
7542 Use SDATA. Follow coding convention of placing operators at
7543 beginning of next line rather than end of previous line, and placing
7544 spaces around infix operators.
7545
7546 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7547 in case it was defined already.
7548 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7549 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7550 ns_default.
7551 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7552 Lisp_Objects.
7553 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7554 (ns_defined_color, ns_color_to_lisp): Declare.
7555 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7556 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7557 it's accepted even with USE_LISP_UNION_TYPE.
7558 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7559 (update_frame_tool_bar): Remove apparently obsolete tests for
7560 non-integerness of f->tool_bar_lines.
7561 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7562 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7563 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7564 (nsfont_open): Don't confuse NULL for Qnil.
7565 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7566 * menu.h (find_and_call_menu_selection):
7567 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7568 (find_and_return_menu_selection): Always return something.
7569 * frame.h: Include dispextern.h for Display_Info.
7570 (display_x_get_resource): Declare.
7571
7572 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7573
7574 * syntax.c: Remove stdio.h include accidentally introduced in
7575 Emacs.app commit.
7576 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7577 NS_IMPL_COCOA.
7578 * keyboard.c (handle_async_input, input_available_signal): Remove
7579 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7580
7581 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7582
7583 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7584 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7585 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7586 Use SDATA.
7587
7588 * keymap.c: Remove all NS-specific code.
7589 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7590 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7591 where_is_preferred_modifier, return a different value depending on how
7592 preferred is the binding.
7593 (where_is_internal): Adjust accordingly.
7594 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7595 Adjust to new preferred_sequence_p.
7596 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7597 * keyboard.c (parse_solitary_modifier): Not static any more.
7598 * keyboard.h (parse_solitary_modifier): Declare.
7599
7600 2008-07-16 Andreas Schwab <schwab@suse.de>
7601
7602 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7603 of easymenu.
7604
7605 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
7606
7607 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7608 that we don't move off the line.
7609
7610 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7611
7612 * keyboard.c (Qsuper): Remove.
7613 (parse_menu_item): Don't call where_is_internal specially for NS.
7614
7615 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7616
7617 * s/gnu-linux.h: Remove boilerplate comments.
7618
7619 * m/alpha.h (__ELF__): Consolidate conditions.
7620
7621 * m/m68k.h (linux): Use GNU_LINUX instead.
7622 Remove boilerplate comments.
7623
7624 * m/intel386.h: Undo refactoring from previous change.
7625 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7626 too, remove dead code.
7627 (linux): Use GNU_LINUX instead.
7628
7629 2008-07-16 Jason Rumney <jasonr@gnu.org>
7630
7631 * w32gui.h: Repeat 26 June changes lost by last change.
7632
7633 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7634
7635 * systty.h: Remove code for Aix on 386, unsupported platform.
7636
7637 * s/ms-w32.h: Remove boilerplate comments.
7638 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7639
7640 * s/gnu-linux.h (TERM): Remove support.
7641 (HAVE_SYSVIPC): Remove, unused.
7642 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7643 for this system.
7644
7645 * process.c: Remove support for IRIS, unused.
7646 Remove support for TERM, not relevant anymore.
7647
7648 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7649 used with the definition.
7650
7651 * s/aix4-2.h (static): Do not undef.
7652
7653 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7654 only used on Aix.
7655 (HAVE_SYSVIPC): Remove, unused.
7656
7657 * m/hp800.h (CANNOT_DUMP): Do not undef.
7658
7659 * m/alpha.h: Fix comment.
7660
7661 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7662 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7663 used by this configuration.
7664 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7665 * unexec.c: Remove code depending on HPUX and
7666 USG_SHARED_LIBRARIES, not used with this file. Remove code
7667 depending on IRIS, unused. Remove if 0-ed code.
7668
7669 * s/template.h: Remove comments about static.
7670
7671 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7672 Remove if 0-ed code.
7673 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7674 were the same as the default.
7675 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7676 Remove boilerplate comments.
7677 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7678 (HAVE_SYSVIPC): Remove, unused.
7679 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7680
7681 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7682 Remove boilerplate comments.
7683 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7684 Remove boilerplate comments.
7685 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7686 Remove boilerplate comments.
7687 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7688
7689 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7690 USG systems which do not use DATA_SEG_BITS.
7691 Refactor code. Remove boilerplate comments.
7692
7693 * m/ibms390.h:
7694 * m/m68k.h:
7695 * s/bsd-common.h:
7696 * s/cygwin.h:
7697 * s/darwin.h:
7698 * s/freebsd.h:
7699 * s/gnu.h:
7700 * s/msdos.h: Remove boilerplate comments.
7701
7702 * m/iris4d.h: Remove boilerplate comments and code for systems that
7703 do not use this file.
7704 (IRIS_4D): Remove, unused.
7705
7706 * m/mips.h: Remove boilerplate comments and code for systems that
7707 do not use this file.
7708 (SIGN_EXTEND_CHAR):
7709 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7710 * unexmips.c: Remove file, unused.
7711
7712 * editfns.c (Fuser_full_name): Replace the only use of
7713 USER_FULL_NAME with its value.
7714 * config.in: Regenerate.
7715
7716 2008-07-16 David Reitter <david.reitter@gmail.com>
7717
7718 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7719 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7720
7721 2008-07-16 Glenn Morris <rgm@gnu.org>
7722
7723 * emacs.c (system-type): Doc fix.
7724
7725 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7726
7727 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7728 If the cache doesn't work, let's fix it, rather than work around it.
7729
7730 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7731
7732 * Makefile.in: Correct additions for nsfont.o in last commit.
7733 * nsfont.m: New file (forgot last commit).
7734
7735 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7736
7737 * callproc.c (set_initial_environment): Initialize
7738 Vprocess_environment under CANNOT_DUMP (fixes crash when
7739 batch-compiling for bootstrap).
7740
7741 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7742 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7743
7744 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7745 fix crash due to different init order.
7746
7747 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7748
7749 Changes and additions for NeXTstep windowing system (Cocoa and
7750 GNUstep) support.
7751
7752 * Makefile.in:
7753 * config.in: Support defines and build commands for NS port.
7754 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7755 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7756 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7757 windowing.
7758 (struct face): Add synth_ital field.
7759 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7760 (init_display): Initialize Vinitial_window_system to "ns" when so
7761 compiled.
7762 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7763 (display_arg): Use under NS.
7764 (main): Under NS, allocate autorelease pool and handle command line
7765 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7766 (standard_args): Add NS-specific args.
7767 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7768 * font.c (DEFAULT_ENCODING): New variable.
7769 (font_find_for_lface): Use it.
7770 (syms_of_font): Load syms_of_nsfont under NS.
7771 * font.h: Declare nsfont_driver when compiled under NS.
7772 * fontset.c: When compiling under NS, include nsterm.h.
7773 (fontset_from_font): Autoconstruct fontset under NS.
7774 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7775 symbol, document and use it.
7776 (do_switch_frame): When for_deletion under Cocoa, add
7777 Fraise_frame(Qnil).
7778 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7779 (x_get_arg): Allow "yes" and "no" as boolean values.
7780 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7781 Qright under Cocoa.
7782 (focus-follows-mouse): Default to 0 under NS.
7783 * frame.h (enum output_method): Add output_ns.
7784 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7785 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7786 (FRAME_WINDOW_P): NS-specific definition.
7787 * fringe.c (max_used_fringe_bitmap): Make public.
7788 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7789 (getloadavg): Use NeXT code under descendant OS's.
7790 * image.c (includes and header section, x_create_bitmap_from_data)
7791 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7792 (image_background_transparent, x_clear_image_1)
7793 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7794 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7795 (x_to_xcolors, x_from_xcolors, x_disable_image)
7796 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7797 other GUIs, including XPM support using code originally written for
7798 Carbon GUI.
7799 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7800 using NS API.
7801 (image_ascent): Use font metrics macros instead of direct struct field
7802 access.
7803 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7804 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7805 Also, handle NS as GTK for menu bar purposes.
7806 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7807 toolkit where they differ.
7808 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7809 use cachelist, still needed under NS.
7810 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7811 (struct widget_value): Define it here for menu.c.
7812 * keymap.c (includes): Include modifier internals.
7813 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7814 NS.
7815 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7816 support for preferring sequences using certain modifiers, specified by
7817 the FIRSTONLY argument.
7818 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7819 under NS GNUstep implementation.
7820 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7821 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7822 * menu.c: Include nsterm.h under NS.
7823 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7824 (free_menubar_widget_tree_value, update_submenu_strings)
7825 (find_and_call_menu_selection): Treat NS as X and NT.
7826 (find_and_return_menu_selection): New function, used for popup menus.
7827 * nsgui.h:
7828 * nsterm.h:
7829 * nsfns.m:
7830 * nsimage.m:
7831 * nsmenu.m:
7832 * nsselect.m:
7833 * nsterm.m: New files.
7834 * process.c (wait_reading_process_output): Under NS, call ns_select()
7835 instead of plain select().
7836 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7837 beginning of buffer.
7838 * sysselect.h (init_process): Rename when compiling under Cocoa to
7839 avoid name conflict.
7840 * termhooks.h (display_info): Add ns_display_info to union.
7841 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7842 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7843 COCOA environment.
7844 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7845 unexec() signature. (Note, this will dump, but the resulting file
7846 crashes; unexosx is used instead; keeping around for reference and
7847 possible aid in getting dump working under GNUstep.)
7848 * w32gui.h (button_type, widget_value): Remove definitions (now in
7849 keyboard.h).
7850 * window.c: Include nsterm.h when compiling under NS.
7851 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7852 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7853 other GUI windowing systems.
7854 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7855 GTK.
7856 (x_consider_frame_title): Under NS, set icon type and frame
7857 modified-state indicator; use ns_set_name_as_filename() when using
7858 formatted title.
7859 (update_window_cursor): Make public when compiling under NS.
7860 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7861 (hourglass_atimer, Vhourglass_delay
7862 * xfaces.c (header section, init_frame_faces, clear_font_table)
7863 (defined_color, unload_color, x_face_list_fonts)
7864 (prepare_face_for_display): Add NS support parallel to other GUIs.
7865 Emulate GCs like other non-X GUIs.
7866 (split_font_name): Don't lowercase font name under NS.
7867 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7868 under NS.
7869 * s/darwin.h: Add support for compilation under NS.
7870
7871 2008-07-15 Jason Rumney <jasonr@gnu.org>
7872
7873 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7874 (w32_show_hourglass): Rename from show_hourglass.
7875 (w32_hide_hourglass): Rename from hide_hourglass.
7876 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7877 (Vhourglass_delay): Declare extern.
7878 (hourglass_started): Remove.
7879
7880 * xdisp.c (Vhourglass_delay): Remove static.
7881 (hourglass_started, start_hourglass, cancel_hourglass):
7882 Don't include these versions on WINDOWSNT.
7883
7884 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7885
7886 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7887 variables (formerly in xfns.c).
7888 (show_hourglass, hide_hourglass): New prototypes (same).
7889 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7890 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7891 in xfns.c).
7892 (syms_of_xdisp): Declare/initialize display-hourglass,
7893 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7894 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7895 formerly in xfns.c.
7896 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7897 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7898 (start_hourglass, cancel_hourglass): Remove.
7899 (show_hourglass, hide_hourglass): Remove prototypes and static
7900 modifiers.
7901 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7902 hourglass_atimer, hourglass_shown_p declaration/initialization.
7903 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7904 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7905 (start_hourglass, cancel_hourglass): Remove.
7906 (show_hourglass, hide_hourglass): Remove prototypes and static
7907 modifiers.
7908 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7909 hourglass_atimer, hourglass_shown_p declaration/initialization.
7910 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7911 (DEFAULT_HOURGLASS_DELAY): Remove.
7912 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7913 hourglass_shown_p declaration/initialization.
7914
7915 2008-07-14 Jason Rumney <jasonr@gnu.org>
7916
7917 * w32fns.c (w32_get_arg): Remove wrapper function.
7918 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7919 directly.
7920 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7921
7922 2008-07-14 Kenichi Handa <handa@m17n.org>
7923
7924 * xfont.c (xfont_open): Add workaround for X's bug.
7925
7926 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7927
7928 * fontset.c: Include <stdio.h> unconditionally.
7929
7930 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
7931
7932 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7933 for filtering.
7934
7935 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7936
7937 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7938
7939 * m/macppc.h:
7940 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7941
7942 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7943 (SPECIAL_EMACS_INT):
7944 * m/ia64.h (SPECIAL_EMACS_INT):
7945 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7946 * s/gnu.h (NLIST_STRUCT):
7947 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7948 * s/gnu-linux.h (LINUX):
7949 * s/msdos.h (HAVE_FACES):
7950 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7951
7952 * systty.h:
7953 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7954 anymore.
7955
7956 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7957
7958 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7959 always defined as int.
7960
7961 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7962 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7963 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7964 * s/freebsd.h (HAVE_WAIT_HEADER):
7965 * s/bsd-common.h (HAVE_UNION_WAIT):
7966 * s/aix4-2.h (HAVE_WAIT_HEADER):
7967 * m/mips.h (HAVE_UNION_WAIT):
7968 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7969 (COFF, static): Do not define, they are undefined later in the file.
7970
7971 * process.c (update_status): Don't use a union.
7972 (status_convert):
7973 (sigchld_handler): Use int instead of WAITTYPE.
7974
7975 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
7976
7977 * indent.c (Fvertical_motion): Restore hscroll before moving to
7978 goal column.
7979
7980 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7981
7982 * lisp.h: Remove left over code.
7983
7984 2008-07-11 Andreas Schwab <schwab@suse.de>
7985
7986 * lisp.h: Fix logic in last change.
7987
7988 * menu.h: New file.
7989 * menu.c: Include it.
7990 * xmenu.c: Likewise.
7991 * Makefile.in: Update dependencies.
7992
7993 2008-07-11 Kenichi Handa <handa@m17n.org>
7994
7995 * fontset.c (fontset_from_font): Cancel the previous change.
7996
7997 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7998
7999 * lisp.h:
8000 * w32heap.c:
8001 * emacs.c:
8002 * alloc.c: Replace all references of NO_UNION_TYPE with
8003 USE_LISP_UNION_TYPE.
8004
8005 * m/xtensa.h (NO_UNION_TYPE):
8006 * m/vax.h (NO_UNION_TYPE):
8007 * m/template.h (NO_UNION_TYPE):
8008 * m/sparc.h (NO_UNION_TYPE):
8009 * m/mips.h (NO_UNION_TYPE):
8010 * m/macppc.h (NO_UNION_TYPE):
8011 * m/m68k.h (NO_UNION_TYPE):
8012 * m/iris4d.h (NO_UNION_TYPE):
8013 * m/intel386.h (NO_UNION_TYPE):
8014 * m/ibms390x.h (NO_UNION_TYPE):
8015 * m/ibms390.h (NO_UNION_TYPE):
8016 * m/ibmrs6000.h (NO_UNION_TYPE):
8017 * m/ia64.h (NO_UNION_TYPE):
8018 * m/hp800.h (NO_UNION_TYPE):
8019 * m/arm.h (NO_UNION_TYPE):
8020 * m/amdx86-64.h (NO_UNION_TYPE):
8021 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8022 defining it the same.
8023
8024 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
8025
8026 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8027
8028 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8029
8030 * fileio.c:
8031 * sysdep.c
8032 * systty.h:
8033 * m/ibmrs6000.h:
8034 * m/iris4d.h:
8035 * s/aix4-2.h:
8036 * s/freebsd.h:
8037 * s/gnu-linux.h:
8038 * s/hpux10-20.h:
8039 * s/hpux11.h:
8040 * s/netbsd.h:
8041 * s/sol2-3.h:
8042 * s/sol2-4.h:
8043 * s/sol2.h:
8044 * s/usg5-4.h:
8045 * s/vms.h: Remove references to unused variables.
8046
8047 2008-07-10 Andreas Schwab <schwab@suse.de>
8048
8049 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8050 pattern before matching the generic family.
8051
8052 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8053
8054 * unexec.c:
8055 * s/vms.h:
8056 * s/usg5-4-2.h:
8057 * s/sol2-5.h:
8058 * s/freebsd.h:
8059 * s/darwin.h: Remove dead code.
8060
8061 * m/template.h:
8062 * m/sparc.h:
8063 * m/mips.h:
8064 * m/m68k.h:
8065 * m/iris4d.h:
8066 * m/intel386.h:
8067 * m/ibms390x.h:
8068 * m/ibms390.h:
8069 * m/ia64.h:
8070 * m/hp800.h:
8071 * m/arm.h:
8072 * m/amdx86-64.h: Remove dead code and references to unused
8073 and compiler defined symbols.
8074
8075 * unexmips.c:
8076 * unexelf.c: Remove references to desupported systems.
8077
8078 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8079
8080 * m/powermac.h: Remove boilerplate comments.
8081 (NO_REMAP): Remove unused definition.
8082
8083 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8084 define them.
8085
8086 2008-07-10 Kenichi Handa <handa@m17n.org>
8087
8088 * xfont.c (xfont_open): Log the reason of failure.
8089
8090 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8091
8092 * fontset.c (fontset_get_font_group):
8093 * font.c (font_check_otf): Specify argument types.
8094
8095 2008-07-09 Kenichi Handa <handa@m17n.org>
8096
8097 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8098 non-ASCII char is found.
8099
8100 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8101 (reorder_font_vector): Change the arg preferred_family to font.
8102 Prefer the spec matching with font.
8103 (fontset_get_font_group): New function.
8104 (fontset_find_font): Change the format of an element of a realized
8105 fontset. Use fontset_get_font_group.
8106 (fontset_font): Try the current fontset, the default fontset, the
8107 fallbacks of the current fontset, and the fallbacks of the default
8108 fontset in this order.
8109 (face_for_char): Delete the shortcut to use the current font.
8110 (fontset_from_font): Don't set fonts for Latin in the fontset.
8111
8112 * font.h (font_make_object, font_match_p): Adjust prototypes.
8113
8114 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8115
8116 * font.c (font_make_object): New arg entity and pixelsize.
8117 (font_check_otf_features, font_check_otf): New functions.
8118 (font_match_p): Check :lang, :script, and :otf properties.
8119
8120 * xfont.c (xfont_open): Adjust it for the change of
8121 font_make_object.
8122 (xfont_text_extents): Fix initial setting of metrics.
8123
8124 * ftfont.c (struct ftfont_info): New member index, delete member
8125 fc_charset_idx. Make the member order compatible with struct
8126 xftfont_info.
8127 (fc_charset_table): Change charset names to registry names.
8128 (ftfont_pattern_entity): Delete the args registry and
8129 fc_charset_idx. Change the value of :font-entity property
8130 to (FONTNAME . INDEX). Always set :registry property to
8131 `iso10646-1'.
8132 (struct ftfont_cache_data): New struct.
8133 (ftfont_lookup_cache): New arg for_face.
8134 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8135 (ftfont_driver): Set the member otf_capability.
8136 (ftfont_get_charset): Adjust it for the change of
8137 fc_charset_table.
8138 (OTF_TAG_SYM): New macro.
8139 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8140 for the change of fc_charset_table.
8141 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8142 ftfont_pattern_entity. Add FC_INDEX to objset.
8143 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8144 and ftfont_pattern_entity.
8145 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8146 font_make_object, struct ftfont_info.
8147 (ftfont_has_char): Use ftfont_get_fc_charset.
8148 (ftfont_otf_features, ftfont_otf_capability): New functions.
8149 (ftfont_shape): Use ftfont_get_otf.
8150 (ftfont_text_extents): Fix initial setting of metrics.
8151
8152 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8153 member order compatible with struct ftfont_info.
8154 (xftfont_open): Add FC_CHARSET to the pattern. Set
8155 xftfont_info->ft_size. Don't unlock the face. Check BDF
8156 properties if appropriate.
8157 (xftfont_close): Unlock the face.
8158 (xftfont_anchor_point, xftfont_shape): Deleted.
8159 (syms_of_xftfont): Don't set members anchor_point and shape of
8160 xftfont_driver.
8161
8162 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8163 font_make_object.
8164
8165 * w32font.c (w32font_open): Adjust it for the change of
8166 font_make_object.
8167 (w32font_open_internal): Don't set properties of font_object here.
8168
8169 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
8170
8171 * macfns.c (x_create_tip_frame):
8172 * w32fns.c (x_create_tip_frame):
8173 * xfns.c (x_create_tip_frame): Pass parameter argument to
8174 face-set-after-frame-default.
8175
8176 * xfaces.c (Finternal_merge_in_global_face): Save merged
8177 attributes for the default face back into the face vector.
8178
8179 2008-07-08 Andreas Schwab <schwab@suse.de>
8180
8181 * fontset.h: Declare fontset_from_font. Don't declare
8182 new_fontset_from_font and fontset_from_font_name.
8183 * xterm.c: Include "fontset.h".
8184 * Makefile.in (xterm.o): Update dependencies.
8185
8186 2008-07-08 Glenn Morris <rgm@gnu.org>
8187
8188 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8189 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8190
8191 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
8192
8193 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8194 (x_set_frame_parameters): Don't bind it.
8195
8196 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
8197
8198 * w32fns.c (map_w32_filename): Declare extern.
8199
8200 2008-07-07 Jason Rumney <jasonr@gnu.org>
8201
8202 * w32term.c (WS_EX_LAYERED): Define if not already.
8203
8204 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
8205
8206 * xfaces.c (set_font_frame_param): Don't try to set the font
8207 parameter if it is still unspecified in the lface.
8208
8209 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8210
8211 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8212 face if it didn't already exist.
8213
8214 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8215
8216 2008-07-05 Andreas Schwab <schwab@suse.de>
8217
8218 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8219
8220 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8221
8222 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8223 word-wrapping.
8224 (IT_DISPLAYING_WHITESPACE): New macro.
8225 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8226 when word-wrapping. Simplify word-wrapping logic. Use correct
8227 pixel positions when saving copies of the iterator.
8228 (display_line): Use proper wrap point if the last character on a
8229 line was preceded by whitespace.
8230
8231 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8232
8233 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8234
8235 2008-07-04 Kenichi Handa <handa@m17n.org>
8236
8237 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8238
8239 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8240
8241 2008-07-02 Jason Rumney <jasonr@gnu.org>
8242
8243 * xfns.c (syms_of_xfns): Only define x-select-font when both
8244 HAVE_FREETYPE and USE_GTK.
8245
8246 * xdisp.c (next_element_from_display_vector): Move assignment out
8247 of if statement.
8248
8249 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8250
8251 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8252
8253 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8254 (syms_of_fileio): Initialize and export them.
8255 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8256
8257 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8258 (Fsystem_move_file_to_trash): New function.
8259 (syms_of_w32fns): Export it to lisp.
8260
8261 2008-07-01 Jason Rumney <jasonr@gnu.org>
8262
8263 * w32font.c (w32font_text_extents): Don't count overhang as part
8264 of width.
8265
8266 2008-06-30 Miles Bader <miles@gnu.org>
8267
8268 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8269 Add `avoid_cursor_p' field.
8270
8271 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8272 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8273 (append_glyph, append_composite_glyph, produce_image_glyph)
8274 (append_stretch_glyph): Initialize avoid_cursor_p.
8275 (get_it_property): Rename from `get_line_height_property'.
8276 (x_produce_glyphs): Use get_it_property.
8277 (handle_line_prefix, push_display_prop): New functions.
8278 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8279 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8280 New variables.
8281 (syms_of_xdisp): Initialize them.
8282
8283 2008-06-30 Kenichi Handa <handa@m17n.org>
8284
8285 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8286 XftDefaultSubstitute (they are called in XftFontMatch).
8287 (xftfont_open): Fix args to ftfont_font_format.
8288
8289 * ftfont.c (fc_charset_table): New member lang.
8290 (ftfont_resolve_generic_family): New arg pattern.
8291 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
8292 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8293 (ftfont_open): Fix args to ftfont_font_format.
8294 (ftfont_font_format): New arg filename.
8295
8296 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
8297
8298 * xfaces.c (Finternal_merge_in_global_face): If default face was
8299 modified, realize it again. Update the font face attribute.
8300
8301 2008-06-29 Jason Rumney <jasonr@gnu.org>
8302
8303 * w32term.c (x_set_frame_alpha): Fix logic.
8304
8305 2008-06-29 Kenichi Handa <handa@m17n.org>
8306
8307 * fontset.c (Finternal_char_font): Return font-object instead of
8308 font-name.
8309
8310 * composite.c (get_composition_id): Fix the width calculation for TAB.
8311
8312 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8313
8314 * indent.c (Fvertical_motion): Properly handle float column arg.
8315
8316 2008-06-28 Jason Rumney <jasonr@gnu.org>
8317
8318 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8319 (pfnSetLayeredWindowAttributes): New function pointer.
8320 (w32_initialize): Initialize it when supported.
8321 (x_set_frame_alpha): New function.
8322
8323 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8324 (w32_frame_parm_handlers): Set alpha handler.
8325
8326 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8327
8328 2008-06-27 Jason Rumney <jasonr@gnu.org>
8329
8330 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8331 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8332 (w32_to_x_charset, x_to_w32_charset)
8333 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8334 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8335 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8336 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8337 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8338 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8339 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8340 (Qw32_charset_unicode): Remove.
8341 (syms_of_w32fns): Update for above changes.
8342
8343 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8344 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8345 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8346 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8347 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8348 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8349 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8350 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8351 (syms_of_w32font): Update for above changes.
8352
8353 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8354
8355 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8356 removed #if.
8357 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8358
8359 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8360 Eli Zaretskii <eliz@gnu.org>
8361
8362 * makefile.w32-in (LOCAL_FLAGS):
8363 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8364
8365 * sysdep.c (_spawnlp, _getpid):
8366 Declare with explicit _cdecl instead of _CRTAPI1.
8367
8368 * editfns.c (Fget_internal_run_time):
8369 Check for WINDOWSNT with #ifdef, not #if.
8370
8371 2008-06-26 Jason Rumney <jasonr@gnu.org>
8372
8373 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8374
8375 * w32term.c (x_draw_glyph_string_foreground)
8376 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8377 Use FONT_HANDLE macro.
8378 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8379
8380 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8381 (uniscribe_encode_char): Use FONT_HANDLE macro.
8382
8383 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8384 (w32font_text_extents): Use precast w32_font.
8385 (w32font_close): Free cached metrics.
8386 (w32font_open_internal): Allocate space for name on stack.
8387
8388 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
8389
8390 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8391
8392 2008-06-26 Jason Rumney <jasonr@gnu.org>
8393
8394 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8395 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8396
8397 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8398
8399 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8400
8401 2008-06-26 Jason Rumney <jasonr@gnu.org>
8402
8403 * w32bdf.c, w32bdf.h: Remove obsolete files.
8404
8405 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8406
8407 * w32gui.h: Don't include w32bdf.h.
8408 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8409 Remove obsolete font support.
8410
8411 * w32font.h (struct w32font_info): Remove compat_w32_font.
8412 Add hfont member.
8413 (FONT_COMPAT): Remove obsolete macro.
8414
8415 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8416 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8417 (w32font_open_internal): Remove compat code. Set new hfont member.
8418 (Fx_select_font): Use new hfont member.
8419
8420 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8421 (uniscribe_encode_char): Use new hfont member.
8422
8423 * w32term.c (x_draw_glyph_string_foreground)
8424 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8425 (x_draw_glyph_string): Use metrics in w32font_info.
8426
8427 2008-06-26 Kenichi Handa <handa@m17n.org>
8428
8429 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8430
8431 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8432
8433 * unexnext.c:
8434 * m/ews4800.h:
8435 * m/hp9000s300.h:
8436 * m/ibm370aix.h:
8437 * m/mips-siemens.h:
8438 * m/ncr386.h:
8439 * m/next.h:
8440 * m/pmax.h:
8441 * m/powerpcle.h:
8442 * m/tandem-s2.h:
8443 * s/386bsd.h:
8444 * s/bsd386.h:
8445 * s/bsd4-1.h:
8446 * s/bsd4-2.h:
8447 * s/bsdos2-1.h:
8448 * s/bsdos2.h:
8449 * s/bsdos3.h:
8450 * s/bsdos4.h:
8451 * s/nextstep.h:
8452 * s/ultrix4-3.h:
8453 * s/usg5-0.h:
8454 * s/usg5-2-2.h:
8455 * s/usg5-2.h:
8456 * s/usg5-4-3.h:
8457 * s/ux4800.h:
8458 * s/uxpds.h:
8459 * s/uxpv.h: Remove support for obsolete systems.
8460 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8461 Remove, insert contents in s/hpux10-20.h.
8462 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8463 Remove, insert contents in s/aix4-2.h.
8464 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8465 * s/bsd4-3.h: Rename to ...
8466 * s/bsd-common.h: ... this.
8467 * data.c:
8468 * doc.c:
8469 * ecrt0.c:
8470 * emacs.c:
8471 * fileio.c:
8472 * floatfns.c:
8473 * keyboard.c:
8474 * mem-limits.h:
8475 * print.c:
8476 * process.c:
8477 * sysdep.c:
8478 * syssignal.h:
8479 * systty.h:
8480 * syswait.h:
8481 * term.c:
8482 * unexec.c:
8483 * unexelf.c:
8484 * unexhp9k800.c:
8485 * m/hp800.h:
8486 * m/ibmrs6000.h:
8487 * m/mips.h:
8488 * m/vax.h:
8489 * s/darwin.h:
8490 * s/freebsd.h:
8491 * s/gnu.h:
8492 * s/ms-w32.h:
8493 * s/msdos.h:
8494 * s/netbsd.h:
8495 * s/template.h: Remove references to obsolete variables.
8496
8497 * Makefile.in: Add dependencies for all unexec files.
8498 (admindir): Remove unused variable.
8499 (UNEXEC_SRC): Remove references.
8500
8501 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
8502
8503 * xfns.c (x_default_font_parameter): If Xft is available, first
8504 try Monospace-12 for the default font.
8505
8506 2008-06-25 Jason Rumney <jasonr@gnu.org>
8507
8508 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8509
8510 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8511
8512 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8513
8514 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8515
8516 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
8517
8518 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8519 <scroll-conservatively>: Fix typo in docstring.
8520
8521 * xselect.c (Fx_send_client_event): Doc fix.
8522
8523 2008-06-25 Kenichi Handa <handa@m17n.org>
8524
8525 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8526
8527 * font.c (font_parse_fcname): Remove unused variables.
8528 (font_sort_entites): Delete the arg SPEC. Caller changed.
8529 Fix for the case of ! best_only.
8530 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8531
8532 * lisp.h (Fstring_to_unibyte): EXFUN it.
8533
8534 * character.h (str_to_unibyte): Extern it.
8535
8536 * character.c (str_to_unibyte): New function.
8537
8538 * fns.c (Fstring_to_unibyte): New function.
8539 (syms_of_fns): Defsubr it.
8540
8541 2008-06-24 Kenichi Handa <handa@m17n.org>
8542
8543 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8544 DPI too.
8545 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8546
8547 2008-06-24 Andreas Schwab <schwab@suse.de>
8548
8549 * Makefile.in (${lispsource}loaddefs.el): Rename from
8550 ../lisp/loaddefs.el.
8551 (bootstrap-clean): Do what distclean does but don't remove
8552 Makefile.
8553 (distclean): Depend on bootstrap-clean and remove Makefile.
8554
8555 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
8556
8557 * buffer.h (struct buffer): New member word_wrap.
8558
8559 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8560 word-wrap.
8561 (init_buffer_once): Initialize them.
8562
8563 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8564 line_wrap enum possessing three possible values.
8565
8566 * termopts.h: Replace truncate_partial_width_windows with
8567 Vtruncate_partial_width_windows.
8568
8569 * dispnew.c (direct_output_for_insert): Avoid direct output when
8570 inserting a space with word wrap on.
8571
8572 * indent.c (compute_motion): Obey integer values of
8573 truncate-partial-width-windows.
8574
8575 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8576 replacing truncate_partial_width_windows.
8577 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8578 truncate only if the window width is below that integer.
8579 (start_display, resize_mini_window, produce_stretch_glyph)
8580 (display_string, move_it_in_display_line_to): Use line_wrap.
8581 (back_to_previous_visible_line_start, reseat_1): Reset
8582 string_from_display_prop_p.
8583 (display_line): Extend default face to end of line when wrapping.
8584
8585 2008-06-24 Kim F. Storm <storm@cua.dk>
8586
8587 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8588 to wrap continued lines at word boundaries.
8589
8590 2008-06-24 Jason Rumney <jasonr@gnu.org>
8591
8592 * font.c (Ffont_face_attributes): Multiply pixel size before point
8593 conversion to avoid multiplying rounding error.
8594
8595 2008-06-23 Jason Rumney <jasonr@gnu.org>
8596
8597 * w32term.c (x_draw_glyph_string_background)
8598 (x_draw_glyph_string): Remove old bdf font code.
8599
8600 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8601
8602 2008-06-22 Kenichi Handa <handa@m17n.org>
8603
8604 * font.c (font_find_for_lface): Try the adstyle specified in
8605 the property of LFACE_FONT of LFACE (if any).
8606
8607 2008-06-21 Seiji Zenitani <zenitani@mac.com>
8608 Ryo Yoshitake <ryo@shiftmode.net>
8609
8610 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8611
8612 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8613
8614 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8615 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8616 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8617 (witness-emacs): Remove.
8618 (lisp, shortlisp): Move loaddefs.el earlier.
8619 (mostlyclean): Forget about witness-emacs.
8620
8621 2008-06-22 Glenn Morris <rgm@gnu.org>
8622
8623 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8624 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8625
8626 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8627
8628 * Makefile.in (PRECOMP): Remove.
8629 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8630 (witness-emacs): Run `compile-first'.
8631 (.el.elc): Use the new compile-onefile target.
8632
8633 2008-06-21 Kenichi Handa <handa@m17n.org>
8634
8635 * xftfont.c (xftfont_open): Handle QCembolden only when
8636 FC_EMBOLDEN is defined.
8637
8638 2008-06-21 Andreas Schwab <schwab@suse.de>
8639
8640 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8641 (.el.elc): Likewise.
8642
8643 2008-06-21 Miles Bader <miles@gnu.org>
8644
8645 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8646 build dir, not the lisp source dir.
8647
8648 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8649
8650 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8651 (bootstrapclean): Remove.
8652 (.el.elc): New rule.
8653 (PRECOMP): New var.
8654 (../lisp/subdirs.el): Remove.
8655 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8656 (witness-emacs): New target.
8657 (mostlyclean): Remove witness-emacs as well.
8658 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8659 Add witness-emacs dependency.
8660
8661 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
8662
8663 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8664 defined by the font.
8665
8666 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8667
8668 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8669 (bootstrap-clean): New target that keeps TAGS around.
8670 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8671 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8672
8673 2008-06-20 Jason Rumney <jasonr@gnu.org>
8674
8675 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8676 Remove obsolete font code.
8677
8678 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8679 to determine language support.
8680
8681 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8682
8683 * sysdep.c (cfsetspeed): New fun extracted from the code.
8684 (cfmakeraw): Move before first use.
8685
8686 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8687
8688 * sysdep.c (cfmakeraw): Provide fallback implementation.
8689 (serial_configure): Provide fallback implementation of cfsetspeed.
8690
8691 2008-06-20 Kenichi Handa <handa@m17n.org>
8692
8693 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8694 the pattern.
8695
8696 * fontset.c (fontset_from_font): Copy font_spec before changing
8697 the elements.
8698
8699 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8700
8701 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8702
8703 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8704 for explicit `font' parameters.
8705
8706 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8707
8708 2008-06-19 Kenichi Handa <handa@m17n.org>
8709
8710 * frame.c: Include <ctype.h>.
8711 (x_set_font_backend): Allow spacing characters in the X resource
8712 for FontBackend.
8713
8714 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8715
8716 * w32fns.c, xfns.c (Qfont_param): New var.
8717 (syms_of_w32fns): Initialize it.
8718 (x_default_font_parameter): Record explicit `font' into
8719 `font-parameter'.
8720
8721 2008-06-18 Kenichi Handa <handa@m17n.org>
8722
8723 * font.c (font_parse_xlfd): Fix previous change.
8724 (font_parse_fcname): Don't use :fc-unknown-spec.
8725 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8726 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8727 (font_add_log): Prepend the driver name to the resulting fonts.
8728
8729 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8730 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8731 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8732
8733 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8734 (QCembolden): New variables.
8735 (syms_of_xftfont): DEFSYM them.
8736 (xftfont_open): Call XftFontMatch. Don't trust the result of
8737 XftTextExtents8 if the pixel_size is less than 5.
8738
8739 2008-06-18 Andreas Schwab <schwab@suse.de>
8740
8741 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8742 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8743
8744 2008-06-18 Jason Rumney <jasonr@gnu.org>
8745
8746 * w32font.c (w32font_list, w32font_match): Add logging.
8747
8748 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8749
8750 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
8751
8752 * font.c (font_parse_fcname): Store divider characters for
8753 unknown-spec list. For known key symbols, intern using correct
8754 symbol name.
8755
8756 2008-06-17 Kenichi Handa <handa@m17n.org>
8757
8758 * xfaces.c (realize_default_face): If the frame is not on window
8759 system, set the fontset of face to nil.
8760
8761 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8762
8763 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8764
8765 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8766
8767 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8768 (build_font_name_from_vector): Delete externs.
8769
8770 * xfaces.c (struct font_name): Don't declare.
8771
8772 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8773
8774 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8775
8776 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8777
8778 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8779
8780 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8781
8782 * font.c (Ffont_spec): Fix usage in docstring.
8783 (Ffont_face_attributes): Doc fix.
8784
8785 2008-06-16 Andreas Schwab <schwab@suse.de>
8786
8787 * font.c (Ffont_face_attributes): Fix definition.
8788
8789 2008-06-16 Jason Rumney <jasonr@gnu.org>
8790
8791 * font.h (font_style_symbolic_from_value): Remove.
8792
8793 * font.c (font_style_symbolic_from_value): Remove.
8794 (font_style_symbolic): Revert to pre 2008-06-13 version.
8795
8796 * w32font.c (w32_to_fc_weight): New function.
8797 (w32font_full_name, logfont_to_fcname): Use it.
8798
8799 2008-06-16 Kenichi Handa <handa@m17n.org>
8800
8801 * font.c (font_check_object): Delete it.
8802 (font_clear_cache): Check if a font-object is alive.
8803 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8804 font-object to nil.
8805 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8806 (font_at): Don't call font_check_object.
8807 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8808
8809 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8810
8811 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8812
8813 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8814
8815 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8816
8817 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
8818
8819 * font.c (font_parse_fcname): Only one decimal point.
8820 (font_unparse_fcname): Handle data in family and foundry indices
8821 as symbols, not strings.
8822 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8823
8824 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8825
8826 * font.h (font_unparse_gtkname): Add prototype.
8827
8828 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8829
8830 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8831
8832 2008-06-15 Andreas Schwab <schwab@suse.de>
8833
8834 * font.c (font_update_drivers): Fix crash when no drivers match.
8835
8836 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8837
8838 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8839 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8840
8841 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8842
8843 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8844
8845 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8846
8847 * process.c (Fserial_process_configure, Fprocess_send_eof):
8848 Use EQ to compare Lisp_Objects.
8849
8850 2008-06-13 Jason Rumney <jasonr@gnu.org>
8851
8852 * w32fns.c (Fw32_select_font): Remove old font API function.
8853
8854 * w32font.c (logfont_to_fcname): New function.
8855 (Fx_select_font): New font dialog function compatible with
8856 GTK/fontconfig version.
8857
8858 * font.c (font_style_symbolic_from_value): New function.
8859 (font_style_symbolic): Use it.
8860
8861 * font.h (font_style_symbolic_from_value): Declare new function.
8862
8863 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
8864
8865 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8866 <font-width-table>: Fix typos in docstrings.
8867
8868 2008-06-13 Daniel Engeler <engeler@gmail.com>
8869
8870 These changes add serial port access.
8871 * process.c: Add HAVE_SERIAL.
8872 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8873 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8874 (list_processes_1, select_wrapper, Fstop_process)
8875 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8876 (status_notify): Modify to handle serial processes.
8877 [HAVE_SERIAL] (Fserial_process_configure)
8878 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8879 New functions.
8880 * process.h (struct Lisp_Process): Add `type'.
8881 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8882 New functions.
8883 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8884 serial ports.
8885 (serial_open, serial_configure): New functions.
8886 * w32.h: Add FILE_SERIAL.
8887 (struct _child_process): Add ovl_read, ovl_write.
8888
8889 2008-06-13 Kenichi Handa <handa@m17n.org>
8890
8891 * dispextern.h (enum lface_attribute_index): New member
8892 LFACE_FOUNDRY_INDEX.
8893
8894 * font.c (font_score): Delete arg alternate_families. Check only
8895 weight, slant, width, and size. Ignore the difference of alias
8896 style symbols.
8897 (font_sort_entites): Adjust for the above change. Reflect the
8898 order of font-driver to scores.
8899 (font_list_entities): Don't check alternate_familes here.
8900 (font_clear_prop): Handle foundry.
8901 (font_update_lface): Don't parse "foundry-family" form here.
8902 Handle FONT_FOUNDRY_INDEX.
8903 (font_find_for_lface): Likewise. Handle alternate families here.
8904 If registry is nil, try iso8859-1 and ascii-0.
8905 (font_open_for_lface): Pay attention to size in ENTITY.
8906 (font_open_by_name): Simplify by calling font_load_for_lface.
8907 (free_font_driver_list): Delete it.
8908 (font_update_drivers): Preserve the order of backends.
8909 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8910 of font_score and font_sort_entites.
8911 (font_update_sort_order): Likewise.
8912
8913 * xfaces.c (LFACE_FOUNDRY): New macro.
8914 (check_lface_attrs): Check foundry.
8915 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8916 (merge_face_vectors): Check foundry.
8917 (merge_face_ref): Likewise.
8918 (Finternal_set_lisp_face_attribute): Likewise.
8919 (x_update_menu_appearance): Likewise.
8920 (Finternal_get_lisp_face_attribute): Likewise.
8921 (lface_hash): Likewise.
8922 (lface_same_font_attributes_p): Likewise.
8923 (x_supports_face_attributes_p): Likewise.
8924 (tty_supports_face_attributes_p): Likewise.
8925 (Finternal_set_alternative_font_family_alist): Intern strings.
8926 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8927 (realize_default_face): Set LFACE_FOUNDRY (lface).
8928
8929 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8930 font-driver at first.
8931
8932 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8933
8934 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8935
8936 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8937
8938 2008-06-12 Jim Meyering <meyering@redhat.com>
8939
8940 Make unexec_free handle NULL the same way free does.
8941 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8942
8943 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8944
8945 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8946 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8947 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8948 (WEAK_ALIAS): Simplify.
8949 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8950 when searching a unibyte buffer.
8951
8952 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
8953
8954 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8955
8956 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
8957
8958 * w32font.c: Include ctype.h.
8959
8960 2008-06-11 Jason Rumney <jasonr@gnu.org>
8961
8962 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8963 misreported as space.
8964 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8965 as aliases for registry iso10646-1.
8966
8967 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8968
8969 * buffer.c (clone_per_buffer_values): Skip `name'.
8970
8971 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
8972
8973 * font.c (font_parse_fcname): Fix last change; accept decimal
8974 points in font size.
8975
8976 2008-06-10 Jason Rumney <jasonr@gnu.org>
8977
8978 * w32uniscribe.c (add_opentype_font_name_to_list):
8979 Skip non unicode fonts.
8980
8981 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8982
8983 * xfns.c (Fx_font_dialog): New function.
8984
8985 * gtkutil.c (xg_dialog_response_cb): Rename from
8986 xg_file_response_callback.
8987 (pop_down_dialog): Rename from pop_down_file_dialog.
8988 (xg_get_file_name): Callers changed.
8989 (xg_get_font_name): New function.
8990
8991 * gtkutil.h (xg_get_font_name): Insert prototype.
8992
8993 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8994
8995 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8996 x_underline_minimum_display_offset.
8997 (syms_of_xdisp): Declare it here rather than in xterm.c.
8998 * dispextern.h (underline_minimum_offset): Declare it.
8999 * w32term.c (x_draw_glyph_string): Use it.
9000 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9001 (syms_of_xterm): Don't declare it any more.
9002 (x_draw_glyph_string): Adjust to the new name.
9003
9004 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
9005
9006 * xterm.c (x_underline_minimum_display_offset): New var.
9007 (x_draw_glyph_string): Use it.
9008 (syms_of_xterm): Declare it.
9009
9010 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9011
9012 * font.c (font_parse_fcname): Accept GTK-style font names too.
9013
9014 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9015
9016 * dired.c (file_name_completion): Don't return t if the match is exact
9017 but with different capitalization.
9018 * minibuf.c (Ftry_completion): Simplify.
9019
9020 * window.c (Vwindow_point_insertion_type): New var.
9021 (set_window_buffer): Use it.
9022 (syms_of_window): Init and export it to Lisp.
9023
9024 2008-06-10 Kenichi Handa <handa@m17n.org>
9025
9026 * font.h (font_intern_prop): Prototype adjusted.
9027
9028 * font.c (font_intern_prop): New arg force_symbol.
9029 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9030 Adjust for the change of font_intern_prop.
9031
9032 * ftfont.c (ftfont_pattern_entity):
9033 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9034 (w32_registry):
9035 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9036 the change of font_intern_prop.
9037
9038 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
9039
9040 * w32menu.c (digest_single_submenu): Declare extern.
9041
9042 2008-06-09 Jason Rumney <jasonr@gnu.org>
9043
9044 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9045
9046 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9047 (parse_single_submenu): Remove.
9048 (digest_single_submenu): Remove.
9049 (syms_of_w32menu): Don't initialise variables that have moved
9050 to menu.c.
9051 (set_frame_menubar): Sync with version in xmenu.c.
9052 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9053
9054 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9055 Make static again.
9056
9057 2008-06-09 Jason Rumney <jasonr@gnu.org>
9058
9059 Changes to w32 files related to the move of common menu code
9060 to menu.c on 2008-06-08 by Chong Yidong.
9061
9062 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9063 defs to w32gui.h.
9064 (single_keymap_panes, push_menu_item, push_menu_pane):
9065 Make globally visible.
9066
9067 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9068 (local_free, malloc_widget_value, free_widget_value)
9069 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9070 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9071 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9072 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9073 (menu_items, menu_items_allocated, menu_items_used)
9074 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9075 (init_menu_items, finish_menu_items, discard_menu_items)
9076 (grow_menu_items, push_submenu_start, push_submenu_end)
9077 (push_left_right_boundary, push_menu_pane, push_menu_item)
9078 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9079 (free_menubar_widget_tree_value, parse_single_submenu)
9080 (update_submenu_strings): Remove functions.
9081 (xmalloc_widget_value): Remove and declare extern.
9082
9083 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9084 (OBJ1): Build it.
9085
9086 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9087 (local_heap, local_alloc, local_free, malloc_widget_value)
9088 (free_widget_value): Define here.
9089
9090 2008-06-09 Kenichi Handa <handa@m17n.org>
9091
9092 * font.h (Qascii_0): Extern it.
9093
9094 * font.c (Qascii_0): New variable.
9095 (syms_of_font): DEFSYM it.
9096 (font_open_by_name): If the registry "iso8859-1" fails, try also
9097 "ascii-0".
9098
9099 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9100
9101 2008-06-08 Kenichi Handa <handa@m17n.org>
9102
9103 * .gdbinit (xfont): New command.
9104
9105 2008-06-08 Andreas Schwab <schwab@suse.de>
9106
9107 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9108 * Makefile.in (menu.o): Update dependencies.
9109
9110 * Makefile.in (obj): Always add menu.o.
9111 * emacs.c (main): Always call syms_of_menu.
9112 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9113
9114 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
9115
9116 * Makefile.in: Compile menu.c.
9117
9118 * lisp.h: Declare syms_of_menu.
9119
9120 * emacs.c (main): Call syms_of_menu.
9121
9122 * keyboard.h: Relocate platform-independent menu definitions from
9123 xmenu.c.
9124
9125 * menu.c: New file. Relocate platform-independent menu
9126 definitions from xmenu.c. Suggested by Adrian Robert.
9127
9128 * xmenu.c: Remove platform-independent menu definitions.
9129 (menu_items menu_items_inuse, menu_items_allocated)
9130 (menu_items_used, menu_items_n_panes)
9131 (menu_items_submenu_depth): Move to keyboard.h.
9132 (init_menu_items, finish_menu_items, unuse_menu_items)
9133 (discard_menu_items, restore_menu_items, save_menu_items)
9134 (grow_menu_items, push_submenu_start, push_submenu_end)
9135 (push_left_right_boundary, push_menu_pane, push_menu_item)
9136 (keymap_panes, single_keymap_panes, single_menu_item)
9137 (list_of_panes, list_of_items, find_and_call_menu_selection)
9138 (xmalloc_widget_value, free_menubar_widget_value_tree)
9139 (parse_single_submenu, digest_single_submenu)
9140 (update_submenu_strings): Move to menu.c.
9141
9142 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9143
9144 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9145
9146 2008-06-06 Miles Bader <miles@gnu.org>
9147
9148 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9149 face, not frame default.
9150
9151 2008-06-05 Martin Rudalics <rudalics@gmx.at>
9152
9153 * window.c (pop_up_windows, pop_up_frames)
9154 (display_buffer_reuse_frames, Vpop_up_frame_function)
9155 (Vdisplay_buffer_function, Veven_window_heights)
9156 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9157 (Vspecial_display_function, Vsame_window_buffer_names)
9158 (Vsame_window_regexps, split_height_threshold)
9159 (Vsplit_window_preferred_function): Move those vars to window.el.
9160 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9161 (Fdisplay_buffer): Move those functions to window.el.
9162 (syms_of_window): Remove corresponding declarations.
9163 (display_buffer): New function.
9164 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9165 * dispnew.c (Flast_nonminibuf_frame): New function.
9166 * buffer.c (Fpop_to_buffer): Move to window.el.
9167
9168 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9169
9170 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9171
9172 2008-06-05 Kenichi Handa <handa@m17n.org>
9173
9174 * coding.c (detect_coding): Fix previous change.
9175 (detect_coding_system): Likewise.
9176
9177 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9178
9179 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9180
9181 * keymap.c (Vminibuffer_local_filename_must_match_map):
9182 Rename from Vminibuffer_local_must_match_filename_map.
9183 (syms_of_keymap):
9184 * minibuf.c (Fcompleting_read): Adjust accordingly.
9185 * commands.h: Rename declaration as well.
9186
9187 2008-06-05 Kenichi Handa <handa@m17n.org>
9188
9189 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9190 family name.
9191 (Ffont_put): Likewise.
9192
9193 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9194 current font-spec.
9195
9196 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9197 is unspecified.
9198
9199 * xfaces.c (realize_x_face): If the font-related face attributes
9200 are the same as those of default face, realize a new fontset from
9201 default->fontset.
9202 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9203
9204 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9205
9206 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9207 (move_it_in_display_line): New wrapper.
9208
9209 * window.c (window_scroll_pixel_based_preserve_x)
9210 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9211 (window_scroll_pixel_based, window_scroll_line_based):
9212 Use them to preserve column positions.
9213 (syms_of_window): Initialize them.
9214
9215 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9216 (HPOS . VPOS) pair.
9217
9218 * dispextern.h (move_it_in_display_line): Declare.
9219
9220 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
9221
9222 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9223 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9224 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9225
9226 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
9227
9228 * window.c (Fset_window_parameter): Doc fix.
9229 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9230
9231 2008-06-04 Joakim Verona <joakim@verona.se>
9232
9233 * window.h (struct window): Add new member window_parameters.
9234
9235 * window.c (Fwindow_parameters, Fwindow_parameter)
9236 (Fset_window_parameter): New defuns.
9237 (syms_of_window): Defsubr the new defuns.
9238 (make_window): Initialize window_parameters to nil.
9239
9240 2008-06-04 John Paul Wallington <jpw@pobox.com>
9241
9242 * eval.c (Fdefmacro): Doc fix.
9243
9244 2008-06-04 Kenichi Handa <handa@m17n.org>
9245
9246 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9247 Be sure to call setup_coding_system when we find a proper coding system.
9248 (detect_coding_system): Fix handling of coding->head_ascii.
9249
9250 2008-06-03 Andreas Schwab <schwab@suse.de>
9251
9252 * font.c (font_prop_validate_spacing): Fix last change.
9253
9254 2008-06-03 Kenichi Handa <handa@m17n.org>
9255
9256 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9257 (font_parse_fcname): Fix handling of unknown key.
9258
9259 * xfont.c (xfont_list): Try an alias.
9260
9261 * charset.c (char_charset): Return NULL if the arg charset_list is
9262 specified and C doesn't belong to any of them.
9263
9264 2008-06-02 Chip Coldwell <coldwell@redhat.com>
9265
9266 * font.c (font_pixel_size): Don't take cdr of an integer.
9267
9268 2008-06-02 Jim Meyering <meyering@redhat.com>
9269
9270 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9271 * alloc.c (xfree): Return right away for a NULL arg.
9272 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9273 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9274 * mac.c (create_apple_event_from_event_ref): Likewise.
9275 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9276 Likewise.
9277 * doprnt.c (doprnt1): Likewise.
9278 * frame.c (frame): Likewise.
9279 * keyboard.c (wipe_kboard): Likewise.
9280 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9281 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9282 * term.c (tty_default_color_capabilities, maybe_fatal)
9283 (delete_tty): Likewise.
9284 * w16select.c (string): Likewise.
9285 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9286 * w32bdf.c (w32_free_bdf_font): Likewise.
9287 * w32fns.c (w32_unload_font): Likewise.
9288 * w32font.c (w32font_close): Likewise.
9289 * window.c (size_window): Likewise.
9290 * xselect.c (receive_incremental_selection): Likewise.
9291 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9292 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9293 * w32.c (stat): Likewise.
9294
9295 Remove useless if-before-free tests.
9296 * editfns.c (Fset_time_zone_rule): Likewise.
9297 * lread.c (nosuffix): Likewise.
9298 * ralloc.c (get_bloc): Likewise.
9299 * regex.c (reg_free): Likewise.
9300 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9301 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9302 * xsmfns.c (smc_save_yourself_CB): Likewise.
9303
9304 2008-06-02 Kenichi Handa <handa@m17n.org>
9305
9306 * font.c (font_find_for_lface): Handle float font size.
9307 (font_open_for_lface): Likewise.
9308
9309 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9310 comparing the properties.
9311
9312 2008-06-01 Jason Rumney <jasonr@gnu.org>
9313
9314 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9315 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9316 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9317 Don't add empty script list.
9318 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9319
9320 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9321
9322 * Makefile.in (dot, dotdot): Remove, update users.
9323 ".." has been used elsewhere in the file for a long time.
9324 (LIBXT_STATIC): Remove conditional based on unused variable.
9325
9326 2008-06-01 Miles Bader <miles@gnu.org>
9327
9328 * xfaces.c (Vface_remapping_alist): New variable.
9329 (syms_of_xfaces): Initialize it.
9330 (enum named_merge_point_kind): New type.
9331 (struct named_merge_point): Add `named_merge_point_kind' field.
9332 (push_named_merge_point): Make cycle detection respect different
9333 named-merge-point kinds.
9334 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9335 Remove face-name alias resolution.
9336 (lface_from_face_name): New definition using
9337 `lface_from_face_name_no_resolve'.
9338 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9339 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9340 (get_lface_attributes): New definition that layers face-remapping on
9341 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9342 (lookup_basic_face): New function.
9343 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9344 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9345 `get_lface_attributes'.
9346 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9347 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9348 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9349
9350 * xdisp.c (init_iterator): Pass base_face_id through
9351 `lookup_basic_face' when we actually use it as a face-id.
9352 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9353 DEFAULT_FACE_ID.
9354
9355 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9356 lookup the initial face-id.
9357
9358 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9359
9360 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
9361
9362 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9363 (Fremove_text_properties): Fix typos in docstrings.
9364
9365 2008-05-31 Kenichi Handa <handa@m17n.org>
9366
9367 * font.c (font_list_entities): Fix the car part of data to be
9368 stored in the cache.
9369
9370 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9371
9372 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9373
9374 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9375 Add a `test' argument so another predicate than `equal' can be used.
9376 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9377 (map_char_table): Remove unused vars `c' and `i'.
9378 * lisp.h (Foptimize_char_table): Adjust declaration.
9379 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9380
9381 2008-05-30 Kenichi Handa <handa@m17n.org>
9382
9383 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9384 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9385 defined.
9386
9387 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9388
9389 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9390 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9391 frame-local settings for the same variable.
9392
9393 2008-05-30 Kenichi Handa <handa@m17n.org>
9394
9395 * fontset.c (Ffont_info): Move to font.c.
9396 (syms_of_fontset): Delete defsubr of Sfont_info.
9397
9398 * font.c (font_style_to_value, font_score): Delete casting of the
9399 args to xstcasecmp.
9400 (register_font_driver): Increment num_font_drivers only when
9401 registering the driver globally.
9402 (Ffont_info): Move from fontset.c. Handle a font object too.
9403 (syms_of_font): Defsubr Sfont_info.
9404
9405 2008-05-29 Kenichi Handa <handa@m17n.org>
9406
9407 * coding.h (enum define_coding_utf8_arg_index): New enum.
9408 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9409 coding_attr_utf_bom.
9410 (enum utf_bom_type): Rename from utf_16_bom_type.
9411 (struct utf_16_spec): Adjust for the above change.
9412 (struct coding_system): Add utf_8_bom in `spec' union.
9413
9414 * coding.c (CODING_UTF_8_BOM): New macro.
9415 (enum coding_category): Delete coding_category_utf_8, add
9416 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9417 coding_category_utf_8_sig.
9418 (CATEGORY_MASK_UTF_8): Delete it.
9419 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9420 (CATEGORY_MASK_UTF_8_SIG): New macros.
9421 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9422 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9423 CATEGORY_MASK_UTF_8_SIG.
9424 (CATEGORY_MASK_UTF_8): New macro.
9425 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9426 (detect_coding_utf_8): Check BOM.
9427 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9428 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9429 (encode_coding_utf_16): Likewise.
9430 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9431 (detect_coding, detect_coding_system): Handle utf-8-auto.
9432 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9433 (syms_of_coding): Fix setting up of Vcoding_category_table.
9434
9435 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9436
9437 * process.c (Faccept_process_output): If `millisec' is non-nil,
9438 `seconds' default to 0.
9439 (wait_reading_process_output): Also return non-nil if we read output
9440 from a non-running process.
9441
9442 2008-05-29 Jason Rumney <jasonr@gnu.org>
9443
9444 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9445 `raster' specified.
9446 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9447 in the uniscribe backend, but disallow any font that has no
9448 unicode subrange support.
9449
9450 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
9451
9452 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9453 Fix typos in docstrings.
9454
9455 2008-05-29 Kenichi Handa <handa@m17n.org>
9456
9457 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9458 (Fx_family_fonts): Set frame correctly.
9459
9460 2008-05-28 Jason Rumney <jasonr@gnu.org>
9461
9462 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9463
9464 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9465
9466 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9467 calling build_annotations.
9468
9469 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
9470
9471 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9472 (Fencode_coding_string):
9473 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9474 <latin-extra-code-table>: Fix typos in docstrings.
9475 (syms_of_coding) <coding-system-alist>: Doc fix.
9476 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9477
9478 2008-05-28 Kenichi Handa <handa@m17n.org>
9479
9480 * fontset.c (Ffont_info): Don't call font_close_object.
9481
9482 * font.c (font_parse_family_registry): Use Ffont_put to validate
9483 foundry and family.
9484 (font_delete_unmatched): Don't check spacing.
9485 (font_list_entities): Add spacing to the spec to list fonts.
9486
9487 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9488 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9489
9490 * coding.c (encode_coding_raw_text): Fix previous change.
9491 (encode_coding_object): When the dst_object is a buffer and is
9492 different from src_object, move gap to PT.
9493
9494 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9495
9496 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9497
9498 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9499
9500 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9501 all branches. Compute it differently.
9502
9503 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9504
9505 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
9506
9507 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9508 into "else if () ... else ...".
9509
9510 2008-05-27 Jason Rumney <jasonr@gnu.org>
9511
9512 * w32font.c (w32font_open_internal): Determine if glyph indices
9513 are likely to work here.
9514
9515 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9516
9517 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9518 draw overlap glyphs with appropriate highlighting.
9519
9520 2008-05-27 Kenichi Handa <handa@m17n.org>
9521
9522 * xfont.c (xfont_open): Fix calculation of font->average_width.
9523
9524 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9525
9526 * casefiddle.c (casify_object): Try to guess better whether the
9527 argument is a byte or a char.
9528
9529 2008-05-26 Andreas Schwab <schwab@suse.de>
9530
9531 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9532 Always send multiples of format size.
9533
9534 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9535
9536 2008-05-26 Jason Rumney <jasonr@gnu.org>
9537
9538 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9539 (compute_metrics): Don't set failure if we just cleared the cache.
9540 (w32_weight_table): Remove unused variable.
9541 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9542 backwards compatibility.
9543
9544 2008-05-25 Kenichi Handa <handa@m17n.org>
9545
9546 * w32term.c (x_draw_glyph_string):
9547 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9548
9549 * xfaces.c: Delete unused function prototypes.
9550 (xstrlwr, font_frame): Delete them.
9551 (clear_face_cache): Delete unused variable.
9552
9553 * xftfont.c (xftfont_open): Delete unused variable.
9554 If underline_thickness is not 1, adjust underline_position.
9555
9556 * ftxfont.c (ftxfont_open): Delete unused variable.
9557
9558 * fontset.c (face_for_char): Optimize for the case of no charset
9559 property.
9560
9561 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9562 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9563 (otf_open, font_otf_capability, generate_otf_features)
9564 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9565 Comment out by surrounding "#if 0" and "#endif" for the moment.
9566 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9567 (syms_of_font): Codes for accessing above commented out.
9568
9569 2008-05-24 Eli Zaretskii <eliz@gnu.org>
9570
9571 * w32proc.c: Include dispextern.h.
9572
9573 * w32.c: Include dispextern.h.
9574
9575 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
9576
9577 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9578 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9579 Fix typos in docstrings.
9580
9581 2008-05-23 Jason Rumney <jasonr@gnu.org>
9582
9583 * xsmfns.c: Remove includes that are already included by config.h.
9584
9585 2008-05-23 Kenichi Handa <handa@m17n.org>
9586
9587 * charset.c (Qemacs, charset_emacs): New variables.
9588 (char_charset): Fix for non-Unicode characters.
9589 (syms_of_charset): Define charset_emacs.
9590
9591 * w32term.c (x_draw_glyph_string): Be sure to update
9592 s->underline_thickness and s->underline_position. Be sure to draw
9593 underline within the current line area.
9594
9595 * xterm.c (x_draw_glyph_string): Be sure to update
9596 s->underline_thickness and s->underline_position. Be sure to draw
9597 underline within the current line area.
9598
9599 * fontset.c: Delete unused variables and add casting for char *
9600 throughout the file.
9601 (fontset_font): Try the fallback fonts of the current fontset
9602 before consulting the default fontset.
9603
9604 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9605
9606 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9607
9608 2008-05-22 Jason Rumney <jasonr@gnu.org>
9609
9610 * font.c: Don't include strings.h.
9611
9612 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9613
9614 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9615 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9616 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9617 to call xstrcasecmp.
9618
9619 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9620
9621 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9622
9623 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9624
9625 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9626
9627 2008-05-22 Kenichi Handa <handa@m17n.org>
9628
9629 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9630
9631 * font.c (font_prop_validate_style): Adjust for the format
9632 change of font_style_table.
9633
9634 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9635 two args.
9636
9637 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9638 two args.
9639
9640 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9641
9642 * minibuf.c (keys_of_minibuf): Delete.
9643 * lisp.h (keys_of_minibuf): Delete.
9644 * emacs.c (main): Don't call keys_of_minibuf.
9645
9646 2008-05-22 Kenichi Handa <handa@m17n.org>
9647
9648 * ftfont.c (ftfont_resolve_generic_family): Rename from
9649 ftfont_list_generic_family. Return a single family for each
9650 generic family.
9651 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9652 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9653 Call font_add_log.
9654 (ftfont_match): Call font_add_log.
9655
9656 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9657 (FONT_DEBUG): Define it.
9658 (font_add_log): Extern it.
9659 (font_assert): Rename from xassert.
9660
9661 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9662 (xfont_list_family): Call font_add_log.
9663 (xfont_match): Likewise.
9664 (memq_no_quit): Delete.
9665
9666 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9667 call of Ffont_xlfd_name.
9668
9669 * xfaces.c (struct table_entry, slant_table, weight_table)
9670 (swidth_table): Move to font.c.
9671
9672 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9673 xassert are changed to font_assert. Delete many unused variables.
9674 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9675 New variables.
9676 (struct table_entry): Move from xfaces.c and modified.
9677 (weight_table, slant_table, width_table): Move from xfaces.c and
9678 contents adjusted for the change of struct table_entry.
9679 (font_style_to_value, font_style_symbolic): Adjust for the
9680 format change of font_style_table.
9681 (font_parse_family_registry): Don't overwrite existing foundry and
9682 family of font_spec.
9683 (font_score): Fix calculation of diff for sizes.
9684 (font_sort_entites): Call font_add_log.
9685 (font_delete_unmatched): Return a newly created list.
9686 (font_list_entities): Fix previous change. Call font_add_log.
9687 (font_matching_entity, font_open_entity, font_close_entity):
9688 Call font_add_log.
9689 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9690 (Finternal_set_font_style_table): Delete.
9691 (BUILD_STYLE_TABLE): New macro.
9692 (build_style_table): New function.
9693 (Vfont_log, font_log_env_checked): New variables.
9694 (font_add_log): New function.
9695 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9696 Declare Lisp variables "font-weight-table", "font-slant-table",
9697 "font-width-table", and "font-log". Initialize font_style_table.
9698
9699 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9700
9701 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9702
9703 2008-05-21 Seiji Zenitani <zenitani@mac.com>
9704 Ryo Yoshitake <ryo@shiftmode.net>
9705
9706 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9707 (Vframe_alpha_lower_limit): New variable.
9708 (x_set_alpha): New function.
9709
9710 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9711
9712 * xfns.c (x-create-frame, Qalpha):
9713 Initialize the frame parameter `alpha'.
9714 * xterm.c (OPAQUE, OPACITY): New.
9715 (x_set_frame_alpha): New function.
9716 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9717
9718 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9719 * w32fns.c (w32_frame_parm_handlers): Likewise.
9720
9721 2008-05-20 Jason Rumney <jasonr@gnu.org>
9722
9723 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9724 truetype fonts to opentype list.
9725
9726 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
9727
9728 * fontset.c (Ffontset_info): Doc fix.
9729 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9730 <ignore-relative-composition>: Fix typos in docstrings.
9731
9732 * font.c (syms-of-font) <font-encoding-alist>:
9733 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9734 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9735 (Ffont_otf_alternates): Doc fixes.
9736
9737 2008-05-20 Kenichi Handa <handa@m17n.org>
9738
9739 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9740 font.h through out the file.
9741 (FONT_DRIVERS): Rename from FONTOBJ.
9742 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9743 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9744
9745 * emacs.c (main): Call syms_of_font unconditionally.
9746
9747 * font.h (find_font_encoding): Extern it.
9748
9749 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9750 fontset.c.
9751 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9752 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9753 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9754 only when HAVE_WINDOW_SYSTEM is defined.
9755 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9756 when HAVE_WINDOW_SYSTEM is defined.
9757
9758 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9759 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9760
9761 * xfaces.c: Include font.h unconditionally.
9762 (merge_face_ref, merge_face_vectors)
9763 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9764
9765 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9766
9767 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9768 indirect_variable.
9769 * eval.c (lisp_indirect_variable): New fun.
9770 (Fuser_variable_p): Use it.
9771
9772 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9773
9774 * lisp.h (indirect_variable):
9775 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9776 Use Lisp_Symbol pointers rather than Lisp_Object.
9777 Adjust callers.
9778 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9779 To this end, change calling-convention.
9780
9781 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9782 if some non-hidden buffers are selected by string&pred.
9783
9784 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
9785
9786 * process.c (wait_reading_process_output): Always check status
9787 when in batch mode.
9788
9789 2008-05-19 Kenichi Handa <handa@m17n.org>
9790
9791 * font.c (font_list_entities): Fix handling of cache.
9792 (font_matching_entity): Likewise.
9793
9794 * ftfont.c (cs_iso8859_1): Delete.
9795 (ft_face_cache): New variable.
9796 (struct ftfont_info): New member fc_charset_idx.
9797 (ftfont_build_basic_charsets): Delete.
9798 (fc_charset_table): New variable.
9799 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9800 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9801 Callers changed.
9802 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9803 (ftfont_spec_pattern): New argument fc_charset_idx.
9804 Check registry more rigidly. Change callers.
9805 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9806 change of :font-entity property of the font.
9807
9808 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9809 property of the font.
9810
9811 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
9812
9813 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9814 (Funencodable_char_position, Fcheck_coding_systems_region)
9815 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9816 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9817 (Ffind_operation_coding_system, Fset_coding_system_priority)
9818 (Fcoding_system_eol_type): Doc fixes.
9819
9820 2008-05-17 Glenn Morris <rgm@gnu.org>
9821
9822 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9823
9824 2008-05-16 Eli Zaretskii <eliz@gnu.org>
9825
9826 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9827 and st_gid.
9828
9829 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9830 HAVE_WINDOW_SYSTEM is not defined.
9831
9832 * xfaces.c (merge_face_ref, merge_face_vectors)
9833 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9834 HAVE_WINDOW_SYSTEM is defined.
9835 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9836
9837 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9838
9839 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9840
9841 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9842
9843 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9844
9845 2008-05-15 Kenichi Handa <handa@m17n.org>
9846
9847 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9848 preference.
9849
9850 2008-05-15 Glenn Morris <rgm@gnu.org>
9851
9852 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9853
9854 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
9855
9856 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9857 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9858
9859 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9860
9861 2008-05-15 Kenichi Handa <handa@m17n.org>
9862
9863 * ftfont.c (ftfont_list): Downcase family name to check generic
9864 families.
9865
9866 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9867 font-spec for QCfont value.
9868
9869 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9870 buffer. Check the return value of it.
9871
9872 2008-05-14 Jason Rumney <jasonr@gnu.org>
9873
9874 * w32term.c (w32_get_glyph_overhangs): Remove.
9875 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9876
9877 2008-05-14 Kenichi Handa <handa@m17n.org>
9878
9879 * font.c (font_prop_validate): Make nil a valid value.
9880 (font_clear_cache): Check if the cached vector of entities is nil
9881 or not.
9882
9883 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9884
9885 * emacs.c (main_thread): Conditionalize on
9886 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9887 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9888
9889 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9890 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9891 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9892
9893 2008-05-14 Kenichi Handa <handa@m17n.org>
9894
9895 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9896 has no corresponding coding system.
9897
9898 2008-05-14 Jason Rumney <jasonr@gnu.org>
9899
9900 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9901
9902 * w32font.h (w32font_open_internal): Update declaration.
9903
9904 * w32font.c (w32font_open_internal): Change last argument from
9905 w32font_info struct to font object. Fill in font object from
9906 font_entity. Get Outline metrics if possible. Use them to
9907 calculate underline position and thickness. Use xlfd name as name
9908 property. Don't set codepage.
9909 (w32font_open): Pass font_object to w32font_open_internal. Don't
9910 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9911 (w32font_draw): Use s->font.
9912 (clear_cached_metrics): Don't clear non-existent blocks.
9913
9914 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9915 font was not found.
9916 (x_draw_glyph_string): Use underline position and thickness from font.
9917
9918 * w32uniscribe.c (uniscribe_open): Pass font_object to
9919 w32font_open_internal.
9920
9921 2008-05-14 Kenichi Handa <handa@m17n.org>
9922
9923 These changes are to delete all legacy font-handling codes, and
9924 make Emacs use only font-backends.
9925
9926 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9927 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9928
9929 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9930
9931 * charset.h (Vcharset_non_preferred_head)
9932 (Vcurrent_iso639_language): Extern them.
9933
9934 * charset.c (Vcharset_non_preferred_head): New variable.
9935 (Vcurrent_iso639_language): New variable.
9936 (syms_of_charset): Declare it as a Lisp variable.
9937 (char_charset): Don't check non preferred charsets. As a last
9938 resort, return charset_unicode.
9939 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9940
9941 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9942 conditionals. Don't check enable_font_backend. Delete all codes
9943 used only when USE_FONT_BACKEND is not defined.
9944
9945 * dispextern.h (struct glyph_string): Change type of `font' to
9946 `struct font *'.
9947 (struct glyph_string): New member underline_position and
9948 underline_thickness.
9949 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9950 (struct face): Change type of `font' to `struct font *'. Remove
9951 members `font_name', `font_info_id'.
9952 (per_char_metric, encode_char): Delete externs.
9953 (calc_pixel_width_or_height): Adjust the prototype.
9954
9955 * emacs.c (enable_font_backend): Delete extern.
9956 (main): Don't set enable_font_backend. Don't check the command
9957 line argument "-disable-font-backend".
9958
9959 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9960 (enum font_property_index): New members FONT_DPI_INDEX,
9961 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9962 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9963 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9964 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9965 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9966 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9967 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9968 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9969 (struct font_spec, struct font_entity): New structs.
9970 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9971 (struct font): Many members from old "struct font_info" moved to
9972 here. Members font and entity deleted.
9973 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9974 the new font-related objects.
9975 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9976 (CHECK_FONT_GET_OBJECT): Likewise.
9977 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9978 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9979 (struct font_driver): New members case_sensitive anc check. Type
9980 of the member list and open changed.
9981 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9982 (font_symbolic_width, font_find_object, font_get_spec)
9983 (font_set_lface_from_name): Delete extern.
9984 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9985
9986 * font.c: Include <strings.h>.
9987 (enable_font_backend): Delete it.
9988 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9989 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9990 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9991 (null_string): Delete it.
9992 (null_vector): Make it static.
9993 (font_family_alist): Delete it.
9994 (Qnormal): Extern it.
9995 (QCextra, QClanguage): Delete it.
9996 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9997 (font_make_spec, font_make_entity, font_make_object)
9998 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9999 the string. Callers changed.
10000 (font_pixel_size): Adjusted for the format change of font-related
10001 objects.
10002 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10003 (font_style_to_value, font_style_symbolic): New function.
10004 (build_font_family_alist): Delete it.
10005 (font_registry_charsets): Use Fassoc_string instead of
10006 assq_no_quit.
10007 (font_prop_validate_symbol): Don't return null_string.
10008 (font_prop_validate_style): Adjusted for the change of
10009 style-related values in a font vector.
10010 (font_property_table): Delete entries for QClanguage and
10011 QCantialias, add entries for QCavgwidth.
10012 (get_font_prop_index): Delete the 2nd argument FROM.
10013 (font_prop_validate): Arguments changed.
10014 (font_put_extra): Adjusted for the change of font-related objects.
10015 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10016 (font_parse_fcname, font_unparse_fcname)
10017 (font_prepare_composition): Likewise.
10018 (font_parse_family_registry): Renamed from font_merge_old_spec.
10019 (otf_open): Delete the 1st arg entity.
10020 (font_otf_capability): Adjusted for the above change.
10021 (font_score): New arg alternate_families. Adjusted for the change
10022 of font-related objects.
10023 (font_sort_entites): New arg best_only.
10024 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10025 Delete them.
10026 (font_match_p): Check alternate families.
10027 (font_find_object): Delete it.
10028 (font_check_object): New function.
10029 (font_clear_cache): Adjusted for the change of font-related objects.
10030 (font_delete_unmatched): New arg.
10031 (font_list_entities): Call font_driver->list with a spec that
10032 doesn't specify style-related properties.
10033 (font_matching_entity): Arguments changed. Caller changed.
10034 (font_open_entity): Adjusted for the change of font-related objects.
10035 (font_close_object, font_has_char, font_encode_char)
10036 (font_get_name, font_get_spec): Likewise.
10037 (font_spec_from_name, font_clear_prop, font_update_lface):
10038 New functions.
10039 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10040 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10041 (font_at): Adjusted for the change of font-related objects.
10042 (font_range): New function.
10043 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10044 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10045 (Fcopy_font_spec, Fmerge_font_spec): New function.
10046 (Ffont_family_list): Renamed from list-families.
10047 (Finternal_set_font_style_table): Arguments changed.
10048 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10049 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10050 change of font-related objects.
10051 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10052
10053 * fontset.h (struct font_info): Delete it. Most members go to
10054 struct font.
10055 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10056 (enum FONT_SPEC_INDEX): Delete it.
10057 (font_info, list_fonts_func, load_font_func, query_font_func)
10058 (set_frame_fontset_func, find_ccl_program_func)
10059 (get_font_repertory_func, new_fontset_from_font_name): Delete
10060 externs.
10061 (fontset_from_font_name): Extern it.
10062 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10063 (FONT_INFO_FROM_FACE): Deleted.
10064 (face_for_font): Adjust prototype.
10065
10066 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10067 conditionals. Don't check enable_font_backend. Delete all codes
10068 used only when USE_FONT_BACKEND is not defined.
10069 (get_font_info_func, list_font_func, load_font_func)
10070 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10071 (get_font_repertory_func): Delete them.
10072 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10073 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10074 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10075 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10076 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10077 (fontset_compare_rfontdef): New function.
10078 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10079 rfont-defs by qsort. Adjusted for the change of font-group vector.
10080 (load_font_get_repertory): Deleted.
10081 (fontset_find_font): Use new macros to ref/set elements of
10082 font-def and rfont-def.
10083 (fontset_font): Fix the timing of remembering that no font for C.
10084 (free_face_fontset): Do nothing if the face has no fontset.
10085 (face_suitable_for_char_p): Use new macros to ref/set elements of
10086 rfont-def.
10087 (face_for_char): Likewise. Call face_for_char with font_object.
10088 (fs_load_font): Delete. Delete #pragma surrounding it.
10089 (fs_query_fontset): Use strcasecmp instead of strcmp.
10090 (generate_ascii_font_name): Adjusted for the format change of
10091 font-spec.
10092 (Fset_fontset_font): Likewise. Use new macros to set elements of
10093 font-def.
10094 (Fnew_fontset): Use font_unparse_xlfd to generate
10095 FONTSET_ASCII (fontset).
10096 (new_fontset_from_font_name): Deleted.
10097 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10098 a fontset is already created for the font. FIx updating of
10099 Vfontset_alias_alist.
10100 (fontset_ascii_font): Deleted.
10101 (Ffont_info): Adjusted for the format change of font-spec.
10102 (Finternal_char_font): Likewise.
10103 (Ffontset_info): Likewise.
10104 (syms_of_fontset): Don't check load_font_func.
10105
10106 * fns.c (internal_equal): Handle PREV_FONT.
10107
10108 * frame.h: Delete USE_FONT_BACKEND conditional.
10109
10110 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10111 conditionals. Don't check enable_font_backend. Delete all codes
10112 used only when USE_FONT_BACKEND is not defined.
10113 (x_set_font): Call x_new_font, not x_new_fontset2.
10114 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10115 already set for the frame.
10116
10117 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10118 a font-entity by font_make_entity. Use font_intern_prop instead
10119 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10120 font property. If a font is scalable, set avgwidth property to 0.
10121 Set font-entity property by font_put_extra.
10122 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10123 (ffont_driver): Adjusted for the change of struct font_driver.
10124 (ftfont_spec_pattern): New function.
10125 (ftfont_list): Return a list, not vector.
10126 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10127 (ftfont_list_family): Don't downcase names.
10128 (ftfont_free_entity): Deleted.
10129 (ftfont_open): Return a font-object. Adjusted for the change of
10130 struct font. Get underline_thickness and underline_position from
10131 font property. Don't update dpyinfo->smallest_font_height and
10132 dpyinfo->smallest_char_width.
10133 (ftfont_close): Don't free `struct font'.
10134 (ftfont_has_char): Adjusted for the format change of font-entity.
10135 (ftfont_encode_char, ftfont_text_extents): Likewise.
10136
10137 * ftxfont.c (ftxfont_list): Return a list, not vector.
10138 (ftxfont_open): Return a font-object. Adjusted for the change of
10139 struct font. Get underline_thickness and underline_position from
10140 font property. Don't update dpyinfo->smallest_font_height and
10141 dpyinfo->smallest_char_width.
10142 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10143 (ftxfont_draw): Adjusted for the change of struct font.
10144
10145 * image.c (image_ascent): Don't include "charset.h". Include
10146 "character.h" and "font.h".
10147
10148 * lisp.h (enum pvec_type): New member PREV_FONT.
10149 (Fassoc_string): EXFUN it.
10150
10151 * print.c: Include font.h.
10152 (print_object): Handle font-related objects.
10153
10154 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10155 conditionals. Don't check enable_font_backend. Delete all codes
10156 used only when USE_FONT_BACKEND is not defined.
10157 (handle_auto_composed_prop): Do nothing if it->f is not on a
10158 window system. Check how many following characters can be
10159 displayed by the same font.
10160 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10161 'struct font *'.
10162 (get_char_face_and_encoding): Assign the whole encoding task to
10163 the `encode-char' method of a font driver.
10164 (fill_composite_glyph_string): Adjusted for the change of `struct
10165 face' and `struct glyph_string'.
10166 (fill_glyph_string): Likewise.
10167 (get_per_char_metric): Arguments changed.
10168 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10169 and `struct glyph_string'.
10170 (produce_stretch_glyph, calc_line_height_property)
10171 (x_produce_glyphs): Likewise.
10172
10173 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10174 conditionals. Don't check enable_font_backend. Delete all codes
10175 used only when USE_FONT_BACKEND is not defined. Use
10176 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10177 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10178 (Qp): Extern them.
10179 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10180 Deleted.
10181 (struct font_name): Deleted.
10182 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10183 (compare_fonts_by_sort_order): New function.
10184 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10185 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10186 Deleted.
10187 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10188 compare_fonts_by_sort_order.
10189 (Fx_font_family_list): Call Ffont_family_list.
10190 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10191 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10192 (face_symbolic_slant, face_symbolic_swidth)
10193 (split_font_name_into_vector, build_font_name_from_vector)
10194 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10195 (font_rescale_ratio, split_font_name, build_font_name)
10196 (free_font_names, sort_fonts, x_face_list_fonts)
10197 (face_font_available_p, sorted_font_list, cmp_font_names)
10198 (font_list_1, concat_font_list, font_list, remove_duplicates):
10199 Deleted.
10200 (Fx_list_fonts): Use Ffont_list.
10201 (LFACE_AVGWIDTH): Deleted.
10202 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10203 by FONTP.
10204 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10205 (set_lface_from_font_name): Delete it.
10206 (set_lface_from_font): Renamed from
10207 set_lface_from_font_and_fontset. Caller changed. Don't set
10208 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10209 for face.
10210 (merge_face_vectors): Copy font-spec if necessary.
10211 Clear properties of the font-spec if necessary.
10212 (merge_face_ref): Clear properties of the font-spec if necessary.
10213 (Finternal_set_lisp_face_attribute): Likewise.
10214 (set_font_frame_param): Use font_load_for_lface to load a
10215 font-object, and call Fmodify_frame_parameters with it.
10216 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10217 font name by Ffont_xlfd_name.
10218 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10219 QCslant, and QCwidth.
10220 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10221 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10222 Compare fonts by EQ.
10223 (lookup_non_ascii_face): Deleted.
10224 (face_for_font): The 2nd argument changed.
10225 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10226 Check atomic font properties by case insensitive.
10227 (realize_non_ascii_face): Set face->overstrike correctly.
10228 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10229 (dump_realized_face): Get font name from
10230 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10231
10232 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10233 conditionals. Don't check enable_font_backend. Delete all codes
10234 used only when USE_FONT_BACKEND is not defined.
10235 (xic_create_xfontset): Original code deleted and renamed from
10236 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10237 (x_make_gc): Don't set GCFont in GCs.
10238 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10239 opened by "fixed".
10240 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10241 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10242 get_font_repertory_func.
10243
10244 * xfont.c: Include <stdlib.h> and "ccl.h".
10245 (struct xfont_info): New structure.
10246 (xfont_query_font): Deleted.
10247 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10248 moved from xterm.c.
10249 (xfont_driver): Adjusted for the change of struct font_driver.
10250 (compare_font_names): New function.
10251 (xfont_list_pattern): Sort font names case insensitively. Make
10252 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10253 (xfont_list): Return a list, not vector.
10254 (xfont_match): If the font doesn't have QCname property, generate
10255 a name from the other font properties.
10256 (xfont_open): Return a font-object. Adjusted for the change of
10257 struct font. Get underline_thickness and underline_position from
10258 font property. Don't update dpyinfo->smallest_font_height and
10259 dpyinfo->smallest_char_width.
10260 (xfont_close): Don't free struct font.
10261 (xfont_prepare_face): Adjusted for the change of struct font.
10262 (xfont_done_face): Deleted.
10263 (xfont_has_char): Adjusted for the change of struct font.
10264 (xfont_encode_char, xfont_draw): Likewise.
10265 (xfont_check): New function.
10266
10267 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10268 callback function.
10269 (xftfont_match): Adjusted for the format change of font-entity.
10270 (xftfont_open): Adjusted for the format change of font-entity and
10271 font-object. Adjusted for the change of struct font. Return a
10272 font-object. Don't update dpyinfo->smallest_font_height and
10273 dpyinfo->smallest_char_width.
10274 (xftfont_close): Block input while calling XftFontClose.
10275 (xftfont_prepare_face): Don't block input while calling
10276 xftfont_get_colors. Adjusted for the change of struct font.
10277 (xftfont_shape): Return value of error case fixed.
10278
10279 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10280
10281 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10282 conditionals.
10283 (FONT_WIDTH): Return (f)->max_width.
10284 (struct x_display_info): Delete member `font'.
10285 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10286 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10287 (struct x_output): Change type of `font' to `struct font *'.
10288
10289 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10290 conditionals. Don't check enable_font_backend. Delete all codes
10291 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10292 (x_per_char_metric, x_encode_char): Deleted.
10293 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10294 (x_compute_glyph_string_overhangs): Adjusted for the change of
10295 `struct face'.
10296 (x_draw_glyph_string_foreground)
10297 (x_draw_composite_glyph_string_foreground): Likewise.
10298 (x_draw_glyph_string): Likewise. Use font->underline_position and
10299 font->underline_thickness.
10300 (x_new_font): Renamed from x_new_fontset2.
10301 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10302 (x_check_font): Call `check' method of a font driver.
10303 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10304 (x_query_font, x_get_font_repertory): Deleted.
10305 (x_find_ccl_program): Renamed and moved to xfont.c.
10306 (x_redisplay_interface): Adjusted for the change of `struct
10307 redisplay_interface'.
10308
10309 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10310 conditionals. Don't check enable_font_backend. Delete all codes
10311 used only when USE_FONT_BACKEND is not defined. Surround non-used
10312 code by "#ifdef OLD_FONT" and "endif".
10313 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10314
10315 * w32font.h (struct w32font_info): New member.
10316 (FONT_COMPAT): New macro.
10317 (w32font_open_internal): Prototype adjusted.
10318
10319 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10320 OLD_FONT" and "endif".
10321
10322 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10323 conditionals. Don't check enable_font_backend. Delete all codes
10324 used only when USE_FONT_BACKEND is not defined.
10325 (w32font_open): Return a font-object. Make a font-object by
10326 font_make_object. Adjusted for the change of struct w32font_info.
10327 (w32font_close): Don't free struct font. Adjusted for the change
10328 of struct w32font_info.
10329 (w32font_encode_char, w32font_text_extents, w32font_draw):
10330 Adjusted for the change of struct w32font_info.
10331 (w32font_draw): Likewise.
10332 (w32font_list_internal): Return a list, not vector.
10333 (w32font_open_internal): Change the 4th arg to font-object.
10334 Adjusted for the change of struct w32font_info and font-object format.
10335 (add_font_name_to_list): Don't downcase names.
10336 (w32_enumfont_pattern_entity): Make a font-entity by
10337 font_make_entity. Adjusted for the format change of font-entity.
10338 Use FONT_SET_STYLE to set a style-related font property. If a
10339 font is scalable, set avgwidth property to 0. Set font-entity
10340 property by font_put_extra.
10341 (font_matches_spec): Adjusted for the format change of font-entity.
10342 (w32_weight_table, w32_decode_weight): New variables.
10343 (w32_encode_weight): New function.
10344 (fill_in_logfont): Adjusted for the format change of font-spec.
10345 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10346 weight value.
10347 (w32font_driver): Adjusted for the change of struct font_driver.
10348
10349 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10350 conditionals. Don't check enable_font_backend. Surround non-used
10351 code by "#ifdef OLD_FONT" and "endif".
10352 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10353 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10354
10355 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10356 conditionals. Don't check enable_font_backend. Delete all codes
10357 used only when USE_FONT_BACKEND is not defined. Surround non-used
10358 code by "#ifdef OLD_FONT" and "endif".
10359
10360 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10361 (uniscribe_open): Return value changed to font-object.
10362 Adjusted for the format change of font-object.
10363 (uniscribe_otf_capability): Adjusted for the change of struct font.
10364 (add_opentype_font_name_to_list): Don't downcase names.
10365 (uniscribe_font_driver): Adjusted for the change of struct
10366 font_driver.
10367
10368 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
10369
10370 * dispnew.c (update_frame_1): Check if tty output is still valid
10371 before flushing it.
10372
10373 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10374
10375 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10376 to Gtk+ menus.
10377
10378 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10379
10380 * dired.c (file_name_completion): Tweak the code so as to always do it
10381 in a single pass. Tighten the scope of some variables.
10382
10383 * dired.c (Qdefault_directory): New var.
10384 (file_name_completion): Use it instead of Fexpand_file_name.
10385 (syms_of_dired): Initialize it.
10386
10387 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10388
10389 * fileio.c (double_dollars): Remove dead code.
10390
10391 2008-05-10 Eli Zaretskii <eliz@gnu.org>
10392
10393 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10394 Mention w32-get-true-file-attributes in doc string.
10395
10396 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10397
10398 2008-05-09 Glenn Morris <rgm@gnu.org>
10399
10400 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10401 2008-04-23.
10402
10403 2008-05-09 Eli Zaretskii <eliz@gnu.org>
10404
10405 Support for reporting owner and group of each file on MS-Windows:
10406 * dired.c (stat_uname, stat_gname): New functions, with special
10407 implementation for w32.
10408 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10409
10410 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10411 (dflt_group_name): New static variable.
10412 (dflt_group): Rename from the_group.
10413 (init_user_info): Init dflt_group fields. Get user's group name
10414 from LookupAccountSid.
10415 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10416 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10417 New initialization states.
10418 (globals_of_w32): Initialize them to zero. Initialize the default
10419 group name to "None".
10420 (GetFileSecurity_Name): New global var, the name of the function
10421 to call for GetFileSecurity.
10422 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10423 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10424 (get_file_security, get_security_descriptor_owner)
10425 (get_security_descriptor_group, is_valid_sid)
10426 (get_file_security_desc, get_rid, get_name_and_id)
10427 (get_file_owner_and_group): New functions.
10428 (stat): Use get_file_security_desc and get_file_owner_and_group to
10429 report the owner and primary group of each file. Don't ignore the
10430 high 32 bits of file's size, now that st_size is 64-bit wide.
10431 Fix test when to get true file attributes.
10432 (init_user_info): Use get_rid instead of equivalent inline code.
10433 (fstat): Don't ignore the high 32 bits of file's size.
10434
10435 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
10436
10437 * image.c (png_load): Use correct bit-depth for setting background
10438 color.
10439
10440 2008-05-08 Eli Zaretskii <eliz@gnu.org>
10441
10442 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10443 epa-hook.elc.
10444
10445 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
10446
10447 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10448
10449 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10450
10451 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10452 because the original parameters are in pure storage now.
10453 (mac_window): Remove unused params. Update callers.
10454
10455 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10456
10457 * lread.c (substitute_object_recurse): Use lower-level primitives.
10458 Don't signal errors when traversing sub-char-tables.
10459 Don't loop over all the possible characters when traversing char-tables.
10460
10461 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10462 just like we do in print.c.
10463
10464 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10465
10466 * minibuf.c (Ftry_completion): Remove code left over from when we used
10467 scmp instead of Fcompare_strings.
10468
10469 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
10470
10471 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10472
10473 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10474
10475 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10476 Create bitmap context in native byte order.
10477
10478 * macterm.c (XDrawLine)
10479 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10480 context in native byte order.
10481
10482 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10483
10484 * config.in: Regenerate.
10485
10486 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10487 New definitions for Image I/O support.
10488 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10489 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10490 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10491 (mac_data_provider_release_data, image_load_image_io)
10492 [USE_MAC_IMAGE_IO]: New functions.
10493 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10494 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10495 (init_image_func_pointer) [MAC_OSX]: Remove function.
10496 (image_load_quartz2d) [MAC_OSX]: Check availability of
10497 CGImageCreateWithPNGDataProvider at compile time.
10498 Use lowercase `false' for boolean constant.
10499 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10500 Use image_load_image_io.
10501 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10502 Don't check MyCGImageCreateWithPNGDataProvider.
10503 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10504 Don't call init_image_func_pointer.
10505
10506 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10507
10508 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10509 Make variable non-static.
10510 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10511 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10512
10513 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10514 (RED_FROM_ULONG): Mask off higher bits.
10515 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10516
10517 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10518 Include AvailabilityMacros.h.
10519 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10520 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10521
10522 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10523
10524 * chartab.c (Fset_char_table_range): If range is t, really set all
10525 chars to that value.
10526
10527 2008-05-03 Eli Zaretskii <eliz@gnu.org>
10528
10529 * dired.c (Ffile_attributes): Don't allow the device number become
10530 negative.
10531
10532 2008-05-02 Daiki Ueno <ueno@unixuser.org>
10533
10534 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10535
10536 2008-05-02 Juri Linkov <juri@jurta.org>
10537
10538 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10539 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10540 DEFAULT argument as a list of default values in docstrings.
10541
10542 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
10543
10544 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10545
10546 2008-05-01 Martin Rudalics <rudalics@gmx.at>
10547
10548 * dispnew.c (change_frame_size_1): Preserve small windows when
10549 shrinking frames by calling set_window_height|width with third
10550 arg 2.
10551
10552 * window.h (struct window): Replace field too_small_ok by field
10553 resize_proportionally.
10554
10555 * window.c (make_window): Initialize resize_proportionally.
10556 (enlarge_window): Temporarily set resize_proportionally to make
10557 sure that shrink_windows does scale the window proportionally.
10558 (shrink_windows): When window has resize_proportionally set try
10559 to shrink it proportionally by stealing from other windows.
10560 (struct saved_window, Fset_window_configuration)
10561 (compare_window_configurations): Handle resize_proportionally.
10562 (WINDOW_TOTAL_SIZE): New macro.
10563 (window_min_size, shrink_windows, size_window): Use it.
10564 (check_min_window_sizes): Remove. Invalid values of
10565 window-min-height|width are handled by window_min_size_2 now.
10566 (size_window, Fsplit_window, enlarge_window)
10567 (adjust_window_trailing_edge, grow_mini_window): Don't call
10568 check_min_window_sizes.
10569 (window_min_size_2, window_min_size_1, window_min_size):
10570 New argument safe_p for retrieving "safe" minimum sizes.
10571 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10572 (adjust_window_trailing_edge, grow_mini_window):
10573 Adjust arguments of window_min_size... functions.
10574 (shrink_windows): Argument min_size removed. New argument
10575 safe_p allows shrinking windows to their safe minimum sizes.
10576 Calculate minimum size and decide whether a window shall be
10577 deleted for each window individually.
10578 (size_window): When nodelete_p equals 2, tell shrink_windows to
10579 delete windows only if their new minimum size is no more safe.
10580 (shrink_window_lowest_first): Call window_min_size_1 to make
10581 sure to preserve modeline of bottom-most window when resizing
10582 the minibuffer.
10583 (Fset_window_configuration, Fcurrent_window_configuration)
10584 (compare_window_configurations): Do not handle
10585 window-min-height|width any more.
10586 (syms_of_window): Clarify window-min-height|width doc-strings.
10587
10588 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10589
10590 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10591 some more. Copy some of the code from Ftry_completions.
10592 Remove special case code that dates back to initial revision when the
10593 slash was only added when necessary and that can't trigger nowadays.
10594
10595 2008-04-27 Kenichi Handa <handa@m17n.org>
10596
10597 * font.c (font_prop_validate): Signal `error' instead of `font'.
10598
10599 2008-04-29 Jason Rumney <jasonr@gnu.org>
10600
10601 * w32fns.c (Fw32_battery_status): New defun.
10602 (syms_of_w32fns): Defsubr it.
10603
10604 2008-04-28 Andreas Schwab <schwab@suse.de>
10605
10606 * dired.c (file_name_completion): Fix another mixing of encoded
10607 and decoded names.
10608
10609 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
10610
10611 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10612
10613 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
10614
10615 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10616
10617 2008-04-27 Andreas Schwab <schwab@suse.de>
10618
10619 * dired.c (file_name_completion): Fix inappropriate mixing of
10620 encoded and decoded names.
10621
10622 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10623
10624 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10625
10626 2008-04-26 Eli Zaretskii <eliz@gnu.org>
10627
10628 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10629 2008-03-31, it's not needed anymore with `struct stat' definition
10630 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10631 for the same reasons.
10632
10633 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10634
10635 * m/sparc.h: Additional redefinitions for GNU/Linux.
10636
10637 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10638
10639 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10640 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10641 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10642 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10643 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10644 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10645 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10646 Likewise.
10647
10648 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10649 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10650 (mac_ax_number_of_characters): Add externs.
10651 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10652 [USE_MAC_TSM]: Likewise.
10653 (mac_handle_text_input_event) [MAC_OSX]:
10654 Handle kEventTextInputOffsetToPos for no active input area case.
10655 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10656 (mac_handle_document_access_event)
10657 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10658 (install_application_handler) [MAC_OSX]: Register handlers for
10659 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10660 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10661 Register mac_handle_document_access_event.
10662
10663 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10664 Make functions non-static.
10665
10666 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10667
10668 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10669 (read_file_name_completion_ignore_case, insert_default_directory)
10670 (Qdefault_directory): Move to minibuffer.el.
10671 (Fread_file_name): Call the new `read-file-name' instead.
10672
10673 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10674
10675 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10676 Make function non-static.
10677 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10678 Remove function.
10679 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10680 Move to mactoolbox.c.
10681 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10682
10683 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10684 (mac_rect_make): New macro.
10685
10686 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10687 instead of float.
10688 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10689 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10690 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10691 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10692 CGRectMake.
10693 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10694 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10695 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10696 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10697 instead of WindowRef in argument type.
10698 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10699 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10700 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10701 instead of DISPLAY. All uses changed.
10702 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10703 (x_calc_absolute_position): Simplify so as not to use
10704 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10705
10706 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10707 instead of WindowRef in argument type.
10708 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10709 [TARGET_API_MAC_CARBON]: Remove externs.
10710 (create_apple_event, mac_event_parameters_to_lisp)
10711 [TARGET_API_MAC_CARBON]: Add externs.
10712
10713 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10714 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10715 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10716 is clicked.
10717 (x_activate_menubar): Remove extern for saved_menu_event_location.
10718 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10719 Move from mac.c.
10720
10721 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10722
10723 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10724 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10725
10726 2008-04-23 Jason Rumney <jasonr@gnu.org>
10727
10728 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10729 attributes only for local files.
10730
10731 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10732 default to Qlocal.
10733
10734 2008-04-22 Juri Linkov <juri@jurta.org>
10735
10736 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10737 read-buffer-to-switch instead of using the letter "B".
10738
10739 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10740
10741 * fileio.c (Qdefault_directory): New variable.
10742 (Fread_file_name): Use it to pass `dir' to the completion functions.
10743
10744 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
10745
10746 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10747
10748 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10749
10750 * keyboard.c (Vpre_help_message): Remove.
10751 (show_help_echo): Remove default C code.
10752
10753 * dired.c (directory_files_internal, file_name_completion):
10754 Only call ENCODE_FILE if the string is indeed decoded.
10755
10756 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10757
10758 * Makefile.in (TOOLKIT_DEFINES): Remove.
10759 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10760
10761 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10762
10763 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10764 (mactoolbox.o): New target.
10765
10766 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10767 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10768
10769 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10770 Use mac_set_frame_window_background instead of XSetWindowBackground.
10771 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10772 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10773 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10774 instead of SetWindowTitleWithCFString.
10775 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10776 Move function to mactoolbox.c.
10777 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10778 Use mac_set_window_modified instead of SetWindowModified.
10779 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10780 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10781 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10782 FrontNonFloatingWindow. Use mac_activate_window instead of
10783 ActivateWindow. Use mac_active_non_floating_window instead of
10784 ActiveNonFloatingWindow.
10785 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10786 Use mac_show_hourglass and mac_hide_hourglass.
10787 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10788 instead of GetGlobalMouse.
10789 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10790 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10791 Use mac_bring_window_to_front instead of BringToFront.
10792 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10793 mactoolbox.c.
10794 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10795 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10796 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10797 mactoolbox.c.
10798
10799 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10800 (XtPointer): Move typedef from macmenu.c.
10801 (enum button_type): Move enum from macmenu.c.
10802 (widget_value): Move typedef from macmenu.c.
10803 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10804 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10805 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10806 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10807 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10808 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10809 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10810 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10811 (Selection): Move typedef from macselect.c.
10812 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10813 macterm.c.
10814 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10815 (mac_is_window_collapsed, mac_bring_window_to_front)
10816 (mac_send_window_behind, mac_hide_window, mac_show_window)
10817 (mac_collapse_window, mac_front_non_floating_window)
10818 (mac_active_non_floating_window, mac_activate_window)
10819 (mac_move_window_structure, mac_move_window, mac_size_window)
10820 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10821
10822 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10823 (enum mac_menu_kind): Move enum to mactoolbox.c.
10824 (min_menu_id): Move variable to mactoolbox.c.
10825 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10826 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10827 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10828 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10829 [TARGET_API_MAC_CARBON]: Likewise.
10830 (XtPointer): Move typedef to macgui.h.
10831 (enum button_type): Move enum to macgui.h.
10832 (widget_value): Move typedef to macgui.h.
10833 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10834 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10835 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10836 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10837 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10838 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10839 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10840 (popup_activated_flag): Make variable non-static.
10841 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10842 (add_menu_item, fill_menu, dispose_menus):
10843 Move functions to mactoolbox.c.
10844 (restore_show_help_function, menu_target_item_handler)
10845 (install_menu_target_item_handler, mac_handle_dialog_event)
10846 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10847 [TARGET_API_MAC_CARBON]: Likewise.
10848 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10849 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10850 (find_and_call_menu_selection, name_is_separator): Make function
10851 non-static.
10852 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10853 to mactoolbox.c.
10854 (set_frame_menubar): Don't call install_menu_quit_handler.
10855 (menu_item_selection): New variable.
10856 (mac_menu_show): Use create_and_show_popup_menu.
10857 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10858 selection but set variable menu_item_selection. All uses changed.
10859 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10860 Call install_menu_quit_handler. Move to mactoolbox.c.
10861
10862 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10863 (Selection): Move typedef to macgui.h.
10864 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10865 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10866 Make variables non-static.
10867 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10868 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10869 Make functions non-static.
10870 (Vmac_service_selection) [MAC_OSX]: Likewise.
10871 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10872 (mac_valid_selection_target_p, mac_clear_selection)
10873 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10874 (mac_put_selection_value, mac_selection_has_target_p)
10875 (mac_get_selection_value, mac_get_selection_target_list)
10876 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10877 Move functions to mactoolbox.c.
10878 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10879 Likewise.
10880 (copy_scrap_flavor_data, mac_handle_service_event)
10881 (install_service_handler) [MAC_OSX]: Likewise.
10882 (syms_of_macselect) <Vmac_dnd_known_types>:
10883 Use mac_dnd_default_known_types.
10884
10885 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10886 Move to mactoolbox.c.
10887 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10888 (Fx_selection_owner_p): Add EXFUN.
10889 (install_window_handler, remove_window_handler, XSetWindowBackground):
10890 Remove externs.
10891 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10892 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10893 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10894 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10895 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10896 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10897 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10898 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10899 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10900 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10901 (mac_valid_selection_target_p, mac_clear_selection)
10902 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10903 (mac_put_selection_value, mac_selection_has_target_p)
10904 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10905 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10906 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10907 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10908 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10909 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10910 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10911 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10912 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10913
10914 * mactoolbox.c: New file.
10915
10916 2008-04-18 Jason Rumney <jasonr@gnu.org>
10917
10918 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10919
10920 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10921
10922 * character.c (Fmultibyte_char_to_unibyte):
10923 Return latin1 chars unchanged.
10924
10925 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10926 relocated if it points to `name'.
10927
10928 2008-04-17 Kenichi Handa <handa@m17n.org>
10929
10930 * data.c (Faset): Allow setting a multibyte character in an
10931 ASCII-only unibyte string.
10932
10933 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10934
10935 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10936
10937 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10938 done in config.h.
10939
10940 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
10941
10942 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10943 (Fchar_direction): Add usage in the docstring.
10944
10945 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
10946
10947 * keyboard.c (read_key_sequence): Remove always-true checks.
10948
10949 2008-04-14 Jason Rumney <jasonr@gnu.org>
10950
10951 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10952 compatibility struct, for better underline positioning.
10953
10954 2008-04-13 David Hansen <david.hansen@gmx.net>
10955
10956 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10957 string.
10958
10959 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10960
10961 * m/hp800.h (XUINT, XSET): Remove.
10962
10963 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
10964
10965 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10966 previous change.
10967
10968 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10969
10970 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10971 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10972
10973 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10974
10975 * keymap.h (map_keymap_canonical): Declare.
10976 * xmenu.c (single_keymap_panes): Use it.
10977
10978 2008-04-11 Glenn Morris <rgm@gnu.org>
10979
10980 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10981 set the target's value to that of the alias.
10982
10983 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10984
10985 * term.c (set_tty_color_mode): Left over typo.
10986
10987 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
10988
10989 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10990 only after check for file name handler functions. Signal, when
10991 native functionality is not supported.
10992 (syms_of_fileio): Declare it unconditionally.
10993
10994 2008-04-10 Jason Rumney <jasonr@gnu.org>
10995
10996 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10997 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10998
10999 * w32.c (logon_network_drive): Also logon to remote drives that
11000 are mapped to drive letters.
11001
11002 2008-04-10 Glenn Morris <rgm@gnu.org>
11003
11004 * xdisp.c (truncate-partial-width-windows): Doc fix.
11005
11006 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11007
11008 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11009 Move functions to minibuffer.el.
11010 (syms_of_fileio): Don't declare them.
11011
11012 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11013
11014 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11015 (syms_of_minibuf): Remove its initialization.
11016
11017 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11018
11019 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
11020
11021 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11022
11023 2008-04-09 Jason Rumney <jasonr@gnu.org>
11024
11025 * makefile.w32-in (distclean): Delete makefile too.
11026 (maintainer-clean): New target.
11027
11028 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11029
11030 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11031 for new font backend and composite cases.
11032
11033 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11034
11035 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11036 Most of the code moved to run_timers.
11037 (do_pending_atimers): Call run_timers.
11038 (run_timers): New function.
11039
11040 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11041 run atimers.
11042
11043 * process.c (wait_reading_process_output): The same as above.
11044
11045 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11046
11047 * minibuf.c (last_exact_completion): Remove variable.
11048 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11049 (complete_and_exit_1, complete_and_exit_2)
11050 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11051 (Fdisplay_completion_list, display_completion_list_1)
11052 (Fminibuffer_completion_help, Fself_insert_and_exit)
11053 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11054 minibuffer.el.
11055 (syms_of_minibuf): Remove corresponding initializations.
11056
11057 * keyboard.c (Qdeactivate_mark): New var.
11058 (command_loop_1): Use it to call `deactivate-mark'.
11059 (syms_of_keyboard): Initialize it.
11060
11061 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11062 to another frame.
11063 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11064 Don't call set_tty_color_mode.
11065 (store_frame_param): Reset previous_frame rather than call
11066 set_tty_color_mode.
11067 * term.c (set_tty_color_mode): Rewrite.
11068 * dispextern.h (set_tty_color_mode): New type.
11069 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11070
11071 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11072
11073 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11074 for generic chars, which do not exist any more in emacs-unicode.
11075
11076 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
11077
11078 * coding.c (detect_coding_emacs_mule)
11079 (Ffind_operation_coding_system): Fix typo.
11080
11081 2008-04-08 Jason Rumney <jasonr@gnu.org>
11082
11083 * w32uniscribe.c (SNAME): Extract only symbol name.
11084
11085 * w32font.h (struct w32_metric_cache): New struct.
11086 (w32font_info): Use it.
11087 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11088 (CACHE_BLOCKSIZE): New constants.
11089
11090 * w32font.c (Qja, Qko, Qzh): New symbols.
11091 (syms_of_w32font): Initialise them.
11092 (font_matches_spec): Use them to filter by language.
11093 (recompute_cached_metrics): Remove function.
11094 (compute_metrics, clear_cached_metrics): New functions.
11095 (w32font_encode_char): Use them to manage metric cache.
11096 (w32font_text_extents): Cache metrics for all glyphs on demand.
11097 Delay converting glyph indices to WORD until needed.
11098 (w32font_open_internal): Initialize metric cache to empty.
11099 (registry_to_w32_charset): Charset should always be a symbol.
11100 (fill_in_logfont, list_all_matching_fonts): Family should
11101 always be a symbol.
11102
11103 2008-04-06 Jason Rumney <jasonr@gnu.org>
11104
11105 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11106 Give up if glyph indices not supported. Use uniscribe obtained
11107 ABC widths for individual metrics. Map glyph clusters back to
11108 characters using fClusterStart flag. Return number of glyphs
11109 produced, not chars processed.
11110 (uniscribe_shape): Map char at FROM to current glyph.
11111
11112 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11113
11114 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11115 Use SetMenuItemHierarchicalMenu.
11116
11117 2008-04-05 Jason Rumney <jasonr@gnu.org>
11118
11119 * image.c (pbm_load): Allow color values up to 65535.
11120 Throw an error if max_color_idx is outside the supported range.
11121 Report an error when image size is invalid.
11122 Read two bytes at a time when raw images have max_color_idx above 255.
11123
11124 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11125
11126 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11127 cFileName a file name that includes `?' characters, use the 8+3
11128 alias in cAlternateFileName instead.
11129
11130 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11131
11132 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11133 append "CCL: Quitted" when the CCL program is quitted.
11134 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11135
11136 * ccl.h (struct ccl_program): New member quit_silently.
11137
11138 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
11139
11140 * search.c (compile_pattern_1): Treat non-nil and non-string of
11141 search-spaces-regexp as nil.
11142
11143 * minibuf.c (Fassoc_string): Tweak docstring.
11144
11145 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11146
11147 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11148 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11149 2008-03-14 to force inode be positive.
11150
11151 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11152 _S_* ones, since we now use our own sys/stat.h.
11153 (stat, fstat): Don't mangle the inode number.
11154 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11155
11156 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11157
11158 * frame.h (struct frame): Give one more bit to `visible' since we use
11159 values larger than 1 to indicate obscured frames on ttys.
11160
11161 * keymap.c (Qkeymap_canonicalize): New var.
11162 (Fmap_keymap_internal): New fun.
11163 (describe_map): Use keymap-canonicalize.
11164
11165 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11166 (Fundo_boundary): Set them.
11167 (syms_of_undo): Initialize them.
11168 (record_point): Use them instead of last_point_position*.
11169 (last_undo_buffer): Change type.
11170
11171 2008-04-04 Jason Rumney <jasonr@gnu.org>
11172
11173 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11174 (recompute_cached_metrics): Don't set ascent and descent per char.
11175
11176 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11177 (uniscribe_check_otf): Add GC protection before consing.
11178 Rearrange loop for counting features.
11179
11180 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11181
11182 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11183 buffer with byte-size of source buffer.
11184
11185 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
11186
11187 * callint.c (Fcall_interactively): Handle temporary region even
11188 when shift-select-mode is off.
11189
11190 2008-04-03 Jason Rumney <jasonr@gnu.org>
11191
11192 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11193
11194 2008-04-03 Kenichi Handa <handa@m17n.org>
11195
11196 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11197 (CATEGORY_MASK_UTF_16): Likewise.
11198 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11199 binary file.
11200 (detect_coding): Add null-byte detection for a binary file.
11201 (detect_coding_system): Likewise.
11202
11203 2008-04-03 Jason Rumney <jasonr@gnu.org>
11204
11205 * w32uniscribe.c: New file.
11206
11207 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11208
11209 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11210
11211 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11212 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11213 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11214 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11215 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11216 (Qphonetic): New symbols.
11217 (syms_of_w32font): Initialize them.
11218 (font_supported_scripts): Use them.
11219 (w32font_list_family): List all charsets.
11220 (w32font_text_extents, recompute_cached_metrics): Fix metric
11221 calculations.
11222 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11223 Give opentype fonts their own format.
11224 (font_matches_spec): New arguments backend and logfont.
11225 Handle :otf spec for uniscribe backend.
11226 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11227 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11228
11229 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11230 font backend.
11231 (globals_of_w32fns): Initialize uniscribe font backend.
11232
11233 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11234 dependencies.
11235 (w32uniscribe.$(O)): New file to build.
11236 (FONT_OBJ): Include w32uniscribe.$(O).
11237 (LIBS): Add uniscribe libraries.
11238
11239 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11240
11241 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
11242
11243 * callint.c (Vshift_select_mode): New var.
11244 (Finteractive): Document new ^ spec.
11245 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11246 is present.
11247
11248 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11249 (command_loop_1): Avoid running the direct display versions of
11250 forward-char and backward-char if shift-selection may occur.
11251 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11252 shift-translation takes place.
11253
11254 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11255 avoid clobbering by define-minor-mode.
11256
11257 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11258 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11259
11260 * syntax.c (Fforward_word): Add ^ interactive spec.
11261
11262 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11263 (Fscroll_right): Add ^ interactive spec.
11264
11265 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11266
11267 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11268
11269 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11270
11271 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11272
11273 2008-03-31 Juri Linkov <juri@jurta.org>
11274
11275 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11276
11277 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11278
11279 * gtkutil.c (xg_set_geometry): Fix indentation.
11280 (xg_resize_outer_widget): Remove.
11281 (x_wm_size_hint_off): Fix indentation.
11282 (xg_frame_set_char_size): Call flush_and_sync after
11283 gtk_window_resize.
11284 (x_wm_set_size_hint): Pass NULL as geometry window to
11285 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11286 Add menu bar and tool bar height to base height.
11287 (xg_update_frame_menubar, free_frame_menubar)
11288 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11289 (update_frame_tool_bar, free_frame_tool_bar):
11290 Change xg_resize_outer_widget to xg_frame_set_char_size.
11291
11292 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
11293
11294 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11295 (Fdbus_call_method): New parameter TIMEOUT.
11296 (dbus-send-signal): Optimize UNGCPRO call.
11297
11298 2008-03-29 Juri Linkov <juri@jurta.org>
11299
11300 * window.c (Fdisplay_buffer): Move call to
11301 Vsplit_window_preferred_function out of conditions that check
11302 if window is eligible for vertical splitting.
11303 When Vsplit_window_preferred_function is non-nil, call it and use
11304 its non-nil return value as window. Otherwise, continue doing
11305 vertical splitting using Fsplit_window with arg horflag=nil.
11306 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11307 default value from `split-window' to nil.
11308
11309 2008-03-29 Juri Linkov <juri@jurta.org>
11310
11311 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11312 for interactive code letters 'b' and 'B'.
11313
11314 2008-03-29 Eli Zaretskii <eliz@gnu.org>
11315
11316 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11317 multibyte string.
11318
11319 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11320
11321 * keyboard.c (pending_funcalls): New var.
11322 (timer_check): Run it.
11323 (syms_of_keyboard): Initialize it.
11324 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11325 (Vdelete_terminal_functions): New vars.
11326 (syms_of_terminal): Initialize them.
11327 (Fdelete_terminal): Run delete-terminal-functions.
11328 * xdisp.c (safe_eval): Rewrite.
11329 (safe_call2): New fun.
11330 * frame.c (Qdelete_frame_functions): New var.
11331 (syms_of_frame): Initialize it.
11332 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11333 * lisp.h (safe_call2, pending_funcalls): Declare.
11334
11335 2008-03-28 Andreas Schwab <schwab@suse.de>
11336
11337 * indent.c (Fmove_to_column): Move declaration before statements.
11338
11339 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11340
11341 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11342 (struct frame): Use bit fields for boolean vars.
11343
11344 * process.c (server_accept_connection): Simplify naming.
11345 (emacs_get_tty_pgrp): Use SDATA.
11346
11347 * coding.c (decode_coding_object): Fix last change.
11348
11349 2008-03-27 Jason Rumney <jasonr@gnu.org>
11350
11351 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11352
11353 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11354
11355 * charset.c (Fdefine_charset_internal): Change the way of
11356 registering charsets in Vcharset_order_list.
11357 (syms_of_charset): Make the charset `eight-bit' supplementary.
11358
11359 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11360
11361 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11362 operations, to avoid having the difference between pointers
11363 overflow.
11364
11365 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11366
11367 * indent.c (check_display_width): New fun.
11368 (scan_for_column): Use it.
11369
11370 * data.c (syms_of_data): Mark most-positive-fixnum and
11371 most-negative-fixnum as constants.
11372
11373 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11374
11375 * indent.c (scan_for_column): Extract from current_column_1.
11376 Merge with the same code from Fmove_to_column.
11377 (current_column_1, Fmove_to_column): Use it.
11378
11379 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11380
11381 * keymap.c (map_keymap_internal): New fun.
11382 (map_keymap): Use it.
11383 (Fmap_keymap_internal): New fun.
11384 (Fmap_keymap): Remove left-out test from before make_save_value.
11385
11386 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11387
11388 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11389 Use XCAR/XCDR.
11390
11391 * process.h (struct Lisp_Process): Remove filter_multibyte.
11392 * process.c (QCfilter_multibyte): Remove.
11393 (setup_process_coding_systems): Don't use filter_multibyte.
11394 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11395 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11396 (Fset_process_filter_multibyte): Change the coding-system to
11397 approximate the previous behavior.
11398 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11399 coding-system.
11400
11401 * coding.c (decode_coding_object): When not decoding into a buffer,
11402 obey the coding system's preference of (uni|multi)byte.
11403
11404 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11405
11406 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11407 every char is changed and has a different byte-length.
11408 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11409 Fix int -> EMACS_INT.
11410
11411 2008-03-23 David Hansen <david.hansen@gmx.net>
11412
11413 * dbusbind.c (xd_read_message): Remove extra copying of message
11414 strings. Check for NULL `interface' or `member'.
11415
11416 2008-03-22 Eli Zaretskii <eliz@gnu.org>
11417
11418 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11419 cFileName a file name that includes `?' characters, use the 8+3
11420 alias in cAlternateFileName instead.
11421
11422 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11423
11424 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11425
11426 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11427
11428 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11429 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11430 work on current_buffer only instead (that was already the case
11431 for some of the code anyway).
11432 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11433 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11434 (SET_PT, SET_PT_BOTH): Adjust.
11435 * intervals.h (set_point, temp_set_point, set_point_both)
11436 (temp_set_point_both): Remove redundant declarations.
11437
11438 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11439
11440 * fileio.c (Finsert_file_contents):
11441 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11442 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11443 when buffer != current_buffer anyway.
11444
11445 2008-03-20 Andreas Schwab <schwab@suse.de>
11446
11447 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11448 as default.
11449
11450 2008-03-19 Jason Rumney <jasonr@gnu.org>
11451
11452 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11453 (syms_of_w32fns): Initialize them.
11454 (HOURGLASS_ID): New constant.
11455 (x_window_to_frame): Don't check hourglass_window.
11456 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11457 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11458 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11459 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11460 Only change the cursor if hourglass is not active.
11461 (Fx_create_frame): Initialize frame's current_cursor.
11462 (hourglass_atimer): Remove.
11463 (hourglass_started): New function.
11464 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11465 (show_hourglass): Adapt to w32, changing argument to frame.
11466
11467 * w32term.h (struct w32_output): Remove hourglass_window.
11468 Add current_cursor.
11469
11470 * eval.c (call_debugger, Fsignal):
11471 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11472 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11473 (Fexecute_extended_command, cancel_hourglass_unwind):
11474 * minibuf.c (read_minibuf):
11475 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11476
11477 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11478
11479 * window.c (run_funs): New fun.
11480 (run_window_configuration_change_hook): Use it to run the buffer-local
11481 and the global part of the hook.
11482
11483 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11484 (unwind_format_mode_line): Restore selected window.
11485 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11486
11487 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11488
11489 * editfns.c (Fchar_equal): Check they are valid characters.
11490
11491 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11492
11493 2008-03-17 Andreas Schwab <schwab@suse.de>
11494
11495 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11496 against a charset.
11497
11498 * lisp.h (Fbuffer_list): Declare.
11499
11500 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
11501
11502 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11503 handlebox_widget is != 0.
11504
11505 2008-03-16 Juri Linkov <juri@jurta.org>
11506
11507 * callint.c (Fcall_interactively): For interactive code letters
11508 'b' and 'B' put the buffer list into the list of default "future"
11509 values of the minibuffer.
11510
11511 2008-03-16 Andreas Schwab <schwab@suse.de>
11512
11513 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11514 modifiers.
11515
11516 * regex.c (re_match_2_internal): Correct matching of a charset
11517 against latin-1 characters.
11518
11519 2008-03-16 Kenichi Handa <handa@m17n.org>
11520
11521 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11522 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11523 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11524 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11525 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11526 CHAR_STRING_ADVANCE.
11527 (produce_chars): Fix for the case that the source and the
11528 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11529 instead of CHAR_STRING_ADVANCE.
11530 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11531 STRING_CHAR_ADVANCE.
11532
11533 2008-03-15 Andreas Schwab <schwab@suse.de>
11534
11535 * regex.c (re_match_2_internal): Correct matching of eight bit
11536 characters in unibyte strings.
11537
11538 2008-03-15 Martin Rudalics <rudalics@gmx.at>
11539
11540 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11541 at end of range when it coincides with the end of the buffer.
11542
11543 2008-03-14 Eli Zaretskii <eliz@gnu.org>
11544
11545 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11546
11547 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11548
11549 2008-03-14 Jason Rumney <jasonr@gnu.org>
11550
11551 * editfns.c (initial_tz): New variable.
11552 (syms_of_editfns): Initialize it.
11553 (Fset_time_zone_rule): Set it when first called.
11554 Use it when TZSTRING is nil.
11555
11556 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11557 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11558 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11559 (globals_of_w32fns): Initialize them.
11560 (compute_tip_xy): Use them to position tooltips.
11561
11562 2008-03-14 Glenn Morris <rgm@gnu.org>
11563
11564 * emacs.c (main): Revert previous change.
11565 (standard_args): Revert -internal-script back to -scriptload,
11566 and remove the long-option form.
11567
11568 2008-03-13 Glenn Morris <rgm@gnu.org>
11569
11570 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11571 Remove option -enable-font-backend.
11572
11573 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11574
11575 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11576
11577 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11578
11579 * xterm.c (x_connection_closed): For GTK: If this is the last
11580 terminal just exit without closing the display.
11581
11582 2008-03-11 Jason Rumney <jasonr@gnu.org>
11583
11584 * w32font.c (w32font_full_name): Use floor to round.
11585
11586 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11587
11588 * sound.c (alsa_configure): Declare vol at beginning of block.
11589
11590 * fontset.c (Ffontset_info): Remove extra semicolon.
11591
11592 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11593
11594 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11595 size of resulting string.
11596
11597 2008-03-10 Jason Rumney <jasonr@gnu.org>
11598
11599 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11600
11601 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11602
11603 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11604 Don't pretend as if characters with display property haven't been
11605 consumed for string-replacing-string case.
11606
11607 2008-03-08 Kim F. Storm <storm@cua.dk>
11608
11609 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11610 (get_next_display_element, next_element_from_string)
11611 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11612
11613 2008-03-08 Andreas Schwab <schwab@suse.de>
11614
11615 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11616
11617 2008-03-06 Jason Rumney <jasonr@gnu.org>
11618
11619 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11620 when charset not specified. Only translate ANSI to unicode when
11621 font_type is truetype.
11622 (w32font_coverage_ok): New function.
11623 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11624
11625 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11626
11627 * lread.c (Fread_char): Resolve modifiers.
11628 (Fread_char_exclusive): Likewise.
11629
11630 * character.c (char_resolve_modifier_mask): New function.
11631 (char_string): Use char_resolve_modifier_mask.
11632 (Fchar_resolve_modifiers): New function.
11633 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11634 function.
11635
11636 2008-03-04 Jason Rumney <jasonr@gnu.org>
11637
11638 * makefile.w32-in: Always include w32font.c in the build.
11639 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11640
11641 2008-03-04 Andreas Schwab <schwab@suse.de>
11642
11643 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11644 (versionclean): Likewise.
11645
11646 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
11647
11648 * .cvsignore: Add oo.
11649
11650 2008-03-03 Andreas Schwab <schwab@suse.de>
11651
11652 * coding.c (decode_coding_object): Inhibit gap shrinking while
11653 decoding in place.
11654
11655 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11656
11657 * w32term.c: Remove unused include "gnu.h".
11658 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11659
11660 * gnu.h: Rename to ...
11661 * emacs-icon.h: ... this.
11662 * xterm.c: Use emacs-icon.h instead of gnu.h.
11663 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11664
11665 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
11666
11667 * w32font.c: Include math.h.
11668
11669 2008-03-03 Jason Rumney <jasonr@gnu.org>
11670
11671 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11672 Compute options separately.
11673 (w32font_open_internal): Set glyph_idx before caching metrics.
11674
11675 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11676 Define if system headers don't.
11677 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11678 (w32font_encode_char): Don't declare here.
11679
11680 * w32font.c (Quniscribe, QCformat): New symbols.
11681 (syms_of_w32font): Define them.
11682 (w32font_has_char): Indicate uncertainty.
11683 (w32font_encode_char): Encode as glyph point. Make static.
11684 (recompute_cached_metrics): New function.
11685 (w32font_open_internal): Use it. Set font to use glyph points
11686 initially. Set format based on type of font.
11687 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11688 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11689 on it. Set format based on information available here.
11690 (add_font_entity_to_list): Identify backend based on opentype_only.
11691
11692 2008-03-02 Andreas Schwab <schwab@suse.de>
11693
11694 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11695
11696 * coding.c (decode_coding_big5, produce_chars):
11697 Fix typos in last change.
11698
11699 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11700
11701 * gnu.h: New icon.
11702
11703 2008-03-02 Kenichi Handa <handa@m17n.org>
11704
11705 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11706 `dos', don't decode '\r' if that is the last in the source.
11707 (decode_coding_utf_16, decode_coding_emacs_mule)
11708 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11709 (decode_coding_raw_text, decode_coding_charset): Likewise.
11710 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11711
11712 2008-03-01 Jason Rumney <jasonr@gnu.org>
11713
11714 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11715
11716 2008-03-01 Kim F. Storm <storm@cua.dk>
11717
11718 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11719
11720 2008-03-01 Jason Rumney <jasonr@gnu.org>
11721
11722 * w32font.c (w32font_full_name): New function.
11723 (w32font_open_internal): Use it.
11724
11725 2008-03-01 Kim F. Storm <storm@cua.dk>
11726
11727 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11728
11729 2008-03-01 Jason Rumney <jasonr@gnu.org>
11730
11731 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11732
11733 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11734
11735 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11736 xg_frame_resized when the event is for the edit widget.
11737
11738 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11739
11740 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11741 set_char_size.
11742 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11743 operations on widgets here. Just set frame size if needed.
11744 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11745 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11746 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11747 the whole frame.
11748 (xg_create_tool_bar): Move attachment of the tool bar to
11749 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11750 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11751
11752 2008-03-01 Jason Rumney <jasonr@gnu.org>
11753
11754 * w32fns.c (w32_msg_pump): Disable debug code.
11755
11756 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11757
11758 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11759
11760 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11761
11762 * xdisp.c (next_overlay_string): Don't set
11763 overlay_strings_at_end_processed_p if we're currently reading from
11764 a display string.
11765
11766 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11767
11768 * xdisp.c (get_overlay_strings_1): Fix typo.
11769
11770 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11771
11772 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11773
11774 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11775
11776 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11777
11778 * xdisp.c (display_mode_element): Cancel the previous change.
11779 (decode_mode_spec): Likewise.
11780 (handle_auto_composed_prop): Don't make composition if it->string
11781 is a string.
11782
11783 2008-02-27 Kim F. Storm <storm@cua.dk>
11784
11785 * lisp.h (GLYPH): Change type from int to struct with separate char
11786 and face_id members.
11787 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11788 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11789 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11790 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11791 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11792 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11793 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11794 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11795 handle new Lisp glyph code encoding, either an integer or a cons.
11796
11797 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11798 (GLYPH_ALIAS): Delete.
11799 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11800 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11801 (GLYPH_FROM_CHAR): Replace macro by ...
11802 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11803
11804 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11805 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11806 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11807 (GLYPH_INVALID_P): New macro.
11808 (spec_glyph_lookup_face): Update prototype.
11809
11810 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11811 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11812 new glyph code encoding.
11813 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11814 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11815
11816 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11817 Adapt to new glyph type and new glyph code encoding.
11818
11819 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11820
11821 * indent.c (current_column, current_column_1, Fmove_to_column)
11822 (compute_motion): Adapt to new glyph code encoding.
11823
11824 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11825
11826 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
11827
11828 * process.c (wait_reading_process_output): Check for window
11829 changes caused by timers.
11830 Suggested by Johan Bockgård.
11831
11832 2008-02-27 Glenn Morris <rgm@gnu.org>
11833
11834 * emacs.c (USAGE1): Add `--disable-font-backend'.
11835
11836 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11837
11838 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11839 is made to the buffer.
11840
11841 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11842
11843 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11844 (face_at_string_position):
11845 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11846 (face_at_string_position):
11847 * xdisp.c (display_string, next_overlay_change):
11848 * buffer.h (overlays_at):
11849 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11850 Update callers.
11851
11852 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
11853
11854 * editfns.c (Fformat): Doc fix.
11855
11856 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
11857
11858 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11859 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11860 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11861
11862 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11863
11864 * buffer.c (Fbuffer_swap_text): New function.
11865 (syms_of_buffer): Defsubr it.
11866
11867 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
11868
11869 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11870
11871 2008-02-25 Jason Rumney <jasonr@gnu.org>
11872
11873 * w32font.c (w32font_draw): Draw one character at a time when padding.
11874
11875 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11876
11877 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11878 Handle a nil arg. Use run_window_configuration_change_hook.
11879 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11880 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11881 Use run_window_configuration_change_hook.
11882
11883 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11884
11885 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11886 1-pixel width.
11887
11888 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11889
11890 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11891 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11892 if the glyph in the font is zero pixel with.
11893
11894 * dispextern.h (struct glyph_string): New member padding_p.
11895
11896 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11897
11898 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11899
11900 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11901
11902 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11903
11904 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11905
11906 2008-02-25 Jason Rumney <jasonr@gnu.org>
11907
11908 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11909
11910 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11911
11912 Allow fine-grained image-cache flushing.
11913 * dispextern.h (struct image): Add `dependencies' field.
11914 (clear_image_caches): Change arg to Lisp_Object.
11915 * image.c (make_image): Initialize `dependencies' field.
11916 (clear_image_cache): Change arg to allow fine-grained flushing.
11917 Perform the flush even if image-cache-eviction-delay is nil.
11918 (clear_image_caches): Change arg to Lisp_Object.
11919 (Fclear_image_cache): Expand meaning of the argument.
11920 (mark_image): Mark `dependencies' field.
11921 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11922 (lface_hash): Use XHASH rather than XFASTINT.
11923 (face_at_buffer_position): Fix int -> EMACS_INT position.
11924 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11925 (select_frame_for_redisplay): Remove code duplication.
11926 (redisplay_internal): Adapt arg to call to clear_image_caches.
11927
11928 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11929
11930 * s/vms4-0.h:
11931 * s/vms4-2.h:
11932 * s/vms4-4.h:
11933 * s/vms5-5.h: Remove, unused.
11934
11935 * s/irix5-2.h:
11936 * s/irix6-0.h:
11937 * s/riscos5.h:
11938 * s/mach-bsd4-3.h:
11939 * m/mips4.h: Remove files for obsolete systems.
11940
11941 * Makefile.in:
11942 * filelock.c:
11943 * unexmips.c:
11944 * m/hp9000s300.h:
11945 * m/iris4d.h:
11946 * s/aix3-1.h:
11947 * s/hpux.h:
11948 * s/msdos.h:
11949 * s/usg5-0.h:
11950 * s/usg5-2-2.h:
11951 * s/usg5-2.h:
11952 * s/usg5-3.h: Remove references to obsolete variables.
11953
11954 * s/irix5-0.h: Remove, move all the contents ...
11955 * s/irix6-5.h: ... here. Simplify.
11956 * config.in: Regenerate.
11957
11958 2008-02-24 Jason Rumney <jasonr@gnu.org>
11959
11960 * w32term.c (x_draw_glyph_string_background): Clear the background
11961 manually when cleartype is in use.
11962 (x_draw_glyph_string_foreground): Draw text transparently when
11963 cleartype is in use.
11964
11965 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11966 a font into it unless we have to.
11967
11968 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11969
11970 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11971 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
11972
11973 2008-02-18 Jason Rumney <jasonr@gnu.org>
11974
11975 * w32fns.c (Fw32_shell_execute): Encode parameters.
11976
11977 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11978
11979 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11980
11981 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
11982
11983 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11984
11985 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11986
11987 * xterm.c (x_set_offset): Don't change the gravity if
11988 CHANGE_GRAVITY is -1.
11989
11990 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
11991
11992 * fileio.c (auto_save_error_occurred): New var.
11993 (auto_save_error): Set it.
11994 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11995 error occurred.
11996
11997 2008-02-23 Eli Zaretskii <eliz@gnu.org>
11998
11999 * w32.c (globals_of_w32): Add initializations for
12000 g_b_init_get_sid_sub_authority and
12001 g_b_init_get_sid_sub_authority_count.
12002
12003 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12004
12005 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12006 (font_parse_xlfd): Use them for sanity check.
12007 (Finternal_set_font_style_table): Make sure the table is bijective.
12008
12009 Consolidate the image_cache to the terminal struct.
12010 * termhooks.h (P_): Remove redundant def.
12011 (struct terminal): New field `image_cache'.
12012 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12013 of FRAME_X_IMAGE_CACHE.
12014 * xterm.h (struct x_display_info): Remove image_cache field.
12015 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12016 * w32term.h (struct w32_display_info): Remove image_cache field.
12017 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12018 * macterm.h (struct mac_display_info): Remove image_cache field.
12019 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12020 * xterm.c (x_term_init):
12021 * w32term.c (w32_term_init):
12022 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12023 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12024 Remove declarations.
12025 (clear_image_caches, mark_image_cache): New declarations.
12026 * xfaces.c (clear_face_cache):
12027 * xdisp.c (redisplay_internal): Use clear_image_caches.
12028 * image.c (clear_image_cache): Don't check that a frame is on
12029 a window-system before checking if it shares the same cache.
12030 (clear_image_caches): New function.
12031 (Fclear_image_cache): Use it.
12032 (mark_image): Move from allo.c.
12033 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12034 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12035 (mark_object): Don't call mark_image_cache for frames.
12036 (mark_terminals): Call mark_image_cache.
12037
12038 * lisp.h (Fdelete_terminal): Declare.
12039
12040 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12041 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12042 wrong_type_argument.
12043
12044 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12045
12046 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12047 malayalam.el, and tamil.el. Add sinhala.el.
12048
12049 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12050
12051 * xterm.c (x_connection_closed): Consolidate identical tests.
12052 (x_delete_terminal): Don't crash if called via x_connection_closed.
12053
12054 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12055
12056 * xdisp.c (decode_mode_spec): New arg string.
12057 (display_mode_element): Adjust for the above change.
12058
12059 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12060
12061 * callint.c (Fcall_interactively): Use AREF.
12062
12063 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12064
12065 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12066
12067 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12068
12069 * xfns.c (Fx_show_tip): Set string to " " if empty.
12070
12071 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12072
12073 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12074 with Qt.
12075
12076 2008-02-17 Kenichi Handa <handa@m17n.org>
12077
12078 * ftfont.c (ftfont_shape): Return Lispy number.
12079
12080 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12081 for GCs.
12082 (Finternal_set_font_selection_order): Call font_update_sort_order
12083 only when enable_font_backend is set.
12084 (realize_x_face): Set face->font_info to that of default face only
12085 when enable_font_backend is set.
12086
12087 * xdisp.c (handle_composition_prop): Set it->c to the fist
12088 character of the composed region.
12089 (fill_composite_glyph_string): Set base_face->font_info to
12090 s->font_info. Get a face for ascii from base_face->ascii_face.
12091 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12092 with a face already decided.
12093 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12094 non-negative.
12095 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12096 call font_prepare_composition unconditionally.
12097
12098 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12099
12100 * xterm.h (struct x_display_info): New member font.
12101
12102 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12103 (x_set_mouse_face_gc, x_new_font): Likewise.
12104 (x_term_init): Setup display_info->font.
12105 (x_delete_terminal): Free display_info->font.
12106
12107 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12108
12109 * ftxfont.c (ftxfont_default_fid): Delete it.
12110 (ftxfont_open): Set xfont->fid to 0.
12111 (ftxfont_end_for_frame): Clear data specific to the frame and the
12112 font-driver.
12113
12114 * xftfont.c (xftfont_default_fid): Delete it.
12115 (xftfont_open): Set xfont->fid to 0.
12116
12117 * fontset.c (FONTSET_OBJLIST): New macro.
12118 (fontset_find_font): Update font-object list of the fontset.
12119 (free_realized_fontset): New function.
12120 (free_face_fontset): Call free_realized_fontset.
12121 (Ffont_info): Call font_close_object only when enable_font_backend
12122 is set.
12123
12124 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12125 [HAVE_NTGUI]: Include w32term.h.
12126 [MAC_OS]: Include macterm.ch.
12127 (font_otf_ValueRecord): Use make_number.
12128 (font_finish_cache): Fix handling of reference count.
12129 (font_clear_cache): Update num_fonts.
12130 (font_open_entity): Update smallest_char_width and
12131 smallest_font_height of the frame.
12132 (font_close_object): Update num_fonts.
12133 (Fclear_font_cache): Fix finding the target cache data.
12134
12135 2008-02-16 Glenn Morris <rgm@gnu.org>
12136
12137 * fontset.c (Finternal_char_font): Fix compilation warning.
12138
12139 2008-02-16 Eli Zaretskii <eliz@gnu.org>
12140
12141 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12142 instead of char arrays. Enlarge the size of array passed to
12143 get_token_information.
12144
12145 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12146 warnings.
12147
12148 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12149
12150 * .gdbinit: Don't set `args', it breaks gdb --args.
12151
12152 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12153
12154 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12155 within a narrowed buffer.
12156
12157 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12158
12159 * coding.c (decode_coding_object, encode_coding_object):
12160 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12161
12162 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12163
12164 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12165 hardcoding 1.
12166 (detect_coding_system):
12167 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12168 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12169 * insdel.c (insert_from_gap):
12170 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12171 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12172 (string_to_multibyte):
12173 * character.c (chars_in_text, multibyte_chars_in_text):
12174 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12175
12176 * character.h (FETCH_STRING_CHAR_ADVANCE)
12177 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12178 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12179 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12180
12181 * casefiddle.c (casify_region): Only call after-change and composition
12182 functions on the part of the region that was changed.
12183
12184 * keyboard.c (read_avail_input):
12185 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12186
12187 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12188
12189 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12190 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12191
12192 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
12193
12194 * w32menu.c (push_submenu_start, push_submenu_end)
12195 (push_left_right_boundary, push_menu_pane, push_menu_item):
12196 * keyboard.c (read_key_sequence): Don't pass args with side effects
12197 to AREF, it fails when compiling with -DENABLE_CHECKING.
12198
12199 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12200
12201 * Makefile.in (${lispsource}international/charprop.el):
12202 Delete this target.
12203
12204 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12205 emacs-unicode-2.
12206
12207 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12208
12209 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12210
12211 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12212
12213 * frame.c (Qnoelisp): New symbol.
12214 (syms_of_frame): Initialize it.
12215 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12216 harmless Elisp code, from a strong `force' from x_connection_closed.
12217 * frame.h (Qnoelisp): Declare.
12218 * xterm.c (x_connection_closed): Pass `noelisp'.
12219
12220 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12221 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12222 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12223 rather than `int' for the type of `type'.
12224
12225 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12226
12227 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12228
12229 * Makefile.in (GNUC): Remove support for gcc-1.x.
12230
12231 2008-02-10 Richard Stallman <rms@gnu.org>
12232
12233 * lisp.h (ASET): Use AREF, not ASLOT.
12234
12235 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12236
12237 * lisp.h (ASET): Check bounds.
12238
12239 2008-02-10 Glenn Morris <rgm@gnu.org>
12240
12241 * buffer.c (mode-name): Doc fix.
12242
12243 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12244
12245 * Makefile.in:
12246 * emacs.c:
12247 * gmalloc.c:
12248 * keyboard.c:
12249 * lisp.h:
12250 * m/ibm370aix.h:
12251 * process.c:
12252 * regex.c:
12253 * s/hpux.h:
12254 * sysdep.c:
12255 * sysselect.h:
12256 * systty.h:
12257 * unexec.c:
12258 * w32term.c:
12259 * xsmfns.c:
12260 * xterm.c: Remove code that deals with obsolete variables.
12261
12262 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12263
12264 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12265 nothing else needs it anymore.
12266
12267 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12268
12269 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12270 instead of unibyte_char_to_multibyte.
12271
12272 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12273
12274 * s/gnu-linux.h: Remove commented out code.
12275
12276 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12277
12278 * Makefile.in: Update what RMS says about using autoconf.
12279 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12280 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12281 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12282 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12283
12284 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12285
12286 * keymap.c (Fkey_description): Move side effect outside of macro call.
12287
12288 * xfaces.c (Finternal_make_lisp_face):
12289 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12290
12291 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12292 (syms_of_fontset): Use ASET.
12293
12294 * fns.c (concat): Move side effect outside of macro call.
12295 (hash_clear): Use ASET.
12296
12297 2008-02-08 Richard Stallman <rms@gnu.org>
12298
12299 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12300 If FORCE, and frame has a surrogate minibuffer for another frame,
12301 delete the other frame first.
12302
12303 2008-02-07 Timo Savola <timo.savola@iki.fi>
12304
12305 * xterm.c (x_detect_focus_change): Handle embed client message.
12306 (handle_one_xevent): Ditto.
12307 (handle_one_xevent): If embedded and we get a button press/release,
12308 request focus.
12309 (xembed_set_info, xembed_send_message): New functions.
12310 (x_make_frame_visible): Call xembed_set_info if embedded.
12311 (x_make_frame_invisible): Call xembed_set_info if embedded.
12312 (x_term_init): Initialize Xatom_XEMBED.
12313 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12314 (x_iconify_frame): Ditto.
12315
12316 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12317 (enum xembed_info, enum xembed_message, enum xembed_focus)
12318 (enum xembed_modifier, enum xembed_accelerator): New.
12319 (xembed_set_info, xembed_send_message): Declare.
12320 (FRAME_X_EMBEDDED_P): New.
12321
12322 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12323 gtk_plug_new.
12324
12325 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12326 window ID of a frame.
12327 (x_window): Reparent frame if embedded.
12328 (Fx_create_frame): Don't set border width if embedded.
12329
12330 * emacs.c (USAGE3): Add --parent-id.
12331 (standard_args): Ditto.
12332
12333 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12334
12335 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12336
12337 2008-02-07 Jim Meyering <meyering@redhat.com>
12338
12339 Use "do...while (0)", not "if (1)...else" in macro definitions.
12340 The latter provokes a warning from gcc about the empty else, when
12341 followed by ";". Also, without that trailing semicolon, it would
12342 silently swallow up any following statement.
12343 * syntax.h (SETUP_SYNTAX_TABLE)
12344 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12345 * buffer.h (DECODE_POSITION): Likewise.
12346 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12347 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12348 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12349 (FETCH_CHAR_ADVANCE): Likewise.
12350 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12351
12352 2008-02-07 Jim Meyering <meyering@redhat.com>
12353
12354 * lread.c [lint]: Don't include <sys/inode.h>.
12355
12356 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12357
12358 * xselect.c (x_handle_dnd_message):
12359 * xmenu.c (digest_single_submenu, xmenu_show):
12360 * xdisp.c (with_echo_area_buffer_unwind_data)
12361 (format_mode_line_unwind_data, unwind_format_mode_line)
12362 (display_menu_bar):
12363 * eval.c (Ffetch_bytecode):
12364 * doc.c (store_function_docstring):
12365 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12366 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12367 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12368
12369 2008-02-07 Kenichi Handa <handa@m17n.org>
12370
12371 * ftxfont.c (ftxfont_open): Don't set
12372 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12373
12374 * ftfont.c (ftfont_open): Fix previous change.
12375
12376 2008-02-06 Jason Rumney <jasonr@gnu.org>
12377
12378 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12379 Use cached metrics for ASCII characters.
12380 (w32font_open_internal): Don't set font's owning_frame.
12381 Cache metrics for ASCII characters.
12382
12383 * w32font.h (struct w32font_info): Add ascii_metrics.
12384 Remove owning_frame.
12385
12386 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12387
12388 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12389 to negative value.
12390
12391 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12392
12393 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12394
12395 * charset.c (syms_of_charset): Set QCtest and Qeq.
12396
12397 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12398
12399 * process.c (Fstart_process):
12400 * callproc.c (Fcall_process): Handle the case where
12401 Funhandled_file_name_directory returns nil.
12402
12403 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12404 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12405 * font.c (check_gstring): Use them and AREF to access the vector before
12406 we know it's really a gstring.
12407 (Ffont_shape_text): Fix typo.
12408 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
12409
12410 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12411 Declare.
12412
12413 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12414
12415 2008-02-05 Jason Rumney <jasonr@gnu.org>
12416
12417 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12418 Set smallest_font_height and smallest_char_width in display info.
12419
12420 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12421
12422 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12423
12424 2008-02-05 Miles Bader <miles@gnu.org>
12425
12426 * xfaces.c (get_lface_attributes, merge_named_face)
12427 (lookup_named_face, lookup_derived_face, realize_named_face):
12428 Revert 2008-02-01 change by cyd@stupidchicken.com.
12429
12430 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12431
12432 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12433 fallback fonts.
12434 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12435
12436 2008-02-04 Jason Rumney <jasonr@gnu.org>
12437
12438 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12439 set full_name.
12440 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12441
12442 2008-02-03 Jason Rumney <jasonr@gnu.org>
12443
12444 * makefile.w32-in (OBJ1): Include font.o here.
12445 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12446
12447 2008-02-02 Jason Rumney <jasonr@gnu.org>
12448
12449 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12450
12451 2008-02-01 Jason Rumney <jasonr@gnu.org>
12452
12453 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12454
12455 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12456
12457 2008-02-01 Andreas Schwab <schwab@suse.de>
12458
12459 * Makefile.in (shortlisp, lisp): Update for rename of
12460 ../lisp/language/myanmar.el.
12461
12462 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
12463
12464 * xfaces.c (get_lface_attributes): Delete function.
12465 (merge_named_face, lookup_named_face, lookup_derived_face)
12466 (realize_named_face): Call lface_from_face_name directly, and use
12467 the fact that merge_face_vectors does not alter its FROM argument.
12468
12469 2008-02-01 Jason Rumney <jasonr@gnu.org>
12470
12471 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12472 input in the default locale. Handle non-Unicode multibyte input.
12473
12474 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12475
12476 * fontset.c (reorder_font_vector): Exclude nil elements from the
12477 font group. Don't try multiple fonts.
12478 (fontset_font): Adjust for the above change.
12479 (Finternal_char_font): Return nil if the found font doesn't
12480 contain the character ch.
12481
12482 * Makefile.in (lisp, shortlisp): Add cham.el.
12483
12484 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12485
12486 * font.h (FONTP): Make it return 1 also for a font-object.
12487
12488 * .gdbinit (xfontset): New function.
12489
12490 * font.c (font_find_for_lface): Check if the character C is
12491 supported or not only for the first font.
12492
12493 * fontset.c (reorder_font_vector): Fix typo.
12494 (fontset_find_font): Don't add a font-spec specifying a script.
12495 Use 0 (not Qt) for the indication of empty font-group. Change the
12496 format of RFONT-DEF. Return Qt if no font in the font-group
12497 support the character.
12498 (fontset_font): Adjust for the above change. If no font was
12499 found the character, remember that.
12500 (face_for_char): Adjust for the change of RFONT-DEF.
12501 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12502 no font for the target.
12503 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12504
12505 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12506
12507 * font.c (font_load_for_face): Handle the case that the font in
12508 face->lface is a string.
12509
12510 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12511
12512 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12513
12514 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12515
12516 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12517 Fix previous change. If the frame is not on a window system,
12518 signal an error.
12519
12520 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12521
12522 * coding.c (decode_coding_object, encode_coding_object): Adjust
12523 marker positions after conversion.
12524
12525 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12526
12527 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12528
12529 * font.c (font_find_for_lface): Fix the handling of the return
12530 value of font_has_char.
12531 (Ffont_shape_text): Fix previous change.
12532
12533 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12534 (fontset_ref_and_range): Delete it.
12535 (fontset_find_font): Call char_table_ref_and_range instead of
12536 FONTSET_REF_AND_RANGE.
12537 (make_fontset): Don't setup font groups of Latin here.
12538 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12539 (new_fontset_from_font): Make the specified font the default for
12540 all Latin characters.
12541
12542 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12543
12544 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12545 is on a window system before accessing the fontset of the frame.
12546
12547 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12548
12549 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12550
12551 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12552 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12553
12554 * font.c (Ffont_shape_text): If the font driver doesn't have a
12555 shaper function, make zero-width glyphs to have at least one-pixel
12556 width. Fix setting of `to' field of glyphs.
12557
12558 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12559
12560 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12561 glyphs.
12562
12563 * font.h (struct font_driver): Improve docstring of member `shape'.
12564
12565 2008-02-01 Kenichi Handa <handa@m17n.org>
12566
12567 * composite.c (syms_of_composite): Fix docstring of
12568 auto-composition-function.
12569
12570 * font.h (LGLYPH_SIZE): New macro.
12571
12572 * font.c (Ffont_fill_gstring): Stop filling when a character not
12573 supported by the font is found.
12574 (Ffont_shape_text): When a shape callback function returns nil,
12575 try at most two more times with larger gstring.
12576 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12577
12578 * xdisp.c (handle_auto_composed_prop): Change the argument to
12579 auto-composition-function.
12580
12581 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12582 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12583 Lispy glyph and store it in the lgstring.
12584
12585 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12586
12587 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12588
12589 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12590
12591 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12592
12593 * fontset.c (Vfont_encoding_charset_alist): New variable.
12594 (syms_of_fontset): DEFVAR it.
12595 (reorder_font_vector, fontset_find_font): Optimize for the case of
12596 no need of reordering.
12597 (face_for_char): Map the charset property by
12598 Vfont_encoding_charset_alist.
12599
12600 2008-02-01 Jason Rumney <jasonr@gnu.org>
12601
12602 * w32font.c (logfonts_match): Don't check adstyle here.
12603 (font_matches_spec): Check here against physical font instead.
12604 (add_font_entity_to_list): Avoid some substitutions.
12605
12606 * font.c (font_parse_fcname): Default weight and slant to normal.
12607 (font_score): Prefer normal fonts if weight or slant unspecified.
12608 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12609 match freetype scores.
12610
12611 2008-02-01 Jason Rumney <jasonr@gnu.org>
12612
12613 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12614 font, as it may have been deleted.
12615 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12616 most common hyphenless variation.
12617 (logfonts_match): Check generic family.
12618 (font_matches_spec): Don't check generic family here.
12619 (fill_in_logfont): Set generic family based on adstyle.
12620
12621 * w32font.h (w32font_get_cache): Update declaration.
12622
12623 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12624
12625 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12626
12627 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12628 If none of the new drivers are available, call font_update_drivers
12629 with the old drivers.
12630
12631 * w32font.c (w32font_get_cache): Adjust the argument type.
12632
12633 * xfont.c (xfont_get_cache): Adjust the argument type.
12634
12635 * font.h (struct font_driver): Change argument type of get_cache.
12636
12637 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12638
12639 * font.c (Ffont_get): Fix arguments to Fassoc.
12640 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12641 (font_clear_cache): New function.
12642 (font_list_entities, font_matching_entity): Use font_get_cache.
12643 (font_update_drivers): Call font_clear_cache when finishing a driver.
12644
12645 * fontset.c (fontset_find_font): Fix previous change.
12646
12647 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12648
12649 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12650 dpyinfo->font_table.
12651 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12652 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12653
12654 * font.c (font_at): Handle the case that the arg C is negative.
12655 Handle the unibyte case.
12656 (Ffont_at): Call font_at with the arg C -1.
12657
12658 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12659 the position here, and call font_at with the arg C -1.
12660 Don't check the range of the existing composition at the point.
12661
12662 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12663
12664 * fontset.c (fontset_add): New args charset_id and family.
12665 Change caller.
12666 (load_font_get_repertory, fontset_find_font): Assume that
12667 font_spec is always a font-spec object.
12668 (Fset_fontset_font): Always store a font-spec object in a fontset.
12669
12670 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12671 instead of get_property_and_range.
12672
12673 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12674
12675 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12676 (xftfont_open): Don't keep locking face.
12677 (xftfont_close): Don't unlock face.
12678 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12679
12680 * fontset.c (fontset_find_font): Don't prefer a font of
12681 supplementary charset.
12682
12683 2008-02-01 Kenichi Handa <handa@m17n.org>
12684
12685 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12686 script, langsys_tag to langsys, new member script.
12687 (OTF_TAG_STR): Terminate by '\0'.
12688 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
12689 listing to the script specified in that property. Fix arg to
12690 OTF_check_features.
12691
12692 2008-02-01 Jason Rumney <jasonr@gnu.org>
12693
12694 * w32font.h: New file.
12695
12696 * w32font.c: Include it.
12697 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12698 (w32font_open): Set owning_frame.
12699 (w32font_text_extents): Use owning_frame.
12700 (struct font_callback_data): Add opentype_only field.
12701 (add_font_entity_to_list): Use it to filter fonts.
12702 Don't check against full name.
12703 (w32font_list_internal): New function.
12704 (w32font_list): Use it.
12705 (w32font_match_internal): New function.
12706 (w32font_match): Use it.
12707 (w32font_open_internal): New function.
12708 (w32font_open): Use it.
12709 (w32font_get_cache, w32font_close, w32font_has_char)
12710 (w32font_encode_char, w32font_text_extents, w32font_draw):
12711 Make non-static.
12712
12713 * makefile.w32-in (w32font.o): Depend on w32font.h.
12714
12715 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12716
12717 * charset.c (Fdefine_charset_internal): Record a supplementary
12718 charset at the tail of Vcharset_order_list.
12719
12720 * font.c (Ffont_shape_text): Fix the return value.
12721
12722 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12723
12724 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12725
12726 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12727
12728 * ftfont.c (struct OpenTypeSpec): New struct.
12729 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12730 (ftfont_get_open_type_spec): New function.
12731 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12732
12733 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12734
12735 2008-02-01 Jason Rumney <jasonr@gnu.org>
12736
12737 * w32font.c (add_font_entity_to_list): Compare only the beginning
12738 of full name.
12739
12740 2008-02-01 Kenichi Handa <handa@m17n.org>
12741
12742 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12743 Never return HANDLED_RECOMPUTE_PROPS.
12744
12745 2008-02-01 Kenichi Handa <handa@m17n.org>
12746
12747 * font.c (font_gstring_produce): Delete it.
12748
12749 * composite.h (COMPOSITION_METHOD):
12750 Handle COMPOSITION_WITH_GLYPH_STRING.
12751
12752 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12753
12754 * xfont.c (Qx): Delete.
12755 (syms_of_xfont): Don't initialize Qx.
12756
12757 * composite.h (enum composition_method):
12758 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12759
12760 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12761
12762 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12763 (choose_face_font): Accept new form of font-spec.
12764
12765 * frame.h (font_driver_list): Declare it unconditionally.
12766 (struct frame): Define members font_driver_list and font_data_list
12767 unconditionally.
12768
12769 * fontset.c: Include "font.h" unconditionally.
12770 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12771 (Fset_fontset_font): Accept a font-spec object.
12772
12773 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12774 PIXEL_SIZE part a wild card.
12775
12776 * dispextern.h (struct glyph_string): Define members clip and
12777 num_clips unconditionally.
12778 (struct face): Define members font_info and extra unconditionally.
12779
12780 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12781 ftfont_info only when HAVE_LIBOTF is defined.
12782
12783 2008-02-01 Andreas Schwab <schwab@suse.de>
12784
12785 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12786 and end.
12787
12788 2008-02-01 Jason Rumney <jasonr@gnu.org>
12789
12790 * w32font.c (w32font_driver): Add new fields.
12791
12792 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12793
12794 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12795 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12796 (LIBES): Add @M17N_FLT_CFLAGS@.
12797
12798 * composite.c (compose_text): Don't treat the new style
12799 composition specially.
12800
12801 * emacs.c (main): Call syms_of_font unconditionally.
12802
12803 * font.h (FONT_ENTITY_NOT_LOADABLE)
12804 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12805 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12806 (struct font_driver): New member shape.
12807 (font_registry_charsets): Extern it.
12808 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12809 (font_otf_capability, font_drive_otf): Delete their externs.
12810
12811 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12812 (font_charset_alist, font_registry_charsets): Move from xfont.c
12813 and rename.
12814 (font_prop_validate_otf): New function.
12815 (font_property_table): Register it for QCotf.
12816 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12817 (font_drive_otf): Delete.
12818 (font_prepare_composition): New arg F. Adjust for the change of
12819 lispy gstring.
12820 (font_find_for_lface): New arg C.
12821 (font_load_for_face): Adjust for the change of font_find_for_lface.
12822 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12823 lispy gstring.
12824 (Ffont_shape_text): New function.
12825 (Fopen_font): If the font size is not given, use 12-pixel.
12826 (Ffont_at): New arg STRING.
12827 (syms_of_font): Initalize font_charset_alist.
12828 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12829 conditionally.
12830
12831 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12832 fonts of the same font-spec. Change the format of RFONT-DEF.
12833 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12834 Adjust for the change of RFONT-DEF.
12835 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12836
12837 * ftfont.h: New file.
12838
12839 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12840 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12841 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12842 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12843 font_otf_capability and font_drive_otf, set ftfont_shape.
12844 (ftfont_list): Adjust for the change of :otf property value.
12845 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12846 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12847 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12848 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12849 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12850 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12851
12852 * w32term.c (x_draw_composite_glyph_string_foreground):
12853 Adjust for the change of lispy gstring.
12854
12855 * xdisp.c (handle_composition_prop): Adjust for the change of
12856 lispy gstring. Call a function for auto-composition with the
12857 third arg it->window.
12858 (fill_composite_glyph_string): Adjust for the change of lispy string.
12859 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12860
12861 * xfaces.c (set_font_frame_param): Adjust for the change of
12862 font_find_for_lface.
12863
12864 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12865 (xfont_registry_charsets): Likewise. Change caller.
12866 (syms_of_xfont): Don't handle x_font_charset_alist.
12867
12868 * xftfont.c: Include "ftfont.h".
12869 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12870 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12871 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12872 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12873 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12874 Set xftfont_driver.shape to xftfont_shape.
12875
12876 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12877 the change of lispy gstring.
12878
12879 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12880
12881 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12882
12883 2008-02-01 Jason Rumney <jasonr@gnu.org>
12884
12885 * w32font.c (w32font_draw): Fill background manually.
12886
12887 2008-02-01 Jason Rumney <jasonr@gnu.org>
12888
12889 * font.c (Qfontp): Remove unused symbol.
12890 (QCantialias): New symbol.
12891 (syms_of_font): Define it.
12892 (font_property_table): Set a validator for QCantialias.
12893
12894 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12895 Define if not already.
12896 (QCfamily): Share with xfaces.c.
12897 (Qstandard, Qsubpixel, Qnatural): New symbols.
12898 (syms_of_w32font): Define them. Don't define QCfamily here.
12899 (w32_antialias_type, lispy_antialias_type): New functions.
12900 (w32_enumfont_pattern_entity): New arg requested_font.
12901 Set antialias parameter if non-default was requested.
12902 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12903
12904 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12905
12906 * lread.c (read1): Undo the previous change.
12907
12908 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12909
12910 * frame.c (Fdelete_frame): Call font_update_drivers only when
12911 USE_FONT_BACKEND is defined.
12912
12913 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12914
12915 * font.h (struct font_bitmap): New member bits_per_pixel.
12916 (struct font_driver): New members start_for_frame and end_for_frame.
12917 (struct font_data_list): New struct.
12918 (font_put_frame_data, font_get_frame_data): Extern them.
12919
12920 * frame.h (struct frame): New member font_data_list.
12921
12922 * font.c (font_update_drivers): Call driver->start_for_frame and
12923 driver->end_for_frame at proper timings.
12924 (font_put_frame_data, font_get_frame_data): New functions.
12925 (Ffont_spec): Add usage in the docstring.
12926
12927 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12928 (Fdelete_frame): Call font_update_drivers.
12929
12930 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12931 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12932 (xftfont_get_xft_draw): New function.
12933 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12934 (xftfont_end_for_frame): New function.
12935 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12936
12937 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12938 Change argument. Cache GCs in the per-frame data.
12939 (struct ftxfont_frame_data): New struct.
12940 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12941 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12942 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12943 (ftxfont_end_for_frame): New function.
12944 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12945
12946 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12947
12948 2008-02-01 Kenichi Handa <handa@m17n.org>
12949
12950 * xselect.c (Vselection_coding_system)
12951 (Vnext_selection_coding_system): Delete them.
12952 (syms_of_xselect): Don't declare selection-coding-system and
12953 next-selection-coding-system. They are declared in select.el.
12954
12955 2008-02-01 Jason Rumney <jasonr@gnu.org>
12956
12957 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12958
12959 * w32fns.c: Include imm.h.
12960 (get_composition_string_fn, get_ime_context_fn): New optional
12961 system functions.
12962 (globals_of_w32fns): Load them from imm32.dll.
12963 (ignore_ime_char): New flag.
12964 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12965 WM_IME_ENDCOMPOSITION messages.
12966
12967 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12968 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12969
12970 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12971
12972 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12973 (READCHAR_REPORT_MULTIBYTE): New macro.
12974 (readchar): New 2nd arg MULTIBYTE.
12975 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12976 Make symbol's name multibyte according to the multibyteness of the
12977 source.
12978
12979 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12980
12981 * xfaces.c (face_for_overlay_string): Call lookup_face with
12982 correct arguments (fix of synching with the trunk).
12983
12984 2008-02-01 Kenichi Handa <handa@m17n.org>
12985
12986 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12987 (font_prop_validate_non_neg, font_prop_validate_spacing):
12988 Delete argument prop_index.
12989 (font_property_table): Change arguments to validater. Change Callers.
12990 (font_lispy_object): Delete.
12991 (font_at): Use font_find_object instead fo font_lispy_object.
12992
12993 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12994
12995 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12996 and file names.
12997
12998 2008-02-01 Jason Rumney <jasonr@gnu.org>
12999
13000 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13001 (font_matches_spec): Remove debug output.
13002 (add_font_entity_to_list): Avoid using substituted fonts.
13003
13004 2008-02-01 Jason Rumney <jasonr@gnu.org>
13005
13006 * doc.c (Fsnarf_documentation):
13007 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13008
13009 2008-02-01 Miles Bader <miles@gnu.org>
13010
13011 * dispextern.h (struct glyph_row): Only define "clip" field if
13012 HAVE_WINDOW_SYSTEM is defined.
13013
13014 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13015
13016 Fix up multi-tty merge.
13017
13018 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13019 and indentation.
13020
13021 * xfaces.c (free_realized_face, clear_face_gcs):
13022 Include font_done_for_face in the input_blocked section, just in case.
13023
13024 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13025 (get_char_face_and_encoding): Undo last change and remove the *other*
13026 duplicate definition (i.e. keep the one that's better scoped and that
13027 includes code for the font-backend).
13028
13029 * terminal.c (create_terminal): Default keyboard_coding to
13030 `no-conversion' and terminal_coding to `undecided'.
13031
13032 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13033
13034 * fontset.c (free_realized_fontsets): Check that the table entry does
13035 contain a fontset before trying to compare it to `base'.
13036
13037 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13038 syms_of_charset, and syms_of_coding earlier because init_window_once
13039 now needs Vcoding_system_hash_table to be setup.
13040
13041 * coding.h (default_buffer_file_coding): Remove.
13042
13043 * coding.c (default_buffer_file_coding): Remove.
13044 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13045 than ->symbol, and use the terminal-local coding system.
13046 (syms_of_coding): Don't setup the coding-systems that are not
13047 terminal-local.
13048 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13049
13050 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13051 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13052
13053 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13054 in chartab.c and were re-added here by mistake.
13055 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13056
13057 * doc.c (Fsnarf_documentation):
13058 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13059 src to etc.
13060
13061 * ChangeLog.10: Add mistakenly removed entry.
13062
13063 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13064
13065 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13066
13067 2008-02-01 Miles Bader <miles@gnu.org>
13068
13069 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13070 Add extra args to FACE_FOR_CHAR.
13071
13072 2008-02-01 Kenichi Handa <handa@m17n.org>
13073
13074 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13075 in sequence.
13076
13077 * chartab.c (map_sub_char_table, map_char_table): If the range
13078 contains just one character, call the function with that character
13079 even if the depth is not 3.
13080
13081 2008-02-01 Jason Rumney <jasonr@gnu.org>
13082
13083 * w32font.c (w32font_text_extents): Calculate metrics for the
13084 whole string.
13085
13086 2008-02-01 Jason Rumney <jasonr@gnu.org>
13087
13088 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13089
13090 2008-02-01 Jason Rumney <jasonr@gnu.org>
13091
13092 * w32term.c (x_set_glyph_string_clipping): Use
13093 get_glyph_string_clip_rects.
13094 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13095 Adjust for the change of struct glyph_string.
13096
13097 * w32font.c (w32font_draw): Do clipping here.
13098
13099 2008-02-01 Kenichi Handa <handa@m17n.org>
13100
13101 * xftfont.c (xftfont_draw): Adjust for the change of struct
13102 glyph_string.
13103
13104 * xterm.c (x_set_glyph_string_clipping): Use
13105 get_glyph_string_clip_rects.
13106 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13107 Adjust for the change of struct glyph_string.
13108
13109 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13110 the resulting clip(s}.
13111 (expose_overlaps): Add arg r. Change callers. Set it to
13112 row->clip temporarily.
13113 (expose_window): Redraw rows overlapping the exposed area.
13114
13115 * dispextern.h (struct glyph_row): New member clip.
13116 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13117 clip_height, new member clip, and num_clips.
13118
13119 2008-02-01 Kenichi Handa <handa@m17n.org>
13120
13121 * data.c (Fchar_or_string_p): Fix docstring.
13122
13123 2008-02-01 Kenichi Handa <handa@m17n.org>
13124
13125 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13126 create a temporary XftDraw object.
13127
13128 2008-02-01 Kenichi Handa <handa@m17n.org>
13129
13130 * font.c (Ffontp): Fix docstring.
13131
13132 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13133 strong evidence of ISO-2022.
13134
13135 2008-02-01 Kenichi Handa <handa@m17n.org>
13136
13137 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13138 SYNTAX_ENTRY_FOLLOW_PARENT.
13139
13140 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13141
13142 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13143 its type.
13144 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13145 Update to the new type of weak_hash_tables and next_weak.
13146
13147 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13148 a plain C pointer to Lisp_Hash_Table.
13149
13150 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13151 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13152 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13153 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13154 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13155 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13156 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13157 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13158 (GC_EQ): Remove since they've been identical to their non-GC_
13159 alter-egos ever since the markbit was eradicated.
13160
13161 * alloc.c:
13162 * buffer.c:
13163 * buffer.h:
13164 * data.c:
13165 * fileio.c:
13166 * filelock.c:
13167 * fns.c:
13168 * frame.h:
13169 * lisp.h:
13170 * macterm.c:
13171 * print.c:
13172 * process.c:
13173 * w32fns.c:
13174 * w32menu.c:
13175 * w32term.c:
13176 * xfns.c:
13177 * xmenu.c:
13178 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13179
13180 2008-02-01 Kenichi Handa <handa@m17n.org>
13181
13182 * chartab.c (map_sub_char_table): Make it work for the top-level
13183 char-table. Fix handling of parent char-table.
13184 (map_char_table): Adjust for the above change.
13185
13186 2008-02-01 Jason Rumney <jasonr@gnu.org>
13187
13188 * w32font.c (Qgdi): Rename from Qw32.
13189
13190 2008-02-01 Jason Rumney <jasonr@gnu.org>
13191
13192 * w32bdf.c (get_quoted_string): Make function static.
13193
13194 2008-02-01 Kenichi Handa <handa@m17n.org>
13195
13196 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13197 bigger ascent and descent than those of the font, use them as
13198 font's ascent and descent.
13199
13200 2008-02-01 Kenichi Handa <handa@m17n.org>
13201
13202 * Makefile.in (${lispsource}international/charprop.el): Move this
13203 target within "#ifdef HAVE_UNIDATA" and "#endif".
13204
13205 2008-02-01 Kenichi Handa <handa@m17n.org>
13206
13207 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13208 (shortlisp): Add ../lisp/language/tai-viet.el.
13209
13210 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
13211
13212 * Makefile.in (${lispsource}international/charprop.el): Depend on
13213 temacs${EXEEXT}.
13214
13215 2008-02-01 Jason Rumney <jasonr@gnu.org>
13216
13217 * w32font.c (w32font_close): Delete the GDI font object.
13218
13219 * w32menu.c: Include character.h.
13220
13221 * w32proc.c: Likewise.
13222
13223 * w32select.c: Likewise.
13224
13225 * makefile.w32-in (w32proc.o): Depend on character.h.
13226
13227 2008-02-01 Jason Rumney <jasonr@gnu.org>
13228
13229 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13230
13231 * w32menu.c (syms_of_w32menu): Likewise.
13232
13233 * w32proc.c (syms_of_ntproc): Likewise.
13234
13235 * w32select.c (syms_of_w32select): Likewise.
13236
13237 * w32term.c (syms_of_w32term): Likewise.
13238
13239 2008-02-01 Jason Rumney <jasonr@gnu.org>
13240
13241 * w32font.c (w32font_draw): Delete brush after using it.
13242
13243 2008-02-01 Jason Rumney <jasonr@gnu.org>
13244
13245 * w32font.c (w32font_open): Don't set font_idx.
13246 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13247 to font settings.
13248 (w32font_draw): Fill background explicitly.
13249
13250 2008-02-01 Jason Rumney <jasonr@gnu.org>
13251
13252 * w32term.c (w32_initialize): Don't call w32font_initialize.
13253
13254 * w32font.c (w32font_info): Remove subranges.
13255 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13256 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13257 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13258 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13259 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13260 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13261 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13262 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13263 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13264 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13265 New symbols.
13266 (font_callback_data): New struct.
13267 (w32font_list, w32font_match): Use it.
13268 (w32font_open): Don't populate subranges.
13269 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13270 (w32font_encode_char): Always return unicode code-point as-is.
13271 (w32font_text_extents): Supply a transformation matrix to
13272 GetGlyphOutline. Never look up by glyph index. Avoid looping
13273 twice. Use unicode version of GetTexExtentPoint32 instead of
13274 glyph index version.
13275 (set_fonts_frame): Remove.
13276 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13277 set frame parameter. Use backward compatible fake foundries.
13278 Save generic family in extra slot under QCfamily. Make width slot
13279 constant. Save QCspacing value. Save list of scripts instead of
13280 binary subranges.
13281 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13282 (add_font_entity_to_list): Use font_callback_data struct. Filter
13283 unwanted fonts.
13284 (add_one_font_entity_to_list): Use font_callback_data struct.
13285 (w32_registry): Default to iso10646_1.
13286 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13287 string font registries. Don't fill in font name if it is a generic
13288 family name, fill family instead. Use spacing, family and script
13289 extra info to fill pitch, family and charset fields.
13290 (list_all_matching_fonts): Use font_callback_data struct.
13291 (unicode_range_for_char): Remove.
13292 (font_supported_scripts): New function.
13293 (w32font_initialize): Remove.
13294 (syms_of_w32font): Update which symbols are defined.
13295
13296 2008-02-01 Jason Rumney <jasonr@gnu.org>
13297
13298 * font.c (font_pixel_size): Reverse assq_no_quit args.
13299
13300 * w32term.h (FONT_WIDTH): Report max width, not average.
13301 (FONT_MAX_WIDTH): Remove.
13302 (FONT_AVG_WIDTH): New macro.
13303
13304 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13305 redefinition of FONT_WIDTH.
13306
13307 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13308 (w32_cache_char_metrics): Use FONT_WIDTH.
13309
13310 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13311
13312 2008-02-01 Jason Rumney <jasonr@gnu.org>
13313
13314 * w32font.c (w32font_open): Make lfHeight negative.
13315
13316 * w32fns.c (x_default_font_parameter): Use new style font name.
13317 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13318
13319 2008-02-01 Jason Rumney <jasonr@gnu.org>
13320
13321 * w32font.c (QCsubranges): New symbol.
13322 (w32font_open, w32font_has_char): Get subranges from subproperty
13323 of extra.
13324 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13325 (syms_of_w32font): Define :subranges symbol.
13326
13327 * font.c (font_put_extra): Expose externally.
13328
13329 * font.h (font_put_extra): Move declaration from font.c.
13330
13331 * font.c (Ffont_get): Use font driver to determine otf capability.
13332 (adjust_anchor): Check if driver defines anchor_point before using.
13333
13334 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13335 (w32font_draw): Use options.
13336 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13337 Fix detection of truetype fonts.
13338 (registry_to_w32_charset): Handle charsets other than iso8859-1
13339 expressed as lisp symbols.
13340 (w32_registry): Express charset as lisp symbol.
13341 (fill_in_logfont): Reverse pixel and point height logic.
13342 Don't set width here. Set quality to default.
13343
13344 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13345 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13346
13347 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13348 Remove redundant loop and allocation.
13349
13350 * makefile.w32-in (font.o, w32font.o): New objects.
13351 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13352 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13353
13354 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13355 STORE_XCHARB a valid l-value.
13356
13357 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13358 calculations for non-Truetype fonts.
13359 (x_draw_glyph_string): Sync with xterm.c.
13360 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13361 Remove redundant code.
13362 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13363
13364 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13365 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13366
13367 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13368 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13369
13370 * w32font.c: New file for w32 font backend.
13371
13372 2008-02-01 Kenichi Handa <handa@m17n.org>
13373
13374 * term.c: Don't include "buffer.h" twice.
13375
13376 2008-02-01 Kenichi Handa <handa@m17n.org>
13377
13378 * character.c (Funibyte_string): New function.
13379 (syms_of_character): Defsubr it.
13380
13381 2008-02-01 Jason Rumney <jasonr@gnu.org>
13382
13383 * w32term.c [USE_FONT_BACKEND]:
13384 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13385 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13386 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13387 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13388 (x_free_frame_resources): Sync with xterm.c.
13389
13390 2008-02-01 Andreas Schwab <schwab@suse.de>
13391
13392 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13393 char-table size.
13394
13395 2008-02-01 Kenichi Handa <handa@m17n.org>
13396
13397 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13398
13399 2008-02-01 Kenichi Handa <handa@m17n.org>
13400
13401 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13402 font_otf_gpos, add font_drive_otf.
13403
13404 * fontset.c (fontset_find_font): Pay attention to font size
13405 specified for a font.
13406 (reorder_font_vector): Check contents of font_def.
13407
13408 * font.c (struct otf_list): Delete it.
13409 (otf_list): Make it a lisp variable.
13410 (otf_open): Use lispy otf_list.
13411 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13412 (check_otf_features): New function.
13413 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13414 New functions.
13415 (font_drive_otf): New function merging font_otf_gsub and
13416 font_otf_gpos.
13417 (font_open_for_lface): New arg spec. Change argument order.
13418 (font_load_for_face): Adjust for the change of font_open_for_lface.
13419 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13420 Ffont_otf_gpos.
13421 (syms_of_font): Staticpro otf_list. Delete defsubr of
13422 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13423
13424 * xfaces.c (set_font_frame_param): Adjust for the change of
13425 font_open_for_lface.
13426
13427 * font.h (font_open_for_lface): Adjust prototype.
13428 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13429 member otf_drive.
13430 (font_otf_gsub, font_otf_gpos): Delete externs.
13431 (font_drive_otf): Extern it.
13432
13433 2008-02-01 Kenichi Handa <handa@m17n.org>
13434
13435 * font.c (font_at): If the window W is not on a window system,
13436 return Qnil.
13437
13438 * coding.c (produce_chars, encode_coding): Don't call
13439 insert_from_gap if no characters to produce.
13440
13441 2008-02-01 Kenichi Handa <handa@m17n.org>
13442
13443 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13444 Fclear_face_cache.
13445
13446 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13447
13448 2008-02-01 Miles Bader <miles@gnu.org>
13449
13450 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13451 Parse "--disable-font-backend" option.
13452 (standard_args): Add "--disable-font-backend" option.
13453
13454 2008-02-01 Kenichi Handa <handa@m17n.org>
13455
13456 * fontset.c (fontset_find_font): New function.
13457 (fontset_font): Use fontset_find_font.
13458 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13459 Register the specified font for all Latin characters.
13460 (new_fontset_from_font): Register the specified font for all Latin
13461 characters.
13462 (dump_fontset): For a realized fontset, include the base fontset
13463 name in the returned vector.
13464
13465 2008-02-01 Kenichi Handa <handa@m17n.org>
13466
13467 * character.h (CHAR_STRING): Cast C to unsigned on calling
13468 char_string.
13469
13470 * character.c (char_string): Type of arg C changed to unsigned.
13471 Signal an error if C is an invalid character code.
13472
13473 * editfns.c (general_insert_function, Fchar_to_string):
13474 Use CHARACTERP, not INTEGERP.
13475
13476 2008-02-01 Kenichi Handa <handa@m17n.org>
13477
13478 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13479 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13480
13481 * regex.c (analyse_first): Fix for multibyte characters in "case
13482 charset:" and "case categoryspec:".
13483
13484 2008-02-01 Andreas Schwab <schwab@suse.de>
13485
13486 * Makefile.in (LIBES): Move standard libraries to the end.
13487
13488 2008-02-01 Kenichi Handa <handa@m17n.org>
13489
13490 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13491 nonzero, don't shrink the buffer nextb.
13492
13493 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13494
13495 * coding.c (coding_alloc_by_making_gap): New arg offset.
13496 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13497 offset.
13498 (decode_coding_iso_2022): Update coding->safe_charsets.
13499 (decode_coding_gap): Temporarily set
13500 current_buffer->text->inhibit_shrinking to 1.
13501
13502 2008-02-01 Kenichi Handa <handa@m17n.org>
13503
13504 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13505 indexing into elements of s->cmp and s->char2b.
13506
13507 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
13508
13509 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13510
13511 2008-02-01 Kenichi Handa <handa@m17n.org>
13512
13513 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13514 target_multibyte instead of multibyte.
13515 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13516 (bcmp_translate): Change the argument name from multibyte to
13517 target_multibyte.
13518
13519 2008-02-01 Kenichi Handa <handa@m17n.org>
13520
13521 These changes are to compile a regexp into a pattern that can be
13522 used both for multibyte and unibyte targets.
13523
13524 * Makefile.in (search.o): Depend on charset.h.
13525
13526 * character.c (multibyte_char_to_unibyte_safe): New function.
13527
13528 * search.c: Include "charset.h".
13529 (compile_pattern_1): Delete argument multibyte. Don't set
13530 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13531 (compile_pattern): Don't compare cp->buf.target_multibyte.
13532 Compare cp->buf.charset_unibyte.
13533 (compile_pattern): Set cp->buf.target_multibyte.
13534
13535 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13536
13537 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13538
13539 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13540 multibyte. Change callers.
13541 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13542 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13543 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13544 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13545 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13546 (regex_compile): Make the compiled pattern usable both for
13547 multibyte and unibyte targets.
13548 (analyse_first): Make the fastmap usable both for multibyte and
13549 unibyte targets.
13550 (TRANSLATE_VIA_MULTIBYTE): Delete.
13551 (re_match_2_internal): Pay attention to the case that the
13552 multibyteness of bufp and target may be different.
13553
13554 2008-02-01 Kenichi Handa <handa@m17n.org>
13555
13556 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13557 empty box occupy at least one column width.
13558
13559 2008-02-01 Miles Bader <miles@gnu.org>
13560
13561 * Makefile.in: Remove redundant HAVE_XFT clause.
13562
13563 2008-02-01 Kenichi Handa <handa@m17n.org>
13564
13565 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13566
13567 2008-02-01 Kenichi Handa <handa@m17n.org>
13568
13569 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13570 being nil.
13571
13572 2008-02-01 Kenichi Handa <handa@m17n.org>
13573
13574 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13575
13576 2008-02-01 Kenichi Handa <handa@m17n.org>
13577
13578 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13579
13580 2008-02-01 Kenichi Handa <handa@m17n.org>
13581
13582 * search.c (simple_search): Fix previous change.
13583
13584 2008-02-01 Kenichi Handa <handa@m17n.org>
13585
13586 * xftfont.c (ftfont_font_format): Extern declaration.
13587
13588 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13589
13590 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13591 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13592
13593 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13594 (ftfont_font_format): Fix previous change.
13595
13596 * font.h (Ffont_xlfd_name): EXFUN it.
13597
13598 * font.c (font_parse_xlfd): Fix the array size of `f'.
13599 (register_font_driver): Use EQ to compare driver->type.
13600
13601 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13602 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13603 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13604
13605 2008-02-01 Kenichi Handa <handa@m17n.org>
13606
13607 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13608 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13609
13610 2008-02-01 Kenichi Handa <handa@m17n.org>
13611
13612 * xfont.c (xfont_open): Set font->format.
13613
13614 * xftfont.c (xftfont_open): Set font->format.
13615
13616 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13617 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13618 (ftfont_open): Set font->format.
13619 (ftfont_font_format): New function.
13620
13621 * font.h (struct font): New member format.
13622
13623 * font.c (Qopentype): New variable.
13624 (syms_of_font): Defsym it.
13625 (Fquery_font): Change the format of the last element of the return
13626 value.
13627
13628 2008-02-01 Kenichi Handa <handa@m17n.org>
13629
13630 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13631 last resort.
13632
13633 2008-02-01 Kenichi Handa <handa@m17n.org>
13634
13635 * coding.c (detect_coding_charset): Fix detection of multi-byte
13636 charset.
13637
13638 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13639
13640 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13641
13642 2008-02-01 Kenichi Handa <handa@m17n.org>
13643
13644 * xdisp.c (get_next_display_element): Set it->face_id for the
13645 first component of a composition.
13646 (x_produce_glyphs): Check if the font is changed or not for composition.
13647
13648 2008-02-01 Kenichi Handa <handa@m17n.org>
13649
13650 * fontset.c (Qlatin): New variable.
13651 (syms_of_fontset): Define it as a lisp symbol.
13652 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13653
13654 2008-02-01 Kenichi Handa <handa@m17n.org>
13655
13656 * font.c (font_unparse_fcname): Pay attention to the case that
13657 some of font property is a null string.
13658
13659 2008-02-01 Kenichi Handa <handa@m17n.org>
13660
13661 * term.c: Include "composite.h".
13662 (encode_terminal_code): Output all components of composition.
13663 Check the size of encode_terminal_src.
13664 (produce_glyphs): For composition, call produce_composite_glyph.
13665 (append_composite_glyph, produce_composite_glyph): New functions.
13666
13667 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13668 is not found, get font_info from the current ascii face.
13669
13670 2008-02-01 Kenichi Handa <handa@m17n.org>
13671
13672 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13673 buffer-file-name to Qnil before calling insert_from_buffer.
13674
13675 * font.c (font_unparse_fcname): Pay attention to the case that
13676 foundry is a null string.
13677
13678 2008-02-01 Kenichi Handa <handa@m17n.org>
13679
13680 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13681
13682 * font.c (Qunicode_sip): New variable.
13683 (syms_of_font): Declare it as a Lisp symbol.
13684
13685 * font.h (Qunicode_sip): Extern it.
13686
13687 2008-02-01 Kenichi Handa <handa@m17n.org>
13688
13689 * composite.c (get_composition_id): Pay attention to TAB component.
13690
13691 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13692 TAB. Adjust for the change of s->char2b which always points to
13693 the first element of allocated memory.
13694
13695 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13696
13697 * xdisp.c (handle_composition_prop): Set it->c to the first
13698 non-TAB component.
13699 (fill_composite_glyph_string): Change argument.
13700 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13701 (x_produce_glyphs): Fix handling of left/right padding.
13702
13703 2008-02-01 Kenichi Handa <handa@m17n.org>
13704
13705 * coding.c (detect_coding_system): Fix for handling off
13706 inhibit_iso_escape_detection. Fix for the case that no coding
13707 system is defined for a specific coding category.
13708
13709 2008-02-01 Kenichi Handa <handa@m17n.org>
13710
13711 * font.c (font_matching_entity): Delete unused local var.
13712
13713 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13714 opening a font.
13715
13716 * fileio.c (Finsert_file_contents): On recovering a file, assume
13717 Unix-like eol.
13718 (choose_write_coding_system): On auto-saving a file, force
13719 Unix-like eol.
13720
13721 * coding.c (setup_coding_system): Fix setting of
13722 coding->common_flags based on eol_type.
13723 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13724 inherit from it.
13725
13726 2008-02-01 Kenichi Handa <handa@m17n.org>
13727
13728 * alloc.c (NSTATICS): Increas to 0x600.
13729
13730 2008-02-01 Kenichi Handa <handa@m17n.org>
13731
13732 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13733 (ftfont_list): Don't check :name property.
13734 (ftfont_match): New function.
13735 (ftfont_pattern_entity): If the pattern doesn't contain
13736 FC_SPACING, don't assume FC_MONO.
13737
13738 * font.h (struct font_driver): New member `match'.
13739 (font_update_drivers): Adjust prototype.
13740
13741 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13742 property of FONT.
13743 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13744 them unconditionally.
13745 (font_matching_entity): New function.
13746 (font_open_by_name): Try font_matching_entity if exact match is
13747 not found.
13748 (font_update_drivers): Delete the arg FONT. Return a list of
13749 actually used backends. Don't free faces, font caches here.
13750 Don't store data in frame parameters. Don't call x_set_font.
13751 (Ffont_spec): Store :name property as is.
13752 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13753 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13754 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13755 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13756 Call font->driver->otf_gsub instead of font_otf_gsub.
13757
13758 * frame.c (x_set_font_backend): Do more works that were done in
13759 font_update_drivers before.
13760
13761 * xfont.c (xfont_match): New function.
13762 (xfont_driver): Set xfont_driver.match to xfont_match.
13763 (xfont_draw): Set font in GC if necessary.
13764
13765 * ftxfont.c (ftxfont_match): New function.
13766 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13767
13768 * xftfont.c (xftfont_match): New function.
13769 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13770
13771 2008-02-01 Kenichi Handa <handa@m17n.org>
13772
13773 * font.h (struct font): New member scalable.
13774 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13775 (font_otf_gsub): Adjust prototype.
13776
13777 * font.c (font_otf_capability): Fix handling of the default langsys.
13778 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13779 Check the contents of SPEC.
13780 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13781 (check_gstring): New function.
13782 (REPLACEMENT_CHARACTER): New macro.
13783 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13784 glyph codes of GSTRING.
13785 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13786 (font_prepare_composition): Set cmp->glyph_len.
13787 (font_open_entity): Set font->scalable.
13788 (Ffont_get): Handle :otf property.
13789 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13790 functions.
13791 (Fquery_font): Use font->font.full_name.
13792 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13793 Sfont_otf_alternates.
13794
13795 * ftfont.c (ftfont_open): Set font->font.full_name and
13796 font->font.name properly. Fix calculation of font->font.height
13797 and font->min_width.
13798
13799 * ftxfont.c (ftxfont_create_gcs): New function.
13800 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13801 (ftxfont_draw_backgrond): Fix filling region.
13802 (ftxfont_default_fid): New function.
13803 (ftxfont_open): Set xfont->fid to the return value of
13804 ftxfont_default_fid.
13805 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13806 (ftxfont_done_face): Free only GCs that are created by
13807 ftxfont_create_gcs.
13808 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13809
13810 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13811 Clip to src->width, etc (not src->clip_XXX).
13812
13813 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13814 FontBackend frame parameter.
13815
13816 2008-02-01 Kenichi Handa <handa@m17n.org>
13817
13818 * font.h (struct font_driver_list): New member `on'.
13819 (Fclear_font_cache): EXFUN it.
13820 (font_update_drivers): Extern it.
13821
13822 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13823 (font_list_entities): Check driver_list->on.
13824 (register_font_driver): Initalize `on' member to 0.
13825 (font_update_drivers): New function.
13826 (Fclear_font_cache): Check driver_list->on.
13827
13828 * frame.h (Qfont_backend): Extern it.
13829 (x_set_font_backend): Extern it.
13830
13831 * frame.c (Qfont_backend): New variable.
13832 (frame_parms): New element for font-backend.
13833 (x_set_font_backend): New function.
13834
13835 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13836 FontBackend frame parameter.
13837 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13838 x_set_font_backend.
13839
13840 * xfont.c (xfont_list): Don't try listing by :name property if the
13841 name is not for XLFD.
13842
13843 2008-02-01 Kenichi Handa <handa@m17n.org>
13844
13845 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13846 (LGLYPH_SET_TO): New macros.
13847 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13848 element of G is vector or not.
13849 (font_at): Extern it.
13850
13851 * font.c: Include window.h.
13852 (font_lispy_object): New function.
13853 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13854 end of valid glyph.
13855 (font_close_object): Fix getting (struct font *).
13856 (font_at): New function.
13857 (Ffont_get): If FONT is a font-object, get entity from it.
13858 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13859 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13860 range check.
13861 (Ffont_at): New function.
13862 (syms_of_font): Defsubr Sfont_at.
13863
13864 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13865 before the entry for Qcomposition.
13866 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13867 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13868 the font in gstring.
13869 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13870 LGLYPH_FORM (g) to detect the end of valid glyph.
13871 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13872 we are composing with gstring.
13873
13874 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13875 Check if adjustment is vector or not.
13876
13877 * Makefile.in (font.o): Make it depends on window.h.
13878
13879 2008-02-01 Kenichi Handa <handa@m17n.org>
13880
13881 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13882 adjustment is vector or not.
13883
13884 2008-02-01 Miles Bader <miles@gnu.org>
13885
13886 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13887
13888 2008-02-01 Kenichi Handa <handa@m17n.org>
13889
13890 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13891 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13892 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13893
13894 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13895 (DEVICE_DELTA): Fix typo.
13896 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13897 LGLYPH format.
13898
13899 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13900 the change of LGLYPH format.
13901
13902 2008-02-01 Kenichi Handa <handa@m17n.org>
13903
13904 * ftfont.c (ftfont_list): Fix typo.
13905 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13906
13907 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13908
13909 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13910
13911 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13912 xftface_info is non-NULL.
13913
13914 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13915
13916 * ftfont.c (ftfont_list): Move misplaced #endif.
13917
13918 2008-02-01 Kenichi Handa <handa@m17n.org>
13919
13920 * ftfont.c (ftfont_list): Pay attention to the case that
13921 FC_CAPABILITY is not defined.
13922
13923 2008-02-01 Kenichi Handa <handa@m17n.org>
13924
13925 * xftfont.c (xftfont_open): Set charset related members to -1.
13926
13927 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13928 QCname.
13929 (ftfont_open): Set charset related members to -1.
13930
13931 * fontset.c (Votf_script_alist): New variable.
13932 (syms_of_fontset): Initialize it.
13933 (fontset_font): Delete unused variable.
13934
13935 * fontset.h (Votf_script_alist): Extern it.
13936
13937 * font.c (font_find_for_lface): Optimize code.
13938
13939 * font.h (font_close_object, font_merge_old_spec): Extern them.
13940
13941 2008-02-01 Kenichi Handa <handa@m17n.org>
13942
13943 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13944 (syms_of_font): Initialize them.
13945 (font_pixel_size): Allow float value in dpi.
13946 (font_prop_validate_type): Delete.
13947 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13948 Change caller.
13949 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13950 (font_prop_validate_extra): Delete.
13951 (font_prop_validate_spacing): New function.
13952 (font_property_table): Add elements for all known properties.
13953 (get_font_prop_index): Rename from check_font_prop_name. New
13954 argument FROM. Change caller.
13955 (font_prop_validate): Validate all known properties.
13956 (font_put_extra): Delete argument force. Change caller.
13957 (font_expand_wildcards): Make it static. Fix the way of shrinking
13958 the possible range.
13959 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13960 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13961 Change caller.
13962 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13963 (font_parse_fcname): Delete argument merge. Fix parsing of point
13964 size. Don't validate properties values here. Change caller.
13965 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13966 (font_open_by_name): Delete unused variable.
13967 (Ffont_spec): Likewise. Validate property values.
13968 (Ffont_match_p): New function.
13969
13970 * font.h (QCscalable): Extern it.
13971 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13972
13973 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13974
13975 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13976 (xfont_list_pattern): New function.
13977 (xfont_list): Use xfont_list_pattern.
13978
13979 2008-02-01 Kenichi Handa <handa@m17n.org>
13980
13981 * font.h (Flist_fonts): EXFUN it.
13982
13983 2008-02-01 Jason Rumney <jasonr@gnu.org>
13984
13985 * w32term.c (w32_initialize): Add back smoothing_type and
13986 smoothing_enabled definitions.
13987
13988 2008-02-01 Kenichi Handa <handa@m17n.org>
13989
13990 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13991 s->face->font on determining underline position.
13992
13993 2008-02-01 Kenichi Handa <handa@m17n.org>
13994
13995 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13996 (font_has_char): Accept font-object too.
13997 (font_find_for_lface): Try at first with a size specified in face.
13998
13999 2008-02-01 Kenichi Handa <handa@m17n.org>
14000
14001 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14002 font_open_by_name.
14003
14004 2008-02-01 Kenichi Handa <handa@m17n.org>
14005
14006 * font.h (QCspacing, QCdpi): Extern them.
14007 (enum font_spacing): New enum.
14008 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14009
14010 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14011 (QCspacing, QCdpi): New variables.
14012 (syms_of_font): Initialize them.
14013 (font_pixel_size): New function.
14014 (font_put_extra): New function.
14015 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14016 in FONT_EXTRA.
14017 (font_parse_fcname): Handle enumerated values (e.g. bold).
14018 Fix handling font size. Add QCname property that contains only
14019 unknown properties.
14020 (font_score): Change argument. Change caller. Pay attention to
14021 FONT_PIXEL_SIZE_QUANTUM.
14022 (font_sort_entites, font_list_entities, font_find_for_lface)
14023 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14024 (Ffont_spec): Add QCname property that contains only unknown properties.
14025
14026 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14027 include weight in listing pattern, instead check weight of each
14028 listed font. Don't include scalable in pattern. Pay attention to
14029 FONT_PIXEL_SIZE_QUANTUM.
14030
14031 2008-02-01 Kenichi Handa <handa@m17n.org>
14032
14033 * font.c (font_parse_fcname): Fix parsing of point-size.
14034 (font_unparse_fcname): Produce symbolic names for style properties.
14035 (font_list_entities): Handle float size correctly.
14036 (font_open_by_name): Prefer `normal' property values if the name
14037 doesn't specify them.
14038
14039 * fontset.c (Finternal_char_font): Use font_get_name, not
14040 Ffont_xlfd_name.
14041
14042 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14043 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14044 pattern. Don't force scalable.
14045
14046 * xftfont.c (xftfont_open): For generating a name, start from
14047 96-byte buffer.
14048
14049 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14050
14051 * frame.h (x_new_fontset2): Fix prototype.
14052
14053 2008-02-01 Kenichi Handa <handa@m17n.org>
14054
14055 * font.h (struct font_driver): Delete member parse_name.
14056 (font_match_p, font_get_spec, font_parse_fcname)
14057 (font_unparse_fcname): Extern them.
14058 (font_get_name): Adjust prototype.
14059
14060 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14061 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14062 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14063 unnecessary checks for weight, slant, and swidth.
14064 (font_parse_fcname): New function.
14065 (font_unparse_fcname): New function.
14066 (font_parse_name): New function.
14067 (font_match_p): New function.
14068 (font_get_name): Change return value to Lisp string.
14069 (font_get_spec): New function.
14070 (Qunspecified, Qignore_defface): Don't extern them.
14071 (font_find_for_lface): Assume that LFACE is fully specified.
14072 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14073 object, use it for FACE.
14074 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14075 driver->parse_name.
14076 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14077
14078 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14079 prototype.
14080
14081 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14082 argument F. Don't call Fnew_fontset. Instead, directly call
14083 make_fontset.
14084
14085 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14086
14087 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14088 of x_new_fontset2.
14089
14090 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14091 (Qsans__serif): New variables.
14092 (ftfont_generic_family_list): New variable.
14093 (syms_of_ftfont): Initialize the above variables.
14094 (ftfont_pattern_entity): Delete argument NAME.
14095 (ftfont_list_generic_family): New function.
14096 (ftfont_parse_name): Delete this function.
14097 (ftfont_list): Try generic family only when FcFontList found no font.
14098 (ftfont_list_family): Fix args to FcObjectSetBuild.
14099
14100 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14101 object in attrs[LFACE_FONT_INDEX].
14102 (set_lface_from_font_name): Cancel all changes for font-backend.
14103 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14104 function.
14105 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14106 font object in QCfont attribute.
14107 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14108 (realize_default_face) [USE_FONT_BACKEND]: Call
14109 set_lface_from_font_and_fontset.
14110
14111 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14112 "fixed", and signal error here if no suitable font was found.
14113
14114 * xfont.c (xfont_parse_name): Delete this function.
14115
14116 * xftfont.c (xftfont_open): Change coding style of error
14117 handling. Generate fontconfig's fontname pattern.
14118
14119 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14120 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14121
14122 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14123 Both args FONTSET and FONT_OBJECT must be existing ones.
14124
14125 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14126
14127 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14128
14129 2008-02-01 Kenichi Handa <handa@m17n.org>
14130
14131 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14132
14133 * font.h (struct font): Fix typo.
14134
14135 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14136 XLFD_XXX_INDEX.
14137 (enum xlfd_field_mask): New enum.
14138 (intern_font_field): Changed argument. Change caller. If digits
14139 are followed by non-digits, return a symbol.
14140 (font_expand_wildcards): New function.
14141 (font_parse_xlfd): Fix wildcard handling.
14142 (Ffont_spec): If :name is specified, reflect the info in the other
14143 properties.
14144
14145 * ftfont.c (ftfont_pattern_entity): Fix typo.
14146 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14147 locale.
14148
14149 2008-02-01 Kenichi Handa <handa@m17n.org>
14150
14151 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14152
14153 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14154 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14155 registry doesn't specify encoding part.
14156 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14157 (font_open_by_name): At first try parsing the name.
14158 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14159 as Lisp symbols.
14160
14161 * fontset.c (reorder_font_vector): Pay attention to the case that
14162 the 3rd element of font_def is nil.
14163 (fontset_font): For the default fontset, append one more fontset
14164 elements for a script-based font specification. Don't add script
14165 attribute on finding a font.
14166 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14167 font name.
14168 (fontset_ascii_font): If a font can't be opened, return nil.
14169
14170 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14171 (ftfont_pattern_entity): New function.
14172 (ftfont_get_cache): Assume that freetype_font_cache is already
14173 initialized.
14174 (ftfont_list): Handle the case that a file is specified in font
14175 name. Use ftfont_pattern_entity to generate entities.
14176 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14177 (syms_of_ftfont): Initialize freetype_font_cache.
14178
14179 * xftfont.c (xftfont_open): Make the font name fontconfig's
14180 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14181 (xftfont_close): Free font->font.name if not NULL.
14182
14183 * xfont.c (xfont_list): If script is specified for a font, return
14184 null_vector.
14185 (xfont_list_family): Declare argument type.
14186
14187 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14188 name, set LFACE_FONT (lface) to nil.
14189
14190 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14191 return Qnil.
14192
14193 2008-02-01 Kenichi Handa <handa@m17n.org>
14194
14195 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14196 (standard_args): Add "-enable-font-backend".
14197
14198 2008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14201 (struct xftdraw_list, xftdraw_list): Delete them.
14202 (register_xftdraw, check_xftdraw): Delete them.
14203 (xftfont_prepare_face): Don't call register_xftdraw.
14204 (xftfont_done_face): Don't call check_xftdraw.
14205 (xftfont_draw): Get background color only when with_background is
14206 nonzero.
14207
14208 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14209
14210 2008-02-01 Kenichi Handa <handa@m17n.org>
14211
14212 These changes are for the new font handling codes.
14213
14214 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14215 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14216 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14217 (FONTSRC, FONTOBJ): New variables.
14218 (obj): Add $(FONTOBJ).
14219 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14220 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14221 @LIBOTF_LIBS@.
14222 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14223 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14224
14225 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14226
14227 * character.h (Vscript_representative_chars): Extern it.
14228
14229 * character.c (Vscript_representative_chars): New variable.
14230 (syms_of_character): Declare it as a Lisp variable.
14231
14232 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14233 enable_font_backend is nonzero, accept the composition method
14234 COMPOSITION_WITH_GLYPH_STRING.
14235
14236 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14237 enumeration COMPOSITION_WITH_GLYPH_STRING.
14238
14239 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14240 members clip_x, clip_y, clip_width, and clip_height.
14241 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14242
14243 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14244 --enable-font-backend. Call syms_of_font.
14245
14246 * fns.c (assoc_no_quit): New function.
14247
14248 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14249 (face_for_font, new_fontset_from_font)
14250 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14251
14252 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14253 (fontset_font, fontset_ascii, face_for_char)
14254 (make_fontset_for_ascii_face, Ffont_info)
14255 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14256 is nonzero, use font-backend mechanism.
14257 (find_font_encoding): Make it non-static.
14258 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14259 New functions.
14260
14261 * frame.h (struct frame): New members resx and resy.
14262 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14263 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14264
14265 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14266 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14267
14268 * lisp.h (assoc_no_quit): Extern it.
14269
14270 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14271 Through out the file, use FONT_INFO_FROM_FACE instead of
14272 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14273 rif->per_char_metric.
14274 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14275 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14276 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14277 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14278 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14279 nonzero, use font-backend mechanism.
14280 (get_per_char_metric): New function.
14281
14282 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14283 (set_lface_from_font_name)
14284 (set_font_frame_param, free_realized_face)
14285 (prepare_face_for_display, clear_face_gcs)
14286 (Finternal_set_font_selection_order, realize_x_face)
14287 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14288 font-backend mechanism.
14289 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14290 (load_face_font) [USE_FONT_BACKEND]: Abort.
14291 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14292 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14293
14294 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14295 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14296 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14297 nonzero, register all available font drivers. Call
14298 x_default_font_parameter for deciding a font.
14299 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14300
14301 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14302 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14303 (x_set_glyph_string_clipping_exactly)
14304 (x_compute_glyph_string_overhangs)
14305 (x_draw_glyph_string_foreground)
14306 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14307 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14308 enable_font_backend is nonzero, use font-backend mechanism.
14309 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14310
14311 2008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14314 system_eol_type.
14315 (syms_of_coding): Initialize system_eol_type.
14316
14317 * process.c (Fset_process_coding_system): Inherit system's eol
14318 format if necessary.
14319
14320 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14321
14322 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14323
14324 2008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * coding.c (decode_eol): Pay attention to buffer relocation in
14327 del_range_2.
14328 (decode_coding): Call decode_eol before restoring undo_list.
14329
14330 2008-02-01 Kenichi Handa <handa@m17n.org>
14331
14332 * charset.c (Fdefine_charset_internal): Fix setting of
14333 emacs_mule_bytes.
14334
14335 2008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 * keyboard.c (read_char): Check if C is a character or not before
14338 looking up Vkeyboard_translate_table.
14339
14340 2008-02-01 Kenichi Handa <handa@m17n.org>
14341
14342 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14343 condition to terminate the loop.
14344
14345 2008-02-01 Kenichi Handa <handa@m17n.org>
14346
14347 * coding.c (produce_composition): Compare charbuf[i] instead of
14348 args[i] against 0.
14349 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14350
14351 2008-02-01 Kenichi Handa <handa@m17n.org>
14352
14353 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14354 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14355 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14356 detect_coding.
14357 (emacs_mule_char): Handle old style (Emacs 20) component character
14358 of a composition.
14359 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14360 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14361 composition rule.
14362 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14363
14364 2008-02-01 Kenichi Handa <handa@m17n.org>
14365
14366 * coding.c (encode_coding_ccl): Allocate destination dynamically
14367 when necessary.
14368
14369 2008-02-01 Kenichi Handa <handa@m17n.org>
14370
14371 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14372 the loop. When quitted, show a proper error message.
14373
14374 2008-02-01 Kenichi Handa <handa@m17n.org>
14375
14376 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14377 src->clip_head and src->clip_tail temporarily instead of src->hl.
14378
14379 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14380 character sequence.
14381 (Fccl_execute_on_string): Use ASET, not XSET.
14382
14383 2008-02-01 Kenichi Handa <handa@m17n.org>
14384
14385 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14386
14387 2008-02-01 Kenichi Handa <handa@m17n.org>
14388
14389 * coding.c (decode_coding): Fix the condition of terminating the
14390 decoding loop.
14391
14392 2008-02-01 Kenichi Handa <handa@m17n.org>
14393
14394 * data.c (Faset): On setting a character bigger than 255 in a
14395 unibyte string, signal an error instead of make the string multibyte.
14396
14397 2008-02-01 Kenichi Handa <handa@m17n.org>
14398
14399 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14400 made by a mapping table.
14401
14402 2008-02-01 Kenichi Handa <handa@m17n.org>
14403
14404 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14405 not.
14406 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14407 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14408
14409 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14410 s->face is NULL or not.
14411
14412 2008-02-01 Kenichi Handa <handa@m17n.org>
14413
14414 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14415 (x_draw_glyph_string): Fix drawing of right_overhang and
14416 left_overhang around/on cursor.
14417
14418 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14419
14420 2008-02-01 Kenichi Handa <handa@m17n.org>
14421
14422 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14423
14424 2008-02-01 Kenichi Handa <handa@m17n.org>
14425
14426 * coding.c (Fdefine_coding_system_internal)
14427 (Fdefine_coding_system_alias): Avoid a duplicated element in
14428 Vcoding_system_alist.
14429
14430 2008-02-01 Kenichi Handa <handa@m17n.org>
14431
14432 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14433
14434 * coding.c (Qcoding_system_define_form): New variable.
14435 (syms_of_coding): Intern and staticpro it.
14436 (Fcoding_system_p): Check Qcoding_system_define_form.
14437 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14438
14439 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14440 Fcoding_system_p.
14441 (CHECK_CODING_SYSTEM): If ID is not available, call
14442 Fcheck_coding_system.
14443 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14444 Try also Fcheck_coding_system.
14445
14446 2008-02-01 Kenichi Handa <handa@m17n.org>
14447
14448 * coding.c (code_conversion_restore): GCPRO arg.
14449
14450 2008-02-01 Kenichi Handa <handa@m17n.org>
14451
14452 * character.c (lisp_string_width): Check multibyteness of STRING.
14453
14454 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14455
14456 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14457 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14458 (decode_mac_font_name): Use decode_coding_c_string instead of
14459 decode_coding.
14460 (x_load_font): Initialize fontp->fontset to -1. Set
14461 fontp->encoding_type.
14462
14463 2008-02-01 Kenichi Handa <handa@m17n.org>
14464
14465 * search.c (search_buffer): Give up BM search on case-fold-search
14466 if one of a target character has a case-equivalence of different
14467 byte length even if that target charcter is an ASCII.
14468 (simple_search): Fix calculation of byte length of matched text.
14469 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14470
14471 2008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * coding.c (decode_coding): Fix handling of invalid bytes.
14474
14475 2008-02-01 Kenichi Handa <handa@m17n.org>
14476
14477 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14478 Unicode characters.
14479
14480 2008-02-01 Kenichi Handa <handa@m17n.org>
14481
14482 * coding.c (encode_coding_object): If a pre-write-conversion
14483 function makes a new buffer, kill it.
14484
14485 2008-02-01 Kenichi Handa <handa@m17n.org>
14486
14487 * coding.c (QCascii_compatible_p): New variable.
14488 (syms_of_coding): Initialize it.
14489 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14490 calling string_char.
14491 (record_conversion_result): Add `default:' case.
14492 (coding_charset_list): Delete unused variable `coding_type'.
14493 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14494 property in the plist of the coding system.
14495 (Fcoding_system_put): Check QCascii_compatible_p.
14496
14497 2008-02-01 Miles Bader <miles@gnu.org>
14498
14499 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14500 removed calculation of frame `f', as it's now used.
14501
14502 2008-02-01 Kenichi Handa <handa@m17n.org>
14503
14504 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14505 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14506 (UNIDATA): New variable.
14507 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14508 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14509 $(RUN_TEMACS) unconditionally.
14510
14511 2008-02-01 Kenichi Handa <handa@m17n.org>
14512
14513 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14514 (admindir): New variable.
14515 ($(lispsource)international/charprop.el): New target.
14516
14517 2008-02-01 Miles Bader <miles@gnu.org>
14518
14519 * character.c (chars-in-region): Remove obsolete function.
14520 (syms_of_character): Remove its initialization.
14521
14522 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14523
14524 * w32select.c (validate_coding_system)
14525 (setup_windows_coding_system): New functions.
14526 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14527 setup_windows_coding_system.
14528 (setup_config, Fw32_get_clipboard_data): Use
14529 validate_coding_system.
14530 (Fx_selection_exists): Move call to setup_config to a place
14531 where signals are allowed.
14532
14533 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14534 (Fcheck_coding_system): Add declarations.
14535
14536 2008-02-01 Kenichi Handa <handa@m17n.org>
14537
14538 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14539
14540 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14541
14542 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14543 string as the second argument for x_new_fontset.
14544
14545 2008-02-01 Kenichi Handa <handa@m17n.org>
14546
14547 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14548 (encode_coding_object): Use safe_call instead of call2.
14549
14550 2008-02-01 Kenichi Handa <handa@m17n.org>
14551
14552 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14553
14554 * Makefile.in (lisp): Include charprop.el.
14555
14556 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14557
14558 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14559 Not sure if it's unnecessary.
14560
14561 2008-02-01 Steven Tamm <steventamm@mac.com>
14562
14563 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14564 some possibly unnecessary fontset checking code that crashed
14565 when creating a new frame.
14566
14567 2008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14570 lookup_face.
14571
14572 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14573
14574 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14575
14576 2008-02-01 Kenichi Handa <handa@m17n.org>
14577
14578 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14579 (coding_charset_list): New function.
14580
14581 * coding.h (coding_charset_list): Extern it.
14582
14583 2008-02-01 Kenichi Handa <handa@m17n.org>
14584
14585 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14586 concatenation of family and registry.
14587
14588 2008-02-01 Kenichi Handa <handa@m17n.org>
14589
14590 * character.h (BYTE8_STRING): Fix typo.
14591
14592 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14593 string to multibyte (sync to HEAD).
14594
14595 * casefiddle.c (casify_region): Handle changes in byte-length
14596 using replace_range_2 (sync to HEAD).
14597
14598 2008-02-01 Andreas Schwab <schwab@suse.de>
14599
14600 * chartab.c (map_char_table): GCPRO table and arg.
14601
14602 2008-02-01 Kenichi Handa <handa@m17n.org>
14603
14604 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14605 already at limit.
14606
14607 2008-02-01 Kenichi Handa <handa@m17n.org>
14608
14609 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14610 instead of fast_c_string_match_ignore_case.
14611 (find_font_encoding): Change argument to Lisp_Object. Use
14612 fast_string_match_ignore_case instead of
14613 fast_c_string_match_ignore_case. Change caller.
14614
14615 2008-02-01 Kenichi Handa <handa@m17n.org>
14616
14617 * xdisp.c (get_next_display_element): In unibyte case, decide to
14618 display in octal form by checking a character by
14619 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14620
14621 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14622
14623 * character.c (unibyte_has_multibyte_table): New variable.
14624
14625 * character.h (unibyte_has_multibyte_table): Extern it.
14626 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14627
14628 2008-02-01 Kenichi Handa <handa@m17n.org>
14629
14630 * coding.c (encode_coding_iso_2022): Fix handling of charset
14631 annotation.
14632
14633 2008-02-01 Kenichi Handa <handa@m17n.org>
14634
14635 * coding.c (setup_coding_system): If coding_system is nil, use
14636 Qundecided.
14637 (Fterminal_coding_system): Return nil if terminal coding system is
14638 `undecided'.
14639 (syms_of_coding): Define coding-system `undecided' here. Setup
14640 terminal_coding as `undecided'.
14641
14642 2008-02-01 Kenichi Handa <handa@m17n.org>
14643
14644 * xdisp.c (message_dolog, set_message_1): Call
14645 unibyte_char_to_multibyte with arg type int.
14646
14647 * lread.c (read1): Fix reading of a char-table.
14648
14649 * print.c (print_object): Include sub char-table in circularities
14650 detection.
14651
14652 2008-02-01 Kenichi Handa <handa@m17n.org>
14653
14654 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14655 Append the found sequences in car of ARGS instead of prepending.
14656
14657 2008-02-01 Kenichi Handa <handa@m17n.org>
14658
14659 * fileio.c (report_file_error): Make a unibyte string from
14660 strerror (errorno).
14661 (Fsubstitute_in_file_name): Fix the arg to
14662 unibyte_char_to_multibyte. It is evaluated twice.
14663
14664 2008-02-01 Kenichi Handa <handa@m17n.org>
14665
14666 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14667
14668 2008-02-01 Kenichi Handa <handa@m17n.org>
14669
14670 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14671 BOM is not found.
14672 (detect_coding, detect_coding_system): Optimization for ISO-2022
14673 when no 8-bit data is found.
14674
14675 2008-02-01 Jason Rumney <jasonr@gnu.org>
14676
14677 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14678
14679 2008-02-01 Kenichi Handa <handa@m17n.org>
14680
14681 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14682 CHARS.
14683
14684 2008-02-01 Steven Tamm <steventamm@mac.com>
14685
14686 * macterm.c (mac_encode_char): Add charset argument and update
14687 to use encoding_type.
14688 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14689 switch to pure fontset.
14690 (decode_mac_font_name): Temporarily remove decoding.
14691 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14692 (x_load_font): Temporarily remove encoding.
14693
14694 2008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * xfaces.c (Fface_font): If frame is not on a window system,
14697 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14698 refer to face->font.
14699 (split_font_name_into_vector, build_font_name_from_vector)
14700 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14701 when HAVE_WINDOW_SYSTEM is defined.
14702
14703 2008-02-01 Kenichi Handa <handa@m17n.org>
14704
14705 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14706 (x_produce_glyphs): Fix setting of members of cmp in case
14707 cmp->glyph_len is zero.
14708
14709 * fontset.c (Fset_fontset_font): Fix docstring.
14710 (Ffontset_info): Make it backward compatible. New arg ALL.
14711
14712 2008-02-01 Kim F. Storm <storm@cua.dk>
14713
14714 * process.c (read_process_output): Grow decoding_buf when needed;
14715 this could cause a crash in allocate_string and compact_small_strings.
14716
14717 2008-02-01 Kenichi Handa <handa@m17n.org>
14718
14719 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14720
14721 2008-02-01 Kenichi Handa <handa@m17n.org>
14722
14723 * coding.c (setup_coding_system): Set coding->common_flags
14724 correctly for raw-text.
14725 (consume_chars): On encoding unibyte text by raw-text, don't check
14726 multibyte form.
14727 (encode_coding): On encoding by raw-text, never use translation tables.
14728
14729 * fileio.c (e_write): Short cut for the case of no encoding.
14730
14731 2008-02-01 Kenichi Handa <handa@m17n.org>
14732
14733 * coding.c (detect_coding, detect_coding_system): Delete unused
14734 variables.
14735
14736 2008-02-01 Kenichi Handa <handa@m17n.org>
14737
14738 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14739 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14740
14741 2008-02-01 Kenichi Handa <handa@m17n.org>
14742
14743 * coding.c (Ffind_coding_systems_region_internal): Include
14744 raw-text and no-conversion in the result.
14745
14746 2008-02-01 Kenichi Handa <handa@m17n.org>
14747
14748 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14749 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14750 FONT_DEF.
14751 (font_def_arg, add_arg, from_arg, to_arg): New args.
14752 (set_fontset_font): Change argument.
14753 (Fset_fontset_font): Fix for the case that TARGET is a script
14754 name and charset name.
14755 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14756
14757 2008-02-01 Kenichi Handa <handa@m17n.org>
14758
14759 * fontset.c (fontset_font): Rename from fontset_face. Change return
14760 value.
14761 (face_suitable_for_char_p, face_for_char): Adjust for the change
14762 of fontset_font.
14763 (make_fontset_for_ascii_face): Fix setting of the fontset element
14764 for ASCII.
14765 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14766 to get a font name.
14767 (Ffontset_info): Adjust for the change of fontset_font.
14768
14769 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14770
14771 * character.h (LEADING_CODE_LATIN_1_MIN)
14772 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14773
14774 2008-02-01 Kenichi Handa <handa@m17n.org>
14775
14776 * editfns.c (check_translation): New function.
14777 (Ftranslate_region_internal): Handle M:N mapping.
14778
14779 2008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14782
14783 2008-02-01 Kenichi Handa <handa@m17n.org>
14784
14785 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14786 goto invalid_code.
14787 (decode_coding_iso_2022): Fix handling of invalid designation.
14788
14789 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14790 after calling code_conversion_save.
14791
14792 2008-02-01 Kenichi Handa <handa@m17n.org>
14793
14794 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14795
14796 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14797
14798 * fontset.c: Include "intervals.h".
14799 (fontset_face): Fix comparing of Lisp_Objects.
14800 (free_face_fontset, new_fontset_from_font_name): Fix
14801 Lisp_Object/int mixup.
14802
14803 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14804
14805 * coding.c: Add many prototypes for static functions.
14806 (get_translation_table): Allow max_lookup to be NULL.
14807 (decode_coding, Ffind_coding_systems_region_internal)
14808 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14809 get_translation_table with max_lookup NULL.
14810
14811 2008-02-01 Kenichi Handa <handa@m17n.org>
14812
14813 * coding.c (get_translation_table): Declare it as Lisp_Object.
14814 (LOOKUP_TRANSLATION_TABLE): New macro.
14815 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14816 instead of CHAR_TABLE_REF.
14817
14818 2008-02-01 Kenichi Handa <handa@m17n.org>
14819
14820 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14821 annotation data format.
14822 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14823 Change arguments FROM and TO to single argument NCHARS. Change caller.
14824 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14825 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14826 (decode_coding_ccl, decode_coding_charset): Pay attention to
14827 coding->charbuf_used.
14828 (get_translation): New function.
14829 (produce_chars): New arguments translation_table and last_block.
14830 Translate characters here. Return number of carryover chars.
14831 Change caller.
14832 (produce_composition): New argument pos. Change caller.
14833 Adjust for the change of annotation data format.
14834 (produce_charset, produce_annotation): Likewise.
14835 (decode_coding, encode_coding): Don't call translate_chars.
14836 (consume_chars): New arg translation_table. Change caller.
14837 (translate_chars): Delete.
14838 (syms_of_coding): Make translation-table's number of extra slots 2.
14839
14840 2008-02-01 Kenichi Handa <handa@m17n.org>
14841
14842 * search.c (simple_search): Fix setting this_pos_byte in backward
14843 search.
14844
14845 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14846 byte sequence.
14847 (detect_coding_ccl): Fix setting of the variable valids.
14848
14849 2008-02-01 Kenichi Handa <handa@m17n.org>
14850
14851 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14852
14853 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14854
14855 * editfns.c (Ftranslate_region_internal): Rename from
14856 Ftranslate_region. Accept a char-table in TABLE.
14857 (syms_of_editfns): Defsubr Stranslate_region_internal.
14858
14859 * xfaces.c (set_lface_from_font_name): If a font is specified for
14860 a frame, generate a fontset from the font.
14861 (build_scalable_font_name): If the scalable font is requested for
14862 a specific size, don't change that size.
14863 (try_font_list): Try a scalable font also in the case that a
14864 pattern string is specified.
14865
14866 2008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * xfaces.c (Fface_font): New optional arg CHARACTER.
14869
14870 2008-02-01 Kenichi Handa <handa@m17n.org>
14871
14872 * charset.h (CHARSET_OFFSET): New macro.
14873
14874 2008-02-01 Kenichi Handa <handa@m17n.org>
14875
14876 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14877
14878 * fontset.c (fontset_face): Handle the case that repertory is a
14879 char-table.
14880 (find_font_encoding): Return nil for unknown encoding.
14881 (Fset_fontset_font): Ignore a font of unknown encoding.
14882
14883 2008-02-01 Kenichi Handa <handa@m17n.org>
14884
14885 * keymap.c (describe_vector): Handle default value of a char table.
14886
14887 * fontset.c (fontset_face): Handle fallback fonts correctly.
14888 (Ffontset_info): Return infomation about fallback fonts.
14889
14890 2008-02-01 Kenichi Handa <handa@m17n.org>
14891
14892 * fontset.c (FONTSET_DEFAULT): New macro.
14893 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14894 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14895 the case that it is nil.
14896 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14897 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14898
14899 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14900 subset or superset.
14901
14902 2008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * emacs.c (main): Call init_charset after syms_of_XXX.
14905
14906 * charset.c (Vcharset_map_directory): Delete.
14907 (Vcharset_map_path): New variable.
14908 (load_charset_map_from_file): Use Vcharset_map_path instead.
14909 (init_charset): Initialize Vcharset_map_path.
14910 (syms_of_charset): Delete declaration of "charset-map-directory",
14911 add declaration of "charset-map-path".
14912
14913 2008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14916 ASCII only string.
14917
14918 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14919
14920 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14921 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14922
14923 2008-02-01 Kenichi Handa <handa@m17n.org>
14924
14925 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14926
14927 * coding.c (QCmnemonic, QCdefalut_char)
14928 (QCdecode_translation_table, QCencode_translation_table)
14929 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14930 (get_translation_table): Return a list of translation tables if
14931 necessary.
14932 (decode_coding): Call get_translation_table with ENCODEP 0.
14933 (char_encodable_p): If translation_table is non-nil, always call
14934 translate_char.
14935 (Fdefine_coding_system_internal): Accept list of translation
14936 tables as :encode-translation-table and :decode-translation-table.
14937 (Fcoding_system_put): New function.
14938 (syms_of_coding): Declare new symbols. Defsubr
14939 Scoding_system_put.
14940 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14941 typically JISX0212.
14942
14943 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14944 when the charset is superset type.
14945
14946 * character.c (translate_char): Accept list of translation tables.
14947
14948 2008-02-01 Kenichi Handa <handa@m17n.org>
14949
14950 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14951 (CODING_ATTR_TRANS_TBL): New macro.
14952
14953 * coding.c (get_translation_table): New function.
14954 (translate_chars): Fix the bug of skipping annotation data.
14955 (decode_coding, encode_coding): Utilize get_translation_table.
14956 (char_encodable_p, Funencodable_char_position): Translate char if
14957 necessary.
14958 (Ffind_coding_systems_region_internal)
14959 (Fcheck_coding_systems_region): Setup translation table for encode
14960 in a coding system attribute vector in advance.
14961 (Fdefine_coding_system_internal): Allow a symbol as translation
14962 table. For shift-jis type coding system, allow 4th charset.
14963
14964 2008-02-01 Kenichi Handa <handa@m17n.org>
14965
14966 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14967
14968 * xdisp.c (get_next_display_element): Pass -1 as POS to
14969 FACE_FOR_CHAR if displaying a C-string.
14970
14971 2008-02-01 Kenichi Handa <handa@m17n.org>
14972
14973 * composite.c (get_composition_id): Handle xoff and yoff in a
14974 composition rule.
14975
14976 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14977 (struct composition): New member lbearing and rbearing.
14978
14979 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14980 (x_get_glyph_overhangs): Handle a composition glyph.
14981 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14982
14983 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14984 composition glyph.
14985
14986 2008-02-01 Kenichi Handa <handa@m17n.org>
14987
14988 * print.c: Include charset.h.
14989 (Vprint_charset_text_property): New variable.
14990 (Qdefault): Extern it.
14991 (PRINT_STRING_NON_CHARSET_FOUND)
14992 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14993 (print_check_string_result): New variable.
14994 (print_check_string_charset_prop): New function.
14995 (print_prune_charset_plist): New variable.
14996 (print_prune_string_charset): New function.
14997 (print_object): Call print_prune_string_charset if
14998 Vprint_charset_text_property is not t.
14999 (print_interval): Print nothing if interval->plist is nil.
15000 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15001 variable. Init and staticpro print_prune_charset_plist.
15002
15003 2008-02-01 Kenichi Handa <handa@m17n.org>
15004
15005 * fontset.c (new_fontset_from_font_name): Use the specified font
15006 for all characters in the new fontset.
15007
15008 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15009 OBJECT args.
15010
15011 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15012 OBJECT args for composition too.
15013
15014 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15015 OBJECT args.
15016
15017 2008-02-01 Kenichi Handa <handa@m17n.org>
15018
15019 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15020
15021 * fontset.c (reorder_font_vector): Adjust for the change of
15022 FONT_DEF format.
15023 (fontset_face): New arg id. Change caller.
15024 (face_for_char): New args pos and object.
15025 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15026 (fs_query_fontset): Check NAME by Fassoc too.
15027 (Fset_fontset_font): Allow non-XLFD font name.
15028 (Ffontset_info): Adjust for the change of FONT_DEF format.
15029
15030 * fontset.h (face_for_char): Adjust prototype.
15031
15032 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15033 (append_space, extend_face_to_end_of_line)
15034 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15035 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15036
15037 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15038 POS and OBJECT args.
15039
15040 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15041 POS and OBJECT args.
15042
15043 2008-02-01 Jason Rumney <jasonr@gnu.org>
15044
15045 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15046 of GlobalAlloc'ed memory.
15047
15048 2008-02-01 Kenichi Handa <handa@m17n.org>
15049
15050 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15051
15052 * charset.h (charset_table_used): Delete extern.
15053
15054 * charset.c (charset_table_used): Make it static.
15055 (map_charset_chars): Fix args to c_function with.
15056
15057 * chartab.c (map_sub_char_table_for_charset): Fix args to
15058 c_function with.
15059
15060 * coding.h (enum coding_result_code): Delete
15061 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15062
15063 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15064 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15065 (Vlast_code_conversion_error): New variables.
15066 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15067 (ONE_MORE_BYTE): Record error if any instead of signaling an
15068 error. If non-ASCII multibyte char is found, return the negative
15069 value of the code. All callers changed to check it.
15070 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15071 (record_conversion_result): New function. Change all codes setting
15072 coding->result to call this function.
15073 (detect_coding_utf_8, decode_coding_utf_8)
15074 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15075 Don't use the local variable incomplete.
15076 (emacs_mule_char): Change the second arg to `const'.
15077 (decode_coding): Fix of flushing out unprocessed data.
15078 (make_conversion_work_buffer): Fix making of a work buffer.
15079 (decode_coding_object): Return coding->dst_object.
15080
15081 * fontset.c (set_fontset_font): Fix args.
15082
15083 * lisp.h (CHARACTERBITS): Define as 22.
15084
15085 * process.c (send_process): Be sure to set coding->src_multibyte.
15086
15087 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15088
15089 2008-02-01 Kenichi Handa <handa@m17n.org>
15090
15091 * xdisp.c (handle_auto_composed_prop): Give limit to
15092 Fnext_single_char_property_change.
15093
15094 2008-02-01 Kenichi Handa <handa@m17n.org>
15095
15096 * composite.c (syms_of_composite): Don't make the composition hash
15097 table weak.
15098
15099 * fontset.c (Fset_fontset_font): Fix docstring.
15100
15101 * lisp.h (detect_coding_system): Adjust prototype.
15102
15103 * fileio.c (kill_workbuf_unwind): Delete this function.
15104 (Finsert_file_contents): Adjust the call of detect_coding_system.
15105 Get conversion_buffer by code_conversion_save. Use the macro
15106 CODING_MAY_REQUIRE_DECODING. After decoding, update
15107 coding_system.
15108
15109 * coding.h (make_conversion_work_buffer): Delete extern.
15110 (code_conversion_save): Extern it.
15111
15112 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15113 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15114 (decode_coding_utf_8): Don't do eol converion.
15115 (detect_coding_utf_16): Check coding->src_chars, not
15116 coding->src_bytes. Add heuristics for those that have no signature.
15117 (decode_coding_emacs_mule, decode_coding_iso_2022)
15118 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15119 Don't do eol converion.
15120 (adjust_coding_eol_type): Return a new coding system.
15121 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15122 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15123 each change.
15124 (decode_coding): Pay attention to undo_list. Do eol conversion for
15125 all types of coding-systems (if necessary).
15126 (Vcode_conversion_work_buf_list): Delete it.
15127 (Vcode_conversion_reused_workbuf): Rename from
15128 Vcode_conversion_reused_work_buf.
15129 (Vcode_conversion_workbuf_name): New variable.
15130 (reused_workbuf_in_use): New variable.
15131 (make_conversion_work_buffer): Delete the arg DEPTH.
15132 (code_conversion_restore): Change argument to cons.
15133 (code_conversion_save): Delete the argument BUFFER. Change callers.
15134 (detect_coding_system): New argument src_chars. Change callers.
15135 Fix for utf-16 detection.
15136 (init_coding_once): Don't use ISO_carriage_return.
15137 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15138 reused_workbuf_in_use.
15139
15140 2008-02-01 Kenichi Handa <handa@m17n.org>
15141
15142 * keymap.c (store_in_keymap): Pay attention to the case that idx
15143 is a cons specifying a character range.
15144
15145 2008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15148 HANDLED_RECOMPUTE_PROPS.
15149
15150 * coding.c (Fdefine_coding_system_internal): Fix checking of
15151 ascii compatibility.
15152
15153 2008-02-01 Kenichi Handa <handa@m17n.org>
15154
15155 * charset.c (find_charsets_in_text): Delete unused locale variable.
15156 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15157
15158 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15159 Resync charset_list to Vemacs_mule_charset_list.
15160
15161 * keymap.c (store_in_keymap): Pay attention to the case that idx
15162 is a cons specifying a character range.
15163
15164 2008-02-01 Kenichi Handa <handa@m17n.org>
15165
15166 * composite.c (update_compositions): Bind inhibit-read-only, etc
15167 to t before calling remove-list-of-text-properties.
15168
15169 * print.c (print_object): Always print ASCII chars as is.
15170
15171 2008-02-01 Kenichi Handa <handa@m17n.org>
15172
15173 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15174
15175 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15176 is a char table.
15177
15178 2008-02-01 Kenichi Handa <handa@m17n.org>
15179
15180 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15181
15182 2008-02-01 Kenichi Handa <handa@m17n.org>
15183
15184 * xfaces.c (set_lface_from_font_name): Fix for the case that
15185 FONTNAME is not fontset name.
15186
15187 2008-02-01 Kenichi Handa <handa@m17n.org>
15188
15189 * fns.c (base64_encode_1): Fix previous change.
15190
15191 2008-02-01 Kenichi Handa <handa@m17n.org>
15192
15193 * fontset.c (set_fontset_font): New function.
15194 (Fset_fontset_font): If a font is specified for a charset, use
15195 map_charset_chars to store the font spec in a fontset.
15196
15197 2008-02-01 Kenichi Handa <handa@m17n.org>
15198
15199 * fontset.c (fontset_face): Create a fallback fontset on demand.
15200 (make_fontset): Don't create a fallback fontset here.
15201 (free_face_fontset): Free a fallback fontset (if any) too.
15202 (n_auto_fontsets): Delete this variable.
15203 (auto_fontset_alist): New variable.
15204 (new_fontset_from_font_name): Check auto_fontset_alist.
15205 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15206 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15207 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15208 Defsubr Sfontset_list_all.
15209
15210 2008-02-01 Kenichi Handa <handa@m17n.org>
15211
15212 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15213
15214 2008-02-01 Kenichi Handa <handa@m17n.org>
15215
15216 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15217
15218 2008-02-01 Kenichi Handa <handa@m17n.org>
15219
15220 * editfns.c (Fgoto_char): Fix docstring.
15221
15222 2008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 * insdel.c (insert_from_gap): Adjust intervals correctly.
15225
15226 2008-02-01 Jason Rumney <jasonr@gnu.org>
15227
15228 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15229 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15230 (w32_initialize): Try to load it.
15231 (x_get_font_repertory): Use it if available.
15232 (w32_encode_char): Add shortcut for unicode output.
15233
15234 * w32fns.c (w32_load_system_font): Default charset to -1.
15235 (x_to_w32_charset): Match all fonts for unicode.
15236 (w32_to_x_charset): New parameter matching. Don't return partial
15237 or wildcard charsets.
15238 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15239 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15240 (w32_to_x_font): Match charset to real charset.
15241 (enum_font_cb2): Always list unicode versions.
15242
15243 * makefile.w32-in (temacs): Increase EMHEAP.
15244
15245 2008-02-01 Jason Rumney <jasonr@gnu.org>
15246
15247 * w32term.c (w32_encode_char): New charset parameter.
15248 font_info.encoding becomes encoding_type.
15249 (x_get_font_repertory): New function. Warning: stub only!
15250 (x_new_font): Return quickly if font already set.
15251 (x_new_fontset): fontsetname parameter is Lisp_Object.
15252 Use new fs_query_fontset. Try new_fontset_from_font_name.
15253 Use fontset_name for return value.
15254
15255 * w32term.h: Declare x_get_font_repertory.
15256
15257 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15258 place of find_charset_in_text. Use encode_coding_object in place
15259 of encode_coding.
15260 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15261 decode_coding.
15262
15263 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15264 of x_new_fontset.
15265 (w32_load_system_font): Initialize charset as unicode.
15266 font_info.encoding becomes encoding_type.
15267 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15268 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15269 (syms_of_w32fns): Set get_font_repertory_func.
15270
15271 * w32console.c: Include character.h. Use terminal_encode_buffer
15272 from term.c.
15273 (write_glyphs): Use new version of encode_terminal_code. Use
15274 encode_coding_object in place of encode_coding.
15275
15276 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15277 encoding becomes encoding_type.
15278
15279 * term.c (terminal_encode_buffer): Make externally visible.
15280
15281 * makefile.w32-in: Add character.h dependancies.
15282 (character.o, chartab.o): New targets.
15283
15284 2008-02-01 Kenichi Handa <handa@m17n.org>
15285
15286 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15287 CODING_ID_EOL_TYPE.
15288
15289 2008-02-01 Andreas Schwab <schwab@suse.de>
15290
15291 * coding.c (produce_chars): Revert last change.
15292
15293 2008-02-01 Kenichi Handa <handa@m17n.org>
15294
15295 * charset.h (charset_unicode): Extern it.
15296
15297 * charset.c (string_xstring_p): Check by (C >= 0x100).
15298 (find_charsets_in_text): Change format of the arc CHARSETS. New
15299 arg MULTIBYTE.
15300 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15301 change of find_charsets_in_text.
15302 (Fsplit_char): Fix doc. Never return unknown.
15303
15304 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15305
15306 * coding.c (Fdefine_coding_system_alias): Update
15307 Vcoding_system_list.
15308
15309 * fontset.c (load_font_get_repertory): Pay attention to the case
15310 that ENCODING of a font is specified by a char-table.
15311
15312 * xterm.c (x_get_font_repertory): Handle the case that the
15313 encoding of font is other than Unicode.
15314
15315 2008-02-01 Kenichi Handa <handa@m17n.org>
15316
15317 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15318 if a character is encodable by the terminal coding system. If
15319 not, produces proper number of `?'s. Update
15320 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15321 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15322
15323 2008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15326 variables.
15327 (encode_terminal_code): Change argument. Encode multiple
15328 characters at once. Store the result of encoding in
15329 terminal_encode_buffer.
15330 (write_glyphs, insert_glyphs): Adjust for the change of
15331 encode_terminal_code.
15332 (term_init): Initialize terminal_encode_buffer and
15333 terminal_encode_buf_size.
15334
15335 * coding.c (consume_chars): If coding->src_object is nil, don't
15336 check annotation.
15337
15338 2008-02-01 Kenichi Handa <handa@m17n.org>
15339
15340 * character.c (char_string): Use ASCII_CHAR_P instead of
15341 SINGLE_BYTE_CHAR_P.
15342
15343 2008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * xdisp.c (handle_auto_composed_prop): Check if the last
15346 characters of auto-composed region is newly composed with the
15347 following characters.
15348 (handle_composition_prop): Fix checking of point being inside
15349 composition.
15350
15351 2008-02-01 Kenichi Handa <handa@m17n.org>
15352
15353 * fns.c (concat): Don't change multibyteness of the result by
15354 concatenating an 8-bit character.
15355
15356 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15357 multibyteness of the result when newelt is an 8-bit character.
15358
15359 2008-02-01 Dave Love <fx@gnu.org>
15360
15361 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15362 EMACS_INT.
15363
15364 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15365
15366 * xfaces.c (face_numeric_value): Declare dim size_t.
15367 (Finternal_lisp_face_equal_p): Remove unused f.
15368
15369 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15370 (MATRIX_ROW): Remove unused vars.
15371 (draw_glyphs, x_insert_glyphs, fast_find_position)
15372 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15373 byte/char counts.
15374
15375 * regex.c (regex_compile): Remove unused var.
15376
15377 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15378
15379 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15380 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15381
15382 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15383
15384 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15385
15386 * fileio.c (Fwrite_region): Remove unused var.
15387
15388 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15389 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15390
15391 * composite.c (Fremove_list_of_text_properties): Declare.
15392
15393 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15394 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15395 (coding_inherit_eol_type): Remove unused attrs.
15396 (detect_coding): Cast arg of detect_eol.
15397
15398 * charset.c (syms_of_charset): Remove unused var p.
15399 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15400 byte/char counts.
15401
15402 * casetab.c (set_case_table): Remove unused var.
15403
15404 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15405 unused vars.
15406
15407 2008-02-01 Dave Love <fx@gnu.org>
15408
15409 * xterm.c (x_bitmap_mask): Declare.
15410
15411 2008-02-01 Dave Love <fx@gnu.org>
15412
15413 * xterm.c (x_term_init): Fix type error.
15414
15415 * lisp.h: Add Funibyte_char_to_multibyte.
15416
15417 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15418 (Fset_coding_system_priority): Doc fix.
15419
15420 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15421
15422 * indent.c (check_composition): Make start and end EMACS_INT.
15423
15424 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15425
15426 * xdisp.c (handle_composition_prop, check_point_in_composition):
15427 Make buffer positions EMACS_INT.
15428
15429 * composite.c (find_composition, run_composition_function)
15430 (update_compositions, Ffind_composition_internal): Make buffer
15431 positions EMACS_INT.
15432
15433 * composite.h (find_composition, update_compositions): Make
15434 position args EMACS_INT.
15435
15436 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15437
15438 * intervals.c (get_property_and_range):
15439 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15440
15441 * unexalpha.c: Don't include varargs.h.
15442
15443 2008-02-01 Dave Love <fx@gnu.org>
15444
15445 * coding.h (ENCODE_UTF_8): New.
15446
15447 * Makefile.in (gtkutil.o): Depend on coding.h.
15448
15449 * coding.c (Fset_coding_system_priority): Doc fix.
15450
15451 2008-02-01 Kenichi Handa <handa@m17n.org>
15452
15453 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15454 the case of auto saving.
15455
15456 2008-02-01 Andreas Schwab <schwab@suse.de>
15457
15458 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15459 `range' from GC.
15460
15461 2008-02-01 Kenichi Handa <handa@m17n.org>
15462
15463 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15464
15465 2008-02-01 Kenichi Handa <handa@m17n.org>
15466
15467 * fileio.c (choose_write_coding_system): Return a decided coding system.
15468 (Fwrite_region): Set Vlast_coding_system_used to the return value
15469 of choose_write_coding_system.
15470
15471 2008-02-01 Kenichi Handa <handa@m17n.org>
15472
15473 * charset.c (Fset_charset_priority): Pay attention to duplicated
15474 arguments.
15475
15476 * coding.c (QCcategory): New variable.
15477 (syms_of_coding): Defsym it. Set all elements of
15478 Vcoding_category_table and their symbol values.
15479 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15480 coding-category-XXX, and coding-category-list.
15481 (Fdefine_coding_system_internal): Add category in the plist.
15482
15483 2008-02-01 Kenichi Handa <handa@m17n.org>
15484
15485 * callproc.c (Fcall_process): Handle carryover correctly.
15486
15487 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15488 (raw_text_coding_system): Check NILP (coding_system).
15489 (coding_inherit_eol_type): Check NILP (coding_system) and
15490 NILP (parent).
15491 (consume_chars): Fix for the case of raw-text.
15492
15493 * process.c (read_process_output): Handle carryover correctly.
15494
15495 2008-02-01 Dave Love <fx@gnu.org>
15496
15497 * regex.c (re_search_2): Fix last change.
15498
15499 2008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15502 target_multibyte. Even in a unibyte case, return a converted
15503 multibyte char.
15504 (GET_CHAR_AFTER): New macro.
15505 (PATFETCH): Translate via multibyte char.
15506 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15507 (SETUP_MULTIBYTE_RANGE): New macro.
15508 (regex_compile): Setup compiled code so that its multibyteness
15509 matches that of a target. Fix the handling of "[X-YZ]" using
15510 SETUP_MULTIBYTE_RANGE.
15511 (analyse_first) <charset>: For filling fastmap for all multibyte
15512 characters, don't check by BASE_LEADING_CODE_P.
15513 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15514 the same as RE_MULTIBYTE_P (bufp) now.
15515 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15516 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15517 (TRANSLATE_VIA_MULTIBYTE): New macro.
15518 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15519 It is the same as RE_MULTIBYTE_P (bufp) now.
15520 <exactn>: Translate via multibyte.
15521 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15522 translate it.
15523 <charset, charset_not>: Fetch a character by
15524 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15525 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15526 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15527 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15528 by GET_CHAR_AFTER.
15529 (bcmp_translate): Likewise.
15530
15531 * search.c (compile_pattern): Check the member target_multibyte,
15532 not the member multibyte of buf.
15533
15534 * lread.c (read1): While reading a string, set force_singlebyte
15535 and force_multibyte correctly.
15536
15537 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15538 up of unibyte_to_multibyte_table.
15539
15540 2008-02-01 Kenichi Handa <handa@m17n.org>
15541
15542 * coding.c (setup_coding_system): If coding has
15543 post-read-conversion or pre-write-conversion, set
15544 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15545 respectively.
15546 (decode_coding_gap): Run post-read-conversion if any.
15547
15548 * fileio.c (Finsert_file_contents): Even if we read into a
15549 unibyte buffer, check if we must decode the result or not.
15550
15551 2008-02-01 Kenichi Handa <handa@m17n.org>
15552
15553 * coding.c (make_conversion_work_buffer): Change the work buffer
15554 name to the same one as that of Emacs 21.
15555
15556 2008-02-01 Kenichi Handa <handa@m17n.org>
15557
15558 * coding.h (make_conversion_work_buffer): Adjust prototype.
15559 (code_conversion_restore): Don't extern it.
15560
15561 * coding.c (detected_mask): Delete unused variable.
15562 (decode_coding_iso_2022): Pay attention to the byte sequence of
15563 CTEXT extended segment, and retain those bytes as is.
15564 (decode_coding_ccl): Delete unused variable `valids'.
15565 (setup_coding_system): Delete unused variable `category'.
15566 (consume_chars): Delete unused variable `category'. Make it work
15567 for non-multibyte case.
15568 (make_conversion_work_buffer): Change argument.
15569 (saved_coding): Delete unused variable.
15570 (code_conversion_restore): Don't check saved_coding->destination.
15571 (code_conversion_save): New function.
15572 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15573 instead of record_unwind_protect.
15574 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15575 (detect_coding_system): Delete unused variable `mask'.
15576 (Fdefine_coding_system_internal): Delete unused variable id.
15577
15578 * fileio.c (kill_workbuf_unwind): New function.
15579 (Finsert_file_contents): On replacing, call
15580 make_conversion_work_buffer with correct args, and call
15581 record_unwind_protect with the first arg kill_workbuf_unwind.
15582
15583 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15584
15585 2008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15588 (fontset_add): Fix for the case that TO is less than TO1.
15589 (Ffontset_info): Don't use fallback fontset on checking the
15590 default fontset.
15591 (dump_fontset): New function for debugging.
15592
15593 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15594 coding_type is Qcharset.
15595
15596 2008-02-01 Kenichi Handa <handa@m17n.org>
15597
15598 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15599 (map_char_table): Don't inherit the value from the parent on
15600 initializing VAL. Adjust for the above change.
15601
15602 2008-02-01 Kenichi Handa <handa@m17n.org>
15603
15604 * coding.c (Qsignature, Qendian): Delete these variables.
15605 (syms_of_coding): Don't initialize them.
15606 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15607 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15608 detect_info->found.
15609 (decode_coding_utf_16): Don't detect BOM here.
15610 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15611 is NOT utf_16_without_bom.
15612 (setup_coding_system): For a coding system of type utf-16, check
15613 if the attribute :endian is Qbig or not (not nil or not), and set
15614 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15615 (detect_coding): If coding type is utf-16 and BOM detection is
15616 required, detect it.
15617 (Fdefine_coding_system_internal): For a coding system of type
15618 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15619
15620 2008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * coding.c (coding_set_source): Fix for the case that the current
15623 buffer is different from coding->src_object.
15624 (decode_coding_object): Don't use the conversion work buffer if
15625 DST_OBJECT is a buffer.
15626
15627 2008-02-01 Dave Love <fx@gnu.org>
15628
15629 * lread.c (read_emacs_mule_char) [len==2]: Index
15630 emacs_mule_charset correctly.
15631
15632 2008-02-01 Dave Love <fx@gnu.org>
15633
15634 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15635 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15636 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15637 treated specially.)
15638 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15639 (detected_mask): Remove Big5 bits.
15640
15641 2008-02-01 Kenichi Handa <handa@m17n.org>
15642
15643 The following changes are to make the font rescaling facility
15644 compatible with Emacs 21.
15645
15646 * xfaces.c (Vface_font_rescale_alist): Rename from
15647 Vface_resizing_fonts.
15648 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15649 (font_rescale_ratio): Rename from font_resizing_ratio.
15650 (split_font_name): Set font->rescale_ratio.
15651 (better_font_p): Pay attention to font->rescale_ratio.
15652 (build_scalable_font_name): Likewise. Change RESX, and RESY
15653 fields.
15654 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15655
15656 2008-02-01 Kenichi Handa <handa@m17n.org>
15657
15658 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15659 (Qutf_16_le): Remove these variables.
15660 (syms_of_coding): Don't DEFSYM them.
15661 (decode_coding_utf_16): Fix handling of BOM.
15662 (encode_coding_utf_16): Fix handling of BOM.
15663
15664 2008-02-01 Kenichi Handa <handa@m17n.org>
15665
15666 * fileio.c (Finsert_file_contents): On replacing, before decoding
15667 the file into the work buffer, set point of the work buffer to the end.
15668
15669 2008-02-01 Dave Love <fx@gnu.org>
15670
15671 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15672
15673 2008-02-01 Dave Love <fx@gnu.org>
15674
15675 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15676 and fix C types.
15677
15678 2008-02-01 Kenichi Handa <handa@m17n.org>
15679
15680 * xdisp.c (SKIP_GLYPHS): New macro.
15681 (set_cursor_from_row): Pay attention to string display properties.
15682
15683 * category.c (copy_category_entry): Fix for the case that RANGE
15684 is an integer.
15685
15686 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15687
15688 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15689
15690 2008-02-01 Kenichi Handa <handa@m17n.org>
15691
15692 * charset.c (Fcharset_id_internal): New function.
15693 (syms_of_charset): Defsubr it.
15694
15695 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15696 with the last arg charset_list acquired from coding.
15697 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15698 the attribute coding_attr_ccl_valids.
15699
15700 * coding.h (enum define_coding_ccl_arg_index): Set the first
15701 member coding_arg_ccl_decoder to coding_arg_max.
15702
15703 * ccl.h (ccl_driver): Adjust prototype.
15704
15705 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15706 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
15707 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
15708 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15709 last arg Qnil.
15710
15711 2008-02-01 Kenichi Handa <handa@m17n.org>
15712
15713 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15714 call encode_char.
15715
15716 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15717
15718 2008-02-01 Dave Love <fx@gnu.org>
15719
15720 * composite.c (syms_of_composite): Make composition_hash_table weak.
15721
15722 2008-02-01 Kenichi Handa <handa@m17n.org>
15723
15724 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15725 (font_name_registry): Don't extern them.
15726 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15727
15728 * fontset.h (Qfontset): Don't extern it.
15729 (new_fontset_from_font_name): Extern it.
15730
15731 * fontset.c: Give 8 extra slots to fontset objects.
15732 (Qfontset_info): New variable.
15733 (syms_of_fontset): Defsym it.
15734 (FONTSET_FALLBACK): New macro.
15735 (fontset_face): Try also the default fontset.
15736 (make_fontset): Realize a fallback fontset from the default fontset.
15737 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15738 using split_font_name_into_vector and build_font_name_from_vector.
15739 (Fset_fontset_font): Access the elements of font_spec by enum
15740 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15741 name by using split_font_name_into_vector.
15742 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15743 generate a proper font name from the fontset name. Update
15744 Vfontset_alias_alist.
15745 (n_auto_fontsets): New variable.
15746 (new_fontset_from_font_name): New function.
15747 (Ffont_info): Store the information about fonts generated from the
15748 default fontset in the first extra slot of the returned char-table.
15749
15750 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15751 (font_name_registry): Delete function.
15752 (split_font_name_into_vector): New function.
15753 (build_font_name_from_vector): New function.
15754 (font_list): The argument REGISTRY is now a list of registry names.
15755 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15756 specifies an explicit font name, return the name as is. Make a
15757 list of registy names.
15758
15759 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15760 of x_new_fontset.
15761 (Fx_create_frame): Don't call x_new_fontset here. Just use
15762 x_list_fonts to check the existence of fonts.
15763
15764 * xterm.h (x_new_fontset): Adjust prototype.
15765
15766 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15767 string. Use new_fontset_from_font_name to create a fontset from a
15768 font name.
15769
15770 2008-02-01 Kenichi Handa <handa@m17n.org>
15771
15772 * syntax.c (Vfind_word_boundary_function_table): New name for
15773 Vnext_word_boundary_function_table.
15774 (find-word-boundary-function-table): New name for
15775 next-word-boundary-function-table.
15776
15777 2008-02-01 Dave Love <fx@gnu.org>
15778
15779 * Makefile.in: Fix some dependencies.
15780
15781 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15782 set it to nil before returning.
15783
15784 * composite.c (update_compositions): Fix type error.
15785
15786 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15787
15788 2008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * xterm.c (x_new_font): Optimize for the case that the font is
15791 already set for the frame.
15792
15793 2008-02-01 Kenichi Handa <handa@m17n.org>
15794
15795 * chartab.c (char_table_ascii): Check if the char table contents
15796 is sub-char-table or not.
15797 (char_table_set, char_table_set_range): Fix argument to
15798 char_table_ascii.
15799
15800 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15801 (detect_coding_utf_8, detect_coding_utf_16)
15802 (detect_coding_emacs_mule, detect_coding_iso_2022)
15803 (detect_coding_sjis, detect_coding_big5)
15804 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15805 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15806 sequence is valid in this coding system. Change callers.
15807 (MAX_ANNOTATION_LENGTH): New macro.
15808 (ADD_ANNOTATION_DATA): New macro.
15809 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15810 ADD_ANNOTATION_DATA. Change the format of annotation data.
15811 (ADD_CHARSET_DATA): New macro.
15812 (emacs_mule_char): New argument ID. Change callers.
15813 (decode_coding_emacs_mule, decode_coding_iso_2022)
15814 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15815 Produce charset annotation data in coding->charbuf.
15816 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15817 to charset annotation data in coding->charbuf.
15818 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15819 coding->common_flags if the coding system is iso-2022 based and
15820 uses designation.
15821 (produce_composition): Adjust for the new annotation data format.
15822 (produce_charset): New function.
15823 (produce_annotation): Handle charset annotation.
15824 (handle_composition_annotation, handle_charset_annotation): New
15825 functions.
15826 (consume_chars): Handle charset annotation. Utilize the above two
15827 functions.
15828 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15829 buffer, get the deleted text as a string and set
15830 coding->src_object to that string.
15831 (detect_coding, detect_coding_system): Use the new struct
15832 coding_detection_info.
15833
15834 * coding.h (struct coding_detection_info): New structure.
15835 (struct coding_system): Adjust prototype of the member `detector'.
15836 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15837
15838 2008-02-01 Kenichi Handa <handa@m17n.org>
15839
15840 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15841
15842 2008-02-01 Dave Love <fx@gnu.org>
15843
15844 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15845 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15846 to new local and nullify apropos_accumulate before returning.
15847 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15848
15849 2008-02-01 Kenichi Handa <handa@m17n.org>
15850
15851 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15852 correctly.
15853
15854 2008-02-01 Dave Love <fx@gnu.org>
15855
15856 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15857
15858 2008-02-01 Kenichi Handa <handa@m17n.org>
15859
15860 The following changes are to make character composition happen
15861 automatically on displaying.
15862
15863 * Makefile.in (lisp, shortlisp): Add composite.elc.
15864
15865 * composite.h (Qauto_composed, Vauto_composition_function)
15866 (Qauto_composition_function): Extern them.
15867
15868 * composite.c (Vcomposition_function_table)
15869 (Qcomposition_function_table): Delete variables.
15870 (Qauto_composed, Vauto_composition_function)
15871 (Qauto_composition_function): New variables.
15872 (run_composition_function): Don't call
15873 compose-chars-after-function.
15874 (update_compositions): Clear `auto-composed' text property.
15875 (compose_chars_in_text): Delete this function.
15876 (syms_of_composite): Staticpro Qauto_composed and
15877 Qauto_composition_function. Declare Vauto_composition_function as
15878 a Lisp variable.
15879
15880 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15881
15882 * xdisp.c (it_props): Add an entry for Qauto_composed.
15883 (handle_auto_composed_prop): New function.
15884
15885 * xselect.c (selection_data_to_lisp_data): Don't call
15886 compose_chars_in_text.
15887
15888 2008-02-01 Dave Love <fx@gnu.org>
15889
15890 * keyboard.c (read_char): Modify checking around use of
15891 Vkeyboard_translate_table.
15892
15893 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15894 and fix C types.
15895
15896 2008-02-01 Kenichi Handa <handa@m17n.org>
15897
15898 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15899 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15900 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15901 the case that the last byte is '\r' correctly.
15902 (decode_coding): Flush out the unprocessed data correctly.
15903 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15904
15905 2008-02-01 Dave Love <fx@gnu.org>
15906
15907 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15908 Add XK_ISO... case.
15909 (xaw_scroll_callback): Revert last change.
15910
15911 2008-02-01 Kenichi Handa <handa@m17n.org>
15912
15913 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15914
15915 2008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * xfaces.c (Vface_resizing_fonts): New variable.
15918 (struct font_name): New member `resizing_ratio'.
15919 (font_resizing_ratio): New function.
15920 (split_font_name): Set font->resizing_ratio.
15921 (better_font_p): Pay attention to font->resizing_ratio.
15922 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15923 RESX, and RESY fields.
15924 (try_alternative_families): Try scalable fonts if
15925 Vscalable_fonts_allowed is not Qt.
15926 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15927
15928 2008-02-01 Dave Love <fx@gnu.org>
15929
15930 * xterm.c (xaw_scroll_callback): Cast correctly.
15931
15932 2008-02-01 Dave Love <fx@gnu.org>
15933
15934 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15935 (lispy_kana_keys): Comment out.
15936 (make_lispy_event) [XK_kana_A]: Comment out.
15937
15938 * xterm.c (xaw_scroll_callback): Cast call_data.
15939 (XTread_socket): Deal with ASCII keysyms.
15940 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15941
15942 2008-02-01 Dave Love <fx@gnu.org>
15943
15944 * xterm.c (Vx_keysym_table): New.
15945 (syms_of_xterm): Initialize it.
15946 (XTread_socket): Use it.
15947 From head: Eliminate incorrect optimization that tried to avoid
15948 decoding the output of X*LookupString.
15949 (x_get_font_repertory): Delete charset declaration.
15950
15951 2008-02-01 Kenichi Handa <handa@m17n.org>
15952
15953 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15954 return 0.
15955 (Fdefine_coding_system_internal): Setup
15956 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15957
15958 2008-02-01 Dave Love <fx@gnu.org>
15959
15960 * coding.c (Fcheck_coding_system): Doc fix.
15961
15962 * editfns.c (Finsert_byte): Return a proper value.
15963
15964 2008-02-01 Kenichi Handa <handa@m17n.org>
15965
15966 * coding.c (decode_coding): Fix args to translate_chars. Pay
15967 attention to Vstandard_translation_table_for_decode.
15968 (encode_coding): Fix args to translate_chars. Pay attention to
15969 Vstandard_translation_table_for_encode.
15970
15971 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15972 SINGLE_BYTE_CHAR_P.
15973
15974 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15975 not by SINGLE_BYTE_CHAR_P.
15976
15977 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15978 SINGLE_BYTE_CHAR_P.
15979
15980 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15981 SINGLE_BYTE_CHAR_P.
15982
15983 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15984 by SINGLE_BYTE_CHAR_P.
15985
15986 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15987 SINGLE_BYTE_CHAR_P.
15988
15989 2008-02-01 Dave Love <fx@gnu.org>
15990
15991 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15992
15993 2008-02-01 Dave Love <fx@gnu.org>
15994
15995 * fns.c (Flanginfo): Fix typo.
15996
15997 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15998
15999 2008-02-01 Kenichi Handa <handa@m17n.org>
16000
16001 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16002 (detect_coding_emacs_mule, detect_coding_iso_2022)
16003 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16004 incomplete byte sequence. Don't update *mask when correctly detected.
16005 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16006 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16007 (detect_coding, detect_coding_system): Adjust for the changes above.
16008
16009 2008-02-01 Kenichi Handa <handa@m17n.org>
16010
16011 * character.c (char_string): Rename from
16012 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16013 (string_char): Rename from string_char.
16014
16015 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16016 if C is greater than MAX_3_BYTE_CHAR.
16017 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16018 string_char instead of string_char_with_unification.
16019
16020 2008-02-01 Dave Love <fx@gnu.org>
16021
16022 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16023
16024 2008-02-01 Kenichi Handa <handa@m17n.org>
16025
16026 * keymap.c (push_key_description): Pay attention to force_multibyte.
16027
16028 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16029
16030 2008-02-01 Dave Love <fx@gnu.org>
16031
16032 * charset.c (define_charset_internal): Rename `supprementary'.
16033
16034 * Makefile.in (lisp, shortlisp): Remove latin-N.
16035
16036 2008-02-01 Dave Love <fx@gnu.org>
16037
16038 * xfns.c (x_window, x_window): Use use_xim.
16039
16040 * xterm.c (use_xim): Initialize.
16041 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16042 (x_term_init): Maybe set use_xim.
16043
16044 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16045
16046 2008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * search.c (search_buffer): Fix case-fold-search of multibyte
16049 characters.
16050 (boyer_moore): Rename the last argument to char_high_bits.
16051
16052 2008-02-01 Kenichi Handa <handa@m17n.org>
16053
16054 * xdisp.c (display_string): Fix for the case of zero width glyph.
16055
16056 * xfns.c (x_set_font): Change the error message of the case that
16057 x_new_fontset returns Qt.
16058
16059 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16060 (Finternal_set_lisp_face_attribute): Use signal_error for the
16061 error of invalid fontset.
16062
16063 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16064 fontset, return Qt.
16065
16066 2008-02-01 Dave Love <fx@gnu.org>
16067
16068 * unexelf.c (unexec): Make .got handling not SGI-specific.
16069
16070 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16071
16072 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16073
16074 * keyboard.c (read_key_sequence): Fix type error.
16075
16076 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16077 type error.
16078
16079 * fontset.c (fontset_add): Return Lisp_Object.
16080
16081 2008-02-01 Dave Love <fx@gnu.org>
16082
16083 * charset.h (charset_ordered_list_tick): Declare extern.
16084
16085 2008-02-01 Kenichi Handa <handa@m17n.org>
16086
16087 The following changes (and some of 2008-02-01 changes of mine) are
16088 for handling syntax, category, and case conversion for unibyte
16089 characters by converting them to multibyte on the fly. With these
16090 changes, we don't have to setup syntax and case tables for unibyte
16091 characters in each language environment.
16092
16093 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16094 multibyte if necessary.
16095
16096 * bytecode.c (Fbyte_code): Likewise.
16097
16098 * character.h (LEADING_CODE_LATIN_1_MIN)
16099 (LEADING_CODE_LATIN_1_MAX): New macros.
16100 (unibyte_to_multibyte_table): Extern it.
16101 (unibyte_char_to_multibyte): New macro.
16102 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16103 (CHAR_LEADING_CODE): New macro.
16104 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16105
16106 * character.c (unibyte_to_multibyte_table): New variable.
16107 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16108 (multibyte_char_to_unibyte): If C is an eight-bit character,
16109 convert it to the corresponding byte value.
16110
16111 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16112 not 1, signals an error. Update the elements of
16113 unibyte_to_multibyte_table.
16114 (init_charset_once): Initialize unibyte_to_multibyte_table.
16115 (syms_of_charset): Define the charset `iso-8859-1'.
16116
16117 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16118 as is without converting it to unibyte. In a unibyte buffer,
16119 convert C to multibyte before checking the syntax.
16120
16121 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16122
16123 * minibuf.c (Fminibuffer_complete_word): Use the macro
16124 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16125
16126 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16127
16128 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16129 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16130 that is zero, convert an eight-bit char to multibyte.
16131 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16132 non-emacs case.
16133 (PATFETCH): Convert an eight-bit char to multibyte.
16134 (HANDLE_UNIBYTE_RANGE): New macro.
16135 (regex_compile): Setup the compiled pattern for multibyte chars
16136 even if the given regex string is unibyte. Use PATFETCH_RAW
16137 instead of PATFETCH in many places. To handle `charset'
16138 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16139 only for ASCII chars.
16140 (analyse_first) <exactn>: Simplify because the compiled pattern
16141 is multibyte.
16142 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16143 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16144 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16145 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16146 multibyte always 1.
16147 (re_search_2): In emacs, set the locale variable multibyte to 1,
16148 otherwise to 0. New local variable target_multibyte. Check it
16149 to decide the multibyteness of STR1 and STR2. If
16150 target_multibyte is zero, convert unibyte chars to multibyte
16151 before translating and checking fastmap.
16152 (TARGET_CHAR_AND_LENGTH): New macro.
16153 (re_match_2_internal): In emacs, set the locale variable multibyte
16154 to 1, otherwise to 0. New local variable target_multibyte. Check
16155 it to decide the multibyteness of STR1 and STR2. Use
16156 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16157 <charset, charset_not>: If multibyte is nonzero, check fastmap
16158 only for ASCII chars. Call bcmp_translate with
16159 target_multibyte, not with multibyte.
16160 <begline>: Declare the local variable C as `unsigned'.
16161 (bcmp_translate): Change the last arg name to target_multibyte.
16162
16163 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16164 the regexp pattern and the matching target. Set cp->buf.multibyte
16165 to the multibyteness of the regexp pattern. Set
16166 cp->but.target_multibyte to the multibyteness of the matching target.
16167 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16168 FETCH_STRING_CHAR_ADVANCE.
16169 (Freplace_match): Convert unibyte chars to multibyte.
16170
16171 * syntax.c (char_quoted, back_comment, scan_words)
16172 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16173 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16174 unibyte chars to multibyte.
16175 (skip_chars): Delete the arg syntaxp, and move the code for
16176 handling syntaxes to skip_syntaxes. Change callers.
16177 Fix the case that the multibyteness of STRING and the current
16178 buffer doesn't match.
16179 (skip_syntaxes): New function.
16180 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16181 SINGLE_BYTE_CHAR_P.
16182
16183 2008-02-01 Kenichi Handa <handa@m17n.org>
16184
16185 * xfaces.c (QCfontset): New variable.
16186 (LFACE_FONTSET): New macro.
16187 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16188 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16189 (Finternal_set_lisp_face_attribute)
16190 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16191 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16192 check also LFACE_FONTSET_INDEX.
16193 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16194 attrs[LFACE_FONT_INDEX].
16195 (syms_of_xfaces): Intern and staticpro QCfontset.
16196
16197 * dispextern.h (enum lface_attribute_index): New member
16198 LFACE_FONTSET_INDEX.
16199
16200 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16201
16202 2008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * coding.c (coding_set_destination): Fix coding->destination for
16205 the case converting a region.
16206 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16207 (encode_coding_object): Fix coding->dst_pos and
16208 coding->dst_pos_byte for the case converting a region.
16209
16210 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16211
16212 * character.h (BYTE8_STRING): New macro.
16213
16214 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16215
16216 2008-02-01 Kenichi Handa <handa@m17n.org>
16217
16218 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16219 characters by octal form.
16220
16221 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16222
16223 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16224 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16225 _fetch_multibyte_char_len.
16226 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16227
16228 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16229
16230 * casefiddle.c (casify_object): Simplify. Handle the case that
16231 the case conversion change the byte length.
16232 (casify_region): Likewise.
16233
16234 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16235
16236 * character.c (_fetch_multibyte_char_len): Delete this variable.
16237 (syms_of_character): Setup Vprintable_chars.
16238
16239 * editfns.c (Fchar_equal): Fix for the unibyte case.
16240 (Finsert_byte): New function.
16241 (syms_of_editfns): Defsubr it.
16242
16243 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16244 of direct code 0x3ffff.
16245
16246 * search.c (Freplace_match): Fix for the unibyte case.
16247
16248 2008-02-01 Kenichi Handa <handa@m17n.org>
16249
16250 * lread.c (safe_to_load_p): Fix the logic.
16251
16252 * syntax.c (scan_words): Don't treat characters belonging to
16253 different scripts as constituting a word.
16254
16255 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16256
16257 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16258
16259 * emacs.c (main): In the case of --unibyte, instead of aborting on
16260 finding non-empty buffer, make it unibyte.
16261
16262 2008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16265 to create a fontset.
16266
16267 2008-02-01 Dave Love <fx@gnu.org>
16268
16269 * character.c (Funibyte_char_to_multibyte): Doc fix.
16270
16271 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16272
16273 2008-02-01 Kenichi Handa <handa@m17n.org>
16274
16275 * fontset.c (fontset_add): Make the type `int'.
16276 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16277
16278 * character.c (unibyte_char_to_multibyte)
16279 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16280 charset_unibyte, not charset_primary.
16281
16282 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16283
16284 * charset.c (charset_unibyte): Rename from charset_primary.
16285 (Funibyte_charset): Rename from Fprimary_charset.
16286 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16287 (syms_of_charset): Adjust for the above changes.
16288
16289 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16290 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16291 it->multibyte_p is zero.
16292
16293 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16294 Delete extern.
16295
16296 2008-02-01 Kenichi Handa <handa@m17n.org>
16297
16298 * coding.c (Fdefine_coding_system_internal): Fix category setting
16299 for a coding system of type iso-2022.
16300
16301 2008-02-01 Kenichi Handa <handa@m17n.org>
16302
16303 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16304
16305 2008-02-01 Kenichi Handa <handa@m17n.org>
16306
16307 * syntax.c (Vnext_word_boundary_function_table): New variable.
16308 (next-word-boundary-function-table): Declare it as a Lisp variable
16309 in syms_of_syntax.
16310 (scan_words): Call functions in Vnext_word_boundary_function_table
16311 if any.
16312
16313 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16314
16315 * fontset.c (fs_load_font): If fontp->charset is not negative,
16316 return fontp without setting its members.
16317
16318 2008-02-01 Dave Love <fx@gnu.org>
16319
16320 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16321
16322 * m/sparc.h (HAVE_ALLOCA): Delete.
16323
16324 * s/irix6-5.h: Don't include strings.h.
16325 (bcopy, bzero, bcmp): Don't undef.
16326
16327 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16328
16329 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16330 (TIOCSIGSEND): Don't test IRIX6.
16331 (bcopy, bzero, bcmp): Define conditionally.
16332
16333 2008-02-01 Kenichi Handa <handa@m17n.org>
16334
16335 * buffer.c (Qas, Qmake, Qto): New variables.
16336 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16337 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16338
16339 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16340 we are inserting a process output into a multibyte buffer.
16341
16342 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16343 multibyte_char_to_unibyte.
16344
16345 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16346 by the primary charset, make it eight-bit char.
16347 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16348
16349 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16350 (charset_8_bit__control, charset_8_bit_graphic)
16351 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16352 (define_charset_internal): New function.
16353 (syms_of_charset): Call define_charset_internal for pre-defined
16354 charsets.
16355
16356 * charset.h (charset_8_bit): Extern it.
16357
16358 * coding.c (make_conversion_work_buffer): Adjust for the change
16359 of Fset_buffer_multibyte.
16360 (encode_coding_raw_text): Increment p0 in the loop.
16361
16362 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16363
16364 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16365 for the change of Fset_buffer_multibyte.
16366
16367 * fns.c (Fstring_to_multibyte): New function.
16368 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16369
16370 2008-02-01 Dave Love <fx@gnu.org>
16371
16372 * xfns.c (x_put_x_image): Declare args.
16373
16374 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16375 (try_font_list): Declare an arg.
16376
16377 * xdisp.c (message2_nolog, set_message): Declare an arg.
16378
16379 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16380
16381 * syntax.c (scan_sexps_forward): Declare an arg.
16382
16383 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16384 Declare an arg.
16385
16386 * lisp.h (Fnew_fontset): Declare.
16387
16388 * keymap.c (push_key_description): Call CHARACTERP correctly.
16389
16390 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16391 (face_for_char): Delete unused vars.
16392 (Fset_fontset_font): Doc fix. Delete unused vars.
16393
16394 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16395
16396 * composite.c (update_compositions): Declare arg.
16397
16398 * cm.c (calccost, cmgoto): Declare args.
16399
16400 * charset.c: Remove `emacs' conditional. Doc fixes.
16401 (map_char_table_for_charset): Declare.
16402
16403 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16404
16405 * ccl.c: Remove `emacs' conditional.
16406
16407 2008-02-01 Kenichi Handa <handa@m17n.org>
16408
16409 The following changes are to allow specifying multiple font
16410 patterns for a character range (specified by script or charset).
16411
16412 * Makefile.in (abbrev.o): Depend on syntax.h.
16413 (xfaces.o): Depend on charset.h.
16414
16415 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16416 SINGLE_BYTE_CHAR_P.
16417
16418 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16419
16420 * character.h (Vchar_script_table): Extern it.
16421
16422 * character.c (Vscript_alist): Delete.
16423 (Vchar_script_table, Qchar_script_table): New variable.
16424 (syms_of_character): Declare Vchar_script_table as a lisp variable
16425 and initialize it.
16426
16427 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16428 have property char-table-extra-slots, make no extra slot.
16429
16430 * dispextern.h (struct face): Delete member `charset'.
16431 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16432 SINGLE_BYTE_CHAR_P.
16433 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16434 Add prototypes.
16435 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16436 (generate_ascii_font_name): Rename from generate_ascii_font.
16437
16438 * fontset.h (get_font_repertory_func): New prototype.
16439 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16440 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16441
16442 * fontset.c (Qprepend, Qappend): New variables.
16443 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16444 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16445 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16446 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16447 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16448 (load_font_get_repertory): New functions.
16449 (fontset_set): Delete.
16450 (fontset_face): New arg FACE. Return face ID, not face.
16451 Complete re-write to handle new fontset structure. Change caller.
16452 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16453 (face_for_char): Don't call lookup_face.
16454 (make_fontset_for_ascii_face): New arg FACE.
16455 (fs_load_font): New arg CHARSET_ID. Don't check
16456 Vfont_encoding_alist here.
16457 (find_font_encoding): New function.
16458 (list_fontsets): Use STRINGP, not ! NILP.
16459 (accumulate_script_ranges): New function.
16460 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16461 re-written to handle new fontset structure.
16462 (Ffontset_font): Return a copy of element.
16463 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16464 docstring of font-encoding-alist.
16465
16466 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16467 (Fset_fotset_font): Fix arguments to 5.
16468
16469 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16470
16471 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16472 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16473 (highlight_trailing_whitespace): Adjust for the change of
16474 lookup_named_face.
16475
16476 * xfaces.c: Include charset.h.
16477 (load_face_font): Delete argument C. Change caller.
16478 (generate_ascii_font_name): Rename from generate_ascii_font.
16479 (font_name_registry): New function.
16480 (cache_face): Store ascii faces before non-ascii faces in buckets.
16481 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16482 Lookup only ascii faces.
16483 (lookup_non_ascii_face): New function.
16484 (lookup_named_face): Delete argument C. Change caller.
16485 (lookup_derived_face): Delete argument C. Change caller.
16486 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16487 a string, just call font_list with it.
16488 (choose_face_font): Delete arguments FACE and C. New arg
16489 FONT_SPEC. Change caller.
16490 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16491 Change caller.
16492 (realize_non_ascii_face): New function.
16493 (realize_x_face): Call load_face_font here.
16494 (realize_tty_face): Delete argument C. Change caller.
16495 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16496 get a face ID.
16497 (dump_realized_face): Don't print charset of FACE.
16498
16499 * xfns.c (x_set_font): Always call x_new_fontset and
16500 store_frame_parameter.
16501 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16502 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16503
16504 * xterm.h (x_get_font_repertory): Extern it.
16505
16506 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16507 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16508 it->multibyte_p is zero.
16509 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16510 (x_new_fontset): If FONTSETNAME doesn't match any existing
16511 fontsets, create a new one.
16512 (x_get_font_repertory): New function.
16513
16514 2008-02-01 Kenichi Handa <handa@m17n.org>
16515
16516 * coding.c (Ffind_coding_systems_region_internal): Detect an
16517 ASCII only string correctly.
16518
16519 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16520 version is 0.
16521
16522 2008-02-01 Kenichi Handa <handa@m17n.org>
16523
16524 * lread.c: Include "coding.h".
16525 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16526 (load_each_byte, unread_char): New variables.
16527 (readchar_backlog): Delete.
16528 (readchar): Return a character unless load_each_byte is nonzero.
16529 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16530 cons. If unread_char is not -1, simply return it.
16531 (unreadchar): Handle the case that readcharfun is
16532 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16533 (read_multibyte): Delete.
16534 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16535 (read_emacs_mule_char): New functions.
16536 (Fload): Even if the file doesn't have the extension ".elc", if
16537 safe_to_load_p returns a positive version number, assume that the
16538 file contains bytecompiled code. If the version is less than 22,
16539 load the file while decoding multibyte sequences by emacs-mule.
16540 (readevalloop): Don't use readchar_backlog.
16541 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16542 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16543 (read_escape): Delete the arg BYTEREP.
16544 (read1): Set load_each_byte to 1 temporarily while handling
16545 #@NUMBER. Don't call read_multibyte.
16546 (read_vector): Call Fread with a cons. If readcharfun is
16547 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16548 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16549 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16550 and Qload_force_doc_strings.
16551
16552 2008-02-01 Kenichi Handa <handa@m17n.org>
16553
16554 * xdisp.c (face_before_or_after_it_pos): Call
16555 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16556
16557 2008-02-01 Kenichi Handa <handa@m17n.org>
16558
16559 * character.h (TRAILING_CODE_P): New macro.
16560 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16561 (string_char_with_unification): Fix prototype.
16562 (Vscript_alist): Extern it.
16563
16564 * character.c (Vscript_alist): New variable.
16565 (string_char_with_unification, str_as_unibyte)
16566 (string_escape_byte8): Add `const' to local variables.
16567 (syms_of_character): Declare script-alist as a Lisp variable.
16568
16569 * charset.h (Vcharset_ordered_list): Extern it.
16570 (charset_ordered_list_tick): Extern it.
16571 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16572 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16573 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16574 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16575 (Funify_charset): Adjust for the change of Funify_charset.
16576
16577 * charset.c (charset_ordered_list_tick): New variable.
16578 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16579 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16580 deunify intead of unify a charset.
16581 (string_xstring_p): Add `const' to local variables.
16582 (find_charsets_in_text): Add `const' to arguments and local variables.
16583 (encode_char): Adjust for the change of Funify_charset. Fix
16584 detecting of invalid code.
16585 (Fset_charset_priority): Increment charset_ordered_list_tick.
16586 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16587 and TO_CODE.
16588
16589 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16590 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16591 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16592 (decode_coding_ccl, consume_chars)
16593 (Ffind_coding_systems_region_internal)
16594 (Fcheck_coding_systems_region): Add `const' to local variables.
16595
16596 * print.c (print_object): Use octal form for printing the
16597 contents of a bool vector.
16598
16599 2008-02-01 Dave Love <fx@gnu.org>
16600
16601 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16602 <version == 20>: Refuse to load.
16603
16604 2008-02-01 Dave Love <fx@gnu.org>
16605
16606 * fns.c: Move coding.h.
16607 (Qcodeset, Qdays, Qmonths): New.
16608 (concat): Use CHARACTERP instead of INTEGERP.
16609 (Flocale_codeset): Delete.
16610 (Flanginfo): New function.
16611 (syms_of_fns): Change accordingly.
16612
16613 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16614
16615 2008-02-01 Dave Love <fx@gnu.org>
16616
16617 * casetab.c (init_casetab_once, init_casetab_once): Fix
16618 CHAR_TABLE_SET call.
16619
16620 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16621
16622 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16623
16624 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16625 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16626 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16627
16628 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16629
16630 * coding.c (ENCODE_DESIGNATION, decode_eol)
16631 (make_conversion_work_buffer, code_conversion_restore)
16632 (Fdefine_coding_system_internal): Convert Lisp types.
16633 (code_conversion_restore): Use EQ, not ==.
16634 (Fencode_coding_string): Fix code_convert_string call.
16635
16636 * coding.h (code_convert_region): Fix prototype.
16637
16638 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16639
16640 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16641 (Ffontset_info): Convert Lisp types.
16642
16643 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16644
16645 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16646
16647 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16648
16649 * chartab.c: Include "...h", not <...h> in some cases.
16650
16651 * callproc.c (Fcall_process): Remove unused variables.
16652
16653 2008-02-01 Dave Love <fx@gnu.org>
16654
16655 * coding.c (Fset_coding_system_priority): Allow null arg list.
16656
16657 2008-02-01 Dave Love <fx@gnu.org>
16658
16659 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16660 (Fself_insert_and_exit): Use CHARACTERP.
16661
16662 * callproc.c (Fcall_process): Remove unused vars.
16663
16664 * xterm.c (XTread_socket): Add extra dead keysyms.
16665
16666 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16667
16668 * dispextern.h: Remove prototypes for redraw_frame,
16669 redraw_garbaged_frames.
16670
16671 * cmds.c (Fself_insert_command): Use CHARACTERP.
16672
16673 * chartab.c (make_sub_char_table): Remove unused var.
16674 (Fset_char_table_default, Fmap_char_table): Doc fix.
16675
16676 * keymap.c (access_keymap): Remove generic char code.
16677 (push_key_description): Use CHARACTERP.
16678
16679 2008-02-01 Dave Love <fx@gnu.org>
16680
16681 * charset.c: Doc fixes.
16682 (Funify_charset): Extra checking.
16683
16684 2008-02-01 Dave Love <fx@gnu.org>
16685
16686 * lread.c: Remove some unused variables.
16687 (safe_to_load_p): If safe, return the magic number version byte.
16688 (Fload): Maybe use load-with-code-conversion.
16689
16690 2008-02-01 Kenichi Handa <handa@m17n.org>
16691
16692 * category.c (Fmodify_category_entry): Don't modify the contents
16693 of category_set for characters out of the range. Avoid
16694 unnecessary modification.
16695
16696 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16697 Vchar_unify_table. The default value of the table is now nil.
16698
16699 * character.c (syms_of_character): Setup Vchar_width_table for
16700 eight-bit-control and raw-byte chars.
16701
16702 * charset.h (enum define_charset_arg_index): Delete
16703 charset_arg_parents and add charset_arg_subset and
16704 charset_arg_superset.
16705 (enum charset_attr_index): Delete charset_parents and add
16706 charset_subset and charset_superset.
16707 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16708 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16709 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16710 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16711 (CHARSET_SUPERSET): New macros.
16712 (charset_work): Extern it.
16713 (ENCODE_CHAR): Use charset_work.
16714 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16715 (map_charset_chars): Extern it.
16716
16717 * charset.c (load_charset_map): Set the default value of encoder
16718 and deunifier char-tables to nil.
16719 (map_charset_chars): Change argument. Change callers. Use
16720 map_char_table_for_charset instead of map_char_table.
16721 (Fmap_charset_chars): New optional args from_code and to_code.
16722 (Fdefine_charset_internal): Adjust for the change of
16723 `define-charset' (:parents -> :subset or :superset).
16724 (charset_work): New variable.
16725 (encode_char, syms_of_charset): Adjust for the change of
16726 Fdefine_charset_internal.
16727 (Ffind_charset_string): Setup the vector `charsets' correctly.
16728
16729 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16730 the previous change.
16731 (char_table_ref_and_range): Adjust for the above change.
16732 (map_sub_char_table_for_charset): New function.
16733 (map_char_table_for_charset): New function.
16734
16735 * keymap.c (describe_vector): Handle a char-table directly here.
16736 (describe_char_table): Delete.
16737
16738 * lisp.h (map_charset_chars): Delete.
16739
16740 2008-02-01 Dave Love <fx@gnu.org>
16741
16742 * fns.c (count_combining): Comment out (unused).
16743 (Flocale_codeset): New.
16744 (syms_of_fns): Defsubr it.
16745
16746 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16747 (size_t): Remove.
16748
16749 2008-02-01 Dave Love <fx@gnu.org>
16750
16751 * Makefile.in (chartab.o): Depend on charset.h.
16752
16753 2008-02-01 Kenichi Handa <handa@m17n.org>
16754
16755 * character.c (syms_of_character): Set the default value of
16756 Vprintable_chars to Qnil.
16757
16758 2008-02-01 Dave Love <fx@gnu.org>
16759
16760 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16761
16762 2008-02-01 Kenichi Handa <handa@m17n.org>
16763
16764 * charset.c (load_charset_map): Handle the case that from < to
16765 correctly.
16766
16767 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16768 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16769 Pay attention to raw-8-bit chars.
16770
16771 2008-02-01 Kenichi Handa <handa@m17n.org>
16772
16773 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16774 It is not bytecompiled now.
16775
16776 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16777 (charset_jisx0208): New variables.
16778 (Fdefine_charset_internal): Setup them if appropriate.
16779 (init_charset_once): Initialize them to -1.
16780
16781 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16782 (charset_jisx0208): Extern them.
16783
16784 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16785 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16786 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16787 (setup_iso_safe_charsets): Fix arguments to Fassq.
16788 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16789 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16790 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16791 (encode_coding_iso_2022): Change the 1st arg to
16792 ENCODE_ISO_CHARACTER to a variable.
16793
16794 2008-02-01 Kenichi Handa <handa@m17n.org>
16795
16796 * charset.h (enum define_charset_arg_index): New enums
16797 charset_arg_min_code and charset_arg_max_code.
16798 (struct charset): New member char_index_offset.
16799
16800 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16801 Take charset->char_index_offset into account.
16802 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16803 args[charset_arg_max_code]. Setup charset.char_index_offset.
16804 (syms_of_charset): Fix args to Fdefine_charset_internal.
16805
16806 2008-02-01 Dave Love <fx@gnu.org>
16807
16808 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16809
16810 2008-02-01 Dave Love <fx@gnu.org>
16811
16812 * coding.c: Doc fixes.
16813 (Fcoding_system_aliases): Fix return value.
16814 (Qmac): Remove (duplicated) definition.
16815
16816 2008-02-01 Dave Love <fx@gnu.org>
16817
16818 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16819 New functions.
16820
16821 * character.c (Fstring): Doc fix.
16822
16823 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16824
16825 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
16826 (font-encoding-alist): Doc fix.
16827
16828 2008-02-01 Dave Love <fx@gnu.org>
16829
16830 * term.c (costs_set): Declare static, non-initialized for pcc.
16831 (encode_terminal_code): Remove unused var.
16832
16833 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16834 for K&R.
16835
16836 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16837
16838 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16839 (suffixes): Move out of make_subsidiaries for K&R.
16840
16841 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16842
16843 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16844
16845 2008-02-01 Dave Love <fx@gnu.org>
16846
16847 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16848
16849 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16850
16851 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16852
16853 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16854
16855 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16856
16857 2008-02-01 Kenichi Handa <handa@m17n.org>
16858
16859 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16860 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16861
16862 2008-02-01 Kenichi Handa <handa@m17n.org>
16863
16864 * coding.c (decode_coding_charset): Adjust for the change of
16865 Fdefine_coding_system_internal.
16866 (Fdefine_coding_system_internal): For a coding system of
16867 `charset' type, store a list of charset IDs in
16868 `charset_attr_charset_valids' element of coding attributes.
16869
16870 2008-02-01 Kenichi Handa <handa@m17n.org>
16871
16872 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16873 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16874 caller. Handle 2-byte and 3-byte charsets correctly.
16875 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16876 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16877 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16878 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16879 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16880 sequence.
16881 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16882 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16883 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16884 and alt&rule composition.
16885 (decode_coding_iso_2022): Handle composition correctly.
16886 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16887
16888 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16889 re-defining a charset. If the charset has :emacs-mule-id, setup
16890 emacs_mule_bytes.
16891 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16892
16893 2008-02-01 Kenichi Handa <handa@m17n.org>
16894
16895 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16896 (encode_coding_big5, encode_coding_charset): If coding requires safe
16897 encoding, produce a character specified by
16898 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16899
16900 2008-02-01 Dave Love <fx@gnu.org>
16901
16902 * xterm.c (XSetIMValues): Declare.
16903
16904 * process.c: Conditionally include sys/wait.h, pty.h.
16905
16906 * print.c (print_object): Fix print format for 64-bit systems.
16907
16908 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16909
16910 * buffer.c (emacs_strerror): Declare.
16911
16912 * fontset.c (Fclear_face_cache): Declare.
16913 (accumulate_font_info): Comment-out (unused).
16914 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16915 variables.
16916
16917 * character.h (string_escape_byte8): Declare.
16918
16919 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16920 unused vars.
16921 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16922 (Fmap_charset_chars): Doc fix.
16923
16924 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16925 (Fset_coding_system_priority, Fset_coding_system_priority)
16926 (Fdefine_coding_system_internal): Doc fix.
16927
16928 2008-02-01 Dave Love <fx@gnu.org>
16929
16930 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16931
16932 2008-02-01 Kenichi Handa <handa@m17n.org>
16933
16934 * character.c (string_escape_byte8): Make multibyte string with
16935 correct size.
16936
16937 * charset.c (Fmake_char): Delete unnecessary code.
16938
16939 2008-02-01 Kenichi Handa <handa@m17n.org>
16940
16941 * xfns.c (x_encode_text): Allocate coding.destination here, and
16942 call encode_coding_object with dst_object Qnil.
16943
16944 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16945 multibyte form correctly.
16946
16947 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16948 against Vfont_encoding_alist.
16949
16950 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16951 handling of charset list.
16952 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16953 (decode_coding_object): Move point to coding->dst_pos before
16954 calling post-read-conversion function.
16955 (encode_coding_object): Give correct arguments to
16956 pre-write-conversion. Ignore the return value of
16957 pre-write-conversion function. Pay attention to the case that
16958 pre-write-conversion changes the current buffer. If dst_object is
16959 Qt, even if coding->src_bytes is zero, allocate at least one byte
16960 to coding->destination.
16961
16962 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16963
16964 * charset.c (Fmake_char): Make it more backward compatible.
16965 (Fmap_charset_chars): Fix docstring.
16966
16967 2008-02-01 Dave Love <fx@gnu.org>
16968
16969 * coding.c: Doc fixes.
16970 (Fdefine_coding_system_alias): Use names, not symbols, in
16971 coding-system-alist.
16972
16973 2008-02-01 Kenichi Handa <handa@m17n.org>
16974
16975 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16976 of calling free_realized_face.
16977
16978 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16979
16980 * charset.c (read_hex): Don't treat SPC as a comment starter.
16981 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16982 (Fdecode_char): Fix typo.
16983
16984 2008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * charset.h (struct charset): New member `code_space_mask'.
16987
16988 * coding.c (coding_set_source): Delete the local variable beg_byte.
16989 (encode_coding_charset, Fdefine_coding_system_internal):
16990 Delete the local variable charset.
16991 (Fdefine_coding_system_internal): Setup
16992 attrs[coding_attr_charset_valids] correctly.
16993
16994 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16995 member to check if CODE is valid or not.
16996 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16997 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16998 is within the range of charset->min_code and carset->max_code.
16999
17000 2008-02-01 Dave Love <fx@gnu.org>
17001
17002 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17003
17004 * dispextern.h (generate_ascii_font): Fix return type.
17005
17006 * xfaces.c (generate_ascii_font): Fix arg declaration.
17007
17008 * coding.c (coding_inherit_eol_type)
17009 (Fset_terminal_coding_system_internal)
17010 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17011
17012 2008-02-01 Kenichi Handa <handa@m17n.org>
17013
17014 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17015 multiple charsets correctly.
17016
17017 2008-02-01 Kenichi Handa <handa@m17n.org>
17018
17019 * search.c (boyer_moore): Fix handling of multibyte character
17020 translation.
17021
17022 * xdisp.c (display_mode_element): When the variable `elt' is
17023 changed, update `this' and `lisp_string'.
17024
17025 2008-02-01 Kenichi Handa <handa@m17n.org>
17026
17027 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17028
17029 * callproc.c (Fcall_process): Be sure to give the current buffer
17030 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17031
17032 * charset.c (struct charset_map_entries): New struct.
17033 (load_charset_map): Rename from parse_charset_map. New args
17034 entries and n_entries. Change caller.
17035 (load_charset_map_from_file): Rename from load_charset_map.
17036 Change caller. New arg control_flag. Call load_charset_map at
17037 the tail.
17038 (load_charset_map_from_vector): New function.
17039 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17040 (encode_char): If the charset is compact, change a character index
17041 to a code point.
17042
17043 * coding.c (coding_alloc_by_making_gap): Check the case that the
17044 source and destination are the same correctly.
17045 (decode_coding_raw_text): Set coding->consumed_char and
17046 coding->consumed to 0.
17047 (produce_chars): If coding->chars_at_source is nonzero, update
17048 coding->consumed_char and coding->consumed before calling
17049 alloc_destination.
17050 (Fdefine_coding_system_alias): Register ALIAS in
17051 Vcoding_system_alist.
17052 (syms_of_coding): Define `no-conversion' coding system at the tail.
17053
17054 * fileio.c (Finsert_file_contents): Set coding_system instead of
17055 val. If the current buffer is multibyte, always call
17056 decode_coding_gap.
17057
17058 * xfaces.c (try_font_list): Give higher priority to fontset's
17059 family than face's family.
17060
17061 2008-02-01 Kenichi Handa <handa@m17n.org>
17062
17063 * callproc.c (Fcall_process): Be sure to give the current buffer
17064 to decode_coding_c_string.
17065
17066 * xfaces.c (try_font_list): Give a family specified in a fontset
17067 higher priority than a family specified in a face.
17068
17069 2008-02-01 Kenichi Handa <handa@m17n.org>
17070
17071 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17072 Fix arguments to insert_from_buffer.
17073
17074 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17075
17076 2008-02-01 Kenichi Handa <handa@m17n.org>
17077
17078 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17079 (decode_coding_gap): Set coding->dst_multibyte correctly.
17080
17081 2008-02-01 Kenichi Handa <handa@m17n.org>
17082
17083 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17084 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17085 (encode_coding_utf_16): Substitute coding->default_char for
17086 non-Unicode characters.
17087 (decode_coding): Don't call record_insert here.
17088 (setup_coding_system): Initialize `surrogate' of
17089 coding->spec.utf_16 to 0.
17090 (EMIT_ONE_BYTE): Fix for multibyte case.
17091
17092 * insdel.c (insert_from_gap): Call record_insert.
17093
17094 2008-02-01 Kenichi Handa <handa@m17n.org>
17095
17096 * casefiddle.c (casify_region): Fix multibyte case.
17097
17098 * character.c (c_string_width): Add return type `int'.
17099 (char_string_with_unification): Delete arg ADVANCED.
17100
17101 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17102 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17103 (CHAR_STRING_ADVANCE): Make it do-while statement.
17104
17105 * chartab.c (sub_char_table_set_range): Optimize for the case
17106 DEPTH == 3. Add workaround code for a GCC optimization bug.
17107
17108 * charset.c (parse_charset_map): Remove an unused variable.
17109
17110 * coding.c: Delete unused variables.
17111
17112 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17113 earlier. If inserted is zero and the coding system doesn't
17114 require flushing, don't call decode_coding_gap.
17115
17116 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17117
17118 2008-02-01 Kenichi Handa <handa@m17n.org>
17119
17120 The following changes are for using Unicode as an internal
17121 character model, and use UTF-8 format for buffer/string
17122 representation.
17123
17124 * .gdbinit (xchartable): Adjust for the change of char table structure.
17125 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17126
17127 * Makefile.in (obj): Add character.o and chartab.o.
17128 (lisp, shortlisp): Remove utf-8.elc.
17129 (*.o): For many files, change dependency on charset.h to
17130 character.h, and add dependency on character.h.
17131 (character.o, chartab.o): New targets.
17132
17133 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17134 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17135 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17136 of "charset.h".
17137
17138 * dired.c, filelock.c: Include "character.h".
17139
17140 * alloc.c: Include "character.h" instead of "charset.h".
17141 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17142 (syms_of_alloc): Remove defsubr for Smake_char_table.
17143
17144 * buffer.c: Include "character.h" instead of "charset.h", don't
17145 include "coding.h".
17146 (Fset_buffer_multibyte): Adjust for UTF-8.
17147
17148 * buffer.h: EXFUN Fbuffer_live_p.
17149
17150 * callproc.c: Include "character.h" instead of "charset.h".
17151 (Fcall_process): Big change for the new code-conversion APIs.
17152
17153 * casetab.c: Include "character.h" instead of "charset.h".
17154 (set_canon, set_identity, shuffle): Adjust for the new
17155 map_char_table spec.
17156 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17157 accessing the char table structure.
17158
17159 * chartab.c: New file that implements char table.
17160
17161 * category.c: Include "character.h".
17162 (copy_category_entry): New function.
17163 (copy_category_table): Call map_char_table and copy_category_entry.
17164 (Fmake_category_table): Initialize all top-level slots.
17165 (char_category_set): New function.
17166 (modify_lower_category_set): Delete.
17167 (Fmodify_category_entry): Call char_table_ref_and_range.
17168
17169 * category.h (CATEGORY_SET): Just call char_category_set.
17170
17171 * ccl.c: Include "character.h".
17172 (Qccl, Qcclp): New variables.
17173 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17174 it's less than 256.
17175 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17176 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17177 and DST type.
17178 (ccl_driver): Change types of argument, adjust code accordingly.
17179 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17180 ccl_driver.
17181 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17182
17183 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17184 New members src_multibyte, dst_multibyte, consumed, and produced.
17185 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17186 (CODING_SPEC_CCL_PROGRAM): New macro.
17187 (ccl_driver): Update prototype.
17188 (Qccl, Qcclp, Fccl_program_p): Extern them.
17189 (CHECK_CCL_PROGRAM): New macro.
17190
17191 * character.c, character.h, chartab.c: New files.
17192
17193 * charset.c: Mostly re-written. Move character and multibyte sequence
17194 handling codes to character.c.
17195
17196 * charset.h: Mostly re-written. Move character and multibyte sequence
17197 handling codes to character.h.
17198
17199 * coding.c, coding.h: Mostly re-written.
17200
17201 * composite.c: Include "character.h" instead of "charset.h".
17202 (CHAR_WIDTH): Move to character.h.
17203 (HASH_KEY, HASH_VALUE): Delete.
17204
17205 * composite.h (enum composition_method): Change order of enumeration
17206 symbols.
17207
17208 * data.c: Include "character.h" instead of "charset.h".
17209 (Faref): Call CHAR_TABLE_REF for a char table.
17210 (Faset): Call CHAR_TABLE_SET for a char table.
17211
17212 * dispextern.h (free_realized_face, check_face_attribytes)
17213 (generate_ascii_font): Extern them.
17214 (free_realized_multibyte_face): Delete extern.
17215
17216 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17217 table structure.
17218
17219 * editfns.c: Include "character.h" instead of "charset.h".
17220 (Fchar_to_string): Always call CHAR_STRING.
17221
17222 * emacs.c (main): Call init_charset_once, init_charset,
17223 syms_of_chartab, and syms_of_character.
17224
17225 * fileio.c: Include "character.h" instead of "charset.h".
17226 (Finsert_file_contents): Big change for the new code-conversion API.
17227 (choose_write_coding_system, Fwrite_region): Likewise.
17228 (build_annotations_2): Delete.
17229 (e_write): Big change for the new code-conversion API.
17230
17231 * fns.c: Include "character.h" instead of "charset.h".
17232 (copy_sub_char_table): Move to chartab.c.
17233 (Fcopy_sequence): Call copy_char_table for a char table.
17234 (concat): Delete codes calling count_multibyte.
17235 (string_char_to_byte, string_byte_to_char): Adjust for the new
17236 multibyte form.
17237 (internal_equal): Adjust for the change of char table structure.
17238 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17239 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17240 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17241 (char_table_translate, optimize_sub_char_table)
17242 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17243 chartab.c.
17244 (char_table_ref_and_index): Delete.
17245 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17246 (Fmd5): Call preferred_coding_system instead of accessing
17247 Vcoding_category_list. Adjust for the new code-conversion API.
17248 (syms_of_fns): Move defsubr for char table related functions to
17249 chartab.c.
17250
17251 * fontset.c: Mostly re-written.
17252
17253 * fontset.h (struct font_info): Change type of the member encoding_type.
17254 (enum FONT_SPEC_INDEX): New enum.
17255 (fontset_font_pattern, fs_load_font): Update prototype.
17256 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17257
17258 * indent.c: Include "character.h" instead of "charset.h".
17259 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17260
17261 * insdel.c: Include "character.h" instead of "charset.h".
17262 (copy_text): Don't refer to Vnonascii_translation_table.
17263 (insert_from_gap): New function.
17264
17265 * keyboard.c: Include "character.h" instead of "charset.h".
17266 (command_loop_1): Never call direct_output_forward_char before
17267 a non-ASCII character.
17268 (read_char): If Vkeyboard_translate_table is a char table, always
17269 translate a character.
17270
17271 * keymap.c: Include "character.h".
17272 (store_in_keymap): Handle the case that IDX is a cons.
17273 (Fdefine_key): Handle the case that KEY is a cons and the car part
17274 is also a cons (range).
17275 (push_key_description): Adjust for the new character code.
17276 (describe_vector): Call describe_char_table for a char table.
17277 (describe_char_table): New function.
17278
17279 * keymap.h (describe_char_table): Extern it.
17280
17281 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17282 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17283 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17284 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17285 Delete.
17286 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17287 structure.
17288 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17289 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17290 (CHARTAB_SIZE_BITS_3): New macros.
17291 (chartab_size): Extern it.
17292 (struct Lisp_Char_Table): Re-design.
17293 (struct Lisp_Sub_Char_Table): New structure.
17294 (HASH_KEY, HASH_VALUE): Move from fns.c.
17295 (CHARACTERBITS): Define as 22.
17296 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17297 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17298 (GC_SUB_CHAR_TABLE_P): New macro.
17299 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17300 (code_convert_string_norecord): Deleted extern.
17301 (init_character_once, syms_of_character, init_charset)
17302 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17303
17304 * lread.c: Include "character.h".
17305 (read_multibyte): New arg NBYTES.
17306 (read_escape): Change the meaning of returned *BYTEREP.
17307 (to_multibyte): Delete.
17308 (read1): Adjust the handling of char table and string.
17309
17310 * print.c: Include "character.h" instead of "charset.h".
17311 (print_string): Convert 8-bit raw bytes to octal form by
17312 string_escape_byte8.
17313 (print_object): Adjust for the new multibyte form. Print 8-bit
17314 raw bytes always in octal form. Handle sub char table correctly.
17315
17316 * process.c: Include "character.h" instead of "charset.h".
17317 (read_process_output, send_process): Adjust for the new
17318 code-conversion API.
17319
17320 * puresize.h (BASE_PURESIZE): Increase.
17321
17322 * regex.c: Include "character.h" instead of "charset.h".
17323 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17324 (regex_compile): Accept a range whose starting and ending
17325 character have different leading bytes.
17326 (analyse_first): Adjust for the above change.
17327
17328 * search.c: Include "character.h" instead of "charset.h".
17329 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17330 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17331
17332 * syntax.c: Include "character.h" instead of "charset.h".
17333 (syntax_parent_lookup): Delete.
17334 (Fmodify_syntax_entry): Accept a cons as CHAR.
17335 (skip_chars): Adjust for the new multibyte form.
17336 (init_syntax_once): Call char_table_set_range instead of directly
17337 accessing the structure of a char table.
17338
17339 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17340 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17341 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17342 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17343
17344 * term.c: Include "buffer.h" and "character.h".
17345 (encode_terminal_code, write_glyphs): Adjust for the new
17346 code-conversion API.
17347 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17348
17349 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17350
17351 * xdisp.c: Include "character.h".
17352 (get_next_display_element): Adjust for the new multibyte form.
17353 (disp_char_vector): Adjust for the new char table structure.
17354 (decode_mode_spec_coding): Adjust for the new structure of
17355 coding system.
17356 (decode_mode_spec): Adjust for the new code-conversion API.
17357
17358 * xfaces.c: Include "character.h" instead of "charset.h".
17359 (load_face_font): Adjust for the change of choose_face_font and
17360 FS_LOAD_FONT.
17361 (generate_ascii_font): New function.
17362 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17363 (set_font_frame_param): Adjust for the change of choose_face_font.
17364 (free_realized_face): Make it public.
17365 (free_realized_faces_for_fontset): Rename from
17366 free_realized_multibyte_face. Free also faces realized for ASCII.
17367 (choose_face_font): Change arguments. Adjust for the change of
17368 fontset_font_pattern and FS_LOAD_FONT.
17369
17370 * xfns.c: Include "character.h".
17371 (x_encode_text): Adjust for the new code-conversion API.
17372
17373 * xselect.c: Don't include "charset.h".
17374 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17375
17376 * xterm.c: Include "character.h".
17377 (x_encode_char): New argument CHARSET. Change caller.
17378 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17379 Call ENCODE_CHAR instead of SPLIT_CHAR.
17380 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17381 CHAR_WIDTH instead of CHARSET_WIDTH.
17382 (XTread_socket): Adjust for the new code-conversion API.
17383 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17384 (x_load_font): Adjust for the change of struct font.
17385
17386 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17387
17388 * xfaces.c (face_at_buffer_position): Remove unused vars.
17389
17390 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17391
17392 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17393 Fix overflow checking.
17394
17395 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17396
17397 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17398 Cancel previous change.
17399
17400 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17401
17402 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17403 ccl->eight_bit_control. Fix check for buffer overflow.
17404 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17405 (ccl_driver): Initialize extra_bytes to 0.
17406
17407 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17408
17409 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17410 return it ORed with ctrl_modifier.
17411
17412 2008-01-29 Miles Bader <miles@gnu.org>
17413
17414 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17415
17416 2008-01-28 Jason Rumney <jasonr@gnu.org>
17417
17418 * w32.c (stat): Don't double check for networked drive.
17419
17420 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17421
17422 * window.c (run_window_configuration_change_hook): New function.
17423 Code extracted from set_window_buffer. Set the selected frame.
17424 (set_window_buffer): Use it.
17425 * window.h (run_window_configuration_change_hook): Declare.
17426 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17427
17428 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17429
17430 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17431
17432 * Makefile.in: Remove references to unused macros.
17433
17434 2008-01-26 Eli Zaretskii <eliz@gnu.org>
17435
17436 * w32.c (g_b_init_get_sid_sub_authority)
17437 (g_b_init_get_sid_sub_authority_count): New static variables.
17438 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17439 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17440 (init_user_info): Use them to retrieve uid and gid.
17441 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17442 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17443 st_uid and st_gid of the file.
17444
17445 2008-01-26 Jason Rumney <jasonr@gnu.org>
17446
17447 * w32.c (logon_network_drive): New function.
17448 (stat): Use it.
17449
17450 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
17451
17452 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17453 invisible text covered with an ellipsis.
17454
17455 2008-01-25 Richard Stallman <rms@gnu.org>
17456
17457 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17458 jump back to beginning. Move some other initializations after that.
17459 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17460 New variables.
17461 (syms_of_xdisp): Init them.
17462
17463 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17464
17465 * buffer.c (reset_buffer_local_variables):
17466 Implement `permanent-local-hook'.
17467 (Qpermanent_local_hook): New variable.
17468 (syms_of_buffer): Init and staticpro it.
17469
17470 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
17471
17472 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17473
17474 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17475
17476 * fns.c (Fclrhash): Return TABLE.
17477
17478 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17479
17480 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17481 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17482 is set even without positional changes.
17483 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17484
17485 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17486
17487 2008-01-23 Jason Rumney <jasonr@gnu.org>
17488
17489 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17490
17491 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17492 the unicode range available in MULE by locale-coding-system.
17493 Improve dbcs lead byte detection. Set event timestamp and modifiers
17494 earlier.
17495
17496 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17497
17498 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17499 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17500 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17501 when used on child processes.
17502
17503 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
17504
17505 * dbusbind.c (Fdbus_method_return_internal): Rename from
17506 Fdbus_method_return.
17507 (Fdbus_unregister_object): Move to dbus.el.
17508 (Fdbus_call_method, Fdbus_method_return_internal)
17509 (Fdbus_send_signal): Improve debug messages.
17510
17511 2008-01-20 Martin Rudalics <rudalics@gmx.at>
17512
17513 * undo.c (undo_inhibit_record_point): New variable.
17514 (syms_of_undo): Initialize it.
17515 (record_point): Don't record point when undo_inhibit_record_point
17516 is set.
17517
17518 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17519
17520 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17521
17522 * xdisp.c (Qauto_hscroll_mode): New var.
17523 (syms_of_xdisp): Initialize it.
17524 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17525 window's buffer.
17526 (hscroll_windows): Don't check automatic_hscrolling_p here.
17527
17528 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17529 vscroll if we're setting window-buffer to the value it already has.
17530
17531 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17532
17533 * m/intel386.h: Remove references to XENIX.
17534
17535 2008-01-17 Andreas Schwab <schwab@suse.de>
17536
17537 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17538 instead of HAVE_X86_64_LIB64_DIR.
17539 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17540
17541 2008-01-17 Glenn Morris <rgm@gnu.org>
17542
17543 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17544 to HAVE_X86_64_LIB64_DIR.
17545
17546 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17547
17548 * s/irix3-3.h:
17549 * s/irix4-0.h:
17550 * s/386-ix.h:
17551 * s/domain.h:
17552 * s/hpux9-x11r4.h:
17553 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17554
17555 * sysdep.c: Remove code containing references to symbols defined
17556 by unsupported systems.
17557
17558 2008-01-16 Glenn Morris <rgm@gnu.org>
17559
17560 * coding.c (select-safe-coding-system-function): Doc fix.
17561
17562 2008-01-15 Glenn Morris <rgm@gnu.org>
17563
17564 * config.in: Revert 2008-01-13 change: this is a generated file.
17565
17566 2008-01-13 Tom Tromey <tromey@redhat.com>
17567
17568 * lisp.h: Fix typo.
17569
17570 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17571
17572 * m/sequent-ptx.h:
17573 * m/sequent.h:
17574 * s/ptx.h:
17575 * s/ptx4-2.h:
17576 * s/ptx4.h: Remove files for systems no longer supported.
17577
17578 * callproc.c (Fcall_process): Fix previous change.
17579
17580 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17581
17582 * unexsunos4.c: Remove file, system not supported anymore.
17583
17584 * m/mips.h:
17585 * m/intel386.h:
17586 * callproc.c:
17587 * config.in:
17588 * ecrt0.c:
17589 * emacs.c:
17590 * fileio.c:
17591 * frame.c:
17592 * getpagesize.h:
17593 * keyboard.c:
17594 * lread.c:
17595 * process.c:
17596 * puresize.h:
17597 * sysdep.c:
17598 * systty.h:
17599 * syswait.h:
17600 * unexec.c:
17601 * xdisp.c:
17602 * alloc.c: Remove code containing references to symbols defined by
17603 unsupported systems.
17604
17605 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17606
17607 * coding.c (detect_coding_mask): Fix previous change.
17608
17609 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17610
17611 * coding.c (detect_coding_iso2022): New arg
17612 latin_extra_code_state. Allow Latin extra codes only
17613 when *latin_extra_code_state is nonzero.
17614 (detect_coding_mask): If there is a NULL byte, detect the encoding
17615 as UTF-16 or binary. If Latin extra codes exist, detect the
17616 encoding as ISO-2022 only when there's no other proper encoding is
17617 found.
17618
17619 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17620
17621 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17622 #ifdef MAC_OS.
17623
17624 2008-01-08 Richard Stallman <rms@gnu.org>
17625
17626 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17627
17628 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
17629
17630 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17631 menu bar in parentheses.
17632
17633 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17634
17635 * m/7300.h:
17636 * m/acorn.h:
17637 * m/alliant-2800.h:
17638 * m/alliant.h:
17639 * m/alliant1.h:
17640 * m/alliant4.h:
17641 * m/altos.h:
17642 * m/amdahl.h:
17643 * m/apollo.h:
17644 * m/att3b.h:
17645 * m/aviion-intel.h:
17646 * m/aviion.h:
17647 * m/celerity.h:
17648 * m/clipper.h:
17649 * m/cnvrgnt.h:
17650 * m/convex.h:
17651 * m/cydra5.h:
17652 * m/delta88k.h:
17653 * m/dpx2.h:
17654 * m/dual.h:
17655 * m/elxsi.h:
17656 * m/f301.h:
17657 * m/gould-np1.h:
17658 * m/gould.h:
17659 * m/i860.h:
17660 * m/ibmps2-aix.h:
17661 * m/ibmrt-aix.h:
17662 * m/ibmrt.h:
17663 * m/irist.h:
17664 * m/is386.h:
17665 * m/isi-ov.h:
17666 * m/mega68.h:
17667 * m/mg1.h:
17668 * m/news-r6.h:
17669 * m/news-risc.h:
17670 * m/news.h:
17671 * m/nh3000.h:
17672 * m/nh4000.h:
17673 * m/ns16000.h:
17674 * m/ns32000.h:
17675 * m/nu.h:
17676 * m/orion.h:
17677 * m/orion105.h:
17678 * m/paragon.h:
17679 * m/pfa50.h:
17680 * m/plexus.h:
17681 * m/pyramid.h:
17682 * m/pyrmips.h:
17683 * m/sh3el.h:
17684 * m/sps7.h:
17685 * m/sr2k.h:
17686 * m/stride.h:
17687 * m/sun1.h:
17688 * m/sun2.h:
17689 * m/sun3-68881.h:
17690 * m/sun3-fpa.h:
17691 * m/sun3-soft.h:
17692 * m/sun3.h:
17693 * m/sun386.h:
17694 * m/symmetry.h:
17695 * m/tad68k.h:
17696 * m/tahoe.h:
17697 * m/targon31.h:
17698 * m/tek4300.h:
17699 * m/tekxd88.h:
17700 * m/tower32.h:
17701 * m/tower32v3.h:
17702 * m/ustation.h:
17703 * m/wicat.h:
17704 * m/xps100.h:
17705 * s/cxux.h:
17706 * s/cxux7.h:
17707 * s/dgux.h:
17708 * s/dgux4.h:
17709 * s/dgux5-4-3.h:
17710 * s/dgux5-4r2.h:
17711 * s/esix.h:
17712 * s/esix5r4.h:
17713 * s/hiuxmpp.h:
17714 * s/hiuxwe2.h:
17715 * s/iris3-5.h:
17716 * s/iris3-6.h:
17717 * s/isc2-2.h:
17718 * s/isc3-0.h:
17719 * s/isc4-0.h:
17720 * s/isc4-1.h:
17721 * s/newsos5.h:
17722 * s/newsos6.h:
17723 * s/osf1.h:
17724 * s/osf5-0.h:
17725 * s/riscix1-1.h:
17726 * s/riscix12.h:
17727 * s/sco4.h:
17728 * s/sco5.h:
17729 * s/sunos4-0.h:
17730 * s/sunos4-1.h:
17731 * s/sunos413.h:
17732 * s/sunos4shr.h:
17733 * s/umax.h:
17734 * s/unipl5-2.h:
17735 * s/xenix.h:
17736 * cxux-crt0.s:
17737 * unexapollo.c:
17738 * unexconvex.c:
17739 * unexenix.c:
17740 * unexsni.c: Remove files for systems no longer supported.
17741
17742 * m/intel386.h: Remove references to unsupported systems.
17743
17744 * w32.c (get_emacs_configuration): Remove reference to i860.
17745
17746 * sysdep.c: Remove dead code.
17747
17748 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17749
17750 * s/rtu.h:
17751 * m/masscomp.h: Remove files. Platform is obsolete.
17752
17753 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
17754
17755 * dbusbind.c (Fdbus_method_return): New function.
17756 (xd_read_message): Add the serial number to the event.
17757 (Fdbus_register_method): Activate the function.
17758
17759 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17760
17761 * keyboard.c (read_key_sequence): Fix typo.
17762
17763 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
17764
17765 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17766 (xd_signature, xd_append_arg): Handle element type detection for
17767 empty arrays.
17768 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17769 SDATA () calls; this must be solved more general.
17770 (Fdbus_register_signal): Use SBYTES instead of strlen.
17771
17772 2008-01-03 Magnus Henoch <magnus@zemdatav>
17773
17774 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17775 unsigned int for byte values (necessary for big-endian platform).
17776 (Fdbus_call_method): Handle the case of no returned arguments.
17777
17778 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17779
17780 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17781
17782 2007-12-31 Magnus Henoch <mange@freemail.hu>
17783
17784 * dbusbind.c (xd_signature): Signature of variant is just "v".
17785
17786 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
17787
17788 * dbusbind.c: Fix several errors and compiler warnings.
17789 Reported by Tom Tromey <tromey@redhat.com>.
17790 (XD_ERROR, XD_DEBUG_MESSAGE)
17791 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17792 (xd_append_arg): Part for basic D-Bus types rewritten.
17793 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17794 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17795 appropriate.
17796 (xd_read_message): Return Qnil. Don't signal an error; it is not
17797 useful during event reading.
17798 (Fdbus_register_signal): Signal an error if the check for
17799 FUNCTIONP fails.
17800 (Fdbus_register_method): New function. The implementation is not
17801 complete, the call of the function signals an error therefore.
17802 (Fdbus_unregister_object): New function, renamed from
17803 Fdbus_unregister_signal. The initial check signals an error, if
17804 the object is not well formed.
17805
17806 2007-12-30 Richard Stallman <rms@gnu.org>
17807
17808 * textprop.c (get_char_property_and_overlay):
17809 Signal error if POSITION is out of range in a buffer.
17810
17811 2007-12-29 Martin Rudalics <rudalics@gmx.at>
17812
17813 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17814 because the original parameters are in pure storage now.
17815
17816 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17817
17818 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17819
17820 2007-12-22 Eli Zaretskii <eliz@gnu.org>
17821
17822 * callint.c (syms_of_callint) <command-history>: Add reference to
17823 history-length in the doc string.
17824
17825 2007-12-17 Jason Rumney <jasonr@gnu.org>
17826
17827 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17828 before passing as wParam.
17829
17830 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
17831
17832 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17833 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17834 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17835 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17836 as number.
17837 (Fdbus_call_method): Fix docstring.
17838
17839 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
17840
17841 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17842 New macros.
17843 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17844 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17845 Simplify.
17846 (xd_signature): New function.
17847 (xd_append_arg): Compute also signatures. Major rewrite.
17848 (xd_retrieve_arg): Make debug messages friendly.
17849 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17850 Check for signatures of arguments.
17851
17852 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
17853
17854 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17855 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17856 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17857 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17858 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17859 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17860 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17861 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17862 (xd_retrieve_value): Remove. Functionality included in ...
17863 (xd_append_arg): New function.
17864 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17865
17866 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
17867
17868 * dbusbind.c (top): Include <stdio.h>.
17869 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17870 dbus_message_new_method_call and dbus_message_new_signal.
17871 (Fdbus_register_signal): Rename unique_name to uname.
17872 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17873 non-existing unique name. Fix typos in matching rule. Return an
17874 object which is useful in Fdbus_unregister_signal.
17875 (Fdbus_unregister_signal): Reimplementation, in order to remove
17876 only the corresponding entry.
17877 (Vdbus_registered_functions_table): Change the order of entries.
17878 Apply these changes in xd_read_message and Fdbus_register_signal.
17879
17880 2007-12-16 Andreas Schwab <schwab@suse.de>
17881
17882 * fileio.c (Finsert_file_contents): Fix overflow check to not
17883 depend on undefined integer overflow.
17884
17885 2007-12-14 Jason Rumney <jasonr@gnu.org>
17886
17887 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17888 for characters above 127.
17889
17890 2007-12-13 Jason Rumney <jasonr@gnu.org>
17891
17892 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17893 before dereferencing array.
17894 (lookup_vk_code): Remove zero comparison.
17895
17896 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
17897
17898 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17899 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17900 Use `unsigned int' instead of `uint'.
17901 (xd_read_message, Fdbus_register_signal): Split expressions into
17902 multiple lines before operators "&&" and "||", according to the
17903 GNU Coding Standards.
17904
17905 2007-12-14 Eli Zaretskii <eliz@gnu.org>
17906
17907 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17908
17909 2007-12-12 Juri Linkov <juri@jurta.org>
17910
17911 * buffer.c (Frename_buffer): In interactive spec replace
17912 `read-buffer' with `read-string' that uses `buffer-name-history'
17913 as history, and the current buffer's name as default.
17914
17915 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17916
17917 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17918 manipulating the backtrace manually.
17919 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17920 (struct backtrace, backtrace_list): Remove.
17921 (command_loop_1): Remove dead var `no_direct'.
17922
17923 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17924 preserve non-built-in buffer-local variables.
17925 (Fkill_all_local_variables): Don't re-create&re-set permanent
17926 buffer-local variables.
17927
17928 2007-12-09 Juri Linkov <juri@jurta.org>
17929
17930 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17931 Lisp code that uses `read-buffer' with current buffer as default.
17932
17933 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
17934
17935 * dbusbind.c (xd_read_message): Generate an event for every
17936 registered handler. There might be several handlers registered
17937 for the same signal.
17938 (Fdbus_register_signal): Don't overwrite a registration for the
17939 same signal. Add a new registration if handlers are different.
17940 (Vdbus_registered_functions_table): Rework doc string.
17941
17942 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
17943
17944 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17945 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17946 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17947 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17948 Unify argument lists.
17949 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17950 arguments and hash table keys. Use unique name for service.
17951 (Fdbus_unregister_signal): Remove checks.
17952 (Vdbus_registered_functions_table): Fix doc string.
17953
17954 2007-12-05 Magnus Henoch <mange@freemail.hu>
17955
17956 * process.c (make_process): Initialize pty_flag to 0.
17957
17958 2007-12-05 Jason Rumney <jasonr@gnu.org>
17959
17960 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17961 specified XBMs.
17962
17963 2007-12-05 Richard Stallman <rms@gnu.org>
17964
17965 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17966
17967 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17968
17969 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17970 New variable.
17971 (mac_try_close_socket) [MAC_OSX]: New function.
17972 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17973 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17974
17975 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17976 Use mac_try_close_socket.
17977
17978 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17979
17980 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17981 reloc_base.
17982 (copy_dysymtab): Compute relocation base here.
17983 (rebase_reloc_address) [__ppc64__]: New function.
17984 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17985 changed.
17986
17987 2007-12-05 Jason Rumney <jasonr@gnu.org>
17988
17989 * w32proc.c (sys_spawnve): Quote args with wildcards.
17990
17991 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17992
17993 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17994 __objc_* sections.
17995 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17996
17997 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
17998
17999 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18000 Move check for Vdbus_registered_functions_table to
18001 xd_read_queued_messages.
18002 (xd_read_queued_messages): Protect xd_read_message calls by
18003 internal_condition_case_1.
18004
18005 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
18006
18007 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18008 Qdbus_system_bus and Qdbus_session_bus, respectively.
18009 (Vdbus_intern_symbols): Remove.
18010 (Vdbus_registered_functions_table): New hash table.
18011 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18012 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18013 Rewrite in order to manage registered functions by hash table
18014 Vdbus_registered_functions_table.
18015
18016 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18017
18018 * xterm.c: Update URL to Window Manager Specification in comment.
18019
18020 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
18021
18022 * config.in (HAVE_DBUS): Add.
18023
18024 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18025 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18026 (obj): Add $(DBUS_OBJ).
18027 (LIBES): Add $(DBUS_LIBS).
18028 (dbusbind.o): New target.
18029
18030 * dbusbind.c: New file.
18031
18032 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18033
18034 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18035 (Qdbus_event): New Lisp symbol.
18036 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18037 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
18038 (keys_of_keyboard): Define dbus-event.
18039
18040 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18041
18042 2007-12-01 Richard Stallman <rms@gnu.org>
18043
18044 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18045
18046 2007-11-30 Jason Rumney <jasonr@gnu.org>
18047
18048 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18049 (w32con_reset_terminal_modes): Clear screen buffer.
18050 (w32_face_attributes): Don't use color indexes that are out of range.
18051 Only reverse the default colors.
18052
18053 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18054 WINDOWSNT.
18055
18056 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18057
18058 2007-11-29 Jason Rumney <jasonr@gnu.org>
18059
18060 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18061 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18062 if the terminal colors are initialized.
18063 (unspecified_fg, unspecified_bg): Remove unused declarations.
18064
18065 2007-11-29 Andreas Schwab <schwab@suse.de>
18066
18067 * keyboard.c (apply_modifiers): Fix typo.
18068
18069 2007-11-29 Richard Stallman <rms@gnu.org>
18070
18071 * keymap.c (Fcurrent_local_map): Doc fix.
18072
18073 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18074
18075 * s/gnu-kfreebsd.h: New file.
18076
18077 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18078
18079 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18080 Don't cast redundantly.
18081
18082 * keyboard.c (KEY_TO_CHAR): New macro.
18083 (parse_modifiers, apply_modifiers): Accept integer arguments.
18084 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18085 for chars and symbol keys.
18086 After doing such remapping, apply function-key-map again.
18087
18088 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18089
18090 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18091 compiled anymore.
18092
18093 2007-11-26 Andreas Schwab <schwab@suse.de>
18094
18095 * process.c (list_processes_1): Fix indentation level of the
18096 command column.
18097
18098 2007-11-23 Andreas Schwab <schwab@suse.de>
18099
18100 * editfns.c (Fformat): Handle %c specially since it requires the
18101 argument to be of type int.
18102
18103 2007-11-23 Markus Triska <markus.triska@gmx.at>
18104
18105 * emacs.c (main): Call init_editfns before init_process, since
18106 init_process sets Vprocess_connection_type depending on OS release.
18107
18108 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18109
18110 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18111 (find_symbol_value): Use do_symval_forwarding.
18112
18113 * data.c (set_internal): Set the value in the `cons-cell' (for
18114 Buffer_Local_values) not only for frame-local variables.
18115
18116 2007-11-22 Andreas Schwab <schwab@suse.de>
18117
18118 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18119 values to sprintf.
18120 * keymap.c (Fsingle_key_description): Likewise.
18121 * print.c (print_object): Likewise.
18122
18123 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18124
18125 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18126 file for image is nil.
18127
18128 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18129
18130 * term.c: Include stdarg.h.
18131 (fatal): Implement using varargs.
18132 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18133
18134 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18135
18136 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18137 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18138 Update call to buffer_slot_type_mismatch.
18139 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18140 (buffer_slot_type_mismatch): Update.
18141 * buffer.c (buffer_local_types): Remove.
18142 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18143 (defvar_per_buffer): Set the type in the buffer_objfwd.
18144
18145 2007-11-21 Jason Rumney <jasonr@gnu.org>
18146
18147 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18148 CreateFileMapping returns NULL on failure.
18149
18150 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18151
18152 * search.c (Fset_match_data): Remove the `evaporate' feature.
18153 (unwind_set_match_data): Don't use the `evaporate' feature.
18154
18155 2007-11-21 Jason Rumney <jasonr@gnu.org>
18156
18157 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18158
18159 * w32console.c (w32con_write_glyphs): Remove unused variables.
18160
18161 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18162
18163 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18164
18165 * s/darwin.h (MULTI_KBOARD): Remove.
18166
18167 * macfns.c (x_create_tip_frame, Fx_create_frame)
18168 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18169
18170 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18171
18172 * buffer.c (Fbuffer_local_value): Remove redundant test.
18173 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18174 than in `current-buffer' to match the comment.
18175 Do the swap using swap_in_global_binding.
18176
18177 * data.c (store_symval_forwarding, set_internal):
18178 * eval.c (specbind): Remove dead code.
18179
18180 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18181 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18182 Since we do not want to see internal Lisp_*fwd objects here.
18183
18184 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18185
18186 * sysdep.c (init_system_name): Use getaddrinfo if available.
18187
18188 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18189 (x_scroll_bar_note_movement): start, end, with, height in struct
18190 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18191
18192 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18193
18194 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18195
18196 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18197
18198 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18199 This undoes Richard's change of 14-Oct-2002.
18200
18201 * alloc.c (allocate_other_vector):
18202 * lisp.h (allocate_other_vector): Remove.
18203
18204 * window.c (struct save_window_data): Move non-lisp data to the end
18205 and make it `int' rather than Lisp_Object.
18206 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18207 Done wrap/unwrap integer values.
18208 (Fset_window_configuration, compare_window_configurations):
18209 Update use of fields to their new types.
18210
18211 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18212 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18213 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18214 (SET_SCROLL_BAR_X_WINDOW): Remove.
18215 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18216 Access the new x_window field directly.
18217 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18218 Don't wrap/unwrap integers into Lisp_Objects.
18219 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18220 (x_scroll_bar_report_motion):
18221 Don't wrap/unwrap integers into Lisp_Objects.
18222 (x_term_init): Use SDATA.
18223 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18224 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18225 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18226 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18227 * xfns.c (x_set_background_color):
18228 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18229 Access the new x_window field directly.
18230
18231 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18232 (allocate_pseudovector): Make non-static.
18233
18234 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18235 (allocate_pseudovector): Declare.
18236 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18237
18238 2007-11-15 Andreas Schwab <schwab@suse.de>
18239
18240 * editfns.c (Fformat): Correctly format EMACS_INT values.
18241 Also take precision into account when formatting an integer.
18242
18243 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18244
18245 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18246
18247 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18248 (syms_of_keyboard): Defsubr it.
18249
18250 * data.c (swap_in_global_binding): Fix longstanding bug where
18251 store_symval_forwarding was not called with the right second argument,
18252 thus causing objfwd-ing from being dropped.
18253
18254 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18255
18256 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18257 (Fx_display_pixel_height, Fx_display_planes)
18258 (Fx_display_color_cells, Fx_server_max_request_size)
18259 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18260 (Fx_display_visual_class, Fx_display_save_under):
18261 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18262 (Fx_display_pixel_height, Fx_display_planes)
18263 (Fx_display_color_cells, Fx_server_max_request_size)
18264 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18265 (Fx_display_mm_height, Fx_display_mm_width)
18266 (Fx_display_backing_store, Fx_display_visual_class)
18267 (Fw32_select_font, Fx_display_save_under):
18268 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18269 (Fx_display_pixel_height, Fx_display_planes)
18270 (Fx_display_color_cells, Fx_server_max_request_size)
18271 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18272 (Fx_display_save_under): Fix typos in docstrings.
18273
18274 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18275
18276 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18277 corresponding to deleted entries; they are an implementation detail.
18278 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18279 Remove variables.
18280 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18281 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18282 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18283 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18284 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18285 (Fw32_define_rgb_color, Fw32_load_color_file)
18286 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18287 Fix typos in docstrings.
18288 (Fx_server_version): Reflow docstring.
18289 (Fw32_shell_execute): Doc fixes.
18290
18291 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
18292
18293 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18294 if w32_parse_hot_key returned nil.
18295
18296 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18297
18298 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18299
18300 2007-11-09 Jason Rumney <jasonr@gnu.org>
18301
18302 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18303
18304 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18305
18306 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18307 Remove W32_SCROLL_BAR_CLICK_EVENT.
18308
18309 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18310 Add MULTIMEDIA_KEY_EVENT.
18311
18312 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18313 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18314 (make_lispy_event) [WINDOWSNT]: Use it to translate
18315 MULTIMEDIA_KEY_EVENT.
18316
18317 * w32term.h (WM_APPCOMMAND): Define if not already.
18318 (GET_APPCOMMAND_LPARAM): Likewise.
18319
18320 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18321 WM_APPCOMMAND.
18322
18323 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18324 (syms_of_w32fns): Export and initialize it.
18325 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18326
18327 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
18328
18329 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18330 twice.
18331
18332 * xdisp.c (handle_face_prop): Fix last change.
18333
18334 2007-11-09 Richard Stallman <rms@gnu.org>
18335
18336 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18337 not just for after-strings and before-strings.
18338 Call face_for_overlay_string and pass the overlay to it.
18339 (handle_display_prop): Determine whether property came from an overlay.
18340 Pass OVERLAY arg to handle_single_display_spec.
18341 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18342 (load_overlay_strings): Fill in it->string_overlays.
18343 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18344
18345 * xfaces.c (face_for_overlay_string): Function renamed from
18346 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18347
18348 * dispextern.h (struct it): New elt string_overlays.
18349 New elt from_overlay, also in stack.
18350 Rearrange a few elements.
18351 (face_for_overlay_string): Decl renamed from
18352 face_at_buffer_position_no_overlays, and add argument.
18353
18354 2007-11-09 Richard Stallman <rms@gnu.org>
18355
18356 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18357 to get the base face for an overlay string.
18358
18359 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18360
18361 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18362
18363 * xdisp.c (handle_stop): Move some code out of loop.
18364
18365 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18366
18367 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18368 Fix conversion from Lisp object to ATSUFontID.
18369
18370 2007-11-09 Jason Rumney <jasonr@gnu.org>
18371
18372 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18373
18374 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18375
18376 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18377 Don't assume regions are aligned to page boundary.
18378 (print_load_command_name): Add LC_UUID if defined.
18379
18380 2007-11-09 Richard Stallman <rms@gnu.org>
18381
18382 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18383
18384 2007-11-07 Jason Rumney <jasonr@gnu.org>
18385
18386 * s/windows95.h: Remove.
18387
18388 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18389
18390 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18391 abort with a message on unhandled store_type values.
18392
18393 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18394
18395 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18396 Remove HAVE_X11R5 and HAVE_X11R4.
18397
18398 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18399
18400 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18401
18402 2007-11-01 Johan Bockgård <bojohan@gnu.org>
18403
18404 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18405 Don't set s->stippled_p here, since it has already been set by
18406 x_set_glyph_string_gc from x_draw_glyph_string.
18407
18408 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18409
18410 * sunfns.c: Remove file.
18411
18412 * m/sun386.h:
18413 * m/sun2.h:
18414 * m/sparc.h: Remove Sun windows code.
18415
18416 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18417
18418 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18419 (init_keyboard): Set current_kboard's window-system to nil.
18420 (tty_read_avail_input): Typo.
18421 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18422
18423 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18424
18425 * s/usg5-4.h:
18426 * s/usg5-3.h:
18427 * s/ptx.h:
18428 * m/is386.h:
18429 * m/ibmps2-aix.h:
18430 * Makefile.in: Remove all mentions of X10.
18431
18432 * dispnew.c (syms_of_display): Don't mention version 10.
18433
18434 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
18435
18436 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18437 ($(BLD)/abbrev.$(O)): Remove.
18438
18439 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18440
18441 Rewrite abbrev.c in Elisp.
18442 * image.c (Qcount): Don't declare as extern.
18443 (syms_of_image): Initialize and staticpro `Qcount'.
18444 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18445 * emacs.c (main): Don't call syms_of_abbrev.
18446 * Makefile.in (obj): Remove abbrev.o.
18447 (abbrev.o): Remove.
18448 * abbrev.c: Remove.
18449
18450 2007-10-26 Martin Rudalics <rudalics@gmx.at>
18451
18452 * window.c (window_min_size_2): Don't count header-line.
18453
18454 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18455
18456 * frame.h (struct frame): Move all bit fields after the first bit
18457 field to take advantage of the available space. Group all the
18458 chars together to reduce wasted space due to padding.
18459
18460 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
18461
18462 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18463
18464 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18465 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18466 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18467 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18468 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18469 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18470 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18471 (last_marked, mark_object_loop_halt): Make static.
18472
18473 * frame.c (syms_of_frame) <delete-frame-functions>:
18474 Fix typo in docstring.
18475
18476 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
18477
18478 * w32.c (init_environment): Fix tiny memory leak.
18479 (w32_get_resource): Remove unused variable `ok'.
18480
18481 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18482
18483 Make `window-system' into a keyboard-local variable (rather than
18484 frame-local as done originally by multi-tty).
18485
18486 * keyboard.h (struct kboard): Add Vwindow_system.
18487 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18488 (mark_kboards): Mark Vwindow_system.
18489
18490 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18491 (init_display): Don't set the obsolete `window-system' frame-param.
18492
18493 * xterm.c (x_term_init):
18494 * w32term.c (w32_create_terminal):
18495 * term.c (init_tty): Set Vwindow_system.
18496 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18497 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18498
18499 * xfns.c (Fx_create_frame, x_create_tip_frame):
18500 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18501 * macfns.c (Fx_create_frame):
18502 Don't set the obsolete `window-system' frame-param.
18503
18504 * frame.h (Qwindow_system): Remove.
18505 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18506 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18507
18508 2007-10-24 Richard Stallman <rms@gnu.org>
18509
18510 * frame.c (x_figure_window_size): For fullscreen case,
18511 set USPosition | PPosition without clobbering rest of window_prompting.
18512
18513 * keyboard.c (Fcurrent_idle_time): Doc fix.
18514
18515 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18516
18517 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18518
18519 * process.c (unwind_request_sigio): Only define if __ultrix__.
18520
18521 * callproc.c (child_setup): Remove spurious *.
18522
18523 * lisp.h (Fget_text_property): Declare.
18524 (have_menus_p): Declare it here rather than in sys-dep header files.
18525 * macterm.h (have_menus_p):
18526 * msdos.h (have_menus_p):
18527 * xterm.h (have_menus_p): Remove.
18528
18529 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18530 (Fmake_variable_frame_local): Just check the variable's const-ness
18531 rather than checking nil or t.
18532
18533 2007-10-22 Jason Rumney <jasonr@gnu.org>
18534
18535 * w32fns.c: Include math.h.
18536 (w32_abort): Declaration moved to nt/config.nt.
18537
18538 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18539 (abort): Redefinition moved to nt/config.nt.
18540
18541 * m/windowsnt.h: Remove.
18542
18543 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
18544
18545 * emacs.c (Fdump_emacs): Fix typo in message.
18546 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18547 <installation-directory>: Reflow docstring.
18548
18549 2007-10-22 Juri Linkov <juri@jurta.org>
18550
18551 * minibuf.c: Allow minibuffer default to be a list of default values.
18552 With empty input use the first element of this list as returned default.
18553 (string_to_object)
18554 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18555 (read_minibuf): If defalt is cons, set histstring to its car.
18556 (Fread_string): If default_value is cons, set val to its car.
18557 (Fread_buffer): If def is cons, use its car.
18558 (Fcompleting_read): If defalt is cons, set val to its car.
18559
18560 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
18561
18562 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18563
18564 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
18565
18566 * doc.c (Fdocumentation): Check for advice in all cases.
18567
18568 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
18569
18570 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18571
18572 2007-10-19 Richard Stallman <rms@gnu.org>
18573
18574 * doc.c (Fdocumentation): Check for and handle an advised function.
18575
18576 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
18577
18578 * process.c (Fset_process_filter): Doc fix.
18579
18580 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18581
18582 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18583 which caused key-translation-map to applied repeatedly (thus breaking
18584 double-mode).
18585
18586 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18587
18588 * xselect.c (x_own_selection, x_handle_selection_clear)
18589 (x_clear_frame_selections):
18590 * w32menu.c (list_of_panes, list_of_items):
18591 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18592 * textprop.c (validate_plist, interval_has_all_properties)
18593 (interval_has_some_properties, interval_has_some_properties_list)
18594 (add_properties, text_property_list):
18595 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18596 * minibuf.c (Fassoc_string):
18597 * macselect.c (x_own_selection, x_clear_frame_selections)
18598 (Fx_disown_selection_internal):
18599 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18600 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18601
18602 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
18603
18604 * process.c: Link to libs for calling res_init() if available.
18605 (Fmake_network_process): Call res_init() before getaddrinfo or
18606 gethostbyname, if possible.
18607
18608 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18609
18610 * lread.c (read1): Set pvectype for char_tables.
18611
18612 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18613 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18614 Add type checks.
18615 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18616
18617 * alloc.c (free_misc): Use XMISCTYPE.
18618 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18619
18620 2007-10-17 Glenn Morris <rgm@gnu.org>
18621
18622 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18623 (syms_of_minibuf): Add Qcompletion_ignore_case.
18624 * dired.c (Qcompletion_ignore_case): Change to external.
18625 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18626 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18627 (Fread_file_name): Use it rather than intern'ing.
18628
18629 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18630 (Fread_coding_system): Ignore case of user input.
18631
18632 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18633
18634 * xdisp.c (handle_display_prop): Ignore display specs after
18635 replacing one when string text is being replaced.
18636 (handle_single_display_spec): Pretend as if characters with display
18637 property haven't been consumed only when buffer text is being replaced.
18638
18639 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18640
18641 * xfns.c (Fx_create_frame, Fx_display_list):
18642 * window.c (window_fixed_size_p, enlarge_window)
18643 (shrink_window_lowest_first):
18644 * macterm.c (init_font_name_table):
18645 * macfns.c (Fx_create_frame, Fx_display_list):
18646 * lread.c (close_load_descs):
18647 * keyboard.c (read_char_x_menu_prompt):
18648 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18649 * coding.c (code_convert_region_unwind): Test the type of an object
18650 rather than just !NILP before extracting data from it.
18651
18652 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18653
18654 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18655 (XMISCANY): New macro.
18656 (XMISCTYPE): Use it.
18657 (struct Lisp_Misc_Any): New type.
18658 (union Lisp_Misc): Use it.
18659 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18660 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18661 (find_symbol_value, set_internal, default_value, Fset_default)
18662 (Fmake_variable_buffer_local, Fmake_local_variable)
18663 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18664 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18665 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18666 * alloc.c (allocate_buffer): Set the size and tag.
18667 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18668 Use XMISCANY.
18669 (die): Follow the GNU convention for error messages.
18670 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18671 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18672 tag any more.
18673 (set_buffer_internal_1):
18674 * frame.c (store_frame_param):
18675 * eval.c (specbind):
18676 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18677
18678 * doc.c (Fsnarf_documentation): Simplify.
18679
18680 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18681
18682 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18683 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18684
18685 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18686
18687 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18688
18689 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18690
18691 * eval.c (do_autoload): Don't save autoloads.
18692
18693 * data.c (Ffset): Save autoload of the function being set.
18694
18695 2007-10-07 John Paul Wallington <jpw@pobox.com>
18696
18697 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18698 parameter before setting up faces.
18699
18700 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18701
18702 * ccl.c (Fregister_code_conversion_map):
18703 * keyboard.c (append_tool_bar_item): Reformat last change.
18704
18705 * lisp.h (eabs): Rename from `abs'. All callers changed.
18706
18707 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18708
18709 * buffer.c (add_overlay_mod_hooklist):
18710 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18711 * fontset.c (make_fontset):
18712 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18713 (append_tool_bar_item):
18714 * macmenu.c (grow_menu_items):
18715 * w32menu.c (grow_menu_items):
18716 * xmenu.c (grow_menu_items): Use larger_vector.
18717
18718 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18719
18720 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18721 selected frame'' on MSDOS).
18722
18723 2007-10-12 Martin Rudalics <rudalics@gmx.at>
18724
18725 * frame.c (Qexplicit_name): New variable.
18726 (x_report_frame_params): Report it in parameter alist.
18727 (syms_of_frame): Intern and staticpro it.
18728
18729 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18730
18731 * macfns.c (x_create_tip_frame): Set terminal for frame.
18732
18733 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18734
18735 * frame.c (Qenvironment): Remove.
18736 (syms_of_frame) <Qenvironment>: Don't initialize.
18737 (Fdelete_frame): Don't treat the `environment' param specially.
18738 * frame.h (Qenvironment): Don't declare.
18739 * callproc.c (set_initial_environment): Don't set unused frame param.
18740
18741 * frame.c (Fframe_with_environment): Remove.
18742 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18743
18744 * lisp.h (Fframe_with_environment): Don't declare.
18745
18746 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
18747
18748 * indent.c (indent_tabs_mode, last_known_column)
18749 (last_known_column_modified): Make static.
18750 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18751
18752 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18753
18754 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18755
18756 2007-10-09 Jason Rumney <jasonr@gnu.org>
18757
18758 * w32term.c (x_set_window_size): Disable code that attempts to tell
18759 Lisp code about a size change before it actually happens.
18760
18761 2007-10-09 Richard Stallman <rms@gnu.org>
18762
18763 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18764 return HANDLED_RETURN.
18765
18766 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18767
18768 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18769 when there's an unread command event.
18770
18771 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18772 window autoselection act appropriately when leaving selected frame.
18773 (syms_of_frame): Initialize focus_follows_mouse.
18774 * frame.h (focus_follows_mouse): Extern it.
18775 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18776 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18777 * msdos.c (dos_rawgetc): Likewise.
18778 * w32term.c (w32_read_socket): Likewise.
18779 * xterm.c (handle_one_xevent): Likewise.
18780 * xdisp.c (syms_of_xdisp): In doc-string of
18781 mouse-autoselect-window mention focus-follows-mouse.
18782
18783 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18784
18785 * macterm.c (mac_load_query_font): Fix missing return value.
18786 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18787 Add BLOCK_INPUT.
18788
18789 2007-10-08 Richard Stallman <rms@gnu.org>
18790
18791 * xdisp.c (get_window_cursor_type): Implement documented behavior
18792 for cursor-in-non-selected-windows = t.
18793
18794 2007-10-08 Jason Rumney <jasonr@gnu.org>
18795
18796 * w32.c (w32_get_resource): Always close registry keys.
18797
18798 2007-10-08 Jason Rumney <jasonr@gnu.org>
18799
18800 * makefile.w32-in (LIBS): Add COMCTL32.
18801
18802 * w32fns.c (globals_of_w32fns): Init common controls.
18803
18804 2007-10-08 Richard Stallman <rms@gnu.org>
18805
18806 * image.c (our_memory_buffer): Rename from omfib_buffer.
18807
18808 2007-10-08 Richard Stallman <rms@gnu.org>
18809
18810 * buffer.c (Foverlays_at): Doc fix.
18811
18812 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18813
18814 * fns.c (Fplist_put): Preserve uneven tail data.
18815
18816 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18817
18818 * termhooks.h (enum event_kind): Remove trailing comma.
18819
18820 * frame.h (enum): Remove trailing comma.
18821
18822 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18823
18824 * w32proc.c (delete_child): Don't terminate threads of zombies.
18825
18826 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18827
18828 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18829
18830 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18831 last-repeatable-command.
18832 (init_kboard): Initialize Vlast_repeatable_command.
18833 (command_loop_1): Set it to real_this_command unless that was
18834 bound to an input event.
18835 (mark_kboards): Mark it.
18836
18837 2007-10-08 Richard Stallman <rms@gnu.org>
18838
18839 * eval.c (condition-case): Doc fix.
18840
18841 2007-10-08 Masatake YAMATO <jet@gyve.org>
18842
18843 * xfaces.c (tty_supports_face_attributes_p): Fix code
18844 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18845 was copied and not edited.
18846
18847 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18848
18849 Add new `input-decode-map' keymap and use it for terminal
18850 escape sequences.
18851 * keyboard.h (struct kboard): Add Vinput_decode_map.
18852 Remove Vlocal_key_translation_map.
18853 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18854 (init_kboard): Init input-decode-map.
18855 Replace local-key-translation-map back with key-translation-map.
18856 (syms_of_keyboard): Declare input-decode-map.
18857 Remove local-key-translation-map. Update docstrings.
18858 (mark_kboards): Mark Vinput_decode_map.
18859 Don't mark Vlocal_key_translation_map.
18860 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18861 Replace local-key-translation-map back with key-translation-map.
18862 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18863 Bind in input-decode-map rather than function-key-map.
18864
18865 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18866 This was made redundant by the previous introduction of XSETPVECTYPE.
18867
18868 2007-10-09 Richard Stallman <rms@gnu.org>
18869
18870 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18871
18872 2007-09-29 Richard Stallman <rms@gnu.org>
18873
18874 * eval.c (internal_condition_case_2, internal_condition_case_1)
18875 (internal_condition_case): Reenable abort if x_catching_errors ()
18876 to see if that really happens and why.
18877
18878 2007-10-06 Andreas Schwab <schwab@suse.de>
18879
18880 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18881
18882 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
18883
18884 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18885
18886 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18887
18888 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18889
18890 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18891
18892 * window.h (struct window):
18893 * window.c (struct save_window_data, struct saved_window):
18894 * termhooks.h (struct terminal):
18895 * process.h (struct Lisp_Process):
18896 * frame.h (struct frame):
18897 * buffer.h (struct buffer):
18898 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18899 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18900 The size field of (pseudo)vectors is now unsigned.
18901 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18902
18903 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18904 Turn `count' into an integer.
18905
18906 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18907 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18908 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18909 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18910 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18911
18912 * alloc.c (allocate_pseudovector): New fun.
18913 (ALLOCATE_PSEUDOVECTOR): New macro.
18914 (allocate_window, allocate_terminal, allocate_frame)
18915 (allocate_process): Use it.
18916 (mark_vectorlike): New function.
18917 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18918 (mark_terminals): Use it.
18919 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18920 (Fmake_byte_code): Use XSETPVECTYPE.
18921
18922 * frame.c (Fframe_parameters): Minor simplification.
18923
18924 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18925
18926 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18927
18928 * buffer.c (Fget_buffer_create, init_buffer_once):
18929 * lread.c (defsubr):
18930 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18931
18932 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18933 defined differently in the m/*.h files.
18934 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18935 (XSETPVECTYPE): New macro.
18936 (XSETPSEUDOVECTOR): Use it.
18937
18938 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18939 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18940
18941 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18942 * lread.c (defvar_per_buffer):
18943 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18944
18945 * window.c (candidate_window_p): Only consider as visible frames that
18946 are on the same terminal.
18947
18948 * m/ibms390x.h (MARKBIT): Remove unused macro.
18949
18950 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
18951
18952 * lread.c (Fload): Fix typo in docstring.
18953
18954 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18955
18956 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18957 of a non-zero value can't yield zero.
18958
18959 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18960
18961 * term.c (term_clear_mouse_face, term_mouse_highlight)
18962 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18963
18964 * print.c (safe_debug_print): Use XHASH.
18965
18966 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18967 Lisp elements such as tags.
18968 (XHASH): New macro.
18969 (EQ): Use it.
18970 (SREF, SSET, STRING_COPYIN): Use SDATA.
18971 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18972
18973 * alloc.c (mark_terminal): Remove left-over declaration.
18974 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18975 (allocate_vectorlike): Remove type argument. Adjust callers.
18976 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18977 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18978
18979 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18980 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18981 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18982 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18983 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18984 Use them.
18985
18986 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18987 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18988 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18989
18990 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18991
18992 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18993 loaded by default.
18994
18995 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18996
18997 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18998 on this tty.
18999 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19000
19001 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19002 Update all users.
19003 (handle_one_term_event): Use Gpm_DrawPointer.
19004 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19005 Signal errors instead of returning nil. Always return nil.
19006 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19007 Make it a noop if gpm-mouse was not activated.
19008 (syms_of_term): Update names.
19009
19010 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19011
19012 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19013 (init_sys_modes): Check that gpm_tty is the current tty.
19014
19015 * alloc.c (allocate_terminal): Set the vector size to only count the
19016 lisp fields. Initialize those to nil.
19017 (mark_object): Don't treat terminals specially.
19018 (mark_terminal): Remove.
19019 (mark_terminals): Use mark_object instead.
19020
19021 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19022 the GC to the beginning.
19023
19024 * indent.h:
19025 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19026
19027 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19028
19029 2007-09-25 Jason Rumney <jasonr@gnu.org>
19030
19031 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19032
19033 * w32console.c (create_w32cons_output): Remove.
19034
19035 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19036
19037 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19038 (reset_sys_modes): Use reset_terminal_modes_hook.
19039
19040 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19041
19042 * eval.c (do_autoload): Don't output any message.
19043
19044 2007-09-24 Juri Linkov <juri@jurta.org>
19045
19046 * emacs.c (standard_args): Change priority of "--no-splash"
19047 from 40 to 3. Add "--no-desktop" with the same priority.
19048
19049 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19050
19051 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19052 and optimize the case where they are all 1.
19053
19054 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
19055
19056 * lisp.h (abs): Define if not defined.
19057 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19058 Don't define `abs', since it's defined in lisp.h.
19059
19060 2007-09-22 Eli Zaretskii <eliz@gnu.org>
19061
19062 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19063 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19064 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19065 (init_tty): Use DEV_TTY instead of "/dev/tty".
19066 [WINDOWSNT]: No need to protect from NAME arg being null.
19067
19068 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19069
19070 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19071 up the tty state.
19072
19073 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19074
19075 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19076 (gpm_tty): Change its type.
19077 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19078 (gpm_tty): Change its type and initialize it.
19079 (Fterm_open_connection): Check the frame is indeed a tty.
19080 Use the new gpm_tty.
19081 (Fterm_close_connection): Use the new gpm_tty.
19082 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19083 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19084
19085 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
19086
19087 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19088 underline_color, to draw strike-through.
19089
19090 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19091
19092 * lisp.h (allocate_terminal): Declare.
19093
19094 * window.c (candidate_window_p): Consider frames that are being placed
19095 by the user as somewhere between visible and iconified.
19096 (window_loop): Prefer windows on the current frame.
19097 (Fselect_window): Move the use of select-frame to the beginning so we
19098 can just delegate all the work (it'll call us back anyway).
19099
19100 * frame.c (Qdisplay_environment_variable):
19101 * frame.h (Qdisplay_environment_variable): Delete.
19102
19103 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19104 of the first arg, since that value may be a union.
19105
19106 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19107 parameter rather than Qdisplay_environment_variable. If all else
19108 fails, look for DISPLAY in initial-environment.
19109
19110 2007-09-21 Glenn Morris <rgm@gnu.org>
19111
19112 * Makefile.in (emacstool): Remove target.
19113 (lisp, shortlisp): Remove termdev.elc.
19114
19115 2007-09-21 Markus Triska <markus.triska@gmx.at>
19116
19117 * xterm.c (x_delete_display): Compile session management conditionally.
19118
19119 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19120
19121 * callproc.c (getenv_internal_1): New function.
19122 (getenv_internal): Use it.
19123 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19124
19125 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19126 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19127 (Fset_terminal_parameter): Work with dead terminals as well.
19128 (Fmodify_terminal_parameters): Remove.
19129
19130 * terminal.c (get_terminal): Handle terminals.
19131 Make sure the terminal returned is live.
19132 (create_terminal): Use allocate_terminal.
19133 (mark_terminals): Move to alloc.c.
19134 (delete_terminal): Use terminal->name as liveness status.
19135 NULL out fields after freeing their contents.
19136 Don't deallocate the object.
19137 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19138 rather than an int.
19139 (Fterminal_live_p): Accept non-integer arguments.
19140 (Fterminal_list): Return terminal objects rather than an ints.
19141
19142 * alloc.c (enum mem_type): New member for `terminal' objects.
19143 (allocate_terminal): New function.
19144 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19145 Handle terminals.
19146 (mark_terminal): New fun.
19147 (mark_terminals): Move from terminal.c.
19148
19149 * term.c (get_tty_terminal): Don't treat output_initial specially.
19150 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19151 (delete_tty): Use terminal->name as liveness status.
19152
19153 * termhooks.h (struct terminal): Make it into a pseudovector.
19154 Remove `deleted' replaced by checking `name's nullness.
19155
19156 * print.c (print_object): Handle terminals.
19157
19158 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19159 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19160
19161 * frame.c (make_terminal_frame):
19162 * keyboard.c (tty_read_avail_input):
19163 * w32term.c (x_delete_terminal):
19164 * xfns.c (Fx_create_frame, x_create_tip_frame):
19165 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19166
19167 2007-09-20 Glenn Morris <rgm@gnu.org>
19168
19169 * process.c (Fmake_network_process): Doc fix.
19170
19171 2007-09-19 Jason Rumney <jasonr@gnu.org>
19172
19173 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19174
19175 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19176
19177 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19178 Fix a C warning regarding variable constness.
19179
19180 * xterm.c (handle_one_xevent): Fix a C warning.
19181
19182 2007-09-18 Jason Rumney <jasonr@gnu.org>
19183
19184 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19185
19186 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19187
19188 * gtkutil.c (gdpy_def): New variable.
19189 (xg_initialize): Initialize gdpy_def.
19190 (xg_display_close): If no other display exists, set gdpy_def to a
19191 new connection.
19192
19193 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19194
19195 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19196 when we have no file name for the icon.
19197 (xg_tool_bar_expose_callback): Remove.
19198 (xg_create_tool_bar): Don't connect expose signal to
19199 xg_tool_bar_expose_callback.
19200 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19201
19202 2007-09-16 Andreas Schwab <schwab@suse.de>
19203
19204 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19205 values instead of zapping them.
19206
19207 2007-09-14 Glenn Morris <rgm@gnu.org>
19208
19209 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19210 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19211 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19212 scope and rename to omfib_buffer for clarity.
19213 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19214
19215 2007-09-14 Kenichi Handa <handa@m17n.org>
19216
19217 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19218
19219 2007-09-13 Jason Rumney <jasonr@gnu.org>
19220
19221 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19222
19223 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19224
19225 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19226 (mac_term_init): Call here instead, passing rif.
19227
19228 2007-09-13 Glenn Morris <rgm@gnu.org>
19229
19230 * s/hpux.h: No longer define `static' as nothing.
19231
19232 2007-09-13 Johan Bockgård <bojohan@gnu.org>
19233
19234 * callint.c (Fcall_interactively): Remove unused var `fun'.
19235
19236 2007-09-12 Romain Francoise <romain@orebokech.com>
19237
19238 * window.c (prefer_window_split_horizontally, display_buffer):
19239 Revert 2007-09-08 change.
19240
19241 2007-09-12 Glenn Morris <rgm@gnu.org>
19242
19243 * alloca.c: Remove file.
19244 * Makefile.in (alloca): Do not undef.
19245 (allocaobj, alloca.o): Remove.
19246 (otherobj): Remove allocaobj.
19247 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19248 * regex.c (C_ALLOCA): Remove all references and code that was only
19249 used when this was defined.
19250 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19251 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19252 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19253
19254 * Makefile.in (SOURCES, unlock, relock): Delete.
19255
19256 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19257 (menu_grab_callback): All uses changed.
19258
19259 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19260 (x_reply_selection_request): All uses changed.
19261
19262 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19263
19264 * lread.c (load_warn_old_style_backquotes): Change message to look
19265 better when it appears in the middle of byte-compiler messages.
19266
19267 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19268
19269 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19270
19271 * xterm.c (x_create_terminal): Add comment.
19272
19273 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19274
19275 2007-09-10 Richard Stallman <rms@gnu.org>
19276
19277 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19278
19279 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19280
19281 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19282 (DEFUN): Document `intspec', use it instead of `prompt'.
19283
19284 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19285
19286 * data.c (Finteractive_form): If the interactive specification starts
19287 with a `(', use it as a Lisp form.
19288
19289 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19290 name and file modes.
19291
19292 * callint.c (Fcall_interactively): Comment fixes.
19293
19294 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19295
19296 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19297 and compiled functions.
19298
19299 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19300
19301 * window.c (prefer_window_split_horizontally): New variable.
19302 (display_buffer): Consider splitting window horizontally depending
19303 on prefer_window_split_horizontally.
19304
19305 2007-09-08 Eli Zaretskii <eliz@gnu.org>
19306
19307 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19308
19309 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19310
19311 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19312
19313 * frame.c (x_set_frame_parameters): Check number is positive before
19314 using XFASTINT.
19315
19316 * window.c (freeze_window_start): Don't presume selected_window holds
19317 a window object.
19318 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19319
19320 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19321
19322 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19323
19324 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19325
19326 * window.c (Vsplit_window_preferred_function): New var.
19327 (Fdisplay_buffer): Use it.
19328 (syms_of_window): Export, and initialize it.
19329
19330 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19331
19332 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19333
19334 2007-09-06 Glenn Morris <rgm@gnu.org>
19335
19336 * gtkutil.c (menu_grab_callback) <cnt>:
19337 * xselect.c (x_reply_selection_request) <cnt>: Move static
19338 variable to file scope.
19339
19340 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19341
19342 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19343 consistent values of selected_frame and selected_window.
19344
19345 2007-09-04 Jason Rumney <jasonr@gnu.org>
19346
19347 * w32console.c (initialize_w32_display): Zero unused hooks.
19348
19349 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19350
19351 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19352 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19353
19354 2007-09-04 Jason Rumney <jasonr@gnu.org>
19355
19356 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19357 in w32console.c. Set up input. Remove XXX comments that have been
19358 confirmed as correct.
19359
19360 * s/ms-w32.h (MULTI_KBOARD): Define.
19361
19362 * w32console.c (one_and_only_w32cons): Remove.
19363 (initialize_w32_display): Take terminal argument.
19364
19365 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19366 initialize_w32_display.
19367 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19368
19369 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19370
19371 * keyboard.c (discard_mouse_events): Discard it.
19372 (make_lispy_event): Translate it to a lisp event.
19373 (lispy_wheel_names): Add wheel-left and right events.
19374 (syms_of_keyboard): Enlarge wheel_syms.
19375
19376 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19377 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19378
19379 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19380
19381 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19382 from WM_MOUSEHWHEEL.
19383 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19384
19385 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19386 terminal.
19387
19388 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19389 keyboard for the terminal.
19390
19391 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19392
19393 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19394 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19395 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19396 and resume-tty-function to resume-tty-hook.
19397 (Fsuspend_tty, Fresume_tty): Use new names.
19398
19399 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19400
19401 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19402 if it starts with "n:".
19403
19404 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19405
19406 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19407
19408 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19409
19410 * frame.h:
19411 * frame.c (Qterm_environment_variable): Remove.
19412 (syms_of_frame): Don't init and staticpro it.
19413
19414 * callproc.c (getenv_internal): Remove special case for $TERM.
19415
19416 * callproc.c (Vinitial_environment): New variable.
19417 (set_initial_environment): Initialize it.
19418 (syms_of_callproc): Declare it.
19419 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19420 TERM under which a process runs is never related to the TERM in which
19421 Emacs is running.
19422
19423 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19424
19425 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19426 * s/darwin.h: ... do it here.
19427
19428 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19429
19430 * lisp.h (set_initial_environment): Rename from set_global_environment.
19431
19432 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19433 removed by mistake on the multi-tty branch.
19434
19435 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19436 (Fmodify_frame_parameters): Return a value.
19437
19438 * image.c (png_load): Comment-out var only used in commented-out code.
19439
19440 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19441 before passing it to mark_object.
19442
19443 * xfaces.c (internal_resolve_face_name): Return a value.
19444 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19445
19446 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19447 (x_icon): Comment-out var only used in commented-out code.
19448
19449 2007-08-29 Romain Francoise <romain@orebokech.com>
19450
19451 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19452 QUIT hasn't been provided.
19453
19454 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19455
19456 * callproc.c (child_setup, getenv_internal): Use the
19457 display-environment-variable and term-environment-variable frame params.
19458 (set_initial_environment): Initialise Vprocess_environment.
19459
19460 * config.in: Disable multi-keyboard support on a mac.
19461
19462 * frame.c (Qterm_environment_variable)
19463 (Qdisplay_environment_variable): New variables.
19464 (syms_of_frame): Intern and staticpro them.
19465 (Fmake_terminal_frame): Disable output method test.
19466
19467 * frame.h: Declare them here.
19468
19469 * macfns.c (x_set_mouse_color): Get rif from the frame.
19470 (x_set_tool_bar_lines): Don't use updating_frame.
19471 (mac_window): Add 2 new parameters for consistency with other systems.
19472 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19473 frame parameters following what is done in X11 and w32. Don't use
19474 FRAME_MAC_DISPLAY_INFO.
19475 (Fx_open_connection, start_hourglass): Remove window-system check.
19476 (x_create_tip_frame): Get the keyboard from the terminal.
19477
19478 * macmenu.c: Reorder includes.
19479 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19480
19481 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19482 terminal parameter.
19483 (x_clear_frame): Add a frame parameter.
19484 (note_mouse_movement): Get rif from the frame.
19485 (mac_term_init): Initialize the terminal.
19486 (mac_initialize): Make static and move terminal initialization ...
19487 (mac_create_terminal): ... to this new function.
19488
19489 * macterm.h (struct mac_display_info): Add terminal.
19490 (mac_initialize): Delete declaration.
19491
19492 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19493
19494 * sysdep.c: Comment out text after #endif.
19495
19496 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19497 is defined. Better initialize ttys in windows. Use terminal
19498 specific mouse_position_hook.
19499
19500 * termhooks.h (union display_info): Add mac_display_info.
19501
19502 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19503 Set the default minibuffer frame, window_system and the rest of the
19504 frame parameters following what is done in X11.
19505
19506 * w32term.c (w32_initialize): Make static.
19507
19508 * xselect.c (x_handle_selection_clear): Only access
19509 terminal->kboard when MULTI_KBOARD is defined.
19510
19511 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19512 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19513
19514 2007-08-29 Jason Rumney <jasonr@gnu.org>
19515
19516 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19517 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19518
19519 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19520 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19521
19522 * keyboard.c (restore_kboard_configuration): Only define when
19523 MULTI_KBOARD defined.
19524
19525 * makefile.w32-in: Update dependancies from Makefile.in.
19526 (OBJ1): Add terminal.$(O)
19527
19528 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19529 Don't define function body.
19530 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19531
19532 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19533
19534 * w32.c (request_sigio, unrequest_sigio): Remove.
19535
19536 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19537 (w32con_clear_frame, w32con_clear_end_of_line)
19538 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19539 (w32con_delete_glyphs, w32con_set_terminal_window)
19540 (scroll_line, w32_sys_ring_bell): Add frame arg.
19541 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19542 Add terminal arg.
19543 (PICK_FRAME): Remove.
19544 (w32con_write_glyphs): Use frame specific terminal coding.
19545 (one_and_only_w32cons): New global variable.
19546 (initialize_w32_display): Use it for storing hooks.
19547 (create_w32cons_output): New function.
19548
19549 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19550 arg a frame.
19551
19552 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19553 Set window_system.
19554 (x_set_tool_bar_lines): Don't use updating_frame.
19555 (Fx_create_frame): Set terminal and ref count.
19556 (Fx_open_connection): Remove window-system check.
19557
19558 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19559
19560 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19561 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19562 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19563 Add frame arg.
19564 (x_delete_terminal, w32_create_terminal): New functions.
19565 (w32_term_init): Create a terminal.
19566 (w32_initialize): Move terminal specific initialization to
19567 w32_create_terminal.
19568
19569 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19570 (w32_clear_rect, w32_clear_area): Use background from frame.
19571 (w32_display_info): Add terminal.
19572 (w32_sys_ring_bell, x_delete_display): Declare here.
19573
19574 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19575
19576 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19577
19578 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19579
19580 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19581 Fix get_named_tty calls for the controlling tty.
19582
19583 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19584
19585 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19586
19587 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19588
19589 * term.c (tty_insert_glyphs): Add missing first parameter.
19590
19591 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19592
19593 * buffer.c (Fbuffer_list, Fbury_buffer):
19594 Take frame->buried_buffer_list into account.
19595
19596 * cm.c (current_tty): New variable, for cmputc().
19597 (cmputc): Use it.
19598 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19599 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19600 (cmgoto): Add tty parameter. Pass it on to calccost().
19601 Use emacs_tputs() instead of tputs().
19602
19603 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19604 tputs().
19605 (current_tty): New variable, for cmputc().
19606 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19607
19608 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19609 (internal_condition_case, internal_condition_case_1)
19610 (internal_condition_case_2): Don't abort when x_catching_errors.
19611
19612 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19613 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19614 prevent crashes caused by bogus longjmps in read_char.
19615
19616 * keymap.h (Fset_keymap_parent): Add EXFUN.
19617
19618 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19619 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19620 Remove redundant definition.
19621
19622 * macfns.c (x_set_mouse_color, x_make_gc):
19623 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19624
19625 * w32term.c (x_free_frame_resources):
19626 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19627 (w32_initialize): Use the accessor macros for terminal characteristics.
19628
19629 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19630 Use the accessor macros for terminal characteristics.
19631 * msdos.c (internal_terminal_init): Use the accessor macros for
19632 terminal characteristics.
19633 (ScreenVisualBell, internal_terminal_init):
19634 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19635
19636 * termopts.h (no_redraw_on_reenter): Declare.
19637
19638 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19639 (mark_terminals, mark_ttys): Declare.
19640 (Fgarbage_collect): Call them.
19641 (mark_object): Mark buried_buffer_list.
19642
19643 * prefix-args.c: Include stdlib.h for exit.
19644
19645 * syssignal.h: Add comment.
19646
19647 * indent.c: Include stdio.h.
19648
19649 * window.h (Vinitial_window_system): Declare.
19650 (Vwindow_system): Delete declaration.
19651
19652 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19653
19654 * image.c (lookup_image): Don't initialize `c' until the xasserts
19655 have been run.
19656
19657 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19658 FRAME_FOREGROUND_PIXEL.
19659
19660 * print.c (print_preprocess): Don't lose print_depth levels while
19661 iterating.
19662
19663 * widget.c (update_from_various_frame_slots):
19664 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19665
19666 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19667 frames.
19668 (window_internal_height): Remove bogus make_number call.
19669 (init_window_once): Call make_terminal_frame with two zero parameters.
19670
19671 * fileio.c (Fread_file_name): Update comment.
19672
19673 * callint.c (Fcall_interactively):
19674 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19675 Make sure it is correctly unwound.
19676
19677 * xsmfns.c (x_session_close): New function.
19678
19679 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19680 Delete declarations.
19681
19682 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19683 (x_output): Remove background_pixel and foreground_pixel fields.
19684 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19685 (x_delete_device, x_session_close): Declare.
19686
19687 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19688 (read_filtered_event): Call `read_char' with a local
19689 `wrong_kboard_jmpbuf'.
19690
19691 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19692 Don't call single_kboard_state. Use FRAME_RIF.
19693
19694 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19695 systems.
19696
19697 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19698 (Fframe_with_environment, Fset_input_meta_mode)
19699 (Fset_quit_char): EXFUN.
19700 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19701 (init_sys_modes, reset_sys_modes): Update prototypes.
19702 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19703
19704 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19705 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19706 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19707 Delete declarations.
19708 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19709 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19710 New declarations.
19711
19712 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19713 already does that during init_display(). Call syms_of_keymap
19714 before syms_of_keyboard. Call `syms_of_terminal'.
19715 Call set_initial_environment, not set_process_environment.
19716 (shut_down_emacs): Call reset_all_sys_modes() instead of
19717 reset_sys_modes().
19718
19719 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19720 (internal_resolve_face_name, resolve_face_name_error): New functions.
19721 (resolve_face_name): Protect against loops and errors thrown by Fget.
19722 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19723 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19724
19725 * scroll.c: Replace CURTTY() with local variables throughout the
19726 file (where applicable).
19727 (calculate_scrolling, calculate_direct_scrolling)
19728 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19729 characteristics.
19730
19731 * keymap.c (Vfunction_key_map): Remove.
19732 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19733 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19734 (Vkey_translation_map): Remove.
19735 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19736 (Fdescribe_buffer_bindings)
19737 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19738 Update for terminal-local key-translation-map.
19739
19740 * Makefile.in (callproc.o): Update dependencies.
19741 (lisp, shortlisp): Add termdev.elc.
19742 (obj): Add terminal.o.
19743 (terminal.o): Add dependencies.
19744 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19745 (data.o, fns.o): Add termhooks.h dependency.
19746 (SOME_MACHINE_LISP): Add dnd.elc.
19747 (minibuf.o): Fix typo.
19748 Update dependencies.
19749
19750 * data.c (do_symval_forwarding, store_symval_forwarding)
19751 (find_symbol_value): Use the selected frame's keyboard, not
19752 current_kboard.
19753
19754 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19755 Vwindow_system.
19756
19757 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19758 Fmenu_bar_open.
19759 (syms_of_xmenu): Update defsubr.
19760 (mouse_position_for_popup, Fx_popup_menu)
19761 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19762 (set_frame_menubar, free_frame_menubar)
19763 (create_and_show_popup_menu, xmenu_show)
19764 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19765 an X frame.
19766
19767 * xselect.c (x_own_selection): Abort if not an X frame.
19768 (some_frame_on_display): Check if it is an X frame.
19769 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19770
19771 * coding.c: Include frame.h and termhooks.h.
19772 (terminal_coding, keyboard_coding): Delete.
19773 (Fset_terminal_coding_system_internal)
19774 (Fset_keyboard_coding_system_internal)
19775 (Fkeyboard_coding_system)
19776 (Fterminal_coding_system): Add a terminal parameter.
19777 Get terminal_coding from the terminal.
19778 (init_coding_once): Don't call setup_coding_system here.
19779
19780 * dispextern.h (set_scroll_region, turn_off_insert)
19781 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19782 (tty_clear_end_of_line, tty_setup_colors)
19783 (delete_tty, updating_frame)
19784 (produce_special_glyphs, produce_glyphs, write_glyphs)
19785 (insert_glyphs): Remove.
19786 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19787 (tty_turn_off_highlight, get_tty_size): Add declaration.
19788 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19789
19790 * frame.h (enum output_method): Add output_initial.
19791 (struct x_output): Delete.
19792 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19793 Access foreground_pixel and background_pixel directly from the frame.
19794 (tty_display): Delete.
19795 (struct frame): Add buried_buffer_list, foreground_pixel,
19796 background_pixel and terminal. Delete kboard.
19797 (union output_data): Add tty.
19798 (FRAME_KBOARD): Get the kboard from the terminal.
19799 (FRAME_INITIAL_P): New macro.
19800 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19801 (Qterm_environment_variable, Qdisplay_environment_variable)
19802 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19803 New declarations.
19804
19805 * termchar.h (tty_output, tty_display_info): New structures.
19806 (tty_list): Declare.
19807 (FRAME_TTY, CURTTY): New macros.
19808 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19809 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19810 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19811 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19812
19813 * callproc.c: Include frame.h and termhooks.h, for terminal
19814 parameters.
19815 (add_env): New function.
19816 (child_setup): Use it.
19817 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19818 (getenv_internal): Fix get_terminal_param call.
19819 (Fgetenv_internal, egetenv): Update doc.
19820 (syms_of_callproc): Initialize Vprocess_environment to nil.
19821 Register and initialize them. Remove obsolete defvars. Update doc
19822 strings.
19823 (child_setup): Handle Vlocal_environment_variables.
19824 (getenv_internal): Add terminal parameter.
19825 Handle Vlocal_environment_variables.
19826 (Fgetenv_internal): Add terminal parameter.
19827 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19828 environment in a frame (not terminal) parameter. Update doc strings.
19829 (set_initial_environment): Rename from set_global_environment.
19830 Store Emacs environment in initial frame parameter.
19831
19832 * xdisp.c (redisplay_internal): Update references to
19833 `previous_terminal_frame'.
19834 (display_mode_line, Fformat_mode_line): Replace calls to
19835 `push_frame_kboard' with `push_kboard'.
19836 (get_glyph_string_clip_rects): Add extra parentheses and
19837 braces to prevent compiler warnings.
19838 (calc_pixel_width_or_height): Add xassert to check that the
19839 frame is alive. Don't call `lookup_image' on a termcap frame.
19840 (message2_nolog, message3_nolog, redisplay_internal)
19841 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19842 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19843 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19844 (Fx_display_pixel_width, Fx_display_pixel_height)
19845 (Fx_display_planes, Fx_display_color_cells)
19846 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19847 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19848 (Fx_display_backing_store, Fx_display_visual_class)
19849 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19850 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19851
19852 * xfns.c (x_set_foreground_color x_set_background_color)
19853 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19854 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19855 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19856 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19857 terminal that is being deleted.
19858 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19859 frame parameter, and make sure it overrides any user-supplied setting.
19860 (Fx_close_connection, Fx_synchronize): Unify argument names with
19861 the rest of the DEFUNs.
19862
19863 * dispnew.c (Fsend_string_to_terminal): Update call to
19864 `get_tty_terminal'.
19865 (Fredraw_frame, Fsend_string_to_terminal)
19866 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19867 FRAME_TERMCAP_P and FRAME_TTY.
19868 (window_change_signal): Don't believe width/height values that are
19869 impossibly small.
19870 (Vinitial_window_system): Rename from Vwindow_system.
19871 (termscript, Wcm, rif): Delete.
19872
19873 * termhooks.h (struct terminal): New struct containing the
19874 previously global text display hooks and new members NAME,
19875 DELETED and PARAM_ALIST.
19876 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19877 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19878 (FRAME_RIF): New macros.
19879 (get_terminal_param, get_device): New declarations.
19880 (termscript): Delete declaration.
19881
19882 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19883 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19884 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19885 FRAME_FOREGROUND_PIXEL.
19886 (x_fully_uncatch_errors): Disable definition.
19887 (x_scroll_bar_expose): Fix reference to foreground pixel.
19888 (XTread_socket): Disable loop on all X displays.
19889 (x_delete_terminal): Don't set terminal->deleted and let
19890 delete_terminal delete the frames on the terminal.
19891 (x_delete_display): Doc update to reflect changes in
19892 delete_terminal.
19893 (x_display_info) <terminal>: Move member earlier in the struct.
19894 (deleting_tty): Remove old variable.
19895 (Fsuspend_tty): Call clear_tty_hooks.
19896 (Fresume_tty, init_tty): Call set_tty_hooks.
19897 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19898 errors on X frames.
19899 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19900 (handle_one_xevent): Initialize `f' to NULL.
19901 (x_delete_terminal, x_create_terminal): New functions.
19902 (XTset_terminal_modes, XTreset_terminal_modes)
19903 (XTread_socket, x_connection_closed, x_term_init)
19904 (x_term_init, x_delete_display): Add terminal parameter.
19905 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19906 X connections.
19907
19908 * frame.c: Include termchar.h.
19909 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19910 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19911 (Qdisplay_environment_variable): New vars.
19912 (Fframep): Deal with output_initial.
19913 (Fframe-live-p): Doc fix.
19914 (Fwindow-system): New function.
19915 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19916 (make_terminal_frame): Don't create frames on a terminal that is
19917 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19918 (store_frame_param): Check for found_for_frame before calling XFRAME.
19919 (Fmake_terminal_frame): Handle NULL tty names correctly.
19920 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19921 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19922 frames to refer to a deleted frame in their 'environment parameter.
19923 (Fframe_with_environment): New function.
19924 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19925 (get_future_frame_param): New function.
19926 (Fmake_terminal_frame): Use it.
19927 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19928
19929 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19930 * sysdep.c (reset_sys_modes): Update for renames.
19931
19932 * keyboard.c (tty_read_avail_input): New function.
19933 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19934 (syms_of_keyboard): Defsubr them.
19935 (Fset_input_meta_mode, Fset_quit_char): New functions.
19936 (Fset_input_mode): Split to above functions.
19937 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19938 parameter. Use it in call to `read_char'.
19939 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19940 Set wrong_kboard_jmpbuf correctly in recursive calls.
19941 Use current_kboard to access Vkeyboard_translate_table.
19942 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19943 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19944 Update longjmp invocations. Remember the original current_kboard,
19945 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19946 changes it. Comment out unnecessary calls to
19947 `record_single_kboard_state' and `any_kboard_state'.
19948 Update recursive calls.
19949 (wrong_kboard_jmpbuf): Remove global variable.
19950 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19951 Handle deleted interrupted_kboards correctly; that is a legal
19952 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19953 and read_char calls. Abort if interrupted_kboard died in read_char.
19954 (any_kboard_state, single_kboard_state)
19955 (push_frame_kboard): Remove function.
19956 (pop_kboard): Switch out of single_kboard mode if the kboard has
19957 been deleted. Remove unused variable. Help debugging by not
19958 changing current_kboard unnecessarily. Set current_kboard to the
19959 kboard of the selected frame when the stored kboard object has
19960 been deleted before pop_kboard.
19961 (temporarily_switch_to_single_kboard): Change first parameter to a
19962 frame pointer. Throw an error when caller wants to change kboards
19963 while in single_kboard mode. Don't push_kboard if we weren't in
19964 single kboard state. Don't pop_kboard if we popped into any
19965 kboard state.
19966 (restore_kboard_configuration): Abort if pop_kboard changed the
19967 kboard in single_kboard mode. Call pop_kboard only after setting
19968 up single_kboard mode.
19969 (Frecursive_edit): Switch to single_kboard mode only in nested
19970 command loops.
19971 (cmd_error, command_loop, command_loop_1, timer_check):
19972 Comment out unnecessary call to `any_kboard_state' and
19973 `record_single_kboard_state'.
19974 (delete_kboard): Exit single_kboard mode if we have just deleted
19975 that kboard. Use FRAME_KBOARD.
19976 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19977 `fatal_error_signal'.
19978 (record_single_kboard_state): Don't push_kboard if we weren't in
19979 single kboard state. Don't pop_kboard if we popped into any
19980 kboard state.
19981 (push_frame_kboard): Rename to push_kboard.
19982 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19983 (read_avail_input): Read input from all terminals.
19984 (mark_kboards): Also mark Vkeyboard_translate_table.
19985 (kbd_buffer_store_event_hold): Simplify condition.
19986 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19987 (Vkeyboard_translate_table): Move to struct kboard.
19988 (init_kboard): Initialize Vkeyboard_translate_table.
19989 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19990 Vkeyboard_translate_table. Update doc strings. Update docs of
19991 local-function-key-map and function-key-map.
19992
19993 * terminal.c: New file.
19994
19995 * term.c: Include errno.h.
19996 (Vring_bell_function, device_list, initial_device)
19997 (next_device_id, ring_bell, update_begin, update_end)
19998 (set_terminal_window, cursor_to, raw_cursor_to)
19999 (clear_to_end, clear_frame, clear_end_of_line)
20000 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20001 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20002 (syms_of_term): Move their initialization to terminal.c.
20003 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20004 (Ftty_display_color_cells)
20005 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20006 (clear_tty_hooks, set_tty_hooks)
20007 (init_tty, maybe_fatal): New functions.
20008 (Ftty_type): Return nil if terminal is not on a tty instead of
20009 throwing an error. Doc update.
20010 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20011 Doc update. Initialize new subrs and variables.
20012 (delete_tty): Use terminal->deleted.
20013 (tty_set_terminal_modes): Rename from set_terminal_modes.
20014 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20015 (set_scroll_region): Rename to `tty_set_scroll_region'.
20016 (turn_on_insert): Rename to `tty_turn_on_insert'.
20017 (turn_off_insert): Rename to `tty_turn_off_insert'.
20018 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20019 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20020 (toggle_highligh): Rename to `tty_toggle_highlight'.
20021 (background_highlight): Rename to `tty_background_highlight'.
20022 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20023 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20024 (tty_set_scroll_region, tty_background_highlight)
20025 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20026 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20027 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20028 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20029 Add static modifier.
20030 (tty_reset_terminal_modes, tty_set_terminal_window)
20031 (tty_set_scroll_region, tty_background_highlight)
20032 (tty_highlight_if_desired, tty_cursor_to)
20033 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20034 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20035 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20036 renames.
20037
20038 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20039
20040 * keyboard.c: Qrtl is new.
20041 (parse_tool_bar_item): Handle :rtl keyword.
20042 (syms_of_keyboard): Intern :rtl keyword.
20043
20044 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20045
20046 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20047 so no Lisp code is executed.
20048 (file_for_image, find_rtl_image): New functions.
20049 (xg_get_image_for_pixmap): Use file_for_image.
20050 (update_frame_tool_bar): If direction is RTL, use RTL image if
20051 defined. Use Gtk stock images if defined.
20052
20053 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20054
20055 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20056 for nonexistent or zero-width glyph in composition glyph.
20057
20058 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20059
20060 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20061
20062 * xdisp.c (Finvisible_p): New function.
20063 (syms_of_xdisp): defsubr it.
20064
20065 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
20066
20067 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20068 Doc fixes.
20069
20070 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20071
20072 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20073
20074 2007-08-24 Martin Rudalics <rudalics@gmx.at>
20075
20076 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20077 whether decoding has modified buffer contents.
20078
20079 2007-08-24 Jason Rumney <jasonr@gnu.org>
20080
20081 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20082 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20083 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20084 (init_svg_functions) [HAVE_NTGUI]: New function.
20085 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20086 (svg_load_image): Use them.
20087 (svg_load_image) [HAVE_NTGUI]: Implement background.
20088
20089 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20090
20091 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20092 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20093 (LIBX): Remove @RSVG_LIBS@.
20094 (LIBES): Add $(RSVG_LIBS).
20095
20096 * image.c (svg_load_image): Blend with specified background if exists.
20097 Use IMAGE_BACKGROUND. Add Mac OS Support.
20098
20099 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20100 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20101 Remove macros.
20102 [MAC_OSX] (socket_callback): Do nothing.
20103 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20104 ReceiveNextEvent.
20105 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20106 socket_callback.
20107 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20108
20109 2007-08-22 Glenn Morris <rgm@gnu.org>
20110
20111 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20112
20113 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20114
20115 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20116
20117 * image.c: Add support for SVG images. Some additional comments
20118 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20119 (svg_image_p): New function to test for SVG image.
20120 (svg_load): New function to load SVG image.
20121 (svg_load_image): New function, helper for svg_load.
20122 (Qsvg): New Lisp_object.
20123 (svg_keyword_index): New enum.
20124 (svg_format): New static `image_keyword' struct.
20125 (svg_type): New static `image_type' struct.
20126 (librsvg/rsvg.h): Include it.
20127
20128 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20129
20130 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20131
20132 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20133
20134 * lread.c (Qold_style_backquotes): New var.
20135 (syms_of_lread): Init and staticpro it.
20136 (load_warn_old_style_backquotes): New fun.
20137 (Fload): Use them to warn about old style backquotes.
20138 (end_of_file_error, Fload): Remove unused vars.
20139
20140 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20141
20142 * lread.c (Vold_style_backquotes): New var.
20143 (syms_of_lread): Init and export it to Elisp.
20144 (read1): Set it when we find an old-style (back)quote.
20145
20146 2007-08-22 Jason Rumney <jasonr@gnu.org>
20147
20148 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20149
20150 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20151
20152 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20153
20154 2007-08-19 Richard Stallman <rms@gnu.org>
20155
20156 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20157
20158 2007-08-19 Andreas Schwab <schwab@suse.de>
20159
20160 * alloc.c (pure): Round PURESIZE up.
20161
20162 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20163
20164 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20165 active frame.
20166
20167 2007-08-16 Richard Stallman <rms@gnu.org>
20168
20169 * eval.c (Fcommandp): Add parens to clarify.
20170
20171 * minibuf.c (Fall_completions): Use enum for type of table.
20172
20173 * emacs.c (USAGE2): Improve text.
20174
20175 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20176
20177 * term.c (tty_default_color_capabilities): Declare static
20178 variables in file scope, to avoid HPUX compiler problem.
20179
20180 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20181
20182 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20183 to gtk_toolbar_insert.
20184
20185 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20186
20187 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20188
20189 * insdel.c (reset_var_on_error): New fun.
20190 (signal_before_change, signal_after_change):
20191 Use it to reset (after|before)-change-functions to nil in case of error.
20192 Bind inhibit-modification-hooks to t.
20193 Don't bind (after|before)-change-functions to nil while they run.
20194
20195 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20196
20197 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20198 filling pixmap with stippled background.
20199
20200 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20201
20202 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20203 Don't use invisible frame as parent window for repositioning.
20204
20205 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20206
20207 * print.c (new_backquote_output): Rename from old_backquote_output.
20208 (print): Inverse its logic (according to its name) so as to match the
20209 behavior of new_backquote_flag in lread.c.
20210
20211 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20212
20213 * gmalloc.c (posix_memalign): New function.
20214
20215 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20216 ActivateControl/DeactivateControl here.
20217 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20218 frame-notice-user-settings is non-nil.
20219 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20220 for kEventParamFMFontStyle.
20221 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20222 mac_pass_command_to_system and mac_pass_control_to_system here.
20223 (XTread_socket): Call ActivateControl/DeactivateControl here.
20224 (XTread_socket) [TARGET_API_MAC_CARBON]:
20225 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20226 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20227 for window repositioning.
20228
20229 2007-08-08 Glenn Morris <rgm@gnu.org>
20230
20231 * Replace `iff' in doc-strings and comments.
20232
20233 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
20234
20235 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20236
20237 2007-08-07 Martin Rudalics <rudalics@gmx.at>
20238
20239 * fileio.c (Finsert_file_contents): Run format-decode and
20240 after_insert_file_functions on entire buffer when REPLACE is
20241 non-nil and inhibit modification_hooks and point_motion_hooks.
20242 For consistency, run after_insert_file_functions iff something
20243 got inserted. Move signal_after_change and update_compositions
20244 after code running after_insert_file_functions. Make sure that
20245 undo_list doesn't record intermediate steps of the decoding process.
20246
20247 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20248
20249 * emacs.c (main)
20250 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20251 Call malloc_enable_thread on interactive startup.
20252
20253 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20254 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20255 [USE_PTHREAD]: Conditionalize with it.
20256 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20257 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20258 New functions.
20259
20260 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
20261
20262 * xdisp.c (redisplay_window): When restoring original buffer
20263 position, make sure it is still valid.
20264
20265 * image.c (png_load): Ignore png-supplied background color.
20266
20267 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20268
20269 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20270 Use kCFAbsoluteTimeIntervalSince1970.
20271
20272 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20273 New variable.
20274 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20275 event loop should be quit.
20276 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20277 Quit dialog event loop if quit_dialog_event_loop is set.
20278
20279 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20280 (Selection): New typedef. Use instead of ScrapRef.
20281 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20282 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20283 (mac_clear_selection): Rename from clear_scrap.
20284 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20285 scrap_has_target_type. All uses changed.
20286 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20287 (mac_selection_has_target_p): New functions.
20288 (mac_put_selection_value): Rename from put_scrap_string.
20289 (mac_get_selection_value): Rename from get_scrap_string.
20290 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20291 (put_scrap_private_timestamp, scrap_has_target_type)
20292 (get_scrap_private_timestamp): Remove functions.
20293 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20294 (x_own_selection, x_get_local_selection):
20295 Use mac_valid_selection_value_p.
20296 (x_own_selection): Don't use put_scrap_private_timestamp.
20297 Record OWNERSHIP-INFO into Vselection_alist instead.
20298 (x_get_local_selection): Don't check type if request is local.
20299 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20300 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20301
20302 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20303
20304 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20305 add comment explaining why.
20306
20307 2007-08-03 Richard Stallman <rms@gnu.org>
20308
20309 * fileio.c (Fvisited_file_modtime): Use make_time.
20310
20311 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20312
20313 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20314 build.
20315
20316 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20317
20318 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20319
20320 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20321
20322 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20323
20324 2007-07-30 Richard Stallman <rms@gnu.org>
20325
20326 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20327
20328 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20329
20330 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20331
20332 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
20333
20334 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20335 remote default-directory.
20336
20337 * buffer.c (mode-line-format): Update doc string.
20338
20339 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20340
20341 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20342 scroll bar gap.
20343 (x_scroll_bar_create): Set bar->fringe_extended_p.
20344 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20345 on frame edge. Check fringe background extension. Don't clear
20346 extended fringe background area.
20347
20348 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20349 (w32_fill_area): Enclose multiple statements with do ... while (0).
20350
20351 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20352 Extend fringe background to scroll bar gap.
20353 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20354 Set bar->fringe_extended_p.
20355 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20356 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20357 background extension. Don't clear extended fringe background area.
20358
20359 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20360 New member fringe_extended_p.
20361
20362 2007-07-25 Glenn Morris <rgm@gnu.org>
20363
20364 * Relicense all FSF files to GPLv3 or later.
20365
20366 * COPYING: Switch to GPLv3.
20367
20368 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20369
20370 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20371
20372 * data.c (Finteractive_form): Check for the presence of an
20373 `interactive-form' symbol property more thoroughly.
20374
20375 * data.c (Finteractive_form): Use an `interactive-form' property if
20376 present, analogous to the function-documentation property.
20377
20378 2007-07-24 Jason Rumney <jasonr@gnu.org>
20379
20380 * w32fns.c (x_real_positions): Get real position from OS instead of
20381 calculating it.
20382
20383 2007-07-23 Jason Rumney <jasonr@gnu.org>
20384
20385 * filelock.c (current_lock_owner): Allow for @ sign in username.
20386
20387 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
20388
20389 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20390 remote default-directory.
20391
20392 * buffer.c (mode-line-format): Describe above case in doc string.
20393
20394 2007-07-20 Eli Zaretskii <eliz@gnu.org>
20395
20396 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20397 Define if not defined.
20398
20399 2007-07-18 Jason Rumney <jasonr@gnu.org>
20400
20401 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20402
20403 2007-07-18 Richard Stallman <rms@gnu.org>
20404
20405 * data.c (Fsetq_default): Doc fix.
20406
20407 * eval.c (Fsetq): Doc fix.
20408
20409 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
20410
20411 * coding.c (Ffind_operation_coding_system):
20412 * eval.c (For, Fand): Doc fixes.
20413 Reported by Johan Bockgård.
20414
20415 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20416
20417 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20418
20419 * xterm.h: Declare x_ewmh_activate_frame.
20420
20421 * xterm.c (x_ewmh_activate_frame): New function.
20422 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20423
20424 2007-07-17 Martin Rudalics <rudalics@gmx.at>
20425
20426 * window.c (Fdisplay_buffer): If largest or LRU window is the
20427 only window, split it even if it is not eligible for splitting.
20428 This restores the original behavior broken by the 2007-07-15
20429 change.
20430
20431 2007-07-17 Glenn Morris <rgm@gnu.org>
20432
20433 * abbrev.c (abbrev_check_chars): New function.
20434 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20435 Call abbrev_check_chars to check abbrev characters are word
20436 constituents. Doc fix.
20437
20438 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20439
20440 * process.c (Fstart_process, Fmake_network_process)
20441 (read_process_output): Fix up last changes.
20442
20443 2007-07-16 Eli Zaretskii <eliz@gnu.org>
20444
20445 * makefile.w32-in (clean): Don't delete *~.
20446
20447 2007-07-16 Andreas Schwab <schwab@suse.de>
20448
20449 * window.c (Fdisplay_buffer): Use NILP.
20450 (Fset_window_scroll_bars): Likewise.
20451
20452 2007-07-15 Martin Rudalics <rudalics@gmx.at>
20453
20454 * window.c (window_min_size_2): New function.
20455 (window_min_size_1, size_window, Fdisplay_buffer)
20456 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20457 windows without mode- or header-lines when window-min-height is
20458 too small.
20459 (size_window): Reset nodelete_p after testing it, following an
20460 earlier note by Kim F. Storm.
20461 (display_buffer): Do not set split_height_threshold to twice the
20462 value of window_min_height to avoid changing the value of a
20463 customizable variable. Rather explicitly check whether the
20464 height of the window that shall be splitted is at least as large
20465 as split_height_threshold.
20466 (Fwindow_full_width_p): New defun.
20467 (syms_of_window): Defsubr it.
20468
20469 * window.h: Add EXFUN for Fwindow_full_width_p.
20470
20471 2007-07-14 Jason Rumney <jasonr@gnu.org>
20472
20473 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20474
20475 2007-07-14 Richard Stallman <rms@gnu.org>
20476
20477 * eval.c (maybe_call_debugger): New function.
20478 (find_handler_clause): Use maybe_call_debugger.
20479 Call it when the handler says `debug'.
20480 Eliminate DEBUGGER_VALUE_PTR.
20481 (Fsignal): Eliminate debugger_value.
20482 (Qdebug): New variable.
20483 (syms_of_eval): Initialize it.
20484
20485 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
20486
20487 * eval.c (Fprogn):
20488 * keyboard.c (Ftrack_mouse):
20489 * print.c (Fwith_output_to_temp_buffer):
20490 * window.c (Fsave_window_excursion): Doc fix.
20491
20492 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20493
20494 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20495
20496 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20497
20498 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20499 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20500 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20501 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20502 Remove unused encoding_carryover.
20503 * process.c: Adjust all functions accordingly.
20504
20505 2007-07-12 Richard Stallman <rms@gnu.org>
20506
20507 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20508
20509 2007-07-11 Jason Rumney <jasonr@gnu.org>
20510
20511 * makefile.w32-in (LIBS): Include OLE32.
20512
20513 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20514 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20515
20516 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20517
20518 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20519 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20520 from a Lisp_Object into a bare pointer.
20521 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20522 Adjust the code correspondingly.
20523
20524 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20525
20526 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20527 (term_show_mouse_face): Remove unused var `j'.
20528 (handle_one_term_event): Remove unused vars `i' and `j'.
20529 Don't cast return value of ttyname since it's not necessary.
20530
20531 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20532
20533 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20534 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20535
20536 * fns.c (map_char_table): Use an array of int for `indices' rather than
20537 an array of Lisp_Objects (which are only ever integers anyway).
20538 (Fmap_char_table): Update caller.
20539 * lisp.h: Update prototype.
20540 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20541 * fontset.c (Ffontset_info):
20542 * casetab.c (set_case_table): Update callers.
20543
20544 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20545
20546 * keymap.c (struct accessible_keymaps_data)
20547 (struct where_is_internal_data): New structures.
20548 (accessible_keymaps_1, where_is_internal_1): Use them to change
20549 interface to adhere to the one used by map_keymap.
20550 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20551 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20552
20553 * keymap.h (map_keymap_function_t): More informative prototype.
20554
20555 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20556
20557 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20558 (looking_at_1): Don't change search_regs and last_thing_searched
20559 if `inhibit-changing-match-data' is non-nil.
20560 (string_match_1, search_buffer, set_search_regs): Likewise.
20561 (syms_of_search): Add Lisp level definition for
20562 `inhibit-changing-match-data' and set it to nil.
20563 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20564 start and end of the match, instead of using values in search_regs.
20565
20566 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20567
20568 * minibuf.c (Fcompleting_read): New value `confirm-only'
20569 for `require-match'.
20570
20571 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20572
20573 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20574 part of the 2007-06-27 change to syms_of_fileio.
20575
20576 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20577
20578 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20579 Check WINDOWP before using XWINDOW. Consolidate return statements.
20580
20581 2007-06-27 Richard Stallman <rms@gnu.org>
20582
20583 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20584
20585 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
20586
20587 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20588
20589 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20590
20591 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20592 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20593 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20594 (_free_internal, memalign): Use them.
20595 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20596 Initialize to PTHREAD_MUTEX_INITIALIZER.
20597 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20598 (morecore_nolock): Rename from morecore. All uses changed.
20599 Use only nolock versions of internal allocation functions.
20600 (_malloc_internal_nolock, _realloc_internal_nolock)
20601 (_free_internal_nolock): New functions created from
20602 _malloc_internal, _realloc_internal, and _free_internal.
20603 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20604 Copy hook value to automatic variable before its use.
20605 (memalign): Copy hook value to automatic variable before its use.
20606
20607 2007-06-26 Kenichi Handa <handa@m17n.org>
20608
20609 * coding.c (Ffind_operation_coding_system): Docstring improved.
20610 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20611
20612 2007-06-25 David Kastrup <dak@gnu.org>
20613
20614 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20615 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20616 cater for additional parameter.
20617
20618 * keymap.h: Adjust number of parameters to `current-active-maps'.
20619
20620 * doc.c (Fsubstitute_command_keys): Adjust call of
20621 `current-active-maps'.
20622
20623 2007-06-25 David Kastrup <dak@gnu.org>
20624
20625 * callint.c (Fcall_interactively): Make the parsing of interactive
20626 specs somewhat more readable.
20627
20628 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20629
20630 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20631 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20632 if extended background has already been filled.
20633
20634 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20635
20636 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20637 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20638
20639 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20640 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20641 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20642 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20643 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20644 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20645 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20646 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20647 Run timers during dialog popup.
20648 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20649
20650 2007-06-21 Jason Rumney <jasonr@gnu.org>
20651
20652 * image.c (convert_mono_to_color_image): Swap fore and background.
20653
20654 2007-06-20 Jason Rumney <jasonr@gnu.org>
20655
20656 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20657 (w32_free_bdf_font): Unmap memory not handle.
20658
20659 2007-06-20 Sam Steingold <sds@gnu.org>
20660
20661 * gmalloc.c (__morecore): Fix the declaration to comply with the
20662 definition.
20663
20664 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
20665
20666 * w32term.c (w32_delete_display): Remove leftover declaration.
20667 (w32_define_cursor, w32_initialize): Make static.
20668
20669 * w32.c (_wsa_errlist): Fix typo in error message.
20670 (init_environment): Ignore any environment variable from the
20671 registry having a null value.
20672
20673 2007-06-20 Glenn Morris <rgm@gnu.org>
20674
20675 * Makefile.in (LIBGIF): Default to -lgif.
20676
20677 2007-06-17 Jason Rumney <jasonr@gnu.org>
20678
20679 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20680 unicode strings.
20681
20682 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
20683
20684 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20685 Fix typo in docstring.
20686
20687 2007-06-16 Eli Zaretskii <eliz@gnu.org>
20688
20689 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20690 and their keybindings.
20691
20692 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
20693
20694 * composite.c (update_compositions): Fix last fix.
20695
20696 2007-06-14 Jason Rumney <jasonr@gnu.org>
20697
20698 * w32.c (get_process_times_fn): New function pointer.
20699 (globals_of_w32): Intialize it if present in kernel32.dll.
20700 (w32_get_internal_run_time): New function.
20701
20702 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20703
20704 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20705
20706 * composite.c (update_compositions): Check the validness of
20707 compositions.
20708
20709 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20710
20711 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20712 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20713
20714 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20715 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20716
20717 * macgui.h (USE_MAC_TOOLBAR): New define.
20718
20719 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20720 Return immediately unless popup is activated.
20721
20722 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20723 background to scroll bar gap.
20724 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20725 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20726 scroll bars on frame edge. Check fringe background extension.
20727 Don't clear extended fringe background area.
20728 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20729 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20730 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20731 [USE_MAC_TOOLBAR]: New macros.
20732 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20733 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20734 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20735 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20736 [USE_MAC_TOOLBAR]: New functions.
20737 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20738 manually if previous repositioning has failed.
20739 (mac_handle_keyboard_event): Use precomputed event kind.
20740 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20741 as tool bar item click. Handle mouse movement over tool bar items.
20742
20743 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20744 toolbar_win_gravity.
20745 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20746 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20747 Add externs.
20748
20749 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20750 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20751
20752 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
20753
20754 * image.c (search_image_cache): Remove unused variable.
20755
20756 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
20757
20758 * xfns.c, xmenu.c: Link to xaw3d if available.
20759
20760 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20761
20762 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20763 frame_foreground and frame_background.
20764
20765 * image.c (lookup_image): Save frame foreground and background colors.
20766 (search_image_cache): Check if saved and current frame colors match.
20767
20768 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20769
20770 * regex.c (regex_compile): Remove the `regnum' counter.
20771 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20772
20773 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20774
20775 * term.c: Include intervals.h to declare Fget_text_property.
20776
20777 2007-06-10 Jason Rumney <jasonr@gnu.org>
20778
20779 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20780
20781 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
20782
20783 * callint.c (Fcall_interactively):
20784 * editfns.c (Fdelete_and_extract_region):
20785 * fileio.c (Fread_file_name):
20786 * fns.c (Fmapconcat):
20787 * keyboard.c (cmd_error_internal):
20788 * keymap.c (Fkey_description):
20789 * lread.c (openp):
20790 * minibuf.c (read_minibuf):
20791 * search.c (wordify):
20792 * sunfns.c (sel_read):
20793 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20794 * xfns.c (x_default_scroll_bar_color_parameter):
20795 * xmenu.c (menu_help_callback):
20796 * xselect.c (Fx_get_atom_name):
20797 * xterm.c (x_term_init): Use empty_unibyte_string.
20798
20799 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20800
20801 * alloc.c (init_strings): Initialize canonical empty strings.
20802 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20803 canonical empty string when the requested size is 0.
20804
20805 * emacs.c (empty_unibyte_string): Rename from empty_string.
20806 (empty_multibyte_string): New canonical empty string.
20807 (syms_of_emacs): Don't initialize empty_string.
20808
20809 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20810 string, if appropriate.
20811 (empty_unibyte_string, empty_multibyte_string): New externs.
20812 (empty_string): Remove extern.
20813
20814 * lread.c (syms_of_lread): Use empty_unibyte_string.
20815
20816 2007-06-07 Jason Rumney <jasonr@gnu.org>
20817
20818 * s/ms-w32.h: Don't define HAVE_TZNAME.
20819
20820 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20821
20822 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20823
20824 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20825
20826 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20827 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20828
20829 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20830 Don't call next handler.
20831 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20832 Remove argument. Install handler to application.
20833 (set_frame_menubar): Don't change deep_p.
20834 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20835 FRAME_OUTER_TO_INNER_DIFF_Y.
20836 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20837 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20838 [HAVE_DIALOGS]: New macros.
20839 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20840 Use them.
20841 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20842
20843 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20844 init_service_handler. All callers changed. Return OSStatus value.
20845
20846 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20847 All callers changed so as not to call SetPortWindowPort.
20848 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20849 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20850 mac_draw_string_common.
20851 (mac_draw_image_string_qd): Likewise.
20852 (mac_draw_string_common): Use them. Add INLINE.
20853 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20854 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20855 GetGlobalMouse.
20856 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20857 and FRAME_OUTER_TO_INNER_DIFF_Y.
20858 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20859 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20860 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20861 repositioning window to mac_handle_window_event.
20862 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20863 saving window location to mac_handle_window_event
20864 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20865 (install_menu_target_item_handler): Remove argument in extern.
20866 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20867 Also accept command events.
20868 (do_keystroke): New function created from XTread_socket.
20869 (init_command_handler): Remove functions.
20870 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20871 and save window location by kEventWindowShowing and kEventWindowHiding
20872 handlers here. Don't call next handler for window state change and
20873 focus events.
20874 (mac_handle_application_event, mac_handle_keyboard_event)
20875 [TARGET_API_MAC_CARBON]: New functions.
20876 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20877 kEventWindowShowing and kEventWindowHiding events. Move installation
20878 of mouse, font, text input and menu target item handlers to
20879 install_application_handler.
20880 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20881 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20882 New function.
20883 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20884 Register it.
20885 (XTread_socket) [TARGET_API_MAC_CARBON]:
20886 Consolidate SendEventToEventTarget calls.
20887 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20888 Move application activation handler to mac_handle_application_event.
20889 Move keyboard handler to mac_handle_keyboard_event.
20890 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20891 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20892 init_command_handler. Call install_application_handler.
20893
20894 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20895 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20896
20897 2007-06-07 Glenn Morris <rgm@gnu.org>
20898
20899 * emacs.c (main): Use `emacs-copyright' in --version output.
20900
20901 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
20902
20903 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20904
20905 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20906
20907 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20908
20909 * macgui.h: Replace WindowPtr with WindowRef.
20910
20911 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20912 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20913 Replace ControlHandle with ControlRef.
20914 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20915
20916 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20917 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20918 Replace ControlHandle with ControlRef.
20919 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20920 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20921
20922 * macterm.h (struct scroll_bar): Rename member control_handle_low
20923 and control_handle_high to control_ref_low and control_ref_high.
20924 All uses changed.
20925 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20926 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20927 respectively. All uses changed.
20928 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20929 (install_window_handler, remove_window_handler): Replace WindowPtr
20930 with WindowRef in externs.
20931
20932 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
20933
20934 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20935
20936 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
20937
20938 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20939
20940 * frame.c (Fmouse_position, Fmouse_pixel_position):
20941 Condition on HAVE_GPM too.
20942
20943 * term.c (term_mouse_highlight): Remove unused variables.
20944 (Fterm_open_connection): Set gpm_zerobased to 1.
20945 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20946 Use zero based co-ordinates.
20947 (handle_one_term_event): Report a drag as mouse movement too.
20948
20949 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20950
20951 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
20952
20953 * image.c (search_image_cache): New function. Require background
20954 color match if background color is unspecified in the image spec.
20955 (uncache_image, lookup_image): Use it.
20956
20957 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
20958
20959 * window.c (Fshrink_window): Reflow docstring.
20960
20961 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
20962
20963 * Version 22.1 released.
20964
20965 2007-06-01 Richard Stallman <rms@gnu.org>
20966
20967 * xfns.c (x_encode_text): Add GCPRO.
20968
20969 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20970
20971 * xfns.c (x_set_name_internal): Save encoded name before
20972 x_encode_text in case string data is relocated.
20973
20974 2007-05-31 Richard Stallman <rms@gnu.org>
20975
20976 * buffer.c (syms_of_buffer): Doc fix.
20977
20978 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
20979
20980 * sysdep.c (init_sys_modes): Add rather than replace with
20981 O_NONBLOCK.
20982
20983 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20984 term_mouse_moveto.
20985
20986 * termhooks.h (term_mouse_moveto): New extern.
20987
20988 * term.c (mouse_face_window): Rename...
20989 (Qmouse_face_window): ...to this.
20990 (term_show_mouse_face, term_clear_mouse_face)
20991 (term_mouse_highlight): Use Qmouse_face_window.
20992 (term_mouse_moveto): New function.
20993 (term_mouse_position): Make it work.
20994 (syms_of_term): Uncomment assignment to mouse_position_hook.
20995 Staticpro Qmouse_face_window.
20996
20997 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20998
20999 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21000 around current_column call.
21001
21002 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21003
21004 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21005 * xdisp.c (next_element_from_buffer):
21006 * window.c (delete_window):
21007 * term.c (term_mouse_highlight):
21008 * msdos.c (getdefdir):
21009 * macterm.c (mac_create_bitmap_from_bitmap_data)
21010 (init_font_name_table):
21011 * fns.c (Fsxhash):
21012 * data.c (Fmake_local_variable):
21013 * ccl.c (ccl_driver): Likewise.
21014
21015 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21016
21017 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21018 Call mac_wakeup_from_rne on window size change.
21019
21020 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
21021
21022 * image.c (uncache_image): Fix typo.
21023
21024 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21025
21026 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21027
21028 2007-05-22 Richard Stallman <rms@gnu.org>
21029
21030 * xterm.c (x_connection_closed): Remove NO_RETURN.
21031
21032 2007-05-22 Martin Rudalics <rudalics@gmx.at>
21033
21034 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21035
21036 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
21037
21038 * image.c (uncache_image): New function.
21039 (Fimage_refresh): New function.
21040
21041 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21042
21043 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21044
21045 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21046
21047 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21048 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21049
21050 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21051
21052 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21053 conditional on [HAVE_GPM_H].
21054
21055 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21056
21057 * syntax.c (skip_chars): Update syntax-table only after we checked that
21058 the new location is valid.
21059
21060 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21061
21062 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21063 mac_get_window_bounds.
21064
21065 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21066
21067 * Makefile.in (LIBGPM): Allow it to be set from configure.
21068 If set then link Emacs with it.
21069
21070 * config.in: Regenerate.
21071
21072 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21073 New externs.
21074
21075 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21076 Include gpm.h.
21077 (handle_one_term_event, term_gpm): New externs.
21078
21079 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21080 and allow it to be interrupted by SIGIO.
21081
21082 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21083 (wait_reading_process_output): Wait on gpm_fd too.
21084 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21085 (add_gpm_wait_descriptor_called_flag): New variable.
21086 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21087
21088 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21089 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21090 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21091 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21092 (make_lispy_event): Add case GPM_CLICK_EVENT.
21093 (read_avail_input): Handle mouse input.
21094
21095 * term.c (write_glyphs_with_face): New function.
21096 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21097 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21098 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21099 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21100 (last_mouse_x, last_mouse_y): New variables.
21101 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21102 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21103 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21104 (Fterm_close_connection): New functions.
21105 (term_init): Initialise mouse_face_window.
21106
21107 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
21108
21109 * xdisp.c (redisplay_window): If first window line is a
21110 continuation line, recompute the new window start instead of
21111 recentering.
21112
21113 2007-05-18 Glenn Morris <rgm@gnu.org>
21114
21115 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21116 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21117
21118 2007-05-17 Glenn Morris <rgm@gnu.org>
21119
21120 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21121
21122 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21123
21124 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21125 dead key repeat and up events.
21126
21127 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
21128
21129 * image.c (pbm_load): Check image size for monochrome pbm.
21130
21131 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
21132
21133 * xterm.c (XTread_socket): Revert last change.
21134
21135 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
21136
21137 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21138
21139 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21140
21141 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21142
21143 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21144 mixup (YAILOM).
21145
21146 2007-05-07 Andreas Schwab <schwab@suse.de>
21147
21148 * keymap.c (Flookup_key): Fix typo in last change.
21149
21150 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21151
21152 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21153 mapping for unibyte strings.
21154
21155 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21156
21157 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21158 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21159
21160 2007-04-29 Richard Stallman <rms@gnu.org>
21161
21162 * insdel.c (replace_range): For undo, record insertion first.
21163
21164 2007-04-29 Andreas Schwab <schwab@suse.de>
21165
21166 * lisp.h (VECSIZE): Use OFFSETOF.
21167
21168 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21169
21170 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21171 disabled lines.
21172
21173 2007-04-28 Richard Stallman <rms@gnu.org>
21174
21175 * lread.c (read_escape): In a string, \s is always space.
21176
21177 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21178
21179 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21180
21181 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21182 submenu for menu bar items.
21183
21184 See ChangeLog.10 for earlier changes.
21185
21186 ;; Local Variables:
21187 ;; coding: utf-8
21188 ;; add-log-time-zone-rule: t
21189 ;; End:
21190
21191 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
21192
21193 This file is part of GNU Emacs.
21194
21195 GNU Emacs is free software: you can redistribute it and/or modify
21196 it under the terms of the GNU General Public License as published by
21197 the Free Software Foundation, either version 3 of the License, or
21198 (at your option) any later version.
21199
21200 GNU Emacs is distributed in the hope that it will be useful,
21201 but WITHOUT ANY WARRANTY; without even the implied warranty of
21202 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21203 GNU General Public License for more details.
21204
21205 You should have received a copy of the GNU General Public License
21206 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21207
21208 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40