Set the extended window manager hint for tooltip windows.
[bpt/emacs.git] / src / ChangeLog
1 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
2
3 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4 tooltip windows.
5
6 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7
8 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
9 Xatom_net_window_type.
10
11 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
12 Xatom_net_window_type.
13
14 * xterm.c (my_log_handler): New function.
15 (x_term_init): Set my_log_handler as log handler during gtk_init
16 so we can filter out buggy messages. (bug #5120).
17
18 * xterm.c (xg_scroll_callback): Parameter list changed,
19 use parameter GtkScrollType to determine scroll/line/page.
20 Only allow dragging if a button < 4 is grabbed (bug #5177).
21 (xg_end_scroll_callback): New function.
22 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
23 xg_create_scroll_bar.
24
25 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
26 (scroll_end_callback): Remove.
27 (xg_create_scroll_bar): Add parameter end_callback, bind it to
28 button-release-event. Replace value-changed event with change-value,
29 bug #5177,
30 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
31 bug #5177.
32
33 * gtkutil.h (XG_LAST_SB_DATA): Remove.
34 (xg_create_scroll_bar): Add GCallback end_callback.
35
36 * xftfont.c (QClcdfilter): New variable.
37 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
38 (syms_of_xftfont): Initialize QClcdfilter.
39
40 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
41
42 * xsettings.c (struct xsettings): Add member seen.
43 (parse_xft_settings): Update member seen with what we have read.
44 Return non-zero if Xft-settings have been parsed, 0 otherwise.
45 (apply_xft_settings): Only update Xft settings with what member seen
46 indicates as new.
47
48 2009-12-12 Eli Zaretskii <eliz@gnu.org>
49
50 * dispextern.h (struct text_pos): Use EMACS_INT;
51 (struct glyph): Use EMACS_INT for charpos.
52 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
53 region_beg_charpos, region_end_charpos,
54 redisplay_end_trigger_charpos, and also for
55 iterator_stack_entry.end_charpos and
56 iterator_stack_entry.stop_charpos.
57
58 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
59
60 * gtkutil.c (scroll_end_callback): New function (bug #5177)
61 (xg_create_scroll_bar): Call scroll_end_callback on button release
62 event (bug #5177).
63 (xg_event_is_for_scrollbar): != replaced with ==.
64
65 2009-12-12 Kenichi Handa <handa@m17n.org>
66
67 * ftfont.c (struct ftfont_info): New member matrix.
68 (ftfont_open): Setup xftfont_info->matrix.
69 (MFLTFontFT): New member matrix.
70 (FLOOR, CEIL, ROUND): New macros.
71 (ftfont_get_metrics): Handle matrix transformation.
72 (ftfont_shape_by_flt): New arg matrix. Callers changed.
73
74 * xftfont.c (struct xftfont_info): New member matrix.
75 (xftfont_open): Setup xftfont_info->matrix.
76
77 2009-12-10 Kenichi Handa <handa@m17n.org>
78
79 * xdisp.c (append_space_for_newline): Consider face-remapping.
80
81 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
82
83 * xsettings.c: Include "keyboard.h".
84
85 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
86
87 Fix implicit function declarations.
88 * cmds.c: Include "frame.h".
89 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
90 * frame.h: Move declaration of delete_frame outside of
91 HAVE_WINDOW_SYSTEM.
92
93 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
94
95 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
96
97 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
98 GTK builds.
99
100 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
101
102 * unexelf.c (unexec): Don't search for .data twice.
103
104 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
105
106 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
107 if push failed.
108 (handle_line_prefix): Set avoid_cursor_p here. Check return value
109 of push_display_prop (Bug#5000).
110
111 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
112 value of font_list_entities (Bug#5085).
113
114 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
115
116 Fix `string-to-number' to deal consistently with integers and floats.
117 * lread.c (isfloat_string): New argument ignore_trailing to accept all
118 trailing characters, not just whitespace.
119 (read1): Pass new arg 0 to keep old behavior.
120 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
121 trailing chars, as it is already done for integers. Doc fixes.
122 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
123
124 2009-12-04 Eli Zaretskii <eliz@gnu.org>
125
126 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
127 unused enumeration value.
128
129 2009-12-03 Eli Zaretskii <eliz@gnu.org>
130
131 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
132
133 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
134
135 * process.c (Fmake_network_process): Fix up the tests for
136 "connectionless socket", so they DTRT for seqpacket sockets as well.
137
138 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
139
140 * process.c (Qseqpacket): New symbol.
141 (HAVE_SEQPACKET): New macro.
142 (Fmake_network_process): Accept new :type `seqpacket'.
143 (init_process): Add `seqpacket' feature when applicable.
144 (syms_of_process): Initialize Qseqpacket.
145
146 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
147
148 * font.c (font_load_for_lface, font_open_by_name): Don't store name
149 if entity is Qnil.
150
151 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
152
153 * print.c (print_preprocess): Preprocess the key_and_value table of
154 hashtables, even tho they're "hidden" (bug#5082).
155
156 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
157
158 * frame.c (frame_make_pointer_invisible)
159 (frame_make_pointer_visible): Declare f before statements.
160
161 2009-11-28 Eli Zaretskii <eliz@gnu.org>
162
163 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
164 omitted dependencies on lisp.h.
165
166 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
167
168 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
169 is NULL.
170
171 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
172
173 * frame.c (frame_make_pointer_invisible)
174 (frame_make_pointer_visible): Just return if there isn't any selected
175 frame.
176
177 * search.c (simple_search): Remove warning by making *p const.
178
179 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
180
181 * xdisp.c (power_letter): Remove duplicate const.
182
183 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
184
185 * term.c (delete_tty): Remove check for last terminal (bug#4970).
186
187 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
188 defaults (bug #5025).
189
190 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
191
192 * insdel.c (adjust_markers_for_delete): Move it in the
193 right direction! (bug#4803)
194
195 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
196
197 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
198
199 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
200
201 2009-11-24 Glenn Morris <rgm@gnu.org>
202
203 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
204
205 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
206
207 * Makefile.in: Must create deps for ecrt0.o in its rule.
208
209 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
210 because that is what Gtk+ font dialog understands.
211
212 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
213 of Fcopy_sequence.
214 (font_open_by_name): Put name given into QCname for font-object returned.
215
216 * frame.c (x_set_font): Save original font name as frame parameter
217 font-parameter.
218
219 * xsettings.c (set_default_xft_settings): New function.
220 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
221 is found.
222
223 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
224
225 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
226 searching backwards through multibyte buffer.
227
228 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
229
230 * xterm.c: #include xgselect.h.
231 (x_initialize): Call xgselect_initialize.
232
233 * xsettings.c (something_changedCB): C++ comments => C comments.
234 (init_gconf): Do not deal with any GLib file descriptors, xg_select
235 does that now.
236
237 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
238 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
239 (scroll_bar_button_cb): Remove.
240 (create_menus): C++ comments => C comments. Don't bind grab-notify
241 event.
242 (xg_create_scroll_bar): Don't bind button-press-event and
243 button-release-event.
244
245 * process.c: Include xgselect.h if defined (USE_GTK) ||
246 defined (HAVE_GCONF).
247 (wait_reading_process_output): Call xg_select for the same condition.
248
249 * xgselect.c (xg_select): New function to better integrate with
250 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
251
252 * xgselect.h: New file, declare xg_select, xgselect_initialize.
253
254 * Makefile.in (XOBJ): Add xgselect.o.
255
256 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
257
258 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
259 ignored second argument. All callers changed.
260 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
261 (RE_STRING_CHAR_AND_LENGTH): Likewise.
262 * xdisp.c (string_char_and_length): Likewise.
263
264 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
265
266 * xterm.c (x_new_font):
267 * print.c (print_object):
268 * cmds.c (Fself_insert_command): Move declarations before statements.
269
270 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
271
272 * s/cygwin.h: Remove unneeded linker flags.
273
274 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
275
276 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
277
278 * xsettings.h: Declare xsettings_get_system_font.
279
280 * xsettings.c (xsettings_get_system_font): New function.
281 (init_gconf): No use initiating gconf unless we have Xft also.
282 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
283 HAVE_GCONF.
284
285 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
286 add a blank entry so it doesn't collapse into nothing.
287
288 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
289
290 * lread.c (Funintern): Comment out last change.
291
292 2009-11-19 Richard Stallman <rms@gnu.org>
293
294 * lread.c (Funintern): Error if symbol is t or nil.
295
296 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
297
298 * insdel.c (make_gap_larger): Don't make as many assumptions about the
299 representation of Lisp integers.
300 Reported by MJ Chan <mjchan.inbox@gmail.com>.
301
302 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
303
304 * lisp.h: Remove declaration of Ffont_get_system_font.
305 * xfns.c: Move include of "xsettings.h".
306 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
307
308 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
309
310 * xsettings.c (something_changedCB, Ffont_get_system_font):
311 Check use_system_font.
312 (syms_of_xsettings): DEFVAR font-use-system-font.
313
314 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
315
316 * xfns.c (x_default_font_parameter): Remove dead assignment.
317
318 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
319
320 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
321
322 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
323 not have FC_LCD_*. #define them if not there.
324
325 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
326
327 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
328
329 * xterm.c (handle_one_xevent): Call xft_settings_event for
330 ClientMessage, PropertyNotify and DestroyNotify.
331 (x_term_init): If we have XFT, get DPI from Xft.dpi.
332 Call xsettings_initialize.
333
334 * xftfont.c (xftfont_fix_match): New function.
335 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
336 Call xftfont_fix_match after XftFontMatch.
337
338 * xfont.c (xfont_driver): Initialize all members.
339
340 * xfns.c (x_default_font_parameter):
341 Try font from Ffont_get_system_font.
342 Do not get font from x_default_parameter if we got one from
343 Ffont_get_system_font.
344 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
345
346 * w32font.c (w32font_driver): Initialize all members.
347
348 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
349
350 * lisp.h: Declare syms_of_xsettings.
351
352 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
353 Handle CONFIG_CHANGED_EVENT.
354
355 * ftfont.c (ftfont_filter_properties): New function.
356
357 * frame.c (x_set_font): Remove unused variable lval.
358
359 * font.h (struct font_driver): Add filter_properties.
360
361 * font.c (font_put_extra): Don't return if val is nil, it means
362 boolean option is off.
363 (font_parse_fcname): Collect all extra properties in extra_props
364 and call filter_properties for all drivers with extra_props and
365 font as parameter.
366 (font_open_entity): Do not use cache, it does not pick up new
367 fontconfig settings like hinting.
368 (font_load_for_lface): If spec had a name in it, store it in entity.
369
370 * emacs.c (main): Call syms_of_xsettings
371
372 * config.in: HAVE_GCONF is new.
373
374 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
375 xsettings.o is new.
376
377 2009-11-17 Kenichi Handa <handa@m17n.org>
378
379 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
380 back to the default font in case that no suitable font is found.
381
382 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
383
384 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
385 Suggested by Chad Brown <yandros@mit.edu>.
386 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
387
388 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
389
390 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
391
392 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
393
394 * Makefile.in: Ignore errors from mkdir when creating deps directory.
395
396 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
397
398 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
399 has a parent.
400
401 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
402 dependency files in deps/. Include those files into Makefile.
403
404 * config.in: Generated (AUTO_DEPEND).
405
406 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
407
408 * dbusbind.c (Vdbus_registered_objects_table): Rename from
409 Vdbus_registered_functions_table, because it contains also
410 properties. Fix docstring.
411 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
412
413 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
414
415 * alloc.c (mark_object): Don't reprocess marked strings.
416 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
417 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
418
419 2009-11-13 Kenichi Handa <handa@m17n.org>
420
421 * category.c (word_boundary_p): Adjust for the change of the
422 semantics of Vword_combining_categories.
423 (Vword_combining_categories): Describe the slight change of the
424 semantics.
425
426 2009-11-13 Eli Zaretskii <eliz@gnu.org>
427
428 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
429
430 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
431
432 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
433
434 * xdisp.c (syms_of_xdisp): Fix typo in last change.
435
436 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
437
438 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
439
440 2009-11-11 David Reitter <david.reitter@gmail.com>
441
442 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
443 variables to fix 2009-11-09 change.
444
445 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
446
447 * process.c (ifflag_def): Make flag_sym constant.
448 (Fnetwork_interface_info): Use a constant pointer.
449 (ifflag_table):
450 * xfns.c (cursor_bits):
451 * xdisp.c (power_letter):
452 * termcap.c (speeds, esctab):
453 * sysdep.c (baud_convert):
454 * keyboard.c (lispy_accent_codes, modifier_names):
455 * image.c (xbm_format, xpm_format, pbm_format, png_format)
456 (jpeg_format, tiff_format, gif_format, svg_format)
457 (interlace_start, interlace_increment, gs_format):
458 * gtkutil.c (separator_names):
459 * fringe.c (swap_nibble):
460 * fns.c (base64_value_to_char, base64_char_to_value):
461 * fileio.c (make_temp_name_tbl):
462 * coding.c (suffixes): Make constant.
463
464 * frame.c (make_initial_frame):
465 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
466 build_string.
467 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
468
469 * s/freebsd.h:
470 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
471
472 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
473 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
474
475 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
476 * xterm.c (syms_of_xterm):
477 * xfaces.c (syms_of_xfaces):
478 * xdisp.c (syms_of_xdisp):
479 * lread.c (syms_of_lread):
480 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
481 build_string.
482
483 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
484
485 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
486
487 * fns.c (Fplist_get): Merge the active and the commented out code.
488
489 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
490
491 * keyboard.h: Declare timer_check.
492
493 * keyboard.c (timer_check_2): New function that does what the old
494 timer_check did.
495 (timer_check): Call timer_check_2 until -1 or a non-zero time is
496 returned, i.e. don't return -1 with timers pending.
497
498 * process.c: Remove extern declaration of timer_check.
499
500 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
501 even if timer_check returned -1.
502
503 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
504 xg_dialog_data.
505 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
506 the event loop.
507 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
508 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
509 Destroy the dialog after xg_dialog_run.
510
511 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
512
513 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
514
515 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
516
517 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
518
519 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
520
521 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
522
523 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
524
525 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
526 w32menu.c, and nsmenu.m.
527 Simplify the obsolete case where position is nil.
528 (cleanup_popup_menu): New function, moved from nsmenu.m.
529 (struct skp): Remove slot `notreal'.
530 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
531 adjust callers.
532 (single_menu_item): Adjust call to parse_menu_item.
533 (syms_of_menu): Defsubr x-popup-menu.
534 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
535 (keymap_panes): Don't export any more.
536 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
537 (xmenu_show): Declare.
538 * keyboard.c (parse_menu_item): Remove arg `notreal'.
539 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
540 * keyboard.h (parse_menu_item): Update declaration.
541 * xmenu.c (Fx_popup_menu): Remove.
542 (syms_of_xmenu): Don't defsubr x-popup-menu.
543 * w32menu.c (Fx_popup_menu): Remove.
544 (syms_of_w32menu): Don't defsubr x-popup-menu.
545 * nsmenu.m (cleanup_popup_menu): Remove.
546 (ns_menu_show): Rename from ns_popup_menu and remove all the code
547 moved to menu.c's Fx_popup_menu.
548 (Fx_popup_menu): Remove.
549 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
550 menu_items (it's done in menu.c already).
551
552 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
553
554 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
555 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
556
557 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
558
559 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
560 xmenu_show. Hide any tooltip before opening a menu.
561 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
562 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
563
564 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
565
566 Let integers use up 2 tags to give them one extra bit and thus double
567 their range.
568 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
569 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
570 New macros.
571 (enum Lisp_Type): Use them. Give explicit values.
572 (Lisp_Type_Limit): Remove.
573 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
574 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
575 Pay attention to USE_2_TAGS_FOR_INTS.
576 (INTEGERP): Use LISP_INT_TAG_P.
577 * fns.c (internal_equal): Simplify the default case.
578 (sxhash): Use case_Lisp_Int.
579 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
580 any more.
581 (Ftype_of): Use case_Lisp_Int.
582 (store_symval_forwarding): Take into account the fact that Ints can
583 now have more than one tag.
584 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
585 buffer_slot_type_mismatch):
586 * xfaces.c (face_attr_equal_p):
587 * print.c (print_object):
588 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
589 Use case_Lisp_Int.
590
591 2009-11-06 Eli Zaretskii <eliz@gnu.org>
592
593 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
594
595 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
596 warning.
597
598 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
599
600 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
601
602 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
603
604 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
605 ButtonPressRelease and MotionNotify (bug#4870).
606
607 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
608
609 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
610
611 * xterm.c (syms_of_xterm):
612 * xselect.c (syms_of_xselect):
613 * xmenu.c (syms_of_xmenu):
614 * xfns.c (syms_of_xfns):
615 * xfaces.c (syms_of_xfaces):
616 * xdisp.c (syms_of_xdisp):
617 * window.c (syms_of_window):
618 * w32fns.c (syms_of_w32fns):
619 * undo.c (syms_of_undo):
620 * textprop.c (syms_of_textprop):
621 * terminal.c (syms_of_terminal):
622 * syntax.c (syms_of_syntax):
623 * sound.c (syms_of_sound):
624 * search.c (syms_of_search):
625 * print.c (syms_of_print):
626 * minibuf.c (syms_of_minibuf):
627 * macros.c (syms_of_macros):
628 * keymap.c (syms_of_keymap, initial_define_key)
629 (initial_define_lispy_key):
630 * keyboard.c (syms_of_keyboard):
631 * insdel.c (syms_of_insdel):
632 * image.c (syms_of_image):
633 * fringe.c (syms_of_fringe):
634 * frame.c (syms_of_frame):
635 * fontset.c (syms_of_fontset):
636 * fns.c (syms_of_fns):
637 * fns.c (syms_of_fns):
638 * fileio.c (syms_of_fileio):
639 * fileio.c (syms_of_fileio):
640 * eval.c (syms_of_eval):
641 * doc.c (syms_of_doc):
642 * dispnew.c (syms_of_display):
643 * dired.c (syms_of_dired):
644 * dbusbind.c (syms_of_dbusbind):
645 * data.c (syms_of_data):
646 * composite.c (syms_of_composite):
647 * coding.c (syms_of_coding):
648 * cmds.c (syms_of_cmds):
649 * charset.c (define_charset_internal, syms_of_character):
650 * ccl.c (syms_of_ccl):
651 * category.c (syms_of_category, init_category_once):
652 * casetab.c (syms_of_casetab):
653 * casefiddle.c (syms_of_casefiddle):
654 * callint.c (syms_of_callint):
655 * bytecode.c (syms_of_bytecode):
656 * buffer.c (keys_of_buffer, syms_of_buffer):
657 * alloc.c (syms_of_alloc):
658 * process.c (syms_of_process, init_process):
659 * lread.c (syms_of_lread, init_obarray):
660 * font.c (build_style_table):
661 * emacs.c (syms_of_emacs, main): Replace calls to intern with
662 intern_c_string, calls to make_pure_string with
663 make_pure_c_string. Use pure_cons instead of Fcons.
664
665 * process.c (socket_options): Make it const.
666 (set_socket_option, init_process): Use a const pointer.
667
668 * lread.c (intern_c_string): New function.
669 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
670 (defvar_int): Uset it. Make the name const char*.
671
672 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
673 (defvar_int): Update prototypes.
674 (DEFUN, EXFUN): Support for prototypes is now required.
675 (intern_c_string): New prototype.
676 (struct Lisp_Subr): Make symbol_name constant.
677
678 * font.c (struct table_entry): Remove unused member. Make NAMES
679 constant.
680 (weight_table, slant_table, width_table): Make constant.
681
682 * emacs.c (struct standard_args): Make name and longname constant.
683
684 * character.h (DEFSYM): Use intern_c_string.
685
686 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
687
688 * alloc.c (make_pure_c_string): New function.
689
690 * eval.c (Fautoload): Purecopy all arguments.
691
692 2009-11-05 Kenichi Handa <handa@m17n.org>
693
694 * fileio.c (Finsert_file_contents): Be sure set coding-system of
695 the buffer in case of replace.
696
697 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
698
699 * puresize.h (BASE_PURESIZE): Increase to 1620000.
700
701 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
702
703 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
704 when applicable (bug#4851).
705
706 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
707 (P_): Support for prototypes is now required.
708
709 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
710
711 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
712 (Bug#4827).
713
714 2009-10-30 Eli Zaretskii <eliz@gnu.org>
715
716 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
717
718 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
719
720 * puresize.h (BASE_PURESIZE): Increase to 1470000.
721
722 * lread.c (Fload): Purecopy the file name when building
723 Vpreloaded_file_list.
724
725 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
726
727 * w32fns.c (syms_of_w32fns): Change default value of
728 w32-scroll-lock-modifier to nil. (Bug#2827)
729
730 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
731
732 * minibuf.c (Fall_completions): Fix typos in docstring.
733
734 2009-10-26 Andreas Schwab <schwab@redhat.com>
735
736 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
737
738 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
739
740 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
741 For delta < 0, skip check that only makes sense when the mini-window
742 is going to be enlarged. (Bug#4534)
743
744 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
745
746 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
747 string in menu maps (Bug#4471).
748
749 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
750
751 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
752 FRAME_NS_VIEW on terminal frames (Bug#4765).
753
754 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
755
756 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
757 DBUS_TYPE_UINTnn separately to get proper sign extension.
758
759 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
760 can properly handle unsigned types.
761 (make_uid, make_gid): Remove.
762
763 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
764 types again.
765
766 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
767 (system_process_attributes): Likewise.
768
769 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
770
771 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
772
773 * eval.c (Fautoload): Purecopy the filename. Simplify.
774
775 * category.c (Fdefine_category): Purecopy docstring.
776
777 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
778
779 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
780
781 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
782
783 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
784
785 * window.c (Fwindow_edges, Fwindow_pixel_edges)
786 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
787 (Bug#4775).
788
789 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
790
791 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
792 (init_fileio_once):
793 * lisp.h (init_fileio_once): Remove.
794 * emacs.c (main): Don't call init_fileio_once.
795
796 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
797
798 * puresize.h (BASE_PURESIZE): Increase to 1430000.
799
800 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
801
802 * doprnt.c (doprnt): Fix overflow check.
803
804 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
805
806 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
807
808 * xterm.h (x_wait_for_event): Declare it.
809
810 * xterm.c (pending_event_wait): New variable.
811 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
812 see pending_event_wait.eventtype.
813 (handle_one_xevent): Don't change gravity when parent changes.
814 (x_new_font): Call change_frame_size with new rows/columns before we
815 try to resize the frame.
816 (x_wait_for_event): New function.
817 (x_set_window_size_1): Don't change gravity unless change_gravity
818 is set.
819 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
820 don't change frame size, instead wait for the ConfigureNotify.
821 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
822 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
823 (x_initialize): Initialize pending_event_wait.
824
825 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
826 size.
827
828 * widget.c (EmacsFrameSetValues): Add comment.
829 (EmacsFrameSetCharSize): Just call x_set_window_size.
830
831 * gtkutil.c (xg_frame_set_char_size): Flush events and call
832 x_wait_for_event.
833 (flush_and_sync): Remove again.
834 (xg_get_font_name): Suggest monospace if no previous font is known.
835
836 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
837
838 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
839 8th bit, since that only made sense in the ASCII world (bug#4751).
840
841 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
842
843 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
844 processing pending events when event is filtered for input method.
845 (Bug#3681)
846
847 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
848
849 * fns.c: Add #endif accidentally removed in previous change.
850
851 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
852
853 * fns.c: Remove code for unsupported system: MAC_OS.
854 * image.c: Likewise. Include setjmp.h.
855
856 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
857
858 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
859 pixel -1 (bug #4742).
860
861 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
862
863 * process.c (create_pty): Remove conditionals for no longer
864 supported systems: UNIPLUS and RTU.
865
866 * xterm.c:
867 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
868
869 * alloc.c: Do not define struct catchtag.
870 * eval.c: Move struct catchtag definition ...
871 * lisp.h: ... here.
872
873 * image.c: Move png.h #include earlier to avoid warnings.
874
875 * xterm.c:
876 * xsmfns.c:
877 * xselect.c:
878 * xrdb.c:
879 * xmenu.c:
880 * xftfont.c:
881 * xfont.c:
882 * xfns.c:
883 * xfaces.c:
884 * xdisp.c:
885 * window.c:
886 * widget.c:
887 * w32xfns.c:
888 * w32uniscribe.c:
889 * w32term.c:
890 * w32select.c:
891 * w32reg.c:
892 * w32proc.c:
893 * w32menu.c:
894 * w32inevt.c:
895 * w32heap.c:
896 * w32font.c:
897 * w32fns.c:
898 * w32console.c:
899 * w32.c:
900 * w16select.c:
901 * vm-limit.c:
902 * unexsol.c:
903 * unexec.c:
904 * unexcw.c:
905 * unexaix.c:
906 * undo.c:
907 * tparam.c:
908 * textprop.c:
909 * terminfo.c:
910 * terminal.c:
911 * termcap.c:
912 * term.c:
913 * syntax.c:
914 * sound.c:
915 * sheap.c:
916 * search.c:
917 * scroll.c:
918 * region-cache.c:
919 * regex.c:
920 * ralloc.c:
921 * process.c:
922 * print.c:
923 * nsterm.m:
924 * nsselect.m:
925 * nsmenu.m:
926 * nsimage.m:
927 * nsfont.m:
928 * nsfns.m:
929 * msdos.c:
930 * minibuf.c:
931 * menu.c:
932 * marker.c:
933 * macros.c:
934 * keymap.c:
935 * keyboard.c:
936 * intervals.c:
937 * insdel.c:
938 * indent.c:
939 * gtkutil.c:
940 * ftxfont.c:
941 * ftfont.c:
942 * fringe.c:
943 * frame.c:
944 * fontset.c:
945 * font.c:
946 * fns.c:
947 * floatfns.c:
948 * filelock.c:
949 * fileio.c:
950 * emacs.c:
951 * editfns.c:
952 * dosfns.c:
953 * doprnt.c:
954 * doc.c:
955 * dispnew.c:
956 * dired.c:
957 * dbusbind.c:
958 * data.c:
959 * composite.c:
960 * coding.c:
961 * cmds.c:
962 * cm.c:
963 * chartab.c:
964 * charset.c:
965 * character.c:
966 * ccl.c:
967 * category.c:
968 * casetab.c:
969 * casefiddle.c:
970 * callproc.c:
971 * callint.c:
972 * bytecode.c:
973 * buffer.c:
974 * atimer.c: Include setjmp.h. (Bug#4643)
975
976 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
977
978 Remove leftover table unibyte_to_multibyte_table.
979 * character.c (unibyte_to_multibyte_table): Remove.
980 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
981 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
982 * character.h (UNIBYTE_TO_CHAR): New macro.
983 (MAKE_CHAR_MULTIBYTE): Use it.
984 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
985 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
986 (message_dolog, set_message_1):
987 * search.c (Freplace_match):
988 * editfns.c (Fcompare_buffer_substrings):
989 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
990 (concat):
991 * insdel.c (copy_text, count_size_as_multibyte):
992 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
993 * term.c (produce_glyphs):
994 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
995 * regex.c (RE_CHAR_TO_MULTIBYTE):
996 * cmds.c (internal_self_insert):
997 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
998
999 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1000
1001 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1002
1003 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1004
1005 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
1006
1007 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1008
1009 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1010
1011 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1012 still needed under Tiger.
1013
1014 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1015
1016 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1017 __Apple__.
1018
1019 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1020
1021 2009-10-15 Kenichi Handa <handa@m17n.org>
1022
1023 * print.c (print_object): Escape a symbol like "2E10" too.
1024
1025 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
1026
1027 Cleanups and changes for 64-bit compile under Snow Leopard.
1028 Based on suggestions by Erik Charlebois.
1029
1030 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1031
1032 * nsfont.m (ns_char_width): Replace deprecated call.
1033 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1034 cast argument.
1035 (nsfont_open): Use ns_char_width() everywhere.
1036 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
1037
1038 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1039
1040 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1041 where appropriate.
1042
1043 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1044 where appropriate.
1045 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1046 Use stringWithUTF8String.
1047 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1048
1049 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1050 Add formal protocol mention to inheritance.
1051 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1052
1053 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1054 Fix printf format.
1055 (ns_query_color): Use CGFloat where appropriate.
1056 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1057 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1058 argument.
1059
1060 * config.in (NS_HAVE_NSINTEGER): Drop.
1061
1062 * dbusbind.c (dbus-method-return-internal)
1063 (dbus-method-error-internal): Use long format in printf, and cast
1064 argument.
1065
1066 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1067 in printf, and cast argument.
1068
1069 * process.c (list_processes_1): Use long format in printf, and
1070 cast argument.
1071
1072 2009-10-11 Glenn Morris <rgm@gnu.org>
1073
1074 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1075
1076 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1077
1078 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1079 menu bar with a small width so it doesn't enlarge the frame.
1080
1081 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
1082
1083 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1084
1085 2009-10-06 Glenn Morris <rgm@gnu.org>
1086
1087 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1088 SOME_MACHINE_LISP (this enters indirectly via DOC).
1089
1090 2009-10-05 Eli Zaretskii <eliz@gnu.org>
1091
1092 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1093
1094 2009-10-04 Eli Zaretskii <eliz@gnu.org>
1095
1096 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1097 Doc fix.
1098
1099 2009-10-03 Martin Rudalics <rudalics@gmx.at>
1100
1101 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1102
1103 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
1104
1105 * lisp.h (Qdelete_directory_internal): Remove, because it is not
1106 used anymore outside fileio.c.
1107
1108 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1109
1110 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
1111
1112 * lisp.h (Qdelete_directory_internal):
1113 Declare, instead of Qdelete_directory.
1114
1115 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1116
1117 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1118
1119 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1120
1121 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
1122
1123 * fileio.c (Fdelete_directory_internal): Rename from
1124 Fdelete_directory. It is not a command anymore. It has no file
1125 name handler.
1126
1127 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1128
1129 * xdisp.c (get_next_display_element): Use an enum in last change.
1130
1131 2009-09-28 Kenichi Handa <handa@m17n.org>
1132
1133 * xdisp.c (get_next_display_element): Pay attention to
1134 unibyte_display_via_language_environment in handling
1135 Vnobreak_char_display.
1136
1137 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1138
1139 * nsterm.h (ns_app_name): New extern variable.
1140
1141 * nsterm.m (ns_app_name): New variable.
1142 (ns_term_init): Set and use it.
1143 (ns_term_shutdown): Use it.
1144
1145 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1146 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1147
1148 * nsfns.m (ns_set_name_iconic, ns_set_name)
1149 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1150 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1151
1152 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1153 Remove double-casting in client_data comparison.
1154
1155 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1156
1157 * keyboard.c (make_lispy_event): Remember last wheel direction.
1158 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1159
1160 2009-09-26 Glenn Morris <rgm@gnu.org>
1161
1162 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1163 internal.elc. Add term/pc-win.elc.
1164 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1165 term/x-win.elc.
1166 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1167 term/w32-win.elc.
1168 (NS_SUPPORT): New.
1169 (lisp): Add NS_SUPPORT.
1170 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1171
1172 2009-09-25 David Reitter <david.reitter@gmail.com>
1173
1174 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1175 on Mac OS X 10.6+ (bug#4513).
1176
1177 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1178
1179 * frame.c (xrdb_get_resource): Return nil for empty string resources;
1180 some parts of Emacs code (like font selection) don't grok them.
1181 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
1182
1183 2009-09-24 Andreas Schwab <schwab@redhat.com>
1184
1185 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1186
1187 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1188
1189 * dired.c (Fdirectory_files): Fix typo in docstring.
1190
1191 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1192
1193 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1194 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1195 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1196 under GNUstep.
1197 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1198
1199 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1200 glyph advancement.
1201
1202 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1203
1204 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
1205 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
1206
1207 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1208 deleted (bug #4492).
1209
1210 * nsfont.m (Vns_reg_to_script): New lisp variable.
1211 (syms_of_nsfont): Declare it.
1212 (ns_registry_to_script): New function.
1213 (ns_get_req_script): Call it.
1214 (ns_findfonts): Don't give up on non-unicode registry.
1215
1216 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1217
1218 2009-09-20 Tom Tromey <tromey@redhat.com>
1219
1220 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1221 batch mode (bug#4228).
1222
1223 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
1224
1225 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
1226 carefully. (Bug #4339)
1227
1228 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
1229
1230 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
1231
1232 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1233
1234 * emacs.c (inhibit_x_resources): Update doc string for NS.
1235 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
1236 legacy code for -NXHost. Fix error printf in daemon case.
1237
1238 * nsterm.h (ns_no_defaults): Remove.
1239
1240 * nsterm.m (ns_no_defaults): Remove.
1241 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1242 (ns_use_qd_smoothing): Remove legacy variable.
1243 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1244 don't update the NSWindow itself.
1245 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
1246 state detection and store user rect ourselves. (Bug #3581)
1247
1248 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1249 ns_use_qd_smoothing.
1250
1251 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1252 platform versions. Drop support for emacs-20-style face specs.
1253 (x-close-connection): Drop PSFlush() under OS X.
1254 (x-focus-frame): Activate the app first. (Bug #4180)
1255
1256 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
1257
1258 * emacs.c (inhibit_x_resources): New variable.
1259 (main) [HAVE_NS]: Don't process --quick command line option.
1260 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1261
1262 * lisp.h (inhibit_x_resources): Declare it extern.
1263
1264 * w32reg.c (x_get_string_resource):
1265 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1266
1267 2009-09-17 Eli Zaretskii <eliz@gnu.org>
1268
1269 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1270 Add lisp/term/internal.elc.
1271
1272 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1273
1274 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1275 (bug#4461).
1276
1277 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1278
1279 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1280
1281 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1282 (OBJECTS_MACHINE): Remove, unused.
1283
1284 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1285
1286 * frame.c (x_get_resource_string): Remove unused.
1287
1288 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1289
1290 * xterm.c (x_new_font): Call change_frame_size before calling
1291 x_set_window_size, in case frame size won't change.
1292
1293 * frame.c (x_set_font): Remove dead code.
1294
1295 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1296
1297 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1298
1299 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1300
1301 * lread.c (Fload): Don't output a message after loading an obsolete
1302 package any more (done in Lisp now).
1303
1304 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
1305
1306 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1307
1308 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1309
1310 * keymap.c (Fwhere_is_internal): Use nconc2.
1311
1312 2009-09-11 Alan Mackenzie <acm@muc.de>
1313
1314 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1315 batch mode.
1316
1317 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1318
1319 * xdisp.c (display_mode_element): Detect cycles.
1320
1321 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1322
1323 * keymap.c (where_is_internal): Don't erroneously return nil right after
1324 filling the cache.
1325 (where_is_internal_1): Fix up typo.
1326
1327 2009-09-11 Glenn Morris <rgm@gnu.org>
1328
1329 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1330 share a common doc-string.
1331
1332 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1333
1334 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1335 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1336
1337 * keymap.c (QCadvertised_binding): New constant.
1338 (syms_of_keymap): Initialize it.
1339 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1340 if applicable.
1341
1342 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1343
1344 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1345 (parse_menu_item): Streamline since bindings are recomputed all the
1346 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1347 more and don't support lmenu's menu-alias any more either.
1348
1349 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1350 (where_is_internal): Strip it down to only traverse the keymaps.
1351 Move the cache handling from Fwhere_is_internal to here.
1352 (Fwhere_is_internal): Move the handling of remapping and the choice of
1353 the best binding from where_is_internal to here.
1354 Unify the cached/noncached paths, so remapping is also handled
1355 correctly when the cache is used, and so the cache can be used to
1356 speed up remap-handling when applicable.
1357 Give preference to non-remapped bindings.
1358 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1359 non-remapped bindings.
1360 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1361 command remapping.
1362
1363 * xdisp.c (display_mode_element): Move list length limit from 50 to
1364 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1365
1366 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
1367
1368 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1369
1370 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1371
1372 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1373 (Bug#4334)
1374
1375 * keymap.c (where_is_internal): Filter out shadowed remappings.
1376 Assume that where_is_internal returns unshadowed bindings to simplify
1377 the code and get rid of the gotos. Use ASIZE.
1378
1379 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1380
1381 * xterm.c (x_focus_changed): If we get a focusout and pointer
1382 is invisible, make it visible.
1383
1384 * xterm.h: Remove condition for declaration of
1385 x_*_window_to_frame.
1386
1387 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1388
1389 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1390 initial terminal as well.
1391
1392 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1393
1394 * xterm.h: Rename x_non_menubar_window_to_frame to
1395 x_menubar_window_to_frame.
1396
1397 * xterm.c: Remove declarations also in xterm.h
1398 (XTmouse_position): Do not return valid positions
1399 for clicks in the menubar and the toolbar for Gtk+.
1400
1401 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1402 if the widget for the event has the same top level as a frame,
1403 return the frame.
1404 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1405 internal windows, bug #4122.
1406 (x_non_menubar_window_to_frame): Remove.
1407
1408 2009-09-02 Glenn Morris <rgm@gnu.org>
1409
1410 * buffer.c (default-major-mode): Move most of the doc from here...
1411 (major-mode): ... to here.
1412
1413 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
1414
1415 * process.c (wait_reading_process_output): Keep the descriptor
1416 when pty is used by a non-child process, e.g., in I/O buffer of
1417 GDB this allows inferior to be restarted.
1418
1419 2009-08-29 Eli Zaretskii <eliz@gnu.org>
1420
1421 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1422 both branches into one.
1423
1424 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1425
1426 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1427 (main): Use enable-multibyte-characters rather than
1428 default-enable-multibyte-characters. Output a warning message when
1429 running a unibyte session.
1430
1431 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1432
1433 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1434 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1435 (copy_data_segment): Also copy __program_vars section.
1436 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1437 (dump_it) [LC_DYLD_INFO]: Use it.
1438
1439 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1440
1441 2009-08-28 Eli Zaretskii <eliz@gnu.org>
1442
1443 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1444 $(SRC)/buildobj.h.
1445 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1446 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1447 $(SRC)/buildobj.h.
1448 (clean): Add buildobj.h.
1449
1450 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1451
1452 * print.c (print_object): Set escapeflag to 1 when printing
1453 hashtable keys and values.
1454
1455 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1456
1457 * lread.c (read_integer): Use doubles (and potentially return a float
1458 number) as we do in string-to-number.
1459 (read1): Use strtol to read integers, signal errors on strtol's
1460 overflow and use floats if strtol's output is too large for
1461 Elisp integers.
1462
1463 2009-08-27 Eli Zaretskii <eliz@gnu.org>
1464
1465 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1466 (make-buildobj-SH): Fix last change.
1467 (SRC): Move to before where it's first used.
1468
1469 2009-08-27 Kenichi Handa <handa@m17n.org>
1470
1471 * process.c (send_process): Use encode_coding_object instead of
1472 encode_coding_string to perform eol-conversion even if the string
1473 is unibyte.
1474
1475 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1476 character.
1477
1478 * cmds.c (Fself_insert_command): Avoid unnecessay
1479 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
1480
1481 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1482
1483 * callproc.c (Fcall_process): Remove always true #if.
1484
1485 * lisp.h: Replace #if 0 code for checking with text pointing to
1486 the --enable-checking configure flag.
1487
1488 * emacs.c (main): Mention the --enable-profiling configure flag
1489 instead of using CFLAGS.
1490
1491 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
1492
1493 * Makefile.in (buildobj.h): New target.
1494 (doc.o): Depend on it.
1495 (temacs${EXEEXT}): Don't generate buildobj.lst.
1496 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1497 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1498 ($(BLD)/doc.$(O)): Depend on it.
1499 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1500 provided by Eli Zaretskii.)
1501 ($(TEMACS)): Don't generate buildobj.lst.
1502 * doc.c: Include buildobj.h.
1503 (buildobj): New static variable.
1504 (Fsnarf_documentation): Use it, instead of opening and reading
1505 buildobj.lst.
1506
1507 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
1508
1509 * dbusbind.c (Fdbus_call_method)
1510 (Fdbus_call_method_asynchronously): Use English numeric format for
1511 timeout values in doc string.
1512
1513 2009-08-25 Kenichi Handa <handa@m17n.org>
1514
1515 * alloc.c (mark_char_table): New function.
1516 (mark_object): Use mark_char_table for a char-table.
1517
1518 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1519 (CHAR_TABLE_REF): Use it.
1520
1521 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
1522
1523 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1524 before invoking the newly build emacs to check for load-path
1525 shadowing.
1526
1527 2009-08-22 Glenn Morris <rgm@gnu.org>
1528
1529 * Makefile.in (bootstrap_exe): New variable.
1530 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1531 Use ${bootstrap_exe}.
1532
1533 2009-08-22 Eli Zaretskii <eliz@gnu.org>
1534
1535 * coding.h (encode_coding_string): Don't encode unibyte strings.
1536 (Bug#4047)
1537
1538 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
1539
1540 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1541
1542 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1543 intended as hotfix only.
1544 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1545
1546 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1547
1548 * nsterm.m (ns_get_color): Update documentation properly for last
1549 change, and clean up loose ends in the code left by it. Fix
1550 longstanding bug with 16-bit hex parsing, and add support for
1551 yet another X11 format (rgb:r/g/b) for compatibility.
1552 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1553 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1554
1555 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1556
1557 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1558
1559 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
1560
1561 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1562 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1563 (xd_initialize, xd_pending_messages): Check, whether
1564 $DBUS_SESSION_BUS_ADDRESS is set.
1565
1566 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1567
1568 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1569
1570 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1571
1572 2009-08-20 Glenn Morris <rgm@gnu.org>
1573
1574 * emacs.c (system-type): Doc fix.
1575
1576 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1577
1578 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1579 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1580
1581 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
1582
1583 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1584 New functions.
1585 (xd_initialize): Revert change from 2009-08-16.
1586
1587 2009-08-18 Kenichi Handa <handa@m17n.org>
1588
1589 * fontset.c (Ffontset_font): If a nil element is found in a
1590 font-group vector, return nil.
1591
1592 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
1593
1594 * process.c (status_notify): Don't perform redisplay.
1595 (Fdelete_process, list_processes_1, process_send_signal):
1596 Expliticly perform redisplay.
1597 (wait_reading_process_output): Always check process status, but
1598 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1599
1600 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
1601
1602 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
1603 (XFLOAT_INIT): New macro for storing a float value.
1604 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1605 * fns.c (sxhash): Copy out the value of a float in order to
1606 examine its bytes.
1607 * dbusbind.c (xd_append_arg): Likewise.
1608
1609 * emacs.c (main): Don't call syms_of_data twice.
1610
1611 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
1612
1613 * dbusbind.c (xd_initialize): Add connection file descriptor to
1614 input_wait_mask, in order to let select() detect, whether a new
1615 message has been arrived.
1616 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
1617
1618 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
1619
1620 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1621 New functions.
1622
1623 * lisp.h (xd_pending_messages): Declare.
1624
1625 * keyboard.c (readable_events): Call xd_pending_messages.
1626
1627 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
1628
1629 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
1630
1631 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1632
1633 * buffer.c (set_buffer_internal_1)
1634 (swap_out_buffer_local_variables): Check for unbound local
1635 variables (Bug#4138).
1636
1637 2009-08-14 Eli Zaretskii <eliz@gnu.org>
1638
1639 * process.c (create_pty): Fix last change.
1640
1641 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
1642
1643 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1644 (xbm_load_image): Caller changed.
1645 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
1646
1647 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
1648
1649 * process.c (create_pty): New function.
1650 (Fstart_process): Use it to allow Emacs to just associate a pty
1651 with the buffer. See associated change in gdb-mi.el.
1652 (list_processes_1): Deal with no program name.
1653 (start_process_unwind): Use pid == -2 to mean no process.
1654
1655 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1656
1657 * cmds.c (nonundocount): New global variable.
1658 (keys_of_cmds): Initialize it.
1659 (Fself_insert_command): Use it to combine upto 20 sequential chars
1660 into a single undo entry, just like the Qself_insert_command code in
1661 keyboard.c does.
1662 Call frame_make_pointer_invisible, also like the Qself_insert_command
1663 code in keyboard.c does.
1664 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1665 than its own local replacement for it.
1666
1667 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
1668
1669 * fns.c (concat): Don't re-set string length to its current value.
1670
1671 * coding.h (decode_coding_string, encode_coding_string):
1672 Use SBYTES macro.
1673
1674 * doprnt.c (doprnt_lisp): Delete unused function.
1675 (doprnt): Merge with doprnt1, discarding lispstrings code.
1676 * lisp.h (doprnt_lisp): Don't declare.
1677
1678 2009-08-07 Juri Linkov <juri@jurta.org>
1679
1680 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1681
1682 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1683
1684 * print.c (syms_of_print): Undo previous change.
1685
1686 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1687
1688 * lread.c (read1, syms_of_lread): Read hashtables back from the
1689 readable format.
1690
1691 * print.c (print_preprocess, print_object): Print hashtables fully
1692 and readably.
1693 (syms_of_print): Provide 'hashtable-print-readable.
1694
1695 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1696
1697 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1698 no family set.
1699 (nsfont_open): Handle case when entity has no family.
1700
1701 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1702
1703 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1704 element, not a list, for match case.
1705
1706 2009-07-28 Kenichi Handa <handa@m17n.org>
1707
1708 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1709 rigidly.
1710
1711 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1712 font_parse_xlfd. Check font properties more rigidly.
1713
1714 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1715
1716 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1717 bsd-common.h.
1718
1719 2009-07-27 Kenichi Handa <handa@m17n.org>
1720
1721 * xfaces.c (face_with_height): Call font_clear_prop.
1722
1723 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
1724
1725 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1726
1727 * xterm.c (x_term_init): Use Qx.
1728
1729 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1730
1731 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
1732 (ns_get_color): Revert 2009-07-16 change.
1733
1734 2009-07-25 Eli Zaretskii <eliz@gnu.org>
1735
1736 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1737 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
1738
1739 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
1740
1741 * coding.h (decode_coding_string, encode_coding_string):
1742 Use SCHARS macro.
1743
1744 * lread.c: Rewrite 2009-07-21 changes.
1745 (load_depth): Delete.
1746 (Qload_in_progress): New variable.
1747 (load_unwind): Don't reference load_depth or load_in_progress.
1748 (Fload): Likewise; specbind Qload_in_progress instead.
1749 (init_lread): Don't initialize load_depth.
1750 (syms_of_lread): Initialize and protect Qload_in_progress.
1751
1752 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1753
1754 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1755
1756 2009-07-23 Yavor Doganov <yavor@gnu.org>
1757
1758 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1759
1760 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1761
1762 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
1763 Bugs 3792, 3720, 2402.
1764 (ns_lookup_indexed_color): Check for bad index.
1765 (ns_index_color): Init unused slot to 0.
1766 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1767 Bug 3714, possibly 3082.
1768
1769 2009-07-22 Jason Rumney <jasonr@gnu.org>
1770
1771 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1772 Position IME window at cursor (Bug#2570).
1773 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1774 (globals_of_w32fns): Dynamically load functions required above.
1775
1776 * w32term.c (w32_draw_window_cursor): Send message to reposition
1777 any IME window.
1778
1779 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1780
1781 * fileio.c: Revert 2009-07-16 changes.
1782 (Vauto_save_include_big_deletions): New variable.
1783 (Fdo_auto_save): Disable auto-save only if
1784 auto-save-include-big-deletions is nil.
1785
1786 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1787
1788 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1789 the overflowed pixels into account (Bug#3879).
1790
1791 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
1792
1793 * lread.c (load_depth): New variable.
1794 (Fload, load_unwind, init_lread): Set it to the load recursion
1795 depth; set load_in_progress as a simple boolean based on the
1796 current load_depth. (Bug#3892)
1797
1798 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1799
1800 * nsfont.m (ns_has_attribute): Remove.
1801 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1802
1803 2009-07-18 Juri Linkov <juri@jurta.org>
1804
1805 * process.c (Fset_process_query_on_exit_flag): Mention killing
1806 a buffer in docstring.
1807
1808 2009-07-17 Kenichi Handa <handa@m17n.org>
1809
1810 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1811
1812 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1813
1814 * nsfns.m (Fns_set_alpha): Remove function.
1815 (syms_of_nsfns): Don't defsubr it.
1816
1817 * nsterm.m (ns_get_color): Remove incompatible color formats.
1818 (ns_color_to_lisp): Generate #rrggbb color format string.
1819
1820 2009-07-16 Richard Stallman <rms@gnu.org>
1821
1822 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1823 (Fset_buffer_auto_saved): Handle save_length = -2.
1824
1825 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
1826
1827 * xterm.c (Qx_gtk_map_stock): New var.
1828
1829 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1830 of calling intern each time.
1831
1832 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1833
1834 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1835 does tiling.
1836
1837 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1838
1839 2009-07-14 Kenichi Handa <handa@m17n.org>
1840
1841 * font.c (font_vconcat_entity_vectors): New function.
1842 (struct font_sort_data): New member font_driver_preference.
1843 (font_compare): Check font_driver_preference.
1844 (font_sort_entities): The format of the first argument changed.
1845 (font_delete_unmatched): Likewise.
1846 (font_list_entities): The return type changed.
1847 (font_select_entity): The format of the second argument changed.
1848 (font_find_for_lface): Adjuste for the above changes.
1849 Don't suppress the checking of C even if the repertory supports it.
1850 (Flist_fonts): Adjust for the above changes.
1851
1852 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1853 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
1854 Reject a font who has adstyle property that is different from a
1855 langname derived from registry property.
1856 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
1857
1858 2009-07-13 Eli Zaretskii <eliz@gnu.org>
1859
1860 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1861 local copy of dirfilename.
1862
1863 2009-07-13 Kenichi Handa <handa@m17n.org>
1864
1865 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1866 against max_char.
1867
1868 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1869 calling XSYMBOL (sym).
1870
1871 2009-07-11 Eli Zaretskii <eliz@gnu.org>
1872
1873 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1874 New function.
1875 (directory_files_internal) [WINDOWSNT]:
1876 Bind w32-get-true-file-attributes to either t or nil, depending whether
1877 the filesystem of the directory is fast or slow.
1878
1879 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1880 file name.
1881 (is_slow_fs): New function.
1882 (stat): Use it to determine whether to issue more system calls to
1883 get accurate file attributes, when w32-get-true-file-attributes is
1884 `local'.
1885
1886 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1887
1888 * xfns.c (Fx_select_font): Remember last font selected in
1889 x_last_font_name and use that the next time. Also try the frame
1890 parameter font-parameter as default to the font dialog.
1891
1892 2009-07-10 Kenichi Handa <handa@m17n.org>
1893
1894 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1895
1896 2009-07-09 Eli Zaretskii <eliz@gnu.org>
1897
1898 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1899
1900 * w32.c (stat): Treat UNC file names as residing on remote
1901 drives. (Bug#3542)
1902
1903 2009-07-09 Kenichi Handa <handa@m17n.org>
1904
1905 * fontset.c (fontset_find_font): Fix previous change.
1906
1907 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
1908
1909 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1910 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1911 error flag.
1912
1913 2009-07-08 Kenichi Handa <handa@m17n.org>
1914
1915 * fontset.c (fontset_find_font): Fix the logic of handling
1916 charset_matched.
1917 (font_for_char): Delete unused var.
1918 (generate_ascii_font_name): Delete it.
1919
1920 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1921
1922 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1923 (encode_coding_sjis): Fix the code range check.
1924
1925 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
1926
1927 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1928 (Fexpand_file_name): Copy string data properly (Bug#3772).
1929
1930 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1931
1932 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1933 first MapNotify.
1934
1935 2009-07-07 Kenichi Handa <handa@m17n.org>
1936
1937 * character.h (unibyte_has_multibyte_table): Delete extern.
1938 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1939
1940 * charset.c (Fset_charset_priority): Update charset_unibyte.
1941 (syms_of_charset): Initialize charset_unibyte.
1942
1943 * character.c (unibyte_has_multibyte_table): Delete it.
1944 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1945 charset_unibyte.
1946 (multibyte_char_to_unibyte_safe): Likewise.
1947 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1948
1949 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
1950 (x_produce_glyphs): Likewise.
1951
1952 * .gdbinit (xcharset): Fix the treating $arg0.
1953
1954 2009-07-04 Eli Zaretskii <eliz@gnu.org>
1955
1956 Emulation of `getloadavg' on MS-Windows.
1957 * w32.c: Include float.h
1958 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1959 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1960 (get_native_system_info, get_system_times): New functions.
1961 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1962 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1963 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1964 g_b_init_get_system_times, and num_of_processors.
1965
1966 2009-07-03 Jason Rumney <jasonr@gnu.org>
1967
1968 * w32term.c (w32_initialize): Use standard types.
1969
1970 2009-07-03 Eli Zaretskii <eliz@gnu.org>
1971
1972 * dired.c (Ffile_attributes): Decode user and group names by the
1973 locale's encoding. (Bug#3443)
1974
1975 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1976
1977 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1978 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1979
1980 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1981
1982 * term.c (init_tty): Remove spurious #ifdef.
1983
1984 * m/mips.h: Mention this file is also used for netbsd.
1985 * m/pmax.h: Remove file.
1986
1987 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1988
1989 * xterm.h (struct x_display_info): Add invisible_cursor.
1990 (struct x_output): Add current_cursor.
1991
1992 * xterm.c (XTtoggle_invisible_pointer): New function.
1993 (x_define_frame_cursor): Don't define cursor if invisible or the
1994 same as before. Set current_cursor.
1995 (x_create_terminal): Set toggle_invisible_pointer_hook.
1996
1997 * xfns.c (make_invisible_cursor): New function.
1998 (x_set_mouse_color): Call make_invisible_cursor.
1999 Set current_cursor.
2000 (x_window): Set current_cursor.
2001
2002 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2003
2004 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2005 inserting a character.
2006 (read_avail_input): Call frame_make_pointer_visible.
2007
2008 * frame.c (Vmake_pointer_invisible): New variable.
2009 (frame_make_pointer_invisible, frame_make_pointer_visible):
2010 New functions.
2011 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2012
2013 * frame.h: Declare frame_make_pointer_invisible and
2014 frame_make_pointer_visible.
2015 (struct frame): Add pointer_invisible.
2016
2017 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2018
2019 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2020 frame isn't visible.
2021 (xg_frame_resized): If width/height is -1, get size of window
2022 from X server.
2023
2024 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2025 for MapNotify.
2026
2027 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
2028 here or call change_frame_size. Just call flush_and_sync.
2029 (flush_and_sync): Reintroduce.
2030
2031 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
2032
2033 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
2034
2035 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2036 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2037
2038 * frame.h: Declare Qsticky.
2039
2040 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2041
2042 * nsfns.m (ns_frame_parm_handlers): Ditto.
2043
2044 * frame.c: Declare Qsticky.
2045 (frame_parms): Add sticky.
2046
2047 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2048
2049 * xterm.h: Declare x_set_sticky.
2050
2051 * xterm.c (x_set_sticky): New function.
2052
2053 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2054 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2055 xg_tool_bar_proxy_help_callback.
2056
2057 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2058
2059 * frame.c: Qmaximized is new.
2060 (x_set_frame_parameters): Do not handle fullscreen specially.
2061 Only set width and height if explicitly set.
2062 (x_set_fullscreen): Handle Qmaximized.
2063 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2064 (syms_of_frame): Initialize Qmaximized.
2065
2066 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2067 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
2068
2069 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
2070 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2071 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
2072 set gravity to NorthWestGravity when USE_GTK.
2073 (set_wm_state): New function.
2074 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
2075 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2076 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
2077 or the case when no window manager is running. That means remove calls
2078 to x_real_positions and x_fullscreen_adjust.
2079
2080 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2081 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2082 flush_and_sync.
2083 (xg_height_changed): New function.
2084 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
2085 and gtk_window_set_policy. Set frame gravity after parsing the
2086 geometry string.
2087 (xg_update_frame_menubar, free_frame_menubar)
2088 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2089 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2090 Remove calls to xg_frame_set_char_size.
2091
2092 2009-07-01 Kenichi Handa <handa@m17n.org>
2093
2094 * keyboard.c (decode_keyboard_code): New function.
2095 (tty_read_avail_input): Decode the input bytes if necessary.
2096
2097 * coding.c (setup_coding_system):
2098 Initialize coding->carryover_bytes to 0.
2099 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2100 use Qno_conversion.
2101
2102 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2103
2104 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2105
2106 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
2107
2108 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
2109
2110 2009-06-30 Jason Rumney <jasonr@gnu.org>
2111
2112 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2113 is already loaded.
2114 Set user model ID if supported (bug#1849).
2115
2116 2009-06-29 Jim Meyering <meyering@redhat.com>
2117
2118 Remove useless if-before-xfree test.
2119 * nsfont.m (nsfont_close): Remove useless test.
2120 * term.c (delete_tty): Likewise.
2121 * w32.c (system_process_attributes): Likewise.
2122 * w32font.c (w32font_close): Likewise.
2123 * xfaces.c (x_free_gc): Likewise.
2124 * xselect.c (buffer): Likewise.
2125
2126 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2127
2128 * process.c (send_process): Keep decoded string in a local
2129 variable and protect it from GC. (Bug#3521)
2130
2131 2009-06-28 Eli Zaretskii <eliz@gnu.org>
2132
2133 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2134 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2135
2136 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
2137
2138 * xdisp.c (start_display, handle_face_prop)
2139 (move_it_vertically_backward, cursor_row_fully_visible_p)
2140 (redisplay_window, try_window_id, produce_image_glyph):
2141 Delete some #ifdef-ed out code chunks that are now obsolete.
2142
2143 * xterm.c (x_update_window_begin, x_new_focus_frame)
2144 (x_scroll_bar_handle_click, handle_one_xevent)
2145 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2146 (x_make_frame_visible, x_make_frame_invisible)
2147 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2148 code chunks that are now obsolete.
2149
2150 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
2151
2152 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2153 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2154 for hours, when optimzation is enabled.
2155 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2156 (xd_read_message): Make them static.
2157
2158 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2159
2160 * term.c (turn_on_face): Allow simultaneously bold and dim
2161 terminal faces (Bug#3530).
2162
2163 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
2164
2165 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2166
2167 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2168 truncation glyphs (Bug#3686).
2169
2170 2009-06-27 Glenn Morris <rgm@gnu.org>
2171
2172 * m/pmax.h: Restore file, with only netbsd portions.
2173
2174 2009-06-26 David Reitter <david.reitter@gmail.com>
2175
2176 * nsterm.m (keydown): Avoid infinite loop.
2177
2178 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2179
2180 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2181 the arg FORCE_SYMBOL.
2182
2183 2009-06-25 Kenichi Handa <handa@m17n.org>
2184
2185 * fontset.c (fontset_find_font): When a usable rfont_def is found
2186 in a fallback font-group, make it the first element of the group.
2187
2188 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
2189
2190 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2191
2192 2009-06-24 Kenichi Handa <handa@m17n.org>
2193
2194 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2195 set for C.
2196 (fontset_font): Record the availability of a font for C both in
2197 the realized fontsets of the current one and the default one.
2198
2199 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2200
2201 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2202 conditional, it is always defined on AIX.
2203
2204 2009-06-23 Miles Bader <miles@gnu.org>
2205
2206 * window.c (Vrecenter_redisplay): New variable.
2207 (syms_of_window): Initialize it.
2208 (Qtty): New extern declaration.
2209 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2210
2211 2009-06-23 Jim Meyering <meyering@redhat.com>
2212
2213 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2214 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
2215 pointer dereferences are guaranteed to be valid.
2216
2217 2009-06-23 Kenichi Handa <handa@m17n.org>
2218
2219 * emacs.c (main): Call init_font ().
2220
2221 * font.h (Vfont_log): Extern it.
2222 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2223
2224 * font.c (font_sort_entities, font_list_entities)
2225 (font_matching_entity, font_open_entity)
2226 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2227 (Vfont_log): Delete static.
2228 (font_log_env_checked): Delete this variable.
2229 (font_add_log): Don't check font_log_env_checked.
2230 (font_deferred_log): Check Vfont_log.
2231 (init_font): New function.
2232
2233 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2234
2235 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2236
2237 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2238
2239 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2240
2241 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2242 (face_for_char): Don't call font_deferred_log here.
2243 (font_for_char): Likewise.
2244
2245 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
2246
2247 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2248 rather than its background_width for drawing the overline and
2249 underline (Bug#489).
2250
2251 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2252 rather than its background_width for drawing the overline and
2253 underline (Bug#489).
2254 (xg_default_icon_file): New variable.
2255 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2256 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
2257
2258 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2259 (load_overlay_strings): Remove externs.
2260 (fast_find_position): Function deleted.
2261 (mouse_face_from_buffer_pos): New function, based on
2262 fast_find_position. Correctly handle before-strings,
2263 display-strings, and after-strings (Bug#1220).
2264 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2265
2266 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2267
2268 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
2269 (move_it_in_display_line_to, move_it_in_display_line_to)
2270 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2271
2272 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2273
2274 * Branch for 23.1.
2275
2276 2009-06-21 Jason Rumney <jasonr@gnu.org>
2277
2278 * w32term.c (keyboard_codepage): New static variable.
2279 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2280 (w32_read_socket) [WM_CHAR]: Use it to decode character
2281 input (bug#3237).
2282 (w32_initialize): Initialize it.
2283 (codepage_for_locale): New function.
2284
2285 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
2286
2287 * process.c (status_message): Pass Faset index argument as a lisp
2288 object, so as to work with USE_LISP_UNION_TYPE.
2289
2290 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2291
2292 * coding.c (Ffind_coding_systems_region_internal):
2293 Cache checked characters.
2294
2295 2009-06-18 Kenichi Handa <handa@m17n.org>
2296
2297 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
2298
2299 2009-06-18 Andreas Schwab <aschwab@redhat.com>
2300
2301 * xdisp.c (redisplay_internal): Check that the frame is still
2302 live after redisplay of its windows.
2303 (redisplay_windows): Check that the window is still live.
2304
2305 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2306
2307 * coding.c (detect_coding_utf_16): Fix previous change.
2308
2309 2009-06-16 Kenichi Handa <handa@m17n.org>
2310
2311 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2312 UTF-16 by checking the dispersion of Eth and Oth bytes.
2313
2314 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2315
2316 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2317
2318 2009-06-15 Kenichi Handa <handa@m17n.org>
2319
2320 * process.c (status_message): Fix previous change. Be sure to
2321 decode a localized string.
2322
2323 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2324
2325 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2326 add comment explaining why.
2327
2328 2009-06-14 Sidney Markowitz <sidney@sidney.com>
2329
2330 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
2331
2332 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2333
2334 * nsfont.m (ns_attribute_value): Remove.
2335 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2336 (ns_has_attribute): Shrink the normal range.
2337 (ns_findfonts): Don't worry about requested spec in determining
2338 need for synthItal.
2339 (ns_get_covering_families): Retain scriptToFamilies.
2340
2341 2009-06-14 Seiji Zenitani <zenitani@mac.com>
2342
2343 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2344
2345 2009-06-11 Kenichi Handa <handa@m17n.org>
2346
2347 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2348 overhang for the static composition case.
2349
2350 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2351
2352 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2353 overhang for the automatic composition case.
2354
2355 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2356 composition case.
2357
2358 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
2359
2360 * xdisp.c (get_next_display_element): When handling wrap-prefix
2361 and line-prefix, treat \n as a control character (bug#3502).
2362
2363 2009-06-10 Kenichi Handa <handa@m17n.org>
2364
2365 * font.c (font_parse_family_registry): Fix for one-char foundry.
2366 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2367
2368 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2369
2370 * process.c (status_message): Fix handling of multibyte signal
2371 string (Bug#3499).
2372
2373 2009-06-09 Jim Meyering <meyering@redhat.com>
2374
2375 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2376 color name is missing.
2377
2378 2009-06-09 Kenichi Handa <handa@m17n.org>
2379
2380 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2381 FROM-CODE and TO-CODE are codepoints of CHARSET.
2382
2383 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2384
2385 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2386
2387 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2388
2389 Changes to support :script/:lang/:otf in NS font driver.
2390 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2391 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2392 indicate not part of font driver interface, and change callers.
2393 (ns_get_family): Remove pointless null check.
2394 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2395 ns_spec_to_descriptor, ns_descriptor_to_entity.
2396 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2397 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2398 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2399 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2400 (ns_get_req_script, ns_accumulate_script_ranges)
2401 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2402 New functions.
2403 (nsfont_list, nsfont_match): Use ns_findfonts.
2404 (nsfont_open): Use font descriptor instead of traits.
2405 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2406 (dump_glyphstring): Rename to ns_dump_glyphstring.
2407
2408 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2409
2410 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2411
2412 * fontset.c (fontset_from_font): Remove NS-specific code.
2413
2414 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
2415
2416 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2417 nonactive windows.
2418
2419 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
2420
2421 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
2422
2423 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2424
2425 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2426
2427 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
2428
2429 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2430 account for the overflowing of newlines into the last glyph on the
2431 display line (Bug#3482).
2432
2433 2009-06-05 David Reitter <david.reitter@gmail.com>
2434
2435 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2436 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
2437 Fns_selection_exists_p, Fns_selection_owner_p.
2438
2439 2009-06-03 Jason Rumney <jasonr@gnu.org>
2440
2441 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2442 available. (Bug#3379)
2443
2444 2009-05-29 Kenichi Handa <handa@m17n.org>
2445
2446 * coding.c (get_translation_table):
2447 Check Venable_character_translation.
2448
2449 2009-05-26 David Reitter <david.reitter@gmail.com>
2450
2451 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2452 (x_make_frame_visible): Move frame to front rather than calling
2453 ns_raise_frame().
2454 (keyDown:): Do not swallow events that aren't re-sent if frame
2455 isn't key window.
2456 (drawRect:): Do not set visibility/iconified flags because
2457 drawRect may be called by NSView even if the frame is hidden.
2458
2459 * nsfns.m (Fx_create_frame): Follow other ports in
2460 determining visibility; default to t. Ensure async_visible is set.
2461
2462 2009-05-23 Eli Zaretskii <eliz@gnu.org>
2463
2464 * dired.c (Ffile_attributes): Doc fix.
2465
2466 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
2467
2468 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2469
2470 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2471
2472 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2473 and xfont_scratch_props.
2474 (syms_of_xfont): Do it here instead.
2475 (xfont_find_ccl_program): Delete, unused.
2476 (xfont_open): Delete unused var `i'.
2477
2478 2009-05-21 Kenichi Handa <handa@m17n.org>
2479
2480 * fontset.c (Qlatin): Don't make it static.
2481
2482 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2483 New functions.
2484 (xfont_scripts_cache, xfont_scratch_props): New variables.
2485 (Qlatin, Vscalable_fonts_allowed): Extern it.
2486 (xfont_list_pattern): Argument changed. Callers changed.
2487 Check Vscalable_fonts_allowed. Check the support of a script.
2488 (xfont_list): Don't reject a font spec with :script property.
2489 (xfont_has_char): Fix setting of encoding.
2490 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2491 xfont_scratch_props.
2492
2493 2009-05-19 Kenichi Handa <handa@m17n.org>
2494
2495 * font.c (font_sort_entities): Rename from font_sort_entites.
2496 Callers changed.
2497
2498 2009-05-18 Kenichi Handa <handa@m17n.org>
2499
2500 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2501
2502 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2503
2504 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2505 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2506
2507 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2508
2509 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2510 (x_delete_terminal): Dissociate resource database from display and
2511 then call XrmDestroyDatabase before closing display.
2512
2513 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2514
2515 * nsterm.m (ns_read_socket): Remove unused variable.
2516 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2517 whether selected frame is viable before raising it (based on patch
2518 by David Reitter), and improve commentary.
2519 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
2520
2521 2009-05-15 Kenichi Handa <handa@m17n.org>
2522
2523 * font.c (Ffont_spec): Check arguments.
2524
2525 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
2526
2527 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2528 weight when testing attributes (Bug#3282).
2529
2530 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2531
2532 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2533 what we expect to get in the next ConfigureNotify event.
2534
2535 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2536 before Xft one (Bug#1696).
2537
2538 2009-05-07 David Reitter <david.reitter@gmail.com>
2539
2540 * nsfns.m (Fx_display_planes): Compute bitplanes using
2541 NSBitsPerPixelFromDepth (Bug#3207).
2542
2543 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
2544
2545 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2546
2547 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
2548
2549 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2550
2551 2009-05-07 David Reitter <david.reitter@gmail.com>
2552
2553 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2554 Respect mouse face background.
2555
2556 2009-05-07 David Reitter <david.reitter@gmail.com>
2557
2558 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2559 Mouse movement/highlight: bracket drawing operations
2560 in ns_update_begin and ns_update_end.
2561
2562 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2563
2564 * nsfns.m (ns_get_screen): Rewrite.
2565 Don't presume selected-frame is of type `ns'.
2566
2567 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2568 all drivers.
2569
2570 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2571
2572 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2573
2574 * keyboard.h (add_user_signal): Fix typo in extern.
2575
2576 * lisp.h (add_user_signal): Remove extern.
2577
2578 * unexelf.c (unexec): Consider a section to precede the .bss section
2579 if its addresses overlap that of .bss.
2580 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2581 instead of dumping process.
2582
2583 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2584
2585 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2586
2587 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2588
2589 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2590
2591 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2592
2593 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2594 any statements.
2595
2596 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2597
2598 * process.c (read_process_output): Make sure the current buffer is
2599 always restored.
2600
2601 * coding.c (record_conversion_result): Don't modify
2602 Vlast_code_conversion_error for successful result.
2603 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2604
2605 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2606
2607 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
2608 (load_charset_map): Remove unnecessary code.
2609
2610 2009-04-30 David Reitter <david.reitter@gmail.com>
2611
2612 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
2613 through f24.
2614
2615 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
2616
2617 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2618
2619 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2620 face_at_buffer_position.
2621 (face_before_or_after_it_pos, get_next_display_element)
2622 (note_mouse_highlight): Update face_at_buffer_position call.
2623
2624 * term.c (term_mouse_highlight):
2625 * msdos.c (IT_note_mouse_highlight):
2626 * fontset.c (Finternal_char_font):
2627 * font.c (font_at, font_range): Update face_at_buffer_position call.
2628
2629 * dispextern.h (face_at_buffer_position): Update prototype.
2630
2631 2009-04-30 Kenichi Handa <handa@m17n.org>
2632
2633 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
2634
2635 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2636
2637 * callproc.c (Fcall_process): Fix GC protection. Make sure
2638 current buffer is always restored.
2639
2640 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2641
2642 * atimer.c (init_atimer): Also clear stopped_atimers.
2643
2644 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2645
2646 * process.c (create_process): Clean up merger residues of
2647 2008-07-17 change.
2648
2649 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
2650
2651 * lread.c (Vread_circle): New variable.
2652 (read1): Disable recursive read if Vread_circle is nil.
2653
2654 2009-04-29 Kenichi Handa <handa@m17n.org>
2655
2656 * fontset.h (set_default_ascii_font): Delete extern.
2657
2658 * fontset.c (set_default_ascii_font): Delete this unused function.
2659
2660 * frame.c (x_set_font): When ARG is a font-object, check if the
2661 font-object matches with the ASCII font-spec of the frame's
2662 fontset. If not, create a new fontset for the frame. (Bug #3075)
2663
2664 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2665
2666 * fns.c (Flocale_info): Protect vector from GC during decoding.
2667
2668 * process.c (Fstart_process): Protect argv strings from GC during
2669 encoding.
2670
2671 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2672
2673 * sysdep.c: Include <ctype.h>.
2674
2675 2009-04-27 David Reitter <david.reitter@gmail.com>
2676
2677 * nsfont.m (nsfont_open): Remove unused variable shrink.
2678 Remove commented-out code.
2679
2680 2009-04-26 Johan Bockgård <bojohan@gnu.org>
2681
2682 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2683
2684 2009-04-25 Jason Rumney <jasonr@gnu.org>
2685
2686 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2687
2688 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2689
2690 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2691 Swap bytes in short integer if fringe bitmap width > 8.
2692
2693 2009-04-23 Kenichi Handa <handa@m17n.org>
2694
2695 * xfaces.c (Fx_list_fonts): If a font size is specified in
2696 PATTERN, set it in returned scalable fonts.
2697
2698 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
2699
2700 * keyboard.c (Fset_input_meta_mode): Doc fix.
2701
2702 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2703
2704 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
2705
2706 * coding.c (Fterminal_coding_system): Doc fix.
2707
2708 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2709 (Fx_display_pixel_height, Fx_display_planes)
2710 (Fx_display_color_cells, Fx_server_max_request_size)
2711 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2712 (Fx_display_mm_height, Fx_display_mm_width)
2713 (Fx_display_backing_store, Fx_display_visual_class)
2714 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2715 Doc fixes, replacing "terminal id" with "terminal object".
2716 (check_x_display_info): Handle terminal objects instead of
2717 terminal ids.
2718
2719 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2720 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
2721 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2722 Doc fixes, replacing "terminal id" with "terminal object".
2723
2724 2009-04-21 Kenichi Handa <handa@m17n.org>
2725
2726 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
2727 (font_score): Check AVGWIDTH too.
2728
2729 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2730 worst case.
2731 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2732 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
2733
2734 2009-04-19 Jason Rumney <jasonr@gnu.org>
2735
2736 The following changes fix Bug#3005 for wide glyphs on each platform,
2737 without reintroducing Bug#1258 for stretch glyphs.
2738
2739 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2740 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2741 get_phys_cursor_geometry.
2742
2743 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
2744 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2745 using get_phys_cursor_geometry.
2746
2747 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2748 correctly calculated.
2749
2750 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2751
2752 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2753 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
2754 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2755 is deprecated.
2756
2757 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2758
2759 * font.c (font_put_frame_data): Use xfree instead of free.
2760
2761 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
2762
2763 * w32font.c (Qja, Qko): Remove declarations.
2764 (syms_of_w32font): Don't DEFSYM them.
2765
2766 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
2767
2768 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2769
2770 * font.h (Qja, Qko): Extern them.
2771
2772 * ftfont.c (Qja, Qko): Remove declarations.
2773
2774 * xfont.c (Qja, Qko): Remove declarations.
2775
2776 2009-04-17 Kenichi Handa <handa@m17n.org>
2777
2778 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2779 string from a vector to handle Latin-1 characters correctly.
2780
2781 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2782 entity even if the cache hits.
2783
2784 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2785
2786 * search.c (boyer_moore): Use zero as marker value for a possible
2787 match instead of depending on overflow behavior. (Bug#2844)
2788
2789 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2790 * lisp.h: Adjust prototypes.
2791
2792 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
2793
2794 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2795 change (Bug#3003).
2796
2797 2009-04-16 Kenichi Handa <handa@m17n.org>
2798
2799 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
2800
2801 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2802 adstyle.
2803
2804 * ftfont.c (Qja, Qko): Don't make them static.
2805 (enum ftfont_cache_for): New enum.
2806 (fc_charset_table): Undo the previous change.
2807 (ftfont_get_latin1_charset): Delete it.
2808 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2809 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
2810 non-scarable font, try to get AVERAGE_WIDTH.
2811 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2812 Change ft_face_cache from a list of a hash-table. Don't check
2813 `ja' and `ko' adstyle here.
2814 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2815 FTFONT_CACHE_FOR_CHARET.
2816 (ftfont_get_charset): Undo the previous change.
2817 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
2818 (ftfont_close): Likewise.
2819 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2820
2821 * font.c (font_sort_entites): Change the meaning of the arg
2822 BEST-ONLY. Don't optimize for VEC of lenght 1.
2823 (font_select_entity): Just return the value of font_sort_entites.
2824
2825 * xfaces.c (merge_face_vectors): Reflect font properties in
2826 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2827 font_clear_prop if a face attribute doesn't change.
2828
2829 * charset.h (charset_ksc5601): Extern it.
2830
2831 * charset.c (charset_ksc5601): New variable.
2832 (Fdefine_charset_internal): Set charset_ksc5601.
2833 (init_charset_once): Initialize charset_ksc5601 to -1.
2834
2835 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2836
2837 * fileio.c (history_delete_duplicates): Remove unused declaration.
2838
2839 * callint.c (history_delete_duplicates): New declaration.
2840 (Fcall_interactively): Remove command history duplicates when
2841 history_delete_duplicates is true.
2842
2843 2009-04-14 Eli Zaretskii <eliz@gnu.org>
2844
2845 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2846
2847 2009-04-14 Kenichi Handa <handa@m17n.org>
2848
2849 * font.c (Ffont_info): Fix docstring. Fix the second element of
2850 the returned value (bug#2949).
2851
2852 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
2853
2854 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2855
2856 2009-04-14 Kenichi Handa <handa@m17n.org>
2857
2858 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2859 encoding charset is ascii_compatible.
2860
2861 * charset.c (Fdefine_charset_internal): Make charset
2862 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2863 code_offset is 0, and covers all ASCII characters.
2864
2865 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2866
2867 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2868 (ns_string_to_pasteboard_internal):
2869 * nsmenu.m (process_dialog):
2870 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2871 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2872 * lisp.h (Fx_load_color_file): Declare.
2873
2874 2009-04-13 Kenichi Handa <handa@m17n.org>
2875
2876 * font.c (font_delete_unmatched): Preserve the order of list elements.
2877 (font_select_entity): Suppress the code to optimize for the same
2878 kind of fonts.
2879 (font_load_for_lface): Get a font that supports at least ASCII
2880 characters.
2881
2882 * ftfont.c (Qja, Qko): New variables.
2883 (fc_charset_table): Delete uniquifier data for iso8859-1.
2884 (ftfont_get_latin1_charset): New function.
2885 (get_adstyle_property): New function.
2886 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2887 bitmap fonts.
2888 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2889 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2890 `ko' or `ja'.
2891 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
2892 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
2893 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2894 property.
2895 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2896 (syms_of_ftfont): DEFSYM Qja and Qko.
2897
2898 2009-04-09 Kenichi Handa <handa@m17n.org>
2899
2900 * charset.c (map_charset_chars): For a charset of `superset'
2901 method, fix calculation of code range.
2902
2903 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2904 from the list of extra properties.
2905 (font_clear_prop): Be sure to delete `:name' font property.
2906
2907 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2908
2909 * dispnew.c (redraw_overlapping_rows): Fix detection of
2910 overlapping for topmost and bottommost rows.
2911
2912 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
2913
2914 2009-04-06 Jason Rumney <jasonr@gnu.org>
2915
2916 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2917
2918 2009-04-06 Kenichi Handa <handa@m17n.org>
2919
2920 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2921
2922 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2923
2924 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2925
2926 * ftfont.c (ftfont_open): Fix checking of the return value of
2927 FT_Load_Char. Fix setting font->underline_thickness.
2928
2929 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
2930
2931 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2932 (Fterminal_parameters, Fterminal_parameter)
2933 (Fset_terminal_parameter): In doc string, refer to terminal
2934 objects rather than terminal ids.
2935
2936 2009-04-04 Eli Zaretskii <eliz@gnu.org>
2937
2938 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2939 ret_lim_data. (Bug#2867)
2940
2941 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
2942
2943 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2944 so they don't get wider than the window, matching 2006-01-23
2945 change to the partner function in xdisp.c (Bug#2800).
2946
2947 2009-04-03 Kenichi Handa <handa@m17n.org>
2948
2949 * print.c (print_object): Make each lowest sub_char_table start a
2950 new line (Bug#2866).
2951
2952 2009-04-02 Kenichi Handa <handa@m17n.org>
2953
2954 * fontset.c (fontset_font): Record no-font when a fontset
2955 explicitly tells not to try another font-specs.
2956
2957 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2958
2959 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2960
2961 2009-03-30 Kenichi Handa <handa@m17n.org>
2962
2963 * fontset.c (fontset_from_font): Specify only registry in a
2964 font-spec for all characters supported by that registry.
2965
2966 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2967 even if HAVE_M17N_FLT is not defined.
2968
2969 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2970
2971 * ftfont.c: Conditionalize prototyping and use of
2972 ftfont_variation_glyphs.
2973
2974 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2975
2976 * frame.c (delete_frame): Work around compiler bug.
2977
2978 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2979 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2980 Some more EMACS_INT.
2981 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2982
2983 * xdisp.c (dump_glyph): Fix typo.
2984
2985 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2986 (adjust_markers_gap_motion, adjust_markers_for_delete)
2987 (adjust_markers_for_insert, adjust_point)
2988 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2989 (make_gap, copy_text, count_size_as_multibyte, insert)
2990 (insert_and_inherit, insert_before_markers)
2991 (insert_before_markers_and_inherit, insert_1)
2992 (count_combining_before, count_combining_after, insert_1_both)
2993 (insert_from_string, insert_from_string_before_markers)
2994 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2995 (insert_from_buffer_1, adjust_after_replace)
2996 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2997 (replace_range_2, del_range, del_range_1, del_range_byte)
2998 (del_range_both, del_range_2, modify_region)
2999 (prepare_to_modify_buffer, signal_before_change)
3000 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3001 for buffer positions and sizes.
3002 * lisp.h: Adjust prototypes accordingly.
3003
3004 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3005 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3006 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3007
3008 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3009
3010 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3011
3012 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3013 lines and columns so we keep the same pixel height and width.
3014
3015 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3016 the property _NET_WM_STATE has changed.
3017 (x_handle_net_wm_state): New function to update frame parameter
3018 fullscreen.
3019 (x_term_init): Initialize atoms for _NET_WM_STATE.
3020
3021 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3022
3023 2009-03-27 Kevin Ryde <user42@zip.com.au>
3024
3025 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3026 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3027 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3028 (Fgpm_mouse_stop): Pass that new parameter.
3029 * termhooks.h (close_gpm): Adjust prototype.
3030
3031 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3032
3033 * lisp.h (Fx_focus_frame): Declare.
3034
3035 * callint.c (Fcall_interactively): For '^' just delegate the work to
3036 handle-shift-selection.
3037 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3038
3039 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
3040
3041 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3042
3043 * data.c (Qinteractive_form): New variable.
3044 (Finteractive_form): Use it.
3045
3046 * eval.c (Fcommandp): Use Qinteractive_form.
3047
3048 2009-03-24 Jason Rumney <jasonr@gnu.org>
3049
3050 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3051 Calculate total size precisely. Decode environment variables
3052 before substituting. (Bug#38)
3053
3054 2009-03-24 Kenichi Handa <handa@m17n.org>
3055
3056 * font.c (find_font_encoding): Return Qnil for unsupported
3057 encoding (Bug#2722).
3058
3059 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3060
3061 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3062 that gdpy is set.
3063
3064 2009-03-22 Alan Mackenzie <acm@muc.de>
3065
3066 * callint.c (Finteractive): Clarify the doc string - even
3067 promptless elements need \n separators.
3068
3069 2009-03-22 Jason Rumney <jasonr@gnu.org>
3070
3071 * w32term.c (syms_of_w32term): Doc fix for
3072 x-use-underline-position-properties.
3073
3074 2009-03-21 Eli Zaretskii <eliz@gnu.org>
3075
3076 * w32.c (getpwuid): Change argument type to unsigned.
3077 (struct w32_id): Change type of `rid' member to unsigned.
3078 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3079 argument ID to unsigned. All callers changed.
3080 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3081
3082 2009-03-20 Eli Zaretskii <eliz@gnu.org>
3083
3084 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3085 negative, produce a float value.
3086
3087 * dired.c (make_uid, make_gid): New functions.
3088 (Ffile_attributes): Use them to avoid negative UID and GID.
3089
3090 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
3091
3092 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3093 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3094 Fix typos in docstrings.
3095
3096 2009-03-19 Kenichi Handa <handa@m17n.org>
3097
3098 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
3099 changed, use font_load_for_lface to get a new font object.
3100 Call free_realized_fontset after handling ASCII font change.
3101
3102 * frame.c (x_set_font): Handle the case that ARG is a cons.
3103
3104 2009-03-19 Glenn Morris <rgm@gnu.org>
3105
3106 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3107
3108 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
3109
3110 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3111
3112 2009-03-19 Kenichi Handa <handa@m17n.org>
3113
3114 * charset.c (load_charset_map_from_file): When a mapfile can't be
3115 loaded, signal an error.
3116
3117 2009-03-18 Eli Zaretskii <eliz@gnu.org>
3118
3119 * dired.c (Ffile_attributes): Make sure UID and GID are always
3120 positive, even if the value is too large for a positive EMACS_INT.
3121 Doc fix.
3122
3123 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3124
3125 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3126
3127 * xmenu.c (xdialog_show): Move Fredisplay call ...
3128 (Fx_popup_dialog): ... here.
3129
3130 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3131
3132 * dired.c (file_name_completion): Disable the first optimization just
3133 installed, since it is not implemented correctly.
3134
3135 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3136
3137 * dired.c (file_name_completion): Check completion-ignored-extensions
3138 only if the entry can affect bestmatch.
3139 Stop the search early, as Ftry_completion already does.
3140
3141 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
3142
3143 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
3144
3145 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
3146
3147 * keyboard.c (parse_menu_item): Don't display remappings as menu
3148 equivalent bindings (Bug#788).
3149
3150 2009-03-15 Jason Rumney <jasonr@gnu.org>
3151
3152 * w32term.h (WM_EMACS_PAINT): New message.
3153 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3154 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3155 before passing to lisp thread. (Bug#950)
3156
3157 2009-03-14 David Reitter <david.reitter@gmail.com>
3158
3159 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3160 variable as it was never reset.
3161 (ns_term_init): Remove initialization of Lisp-settable defaults
3162 and ns_expand_space.
3163 (-setPanelFromDefaultValues): Remove ns_expand_space.
3164 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3165 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
3166 i.e. no additional spacing, similar to Carbon port.
3167
3168 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3169 * nsfns.m (ns-popup-prefs-panel): Remove.
3170
3171 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3172
3173 * sound.c (alsa_configure): Remove call to deprecated
3174 snd_pcm_sw_params_set_xfer_align.
3175
3176 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
3177
3178 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3179 after clicking in a detached tool bar.
3180 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3181
3182 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3183
3184 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3185 int/Lisp_Object mixup).
3186
3187 2009-03-13 Kenichi Handa <handa@m17n.org>
3188
3189 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
3190 Handle NAME nil and t correctly. Callers changed.
3191 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3192 (set_fontset_font): Change ARG to a vector. Handle range_list in
3193 ARG correctly.
3194 (Fset_fontset_font): Fix the case that TARGET is both a script
3195 name and charset name. Adjust the arg to set_fontset_font for
3196 the above change.
3197 (fontset_from_font): Fix previous change.
3198 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
3199 entry. If FONTSET is the default fontset, don't set the extra
3200 slot of the returning char-table.
3201
3202 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
3203
3204 * nsfns.m (Fx_close_connection): Doc fix.
3205 (Fns_do_applescript): Reflow docstring.
3206 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3207 (Fx_display_pixel_width, Fx_display_pixel_height)
3208 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3209 Fix typos in docstrings.
3210 (Fns_set_alpha): Fix typos in error messages.
3211
3212 2009-03-12 David Reitter <david.reitter@gmail.com>
3213
3214 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
3215 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3216 were used for such events.
3217
3218 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3219 (toggleToolbar, performDragOperation, runHelp): Use it.
3220
3221 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
3222 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3223
3224 2009-03-11 Kenichi Handa <handa@m17n.org>
3225
3226 * font.h (font_open_by_spec): Extern it.
3227
3228 * font.c (font_open_by_spec): New function.
3229 (font_open_by_name): Use font_open_by_spec.
3230
3231 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3232 fontset of the frame.
3233
3234 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3235 modify the default font of frames that use this fontset.
3236 (num_auto_fontsets): New variable.
3237 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3238 name. Be sure to set FONTSET_ASCII to the correct font name.
3239 (update_auto_fontset_alist): New function.
3240
3241 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
3242
3243 * makefile.w32-in: Update dependencies.
3244
3245 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3246
3247 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3248
3249 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3250
3251 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3252
3253 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
3254
3255 * lread.c (Feval_buffer): Doc fix.
3256
3257 2009-03-09 Kenichi Handa <handa@m17n.org>
3258
3259 * charset.c (Qfile_name_handler_alist): Extern it.
3260 (load_charset_map_from_file): Temporarily bind
3261 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3262
3263 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
3264
3265 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3266 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
3267
3268 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3269
3270 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3271 (x_set_window_size): Change back to calculated method of setting
3272 toolbar height under Cocoa. (Bug#2546)
3273 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3274 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3275
3276 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3277
3278 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3279 accelerator in parens under GNUstep.
3280
3281 2009-03-06 Kenichi Handa <handa@m17n.org>
3282
3283 These changes are to detect incorrect composition sequence without
3284 looking ahead the source. (Bug#2370)
3285
3286 * coding.h: Include "composite.h".
3287 (enum compisition_state): New enum.
3288 (struct compisition_status): New struct.
3289 (struct iso_2022_spec): New member cmp_status.
3290 (struct emacs_mule_spec): New struct.
3291 (struct coding_system): New members ctext_extended_segment_len and
3292 embedded_utf_8. Change the union member
3293 spec.emacs_mule_full_support to spec.emacs_mule.
3294
3295 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3296 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
3297 (MAX_ANNOTATION_LENGTH): Define to 5.
3298 (ADD_COMPOSITION_DATA): New arg nbytes.
3299 (emacs_mule_char): New arg cmp_status.
3300 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3301 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3302 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3303 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3304 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3305 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3306 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3307 (EMACS_MULE_COMPOSITION_END): New macro.
3308 (emacs_mule_finish_composition): New function.
3309 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3310 (decode_coding_emacs_mule): Avoid long looking ahead while
3311 handling composition.
3312 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3313 (ENCODE_COMPOSITION_RULE): New macro.
3314 (finish_composition): New function.
3315 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3316 (DECODE_COMPOSITION_START): New implementation.
3317 (DECODE_COMPOSITION_END): Likewise.
3318 (STORE_COMPOSITION_RULE): New macro.
3319 (decode_coding_iso_2022): Avoid long looking ahead while handling
3320 composition, CTEXT extended segment, and embedded UTF-8.
3321 (setup_coding_system): For a coding of type iso-2022, reset
3322 CODING_ISO_EXTSEGMENT_LEN (coding) and
3323 CODING_ISO_EMBEDDED_UTF_8 (coding).
3324 (get_translation): Delete arguments last_block, from_nchars,
3325 to_nchars. Callers changed.
3326 (produce_chars): Don't modify charbuf. Adjusted for the change of
3327 get_translation.
3328 (produce_composition): Adjust for the new annotation sequence.
3329 (handle_composition_annotation): Likewise.
3330 (consume_chars): Adjust for the change of get_translation.
3331
3332 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3333
3334 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
3335
3336 2009-03-05 Kenichi Handa <handa@m17n.org>
3337
3338 * font.c (font_select_entity): New function.
3339 (font_find_for_lface): Use font_select_entity to select a font.
3340
3341 * fontset.c (fontset_find_font): If a font found without
3342 restricting to the characters C doesn't support C, try to find a
3343 font with C restriction.
3344
3345 2009-03-04 Nikolaj Schumacher <me@nschum.de>
3346
3347 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
3348
3349 2009-03-04 Jason Rumney <jasonr@gnu.org>
3350
3351 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
3352 characters that have already been read. (Bug#2569)
3353
3354 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3355 Log an error message if check_image_size failed.
3356 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
3357 (gs_load): Mention max-image-size in size error message. (Bug#2560)
3358
3359 2009-03-02 Eli Zaretskii <eliz@gnu.org>
3360
3361 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3362 when decoding process output.
3363
3364 2009-03-01 Richard M Stallman <rms@gnu.org>
3365
3366 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3367
3368 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3369
3370 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3371
3372 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3373 (decode_coding_emacs_mule, decode_coding_iso_2022)
3374 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3375 (decode_coding_raw_text, decode_coding_charset)
3376 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3377 Honor inhibit-eol-conversion. (Bug #2186)
3378
3379 2009-02-28 Jason Rumney <jasonr@gnu.org>
3380
3381 * coding.c (detect_coding_charset): If not checking latin extra,
3382 fail on characters between 0x80 and 0xA0. (Bug#2354)
3383
3384 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3385
3386 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
3387 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
3388
3389 2009-02-27 Glenn Morris <rgm@gnu.org>
3390
3391 * callint.c (Finteractive): Doc fix.
3392
3393 2009-02-27 Kenichi Handa <handa@m17n.org>
3394
3395 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3396
3397 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
3398
3399 * font.c (font_style_to_value): Set value for unknown symbols to
3400 100 instead of 255.
3401 (weight_table, slant_table, width_table): Treat "unspecified" as
3402 the default value.
3403
3404 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
3405
3406 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3407
3408 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
3409
3410 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3411 error as soon as a recursive load is detected.
3412
3413 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3414
3415 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3416 before caching.
3417
3418 2009-02-24 Kenichi Handa <handa@m17n.org>
3419
3420 * fontset.c (fontset_find_font): Fix the condition for checking
3421 unavailable font.
3422
3423 2009-02-24 Glenn Morris <rgm@gnu.org>
3424
3425 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3426 whitespace that confuses documentation.
3427
3428 2009-02-23 Miles Bader <miles@gnu.org>
3429
3430 * process.c (Flist_system_processes, Fprocess_attributes)
3431 (syms_of_process): Rename `system-process-attributes' to
3432 `process-attributes'.
3433
3434 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3435
3436 * coding.h (struct coding_system): Make safe_charsets a pointer to
3437 unsigned char.
3438 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3439 being 255.
3440 (SAFE_CHARSET_P): Likewise.
3441 (setup_iso_safe_charsets): Properly setup safe_charsets.
3442 (Fdefine_coding_system_internal): Likewise.
3443 (setup_coding_system): Likewise. Remove unneeded casts.
3444 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3445 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3446 unneeded casts.
3447
3448 * insdel.c (del_range_2): Don't modify gap contents when called
3449 from decode_coding_object. (Bug#1809)
3450
3451 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
3452
3453 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3454 Qfont_object.
3455 (Ftype_of): Recognize font objects.
3456
3457 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3458
3459 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3460 moved to data.c.
3461
3462 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3463
3464 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3465 async_iconified. Based on a patch by Christian Lynbech
3466 <christian.lynbech@tieto.com>.
3467 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3468
3469 2009-02-20 Glenn Morris <rgm@gnu.org>
3470
3471 * syntax.c (Fskip_chars_forward): Fix doc typo.
3472
3473 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
3474
3475 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3476
3477 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
3478
3479 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3480
3481 2009-02-19 Kenichi Handa <handa@m17n.org>
3482
3483 * coding.c (detect_coding): Preserve coding->mode.
3484 Don't overflow coding->carryover. (Bug#2370)
3485
3486 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3487
3488 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3489
3490 2009-02-18 Kenichi Handa <handa@m17n.org>
3491
3492 * font.c (font_check_otf_features): Fix handling of `nil' element.
3493 (Ffont_spec): Describe :lang and :otf in the docstring.
3494
3495 2009-02-16 Andreas Schwab <schwab@suse.de>
3496
3497 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3498 string.
3499
3500 2009-02-16 Kenichi Handa <handa@m17n.org>
3501
3502 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
3503 (Bug#1723)
3504
3505 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
3506
3507 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
3508
3509 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3510 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3511
3512 2009-02-14 Eli Zaretskii <eliz@gnu.org>
3513
3514 * msdos.c (MAX_SCREEN_BUF): New macro.
3515 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3516 Encode the entire run of glyphs sharing the same face, instead of
3517 doing that one glyph at a time (fixes a bug with displaying
3518 double-size characters).
3519
3520 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3521
3522 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3523
3524 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3525 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
3526 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
3527
3528 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
3529 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
3530
3531 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3532
3533 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3534 invisible areas.
3535
3536 2009-02-12 Jason Rumney <jasonr@gnu.org>
3537
3538 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3539 (add_font_entity_to_list): Call check_face_name even when family
3540 is unspecified.
3541
3542 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3543 Release DC when finished. Use NULL window to refer to desktop.
3544 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
3545
3546 * w32font.c (add_font_entity_to_list): Fix check for substituted
3547 raster fonts. (Bug#2219)
3548
3549 2009-02-12 Kenichi Handa <handa@m17n.org>
3550
3551 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3552 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3553 (autocmp_chars): Use fast_looking_at. Don't compose more
3554 characters than MAX_COMPOSITION_COMPONENTS.
3555 (find_automatic_composition): While looking forward and backward,
3556 check static composition. Fix where to stop looking forward.
3557 (composition_adjust_point): Fix checking of static composition.
3558 (Fcomposition_get_gstring): Pay attention to
3559 MAX_COMPOSITION_COMPONENTS.
3560
3561 * lisp.h (fast_looking_at): Extern it.
3562
3563 * search.c (fast_looking_at): New function.
3564
3565 * term.c (encode_terminal_code): Adjust for the change of
3566 <struct glyph>.u.cmp.to.
3567 (append_composite_glyph): Likewise.
3568
3569 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
3570 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3571 composition.
3572 (append_composite_glyph): Adjust for the change of
3573 <strcut glyph>.u.cmp.to.
3574
3575 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
3576
3577 * casetab.c (init_casetab_once):
3578 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3579 * font.c (font_update_lface):
3580 * fontset.c (Fnew_fontset):
3581 * ftfont.c (ftfont_drive_otf):
3582 * xfont.c (xfont_open):
3583 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3584
3585 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3586
3587 * fileio.c (Fwrite_region): !NILP -> CONSP.
3588
3589 2009-02-10 Andreas Schwab <schwab@suse.de>
3590
3591 * process.c (send_process): Properly relocate pointer into data
3592 when using encoded data. (Bug#2272)
3593
3594 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3595
3596 * coding.c (detect_coding_charset): Fix previous change.
3597
3598 2009-02-08 Jason Rumney <jasonr@gnu.org>
3599
3600 * w32fns.c (w32_hide_hourglass): Handle case where frame
3601 disappeared while hourglass was displayed. (Bug #2193)
3602
3603 2009-02-07 Andreas Schwab <schwab@suse.de>
3604
3605 * unexelf.c (unexec): Fix error message.
3606
3607 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3608
3609 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
3610 when modal window is active. (Bug #2152)
3611 (applicationShouldTerminate:): Remove now-unneeded while loop
3612 around NSRunAlertPanel.
3613
3614 * nsmenu.m (popupSession): New file-global variable.
3615 (pop_down_menu): End the popupSession before closing dialog.
3616 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3617 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3618 don't query NSApp for events (just sleep instead).
3619
3620 2009-02-07 Eli Zaretskii <eliz@gnu.org>
3621
3622 * coding.c (syms_of_coding) <translation-table-for-input>:
3623 Modify doc string to discourage use for character code unification.
3624
3625 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3626
3627 * atimer.c (run_timers): Update pending_atimers.
3628
3629 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
3630
3631 * image.c (svg_load_image): Fix last change.
3632
3633 * xfns.c (Fx_create_frame): Signal an error if no font is
3634 found (Bug#2147).
3635
3636 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
3637
3638 * character.c (syms_of_character) <script-representative-chars>:
3639 Fix typo in docstring.
3640
3641 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3642
3643 * nsmenu.m (pop_down_menu): New function.
3644 (ns_popup_dialog): Call it on unwind.
3645 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3646 call timer_check() (Bug#2154).
3647 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3648 handling_signal is set.
3649 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3650
3651 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
3652
3653 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3654
3655 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3656
3657 * keyboard.c (poll_for_input_1, handle_async_input):
3658 Set handling_signal under HAVE_NS.
3659
3660 2009-02-04 Glenn Morris <rgm@gnu.org>
3661
3662 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3663
3664 2009-02-04 Kenichi Handa <handa@m17n.org>
3665
3666 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3667
3668 * charset.c (Fchar_charset): New optional arg restriction.
3669
3670 * coding.h (coding_system_charset_list): Extern it.
3671
3672 * coding.c (coding_system_charset_list): New function.
3673
3674 * composite.c: Include coding.h and termhooks.h.
3675 (composition_gstring_p): Fix for the terminal case.
3676 (composition_gstring_width): Likewise.
3677 (fill_gstring_body): Likewise.
3678 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3679 the frame.
3680 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3681 is within a composition.
3682 (Fcomposition_get_gstring): Fix the terminal case.
3683
3684 * term.c (encode_terminal_code): Fix handling of composition.
3685 (produce_composite_glyph): For static composition, get pixel_width
3686 from struct composition.
3687
3688 2009-02-02 Andreas Schwab <schwab@suse.de>
3689
3690 * unexelf.c (unexec): Handle unaligned bss offset.
3691
3692 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3693
3694 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3695 XT,w32read_socket changes to ns_read_socket.
3696
3697 * keyboard.c (handle_interrupt): Don't call
3698 quit_throw_to_read_char() under NS.
3699
3700 * blockinput.h: Remove NS-specific code.
3701
3702 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3703
3704 * dispnew.c (window_change_signal): Don't try to get the size of a
3705 suspended tty frame.
3706 * term.c (Fresume_tty): Resize if the size has changed while the
3707 tty was suspended.
3708
3709 * alloc.c (mark_stack): Properly conditionalize previous change.
3710
3711 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3712
3713 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3714 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3715 Remove; this code is not used on Windows.
3716
3717 2009-01-30 Eli Zaretskii <eliz@gnu.org>
3718
3719 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3720 EOLs that also has stray ^M characters.
3721
3722 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3723
3724 * atimer.c (run_timers, alarm_signal_handler):
3725 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3726 * w32inevt.c (w32_console_read_socket):
3727 * w32term.c (w32_read_socket):
3728 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3729
3730 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
3731
3732 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3733 Initialize it as a relative filename pattern.
3734 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3735 (Fcall_process_region): Simplify temp file creation using
3736 temporary-file-directory.
3737
3738 2009-01-29 Eli Zaretskii <eliz@gnu.org>
3739
3740 * msdos.c: Rename pending_signals to msdos_pending_signals.
3741 (sig_suspender, sigprocmask): Adjust.
3742
3743 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
3744
3745 * keyboard.c (pending_signals): New var.
3746 (poll_for_input, input_available_signal, init_keyboard): Set it.
3747 (process_pending_signals): New function.
3748
3749 * lisp.h (QUIT): Check pending_signals instead of
3750 interrupt_input_pending. Use process_pending_signals.
3751
3752 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
3753
3754 * process.c (wait_reading_process_output): Use process_pending_signals.
3755
3756 * sysdep.c (emacs_write): Use process_pending_signals.
3757
3758 * xterm.c (XTread_socket): Update pending_signals.
3759
3760 * w32term.c (w32_read_socket): Update pending_signals.
3761
3762 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3763
3764 2009-01-29 Kenichi Handa <handa@m17n.org>
3765
3766 * xftfont.c (xftfont_has_char): New function.
3767 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3768
3769 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3770
3771 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3772 under GNUstep.
3773 (ns_query_color): New declaration.
3774
3775 * nsterm.m (ns_confirm_quit): New variable.
3776 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3777 (EmacsApp-applicationShouldTerminate:): Use it.
3778 (EmacsPrefsController): Let user set it.
3779 (ns_query_color): New function.
3780 (ns_defined_color): Use it.
3781 (ns_initialize): Drop.
3782 (ns_term_init): Add two lines from ns_initialize(), and set
3783 input_interrupt_mode to nil.
3784
3785 * image.c (svg_load_image): Don't right-shift background RGB when
3786 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
3787
3788 2009-01-28 Kenichi Handa <handa@m17n.org>
3789
3790 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3791 (fontset_get_font_group): Remember that no font-group is specified
3792 for C.
3793
3794 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
3795
3796 * fns.c (concat): Check for string overflow (bug#1787).
3797
3798 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3799 Quadruple undo limits (bug#1501).
3800
3801 2009-01-27 Kenichi Handa <handa@m17n.org>
3802
3803 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3804 directly use GT_Get_Char_index.
3805
3806 * xftfont.c (struct xftfont_info): New member `index'.
3807
3808 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3809 (Ffontset_font): Adjust for the change of fontset entry.
3810
3811 2009-01-26 Kenichi Handa <handa@m17n.org>
3812
3813 * fontset.c (fontset_find_font): Fix handling of non-cons return
3814 value of fontset_get_font_group.
3815 (fontset_font): Revert last change.
3816
3817 2009-01-26 Jason Rumney <jasonr@gnu.org>
3818
3819 * w32font.c (w32font_list_internal): Return quickly if registry is
3820 unknown. Simplify final return.
3821 (add_font_entity_to_list): Break complex logic down into more
3822 manageable chunks. Move unknown registry check to
3823 w32font_list_internal.
3824
3825 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3826
3827 Changes to remove Feval calls from GUI under NS.
3828
3829 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3830 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
3831 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3832
3833 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3834 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3835 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3836 instead of NON_ASCII_KEYSTROKE_EVENT.
3837 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3838 (EmacsApp-applicationShouldTerminate:): Query user.
3839 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3840 instead of Feval.
3841
3842 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3843
3844 * keyboard.c (kbd_buffer_get_event): Check for it.
3845 (keys_of_keyboard): Define lispy keys for
3846 ns-put/unput-working-text.
3847
3848 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3849 versions.
3850 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3851
3852 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
3853
3854 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
3855 setting current_buffer directly. (Bug#2044)
3856
3857 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
3858
3859 * fontset.c (fontset_font): If we know there is no font, don't do
3860 any work. (Bug#1952, bug#1990).
3861
3862 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
3863
3864 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3865
3866 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
3867 (ns_no_defaults): New declaration.
3868 (main): Use it.
3869
3870 * nsterm.h (ns_no_defaults): New declaration.
3871
3872 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
3873
3874 * nsterm.m (ns_no_defaults): New variable.
3875 (ns_initialize): Don't read defaults when ns_no_defaults.
3876 (EmacsView-readSelectionFromPasteboard:)
3877 (writeSelectionToPasteboard:types:): New stubbed-out methods for
3878 NSServicesRequests protocol. (Bug#1435)
3879 (ns_dumpglyphs_stretch): New function.
3880 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
3881 of 2008-11-15 to other terms. (Bug#615)
3882
3883 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3884
3885 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3886
3887 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3888 call for Sparc64.
3889
3890 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3891
3892 * nsfns.m:
3893 * nsgui.h:
3894 * nsmenu.m:
3895 * nsselect.m:
3896 * nsterm.h:
3897 * nsterm.m: Remove '23' comments that indicated code added during
3898 update from emacs-20 -> emacs-23.
3899
3900 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3901
3902 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3903 ns_alternate_modifier. (Bug#1217)
3904
3905 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3906 Display all shortcuts, including those w/o super modifier.
3907
3908 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3909
3910 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
3911
3912 * fileio.c (Vwrite_region_post_annotation_function)
3913 (Vwrite_region_annotation_buffers): New vars.
3914 (build_annotations_unwind): Just reset
3915 Vwrite_region_annotation_buffers.
3916 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3917 Call write-region-post-annotation-function.
3918 (build_annotations): Add to Vwrite_region_annotation_buffers if
3919 buffer changes.
3920
3921 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3922
3923 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3924 Tiger.
3925 * nsfns.m (ns_do_applescript):
3926 Conditionalize typeUTF16ExternalRepresentation on Tiger.
3927
3928 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3929
3930 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3931
3932 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3933
3934 * nsmenu.m (NSMENUPROFILE): Change #if style.
3935
3936 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3937
3938 * nsterm.m (x_set_frame_alpha): Add prototype.
3939 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3940 handle Ctrl-tab. (Bug#1841)
3941 (ns_get_color): Use unsigned long long for scanned hex string value.
3942 (ns_term_shutdown): Abort on non SIGTERM signals.
3943 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
3944 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3945 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
3946 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
3947 (ns_defined_color): Fix settings of the XColor variable fields:
3948 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
3949
3950 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3951 DPI. (Bug#1316)
3952 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3953 values in onTiger section.
3954
3955 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
3956
3957 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3958 Check return value of font_spec_from_name.
3959 (Fx_list_fonts): Doc fix. (Bug#1951)
3960
3961 * font.c (font_spec_from_name): Return Qnil if font name could not
3962 be parsed.
3963 (font_parse_name): Treat a `?' character as part of an XLFD.
3964
3965 * fns.c (Fsubstring): Doc fix.
3966
3967 2009-01-19 Kenichi Handa <handa@m17n.org>
3968
3969 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
3970 (ftfont_list): Likewise.
3971
3972 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
3973
3974 * dbusbind.c (Fdbus_register_signal):
3975 * process.c (conv_sockaddr_to_lisp):
3976 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3977
3978 * callproc.c (Fgetenv_internal): Doc fix.
3979
3980 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
3981
3982 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3983 it is not even used.
3984
3985 2009-01-16 Glenn Morris <rgm@gnu.org>
3986
3987 * font.c (Ffont_variation_glyphs): Silence compiler.
3988
3989 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
3990
3991 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3992 Reported by David Robinow <drobinow@gmail.com>.
3993
3994 2009-01-15 Kenichi Handa <handa@m17n.org>
3995
3996 * coding.c (detect_coding_system): Fix handling of null_byte_found.
3997
3998 2009-01-14 Jason Rumney <jasonr@gnu.org>
3999
4000 * frame.c (x_set_font): Always store a font to the font parameter,
4001 never a fontset. (Bug#1562)
4002
4003 2009-01-14 Kenichi Handa <handa@m17n.org>
4004
4005 * coding.c (TWO_MORE_BYTES): New macro.
4006 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
4007
4008 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
4009
4010 * font.c (font_clear_prop): If clearing the family, clear the font
4011 width index too.
4012
4013 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4014
4015 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
4016
4017 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4018 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4019 functions, use sizeof.
4020
4021 2009-01-12 Martin Rudalics <rudalics@gmx.at>
4022
4023 * keyboard.c (read_char): Fix case where last_nonmenu_event
4024 returned a bad value with submenus. (Bug#447)
4025
4026 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
4027
4028 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4029 family, clear the font width index too.
4030
4031 2009-01-11 Jason Rumney <jasonr@gnu.org>
4032
4033 * keyboard.c (cmd_error_internal): Exit when errors occur before
4034 frame creation and not in daemon mode. (Bug#1836)
4035
4036 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
4037
4038 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4039 of a display vector, backtrack.
4040 (try_window_reusing_current_matrix): Check glyph type before
4041 referencing charpos member.
4042
4043 2009-01-10 Eli Zaretskii <eliz@gnu.org>
4044
4045 Fix Bug #876:
4046
4047 * coding.c (inhibit_null_byte_detection): New variable.
4048 (detect_coding, detect_coding_system): Don't pay attention to null
4049 bytes if inhibit_null_byte_detection is non-zero.
4050 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
4051 <inhibit-iso-escape-detection>: Doc fix.
4052
4053 2009-01-09 Jason Rumney <jasonr@gnu.org>
4054
4055 * w32font.c (add_font_entity_to_list): Don't report unknown
4056 Windows charset as any unrecognized registry. (Bug#1548)
4057 Only report Unicode Plane 2 fonts as unicode-sip.
4058
4059 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
4060
4061 * xfaces.c (Fx_font_family_list): Delete function.
4062 Move compatibility version to faces.el.
4063
4064 * font.c (Ffont_family_list): Return a list of strings, not symbols.
4065
4066 2009-01-09 Martin Rudalics <rudalics@gmx.at>
4067
4068 * frame.c (x_set_frame_parameters): Remember requested value for
4069 fullscreen before it's reset by the parameter handler.
4070
4071 2009-01-09 Glenn Morris <rgm@gnu.org>
4072
4073 * keyboard.c (last_command_char): For clarity, rename to...
4074 (last_command_event): ... and update all users.
4075 (last_input_char): For clarity, rename to...
4076 (last_input_event): ... and update all users.
4077 (last-command-char, last-input-char): Move to subr.el as aliases.
4078 * cmds.c, commands.h: Update for last_command_char rename.
4079
4080 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
4081
4082 * font.c (font_open_for_lface): Handle unspecified height attribute.
4083
4084 2009-01-08 Jason Rumney <jasonr@gnu.org>
4085
4086 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4087 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4088 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4089 Don't declare.
4090 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
4091 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4092
4093 2009-01-07 Kenichi Handa <handa@m17n.org>
4094
4095 * fileio.c (Finsert_file_contents): In the case of replace,
4096 remember the coding system used for decoding in
4097 coding_system (Bug#1039).
4098
4099 * coding.c (decode_coding_utf_8): Check byte_after_cr before
4100 breaking the loop. (Bug#870)
4101 (decode_coding_utf_16, decode_coding_emacs_mule)
4102 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4103 (decode_coding_charset): Likewise.
4104
4105 2009-01-05 Martin Rudalics <rudalics@gmx.at>
4106
4107 * frame.c (x_set_frame_parameters): Make sure height (width) get
4108 applied when fullwidth (fullheight) is set. (Bug#1522)
4109
4110 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
4111
4112 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4113 (utc_base): Declare as ULONGLONG, not long double.
4114 (convert_time_raw): Delete.
4115 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4116 (initialize_utc_base): New function.
4117 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4118 (convert_from_time_t): Use initialize_utc_base; compute result with
4119 64-bit arithmetic.
4120 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4121
4122 2009-01-03 Eli Zaretskii <eliz@gnu.org>
4123
4124 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
4125 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4126 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4127 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4128 [!subprocesses]: Define.
4129 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4130 (Flist_system_processes, Fsystem_process_attributes)
4131 [!subprocesses]: Call list_system_processes and
4132 system_process_attributes instead of returning Qnil.
4133
4134 * dosfns.c (system_process_attributes, list_system_processes):
4135 New functions.
4136
4137 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4138
4139 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4140 Don't use the default (no-op) implementation.
4141
4142 2009-01-03 Jason Rumney <jasonr@gnu.org>
4143
4144 * keyboard.c (parse_modifiers_uncached): Wheel events are
4145 clicks (bug#687).
4146
4147 * w32term.c (x_query_colors, x_query_color): New functions.
4148
4149 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4150 (svg_load_image): Cast returned pointers from dynamically loaded
4151 functions. Eliminate W32 specific code.
4152
4153 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4154
4155 * nsfns.m (x_set_foreground_color, x_set_background_color)
4156 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4157 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4158 x_ prefix instead of ns_. Update references.
4159 (syms_of_nsfns): Add a FIXME comment.
4160
4161 * nsterm.m (x_set_cursor_type): New prototype.
4162 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4163
4164 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4165 for Solaris instead of incorrectly providing Qutime and Qcutime.
4166
4167 2009-01-02 Eli Zaretskii <eliz@gnu.org>
4168
4169 * w32.c (process_times): Compute sum of utime and stime.
4170 (system_process_attributes): Add Qtime to the alist.
4171
4172 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4173 and add them to the alist.
4174
4175 * process.c (top level) <Qtime, Qctime>: New variables.
4176 (syms_of_process): staticpro them.
4177 (Fsystem_process_attributes): Add their documentation to the doc
4178 string.
4179
4180 * process.h: Declare Qtime and Qctime.
4181
4182 2009-01-02 Jason Rumney <jasonr@gnu.org>
4183
4184 * image.c (Qgobject): New symbol.
4185 (syms_of_image): Initialize it.
4186 (init_svg_functions): Load some functions from gobject library.
4187
4188 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4189
4190 * frame.c (make_terminal_frame): Remove redundant code and useless
4191 block.
4192
4193 2009-01-01 Andreas Schwab <schwab@suse.de>
4194
4195 * process.c (conv_sockaddr_to_lisp): Add workaround for
4196 getsockname bug on BSD.
4197
4198 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
4199
4200 * xfns.c (x_create_tip_frame): Set border width of the X window.
4201
4202 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
4203
4204 2009-01-01 Jason Rumney <jasonr@gnu.org>
4205
4206 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
4207 Don't block input, as per earlier xterm.c changes.
4208
4209 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4210
4211 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4212 (ns_appkit_version_int): New function.
4213 (x-server-version): Use ns_appkit_version_int and follow 21+
4214 convention of returning 3 integers.
4215
4216 2008-12-30 Kenichi Handa <handa@m17n.org>
4217
4218 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4219 (CHAR_SURROGATE_PAIR_P): New macro.
4220
4221 * font.h (struct font_driver): New member get_variation_glyphs.
4222
4223 * font.c (font_range): Don't require a font for a variation selector.
4224 (Ffont_variation_glyphs): New function.
4225 (syms_of_font): Defsubr it.
4226
4227 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4228 ftfont_variation_glyphs.
4229 (setup_otf_gstring): New function.
4230 (ftfont_drive_otf): Use it.
4231 (ftfont_shape_by_flt): Handle variation selector.
4232 (ftfont_variation_glyphs): New function.
4233
4234 2008-12-30 Martin Rudalics <rudalics@gmx.at>
4235
4236 * frame.c (Vemacs_iconified): Remove.
4237
4238 2008-12-30 Jason Rumney <jasonr@gnu.org>
4239
4240 * frame.c (store_frame_param, x_get_arg): Enable newer code on
4241 WINDOWSNT too, as related changes have already been synced. (Bug#117)
4242
4243 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
4244
4245 * indent.c (Fvertical_motion): Don't advance iterator if we have
4246 reseated to the desired position.
4247
4248 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4249 checking for pos match.
4250
4251 2008-12-30 Kenichi Handa <handa@m17n.org>
4252
4253 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4254 just get the low 8-bit of the code.
4255
4256 * font.c (font_intern_prop): Validate str as multibyte.
4257
4258 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4259
4260 * dispextern.h (struct face): Move lface and hash from the middle
4261 of bitfields.
4262
4263 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4264
4265 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4266
4267 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4268 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4269 instead of intervals.h.
4270
4271 2008-12-26 Andreas Schwab <schwab@suse.de>
4272
4273 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4274 cons.
4275
4276 2008-12-26 Martin Rudalics <rudalics@gmx.at>
4277
4278 * textprop.c (Qminibuffer_prompt): New variable.
4279 (syms_of_textprop): Initialize it.
4280 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4281 in minibuffer-prompt face. (Bug#1662)
4282
4283 2008-12-25 Jason Rumney <jasonr@gnu.org>
4284
4285 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4286
4287 2008-12-24 Jason Rumney <jasonr@gnu.org>
4288
4289 * ralloc.c (r_alloc_reset_variable): New function.
4290
4291 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
4292 record of what points where. (Bug#716)
4293
4294 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4295
4296 * minibuf.c (read_minibuf): Follow the non-interactive case when
4297 running as a daemon, before detaching.
4298
4299 2008-12-22 Andreas Schwab <schwab@suse.de>
4300
4301 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4302 * gtkutil.c (free_widget_value): Use xfree instead of free.
4303
4304 2008-12-22 Martin Rudalics <rudalics@gmx.at>
4305
4306 * frame.c (delete_frame): New function derived from
4307 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4308 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4309 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4310 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4311 * frame.h: Extern delete_frame.
4312 * window.c (window_loop):
4313 * terminal.c (delete_terminal):
4314 * xterm.c (x_connection_closed):
4315 * xfns.c (Fx_hide_tip):
4316 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
4317
4318 2008-12-21 Jason Rumney <jasonr@gnu.org>
4319
4320 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4321 when character maps to .notdef character.
4322
4323 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4324
4325 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4326
4327 2008-12-20 Jason Rumney <jasonr@gnu.org>
4328
4329 * frame.c (Fmake_terminal_frame): Raise an error when called from
4330 a graphical frame on Windows. (Bug#1325)
4331
4332 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4333
4334 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4335
4336 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
4337
4338 * minibuf.c (Fread_buffer): Doc fix.
4339
4340 2008-12-20 Jason Rumney <jasonr@gnu.org>
4341
4342 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
4343 server name in UNC paths. (Bug#719)
4344
4345 * coding.c (decode_coding): Clear chars_at_source flag when using
4346 charbuf. (Bug#1035)
4347
4348 2008-12-19 Daniel Engeler <engeler@gmail.com>
4349
4350 * sysdep.c (serial_configure): Fix typo.
4351
4352 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4353
4354 * sysdep.c: Include alloca.h.
4355 (system_process_attributes): Add implementation for Solaris.
4356
4357 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
4358
4359 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4360
4361 Reorganize implementation of Flist_system_processes and
4362 Fsystem_process_attributes. No functional changes.
4363 * process.c: Don't #include pwd.h, grp.h and limits.h.
4364 (Flist_system_processes): Just call list_system_processes.
4365 (Fsystem_process_attributes): Just call system_process_attributes.
4366 (procfs_list_system_processes, time_from_jiffies)
4367 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4368 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4369
4370 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4371 (list_system_processes): Rename from
4372 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4373 Provide a do nothing implementation.
4374 (system_process_attributes): Rename from
4375 procfs_list_system_processes.
4376 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4377 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
4378
4379 * w32.c (list_system_processes): Rename from
4380 w32_list_system_processes.
4381 (system_process_attributes): Rename from
4382 w32_system_process_attributes.
4383
4384 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4385
4386 * process.h (w32_list_system_processes)
4387 (w32_system_process_attributes): Remove.
4388 (list_system_processes, system_process_attributes):
4389 New prototypes.
4390
4391 2008-12-19 Kenichi Handa <handa@m17n.org>
4392
4393 * xfont.c (xfont_decode_coding_xlfd): New function.
4394 (xfont_encode_coding_xlfd): New function.
4395 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4396 (xfont_list): Decode and encode XLFD by iso-8859-1.
4397 (xfont_match): Likewise.
4398 (xfont_list_family): Likewise.
4399 (xfont_open): Likewise.
4400
4401 * ftfont.c (ftfont_open): Generate a multibyte string if given
4402 names are utf-8.
4403
4404 * xftfont.c (xftfont_open): Generate a multibyte string if given
4405 names are utf-8.
4406
4407 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4408
4409 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4410 changed.
4411 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4412 clicked on a detached tool bar button.
4413
4414 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4415
4416 * emacs.c (main): Print and error and exit when no data is read
4417 from the pipe.
4418
4419 2008-12-17 Jason Rumney <jasonr@gnu.org>
4420
4421 * w32font.c (w32font_has_char): Always return -1.
4422
4423 2008-12-16 Kenichi Handa <handa@m17n.org>
4424
4425 * font.c (font_open_entity): Fix previous change.
4426
4427 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4428
4429 * process.c: Include <limits.h>.
4430
4431 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
4432
4433 * font.c (font_update_drivers): Fix mistake in reconstructing the
4434 driver list.
4435
4436 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
4437
4438 * font.c (font_clear_cache): Fix format of font cache data.
4439
4440 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
4441
4442 * xftfont.c (xftfont_open): Free Xft font pattern if
4443 XftFontOpenPattern fails.
4444
4445 * xterm.c (x_free_frame_resources): Remove extraneous call to
4446 free_frame_faces.
4447
4448 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4449
4450 * xterm.c (x_delete_display): Move xim_close_dpy call to
4451 x_delete_terminal.
4452 (x_delete_terminal): Call xim_close_dpy.
4453
4454 2008-12-13 Jason Rumney <jasonr@gnu.org>
4455
4456 * w32font.c (intern_font_name): New function.
4457 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4458 (w32font_open_internal, Fx_select_font): Decode font name.
4459 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4460
4461 * w32font.h (intern_font_name): Declare new function.
4462
4463 * w32uniscribe.c (add_opentype_font_name_to_list):
4464 Use intern_font_name.
4465
4466 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4467
4468 * frame.c (Fdelete_frame): Call free_font_driver_list.
4469
4470 * font.c (free_font_driver_list): Implement missing function.
4471
4472 * w32term.c (w32_term_init): Don't initialize the image cache
4473 here; it will be done in init_frame_faces.
4474
4475 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4476 (struct x_display_info): Remove unused member null_pixel. New
4477 member xim_callback_data.
4478
4479 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4480 (xim_initialize): Save pointer to callback function data.
4481 (xim_close_dpy): Free callback function data. Call XCloseIM,
4482 reverting 2008-11-04 change by David Smith.
4483 (x_term_init): Don't initialize the image cache here; it will be
4484 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4485 (x_delete_display): Free x_dnd_atoms member.
4486
4487 2008-12-13 Kenichi Handa <handa@m17n.org>
4488
4489 * font.c (font_rescale_ratio): Moved from xfaces.c.
4490 Argument type changed. Handle a font-spec too.
4491 (font_score): Check Vface_font_rescale_alist.
4492 (font_open_entity): Likewise. (Bug#1547)
4493
4494 * xfaces.c (font_rescale_ratio): Moved to font.c.
4495
4496 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4497
4498 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4499
4500 2008-12-12 Jason Rumney <jasonr@gnu.org>
4501
4502 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4503 Vwindow_system_version to the real w32 major version.
4504
4505 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4506
4507 * term.c (init_tty): Move setting the terminal name before the
4508 potential user: maybe_fatal.
4509
4510 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
4511
4512 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4513 all callers changed. Call free_frame_faces to free the face cache.
4514
4515 2008-12-11 Jason Rumney <jasonr@gnu.org>
4516
4517 * w32font.c (fill_in_logfont): Don't assume symbol script means
4518 SYMBOL_CHARSET. (Bug#547)
4519
4520 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
4521 size for surrogates. (Bug#1096, bug#872)
4522
4523 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4524
4525 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4526
4527 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4528
4529 * process.c (Fsystem_process_attributes, syms_of_process):
4530 Fix typo in name of Ssystem_process_attributes.
4531 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4532
4533 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4534
4535 * syntax.c (Fmodify_syntax_entry): Doc fix.
4536
4537 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4538
4539 * font.c (Ffont_spec): Move usage to end of docstring.
4540
4541 2008-12-10 Jason Rumney <jasonr@gnu.org>
4542
4543 * w32font.c (Qcham): New symbol.
4544 (font_supported_scripts): Add cham, and comments for other new
4545 scripts in bitfield from OpenType spec.
4546 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4547 contain characters beyond the bmp.
4548
4549 2008-12-10 Kenichi Handa <handa@m17n.org>
4550
4551 * ftfont.c (fc_charset_table): Add "unicode-sip".
4552 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
4553 Qunicode_sip.
4554
4555 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4556
4557 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4558 (Fcoding_system_put): Use QCdefault_char.
4559 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4560
4561 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
4562
4563 * xftfont.c (syms_of_xftfont): Fix typo.
4564
4565 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
4566
4567 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4568
4569 * emacs.c (main): Close daemon_pipe on exec.
4570
4571 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
4572
4573 * termchar.h (struct tty): New members termcap_term_buffer and
4574 termcap_strings_buffer.
4575
4576 * term.c (encode_terminal_code): Free any previous memory blocks
4577 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
4578 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4579 All callers changed.
4580 (init_tty): Store termcap data and string buffers in new struct
4581 tty members termcap_term_buffer and termcap_strings_buffer.
4582 (delete_tty): Free them.
4583 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
4584
4585 2008-12-07 Seiji Zenitani <zenitani@mac.com>
4586
4587 * nsfns.m (ns_set_background_color): Remove code duplication.
4588 It was a substitute for face-transparency on OS X 10.3.
4589
4590 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
4591
4592 * coding.c (make_conversion_work_buffer): Disable buffer
4593 modification hooks in the work buffer.
4594
4595 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4596
4597 * process.c (procfs_system_process_attributes): If `nread' has a
4598 negative value, assign zero to it.
4599
4600 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
4601
4602 * eval.c (Vdebug_on_error): Doc fix.
4603
4604 2008-12-05 Kenichi Handa <handa@m17n.org>
4605
4606 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4607 second character is a combining character.
4608
4609 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4610
4611 * process.c (procfs_system_process_attributes): Don't use cmd,
4612 cmdsize, and q without initializing them first.
4613
4614 2008-12-04 Jason Rumney <jasonr@gnu.org>
4615
4616 * w32font.c (w32font_draw): Initialize orig_clip before getting
4617 it, and delete it when finished.
4618
4619 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4620
4621 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4622 case when running as a daemon before detaching.
4623
4624 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
4625
4626 * w32.c (init_environment): Don't unload library shell32.dll.
4627
4628 2008-12-03 Kenichi Handa <handa@m17n.org>
4629
4630 * font.c (font_at): Set `multibyte' at first.
4631
4632 * coding.c (decode_coding_charset): Check type of an element of
4633 vector VALIDS.
4634 (encode_coding_emacs_mule): Be sure to set `code'.
4635
4636 * fontset.c (face_for_char): Handle invalid charset property correctly.
4637 (font_for_char): Likewise.
4638
4639 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
4640
4641 * font.c (Fopen_font): Compute pixel size correctly.
4642 (font_update_lface): Handle fonts with corrupted size specs,
4643 i.e. non-int and non-float.
4644
4645 * ftfont.c (ftfont_match): Initialize entity variable.
4646 (ftfont_resolve_generic_family): Avoid using uninitialized var.
4647 (ftfont_list_family): Initialize list var earlier.
4648
4649 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4650
4651 * xterm.c (x_draw_glyph_string): Fall back on
4652 underline_minimum_offset for underline position.
4653
4654 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4655
4656 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4657
4658 * character.c (c_string_width): Specify the type for LEN.
4659
4660 2008-12-03 Kenichi Handa <handa@m17n.org>
4661
4662 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
4663 (decode_coding_utf_8): Likewise.
4664 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4665 (produce_chars): Initialize consumed_chars to 0.
4666
4667 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4668
4669 * keyboard.c (make_lispy_position): Only use PT if the selected
4670 window is current.
4671
4672 2008-12-02 Andreas Schwab <schwab@suse.de>
4673
4674 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4675
4676 * doprnt.c (doprnt1): Fix size of charbuf.
4677
4678 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * keyboard.c (timer_check): Revert last change.
4681
4682 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
4683
4684 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4685
4686 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
4687
4688 * makefile.w32-in: Update dependencies.
4689 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4690
4691 2008-12-01 Andreas Schwab <schwab@suse.de>
4692
4693 * font.c (register_font_driver): Use xmalloc.
4694 (font_put_frame_data): Likewise.
4695
4696 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
4697
4698 * xfaces.c (realize_x_face): Make abort condition clearer.
4699
4700 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4701
4702 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
4703
4704 * keyboard.c (timer_check): After a timer runs, ensure that the
4705 selected window's buffer is current.
4706
4707 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
4708
4709 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4710 It was accidentally restored by the Unicode merge.
4711
4712 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4713
4714 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
4715
4716 * w32proc.c: Include "coding.h".
4717 (Fw32_short_file_name): Encode filename passed to Windows API.
4718 (Fw32_long_file_name): Encode filename passed to Windows API and
4719 decode back the result. (Bug#1433)
4720
4721 2008-11-29 Kenichi Handa <handa@m17n.org>
4722
4723 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4724 not before accessing it.
4725
4726 * charset.c (Fdefine_charset_internal): After calculating
4727 min_char, max_char, and fastmap, copy the charset structure again.
4728 (encode_char): Fix the previous change.
4729
4730 2008-11-28 Seiji Zenitani <zenitani@mac.com>
4731
4732 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4733
4734 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4735
4736 * nsterm.m (x_set_frame_alpha): New function.
4737
4738 2008-11-27 Eli Zaretskii <eliz@gnu.org>
4739
4740 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4741
4742 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
4743
4744 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4745 pointer to check_face_name.
4746
4747 2008-11-27 Kenichi Handa <handa@m17n.org>
4748
4749 * category.h (SET_CATEGORY_SET): Call set_category_set.
4750 (set_category_set): Extern it.
4751
4752 * category.c (hash_get_category_set): New function.
4753 (Fmodify_category_entry): Adjusted for the change of
4754 char_table_ref_and_range. Call hash_get_category_set to get a
4755 category set to store in the table.
4756
4757 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4758 Funify_charset.
4759
4760 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
4761 (DECODE_CHAR): Check if the decoder vector is ready.
4762 (ENCODE_CHAR): Check if the encoder char-table is ready.
4763 (maybe_unify_char): Extern it.
4764
4765 * charset.c (Vchar_unified_charset_table): Delete it.
4766 (inhibit_load_charset_map): New variable.
4767 (temp_charset_work): New variable.
4768 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4769 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4770 New macros.
4771 (load_charset_map): Meaning of control_flag changed. If
4772 inhibit_load_charset_map is nonzero, setup a table in
4773 temp_charset_work.
4774 (load_charset): New argument control_flag.
4775 (map_charset_for_dump): New function.
4776 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4777 map_charset_for_dump.
4778 (Fdefine_charset_internal): If the charset method is MAP, load
4779 mapping tables by calling load_charset.
4780 (Funify_charset): Don't load a mapping table but directly set
4781 Vchar_unify_table.
4782 (maybe_unify_char): New function.
4783 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4784 Handle the case of inhibit_load_charset_map being nonzero.
4785 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4786 Handle the case of inhibit_load_charset_map being nonzero.
4787 (Fclear_charset_maps): Just free temp_charset_work.
4788 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4789 variable.
4790
4791 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4792 change of char_table_ref_and_range.
4793 (char_table_ref_and_range): Change the meaning of argument FROM
4794 and TO. Now the caller must provide initial values for *FROM
4795 and *TO.
4796
4797 * fontset.c (fontset_add): Adjusted for the change of
4798 char_table_ref_and_range.
4799 (fontset_get_font_group): Likewise.
4800 (Ffontset_info): Likewise.
4801
4802 * keymap.c (describe_vector): Adjusted for the change of
4803 char_table_ref_and_range. For char-table, put boundary between
4804 non-ASCII and 8-bit characters.
4805
4806 * print.c (print_object): For bool-vector, delete unnecessary
4807 check of ASCII_BYTE_P.
4808
4809 2008-11-26 Jason Rumney <jasonr@gnu.org>
4810
4811 * w32font.c (w32font_open_internal): Don't include external
4812 leading in font height. (Bug#879)
4813
4814 2008-11-26 Glenn Morris <rgm@gnu.org>
4815
4816 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4817 redefinition with ifdef. (Bug#1383)
4818
4819 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4820
4821 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4822
4823 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4824
4825 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4826 New EmacsView methods.
4827 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4828 Fixes bug #1048,1357,1414.
4829
4830 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4831
4832 Fix bug #1362.
4833 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4834 is not an indexed color.
4835 * nsterm.m (free_indexed_color): Add argument checking.
4836 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4837
4838 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
4839
4840 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4841 Document confirm-after-completion value for
4842 minibuffer-completion-confirm.
4843
4844 2008-11-24 Jason Rumney <jasonr@gnu.org>
4845
4846 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4847 warning.
4848
4849 2008-11-23 Jason Rumney <jasonr@gnu.org>
4850
4851 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4852 restored before returning.
4853
4854 * w32font.c (check_face_name): New function.
4855 (add_font_entity_to_list): Use it to filter out common substituted
4856 fonts. (Bug#642)
4857
4858 2008-11-22 Martin Rudalics <rudalics@gmx.at>
4859
4860 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4861 confirm-nonexistent-file-or-buffer in doc-string.
4862
4863 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4864
4865 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4866 Fix copy/paste typo. Add checks.
4867
4868 2008-11-21 Kenichi Handa <handa@m17n.org>
4869
4870 * coding.c (detect_coding_iso_2022): Reject invalid composition
4871 sequence.
4872 (DECODE_COMPOSITION_START): If the current source is the last
4873 block, and the current composition doesn't end, regard this
4874 sequence as invalid.
4875 (decode_coding_iso_2022): Handle invalid composition sequence.
4876
4877 2008-11-20 Martin Rudalics <rudalics@gmx.at>
4878
4879 * window.c (coordinates_in_window): Don't return
4880 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4881 line when the window is not the rightmost one. (Bug#1372)
4882
4883 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4884
4885 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4886
4887 2008-11-15 Eli Zaretskii <eliz@gnu.org>
4888
4889 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4890 and bright_bg if noninteractive is non-zero.
4891
4892 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4893
4894 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4895 x_draw_glyph_string_background.
4896
4897 * w32term.c (x_draw_glyph_string): Likewise.
4898
4899 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
4900
4901 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4902 the next glyph string once past the overhang width.
4903
4904 * nsterm.m (ns_draw_glyph_string): Likewise.
4905
4906 * w32term.c (x_draw_glyph_string): Likewise.
4907
4908 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4909
4910 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4911 double file close.
4912
4913 2008-11-14 Martin Rudalics <rudalics@gmx.at>
4914
4915 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4916 dedicated status of window before attempting to display another
4917 buffer in it.
4918
4919 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
4920
4921 * msdos.c (Fmsdos_long_file_names):
4922 (syms_of_msdos) <dos-unsupported-char-glyph>:
4923 * dosfns.c (Fint86): Fix typos in docstrings.
4924
4925 2008-11-14 Eli Zaretskii <eliz@gnu.org>
4926
4927 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4928
4929 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4930
4931 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4932
4933 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4934
4935 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4936
4937 * frame.h: Negative alpha means "don't touch".
4938
4939 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4940
4941 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4942
4943 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4944
4945 * hftctl.c:
4946 * chpdef.h:
4947 * acldef.h: Remove files used only for systems no longer supported.
4948
4949 * Makefile.in: Fix .o alphabetical ordering.
4950 (hftctl.o): Remove dependency, file removed.
4951 (keymap.o, print.o): Depend on charset.h.
4952
4953 2008-11-10 Kenichi Handa <handa@m17n.org>
4954
4955 * character.c (Fget_byte): Fix and make it faster for unibyte target.
4956
4957 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
4958
4959 * dired.c (file_name_completion): If completion_ignore_case is
4960 enabled, ignore case when checking completion-regexp-list.
4961
4962 2008-11-08 Eli Zaretskii <eliz@gnu.org>
4963
4964 * vm-limit.c (get_lim_data): Fix last change.
4965
4966 2008-11-08 Kenichi Handa <handa@m17n.org>
4967
4968 * character.c (Fget_byte): New function.
4969 (syms_of_character): Defsubr Fget_byte.
4970
4971 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
4972
4973 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4974 cursor position is valid after scrolling.
4975
4976 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
4977
4978 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4979
4980 2008-11-06 Glenn Morris <rgm@gnu.org>
4981
4982 * xterm.c (handle_one_xevent): Don't let popup menus cause
4983 mouse-autoselect-window related window switching. (Bug#1261)
4984
4985 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4986
4987 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4988
4989 2008-11-04 Andreas Schwab <schwab@suse.de>
4990
4991 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4992
4993 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
4994
4995 * xfns.c (Fx_wm_set_size_hint): New function.
4996
4997 2008-11-03 Martin Rudalics <rudalics@gmx.at>
4998
4999 * textprop.c (Fprevious_single_char_property_change): Return 0
5000 when there's no change in a string. (Bug#1301)
5001
5002 2008-11-02 Martin Rudalics <rudalics@gmx.at>
5003
5004 * frame.c (do_switch_frame): New argument NORECORD passed to
5005 Fselect_window.
5006 (Fselect_frame): New argument NORECORD passed to
5007 do_switch_frame.
5008 (Fset_frame_selected_window): New argument NORECORD passed to
5009 Fselect_frame.
5010 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5011 in call of do_switch_frame.
5012 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5013 Handle NORECORD argument in call of Fselect_frame.
5014 * lisp.h (do_switch_frame, Fselect_frame)
5015 (Fset_frame_selected_window): Adjust declarations.
5016 * window.c (select_frame_norecord): New function.
5017 (run_window_configuration_change_hook): Use it and call
5018 Fselect_frame with NORECORD set.
5019 (Fselect_window): Pass NORECORD to Fselect_frame.
5020 (Fset_window_configuration): Handle NORECORD argument in call of
5021 do_switch_frame.
5022 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5023 Fset_frame_selected_window.
5024 * keyboard.c (command_loop_1): Handle NORECORD in call of
5025 Fselect_frame (currently ifdefd).
5026
5027 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5028
5029 * emacs.c (USAGE2): Untabify.
5030
5031 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5032
5033 * composite.c (fill_gstring_header): Fix copy/paste typo.
5034
5035 2008-10-31 Martin Rudalics <rudalics@gmx.at>
5036
5037 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5038 (Fother_window): Rename argument and rewrite doc-string.
5039 (select_window_norecord): Fix return value. (Bug#1276)
5040
5041 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
5042
5043 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5044 new frames overriding foreground for tooltips. Based on similar patch
5045 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5046
5047 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
5048
5049 * emacs.c (Fdaemon_initialized): Initialize nfd.
5050
5051 2008-10-29 Martin Rudalics <rudalics@gmx.at>
5052
5053 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5054 (Fwindow_text_height): Clarify doc-strings.
5055 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5056 doc-string of window-scroll-functions.
5057
5058 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5059
5060 * category.c (syms_of_category): Fix typo in docstring.
5061
5062 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
5063
5064 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5065 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5066 Fix typos in docstrings.
5067
5068 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5069
5070 * emacs.c (daemon_pipe): Make non-static.
5071 (IS_DAEMON): Move definition ...
5072 * lisp.h (IS_DAEMON): ... here.
5073 (daemon_pipe): Declare.
5074 (is_daemon): Remove.
5075 * dispnew.c (init_display): Use IS_DAEMON.
5076
5077 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5078
5079 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5080 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5081
5082 * emacs.c (is_daemon): Remove.
5083 (main): Don't set is_daemon.
5084 (IS_DAEMON): New macro.
5085 (Fdaemonp, Fdaemon_initialized): Use it.
5086 (Fdaemon_initialized): Write a char into the pipe to make sure the
5087 parent exits.
5088 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5089
5090 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
5091
5092 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5093 over-sized glyph, draw it with the default glyph width.
5094
5095 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5096 glyph, draw it with the default glyph width.
5097
5098 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5099 glyph, draw it with the default glyph width.
5100
5101 * xdisp.c (try_scrolling): When computing the distance from the
5102 scroll margin to PT, try moving some distance past the window
5103 bottom before giving up.
5104
5105 2008-10-27 Martin Rudalics <rudalics@gmx.at>
5106
5107 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5108 (Fset_window_buffer): Explain in doc-string that a window can be
5109 "strongly" dedicated to its buffer.
5110
5111 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5112
5113 * emacs.c (daemon_name): New variable.
5114 (main): Deal with --daemon=SERVER_NAME.
5115 (Fdaemonp): Return a name if one was passed to --daemon.
5116
5117 2008-10-26 Romain Francoise <romain@orebokech.com>
5118
5119 * emacs.c (daemon_pipe): New variable.
5120 (main): Create a pipe before forking, make the parent exit only after
5121 the child has closed its end of the pipe. Move closing the
5122 descriptors ...
5123 (Fdaemon_initialized): ... here. New function.
5124
5125 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5126
5127 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5128 the previous unoptimized table.
5129
5130 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5131 the distinction between non-nil and non-t value of `dedicated'.
5132
5133 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
5134
5135 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
5136 read_char_minibuf_menu_text is large enough to hold the menu string.
5137
5138 2008-10-25 Martin Rudalics <rudalics@gmx.at>
5139
5140 * window.c (Fget_buffer_window, Fdelete_windows_on)
5141 (Freplace_buffer_in_windows): Make buffer argument optional and
5142 rename to buffer_or_name.
5143
5144 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
5145
5146 * xdisp.c (handle_single_display_spec, handle_display_prop):
5147 Undo 2005-05-16 change.
5148 (handle_stop): Pop iterator if it's loaded with an empty string.
5149 (get_overlay_strings_1): Don't save iterator if it's loaded with
5150 an empty string (bug#1201).
5151
5152 2008-10-24 Kenichi Handa <handa@m17n.org>
5153
5154 * ftfont.c (ftfont_otf_features): Fix previous change.
5155 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5156 calling ftfont_otf_features.
5157
5158 2008-10-24 Kenichi Handa <handa@m17n.org>
5159
5160 * font.c (font_match_p): Fix for the case that a vector of
5161 characters is in script-representative-chars.
5162
5163 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
5164
5165 * dbusbind.c (xd_in_read_queued_messages): New variable.
5166 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
5167 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5168 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5169 macro. (Bug#1186).
5170
5171 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
5172
5173 * s/sol2-10.h: New file.
5174
5175 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5176
5177 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5178 poor beast has survived 9+ years and the jump from xterm.c!).
5179
5180 2008-10-23 Martin Rudalics <rudalics@gmx.at>
5181
5182 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5183 Reword doc-string.
5184 (Fbury_buffer): In doc-string say what happens to the buffer's window.
5185
5186 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5187
5188 * character.c (syms_of_character) <script-representative-chars>:
5189 <unicode-category-table>: Doc fixes.
5190
5191 2008-10-23 Noah Friedman <friedman@splode.com>
5192
5193 * coding.c (make_conversion_work_buffer): Check that
5194 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5195 Fget_buffer_create.
5196
5197 2008-10-23 Kenichi Handa <handa@m17n.org>
5198
5199 * font.c (font_add_log): Check the values of extra properties.
5200
5201 2008-10-22 Martin Rudalics <rudalics@gmx.at>
5202
5203 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5204 Reword doc-string.
5205 (Fset_window_parameter): Use NILP.
5206 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
5207 (Frecenter): Use "selected" instead of "current" window in doc-strings.
5208
5209 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5210
5211 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5212
5213 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5214
5215 * nsfns.m (ns_appkit_version): New function.
5216 (x-server-version): Use it.
5217 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5218 (x-server-vendor): Don't check_ns().
5219
5220 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5221
5222 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5223
5224 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5225 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5226
5227 2008-10-22 Kenichi Handa <handa@m17n.org>
5228
5229 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5230 scripts.
5231
5232 * category.c (word_boundary_p): Check scripts instead of charset.
5233 Handle nil value in word-separating-categories and
5234 word-combining-categories.
5235 (syms_of_category): Fix docstrings of word-separating-categories
5236 and word-combining-categories.
5237
5238 2008-10-21 Eli Zaretskii <eliz@gnu.org>
5239
5240 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5241 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5242
5243 2008-10-21 Martin Rudalics <rudalics@gmx.at>
5244
5245 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5246 Rename arg "buffer" to "buffer_or_name".
5247 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5248 it optional.
5249 (no_switch_window): Remove since the return value is not used.
5250 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
5251 Consider window as dedicated when Fwindow_dedicated_p returns a
5252 non-nil value.
5253 * lisp.h: Remove prototype for no_switch_window.
5254
5255 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5256
5257 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
5258 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
5259
5260 2008-10-21 Kenichi Handa <handa@m17n.org>
5261
5262 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5263 check Vlatin_extra_code_table.
5264
5265 2008-10-20 Eli Zaretskii <eliz@gnu.org>
5266
5267 * fileio.c (Fset_file_modes): Doc fix.
5268
5269 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
5270
5271 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5272 in arrays.
5273
5274 2008-10-19 Martin Rudalics <rudalics@gmx.at>
5275
5276 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5277 Mention kill-buffer in doc-string.
5278 (Fset_window_buffer): Reinsert tem check removed in last commit.
5279 (Fenlarge_window, Fshrink_window): Have argument names and
5280 doc-string follow Elisp manual more closely.
5281
5282 2008-10-18 Eli Zaretskii <eliz@gnu.org>
5283
5284 * fileio.c (Fset_file_modes): Doc fix.
5285
5286 2008-10-18 Martin Rudalics <rudalics@gmx.at>
5287
5288 * window.c (Fwindow_width, Fset_window_start)
5289 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
5290 (Fdelete_windows_on, Freplace_buffer_in_windows):
5291 Make doc-strings follow code and Elisp manual more closely.
5292 (Fwindow_dedicated_p): Make window argument optional.
5293 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5294 (Fset_window_buffer): Respect any non-nil dedicated value for
5295 window. Rename "buffer" argument to "buffer_or_name".
5296
5297 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
5298
5299 * m/sh3.h: New file, machine description for SuperH.
5300
5301 2008-10-17 Martin Rudalics <rudalics@gmx.at>
5302
5303 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5304
5305 2008-10-17 Kenichi Handa <handa@m17n.org>
5306
5307 * ftfont.c (ftfont_otf_features): Fix indexing
5308 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5309
5310 2008-10-16 Magnus Henoch <mange@freemail.hu>
5311
5312 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5313 (Fdbus_call_method_asynchronously): Ditto.
5314 This change makes C-h f display the argument list.
5315
5316 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
5317
5318 * fileio.c (Fexpand_file_name): Doc fix.
5319
5320 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5321 of :foreground and :background equivalent to unspecified (20.x
5322 compatibility).
5323
5324 2008-10-15 Eli Zaretskii <eliz@gnu.org>
5325
5326 * buffer.c (syms_of_buffer): Doc fix.
5327
5328 2008-10-14 Kenichi Handa <handa@m17n.org>
5329
5330 * font.c (font_clear_prop): When clearing font width, clear the
5331 average width field too.
5332
5333 2008-10-12 Andreas Schwab <schwab@suse.de>
5334
5335 * ftfont.c (ftfont_shape_by_flt): Make static.
5336 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5337
5338 * font.c: Don't include <m17n-flt.h>.
5339
5340 2008-10-10 Eli Zaretskii <eliz@gnu.org>
5341
5342 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5343
5344 2008-10-09 Eli Zaretskii <eliz@gnu.org>
5345
5346 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5347 away code.
5348
5349 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
5350
5351 * dispnew.c (update_text_area): Avoid looping due to large glyph
5352 overhangs (bug#1070).
5353
5354 2008-10-09 Kenichi Handa <handa@m17n.org>
5355
5356 * fontset.c (face_for_char): If face->fontset is negative, just
5357 return ascii_face.
5358
5359 * font.c (font_delete_unmatched): Fix previous change.
5360 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
5361
5362 2008-10-09 Martin Rudalics <rudalics@gmx.at>
5363
5364 * frame.c (Fraise_frame): On text-only terminals select frame in
5365 order to make it visible. (Bug#1061)
5366
5367 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
5368
5369 * fontset.c (fontset_find_font): Check frame validity.
5370
5371 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
5372
5373 * gtkutil.c (xg_display_open): Reset default display if none exists.
5374 (xg_display_close): Allow Emacs to close all displays (bug#985).
5375
5376 2008-10-06 Andreas Schwab <schwab@suse.de>
5377
5378 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
5379
5380 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
5381
5382 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
5383
5384 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
5385
5386 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5387 during initialization.
5388
5389 2008-10-04 Eli Zaretskii <eliz@gnu.org>
5390
5391 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5392 whole thing on MSDOS frames as well as on a TTY.
5393
5394 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5395 well as for TTY.
5396 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5397 well as on a TTY.
5398
5399 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5400 as well as for TTY.
5401
5402 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5403
5404 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5405 MSDOS frames as well.
5406
5407 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5408
5409 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5410 correct arguments.
5411 * menu.c (find_and_return_menu_selection): Add cast.
5412
5413 2008-10-03 Glenn Morris <rgm@gnu.org>
5414
5415 * emacs.c (USAGE1): Add --daemon.
5416
5417 2008-10-02 Eli Zaretskii <eliz@gnu.org>
5418
5419 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5420 100, so it's in percents as advertised.
5421
5422 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5423
5424 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5425 (ns_output.current_cursor, ns_output.desired_cursor)
5426 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5427 (FRAME_NEW_CURSOR_COLOR): Remove.
5428
5429 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
5430 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
5431 enumeration (HOLLOW_BOX_CURSOR, etc.).
5432
5433 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5434 (draw_window_cursor): Simplify code.
5435 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5436 Don't change cursor type. In latter, call rehighlight instead of doing
5437 updates manually.
5438 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5439 Use core Emacs cursor types.
5440
5441 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
5442
5443 2008-10-02 Martin Rudalics <rudalics@gmx.at>
5444
5445 * process.c (Faccept_process_output): Fix doc-string.
5446
5447 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5448
5449 * gmalloc.c (__sbrk): Also define for uClibc.
5450
5451 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5452 for uClibc.
5453
5454 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5455
5456 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5457 styles.
5458 (nsfont_open): Reenable the cache.
5459
5460 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5461
5462 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5463 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5464
5465 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5466
5467 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5468 a suspended terminal.
5469
5470 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
5471
5472 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5473
5474 2008-09-30 Eli Zaretskii <eliz@gnu.org>
5475
5476 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5477
5478 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
5479
5480 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5481 in a continued line coincides with a line beginning.
5482
5483 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5484
5485 * nsfont.m (nsfont_trait_distance): Fix bug.
5486 (nsfont_list): Return a list rather than a vector (syncs with Handa
5487 changes of 2008-05-14).
5488 (nsfont_open): Improve logging.
5489
5490 2008-09-29 Andreas Schwab <schwab@suse.de>
5491
5492 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5493
5494 2008-09-28 Martin Rudalics <rudalics@gmx.at>
5495
5496 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5497 name as char-resolve-modifiers.
5498 Reported by: Markus Triska <markus.triska@gmx.at>
5499
5500 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5501
5502 * dispnew.c (init_display): Return earlier when running as a daemon.
5503
5504 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5505
5506 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5507
5508 2008-09-27 Eli Zaretskii <eliz@gnu.org>
5509
5510 * composite.c (Fcomposition_get_gstring)
5511 (Fcompose_region_internal, Fcompose_string_internal)
5512 (Ffind_composition_internal): Doc fix.
5513 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5514 (syms_of_composite) <auto-composition-function>: Doc fix.
5515 (syms_of_composite) <composition-function-table>: Doc fix.
5516
5517 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
5518
5519 * search.c (wordify): New argument for lax word-ends.
5520 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5521
5522 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5523
5524 * lisp.h (is_daemon): Declare.
5525 * dispnew.c (init_display): Do not try to initialize the terminal
5526 when running as a daemon.
5527
5528 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
5529
5530 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5531 x_display_pixel_height.
5532
5533 2008-09-22 Martin Rudalics <rudalics@gmx.at>
5534
5535 * undo.c (record_point): Don't call Fundo_boundary for first
5536 change. (Bug#731)
5537
5538 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
5539
5540 * emacs.c (Fdaemonp): Doc fix.
5541
5542 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5543
5544 * emacs.c (main): Place #ifdef in the proper place.
5545
5546 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5547
5548 * emacs.c (standard_args): Add --daemon.
5549 (main): Disconnect from the terminal when --daemon is passed.
5550 (is_daemon): New variable.
5551 (Fdaemonp): New function.
5552 (syms_of_emacs): Defsubr it.
5553
5554 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
5555
5556 * xdisp.c (get_next_display_element): Handle string display
5557 correctly when checking for the end of a box run.
5558
5559 2008-09-20 Glenn Morris <rgm@gnu.org>
5560
5561 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5562 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5563 (Frename_file): Avoid copying to trash if a rename involves
5564 a delete. (Bug#964).
5565
5566 2008-09-20 Eli Zaretskii <eliz@gnu.org>
5567
5568 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5569 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5570 frames as well as termcap frames.
5571 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5572 get_named_tty.
5573
5574 2008-09-19 Eli Zaretskii <eliz@gnu.org>
5575
5576 * process.c (procfs_system_process_attributes): Fix cmdline in
5577 case /proc/PID/cmdline is empty.
5578
5579 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5580 x_display_pixel_height.
5581
5582 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
5583
5584 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5585
5586 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5587 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5588
5589 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5590
5591 * dispextern.h (struct it): Move line_wrap away from the middle of
5592 bitfields. Move voffset in struct iterator_stack_entry after the
5593 bitfields. Move tab_width near after another short.
5594
5595 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5596
5597 * frame.h (struct frame): Move alpha from the middle of bitfields.
5598
5599 * window.h (struct window): Move frozen_window_start_p after the
5600 rest of the bitfields to reduce padding.
5601
5602 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
5603
5604 * xterm.h (x_display_info): Remove `height' and `width' members.
5605
5606 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5607
5608 * w32term.h (w32_display_info): Remove `height', `width',
5609 `height_in', and `width_in' members.
5610
5611 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5612 New functions.
5613 (x_calc_absolute_position): Use them.
5614 (x_term_init): Omit removed `height' and `width' members.
5615
5616 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5617 New functions.
5618 (w32_read_socket, x_calc_absolute_position): Use them.
5619 (w32_initialize_display_info, w32_term_init): Omit removed members
5620 of w32_display_info.
5621
5622 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5623 New functions.
5624 (ns_initialize_display_info): Omit removed members of ns_display_info.
5625
5626 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5627 New functions.
5628 (x_calc_absolute_position): Use them.
5629 (x_term_init): Omit removed `height' and `width' members.
5630
5631 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5632 (compute_tip_xy):
5633 * frame.c (x_fullscreen_adjust):
5634 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5635 x_display_pixel_width.
5636
5637 2008-09-18 Kenichi Handa <handa@m17n.org>
5638
5639 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5640 (composition_compute_stop_pos): Fix handling of static composition.
5641 (Fcomposition_get_gstring): Check FROM and TO at first.
5642
5643 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5644
5645 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
5646 mixup (YAILOM).
5647
5648 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
5649
5650 * indent.c (Fvertical_motion): Use position reported by iterator
5651 instead of PT for determining screen motion (bug#943).
5652
5653 2008-09-17 Romain Francoise <romain@orebokech.com>
5654
5655 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5656
5657 2008-09-17 Kenichi Handa <handa@m17n.org>
5658
5659 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5660
5661 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5662 if necessary.
5663
5664 2008-09-16 Kenichi Handa <handa@m17n.org>
5665
5666 * coding.c (make_conversion_work_buffer): Avoid calling
5667 Fget_buffer_create if it is not necessary.
5668
5669 2008-09-15 Martin Rudalics <rudalics@gmx.at>
5670
5671 * window.c (Fselect_window): Don't update window_select_count and
5672 use_time when norecord is not nil.
5673
5674 2008-09-14 Kenichi Handa <handa@m17n.org>
5675
5676 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5677 specpdl_ptr.
5678
5679 2008-09-12 Kenichi Handa <handa@m17n.org>
5680
5681 * indent.c (scan_for_column): Don't handle automatic composition
5682 if the current buffer is not associated with a window.
5683
5684 * composite.c (composition_reseat_it): If the current buffer is
5685 not associated with a window, ignore the automatic composition.
5686 (find_automatic_composition): Likewise.
5687
5688 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5689
5690 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5691 (Fgpm_mouse_stop): Use it.
5692 * termhooks.h (close_gpm): Declare.
5693 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5694 connection if Gpm_GetEvent fails.
5695
5696 * window.c (set_window_buffer): Always preserve current-buffer.
5697
5698 2008-09-12 Glenn Morris <rgm@gnu.org>
5699
5700 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5701
5702 2008-09-11 Glenn Morris <rgm@gnu.org>
5703
5704 * charset.c (charset-map-path): Doc fix.
5705
5706 2008-09-10 Kenichi Handa <handa@m17n.org>
5707
5708 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5709
5710 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5711 compose a grapheme cluster with the preceding base glyph.
5712
5713 * composite.c (composition_compute_stop_pos): Fix previous change.
5714 Reset cmp_it->id to -1 at first.
5715
5716 2008-09-10 Glenn Morris <rgm@gnu.org>
5717
5718 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5719
5720 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
5721
5722 * keyboard.c (read_key_sequence): Reapply translation maps when
5723 switching keyboards.
5724
5725 2008-09-09 Kenichi Handa <handa@m17n.org>
5726
5727 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5728 characters.
5729
5730 * composite.c (FORWARD_CHAR): Fix calculation
5731 of (POSITION).pos_byte.
5732 (composition_compute_stop_pos): Limit the search of composition to
5733 at most 500 characters ahead. If we reach the limit or find a
5734 newline, set cmp_it->ch to -2 and return 0.
5735 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5736
5737 2008-09-08 Kenichi Handa <handa@m17n.org>
5738
5739 * indent.c (Fvertical_motion): Be sure to set
5740 it_overshoot_expected if it.cmp_it.id is non-negative.
5741
5742 2008-09-07 Andreas Schwab <schwab@suse.de>
5743
5744 * callproc.c (Fcall_process): Don't hold references to string data
5745 across garbage collection. Move initialisation of new_argv down
5746 to avoid compiler bug.
5747
5748 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5749
5750 * process.c (Fsystem_process_attributes): Doc fix.
5751
5752 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
5753
5754 * callproc.c (Fcall_process): Canonicalize current directory name.
5755
5756 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5757 iterator advances to the next line if the current line ends in a
5758 continued tab.
5759
5760 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5761
5762 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5763 member to point to cmp_from.
5764
5765 * xdisp.c: Doc fix for references to gidx data member.
5766
5767 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5768
5769 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5770
5771 2008-09-07 Kenichi Handa <handa@m17n.org>
5772
5773 * composite.c (FORWARD_CHAR): Check STOP after
5774 incrementing (POSITION).pos.
5775
5776 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5777
5778 * process.c (Fsystem_process_attributes): Doc fix.
5779
5780 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
5781
5782 * keyboard.c (Ftop_level): Doc fix.
5783
5784 2008-09-06 Eli Zaretskii <eliz@gnu.org>
5785
5786 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5787 minibuffer, don't let lower part of menu invade the echo area.
5788
5789 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5790 "char *q" to access menu text and advance through it. Revert the
5791 change that displayed ">" instead of ASCII character 0x10.
5792
5793 2008-09-05 Eli Zaretskii <eliz@gnu.org>
5794
5795 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5796 toggle boxes and radio buttons on MS-DOS as well.
5797
5798 2008-09-05 Kenichi Handa <handa@m17n.org>
5799
5800 * composite.c (autocmp_chars): Check lookback count.
5801 (composition_compute_stop_pos): Set cmp_it->lookback.
5802 (composition_reseat_it): Check lookback count.
5803 (struct position_record): New struct.
5804 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5805 (find_automatic_composition): New function.
5806 (composition_adjust_point): Use find_automatic_composition.
5807
5808 * dispextern.h (struct composition_it): New member lookback.
5809
5810 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
5811
5812 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5813 if moving by a single line.
5814
5815 2008-09-02 Andreas Schwab <schwab@suse.de>
5816
5817 * xterm.c (x_delete_display): Fix merge error.
5818
5819 * fileio.c (Fexpand_file_name): Remove unused variables.
5820
5821 2008-09-02 Eli Zaretskii <eliz@gnu.org>
5822
5823 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5824 storage on all platforms, not just on DOS_NT.
5825
5826 2008-09-02 Jason Rumney <jasonr@gnu.org>
5827
5828 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5829 Ensure mouse is not grabbed after menu is finished.
5830
5831 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
5832
5833 * xfaces.c (Finternal_set_alternative_font_family_alist)
5834 (Finternal_set_alternative_font_registry_alist): Properly copy
5835 entire alist structure.
5836
5837 2008-09-01 Kenichi Handa <handa@m17n.org>
5838
5839 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
5840 representative chars of the script is a vector.
5841 (ftfont_list): Handle the case where the representative chars of
5842 the script is a vector.
5843
5844 * character.c (syms_of_character): Docstring of
5845 script-representative-chars fixed.
5846
5847 2008-08-31 Eli Zaretskii <eliz@gnu.org>
5848
5849 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5850 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5851 the menu. Allocate larger buffer for `text', to account for
5852 possible ^C characters.
5853
5854 2008-08-31 Martin Rudalics <rudalics@gmx.at>
5855
5856 * xdisp.c (prepare_menu_bars): Don't call
5857 Vwindow_size_change_functions with arg Qt.
5858
5859 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5860
5861 * font.h (font_range):
5862 * fileio.c (report_file_error):
5863 * composite.c (composition_update_it): Yet another int/Lisp_Object
5864 mixup (YAILOM).
5865
5866 2008-08-30 Glenn Morris <rgm@gnu.org>
5867
5868 * data.c (Fmake_variable_frame_local): Doc fix.
5869
5870 * frame.c (Fmodify_frame_parameters): Doc fix.
5871
5872 2008-08-30 Eli Zaretskii <eliz@gnu.org>
5873
5874 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5875 needed by GetTokenInformation.
5876 (w32_system_process_attributes): Check return values of all system
5877 APIs.
5878
5879 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5880 only when the state changes.
5881 (IT_update_begin, IT_update_end): Add termscript trace.
5882
5883 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5884 clipboard is unavailable. Set dst to NULL if it doesn't point to
5885 malloc'ed data.
5886 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5887 passing random values to xfree.
5888
5889 * dispnew.c (init_display): Set `tty's association in frame's
5890 parameters alist to the name of the terminal device, if that is known.
5891
5892 2008-08-29 Jason Rumney <jasonr@gnu.org>
5893
5894 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5895
5896 2008-08-29 Eli Zaretskii <eliz@gnu.org>
5897
5898 * composite.c (fill_gstring_body): Avoid compiler warnings.
5899
5900 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5901 LGLYPH_SET_CODE to avoid compiler warnings.
5902
5903 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
5904
5905 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5906
5907 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5908 LGLYPH_SET_CODE.
5909
5910 2008-08-29 Kenichi Handa <handa@m17n.org>
5911
5912 * fileio.c (report_file_error): Don't downcase the first character
5913 of errstring if it is still unibyte.
5914
5915 2008-08-29 Kenichi Handa <handa@m17n.org>
5916
5917 These changes are to re-implement the automatic composition so
5918 that it doesn't use text properties.
5919
5920 * Makefile.in (ftfont.o): Depend on composite.h.
5921 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5922
5923 * character.h (Vunicode_category_table): Extern it.
5924
5925 * character.c (Vunicode_category_table): New variable.
5926 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5927
5928 * chartab.c (optimize_sub_char_table): Perform more greedy
5929 optimization.
5930
5931 * composite.h (enum composition_method):
5932 Delete COMPOSITION_WITH_GLYPH_STRING.
5933 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5934 (Vcomposition_function_table): Extern it.
5935 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5936 (composition_gstring_put_cache, composition_gstring_from_id)
5937 (composition_gstring_p, composition_gstring_width)
5938 (composition_compute_stop_pos, composition_reseat_it)
5939 (composition_update_it, composition_adjust_point): Extern them.
5940 (Fcomposition_get_gstring): EXFUN it.
5941
5942 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
5943 (Vcomposition_function_table)
5944 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
5945 (gstring_hash_table, gstring_work, gstring_work_headers):
5946 New variables.
5947 (gstring_lookup_cache, composition_gstring_put_cache)
5948 (composition_gstring_from_id, composition_gstring_p)
5949 (composition_gstring_width, fill_gstring_header)
5950 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5951 (composition_reseat_it, composition_update_it)
5952 (composition_adjust_point, Fcomposition_get_gstring): New functions.
5953 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5954 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5955 Defsubr compostion_get_gstring.
5956
5957 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5958 cmp_id.
5959 (struct glyph_string): Delete the member gidx. New members
5960 cmp_id, cmp_from, and cmp_to.
5961 (enum it_method): Delete GET_FROM_COMPOSITION.
5962 (struct composition_it): New struct.
5963 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5964 Delete c, len, cmp_id, cmp_len in u.comp.
5965
5966 * font.h (enum lgstring_indices): Delete it.
5967 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
5968 (enum lglyph_indices): Likewise.
5969 (font_range): Adjust extern.
5970 (font_fill_lglyph_metrics): Extern it.
5971
5972 * font.c (QCf): New variable.
5973 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5974 (font_prepare_composition): Delete this function.
5975 (font_range): Type and arguments changed.
5976 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5977 (font_fill_lglyph_metrics): New function.
5978 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
5979 (syms_of_font): DEFSYM QCf. Delete defsubr for
5980 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5981 Defsubr Sfont_shape_gstring.
5982
5983 * fontset.h (font_for_char): Extern it.
5984
5985 * fontset.c (font_for_char): New function.
5986
5987 * ftfont.c: Include composite.h.
5988 (ftfont_resolve_generic_family): Add langset "en" to pattern.
5989 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5990
5991 * indent.c: Include composite.h and dispextern.h.
5992 (check_composition): Delete this function.
5993 (scan_for_column): Handle composition by
5994 composition_compute_stop_pos, composition_reseat_it, and
5995 composition_update_it.
5996 (compute_motion): Likewise.
5997 (Fvertical_motion): Fix checking of composition.
5998
5999 * keyboard.c (adjust_point_for_property): Check composition by
6000 composition_adjust_point.
6001
6002 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
6003 struct glyph_string.
6004
6005 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6006 (append_composite_glyph): Adjust for the change of struct it and
6007 struct glyph.
6008 (produce_composite_glyph): Likewise.
6009
6010 * w32term.c (x_draw_composite_glyph_string_foreground):
6011 Adjust for the change of struct glyph_string.
6012 (x_draw_glyph_string): Likewise.
6013
6014 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6015 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6016
6017 * xdisp.c: Include font.h.
6018 (it_props): Delete the entry for Qauto_composed.
6019 (init_iterator): Initialize it->cmp_it.id to -1.
6020 (compute_stop_pos): Call composition_compute_stop_pos.
6021 (face_before_or_after_it_pos): Adjust for the change of struct it.
6022 (handle_auto_composed_prop): Delete it.
6023 (handle_composition_prop): Handle only static composition.
6024 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6025 from xassert. Initialize it->cmp_it.stop_pos.
6026 (push_it): Adjust for the change of struct it.
6027 (pop_it): Likewise.
6028 (get_next_element): Delete next_element_from_composition.
6029 (CHAR_COMPOSED_P): New macro.
6030 (get_next_display_element): For automatic composition, get a face
6031 from the font in the glyph-string.
6032 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
6033 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
6034 (next_element_from_string): Check if the character at the current
6035 position is composed by CHAR_COMPOSED_P.
6036 (next_element_from_buffer): Likewise.
6037 (next_element_from_composition): Adjust for the change of struct it.
6038 Update it->cmp_it.
6039 (dump_glyph): Adjust for the change of struct glyph.
6040 (fill_composite_glyph_string): Adjust for the change of struct
6041 it and struct glyph. Don't handle automatic composition here.
6042 (fill_gstring_glyph_string): New function.
6043 (x_get_glyph_overhangs): Handle automatic composition.
6044 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
6045 (BUILD_GSTRING_GLYPH_STRING): New macro.
6046 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6047 automatic composition.
6048 (append_composite_glyph): Adjust for the change of struct it and
6049 struct glyph.
6050 (x_produce_glyphs): Adjust for the change of struct it.
6051
6052 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6053 the change of struct glyph_string.
6054 (x_draw_glyph_string): Likewise.
6055
6056 2008-08-29 Glenn Morris <rgm@gnu.org>
6057
6058 * buffer.c (word-wrap): Doc fix.
6059 * xdisp.c (truncate-partial-width-windows): Doc fix.
6060 Increase default to 50.
6061
6062 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
6063
6064 * xdisp.c (update_tool_bar_unwind): New function.
6065 (update_tool_bar): Temporarily set selected frame before building
6066 tool-bar items.
6067
6068 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
6069
6070 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6071 snprintf, respectively.
6072 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6073
6074 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
6075
6076 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6077 LDFLAGS to GNUstep CC invocation.
6078
6079 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
6080
6081 * indent.c (Fvertical_motion): Revert last change. Handle the
6082 general case where we are moving forward, and PT spans multiple
6083 screen lines.
6084
6085 * eval.c (find_handler_clause): Temporarily increase
6086 max-lisp-eval-depth while printing the backtrace buffer, to
6087 guarantee that help-mode code can run.
6088
6089 2008-08-27 Eli Zaretskii <eliz@gnu.org>
6090
6091 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6092 colors under -rv.
6093 (IT_set_frame_parameters): Don't swap foreground and background
6094 colors if `(reverse . t)' is present in the frame properties.
6095 (internal_terminal_init): Call init_frame_faces only for the
6096 initial frame.
6097
6098 2008-08-27 Andreas Schwab <schwab@suse.de>
6099
6100 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6101
6102 2008-08-27 Andreas Schwab <schwab@suse.de>
6103
6104 * search.c (search_buffer): Set char_base to zero only at the end.
6105
6106 2008-08-27 Kenichi Handa <handa@m17n.org>
6107
6108 * fileio.c (report_file_error): Fix handling of multibyte error string.
6109
6110 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6111
6112 * xterm.c (x_term_init): Temporarily hide the partially
6113 initialized terminal while calling vendor-specific-keysyms.
6114
6115 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6116
6117 * msdos.c (internal_terminal_init): Most initializations done only
6118 once, especially initial_screen_colors[] and termscript open.
6119
6120 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6121
6122 * eval.c (Fcondition_case): Doc fix.
6123
6124 * widgetprv.h (EmacsFramePart): Change font member to the new font
6125 struct.
6126
6127 * widget.c: Include character.h and font.h for XSETFONT.
6128 (setup_frame_gcs): Compute X font id from font struct, just once.
6129
6130 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6131
6132 * term.c (get_named_tty): Fix last change.
6133
6134 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6135
6136 * indent.c (Fvertical_motion): If moving forward starting from a
6137 multi-line string, move the iterator to the last line of that string.
6138
6139 2008-08-25 Eli Zaretskii <eliz@gnu.org>
6140
6141 * frame.c (do_switch_frame): Mark previously displayed frame as
6142 obscured for FRAME_MSDOS_P frames as well.
6143
6144 2008-08-24 Eli Zaretskii <eliz@gnu.org>
6145
6146 * frame.c (make_terminal_frame): Initialize f->terminal,
6147 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6148 Set the top frame to newly created frame.
6149 (Fmake_terminal_frame): Reuse the_only_display_info.
6150
6151 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6152 estimating available memory.
6153
6154 2008-08-23 David Reitter <david.reitter@gmail.com>
6155
6156 * nsterm.m (ns_draw_window_cursor): Don't call
6157 NSDisableScreenUpdates and NSEnableScreenUpdates on
6158 non-NS_IMPL_COCOA systems.
6159
6160 2008-08-23 Andreas Schwab <schwab@suse.de>
6161
6162 * process.c (procfs_system_process_attributes): Fix use of
6163 uninitialized variables.
6164
6165 2008-08-23 Eli Zaretskii <eliz@gnu.org>
6166
6167 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6168
6169 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6170 calling tty-set-up-initial-frame-faces.
6171
6172 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6173 Allow MSDOS frames along with X frames.
6174
6175 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6176 addition to output_termcap.
6177
6178 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6179
6180 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6181 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6182 highlight.
6183
6184 * process.c [!subprocesses]: Define QCname.
6185 (syms_of_process): Intern and staticpro it.
6186
6187 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6188 Adjust for changes in encoding/decoding routines.
6189 Use encode_coding_object and decode_coding_object instead of
6190 encode_coding and decode_coding.
6191
6192 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
6193
6194 * dosfns.c: Include frame.h before termhooks.h.
6195 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6196 variable termscript.
6197
6198 * s/msdos.h (USER_FULL_NAME): Define.
6199 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6200
6201 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6202 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6203 pw->pw_gecos.
6204
6205 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6206 SELECTED_FRAME as additional (1st) argument.
6207 (tty_read_avail_input): Handle output_msdos_raw in
6208 addition to output_termcap.
6209
6210 * msdos.c: Include frame.h before termhooks.h.
6211 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6212 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6213 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6214 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6215 (IT_set_terminal_modes, IT_reset_terminal_modes)
6216 (IT_set_frame_parameters): Use tty->termscript instead of a global
6217 variable termscript.
6218 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6219 global variable terminal_coding. Don't refer to
6220 Vnonascii_translation_table.
6221 (internal_terminal_init): Set Vwindow_system in current_kboard.
6222 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6223 Announce date and time of session start, if termscript is open.
6224 Don't zero out the_only_display_info (it is done in
6225 term.c:init_tty). Open termscript only of not already open.
6226 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
6227 here instead of dos_ttraw. Don't initialize display if this is an
6228 initial tty. Don't set FRAME_FONT.
6229 (Vwindow_system_version): Bump to 23.
6230 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6231 is available, set up mouse_position_hook.
6232 (dos_ttraw, IT_set_terminal_modes): If called with initial
6233 terminal, do nothing.
6234 (IT_set_frame_parameters): Handle the Qtty_type frame
6235 parameter by calling internal_terminal_init.
6236 (dos_set_window_size, show_mouse_face)
6237 (clear_mouse_face, IT_note_mode_line_highlight)
6238 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6239 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6240 (initialize_msdos_display): New function.
6241 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6242 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6243 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6244 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
6245 Accept additional argument: a pointer to a frame. Update all callers.
6246 (request_sigio, unrequest_sigio): Don't define, now defined on
6247 sysdep.c.
6248 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6249
6250 * term.c [MSDOS]: Include msdos.h.
6251 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6252 conditional to DOS_NT. Allow only one call to this function in a
6253 session. Don't allocate a new struct tty_display_info; instead,
6254 reuse the_only_display_info. Call get_tty_size to get screen
6255 dimensions. Call init_baud_rate to set bad_rate.
6256 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6257 (Fsuspend_tty) [MSDOS]: Don't close input and output.
6258 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
6259 (get_tty_terminal, get_named_tty, Ftty_type)
6260 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6261 output_termcap.
6262 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6263 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
6264 only when subprocesses are supported.
6265
6266 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6267 f->output_data.x.
6268 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6269 terminal devices.
6270
6271 * msdos.h: Remove definition of struct x_display_info and struct
6272 x_output.
6273 (FRAME_FONT): Use output_data.tty.
6274 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
6275 (struct x_display_info): Rename from display_info. Update all users in
6276 msdos.c.
6277 (struct x_output): Remove background_pixel and foreground_pixel.
6278 (the_only_display_info): Rename from the_only_x_display.
6279 (dos_ttraw): Update prototype.
6280
6281 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6282 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6283
6284 2008-08-23 Jason Rumney <jasonr@gnu.org>
6285
6286 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6287 (fn_TIFFSetDirectory): New library function used.
6288 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6289 (tiff_load): Use :index to select among multiple images. Set count
6290 property when multiple images exist.
6291 (gif_format): Use :index, not :image.
6292
6293 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
6294
6295 * xdisp.c (try_scrolling): Check INT_MAX instead of
6296 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6297 to obtain INT_MAX.
6298
6299 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6300
6301 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6302
6303 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6304
6305 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6306 GNUstep library location.
6307
6308 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
6309
6310 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6311 before using it.
6312
6313 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6314
6315 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6316
6317 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6318 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6319 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6320 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6321 (EmacsApp-cursor_blink_handler): Remove declaration.
6322 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6323 match 01 Feb 2008 changes in xterm.c.
6324 (ns_read_socket): Add cast to avoid warning.
6325 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6326 GNUstep.
6327
6328 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
6329
6330 * xselect.c (x_get_foreign_selection): Return nil if desired
6331 selection could not be obtained, instead of signalling an error.
6332
6333 2008-08-20 David Reitter <david.reitter@gmail.com>
6334
6335 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6336 * nsterm.m: Remove ns-specific code for cursor blinking.
6337 (ns_draw_window_cursor): Clear cursor properly rather than
6338 redrawing the area. Respect width of bar cursors.
6339 These changes enable the use of generic blink-cursor-mode and
6340 generic cursor types in NS and support smooth cursor movements (do
6341 not blink off after command).
6342 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6343 Nextstep, too.
6344
6345 2008-08-19 Kenichi Handa <handa@m17n.org>
6346
6347 * font.c (Vfont_log_deferred): New variable.
6348 (font_add_log): Check Vfont_log_deferred.
6349 (font_deferred_log): New function.
6350
6351 * font.h (font_deferred_log): Extern it.
6352
6353 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6354 for sorting.
6355 (face_for_char): Use deferred log.
6356
6357 2008-08-18 Kenichi Handa <handa@m17n.org>
6358
6359 * fontset.c (face_for_char): Add font log.
6360
6361 * font.c (font_add_log): Add the font properties :script, :lang,
6362 and :otf in the log.
6363
6364 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
6365
6366 * xdisp.c: Remove dead code.
6367 (handle_invisible_prop, next_overlay_string): Defer call to
6368 setup_for_ellipsis.
6369 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6370
6371 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
6372
6373 * xfaces.c (lookup_derived_face): Properly handle possible zero
6374 return value of get_lface_attributes.
6375 (merge_faces): Don't tell lookup_derived_face to signal an error
6376 if face is not found.
6377
6378 * dired.c (Fdirectory_files): Doc fix.
6379
6380 * process.c (make_process): Initialize kill_without_query struct
6381 member.
6382
6383 2008-08-15 Eli Zaretskii <eliz@gnu.org>
6384
6385 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6386 Alternative calculation of totphys for Visual Studio 6.
6387
6388 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6389
6390 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6391 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6392 All users changed.
6393 (stat): Only root directory passed to GetDriveType. Allow RAM
6394 disk as well as local fixed disk when w32-get-true-file-attributes
6395 is set to `local'.
6396 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6397 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6398 (w32_cached_id, w32_add_to_cache): New functions.
6399 (get_name_and_id): Look account names in the cache before calling
6400 lookup_account_sid.
6401 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6402 New initialization flags.
6403 (globals_of_w32): Initialize them to zero.
6404 (w32_system_process_attributes): Use w32_cached_id and
6405 w32_add_to_cache.
6406
6407 2008-08-14 Lawrence Mitchell <wence@gmx.li>
6408
6409 * lread.c (Fread_char, Fread_char_exclusive): If no character
6410 event is read before timeout is reached, return nil, rather than
6411 converting to a number.
6412
6413 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
6414
6415 * fns.c (use_dialog_box): Doc fix.
6416
6417 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6418 on OS X.
6419
6420 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
6421
6422 * frame.c (Qns_parse_geometry): New var.
6423 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6424
6425 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
6426
6427 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6428 space character in calculating tabs.
6429
6430 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6431
6432 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6433
6434 2008-08-10 Glenn Morris <rgm@gnu.org>
6435
6436 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6437 silence gcc "limited range of data type" warnings in some
6438 make_fixnum_or_float calls.
6439
6440 2008-08-09 Eli Zaretskii <eliz@gnu.org>
6441
6442 * w32.c (w32_system_process_attributes): If the process does not
6443 exist, return nil.
6444
6445 * w32.c: Include thelp32.h, psapi.h and coding.h.
6446 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6447 declarations.
6448 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6449 (Process32Next_Proc): New typedefs.
6450 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6451 (g_b_init_process32_next, g_b_init_open_thread_token)
6452 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6453 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6454 (g_b_init_get_process_working_set_size)
6455 (g_b_init_global_memory_status_ex): New static variables.
6456 (globals_of_w32): Initialize them.
6457 (create_toolhelp32_snapshot, process32_first, process32_next)
6458 (open_thread_token, impersonate_self, revert_to_self)
6459 (get_process_memory_info, get_process_working_set_size)
6460 (global_memory_status, global_memory_status_ex): New wrapper
6461 functions.
6462 (w32_list_system_processes, w32_system_process_attributes)
6463 (enable_privilege, restore_privilege, ltime, process_times):
6464 New functions.
6465 (convert_time_raw): New function.
6466 (convert_time): Remove conversion of FILETIME into time in 100
6467 nsec units, call convert_time_raw instead.
6468
6469 * process.h (w32_list_system_processes, w32_system_process_attributes):
6470 Add prototypes.
6471 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6472 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6473 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6474 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6475
6476 * process.c (Fsystem_process_attributes): Doc fix.
6477
6478 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
6479
6480 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6481 a continued multi-char glyph; if so, advance to the actual glyph.
6482
6483 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6484
6485 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6486
6487 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6488 (.m.o): Use it.
6489 * config.in: Regenerate.
6490
6491 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
6492
6493 * xdisp.c (redisplay_window): Revert last change.
6494 (try_window): Check bottom scroll margin too.
6495
6496 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6497
6498 * config.in: Regenerate.
6499
6500 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6501 -list-load-path-shadows'.
6502 (nsgui.h): Reduce number of things depending on it.
6503
6504 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
6505
6506 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6507 instead of window-end which does the wrong thing at eob.
6508 (try_cursor_movement): Minor optimization.
6509 (redisplay_window): If scroll margin is defined, don't assume
6510 window doesn't need scrolling.
6511
6512 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6513
6514 * config.in: Regenerate.
6515
6516 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6517 (mostlyclean): Don't delete *.d under NS.
6518
6519 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6520
6521 2008-08-06 Kenichi Handa <handa@m17n.org>
6522
6523 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6524
6525 2008-08-06 Andreas Schwab <schwab@suse.de>
6526
6527 * config.in: Regenerate.
6528
6529 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
6530
6531 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6532 forcing a window start.
6533
6534 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6535 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6536
6537 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6538
6539 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6540 argument.
6541
6542 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
6543
6544 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6545 <scroll-down-aggressively, before-change-functions>:
6546 <after-change-functions>: Reflow docstrings.
6547
6548 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6549 Ken Raeburn <raeburn@gnu.org>
6550
6551 Dock menu customization, based on a patch by Ken Raeburn, plus some
6552 other fixes.
6553 * nsmenu.m (dockMenu): New variable.
6554 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6555
6556 * nsterm.h (dockMenu): Declare.
6557
6558 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6559 (ns_term_init): Initialize dockMenu.
6560 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6561 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6562 left.
6563
6564 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6565
6566 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6567
6568 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6569
6570 * config.in: Regenerate.
6571
6572 2008-08-04 Seiji Zenitani <zenitani@mac.com>
6573
6574 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6575
6576 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6577
6578 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6579
6580 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6581
6582 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6583
6584 * keyboard.h: Comment an #endif.
6585
6586 * lisp.h (have_menus_p): Adjust comment.
6587
6588 * menu.c (find_and_return_menu_selection): Fix comparison with
6589 client_data.
6590
6591 * nsmenu.m (popup_activated_flag): New variable.
6592 (popup_activated): New function.
6593 (menu-or-popup-active-p): New exported lisp definition.
6594 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6595 when popup done.
6596 (ns_popup_dialog): Set popup_activated_flag.
6597
6598 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6599 version for GNUstep (handled by conditional typedef in nsterm.m).
6600 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6601 in rgb.txt).
6602
6603 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6604
6605 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6606
6607 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6608
6609 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6610 shortcircuit if popup_activated like GTK and X toolkit.
6611
6612 * m/inter386.h: Change DARWIN to DARWIN_OS.
6613
6614 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6615 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6616 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6617 comment on NO_SOCK_SIGIO.
6618
6619 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
6620
6621 * nsterm.m (windowDidResize): Remove stopModal call.
6622
6623 2008-08-03 Andreas Schwab <schwab@suse.de>
6624
6625 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6626 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6627
6628 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
6629
6630 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6631 Don't use uninitialized pointer variable when using getrlimit.
6632
6633 2008-08-02 Jason Rumney <jasonr@gnu.org>
6634
6635 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6636
6637 2008-08-02 Eli Zaretskii <eliz@gnu.org>
6638
6639 * alloc.c (NSTATICS): Bump to 0x640.
6640
6641 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6642
6643 * lisp.h: Add prototype for directory_files_internal.
6644
6645 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6646 New functions.
6647 (syms_of_process): Defsubr them. Add initializations for various
6648 Q* symbols used in procfs_system_process_attributes.
6649 (procfs_list_system_processes, procfs_system_process_attributes)
6650 [HAVE_PROCFS]: New functions.
6651 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6652 (procfs_get_total_memory): New functions.
6653
6654 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6655
6656 * xfaces.c (Fx_load_color_file): Fix previous change;
6657 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6658
6659 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
6660
6661 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6662
6663 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6664
6665 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6666
6667 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
6668
6669 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6670
6671 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6672 define NSApplicationDelegateReplySuccess.
6673 (EmacsView -converstationIdentifier): Use long instead of
6674 NSInteger for GNUstep, since it doesn't have NSInteger.
6675
6676 * xmenu.c: Revert last change.
6677
6678 * keyboard.h: Fix last change.
6679
6680 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6681
6682 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6683 on Windows.
6684
6685 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6686
6687 Warning clearing and clean-up in NS port.
6688 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6689 Add prototypes.
6690 * nsgui.h (FACE_DEFAULT): Remove, unused.
6691 (XGCValues): Change colors to unsigned long.
6692 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6693 nsterm.m.
6694 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6695 (ns_list_fonts): Remove, unused.
6696 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6697 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6698 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6699 (nsfont_draw): Compare face colors to 0, not nil.
6700 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6701 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6702 (-addSubmenuWithTitle:): Use NSMenuItem class.
6703 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6704 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6705 (ns_clip_to_row): Make gc arg a BOOL.
6706 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6707 ns_clip_to_row() call.
6708 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6709 used). Cast FRAME_FONT assignments.
6710 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6711 (ns_string_to_lispmod): Change arg to const char.
6712 (ns_term_init): Use NSMenuItem class.
6713 (EmacsApp -openFile:): Move to different section of file.
6714 (EmacsApp -application:openFiles:): Don't return a value, call
6715 -replyToOpenOrPrint:.
6716 (EmacsView -keyDown:): Fix up cast.
6717 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6718 (EmacsView -menuDown:): Cast tag in call to
6719 find_and_call_menu_selection().
6720 (ns_list_fonts): Remove, unused.
6721 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6722 (ns_fontname_to_xlfd): Make static.
6723 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6724 Remove prototypes (now in keyboard.h).
6725 (next_menubar_widget_id): Remove, unused.
6726 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6727 Remove prototypes (now in keyboard.h).
6728 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6729
6730 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6731
6732 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6733 (floatfns.o): Depend on syssignal.h.
6734 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6735
6736 * systty.h: Fix previous change that removed BSD_TERMIOS.
6737 Add comments to #ifdefs.
6738
6739 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6740
6741 * w32fns.c (w32-load-color-file): Remove.
6742 (x-open-connection): Use renamed Fx_load_color_file.
6743 * xfaces.c (x-load-color-file): Add.
6744 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6745 Emacs.clr.
6746 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6747
6748 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
6749
6750 * dbusbind.c (Fdbus_call_method_asynchronously)
6751 (Fdbus_method_error_internal): New defuns.
6752 (xd_read_message): Handle also reply messages.
6753 (Vdbus_registered_functions_table): Extend docstring.
6754
6755 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
6756
6757 * keyboard.c (gobble_input): Fix previous change.
6758
6759 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6760
6761 * bitmaps/README:
6762 * xfns.c:
6763 * termcap.c:
6764 * term.c:
6765 * syswait.h:
6766 * systty.h:
6767 * systime.h:
6768 * syssignal.h:
6769 * sysdep.c:
6770 * process.h:
6771 * process.c:
6772 * print.c:
6773 * ndir.h:
6774 * lread.c:
6775 * keyboard.c:
6776 * getpagesize.h:
6777 * floatfns.c:
6778 * fileio.c:
6779 * emacs.c:
6780 * doc.c:
6781 * dispnew.c:
6782 * dired.c:
6783 * data.c:
6784 * callproc.c:
6785 * buffer.c:
6786 * README:
6787 * Makefile.in:
6788 * s/template.h:
6789 * s/msdos.h:
6790 * m/vax.h: Remove VMS support.
6791 * s/vms.h:
6792 * vlimit.h:
6793 * uaf.h:
6794 * temacs.opt:
6795 * param.h:
6796 * ioctl.h: Remove file.
6797
6798 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6799
6800 * s/ms-w32.h (MULTI_KBOARD): Remove.
6801 * xterm.c:
6802 * xselect.c:
6803 * xfns.c:
6804 * window.c:
6805 * w32term.c:
6806 * w32fns.c:
6807 * terminal.c:
6808 * termhooks.h:
6809 * term.c:
6810 * sysdep.c:
6811 * keyboard.h:
6812 * keyboard.c:
6813 * frame.h:
6814 * frame.c:
6815 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6816 * config.in: Regenerate.
6817
6818 2008-07-30 Jason Rumney <jasonr@gnu.org>
6819
6820 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6821
6822 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6823 (w32font_open_internal): Get unicode version of textmetrics.
6824 Don't enable or disable glyph indices here.
6825 (w32font_open): Disable use of glyph indices.
6826
6827 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6828
6829 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
6830
6831 * minibuf.c (Vread_buffer_function): Doc fix.
6832
6833 2008-07-30 John Paul Wallington <jpw@pobox.com>
6834
6835 * minibuf.c (read_buffer_completion_ignore_case): New var.
6836 (Fread_buffer): Use it.
6837
6838 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6839
6840 * systty.h (sensemode): Remove empty #if. Remove reference to
6841 BSD_TERMIOS, unused.
6842
6843 * sysdep.c: Remove reference to DGUX.
6844 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6845
6846 * config.in: Regenerate.
6847
6848 2008-07-30 Jason Rumney <jasonr@gnu.org>
6849
6850 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6851
6852 2008-07-29 Jason Rumney <jasonr@gnu.org>
6853
6854 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6855 is populated.
6856 (uniscribe_encode_char): Always use uniscribe.
6857 Avoid using context if cache is populated.
6858
6859 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6860
6861 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6862 open menu.
6863
6864 * gtkutil.c (menu_nav_ended): Remove.
6865 (create_menus): Remove signal connect for menu_nav_ended.
6866
6867 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
6868
6869 * xdisp.c (redisplay_window): Check return value of
6870 compute_window_start_on_continuation_line before forcing a window
6871 start.
6872
6873 2008-07-28 Jason Rumney <jasonr@gnu.org>
6874
6875 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6876
6877 * w32term.c (w32_enable_unicode_output, cleartype_active):
6878 Remove obsolete display options.
6879 (x_draw_glyph_string_background): Don't use old cleartype_active
6880 workaround.
6881 (w32_initialize): Remove cleartype_active initialization.
6882 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6883
6884 2008-07-28 Andreas Schwab <schwab@suse.de>
6885
6886 * lisp.h (init_weak_hash_tables, syms_of_font)
6887 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6888 (remove_hash_entry): Don't declare.
6889 * eval.c (maybe_call_debugger): Make static and move before use.
6890 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6891 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6892 * xterm.h (x_set_frame_alpha): Declare.
6893
6894 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6895
6896 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6897 (create_menus): Connect selection-done to menu_nav_ended.
6898
6899 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6900
6901 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6902 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6903 parameter with read of 'alpha' one.
6904 (Qns_frame_parameter): Remove.
6905 * nsselect.m (selection-coding-system)
6906 (next-selection-coding-system, Vselection_coding_system)
6907 (Vnext_selection_coding_system): Drop.
6908
6909 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6910
6911 * nsfns.m (do-applescript, do_applescript): Rename to
6912 ns-do-applescript, ns_do_applescript, and move within file.
6913
6914 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6915
6916 Remove support for Mac Carbon.
6917 * mactoolbox.c:
6918 * macterm.h:
6919 * macterm.c:
6920 * macselect.c:
6921 * macmenu.c:
6922 * macgui.h:
6923 * macfns.c:
6924 * mac.c: Remove file.
6925 * s/darwin.h:
6926 * m/intel386.h:
6927 * xfaces.c:
6928 * xdisp.c:
6929 * window.c:
6930 * tparam.c:
6931 * termhooks.h:
6932 * termcap.c:
6933 * term.c:
6934 * syssignal.h:
6935 * sysselect.h:
6936 * sysdep.c:
6937 * process.c:
6938 * lread.c:
6939 * lisp.h:
6940 * keyboard.c:
6941 * image.c:
6942 * fringe.c:
6943 * frame.h:
6944 * frame.c:
6945 * fontset.c:
6946 * font.h:
6947 * font.c:
6948 * fns.c:
6949 * fileio.c:
6950 * emacs.c:
6951 * dispnew.c:
6952 * dispextern.h:
6953 * config.in:
6954 * atimer.c:
6955 * Makefile.in: Remove code for Carbon.
6956
6957 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6958
6959 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6960
6961 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6962
6963 * macterm.h (kCGBitmapByteOrder32Host): New define for
6964 non-universal SDKs.
6965
6966 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6967 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6968
6969 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6970 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6971
6972 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6973
6974 * w32inevt.c: Include dispextern.h.
6975
6976 2008-07-26 Andreas Schwab <schwab@suse.de>
6977
6978 * print.c (print_object): Fix off-by-one in last change.
6979
6980 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
6981
6982 * term.c (syms_of_term): Don't initialize default_orig_pair,
6983 default_set_foreground and default_set_background on Windows.
6984
6985 2008-07-25 Jason Rumney <jasonr@gnu.org>
6986
6987 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6988 ScriptItemize. Clean up return value checking. Remove unused
6989 variables.
6990 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6991 shaping engine.
6992
6993 * w32font.c (w32font_has_char): Handle the case where we can't
6994 determine the script for a character.
6995
6996 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6997
6998 * term.c (syms_of_term): Initialize default_orig_pair,
6999 default_set_foreground, and default_set_background.
7000
7001 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7002 clash (bug#86).
7003 (getloadavg): Callers changed.
7004
7005 * image.c (svg_load_image): Fix last change.
7006 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7007 image size is valid. Use g_object_unref instead of deprecated
7008 rsvg_handle_free to free rsvg handle.
7009 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7010
7011 2008-07-25 Jason Rumney <jasonr@gnu.org>
7012
7013 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7014 surrogates before looking up glyph index.
7015 (w32font_text_extents): Encode as surrogates if falling back to
7016 functions that need UTF-16 wide chars.
7017
7018 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7019 BMP as surrogates before looking up glyph index.
7020
7021 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7022
7023 * image.c (svg_load_image): Check for failure in return value of
7024 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7025
7026 2008-07-25 Jason Rumney <jasonr@gnu.org>
7027
7028 * w32font.c (Fx_select_font): Reverse sense of second arg.
7029
7030 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7031
7032 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7033 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7034
7035 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7036 (PURESIZE): Use it.
7037
7038 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7039
7040 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7041 * m/alpha.h (TEXT_END):
7042 * m/ibmrs6000.h (TEXT_END):
7043 * m/macppc.h (TEXT_END):
7044 * s/darwin.h (TEXT_END):
7045 * s/msdos.h (TEXT_END): Remove, unused.
7046 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7047 * s/cygwin.h: Remove comment.
7048
7049 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7050 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7051 * m/intel386.h (DOT_GLOBAL_START):
7052 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7053 (USG): Remove, file not used on USG platforms.
7054
7055 * Makefile.in (HAVE_X11): Remove empty #else.
7056
7057 2008-07-24 Andreas Schwab <schwab@suse.de>
7058
7059 * fileio.c (Finsert_file_contents): Properly adjust undo list
7060 after format conversion.
7061
7062 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7063
7064 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7065 (menu_nav_ended): Remove.
7066 (create_menus): Remove signal connect for menu_nav_ended.
7067 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7068 create_menus.
7069 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7070
7071 2008-07-23 Jason Rumney <jasonr@gnu.org>
7072
7073 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7074 with opened font.
7075 (w32font_open): Set font type to gdi.
7076
7077 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7078
7079 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7080
7081 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7082 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7083 defines it.
7084 * unexec.c (ADDR_CORRECT): Define unconditionally.
7085
7086 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7087
7088 * unexec.c: Remove code depending on !COFF and USG, the file is
7089 not used for such systems.
7090
7091 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7092 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7093 (LD_SWITCH_SYSTEM_1): Remove, update users.
7094
7095 * s/darwin.h (DATA_END):
7096 * m/intel386.h (DATA_END):
7097 * m/ibmrs6000.h (DATA_END):
7098 * m/alpha.h (DATA_END): Remove, unused.
7099
7100 * config.in: Regenerate.
7101 * s/ms-w32.h (subprocesses): Define unconditionally.
7102 * s/template.h (subprocesses): Update comment.
7103 * s/vms.h (subprocesses):
7104 * s/usg5-4.h (subprocesses):
7105 * s/hpux10-20.h (subprocesses):
7106 * s/gnu-linux.h (subprocesses):
7107 * s/cygwin.h (subprocesses):
7108 * s/bsd-common.h (subprocesses):
7109 * s/aix4-2.h (subprocesses):
7110 * s/darwin.h (subprocesses): Do not define, defined by default now.
7111
7112 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7113 Remove all references.
7114 (temacs): Add GNUstep specific ld flags.
7115
7116 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7117 similarly to what X does.
7118
7119 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7120
7121 * nsfns.m (x-list-fonts): Remove.
7122 (syms_of_nsfns): Drop the x-list-fonts declaration.
7123 * nsterm.m: Get rid of remaining "//" comments.
7124
7125 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
7126
7127 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7128
7129 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7130 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7131 (Fns_own_selection_internal, Fx_disown_selection_internal)
7132 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7133
7134 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7135 ... */' style of docstrings. Doc fixes.
7136
7137 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7138
7139 * terminfo.c (UP, BC, PC): Undo previous change.
7140
7141 * nsfns.m: Rename ns prefixed functions/variables to the
7142 corresponding x versions. Update references.
7143
7144 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7145
7146 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7147
7148 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7149
7150 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7151 Remove forwarding functions.
7152 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7153 non-static.
7154 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7155 non-static.
7156 (ns_frame_parm_handlers): Use the new names.
7157 (syms_of_nsfns): Move to the end of file.
7158
7159 * nsterm.m (syms_of_nsterm): Move to the end of file.
7160
7161 * dispnew.c (init_display): Remove code for X10.
7162
7163 2008-07-22 Jason Rumney <jasonr@gnu.org>
7164
7165 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7166 bare drive.
7167
7168 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7169
7170 * nsterm.m (syms_of_nsterm): Remove debugging println.
7171
7172 2008-07-22 David Reitter <david.reitter@gmail.com>
7173
7174 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7175 Carbon implementation of the same functionality: execute arbitrary
7176 AppleScript code.
7177
7178 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7179
7180 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7181 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7182 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7183 (Fx_display_mm_height, Fx_display_mm_width)
7184 (Fx_display_backing_store, Fx_display_visual_class)
7185 (Fx_display_save_under, Fx_open_connection)
7186 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7187 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7188 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7189 (Fx_display_pixel_width, Fx_display_pixel_height)
7190 (Fx_display_usable_bounds, Fx_display_planes)
7191 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7192 ... */' style of docstrings.
7193
7194 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7195
7196 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7197 on this platform.
7198 (mips):
7199 * m/iris4d.h (mips): Do not define.
7200 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7201
7202 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7203
7204 * image.c:
7205 * nsfns.m:
7206 * nsselect.m:
7207 * nsterm.h:
7208 * nsterm.m: Rename ns prefixed functions/variables to the
7209 corresponding x versions. Update references.
7210
7211 * m/ibms390x.h (NO_REMAP): Do not undefine.
7212
7213 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7214
7215 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
7216
7217 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7218 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7219 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7220 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7221 (Fns_display_mm_height, Fns_display_mm_width)
7222 (Fns_display_backing_store, Fns_display_visual_class)
7223 (Fns_display_save_under, Fns_open_connection)
7224 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7225 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7226 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7227 (Fns_display_pixel_width, Fns_display_pixel_height)
7228 (Fns_display_usable_bounds, Fx_display_planes)
7229 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7230
7231 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7232
7233 * print.c (print_object): Check print_depth before searching for
7234 circularities.
7235
7236 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
7237
7238 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7239 only sprintf.
7240
7241 2008-07-21 Kenichi Handa <handa@m17n.org>
7242
7243 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7244
7245 2008-07-20 Andreas Schwab <schwab@suse.de>
7246
7247 * syntax.c (find_start_pos, find_start_value)
7248 (find_start_value_byte, find_start_begv, find_defun_start)
7249 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7250
7251 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7252
7253 * s/sol2-3.h: Insert contents of s/sol2.h.
7254 (LD_SWITCH_SYSTEM): Remove redundant definition.
7255 * s/sol2.h: Remove, unused.
7256
7257 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7258
7259 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7260
7261 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7262
7263 * Makefile.in (ns_appdir): Fix typo in find command.
7264
7265 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7266
7267 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7268
7269 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7270 added not supported anymore.
7271
7272 * s/usg5-4-2.h (LIBS_SYSTEM):
7273 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7274
7275 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7276 * s/lynxos.h (GETPGRP_NO_ARG):
7277 * s/hpux10-20.h (NO_SIOCTL_H):
7278 * s/gnu.h (GETPGRP_NO_ARG):
7279 * s/gnu-linux.h (NO_SIOCTL_H):
7280 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7281 * s/cygwin.h (GETPGRP_NO_ARG):
7282 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7283 (C_DEBUG_SWITCH): Remove duplicate definition.
7284
7285 * m/ibms390.h: Remove boilerplate comments.
7286
7287 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7288
7289 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7290 (wait_reading_process_output): Remove code for SunOS, platform not
7291 supported anymore. Use SOLARIS2 instead of sun.
7292
7293 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7294
7295 * font.c (font_open_by_name): Under NS, default lface height to zero.
7296 (font_open_for_lface): Under NS, set size based on frame fontsize.
7297 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7298 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7299
7300 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7301
7302 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7303 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7304 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7305 YES/NO.
7306 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7307 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7308 * Makefile.in (clean): Clear out build destination dir.
7309
7310 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7311
7312 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7313 xterm, xselect.
7314 * lisp.h: Remove declaration of hash_remove.
7315 * nsgui.h: Remove redefinitions of hash_remove.
7316 * fns.c (hash_remove): Rename to hash_remove_from_table.
7317
7318 2008-07-19 Seiji Zenitani <zenitani@mac.com>
7319
7320 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7321 strdup() the family UTF8String before modifying it.
7322
7323 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7324
7325 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7326 NS_FACE_BACKGROUND with 0 instead of nil.
7327 * nsfont.m (nsfont_draw): Same.
7328
7329 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
7330
7331 * nsfns.m (ns_set_background_color): Fix crash.
7332
7333 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
7334
7335 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7336
7337 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7338
7339 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7340
7341 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7342
7343 * gtkutil.c: Include <config.h> instead of "config.h".
7344
7345 * lisp.h (Foverlay_buffer): Add EXFUN.
7346
7347 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7348 child process to complete child_setup. Undo 2005-09-21 change.
7349
7350 * s/darwin.h: Mention setsid after vfork.
7351
7352 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7353
7354 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7355 Depend on macgui.h.
7356
7357 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7358 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7359
7360 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7361 and f19.
7362 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7363
7364 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7365 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7366 Remove enumerators.
7367
7368 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7369 Check if FACE_FROM_ID returns NULL.
7370
7371 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7372
7373 * w32inevt.c (change_frame_size): Remove extern declaration.
7374 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7375 change_frame_size.
7376
7377 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7378
7379 * getloadavg.c: Revert last change (2008-07-15).
7380
7381 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7382
7383 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
7384 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
7385 from configure.
7386
7387 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7388
7389 * s/sol2.h:
7390 * s/sol2-4.h: Reorganize conditionals.
7391
7392 * ecrt0.c: Remove code depending on m68000, not used anymore.
7393
7394 * fns.c (hash_remove): Make static.
7395 * lisp.h (hash_remove): Don't prototype.
7396
7397 * m/ibmrs6000.h:
7398 * m/ibms390x.h:
7399 * m/macppc.h: Remove boilerplate comments.
7400
7401 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7402 Solaris, which does not need them.
7403
7404 * m/vax.h: Remove comments about unsupported systems.
7405
7406 * s/darwin.h: Reorganize ifdefs.
7407
7408 2008-07-17 Andreas Schwab <schwab@suse.de>
7409
7410 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7411
7412 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7413
7414 Use SDATA. Follow coding convention of placing operators at
7415 beginning of next line rather than end of previous line, and placing
7416 spaces around infix operators.
7417
7418 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7419 in case it was defined already.
7420 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7421 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7422 ns_default.
7423 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7424 Lisp_Objects.
7425 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7426 (ns_defined_color, ns_color_to_lisp): Declare.
7427 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7428 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7429 it's accepted even with USE_LISP_UNION_TYPE.
7430 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7431 (update_frame_tool_bar): Remove apparently obsolete tests for
7432 non-integerness of f->tool_bar_lines.
7433 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7434 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7435 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7436 (nsfont_open): Don't confuse NULL for Qnil.
7437 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7438 * menu.h (find_and_call_menu_selection):
7439 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7440 (find_and_return_menu_selection): Always return something.
7441 * frame.h: Include dispextern.h for Display_Info.
7442 (display_x_get_resource): Declare.
7443
7444 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7445
7446 * syntax.c: Remove stdio.h include accidentally introduced in
7447 Emacs.app commit.
7448 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7449 NS_IMPL_COCOA.
7450 * keyboard.c (handle_async_input, input_available_signal): Remove
7451 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7452
7453 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7454
7455 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7456 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7457 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7458 Use SDATA.
7459
7460 * keymap.c: Remove all NS-specific code.
7461 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7462 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7463 where_is_preferred_modifier, return a different value depending on how
7464 preferred is the binding.
7465 (where_is_internal): Adjust accordingly.
7466 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7467 Adjust to new preferred_sequence_p.
7468 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7469 * keyboard.c (parse_solitary_modifier): Not static any more.
7470 * keyboard.h (parse_solitary_modifier): Declare.
7471
7472 2008-07-16 Andreas Schwab <schwab@suse.de>
7473
7474 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7475 of easymenu.
7476
7477 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
7478
7479 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7480 that we don't move off the line.
7481
7482 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7483
7484 * keyboard.c (Qsuper): Remove.
7485 (parse_menu_item): Don't call where_is_internal specially for NS.
7486
7487 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7488
7489 * s/gnu-linux.h: Remove boilerplate comments.
7490
7491 * m/alpha.h (__ELF__): Consolidate conditions.
7492
7493 * m/m68k.h (linux): Use GNU_LINUX instead.
7494 Remove boilerplate comments.
7495
7496 * m/intel386.h: Undo refactoring from previous change.
7497 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7498 too, remove dead code.
7499 (linux): Use GNU_LINUX instead.
7500
7501 2008-07-16 Jason Rumney <jasonr@gnu.org>
7502
7503 * w32gui.h: Repeat 26 June changes lost by last change.
7504
7505 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7506
7507 * systty.h: Remove code for Aix on 386, unsupported platform.
7508
7509 * s/ms-w32.h: Remove boilerplate comments.
7510 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7511
7512 * s/gnu-linux.h (TERM): Remove support.
7513 (HAVE_SYSVIPC): Remove, unused.
7514 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7515 for this system.
7516
7517 * process.c: Remove support for IRIS, unused.
7518 Remove support for TERM, not relevant anymore.
7519
7520 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7521 used with the definition.
7522
7523 * s/aix4-2.h (static): Do not undef.
7524
7525 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7526 only used on Aix.
7527 (HAVE_SYSVIPC): Remove, unused.
7528
7529 * m/hp800.h (CANNOT_DUMP): Do not undef.
7530
7531 * m/alpha.h: Fix comment.
7532
7533 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7534 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7535 used by this configuration.
7536 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7537 * unexec.c: Remove code depending on HPUX and
7538 USG_SHARED_LIBRARIES, not used with this file. Remove code
7539 depending on IRIS, unused. Remove if 0-ed code.
7540
7541 * s/template.h: Remove comments about static.
7542
7543 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7544 Remove if 0-ed code.
7545 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7546 were the same as the default.
7547 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7548 Remove boilerplate comments.
7549 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7550 (HAVE_SYSVIPC): Remove, unused.
7551 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7552
7553 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7554 Remove boilerplate comments.
7555 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7556 Remove boilerplate comments.
7557 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7558 Remove boilerplate comments.
7559 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7560
7561 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7562 USG systems which do not use DATA_SEG_BITS.
7563 Refactor code. Remove boilerplate comments.
7564
7565 * m/ibms390.h:
7566 * m/m68k.h:
7567 * s/bsd-common.h:
7568 * s/cygwin.h:
7569 * s/darwin.h:
7570 * s/freebsd.h:
7571 * s/gnu.h:
7572 * s/msdos.h: Remove boilerplate comments.
7573
7574 * m/iris4d.h: Remove boilerplate comments and code for systems that
7575 do not use this file.
7576 (IRIS_4D): Remove, unused.
7577
7578 * m/mips.h: Remove boilerplate comments and code for systems that
7579 do not use this file.
7580 (SIGN_EXTEND_CHAR):
7581 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7582 * unexmips.c: Remove file, unused.
7583
7584 * editfns.c (Fuser_full_name): Replace the only use of
7585 USER_FULL_NAME with its value.
7586 * config.in: Regenerate.
7587
7588 2008-07-16 David Reitter <david.reitter@gmail.com>
7589
7590 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7591 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7592
7593 2008-07-16 Glenn Morris <rgm@gnu.org>
7594
7595 * emacs.c (system-type): Doc fix.
7596
7597 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7598
7599 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7600 If the cache doesn't work, let's fix it, rather than work around it.
7601
7602 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7603
7604 * Makefile.in: Correct additions for nsfont.o in last commit.
7605 * nsfont.m: New file (forgot last commit).
7606
7607 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7608
7609 * callproc.c (set_initial_environment): Initialize
7610 Vprocess_environment under CANNOT_DUMP (fixes crash when
7611 batch-compiling for bootstrap).
7612
7613 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7614 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7615
7616 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7617 fix crash due to different init order.
7618
7619 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7620
7621 Changes and additions for NeXTstep windowing system (Cocoa and
7622 GNUstep) support.
7623
7624 * Makefile.in:
7625 * config.in: Support defines and build commands for NS port.
7626 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7627 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7628 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7629 windowing.
7630 (struct face): Add synth_ital field.
7631 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7632 (init_display): Initialize Vinitial_window_system to "ns" when so
7633 compiled.
7634 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7635 (display_arg): Use under NS.
7636 (main): Under NS, allocate autorelease pool and handle command line
7637 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7638 (standard_args): Add NS-specific args.
7639 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7640 * font.c (DEFAULT_ENCODING): New variable.
7641 (font_find_for_lface): Use it.
7642 (syms_of_font): Load syms_of_nsfont under NS.
7643 * font.h: Declare nsfont_driver when compiled under NS.
7644 * fontset.c: When compiling under NS, include nsterm.h.
7645 (fontset_from_font): Autoconstruct fontset under NS.
7646 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7647 symbol, document and use it.
7648 (do_switch_frame): When for_deletion under Cocoa, add
7649 Fraise_frame(Qnil).
7650 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7651 (x_get_arg): Allow "yes" and "no" as boolean values.
7652 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7653 Qright under Cocoa.
7654 (focus-follows-mouse): Default to 0 under NS.
7655 * frame.h (enum output_method): Add output_ns.
7656 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7657 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7658 (FRAME_WINDOW_P): NS-specific definition.
7659 * fringe.c (max_used_fringe_bitmap): Make public.
7660 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7661 (getloadavg): Use NeXT code under descendant OS's.
7662 * image.c (includes and header section, x_create_bitmap_from_data)
7663 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7664 (image_background_transparent, x_clear_image_1)
7665 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7666 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7667 (x_to_xcolors, x_from_xcolors, x_disable_image)
7668 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7669 other GUIs, including XPM support using code originally written for
7670 Carbon GUI.
7671 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7672 using NS API.
7673 (image_ascent): Use font metrics macros instead of direct struct field
7674 access.
7675 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7676 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7677 Also, handle NS as GTK for menu bar purposes.
7678 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7679 toolkit where they differ.
7680 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7681 use cachelist, still needed under NS.
7682 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7683 (struct widget_value): Define it here for menu.c.
7684 * keymap.c (includes): Include modifier internals.
7685 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7686 NS.
7687 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7688 support for preferring sequences using certain modifiers, specified by
7689 the FIRSTONLY argument.
7690 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7691 under NS GNUstep implementation.
7692 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7693 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7694 * menu.c: Include nsterm.h under NS.
7695 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7696 (free_menubar_widget_tree_value, update_submenu_strings)
7697 (find_and_call_menu_selection): Treat NS as X and NT.
7698 (find_and_return_menu_selection): New function, used for popup menus.
7699 * nsgui.h:
7700 * nsterm.h:
7701 * nsfns.m:
7702 * nsimage.m:
7703 * nsmenu.m:
7704 * nsselect.m:
7705 * nsterm.m: New files.
7706 * process.c (wait_reading_process_output): Under NS, call ns_select()
7707 instead of plain select().
7708 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7709 beginning of buffer.
7710 * sysselect.h (init_process): Rename when compiling under Cocoa to
7711 avoid name conflict.
7712 * termhooks.h (display_info): Add ns_display_info to union.
7713 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7714 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7715 COCOA environment.
7716 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7717 unexec() signature. (Note, this will dump, but the resulting file
7718 crashes; unexosx is used instead; keeping around for reference and
7719 possible aid in getting dump working under GNUstep.)
7720 * w32gui.h (button_type, widget_value): Remove definitions (now in
7721 keyboard.h).
7722 * window.c: Include nsterm.h when compiling under NS.
7723 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7724 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7725 other GUI windowing systems.
7726 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7727 GTK.
7728 (x_consider_frame_title): Under NS, set icon type and frame
7729 modified-state indicator; use ns_set_name_as_filename() when using
7730 formatted title.
7731 (update_window_cursor): Make public when compiling under NS.
7732 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7733 (hourglass_atimer, Vhourglass_delay
7734 * xfaces.c (header section, init_frame_faces, clear_font_table)
7735 (defined_color, unload_color, x_face_list_fonts)
7736 (prepare_face_for_display): Add NS support parallel to other GUIs.
7737 Emulate GCs like other non-X GUIs.
7738 (split_font_name): Don't lowercase font name under NS.
7739 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7740 under NS.
7741 * s/darwin.h: Add support for compilation under NS.
7742
7743 2008-07-15 Jason Rumney <jasonr@gnu.org>
7744
7745 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7746 (w32_show_hourglass): Rename from show_hourglass.
7747 (w32_hide_hourglass): Rename from hide_hourglass.
7748 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7749 (Vhourglass_delay): Declare extern.
7750 (hourglass_started): Remove.
7751
7752 * xdisp.c (Vhourglass_delay): Remove static.
7753 (hourglass_started, start_hourglass, cancel_hourglass):
7754 Don't include these versions on WINDOWSNT.
7755
7756 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7757
7758 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7759 variables (formerly in xfns.c).
7760 (show_hourglass, hide_hourglass): New prototypes (same).
7761 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7762 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7763 in xfns.c).
7764 (syms_of_xdisp): Declare/initialize display-hourglass,
7765 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7766 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7767 formerly in xfns.c.
7768 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7769 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7770 (start_hourglass, cancel_hourglass): Remove.
7771 (show_hourglass, hide_hourglass): Remove prototypes and static
7772 modifiers.
7773 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7774 hourglass_atimer, hourglass_shown_p declaration/initialization.
7775 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7776 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7777 (start_hourglass, cancel_hourglass): Remove.
7778 (show_hourglass, hide_hourglass): Remove prototypes and static
7779 modifiers.
7780 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7781 hourglass_atimer, hourglass_shown_p declaration/initialization.
7782 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7783 (DEFAULT_HOURGLASS_DELAY): Remove.
7784 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7785 hourglass_shown_p declaration/initialization.
7786
7787 2008-07-14 Jason Rumney <jasonr@gnu.org>
7788
7789 * w32fns.c (w32_get_arg): Remove wrapper function.
7790 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7791 directly.
7792 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7793
7794 2008-07-14 Kenichi Handa <handa@m17n.org>
7795
7796 * xfont.c (xfont_open): Add workaround for X's bug.
7797
7798 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7799
7800 * fontset.c: Include <stdio.h> unconditionally.
7801
7802 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
7803
7804 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7805 for filtering.
7806
7807 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7808
7809 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7810
7811 * m/macppc.h:
7812 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7813
7814 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7815 (SPECIAL_EMACS_INT):
7816 * m/ia64.h (SPECIAL_EMACS_INT):
7817 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7818 * s/gnu.h (NLIST_STRUCT):
7819 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7820 * s/gnu-linux.h (LINUX):
7821 * s/msdos.h (HAVE_FACES):
7822 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7823
7824 * systty.h:
7825 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7826 anymore.
7827
7828 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7829
7830 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7831 always defined as int.
7832
7833 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7834 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7835 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7836 * s/freebsd.h (HAVE_WAIT_HEADER):
7837 * s/bsd-common.h (HAVE_UNION_WAIT):
7838 * s/aix4-2.h (HAVE_WAIT_HEADER):
7839 * m/mips.h (HAVE_UNION_WAIT):
7840 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7841 (COFF, static): Do not define, they are undefined later in the file.
7842
7843 * process.c (update_status): Don't use a union.
7844 (status_convert):
7845 (sigchld_handler): Use int instead of WAITTYPE.
7846
7847 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
7848
7849 * indent.c (Fvertical_motion): Restore hscroll before moving to
7850 goal column.
7851
7852 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7853
7854 * lisp.h: Remove left over code.
7855
7856 2008-07-11 Andreas Schwab <schwab@suse.de>
7857
7858 * lisp.h: Fix logic in last change.
7859
7860 * menu.h: New file.
7861 * menu.c: Include it.
7862 * xmenu.c: Likewise.
7863 * Makefile.in: Update dependencies.
7864
7865 2008-07-11 Kenichi Handa <handa@m17n.org>
7866
7867 * fontset.c (fontset_from_font): Cancel the previous change.
7868
7869 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7870
7871 * lisp.h:
7872 * w32heap.c:
7873 * emacs.c:
7874 * alloc.c: Replace all references of NO_UNION_TYPE with
7875 USE_LISP_UNION_TYPE.
7876
7877 * m/xtensa.h (NO_UNION_TYPE):
7878 * m/vax.h (NO_UNION_TYPE):
7879 * m/template.h (NO_UNION_TYPE):
7880 * m/sparc.h (NO_UNION_TYPE):
7881 * m/mips.h (NO_UNION_TYPE):
7882 * m/macppc.h (NO_UNION_TYPE):
7883 * m/m68k.h (NO_UNION_TYPE):
7884 * m/iris4d.h (NO_UNION_TYPE):
7885 * m/intel386.h (NO_UNION_TYPE):
7886 * m/ibms390x.h (NO_UNION_TYPE):
7887 * m/ibms390.h (NO_UNION_TYPE):
7888 * m/ibmrs6000.h (NO_UNION_TYPE):
7889 * m/ia64.h (NO_UNION_TYPE):
7890 * m/hp800.h (NO_UNION_TYPE):
7891 * m/arm.h (NO_UNION_TYPE):
7892 * m/amdx86-64.h (NO_UNION_TYPE):
7893 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7894 defining it the same.
7895
7896 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
7897
7898 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7899
7900 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7901
7902 * fileio.c:
7903 * sysdep.c
7904 * systty.h:
7905 * m/ibmrs6000.h:
7906 * m/iris4d.h:
7907 * s/aix4-2.h:
7908 * s/freebsd.h:
7909 * s/gnu-linux.h:
7910 * s/hpux10-20.h:
7911 * s/hpux11.h:
7912 * s/netbsd.h:
7913 * s/sol2-3.h:
7914 * s/sol2-4.h:
7915 * s/sol2.h:
7916 * s/usg5-4.h:
7917 * s/vms.h: Remove references to unused variables.
7918
7919 2008-07-10 Andreas Schwab <schwab@suse.de>
7920
7921 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7922 pattern before matching the generic family.
7923
7924 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7925
7926 * unexec.c:
7927 * s/vms.h:
7928 * s/usg5-4-2.h:
7929 * s/sol2-5.h:
7930 * s/freebsd.h:
7931 * s/darwin.h: Remove dead code.
7932
7933 * m/template.h:
7934 * m/sparc.h:
7935 * m/mips.h:
7936 * m/m68k.h:
7937 * m/iris4d.h:
7938 * m/intel386.h:
7939 * m/ibms390x.h:
7940 * m/ibms390.h:
7941 * m/ia64.h:
7942 * m/hp800.h:
7943 * m/arm.h:
7944 * m/amdx86-64.h: Remove dead code and references to unused
7945 and compiler defined symbols.
7946
7947 * unexmips.c:
7948 * unexelf.c: Remove references to desupported systems.
7949
7950 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7951
7952 * m/powermac.h: Remove boilerplate comments.
7953 (NO_REMAP): Remove unused definition.
7954
7955 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7956 define them.
7957
7958 2008-07-10 Kenichi Handa <handa@m17n.org>
7959
7960 * xfont.c (xfont_open): Log the reason of failure.
7961
7962 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7963
7964 * fontset.c (fontset_get_font_group):
7965 * font.c (font_check_otf): Specify argument types.
7966
7967 2008-07-09 Kenichi Handa <handa@m17n.org>
7968
7969 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7970 non-ASCII char is found.
7971
7972 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7973 (reorder_font_vector): Change the arg preferred_family to font.
7974 Prefer the spec matching with font.
7975 (fontset_get_font_group): New function.
7976 (fontset_find_font): Change the format of an element of a realized
7977 fontset. Use fontset_get_font_group.
7978 (fontset_font): Try the current fontset, the default fontset, the
7979 fallbacks of the current fontset, and the fallbacks of the default
7980 fontset in this order.
7981 (face_for_char): Delete the shortcut to use the current font.
7982 (fontset_from_font): Don't set fonts for Latin in the fontset.
7983
7984 * font.h (font_make_object, font_match_p): Adjust prototypes.
7985
7986 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7987
7988 * font.c (font_make_object): New arg entity and pixelsize.
7989 (font_check_otf_features, font_check_otf): New functions.
7990 (font_match_p): Check :lang, :script, and :otf properties.
7991
7992 * xfont.c (xfont_open): Adjust it for the change of
7993 font_make_object.
7994 (xfont_text_extents): Fix initial setting of metrics.
7995
7996 * ftfont.c (struct ftfont_info): New member index, delete member
7997 fc_charset_idx. Make the member order compatible with struct
7998 xftfont_info.
7999 (fc_charset_table): Change charset names to registry names.
8000 (ftfont_pattern_entity): Delete the args registry and
8001 fc_charset_idx. Change the value of :font-entity property
8002 to (FONTNAME . INDEX). Always set :registry property to
8003 `iso10646-1'.
8004 (struct ftfont_cache_data): New struct.
8005 (ftfont_lookup_cache): New arg for_face.
8006 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8007 (ftfont_driver): Set the member otf_capability.
8008 (ftfont_get_charset): Adjust it for the change of
8009 fc_charset_table.
8010 (OTF_TAG_SYM): New macro.
8011 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8012 for the change of fc_charset_table.
8013 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8014 ftfont_pattern_entity. Add FC_INDEX to objset.
8015 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8016 and ftfont_pattern_entity.
8017 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8018 font_make_object, struct ftfont_info.
8019 (ftfont_has_char): Use ftfont_get_fc_charset.
8020 (ftfont_otf_features, ftfont_otf_capability): New functions.
8021 (ftfont_shape): Use ftfont_get_otf.
8022 (ftfont_text_extents): Fix initial setting of metrics.
8023
8024 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8025 member order compatible with struct ftfont_info.
8026 (xftfont_open): Add FC_CHARSET to the pattern. Set
8027 xftfont_info->ft_size. Don't unlock the face. Check BDF
8028 properties if appropriate.
8029 (xftfont_close): Unlock the face.
8030 (xftfont_anchor_point, xftfont_shape): Deleted.
8031 (syms_of_xftfont): Don't set members anchor_point and shape of
8032 xftfont_driver.
8033
8034 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8035 font_make_object.
8036
8037 * w32font.c (w32font_open): Adjust it for the change of
8038 font_make_object.
8039 (w32font_open_internal): Don't set properties of font_object here.
8040
8041 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
8042
8043 * macfns.c (x_create_tip_frame):
8044 * w32fns.c (x_create_tip_frame):
8045 * xfns.c (x_create_tip_frame): Pass parameter argument to
8046 face-set-after-frame-default.
8047
8048 * xfaces.c (Finternal_merge_in_global_face): Save merged
8049 attributes for the default face back into the face vector.
8050
8051 2008-07-08 Andreas Schwab <schwab@suse.de>
8052
8053 * fontset.h: Declare fontset_from_font. Don't declare
8054 new_fontset_from_font and fontset_from_font_name.
8055 * xterm.c: Include "fontset.h".
8056 * Makefile.in (xterm.o): Update dependencies.
8057
8058 2008-07-08 Glenn Morris <rgm@gnu.org>
8059
8060 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8061 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8062
8063 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
8064
8065 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8066 (x_set_frame_parameters): Don't bind it.
8067
8068 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
8069
8070 * w32fns.c (map_w32_filename): Declare extern.
8071
8072 2008-07-07 Jason Rumney <jasonr@gnu.org>
8073
8074 * w32term.c (WS_EX_LAYERED): Define if not already.
8075
8076 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
8077
8078 * xfaces.c (set_font_frame_param): Don't try to set the font
8079 parameter if it is still unspecified in the lface.
8080
8081 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8082
8083 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8084 face if it didn't already exist.
8085
8086 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8087
8088 2008-07-05 Andreas Schwab <schwab@suse.de>
8089
8090 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8091
8092 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8093
8094 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8095 word-wrapping.
8096 (IT_DISPLAYING_WHITESPACE): New macro.
8097 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8098 when word-wrapping. Simplify word-wrapping logic. Use correct
8099 pixel positions when saving copies of the iterator.
8100 (display_line): Use proper wrap point if the last character on a
8101 line was preceded by whitespace.
8102
8103 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8104
8105 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8106
8107 2008-07-04 Kenichi Handa <handa@m17n.org>
8108
8109 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8110
8111 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8112
8113 2008-07-02 Jason Rumney <jasonr@gnu.org>
8114
8115 * xfns.c (syms_of_xfns): Only define x-select-font when both
8116 HAVE_FREETYPE and USE_GTK.
8117
8118 * xdisp.c (next_element_from_display_vector): Move assignment out
8119 of if statement.
8120
8121 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8122
8123 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8124
8125 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8126 (syms_of_fileio): Initialize and export them.
8127 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8128
8129 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8130 (Fsystem_move_file_to_trash): New function.
8131 (syms_of_w32fns): Export it to lisp.
8132
8133 2008-07-01 Jason Rumney <jasonr@gnu.org>
8134
8135 * w32font.c (w32font_text_extents): Don't count overhang as part
8136 of width.
8137
8138 2008-06-30 Miles Bader <miles@gnu.org>
8139
8140 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8141 Add `avoid_cursor_p' field.
8142
8143 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8144 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8145 (append_glyph, append_composite_glyph, produce_image_glyph)
8146 (append_stretch_glyph): Initialize avoid_cursor_p.
8147 (get_it_property): Rename from `get_line_height_property'.
8148 (x_produce_glyphs): Use get_it_property.
8149 (handle_line_prefix, push_display_prop): New functions.
8150 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8151 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8152 New variables.
8153 (syms_of_xdisp): Initialize them.
8154
8155 2008-06-30 Kenichi Handa <handa@m17n.org>
8156
8157 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8158 XftDefaultSubstitute (they are called in XftFontMatch).
8159 (xftfont_open): Fix args to ftfont_font_format.
8160
8161 * ftfont.c (fc_charset_table): New member lang.
8162 (ftfont_resolve_generic_family): New arg pattern.
8163 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
8164 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8165 (ftfont_open): Fix args to ftfont_font_format.
8166 (ftfont_font_format): New arg filename.
8167
8168 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
8169
8170 * xfaces.c (Finternal_merge_in_global_face): If default face was
8171 modified, realize it again. Update the font face attribute.
8172
8173 2008-06-29 Jason Rumney <jasonr@gnu.org>
8174
8175 * w32term.c (x_set_frame_alpha): Fix logic.
8176
8177 2008-06-29 Kenichi Handa <handa@m17n.org>
8178
8179 * fontset.c (Finternal_char_font): Return font-object instead of
8180 font-name.
8181
8182 * composite.c (get_composition_id): Fix the width calculation for TAB.
8183
8184 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8185
8186 * indent.c (Fvertical_motion): Properly handle float column arg.
8187
8188 2008-06-28 Jason Rumney <jasonr@gnu.org>
8189
8190 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8191 (pfnSetLayeredWindowAttributes): New function pointer.
8192 (w32_initialize): Initialize it when supported.
8193 (x_set_frame_alpha): New function.
8194
8195 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8196 (w32_frame_parm_handlers): Set alpha handler.
8197
8198 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8199
8200 2008-06-27 Jason Rumney <jasonr@gnu.org>
8201
8202 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8203 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8204 (w32_to_x_charset, x_to_w32_charset)
8205 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8206 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8207 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8208 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8209 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8210 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8211 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8212 (Qw32_charset_unicode): Remove.
8213 (syms_of_w32fns): Update for above changes.
8214
8215 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8216 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8217 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8218 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8219 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8220 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8221 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8222 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8223 (syms_of_w32font): Update for above changes.
8224
8225 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8226
8227 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8228 removed #if.
8229 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8230
8231 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8232 Eli Zaretskii <eliz@gnu.org>
8233
8234 * makefile.w32-in (LOCAL_FLAGS):
8235 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8236
8237 * sysdep.c (_spawnlp, _getpid):
8238 Declare with explicit _cdecl instead of _CRTAPI1.
8239
8240 * editfns.c (Fget_internal_run_time):
8241 Check for WINDOWSNT with #ifdef, not #if.
8242
8243 2008-06-26 Jason Rumney <jasonr@gnu.org>
8244
8245 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8246
8247 * w32term.c (x_draw_glyph_string_foreground)
8248 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8249 Use FONT_HANDLE macro.
8250 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8251
8252 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8253 (uniscribe_encode_char): Use FONT_HANDLE macro.
8254
8255 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8256 (w32font_text_extents): Use precast w32_font.
8257 (w32font_close): Free cached metrics.
8258 (w32font_open_internal): Allocate space for name on stack.
8259
8260 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
8261
8262 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8263
8264 2008-06-26 Jason Rumney <jasonr@gnu.org>
8265
8266 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8267 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8268
8269 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8270
8271 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8272
8273 2008-06-26 Jason Rumney <jasonr@gnu.org>
8274
8275 * w32bdf.c, w32bdf.h: Remove obsolete files.
8276
8277 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8278
8279 * w32gui.h: Don't include w32bdf.h.
8280 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8281 Remove obsolete font support.
8282
8283 * w32font.h (struct w32font_info): Remove compat_w32_font.
8284 Add hfont member.
8285 (FONT_COMPAT): Remove obsolete macro.
8286
8287 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8288 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8289 (w32font_open_internal): Remove compat code. Set new hfont member.
8290 (Fx_select_font): Use new hfont member.
8291
8292 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8293 (uniscribe_encode_char): Use new hfont member.
8294
8295 * w32term.c (x_draw_glyph_string_foreground)
8296 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8297 (x_draw_glyph_string): Use metrics in w32font_info.
8298
8299 2008-06-26 Kenichi Handa <handa@m17n.org>
8300
8301 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8302
8303 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8304
8305 * unexnext.c:
8306 * m/ews4800.h:
8307 * m/hp9000s300.h:
8308 * m/ibm370aix.h:
8309 * m/mips-siemens.h:
8310 * m/ncr386.h:
8311 * m/next.h:
8312 * m/pmax.h:
8313 * m/powerpcle.h:
8314 * m/tandem-s2.h:
8315 * s/386bsd.h:
8316 * s/bsd386.h:
8317 * s/bsd4-1.h:
8318 * s/bsd4-2.h:
8319 * s/bsdos2-1.h:
8320 * s/bsdos2.h:
8321 * s/bsdos3.h:
8322 * s/bsdos4.h:
8323 * s/nextstep.h:
8324 * s/ultrix4-3.h:
8325 * s/usg5-0.h:
8326 * s/usg5-2-2.h:
8327 * s/usg5-2.h:
8328 * s/usg5-4-3.h:
8329 * s/ux4800.h:
8330 * s/uxpds.h:
8331 * s/uxpv.h: Remove support for obsolete systems.
8332 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8333 Remove, insert contents in s/hpux10-20.h.
8334 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8335 Remove, insert contents in s/aix4-2.h.
8336 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8337 * s/bsd4-3.h: Rename to ...
8338 * s/bsd-common.h: ... this.
8339 * data.c:
8340 * doc.c:
8341 * ecrt0.c:
8342 * emacs.c:
8343 * fileio.c:
8344 * floatfns.c:
8345 * keyboard.c:
8346 * mem-limits.h:
8347 * print.c:
8348 * process.c:
8349 * sysdep.c:
8350 * syssignal.h:
8351 * systty.h:
8352 * syswait.h:
8353 * term.c:
8354 * unexec.c:
8355 * unexelf.c:
8356 * unexhp9k800.c:
8357 * m/hp800.h:
8358 * m/ibmrs6000.h:
8359 * m/mips.h:
8360 * m/vax.h:
8361 * s/darwin.h:
8362 * s/freebsd.h:
8363 * s/gnu.h:
8364 * s/ms-w32.h:
8365 * s/msdos.h:
8366 * s/netbsd.h:
8367 * s/template.h: Remove references to obsolete variables.
8368
8369 * Makefile.in: Add dependencies for all unexec files.
8370 (admindir): Remove unused variable.
8371 (UNEXEC_SRC): Remove references.
8372
8373 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
8374
8375 * xfns.c (x_default_font_parameter): If Xft is available, first
8376 try Monospace-12 for the default font.
8377
8378 2008-06-25 Jason Rumney <jasonr@gnu.org>
8379
8380 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8381
8382 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8383
8384 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8385
8386 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8387
8388 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
8389
8390 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8391 <scroll-conservatively>: Fix typo in docstring.
8392
8393 * xselect.c (Fx_send_client_event): Doc fix.
8394
8395 2008-06-25 Kenichi Handa <handa@m17n.org>
8396
8397 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8398
8399 * font.c (font_parse_fcname): Remove unused variables.
8400 (font_sort_entites): Delete the arg SPEC. Caller changed.
8401 Fix for the case of ! best_only.
8402 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8403
8404 * lisp.h (Fstring_to_unibyte): EXFUN it.
8405
8406 * character.h (str_to_unibyte): Extern it.
8407
8408 * character.c (str_to_unibyte): New function.
8409
8410 * fns.c (Fstring_to_unibyte): New function.
8411 (syms_of_fns): Defsubr it.
8412
8413 2008-06-24 Kenichi Handa <handa@m17n.org>
8414
8415 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8416 DPI too.
8417 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8418
8419 2008-06-24 Andreas Schwab <schwab@suse.de>
8420
8421 * Makefile.in (${lispsource}loaddefs.el): Rename from
8422 ../lisp/loaddefs.el.
8423 (bootstrap-clean): Do what distclean does but don't remove
8424 Makefile.
8425 (distclean): Depend on bootstrap-clean and remove Makefile.
8426
8427 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
8428
8429 * buffer.h (struct buffer): New member word_wrap.
8430
8431 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8432 word-wrap.
8433 (init_buffer_once): Initialize them.
8434
8435 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8436 line_wrap enum possessing three possible values.
8437
8438 * termopts.h: Replace truncate_partial_width_windows with
8439 Vtruncate_partial_width_windows.
8440
8441 * dispnew.c (direct_output_for_insert): Avoid direct output when
8442 inserting a space with word wrap on.
8443
8444 * indent.c (compute_motion): Obey integer values of
8445 truncate-partial-width-windows.
8446
8447 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8448 replacing truncate_partial_width_windows.
8449 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8450 truncate only if the window width is below that integer.
8451 (start_display, resize_mini_window, produce_stretch_glyph)
8452 (display_string, move_it_in_display_line_to): Use line_wrap.
8453 (back_to_previous_visible_line_start, reseat_1): Reset
8454 string_from_display_prop_p.
8455 (display_line): Extend default face to end of line when wrapping.
8456
8457 2008-06-24 Kim F. Storm <storm@cua.dk>
8458
8459 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8460 to wrap continued lines at word boundaries.
8461
8462 2008-06-24 Jason Rumney <jasonr@gnu.org>
8463
8464 * font.c (Ffont_face_attributes): Multiply pixel size before point
8465 conversion to avoid multiplying rounding error.
8466
8467 2008-06-23 Jason Rumney <jasonr@gnu.org>
8468
8469 * w32term.c (x_draw_glyph_string_background)
8470 (x_draw_glyph_string): Remove old bdf font code.
8471
8472 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8473
8474 2008-06-22 Kenichi Handa <handa@m17n.org>
8475
8476 * font.c (font_find_for_lface): Try the adstyle specified in
8477 the property of LFACE_FONT of LFACE (if any).
8478
8479 2008-06-21 Seiji Zenitani <zenitani@mac.com>
8480 Ryo Yoshitake <ryo@shiftmode.net>
8481
8482 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8483
8484 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8485
8486 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8487 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8488 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8489 (witness-emacs): Remove.
8490 (lisp, shortlisp): Move loaddefs.el earlier.
8491 (mostlyclean): Forget about witness-emacs.
8492
8493 2008-06-22 Glenn Morris <rgm@gnu.org>
8494
8495 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8496 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8497
8498 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8499
8500 * Makefile.in (PRECOMP): Remove.
8501 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8502 (witness-emacs): Run `compile-first'.
8503 (.el.elc): Use the new compile-onefile target.
8504
8505 2008-06-21 Kenichi Handa <handa@m17n.org>
8506
8507 * xftfont.c (xftfont_open): Handle QCembolden only when
8508 FC_EMBOLDEN is defined.
8509
8510 2008-06-21 Andreas Schwab <schwab@suse.de>
8511
8512 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8513 (.el.elc): Likewise.
8514
8515 2008-06-21 Miles Bader <miles@gnu.org>
8516
8517 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8518 build dir, not the lisp source dir.
8519
8520 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8521
8522 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8523 (bootstrapclean): Remove.
8524 (.el.elc): New rule.
8525 (PRECOMP): New var.
8526 (../lisp/subdirs.el): Remove.
8527 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8528 (witness-emacs): New target.
8529 (mostlyclean): Remove witness-emacs as well.
8530 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8531 Add witness-emacs dependency.
8532
8533 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
8534
8535 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8536 defined by the font.
8537
8538 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8539
8540 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8541 (bootstrap-clean): New target that keeps TAGS around.
8542 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8543 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8544
8545 2008-06-20 Jason Rumney <jasonr@gnu.org>
8546
8547 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8548 Remove obsolete font code.
8549
8550 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8551 to determine language support.
8552
8553 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8554
8555 * sysdep.c (cfsetspeed): New fun extracted from the code.
8556 (cfmakeraw): Move before first use.
8557
8558 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8559
8560 * sysdep.c (cfmakeraw): Provide fallback implementation.
8561 (serial_configure): Provide fallback implementation of cfsetspeed.
8562
8563 2008-06-20 Kenichi Handa <handa@m17n.org>
8564
8565 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8566 the pattern.
8567
8568 * fontset.c (fontset_from_font): Copy font_spec before changing
8569 the elements.
8570
8571 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8572
8573 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8574
8575 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8576 for explicit `font' parameters.
8577
8578 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8579
8580 2008-06-19 Kenichi Handa <handa@m17n.org>
8581
8582 * frame.c: Include <ctype.h>.
8583 (x_set_font_backend): Allow spacing characters in the X resource
8584 for FontBackend.
8585
8586 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8587
8588 * w32fns.c, xfns.c (Qfont_param): New var.
8589 (syms_of_w32fns): Initialize it.
8590 (x_default_font_parameter): Record explicit `font' into
8591 `font-parameter'.
8592
8593 2008-06-18 Kenichi Handa <handa@m17n.org>
8594
8595 * font.c (font_parse_xlfd): Fix previous change.
8596 (font_parse_fcname): Don't use :fc-unknown-spec.
8597 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8598 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8599 (font_add_log): Prepend the driver name to the resulting fonts.
8600
8601 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8602 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8603 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8604
8605 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8606 (QCembolden): New variables.
8607 (syms_of_xftfont): DEFSYM them.
8608 (xftfont_open): Call XftFontMatch. Don't trust the result of
8609 XftTextExtents8 if the pixel_size is less than 5.
8610
8611 2008-06-18 Andreas Schwab <schwab@suse.de>
8612
8613 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8614 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8615
8616 2008-06-18 Jason Rumney <jasonr@gnu.org>
8617
8618 * w32font.c (w32font_list, w32font_match): Add logging.
8619
8620 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8621
8622 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
8623
8624 * font.c (font_parse_fcname): Store divider characters for
8625 unknown-spec list. For known key symbols, intern using correct
8626 symbol name.
8627
8628 2008-06-17 Kenichi Handa <handa@m17n.org>
8629
8630 * xfaces.c (realize_default_face): If the frame is not on window
8631 system, set the fontset of face to nil.
8632
8633 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8634
8635 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8636
8637 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8638
8639 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8640 (build_font_name_from_vector): Delete externs.
8641
8642 * xfaces.c (struct font_name): Don't declare.
8643
8644 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8645
8646 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8647
8648 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8649
8650 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8651
8652 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8653
8654 * font.c (Ffont_spec): Fix usage in docstring.
8655 (Ffont_face_attributes): Doc fix.
8656
8657 2008-06-16 Andreas Schwab <schwab@suse.de>
8658
8659 * font.c (Ffont_face_attributes): Fix definition.
8660
8661 2008-06-16 Jason Rumney <jasonr@gnu.org>
8662
8663 * font.h (font_style_symbolic_from_value): Remove.
8664
8665 * font.c (font_style_symbolic_from_value): Remove.
8666 (font_style_symbolic): Revert to pre 2008-06-13 version.
8667
8668 * w32font.c (w32_to_fc_weight): New function.
8669 (w32font_full_name, logfont_to_fcname): Use it.
8670
8671 2008-06-16 Kenichi Handa <handa@m17n.org>
8672
8673 * font.c (font_check_object): Delete it.
8674 (font_clear_cache): Check if a font-object is alive.
8675 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8676 font-object to nil.
8677 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8678 (font_at): Don't call font_check_object.
8679 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8680
8681 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8682
8683 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8684
8685 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8686
8687 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8688
8689 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
8690
8691 * font.c (font_parse_fcname): Only one decimal point.
8692 (font_unparse_fcname): Handle data in family and foundry indices
8693 as symbols, not strings.
8694 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8695
8696 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8697
8698 * font.h (font_unparse_gtkname): Add prototype.
8699
8700 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8701
8702 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8703
8704 2008-06-15 Andreas Schwab <schwab@suse.de>
8705
8706 * font.c (font_update_drivers): Fix crash when no drivers match.
8707
8708 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8709
8710 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8711 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8712
8713 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8714
8715 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8716
8717 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8718
8719 * process.c (Fserial_process_configure, Fprocess_send_eof):
8720 Use EQ to compare Lisp_Objects.
8721
8722 2008-06-13 Jason Rumney <jasonr@gnu.org>
8723
8724 * w32fns.c (Fw32_select_font): Remove old font API function.
8725
8726 * w32font.c (logfont_to_fcname): New function.
8727 (Fx_select_font): New font dialog function compatible with
8728 GTK/fontconfig version.
8729
8730 * font.c (font_style_symbolic_from_value): New function.
8731 (font_style_symbolic): Use it.
8732
8733 * font.h (font_style_symbolic_from_value): Declare new function.
8734
8735 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
8736
8737 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8738 <font-width-table>: Fix typos in docstrings.
8739
8740 2008-06-13 Daniel Engeler <engeler@gmail.com>
8741
8742 These changes add serial port access.
8743 * process.c: Add HAVE_SERIAL.
8744 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8745 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8746 (list_processes_1, select_wrapper, Fstop_process)
8747 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8748 (status_notify): Modify to handle serial processes.
8749 [HAVE_SERIAL] (Fserial_process_configure)
8750 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8751 New functions.
8752 * process.h (struct Lisp_Process): Add `type'.
8753 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8754 New functions.
8755 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8756 serial ports.
8757 (serial_open, serial_configure): New functions.
8758 * w32.h: Add FILE_SERIAL.
8759 (struct _child_process): Add ovl_read, ovl_write.
8760
8761 2008-06-13 Kenichi Handa <handa@m17n.org>
8762
8763 * dispextern.h (enum lface_attribute_index): New member
8764 LFACE_FOUNDRY_INDEX.
8765
8766 * font.c (font_score): Delete arg alternate_families. Check only
8767 weight, slant, width, and size. Ignore the difference of alias
8768 style symbols.
8769 (font_sort_entites): Adjust for the above change. Reflect the
8770 order of font-driver to scores.
8771 (font_list_entities): Don't check alternate_familes here.
8772 (font_clear_prop): Handle foundry.
8773 (font_update_lface): Don't parse "foundry-family" form here.
8774 Handle FONT_FOUNDRY_INDEX.
8775 (font_find_for_lface): Likewise. Handle alternate families here.
8776 If registry is nil, try iso8859-1 and ascii-0.
8777 (font_open_for_lface): Pay attention to size in ENTITY.
8778 (font_open_by_name): Simplify by calling font_load_for_lface.
8779 (free_font_driver_list): Delete it.
8780 (font_update_drivers): Preserve the order of backends.
8781 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8782 of font_score and font_sort_entites.
8783 (font_update_sort_order): Likewise.
8784
8785 * xfaces.c (LFACE_FOUNDRY): New macro.
8786 (check_lface_attrs): Check foundry.
8787 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8788 (merge_face_vectors): Check foundry.
8789 (merge_face_ref): Likewise.
8790 (Finternal_set_lisp_face_attribute): Likewise.
8791 (x_update_menu_appearance): Likewise.
8792 (Finternal_get_lisp_face_attribute): Likewise.
8793 (lface_hash): Likewise.
8794 (lface_same_font_attributes_p): Likewise.
8795 (x_supports_face_attributes_p): Likewise.
8796 (tty_supports_face_attributes_p): Likewise.
8797 (Finternal_set_alternative_font_family_alist): Intern strings.
8798 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8799 (realize_default_face): Set LFACE_FOUNDRY (lface).
8800
8801 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8802 font-driver at first.
8803
8804 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8805
8806 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8807
8808 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8809
8810 2008-06-12 Jim Meyering <meyering@redhat.com>
8811
8812 Make unexec_free handle NULL the same way free does.
8813 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8814
8815 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8816
8817 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8818 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8819 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8820 (WEAK_ALIAS): Simplify.
8821 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8822 when searching a unibyte buffer.
8823
8824 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
8825
8826 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8827
8828 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
8829
8830 * w32font.c: Include ctype.h.
8831
8832 2008-06-11 Jason Rumney <jasonr@gnu.org>
8833
8834 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8835 misreported as space.
8836 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8837 as aliases for registry iso10646-1.
8838
8839 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8840
8841 * buffer.c (clone_per_buffer_values): Skip `name'.
8842
8843 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
8844
8845 * font.c (font_parse_fcname): Fix last change; accept decimal
8846 points in font size.
8847
8848 2008-06-10 Jason Rumney <jasonr@gnu.org>
8849
8850 * w32uniscribe.c (add_opentype_font_name_to_list):
8851 Skip non unicode fonts.
8852
8853 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8854
8855 * xfns.c (Fx_font_dialog): New function.
8856
8857 * gtkutil.c (xg_dialog_response_cb): Rename from
8858 xg_file_response_callback.
8859 (pop_down_dialog): Rename from pop_down_file_dialog.
8860 (xg_get_file_name): Callers changed.
8861 (xg_get_font_name): New function.
8862
8863 * gtkutil.h (xg_get_font_name): Insert prototype.
8864
8865 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8866
8867 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8868 x_underline_minimum_display_offset.
8869 (syms_of_xdisp): Declare it here rather than in xterm.c.
8870 * dispextern.h (underline_minimum_offset): Declare it.
8871 * w32term.c (x_draw_glyph_string): Use it.
8872 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8873 (syms_of_xterm): Don't declare it any more.
8874 (x_draw_glyph_string): Adjust to the new name.
8875
8876 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8877
8878 * xterm.c (x_underline_minimum_display_offset): New var.
8879 (x_draw_glyph_string): Use it.
8880 (syms_of_xterm): Declare it.
8881
8882 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8883
8884 * font.c (font_parse_fcname): Accept GTK-style font names too.
8885
8886 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8887
8888 * dired.c (file_name_completion): Don't return t if the match is exact
8889 but with different capitalization.
8890 * minibuf.c (Ftry_completion): Simplify.
8891
8892 * window.c (Vwindow_point_insertion_type): New var.
8893 (set_window_buffer): Use it.
8894 (syms_of_window): Init and export it to Lisp.
8895
8896 2008-06-10 Kenichi Handa <handa@m17n.org>
8897
8898 * font.h (font_intern_prop): Prototype adjusted.
8899
8900 * font.c (font_intern_prop): New arg force_symbol.
8901 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8902 Adjust for the change of font_intern_prop.
8903
8904 * ftfont.c (ftfont_pattern_entity):
8905 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8906 (w32_registry):
8907 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8908 the change of font_intern_prop.
8909
8910 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
8911
8912 * w32menu.c (digest_single_submenu): Declare extern.
8913
8914 2008-06-09 Jason Rumney <jasonr@gnu.org>
8915
8916 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8917
8918 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8919 (parse_single_submenu): Remove.
8920 (digest_single_submenu): Remove.
8921 (syms_of_w32menu): Don't initialise variables that have moved
8922 to menu.c.
8923 (set_frame_menubar): Sync with version in xmenu.c.
8924 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8925
8926 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8927 Make static again.
8928
8929 2008-06-09 Jason Rumney <jasonr@gnu.org>
8930
8931 Changes to w32 files related to the move of common menu code
8932 to menu.c on 2008-06-08 by Chong Yidong.
8933
8934 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8935 defs to w32gui.h.
8936 (single_keymap_panes, push_menu_item, push_menu_pane):
8937 Make globally visible.
8938
8939 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8940 (local_free, malloc_widget_value, free_widget_value)
8941 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8942 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8943 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8944 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8945 (menu_items, menu_items_allocated, menu_items_used)
8946 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8947 (init_menu_items, finish_menu_items, discard_menu_items)
8948 (grow_menu_items, push_submenu_start, push_submenu_end)
8949 (push_left_right_boundary, push_menu_pane, push_menu_item)
8950 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8951 (free_menubar_widget_tree_value, parse_single_submenu)
8952 (update_submenu_strings): Remove functions.
8953 (xmalloc_widget_value): Remove and declare extern.
8954
8955 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8956 (OBJ1): Build it.
8957
8958 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8959 (local_heap, local_alloc, local_free, malloc_widget_value)
8960 (free_widget_value): Define here.
8961
8962 2008-06-09 Kenichi Handa <handa@m17n.org>
8963
8964 * font.h (Qascii_0): Extern it.
8965
8966 * font.c (Qascii_0): New variable.
8967 (syms_of_font): DEFSYM it.
8968 (font_open_by_name): If the registry "iso8859-1" fails, try also
8969 "ascii-0".
8970
8971 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8972
8973 2008-06-08 Kenichi Handa <handa@m17n.org>
8974
8975 * .gdbinit (xfont): New command.
8976
8977 2008-06-08 Andreas Schwab <schwab@suse.de>
8978
8979 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8980 * Makefile.in (menu.o): Update dependencies.
8981
8982 * Makefile.in (obj): Always add menu.o.
8983 * emacs.c (main): Always call syms_of_menu.
8984 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8985
8986 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
8987
8988 * Makefile.in: Compile menu.c.
8989
8990 * lisp.h: Declare syms_of_menu.
8991
8992 * emacs.c (main): Call syms_of_menu.
8993
8994 * keyboard.h: Relocate platform-independent menu definitions from
8995 xmenu.c.
8996
8997 * menu.c: New file. Relocate platform-independent menu
8998 definitions from xmenu.c. Suggested by Adrian Robert.
8999
9000 * xmenu.c: Remove platform-independent menu definitions.
9001 (menu_items menu_items_inuse, menu_items_allocated)
9002 (menu_items_used, menu_items_n_panes)
9003 (menu_items_submenu_depth): Move to keyboard.h.
9004 (init_menu_items, finish_menu_items, unuse_menu_items)
9005 (discard_menu_items, restore_menu_items, save_menu_items)
9006 (grow_menu_items, push_submenu_start, push_submenu_end)
9007 (push_left_right_boundary, push_menu_pane, push_menu_item)
9008 (keymap_panes, single_keymap_panes, single_menu_item)
9009 (list_of_panes, list_of_items, find_and_call_menu_selection)
9010 (xmalloc_widget_value, free_menubar_widget_value_tree)
9011 (parse_single_submenu, digest_single_submenu)
9012 (update_submenu_strings): Move to menu.c.
9013
9014 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9015
9016 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9017
9018 2008-06-06 Miles Bader <miles@gnu.org>
9019
9020 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9021 face, not frame default.
9022
9023 2008-06-05 Martin Rudalics <rudalics@gmx.at>
9024
9025 * window.c (pop_up_windows, pop_up_frames)
9026 (display_buffer_reuse_frames, Vpop_up_frame_function)
9027 (Vdisplay_buffer_function, Veven_window_heights)
9028 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9029 (Vspecial_display_function, Vsame_window_buffer_names)
9030 (Vsame_window_regexps, split_height_threshold)
9031 (Vsplit_window_preferred_function): Move those vars to window.el.
9032 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9033 (Fdisplay_buffer): Move those functions to window.el.
9034 (syms_of_window): Remove corresponding declarations.
9035 (display_buffer): New function.
9036 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9037 * dispnew.c (Flast_nonminibuf_frame): New function.
9038 * buffer.c (Fpop_to_buffer): Move to window.el.
9039
9040 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9041
9042 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9043
9044 2008-06-05 Kenichi Handa <handa@m17n.org>
9045
9046 * coding.c (detect_coding): Fix previous change.
9047 (detect_coding_system): Likewise.
9048
9049 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9050
9051 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9052
9053 * keymap.c (Vminibuffer_local_filename_must_match_map):
9054 Rename from Vminibuffer_local_must_match_filename_map.
9055 (syms_of_keymap):
9056 * minibuf.c (Fcompleting_read): Adjust accordingly.
9057 * commands.h: Rename declaration as well.
9058
9059 2008-06-05 Kenichi Handa <handa@m17n.org>
9060
9061 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9062 family name.
9063 (Ffont_put): Likewise.
9064
9065 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9066 current font-spec.
9067
9068 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9069 is unspecified.
9070
9071 * xfaces.c (realize_x_face): If the font-related face attributes
9072 are the same as those of default face, realize a new fontset from
9073 default->fontset.
9074 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9075
9076 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9077
9078 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9079 (move_it_in_display_line): New wrapper.
9080
9081 * window.c (window_scroll_pixel_based_preserve_x)
9082 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9083 (window_scroll_pixel_based, window_scroll_line_based):
9084 Use them to preserve column positions.
9085 (syms_of_window): Initialize them.
9086
9087 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9088 (HPOS . VPOS) pair.
9089
9090 * dispextern.h (move_it_in_display_line): Declare.
9091
9092 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
9093
9094 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9095 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9096 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9097
9098 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
9099
9100 * window.c (Fset_window_parameter): Doc fix.
9101 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9102
9103 2008-06-04 Joakim Verona <joakim@verona.se>
9104
9105 * window.h (struct window): Add new member window_parameters.
9106
9107 * window.c (Fwindow_parameters, Fwindow_parameter)
9108 (Fset_window_parameter): New defuns.
9109 (syms_of_window): Defsubr the new defuns.
9110 (make_window): Initialize window_parameters to nil.
9111
9112 2008-06-04 John Paul Wallington <jpw@pobox.com>
9113
9114 * eval.c (Fdefmacro): Doc fix.
9115
9116 2008-06-04 Kenichi Handa <handa@m17n.org>
9117
9118 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9119 Be sure to call setup_coding_system when we find a proper coding system.
9120 (detect_coding_system): Fix handling of coding->head_ascii.
9121
9122 2008-06-03 Andreas Schwab <schwab@suse.de>
9123
9124 * font.c (font_prop_validate_spacing): Fix last change.
9125
9126 2008-06-03 Kenichi Handa <handa@m17n.org>
9127
9128 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9129 (font_parse_fcname): Fix handling of unknown key.
9130
9131 * xfont.c (xfont_list): Try an alias.
9132
9133 * charset.c (char_charset): Return NULL if the arg charset_list is
9134 specified and C doesn't belong to any of them.
9135
9136 2008-06-02 Chip Coldwell <coldwell@redhat.com>
9137
9138 * font.c (font_pixel_size): Don't take cdr of an integer.
9139
9140 2008-06-02 Jim Meyering <meyering@redhat.com>
9141
9142 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9143 * alloc.c (xfree): Return right away for a NULL arg.
9144 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9145 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9146 * mac.c (create_apple_event_from_event_ref): Likewise.
9147 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9148 Likewise.
9149 * doprnt.c (doprnt1): Likewise.
9150 * frame.c (frame): Likewise.
9151 * keyboard.c (wipe_kboard): Likewise.
9152 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9153 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9154 * term.c (tty_default_color_capabilities, maybe_fatal)
9155 (delete_tty): Likewise.
9156 * w16select.c (string): Likewise.
9157 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9158 * w32bdf.c (w32_free_bdf_font): Likewise.
9159 * w32fns.c (w32_unload_font): Likewise.
9160 * w32font.c (w32font_close): Likewise.
9161 * window.c (size_window): Likewise.
9162 * xselect.c (receive_incremental_selection): Likewise.
9163 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9164 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9165 * w32.c (stat): Likewise.
9166
9167 Remove useless if-before-free tests.
9168 * editfns.c (Fset_time_zone_rule): Likewise.
9169 * lread.c (nosuffix): Likewise.
9170 * ralloc.c (get_bloc): Likewise.
9171 * regex.c (reg_free): Likewise.
9172 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9173 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9174 * xsmfns.c (smc_save_yourself_CB): Likewise.
9175
9176 2008-06-02 Kenichi Handa <handa@m17n.org>
9177
9178 * font.c (font_find_for_lface): Handle float font size.
9179 (font_open_for_lface): Likewise.
9180
9181 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9182 comparing the properties.
9183
9184 2008-06-01 Jason Rumney <jasonr@gnu.org>
9185
9186 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9187 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9188 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9189 Don't add empty script list.
9190 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9191
9192 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9193
9194 * Makefile.in (dot, dotdot): Remove, update users.
9195 ".." has been used elsewhere in the file for a long time.
9196 (LIBXT_STATIC): Remove conditional based on unused variable.
9197
9198 2008-06-01 Miles Bader <miles@gnu.org>
9199
9200 * xfaces.c (Vface_remapping_alist): New variable.
9201 (syms_of_xfaces): Initialize it.
9202 (enum named_merge_point_kind): New type.
9203 (struct named_merge_point): Add `named_merge_point_kind' field.
9204 (push_named_merge_point): Make cycle detection respect different
9205 named-merge-point kinds.
9206 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9207 Remove face-name alias resolution.
9208 (lface_from_face_name): New definition using
9209 `lface_from_face_name_no_resolve'.
9210 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9211 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9212 (get_lface_attributes): New definition that layers face-remapping on
9213 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9214 (lookup_basic_face): New function.
9215 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9216 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9217 `get_lface_attributes'.
9218 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9219 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9220 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9221
9222 * xdisp.c (init_iterator): Pass base_face_id through
9223 `lookup_basic_face' when we actually use it as a face-id.
9224 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9225 DEFAULT_FACE_ID.
9226
9227 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9228 lookup the initial face-id.
9229
9230 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9231
9232 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
9233
9234 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9235 (Fremove_text_properties): Fix typos in docstrings.
9236
9237 2008-05-31 Kenichi Handa <handa@m17n.org>
9238
9239 * font.c (font_list_entities): Fix the car part of data to be
9240 stored in the cache.
9241
9242 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9243
9244 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9245
9246 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9247 Add a `test' argument so another predicate than `equal' can be used.
9248 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9249 (map_char_table): Remove unused vars `c' and `i'.
9250 * lisp.h (Foptimize_char_table): Adjust declaration.
9251 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9252
9253 2008-05-30 Kenichi Handa <handa@m17n.org>
9254
9255 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9256 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9257 defined.
9258
9259 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9262 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9263 frame-local settings for the same variable.
9264
9265 2008-05-30 Kenichi Handa <handa@m17n.org>
9266
9267 * fontset.c (Ffont_info): Move to font.c.
9268 (syms_of_fontset): Delete defsubr of Sfont_info.
9269
9270 * font.c (font_style_to_value, font_score): Delete casting of the
9271 args to xstcasecmp.
9272 (register_font_driver): Increment num_font_drivers only when
9273 registering the driver globally.
9274 (Ffont_info): Move from fontset.c. Handle a font object too.
9275 (syms_of_font): Defsubr Sfont_info.
9276
9277 2008-05-29 Kenichi Handa <handa@m17n.org>
9278
9279 * coding.h (enum define_coding_utf8_arg_index): New enum.
9280 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9281 coding_attr_utf_bom.
9282 (enum utf_bom_type): Rename from utf_16_bom_type.
9283 (struct utf_16_spec): Adjust for the above change.
9284 (struct coding_system): Add utf_8_bom in `spec' union.
9285
9286 * coding.c (CODING_UTF_8_BOM): New macro.
9287 (enum coding_category): Delete coding_category_utf_8, add
9288 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9289 coding_category_utf_8_sig.
9290 (CATEGORY_MASK_UTF_8): Delete it.
9291 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9292 (CATEGORY_MASK_UTF_8_SIG): New macros.
9293 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9294 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9295 CATEGORY_MASK_UTF_8_SIG.
9296 (CATEGORY_MASK_UTF_8): New macro.
9297 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9298 (detect_coding_utf_8): Check BOM.
9299 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9300 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9301 (encode_coding_utf_16): Likewise.
9302 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9303 (detect_coding, detect_coding_system): Handle utf-8-auto.
9304 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9305 (syms_of_coding): Fix setting up of Vcoding_category_table.
9306
9307 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9308
9309 * process.c (Faccept_process_output): If `millisec' is non-nil,
9310 `seconds' default to 0.
9311 (wait_reading_process_output): Also return non-nil if we read output
9312 from a non-running process.
9313
9314 2008-05-29 Jason Rumney <jasonr@gnu.org>
9315
9316 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9317 `raster' specified.
9318 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9319 in the uniscribe backend, but disallow any font that has no
9320 unicode subrange support.
9321
9322 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
9323
9324 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9325 Fix typos in docstrings.
9326
9327 2008-05-29 Kenichi Handa <handa@m17n.org>
9328
9329 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9330 (Fx_family_fonts): Set frame correctly.
9331
9332 2008-05-28 Jason Rumney <jasonr@gnu.org>
9333
9334 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9335
9336 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9337
9338 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9339 calling build_annotations.
9340
9341 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
9342
9343 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9344 (Fencode_coding_string):
9345 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9346 <latin-extra-code-table>: Fix typos in docstrings.
9347 (syms_of_coding) <coding-system-alist>: Doc fix.
9348 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9349
9350 2008-05-28 Kenichi Handa <handa@m17n.org>
9351
9352 * fontset.c (Ffont_info): Don't call font_close_object.
9353
9354 * font.c (font_parse_family_registry): Use Ffont_put to validate
9355 foundry and family.
9356 (font_delete_unmatched): Don't check spacing.
9357 (font_list_entities): Add spacing to the spec to list fonts.
9358
9359 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9360 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9361
9362 * coding.c (encode_coding_raw_text): Fix previous change.
9363 (encode_coding_object): When the dst_object is a buffer and is
9364 different from src_object, move gap to PT.
9365
9366 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9369
9370 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9371
9372 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9373 all branches. Compute it differently.
9374
9375 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9376
9377 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
9378
9379 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9380 into "else if () ... else ...".
9381
9382 2008-05-27 Jason Rumney <jasonr@gnu.org>
9383
9384 * w32font.c (w32font_open_internal): Determine if glyph indices
9385 are likely to work here.
9386
9387 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9388
9389 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9390 draw overlap glyphs with appropriate highlighting.
9391
9392 2008-05-27 Kenichi Handa <handa@m17n.org>
9393
9394 * xfont.c (xfont_open): Fix calculation of font->average_width.
9395
9396 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9397
9398 * casefiddle.c (casify_object): Try to guess better whether the
9399 argument is a byte or a char.
9400
9401 2008-05-26 Andreas Schwab <schwab@suse.de>
9402
9403 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9404 Always send multiples of format size.
9405
9406 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9407
9408 2008-05-26 Jason Rumney <jasonr@gnu.org>
9409
9410 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9411 (compute_metrics): Don't set failure if we just cleared the cache.
9412 (w32_weight_table): Remove unused variable.
9413 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9414 backwards compatibility.
9415
9416 2008-05-25 Kenichi Handa <handa@m17n.org>
9417
9418 * w32term.c (x_draw_glyph_string):
9419 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9420
9421 * xfaces.c: Delete unused function prototypes.
9422 (xstrlwr, font_frame): Delete them.
9423 (clear_face_cache): Delete unused variable.
9424
9425 * xftfont.c (xftfont_open): Delete unused variable.
9426 If underline_thickness is not 1, adjust underline_position.
9427
9428 * ftxfont.c (ftxfont_open): Delete unused variable.
9429
9430 * fontset.c (face_for_char): Optimize for the case of no charset
9431 property.
9432
9433 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9434 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9435 (otf_open, font_otf_capability, generate_otf_features)
9436 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9437 Comment out by surrounding "#if 0" and "#endif" for the moment.
9438 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9439 (syms_of_font): Codes for accessing above commented out.
9440
9441 2008-05-24 Eli Zaretskii <eliz@gnu.org>
9442
9443 * w32proc.c: Include dispextern.h.
9444
9445 * w32.c: Include dispextern.h.
9446
9447 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
9448
9449 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9450 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9451 Fix typos in docstrings.
9452
9453 2008-05-23 Jason Rumney <jasonr@gnu.org>
9454
9455 * xsmfns.c: Remove includes that are already included by config.h.
9456
9457 2008-05-23 Kenichi Handa <handa@m17n.org>
9458
9459 * charset.c (Qemacs, charset_emacs): New variables.
9460 (char_charset): Fix for non-Unicode characters.
9461 (syms_of_charset): Define charset_emacs.
9462
9463 * w32term.c (x_draw_glyph_string): Be sure to update
9464 s->underline_thickness and s->underline_position. Be sure to draw
9465 underline within the current line area.
9466
9467 * xterm.c (x_draw_glyph_string): Be sure to update
9468 s->underline_thickness and s->underline_position. Be sure to draw
9469 underline within the current line area.
9470
9471 * fontset.c: Delete unused variables and add casting for char *
9472 throughout the file.
9473 (fontset_font): Try the fallback fonts of the current fontset
9474 before consulting the default fontset.
9475
9476 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9477
9478 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9479
9480 2008-05-22 Jason Rumney <jasonr@gnu.org>
9481
9482 * font.c: Don't include strings.h.
9483
9484 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9485
9486 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9487 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9488 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9489 to call xstrcasecmp.
9490
9491 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9492
9493 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9494
9495 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9496
9497 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9498
9499 2008-05-22 Kenichi Handa <handa@m17n.org>
9500
9501 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9502
9503 * font.c (font_prop_validate_style): Adjust for the format
9504 change of font_style_table.
9505
9506 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9507 two args.
9508
9509 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9510 two args.
9511
9512 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9513
9514 * minibuf.c (keys_of_minibuf): Delete.
9515 * lisp.h (keys_of_minibuf): Delete.
9516 * emacs.c (main): Don't call keys_of_minibuf.
9517
9518 2008-05-22 Kenichi Handa <handa@m17n.org>
9519
9520 * ftfont.c (ftfont_resolve_generic_family): Rename from
9521 ftfont_list_generic_family. Return a single family for each
9522 generic family.
9523 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9524 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9525 Call font_add_log.
9526 (ftfont_match): Call font_add_log.
9527
9528 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9529 (FONT_DEBUG): Define it.
9530 (font_add_log): Extern it.
9531 (font_assert): Rename from xassert.
9532
9533 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9534 (xfont_list_family): Call font_add_log.
9535 (xfont_match): Likewise.
9536 (memq_no_quit): Delete.
9537
9538 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9539 call of Ffont_xlfd_name.
9540
9541 * xfaces.c (struct table_entry, slant_table, weight_table)
9542 (swidth_table): Move to font.c.
9543
9544 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9545 xassert are changed to font_assert. Delete many unused variables.
9546 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9547 New variables.
9548 (struct table_entry): Move from xfaces.c and modified.
9549 (weight_table, slant_table, width_table): Move from xfaces.c and
9550 contents adjusted for the change of struct table_entry.
9551 (font_style_to_value, font_style_symbolic): Adjust for the
9552 format change of font_style_table.
9553 (font_parse_family_registry): Don't overwrite existing foundry and
9554 family of font_spec.
9555 (font_score): Fix calculation of diff for sizes.
9556 (font_sort_entites): Call font_add_log.
9557 (font_delete_unmatched): Return a newly created list.
9558 (font_list_entities): Fix previous change. Call font_add_log.
9559 (font_matching_entity, font_open_entity, font_close_entity):
9560 Call font_add_log.
9561 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9562 (Finternal_set_font_style_table): Delete.
9563 (BUILD_STYLE_TABLE): New macro.
9564 (build_style_table): New function.
9565 (Vfont_log, font_log_env_checked): New variables.
9566 (font_add_log): New function.
9567 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9568 Declare Lisp variables "font-weight-table", "font-slant-table",
9569 "font-width-table", and "font-log". Initialize font_style_table.
9570
9571 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9572
9573 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9574
9575 2008-05-21 Seiji Zenitani <zenitani@mac.com>
9576 Ryo Yoshitake <ryo@shiftmode.net>
9577
9578 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9579 (Vframe_alpha_lower_limit): New variable.
9580 (x_set_alpha): New function.
9581
9582 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9583
9584 * xfns.c (x-create-frame, Qalpha):
9585 Initialize the frame parameter `alpha'.
9586 * xterm.c (OPAQUE, OPACITY): New.
9587 (x_set_frame_alpha): New function.
9588 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9589
9590 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9591 * w32fns.c (w32_frame_parm_handlers): Likewise.
9592
9593 2008-05-20 Jason Rumney <jasonr@gnu.org>
9594
9595 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9596 truetype fonts to opentype list.
9597
9598 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
9599
9600 * fontset.c (Ffontset_info): Doc fix.
9601 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9602 <ignore-relative-composition>: Fix typos in docstrings.
9603
9604 * font.c (syms-of-font) <font-encoding-alist>:
9605 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9606 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9607 (Ffont_otf_alternates): Doc fixes.
9608
9609 2008-05-20 Kenichi Handa <handa@m17n.org>
9610
9611 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9612 font.h through out the file.
9613 (FONT_DRIVERS): Rename from FONTOBJ.
9614 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9615 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9616
9617 * emacs.c (main): Call syms_of_font unconditionally.
9618
9619 * font.h (find_font_encoding): Extern it.
9620
9621 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9622 fontset.c.
9623 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9624 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9625 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9626 only when HAVE_WINDOW_SYSTEM is defined.
9627 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9628 when HAVE_WINDOW_SYSTEM is defined.
9629
9630 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9631 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9632
9633 * xfaces.c: Include font.h unconditionally.
9634 (merge_face_ref, merge_face_vectors)
9635 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9636
9637 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9638
9639 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9640 indirect_variable.
9641 * eval.c (lisp_indirect_variable): New fun.
9642 (Fuser_variable_p): Use it.
9643
9644 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9645
9646 * lisp.h (indirect_variable):
9647 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9648 Use Lisp_Symbol pointers rather than Lisp_Object.
9649 Adjust callers.
9650 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9651 To this end, change calling-convention.
9652
9653 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9654 if some non-hidden buffers are selected by string&pred.
9655
9656 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
9657
9658 * process.c (wait_reading_process_output): Always check status
9659 when in batch mode.
9660
9661 2008-05-19 Kenichi Handa <handa@m17n.org>
9662
9663 * font.c (font_list_entities): Fix handling of cache.
9664 (font_matching_entity): Likewise.
9665
9666 * ftfont.c (cs_iso8859_1): Delete.
9667 (ft_face_cache): New variable.
9668 (struct ftfont_info): New member fc_charset_idx.
9669 (ftfont_build_basic_charsets): Delete.
9670 (fc_charset_table): New variable.
9671 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9672 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9673 Callers changed.
9674 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9675 (ftfont_spec_pattern): New argument fc_charset_idx.
9676 Check registry more rigidly. Change callers.
9677 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9678 change of :font-entity property of the font.
9679
9680 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9681 property of the font.
9682
9683 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
9684
9685 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9686 (Funencodable_char_position, Fcheck_coding_systems_region)
9687 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9688 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9689 (Ffind_operation_coding_system, Fset_coding_system_priority)
9690 (Fcoding_system_eol_type): Doc fixes.
9691
9692 2008-05-17 Glenn Morris <rgm@gnu.org>
9693
9694 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9695
9696 2008-05-16 Eli Zaretskii <eliz@gnu.org>
9697
9698 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9699 and st_gid.
9700
9701 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9702 HAVE_WINDOW_SYSTEM is not defined.
9703
9704 * xfaces.c (merge_face_ref, merge_face_vectors)
9705 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9706 HAVE_WINDOW_SYSTEM is defined.
9707 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9708
9709 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9710
9711 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9712
9713 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9714
9715 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9716
9717 2008-05-15 Kenichi Handa <handa@m17n.org>
9718
9719 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9720 preference.
9721
9722 2008-05-15 Glenn Morris <rgm@gnu.org>
9723
9724 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9725
9726 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
9727
9728 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9729 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9730
9731 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9732
9733 2008-05-15 Kenichi Handa <handa@m17n.org>
9734
9735 * ftfont.c (ftfont_list): Downcase family name to check generic
9736 families.
9737
9738 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9739 font-spec for QCfont value.
9740
9741 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9742 buffer. Check the return value of it.
9743
9744 2008-05-14 Jason Rumney <jasonr@gnu.org>
9745
9746 * w32term.c (w32_get_glyph_overhangs): Remove.
9747 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9748
9749 2008-05-14 Kenichi Handa <handa@m17n.org>
9750
9751 * font.c (font_prop_validate): Make nil a valid value.
9752 (font_clear_cache): Check if the cached vector of entities is nil
9753 or not.
9754
9755 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9756
9757 * emacs.c (main_thread): Conditionalize on
9758 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9759 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9760
9761 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9762 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9763 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9764
9765 2008-05-14 Kenichi Handa <handa@m17n.org>
9766
9767 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9768 has no corresponding coding system.
9769
9770 2008-05-14 Jason Rumney <jasonr@gnu.org>
9771
9772 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9773
9774 * w32font.h (w32font_open_internal): Update declaration.
9775
9776 * w32font.c (w32font_open_internal): Change last argument from
9777 w32font_info struct to font object. Fill in font object from
9778 font_entity. Get Outline metrics if possible. Use them to
9779 calculate underline position and thickness. Use xlfd name as name
9780 property. Don't set codepage.
9781 (w32font_open): Pass font_object to w32font_open_internal. Don't
9782 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9783 (w32font_draw): Use s->font.
9784 (clear_cached_metrics): Don't clear non-existent blocks.
9785
9786 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9787 font was not found.
9788 (x_draw_glyph_string): Use underline position and thickness from font.
9789
9790 * w32uniscribe.c (uniscribe_open): Pass font_object to
9791 w32font_open_internal.
9792
9793 2008-05-14 Kenichi Handa <handa@m17n.org>
9794
9795 These changes are to delete all legacy font-handling codes, and
9796 make Emacs use only font-backends.
9797
9798 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9799 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9800
9801 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9802
9803 * charset.h (Vcharset_non_preferred_head)
9804 (Vcurrent_iso639_language): Extern them.
9805
9806 * charset.c (Vcharset_non_preferred_head): New variable.
9807 (Vcurrent_iso639_language): New variable.
9808 (syms_of_charset): Declare it as a Lisp variable.
9809 (char_charset): Don't check non preferred charsets. As a last
9810 resort, return charset_unicode.
9811 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9812
9813 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9814 conditionals. Don't check enable_font_backend. Delete all codes
9815 used only when USE_FONT_BACKEND is not defined.
9816
9817 * dispextern.h (struct glyph_string): Change type of `font' to
9818 `struct font *'.
9819 (struct glyph_string): New member underline_position and
9820 underline_thickness.
9821 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9822 (struct face): Change type of `font' to `struct font *'. Remove
9823 members `font_name', `font_info_id'.
9824 (per_char_metric, encode_char): Delete externs.
9825 (calc_pixel_width_or_height): Adjust the prototype.
9826
9827 * emacs.c (enable_font_backend): Delete extern.
9828 (main): Don't set enable_font_backend. Don't check the command
9829 line argument "-disable-font-backend".
9830
9831 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9832 (enum font_property_index): New members FONT_DPI_INDEX,
9833 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9834 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9835 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9836 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9837 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9838 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9839 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9840 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9841 (struct font_spec, struct font_entity): New structs.
9842 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9843 (struct font): Many members from old "struct font_info" moved to
9844 here. Members font and entity deleted.
9845 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9846 the new font-related objects.
9847 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9848 (CHECK_FONT_GET_OBJECT): Likewise.
9849 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9850 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9851 (struct font_driver): New members case_sensitive anc check. Type
9852 of the member list and open changed.
9853 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9854 (font_symbolic_width, font_find_object, font_get_spec)
9855 (font_set_lface_from_name): Delete extern.
9856 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9857
9858 * font.c: Include <strings.h>.
9859 (enable_font_backend): Delete it.
9860 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9861 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9862 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9863 (null_string): Delete it.
9864 (null_vector): Make it static.
9865 (font_family_alist): Delete it.
9866 (Qnormal): Extern it.
9867 (QCextra, QClanguage): Delete it.
9868 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9869 (font_make_spec, font_make_entity, font_make_object)
9870 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9871 the string. Callers changed.
9872 (font_pixel_size): Adjusted for the format change of font-related
9873 objects.
9874 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9875 (font_style_to_value, font_style_symbolic): New function.
9876 (build_font_family_alist): Delete it.
9877 (font_registry_charsets): Use Fassoc_string instead of
9878 assq_no_quit.
9879 (font_prop_validate_symbol): Don't return null_string.
9880 (font_prop_validate_style): Adjusted for the change of
9881 style-related values in a font vector.
9882 (font_property_table): Delete entries for QClanguage and
9883 QCantialias, add entries for QCavgwidth.
9884 (get_font_prop_index): Delete the 2nd argument FROM.
9885 (font_prop_validate): Arguments changed.
9886 (font_put_extra): Adjusted for the change of font-related objects.
9887 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9888 (font_parse_fcname, font_unparse_fcname)
9889 (font_prepare_composition): Likewise.
9890 (font_parse_family_registry): Renamed from font_merge_old_spec.
9891 (otf_open): Delete the 1st arg entity.
9892 (font_otf_capability): Adjusted for the above change.
9893 (font_score): New arg alternate_families. Adjusted for the change
9894 of font-related objects.
9895 (font_sort_entites): New arg best_only.
9896 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9897 Delete them.
9898 (font_match_p): Check alternate families.
9899 (font_find_object): Delete it.
9900 (font_check_object): New function.
9901 (font_clear_cache): Adjusted for the change of font-related objects.
9902 (font_delete_unmatched): New arg.
9903 (font_list_entities): Call font_driver->list with a spec that
9904 doesn't specify style-related properties.
9905 (font_matching_entity): Arguments changed. Caller changed.
9906 (font_open_entity): Adjusted for the change of font-related objects.
9907 (font_close_object, font_has_char, font_encode_char)
9908 (font_get_name, font_get_spec): Likewise.
9909 (font_spec_from_name, font_clear_prop, font_update_lface):
9910 New functions.
9911 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9912 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9913 (font_at): Adjusted for the change of font-related objects.
9914 (font_range): New function.
9915 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9916 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9917 (Fcopy_font_spec, Fmerge_font_spec): New function.
9918 (Ffont_family_list): Renamed from list-families.
9919 (Finternal_set_font_style_table): Arguments changed.
9920 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9921 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9922 change of font-related objects.
9923 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9924
9925 * fontset.h (struct font_info): Delete it. Most members go to
9926 struct font.
9927 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9928 (enum FONT_SPEC_INDEX): Delete it.
9929 (font_info, list_fonts_func, load_font_func, query_font_func)
9930 (set_frame_fontset_func, find_ccl_program_func)
9931 (get_font_repertory_func, new_fontset_from_font_name): Delete
9932 externs.
9933 (fontset_from_font_name): Extern it.
9934 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9935 (FONT_INFO_FROM_FACE): Deleted.
9936 (face_for_font): Adjust prototype.
9937
9938 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9939 conditionals. Don't check enable_font_backend. Delete all codes
9940 used only when USE_FONT_BACKEND is not defined.
9941 (get_font_info_func, list_font_func, load_font_func)
9942 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9943 (get_font_repertory_func): Delete them.
9944 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9945 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9946 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9947 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9948 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9949 (fontset_compare_rfontdef): New function.
9950 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9951 rfont-defs by qsort. Adjusted for the change of font-group vector.
9952 (load_font_get_repertory): Deleted.
9953 (fontset_find_font): Use new macros to ref/set elements of
9954 font-def and rfont-def.
9955 (fontset_font): Fix the timing of remembering that no font for C.
9956 (free_face_fontset): Do nothing if the face has no fontset.
9957 (face_suitable_for_char_p): Use new macros to ref/set elements of
9958 rfont-def.
9959 (face_for_char): Likewise. Call face_for_char with font_object.
9960 (fs_load_font): Delete. Delete #pragma surrounding it.
9961 (fs_query_fontset): Use strcasecmp instead of strcmp.
9962 (generate_ascii_font_name): Adjusted for the format change of
9963 font-spec.
9964 (Fset_fontset_font): Likewise. Use new macros to set elements of
9965 font-def.
9966 (Fnew_fontset): Use font_unparse_xlfd to generate
9967 FONTSET_ASCII (fontset).
9968 (new_fontset_from_font_name): Deleted.
9969 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9970 a fontset is already created for the font. FIx updating of
9971 Vfontset_alias_alist.
9972 (fontset_ascii_font): Deleted.
9973 (Ffont_info): Adjusted for the format change of font-spec.
9974 (Finternal_char_font): Likewise.
9975 (Ffontset_info): Likewise.
9976 (syms_of_fontset): Don't check load_font_func.
9977
9978 * fns.c (internal_equal): Handle PREV_FONT.
9979
9980 * frame.h: Delete USE_FONT_BACKEND conditional.
9981
9982 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9983 conditionals. Don't check enable_font_backend. Delete all codes
9984 used only when USE_FONT_BACKEND is not defined.
9985 (x_set_font): Call x_new_font, not x_new_fontset2.
9986 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9987 already set for the frame.
9988
9989 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9990 a font-entity by font_make_entity. Use font_intern_prop instead
9991 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9992 font property. If a font is scalable, set avgwidth property to 0.
9993 Set font-entity property by font_put_extra.
9994 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9995 (ffont_driver): Adjusted for the change of struct font_driver.
9996 (ftfont_spec_pattern): New function.
9997 (ftfont_list): Return a list, not vector.
9998 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9999 (ftfont_list_family): Don't downcase names.
10000 (ftfont_free_entity): Deleted.
10001 (ftfont_open): Return a font-object. Adjusted for the change of
10002 struct font. Get underline_thickness and underline_position from
10003 font property. Don't update dpyinfo->smallest_font_height and
10004 dpyinfo->smallest_char_width.
10005 (ftfont_close): Don't free `struct font'.
10006 (ftfont_has_char): Adjusted for the format change of font-entity.
10007 (ftfont_encode_char, ftfont_text_extents): Likewise.
10008
10009 * ftxfont.c (ftxfont_list): Return a list, not vector.
10010 (ftxfont_open): Return a font-object. Adjusted for the change of
10011 struct font. Get underline_thickness and underline_position from
10012 font property. Don't update dpyinfo->smallest_font_height and
10013 dpyinfo->smallest_char_width.
10014 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10015 (ftxfont_draw): Adjusted for the change of struct font.
10016
10017 * image.c (image_ascent): Don't include "charset.h". Include
10018 "character.h" and "font.h".
10019
10020 * lisp.h (enum pvec_type): New member PREV_FONT.
10021 (Fassoc_string): EXFUN it.
10022
10023 * print.c: Include font.h.
10024 (print_object): Handle font-related objects.
10025
10026 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10027 conditionals. Don't check enable_font_backend. Delete all codes
10028 used only when USE_FONT_BACKEND is not defined.
10029 (handle_auto_composed_prop): Do nothing if it->f is not on a
10030 window system. Check how many following characters can be
10031 displayed by the same font.
10032 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10033 'struct font *'.
10034 (get_char_face_and_encoding): Assign the whole encoding task to
10035 the `encode-char' method of a font driver.
10036 (fill_composite_glyph_string): Adjusted for the change of `struct
10037 face' and `struct glyph_string'.
10038 (fill_glyph_string): Likewise.
10039 (get_per_char_metric): Arguments changed.
10040 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10041 and `struct glyph_string'.
10042 (produce_stretch_glyph, calc_line_height_property)
10043 (x_produce_glyphs): Likewise.
10044
10045 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10046 conditionals. Don't check enable_font_backend. Delete all codes
10047 used only when USE_FONT_BACKEND is not defined. Use
10048 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10049 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10050 (Qp): Extern them.
10051 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10052 Deleted.
10053 (struct font_name): Deleted.
10054 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10055 (compare_fonts_by_sort_order): New function.
10056 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10057 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10058 Deleted.
10059 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10060 compare_fonts_by_sort_order.
10061 (Fx_font_family_list): Call Ffont_family_list.
10062 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10063 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10064 (face_symbolic_slant, face_symbolic_swidth)
10065 (split_font_name_into_vector, build_font_name_from_vector)
10066 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10067 (font_rescale_ratio, split_font_name, build_font_name)
10068 (free_font_names, sort_fonts, x_face_list_fonts)
10069 (face_font_available_p, sorted_font_list, cmp_font_names)
10070 (font_list_1, concat_font_list, font_list, remove_duplicates):
10071 Deleted.
10072 (Fx_list_fonts): Use Ffont_list.
10073 (LFACE_AVGWIDTH): Deleted.
10074 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10075 by FONTP.
10076 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10077 (set_lface_from_font_name): Delete it.
10078 (set_lface_from_font): Renamed from
10079 set_lface_from_font_and_fontset. Caller changed. Don't set
10080 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10081 for face.
10082 (merge_face_vectors): Copy font-spec if necessary.
10083 Clear properties of the font-spec if necessary.
10084 (merge_face_ref): Clear properties of the font-spec if necessary.
10085 (Finternal_set_lisp_face_attribute): Likewise.
10086 (set_font_frame_param): Use font_load_for_lface to load a
10087 font-object, and call Fmodify_frame_parameters with it.
10088 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10089 font name by Ffont_xlfd_name.
10090 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10091 QCslant, and QCwidth.
10092 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10093 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10094 Compare fonts by EQ.
10095 (lookup_non_ascii_face): Deleted.
10096 (face_for_font): The 2nd argument changed.
10097 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10098 Check atomic font properties by case insensitive.
10099 (realize_non_ascii_face): Set face->overstrike correctly.
10100 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10101 (dump_realized_face): Get font name from
10102 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10103
10104 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10105 conditionals. Don't check enable_font_backend. Delete all codes
10106 used only when USE_FONT_BACKEND is not defined.
10107 (xic_create_xfontset): Original code deleted and renamed from
10108 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10109 (x_make_gc): Don't set GCFont in GCs.
10110 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10111 opened by "fixed".
10112 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10113 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10114 get_font_repertory_func.
10115
10116 * xfont.c: Include <stdlib.h> and "ccl.h".
10117 (struct xfont_info): New structure.
10118 (xfont_query_font): Deleted.
10119 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10120 moved from xterm.c.
10121 (xfont_driver): Adjusted for the change of struct font_driver.
10122 (compare_font_names): New function.
10123 (xfont_list_pattern): Sort font names case insensitively. Make
10124 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10125 (xfont_list): Return a list, not vector.
10126 (xfont_match): If the font doesn't have QCname property, generate
10127 a name from the other font properties.
10128 (xfont_open): Return a font-object. Adjusted for the change of
10129 struct font. Get underline_thickness and underline_position from
10130 font property. Don't update dpyinfo->smallest_font_height and
10131 dpyinfo->smallest_char_width.
10132 (xfont_close): Don't free struct font.
10133 (xfont_prepare_face): Adjusted for the change of struct font.
10134 (xfont_done_face): Deleted.
10135 (xfont_has_char): Adjusted for the change of struct font.
10136 (xfont_encode_char, xfont_draw): Likewise.
10137 (xfont_check): New function.
10138
10139 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10140 callback function.
10141 (xftfont_match): Adjusted for the format change of font-entity.
10142 (xftfont_open): Adjusted for the format change of font-entity and
10143 font-object. Adjusted for the change of struct font. Return a
10144 font-object. Don't update dpyinfo->smallest_font_height and
10145 dpyinfo->smallest_char_width.
10146 (xftfont_close): Block input while calling XftFontClose.
10147 (xftfont_prepare_face): Don't block input while calling
10148 xftfont_get_colors. Adjusted for the change of struct font.
10149 (xftfont_shape): Return value of error case fixed.
10150
10151 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10152
10153 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10154 conditionals.
10155 (FONT_WIDTH): Return (f)->max_width.
10156 (struct x_display_info): Delete member `font'.
10157 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10158 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10159 (struct x_output): Change type of `font' to `struct font *'.
10160
10161 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10162 conditionals. Don't check enable_font_backend. Delete all codes
10163 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10164 (x_per_char_metric, x_encode_char): Deleted.
10165 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10166 (x_compute_glyph_string_overhangs): Adjusted for the change of
10167 `struct face'.
10168 (x_draw_glyph_string_foreground)
10169 (x_draw_composite_glyph_string_foreground): Likewise.
10170 (x_draw_glyph_string): Likewise. Use font->underline_position and
10171 font->underline_thickness.
10172 (x_new_font): Renamed from x_new_fontset2.
10173 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10174 (x_check_font): Call `check' method of a font driver.
10175 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10176 (x_query_font, x_get_font_repertory): Deleted.
10177 (x_find_ccl_program): Renamed and moved to xfont.c.
10178 (x_redisplay_interface): Adjusted for the change of `struct
10179 redisplay_interface'.
10180
10181 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10182 conditionals. Don't check enable_font_backend. Delete all codes
10183 used only when USE_FONT_BACKEND is not defined. Surround non-used
10184 code by "#ifdef OLD_FONT" and "endif".
10185 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10186
10187 * w32font.h (struct w32font_info): New member.
10188 (FONT_COMPAT): New macro.
10189 (w32font_open_internal): Prototype adjusted.
10190
10191 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10192 OLD_FONT" and "endif".
10193
10194 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10195 conditionals. Don't check enable_font_backend. Delete all codes
10196 used only when USE_FONT_BACKEND is not defined.
10197 (w32font_open): Return a font-object. Make a font-object by
10198 font_make_object. Adjusted for the change of struct w32font_info.
10199 (w32font_close): Don't free struct font. Adjusted for the change
10200 of struct w32font_info.
10201 (w32font_encode_char, w32font_text_extents, w32font_draw):
10202 Adjusted for the change of struct w32font_info.
10203 (w32font_draw): Likewise.
10204 (w32font_list_internal): Return a list, not vector.
10205 (w32font_open_internal): Change the 4th arg to font-object.
10206 Adjusted for the change of struct w32font_info and font-object format.
10207 (add_font_name_to_list): Don't downcase names.
10208 (w32_enumfont_pattern_entity): Make a font-entity by
10209 font_make_entity. Adjusted for the format change of font-entity.
10210 Use FONT_SET_STYLE to set a style-related font property. If a
10211 font is scalable, set avgwidth property to 0. Set font-entity
10212 property by font_put_extra.
10213 (font_matches_spec): Adjusted for the format change of font-entity.
10214 (w32_weight_table, w32_decode_weight): New variables.
10215 (w32_encode_weight): New function.
10216 (fill_in_logfont): Adjusted for the format change of font-spec.
10217 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10218 weight value.
10219 (w32font_driver): Adjusted for the change of struct font_driver.
10220
10221 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10222 conditionals. Don't check enable_font_backend. Surround non-used
10223 code by "#ifdef OLD_FONT" and "endif".
10224 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10225 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10226
10227 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10228 conditionals. Don't check enable_font_backend. Delete all codes
10229 used only when USE_FONT_BACKEND is not defined. Surround non-used
10230 code by "#ifdef OLD_FONT" and "endif".
10231
10232 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10233 (uniscribe_open): Return value changed to font-object.
10234 Adjusted for the format change of font-object.
10235 (uniscribe_otf_capability): Adjusted for the change of struct font.
10236 (add_opentype_font_name_to_list): Don't downcase names.
10237 (uniscribe_font_driver): Adjusted for the change of struct
10238 font_driver.
10239
10240 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
10241
10242 * dispnew.c (update_frame_1): Check if tty output is still valid
10243 before flushing it.
10244
10245 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10246
10247 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10248 to Gtk+ menus.
10249
10250 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10251
10252 * dired.c (file_name_completion): Tweak the code so as to always do it
10253 in a single pass. Tighten the scope of some variables.
10254
10255 * dired.c (Qdefault_directory): New var.
10256 (file_name_completion): Use it instead of Fexpand_file_name.
10257 (syms_of_dired): Initialize it.
10258
10259 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10260
10261 * fileio.c (double_dollars): Remove dead code.
10262
10263 2008-05-10 Eli Zaretskii <eliz@gnu.org>
10264
10265 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10266 Mention w32-get-true-file-attributes in doc string.
10267
10268 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10269
10270 2008-05-09 Glenn Morris <rgm@gnu.org>
10271
10272 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10273 2008-04-23.
10274
10275 2008-05-09 Eli Zaretskii <eliz@gnu.org>
10276
10277 Support for reporting owner and group of each file on MS-Windows:
10278 * dired.c (stat_uname, stat_gname): New functions, with special
10279 implementation for w32.
10280 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10281
10282 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10283 (dflt_group_name): New static variable.
10284 (dflt_group): Rename from the_group.
10285 (init_user_info): Init dflt_group fields. Get user's group name
10286 from LookupAccountSid.
10287 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10288 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10289 New initialization states.
10290 (globals_of_w32): Initialize them to zero. Initialize the default
10291 group name to "None".
10292 (GetFileSecurity_Name): New global var, the name of the function
10293 to call for GetFileSecurity.
10294 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10295 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10296 (get_file_security, get_security_descriptor_owner)
10297 (get_security_descriptor_group, is_valid_sid)
10298 (get_file_security_desc, get_rid, get_name_and_id)
10299 (get_file_owner_and_group): New functions.
10300 (stat): Use get_file_security_desc and get_file_owner_and_group to
10301 report the owner and primary group of each file. Don't ignore the
10302 high 32 bits of file's size, now that st_size is 64-bit wide.
10303 Fix test when to get true file attributes.
10304 (init_user_info): Use get_rid instead of equivalent inline code.
10305 (fstat): Don't ignore the high 32 bits of file's size.
10306
10307 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
10308
10309 * image.c (png_load): Use correct bit-depth for setting background
10310 color.
10311
10312 2008-05-08 Eli Zaretskii <eliz@gnu.org>
10313
10314 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10315 epa-hook.elc.
10316
10317 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
10318
10319 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10320
10321 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10322
10323 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10324 because the original parameters are in pure storage now.
10325 (mac_window): Remove unused params. Update callers.
10326
10327 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10328
10329 * lread.c (substitute_object_recurse): Use lower-level primitives.
10330 Don't signal errors when traversing sub-char-tables.
10331 Don't loop over all the possible characters when traversing char-tables.
10332
10333 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10334 just like we do in print.c.
10335
10336 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10337
10338 * minibuf.c (Ftry_completion): Remove code left over from when we used
10339 scmp instead of Fcompare_strings.
10340
10341 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
10342
10343 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10344
10345 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10346
10347 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10348 Create bitmap context in native byte order.
10349
10350 * macterm.c (XDrawLine)
10351 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10352 context in native byte order.
10353
10354 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10355
10356 * config.in: Regenerate.
10357
10358 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10359 New definitions for Image I/O support.
10360 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10361 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10362 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10363 (mac_data_provider_release_data, image_load_image_io)
10364 [USE_MAC_IMAGE_IO]: New functions.
10365 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10366 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10367 (init_image_func_pointer) [MAC_OSX]: Remove function.
10368 (image_load_quartz2d) [MAC_OSX]: Check availability of
10369 CGImageCreateWithPNGDataProvider at compile time.
10370 Use lowercase `false' for boolean constant.
10371 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10372 Use image_load_image_io.
10373 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10374 Don't check MyCGImageCreateWithPNGDataProvider.
10375 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10376 Don't call init_image_func_pointer.
10377
10378 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10379
10380 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10381 Make variable non-static.
10382 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10383 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10384
10385 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10386 (RED_FROM_ULONG): Mask off higher bits.
10387 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10388
10389 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10390 Include AvailabilityMacros.h.
10391 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10392 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10393
10394 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10395
10396 * chartab.c (Fset_char_table_range): If range is t, really set all
10397 chars to that value.
10398
10399 2008-05-03 Eli Zaretskii <eliz@gnu.org>
10400
10401 * dired.c (Ffile_attributes): Don't allow the device number become
10402 negative.
10403
10404 2008-05-02 Daiki Ueno <ueno@unixuser.org>
10405
10406 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10407
10408 2008-05-02 Juri Linkov <juri@jurta.org>
10409
10410 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10411 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10412 DEFAULT argument as a list of default values in docstrings.
10413
10414 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
10415
10416 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10417
10418 2008-05-01 Martin Rudalics <rudalics@gmx.at>
10419
10420 * dispnew.c (change_frame_size_1): Preserve small windows when
10421 shrinking frames by calling set_window_height|width with third
10422 arg 2.
10423
10424 * window.h (struct window): Replace field too_small_ok by field
10425 resize_proportionally.
10426
10427 * window.c (make_window): Initialize resize_proportionally.
10428 (enlarge_window): Temporarily set resize_proportionally to make
10429 sure that shrink_windows does scale the window proportionally.
10430 (shrink_windows): When window has resize_proportionally set try
10431 to shrink it proportionally by stealing from other windows.
10432 (struct saved_window, Fset_window_configuration)
10433 (compare_window_configurations): Handle resize_proportionally.
10434 (WINDOW_TOTAL_SIZE): New macro.
10435 (window_min_size, shrink_windows, size_window): Use it.
10436 (check_min_window_sizes): Remove. Invalid values of
10437 window-min-height|width are handled by window_min_size_2 now.
10438 (size_window, Fsplit_window, enlarge_window)
10439 (adjust_window_trailing_edge, grow_mini_window): Don't call
10440 check_min_window_sizes.
10441 (window_min_size_2, window_min_size_1, window_min_size):
10442 New argument safe_p for retrieving "safe" minimum sizes.
10443 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10444 (adjust_window_trailing_edge, grow_mini_window):
10445 Adjust arguments of window_min_size... functions.
10446 (shrink_windows): Argument min_size removed. New argument
10447 safe_p allows shrinking windows to their safe minimum sizes.
10448 Calculate minimum size and decide whether a window shall be
10449 deleted for each window individually.
10450 (size_window): When nodelete_p equals 2, tell shrink_windows to
10451 delete windows only if their new minimum size is no more safe.
10452 (shrink_window_lowest_first): Call window_min_size_1 to make
10453 sure to preserve modeline of bottom-most window when resizing
10454 the minibuffer.
10455 (Fset_window_configuration, Fcurrent_window_configuration)
10456 (compare_window_configurations): Do not handle
10457 window-min-height|width any more.
10458 (syms_of_window): Clarify window-min-height|width doc-strings.
10459
10460 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10461
10462 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10463 some more. Copy some of the code from Ftry_completions.
10464 Remove special case code that dates back to initial revision when the
10465 slash was only added when necessary and that can't trigger nowadays.
10466
10467 2008-04-27 Kenichi Handa <handa@m17n.org>
10468
10469 * font.c (font_prop_validate): Signal `error' instead of `font'.
10470
10471 2008-04-29 Jason Rumney <jasonr@gnu.org>
10472
10473 * w32fns.c (Fw32_battery_status): New defun.
10474 (syms_of_w32fns): Defsubr it.
10475
10476 2008-04-28 Andreas Schwab <schwab@suse.de>
10477
10478 * dired.c (file_name_completion): Fix another mixing of encoded
10479 and decoded names.
10480
10481 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
10482
10483 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10484
10485 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
10486
10487 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10488
10489 2008-04-27 Andreas Schwab <schwab@suse.de>
10490
10491 * dired.c (file_name_completion): Fix inappropriate mixing of
10492 encoded and decoded names.
10493
10494 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10495
10496 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10497
10498 2008-04-26 Eli Zaretskii <eliz@gnu.org>
10499
10500 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10501 2008-03-31, it's not needed anymore with `struct stat' definition
10502 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10503 for the same reasons.
10504
10505 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10506
10507 * m/sparc.h: Additional redefinitions for GNU/Linux.
10508
10509 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10510
10511 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10512 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10513 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10514 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10515 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10516 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10517 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10518 Likewise.
10519
10520 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10521 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10522 (mac_ax_number_of_characters): Add externs.
10523 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10524 [USE_MAC_TSM]: Likewise.
10525 (mac_handle_text_input_event) [MAC_OSX]:
10526 Handle kEventTextInputOffsetToPos for no active input area case.
10527 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10528 (mac_handle_document_access_event)
10529 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10530 (install_application_handler) [MAC_OSX]: Register handlers for
10531 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10532 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10533 Register mac_handle_document_access_event.
10534
10535 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10536 Make functions non-static.
10537
10538 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10539
10540 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10541 (read_file_name_completion_ignore_case, insert_default_directory)
10542 (Qdefault_directory): Move to minibuffer.el.
10543 (Fread_file_name): Call the new `read-file-name' instead.
10544
10545 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10546
10547 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10548 Make function non-static.
10549 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10550 Remove function.
10551 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10552 Move to mactoolbox.c.
10553 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10554
10555 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10556 (mac_rect_make): New macro.
10557
10558 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10559 instead of float.
10560 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10561 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10562 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10563 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10564 CGRectMake.
10565 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10566 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10567 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10568 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10569 instead of WindowRef in argument type.
10570 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10571 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10572 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10573 instead of DISPLAY. All uses changed.
10574 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10575 (x_calc_absolute_position): Simplify so as not to use
10576 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10577
10578 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10579 instead of WindowRef in argument type.
10580 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10581 [TARGET_API_MAC_CARBON]: Remove externs.
10582 (create_apple_event, mac_event_parameters_to_lisp)
10583 [TARGET_API_MAC_CARBON]: Add externs.
10584
10585 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10586 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10587 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10588 is clicked.
10589 (x_activate_menubar): Remove extern for saved_menu_event_location.
10590 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10591 Move from mac.c.
10592
10593 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10594
10595 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10596 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10597
10598 2008-04-23 Jason Rumney <jasonr@gnu.org>
10599
10600 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10601 attributes only for local files.
10602
10603 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10604 default to Qlocal.
10605
10606 2008-04-22 Juri Linkov <juri@jurta.org>
10607
10608 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10609 read-buffer-to-switch instead of using the letter "B".
10610
10611 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10612
10613 * fileio.c (Qdefault_directory): New variable.
10614 (Fread_file_name): Use it to pass `dir' to the completion functions.
10615
10616 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
10617
10618 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10619
10620 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10621
10622 * keyboard.c (Vpre_help_message): Remove.
10623 (show_help_echo): Remove default C code.
10624
10625 * dired.c (directory_files_internal, file_name_completion):
10626 Only call ENCODE_FILE if the string is indeed decoded.
10627
10628 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10629
10630 * Makefile.in (TOOLKIT_DEFINES): Remove.
10631 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10632
10633 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10634
10635 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10636 (mactoolbox.o): New target.
10637
10638 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10639 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10640
10641 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10642 Use mac_set_frame_window_background instead of XSetWindowBackground.
10643 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10644 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10645 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10646 instead of SetWindowTitleWithCFString.
10647 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10648 Move function to mactoolbox.c.
10649 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10650 Use mac_set_window_modified instead of SetWindowModified.
10651 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10652 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10653 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10654 FrontNonFloatingWindow. Use mac_activate_window instead of
10655 ActivateWindow. Use mac_active_non_floating_window instead of
10656 ActiveNonFloatingWindow.
10657 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10658 Use mac_show_hourglass and mac_hide_hourglass.
10659 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10660 instead of GetGlobalMouse.
10661 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10662 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10663 Use mac_bring_window_to_front instead of BringToFront.
10664 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10665 mactoolbox.c.
10666 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10667 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10668 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10669 mactoolbox.c.
10670
10671 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10672 (XtPointer): Move typedef from macmenu.c.
10673 (enum button_type): Move enum from macmenu.c.
10674 (widget_value): Move typedef from macmenu.c.
10675 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10676 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10677 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10678 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10679 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10680 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10681 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10682 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10683 (Selection): Move typedef from macselect.c.
10684 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10685 macterm.c.
10686 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10687 (mac_is_window_collapsed, mac_bring_window_to_front)
10688 (mac_send_window_behind, mac_hide_window, mac_show_window)
10689 (mac_collapse_window, mac_front_non_floating_window)
10690 (mac_active_non_floating_window, mac_activate_window)
10691 (mac_move_window_structure, mac_move_window, mac_size_window)
10692 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10693
10694 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10695 (enum mac_menu_kind): Move enum to mactoolbox.c.
10696 (min_menu_id): Move variable to mactoolbox.c.
10697 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10698 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10699 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10700 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10701 [TARGET_API_MAC_CARBON]: Likewise.
10702 (XtPointer): Move typedef to macgui.h.
10703 (enum button_type): Move enum to macgui.h.
10704 (widget_value): Move typedef to macgui.h.
10705 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10706 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10707 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10708 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10709 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10710 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10711 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10712 (popup_activated_flag): Make variable non-static.
10713 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10714 (add_menu_item, fill_menu, dispose_menus):
10715 Move functions to mactoolbox.c.
10716 (restore_show_help_function, menu_target_item_handler)
10717 (install_menu_target_item_handler, mac_handle_dialog_event)
10718 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10719 [TARGET_API_MAC_CARBON]: Likewise.
10720 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10721 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10722 (find_and_call_menu_selection, name_is_separator): Make function
10723 non-static.
10724 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10725 to mactoolbox.c.
10726 (set_frame_menubar): Don't call install_menu_quit_handler.
10727 (menu_item_selection): New variable.
10728 (mac_menu_show): Use create_and_show_popup_menu.
10729 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10730 selection but set variable menu_item_selection. All uses changed.
10731 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10732 Call install_menu_quit_handler. Move to mactoolbox.c.
10733
10734 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10735 (Selection): Move typedef to macgui.h.
10736 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10737 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10738 Make variables non-static.
10739 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10740 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10741 Make functions non-static.
10742 (Vmac_service_selection) [MAC_OSX]: Likewise.
10743 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10744 (mac_valid_selection_target_p, mac_clear_selection)
10745 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10746 (mac_put_selection_value, mac_selection_has_target_p)
10747 (mac_get_selection_value, mac_get_selection_target_list)
10748 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10749 Move functions to mactoolbox.c.
10750 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10751 Likewise.
10752 (copy_scrap_flavor_data, mac_handle_service_event)
10753 (install_service_handler) [MAC_OSX]: Likewise.
10754 (syms_of_macselect) <Vmac_dnd_known_types>:
10755 Use mac_dnd_default_known_types.
10756
10757 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10758 Move to mactoolbox.c.
10759 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10760 (Fx_selection_owner_p): Add EXFUN.
10761 (install_window_handler, remove_window_handler, XSetWindowBackground):
10762 Remove externs.
10763 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10764 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10765 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10766 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10767 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10768 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10769 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10770 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10771 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10772 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10773 (mac_valid_selection_target_p, mac_clear_selection)
10774 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10775 (mac_put_selection_value, mac_selection_has_target_p)
10776 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10777 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10778 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10779 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10780 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10781 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10782 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10783 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10784 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10785
10786 * mactoolbox.c: New file.
10787
10788 2008-04-18 Jason Rumney <jasonr@gnu.org>
10789
10790 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10791
10792 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10793
10794 * character.c (Fmultibyte_char_to_unibyte):
10795 Return latin1 chars unchanged.
10796
10797 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10798 relocated if it points to `name'.
10799
10800 2008-04-17 Kenichi Handa <handa@m17n.org>
10801
10802 * data.c (Faset): Allow setting a multibyte character in an
10803 ASCII-only unibyte string.
10804
10805 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10806
10807 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10808
10809 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10810 done in config.h.
10811
10812 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
10813
10814 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10815 (Fchar_direction): Add usage in the docstring.
10816
10817 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
10818
10819 * keyboard.c (read_key_sequence): Remove always-true checks.
10820
10821 2008-04-14 Jason Rumney <jasonr@gnu.org>
10822
10823 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10824 compatibility struct, for better underline positioning.
10825
10826 2008-04-13 David Hansen <david.hansen@gmx.net>
10827
10828 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10829 string.
10830
10831 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10832
10833 * m/hp800.h (XUINT, XSET): Remove.
10834
10835 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
10836
10837 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10838 previous change.
10839
10840 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10841
10842 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10843 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10844
10845 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10846
10847 * keymap.h (map_keymap_canonical): Declare.
10848 * xmenu.c (single_keymap_panes): Use it.
10849
10850 2008-04-11 Glenn Morris <rgm@gnu.org>
10851
10852 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10853 set the target's value to that of the alias.
10854
10855 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10856
10857 * term.c (set_tty_color_mode): Left over typo.
10858
10859 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
10860
10861 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10862 only after check for file name handler functions. Signal, when
10863 native functionality is not supported.
10864 (syms_of_fileio): Declare it unconditionally.
10865
10866 2008-04-10 Jason Rumney <jasonr@gnu.org>
10867
10868 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10869 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10870
10871 * w32.c (logon_network_drive): Also logon to remote drives that
10872 are mapped to drive letters.
10873
10874 2008-04-10 Glenn Morris <rgm@gnu.org>
10875
10876 * xdisp.c (truncate-partial-width-windows): Doc fix.
10877
10878 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10879
10880 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10881 Move functions to minibuffer.el.
10882 (syms_of_fileio): Don't declare them.
10883
10884 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10885
10886 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10887 (syms_of_minibuf): Remove its initialization.
10888
10889 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10890
10891 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
10892
10893 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10894
10895 2008-04-09 Jason Rumney <jasonr@gnu.org>
10896
10897 * makefile.w32-in (distclean): Delete makefile too.
10898 (maintainer-clean): New target.
10899
10900 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10901
10902 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10903 for new font backend and composite cases.
10904
10905 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10906
10907 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10908 Most of the code moved to run_timers.
10909 (do_pending_atimers): Call run_timers.
10910 (run_timers): New function.
10911
10912 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10913 run atimers.
10914
10915 * process.c (wait_reading_process_output): The same as above.
10916
10917 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10918
10919 * minibuf.c (last_exact_completion): Remove variable.
10920 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10921 (complete_and_exit_1, complete_and_exit_2)
10922 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10923 (Fdisplay_completion_list, display_completion_list_1)
10924 (Fminibuffer_completion_help, Fself_insert_and_exit)
10925 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10926 minibuffer.el.
10927 (syms_of_minibuf): Remove corresponding initializations.
10928
10929 * keyboard.c (Qdeactivate_mark): New var.
10930 (command_loop_1): Use it to call `deactivate-mark'.
10931 (syms_of_keyboard): Initialize it.
10932
10933 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10934 to another frame.
10935 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10936 Don't call set_tty_color_mode.
10937 (store_frame_param): Reset previous_frame rather than call
10938 set_tty_color_mode.
10939 * term.c (set_tty_color_mode): Rewrite.
10940 * dispextern.h (set_tty_color_mode): New type.
10941 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10942
10943 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10944
10945 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10946 for generic chars, which do not exist any more in emacs-unicode.
10947
10948 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
10949
10950 * coding.c (detect_coding_emacs_mule)
10951 (Ffind_operation_coding_system): Fix typo.
10952
10953 2008-04-08 Jason Rumney <jasonr@gnu.org>
10954
10955 * w32uniscribe.c (SNAME): Extract only symbol name.
10956
10957 * w32font.h (struct w32_metric_cache): New struct.
10958 (w32font_info): Use it.
10959 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10960 (CACHE_BLOCKSIZE): New constants.
10961
10962 * w32font.c (Qja, Qko, Qzh): New symbols.
10963 (syms_of_w32font): Initialise them.
10964 (font_matches_spec): Use them to filter by language.
10965 (recompute_cached_metrics): Remove function.
10966 (compute_metrics, clear_cached_metrics): New functions.
10967 (w32font_encode_char): Use them to manage metric cache.
10968 (w32font_text_extents): Cache metrics for all glyphs on demand.
10969 Delay converting glyph indices to WORD until needed.
10970 (w32font_open_internal): Initialize metric cache to empty.
10971 (registry_to_w32_charset): Charset should always be a symbol.
10972 (fill_in_logfont, list_all_matching_fonts): Family should
10973 always be a symbol.
10974
10975 2008-04-06 Jason Rumney <jasonr@gnu.org>
10976
10977 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10978 Give up if glyph indices not supported. Use uniscribe obtained
10979 ABC widths for individual metrics. Map glyph clusters back to
10980 characters using fClusterStart flag. Return number of glyphs
10981 produced, not chars processed.
10982 (uniscribe_shape): Map char at FROM to current glyph.
10983
10984 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10985
10986 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10987 Use SetMenuItemHierarchicalMenu.
10988
10989 2008-04-05 Jason Rumney <jasonr@gnu.org>
10990
10991 * image.c (pbm_load): Allow color values up to 65535.
10992 Throw an error if max_color_idx is outside the supported range.
10993 Report an error when image size is invalid.
10994 Read two bytes at a time when raw images have max_color_idx above 255.
10995
10996 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10997
10998 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10999 cFileName a file name that includes `?' characters, use the 8+3
11000 alias in cAlternateFileName instead.
11001
11002 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11003
11004 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11005 append "CCL: Quitted" when the CCL program is quitted.
11006 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11007
11008 * ccl.h (struct ccl_program): New member quit_silently.
11009
11010 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
11011
11012 * search.c (compile_pattern_1): Treat non-nil and non-string of
11013 search-spaces-regexp as nil.
11014
11015 * minibuf.c (Fassoc_string): Tweak docstring.
11016
11017 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11018
11019 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11020 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11021 2008-03-14 to force inode be positive.
11022
11023 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11024 _S_* ones, since we now use our own sys/stat.h.
11025 (stat, fstat): Don't mangle the inode number.
11026 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11027
11028 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11029
11030 * frame.h (struct frame): Give one more bit to `visible' since we use
11031 values larger than 1 to indicate obscured frames on ttys.
11032
11033 * keymap.c (Qkeymap_canonicalize): New var.
11034 (Fmap_keymap_internal): New fun.
11035 (describe_map): Use keymap-canonicalize.
11036
11037 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11038 (Fundo_boundary): Set them.
11039 (syms_of_undo): Initialize them.
11040 (record_point): Use them instead of last_point_position*.
11041 (last_undo_buffer): Change type.
11042
11043 2008-04-04 Jason Rumney <jasonr@gnu.org>
11044
11045 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11046 (recompute_cached_metrics): Don't set ascent and descent per char.
11047
11048 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11049 (uniscribe_check_otf): Add GC protection before consing.
11050 Rearrange loop for counting features.
11051
11052 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11053
11054 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11055 buffer with byte-size of source buffer.
11056
11057 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
11058
11059 * callint.c (Fcall_interactively): Handle temporary region even
11060 when shift-select-mode is off.
11061
11062 2008-04-03 Jason Rumney <jasonr@gnu.org>
11063
11064 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11065
11066 2008-04-03 Kenichi Handa <handa@m17n.org>
11067
11068 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11069 (CATEGORY_MASK_UTF_16): Likewise.
11070 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11071 binary file.
11072 (detect_coding): Add null-byte detection for a binary file.
11073 (detect_coding_system): Likewise.
11074
11075 2008-04-03 Jason Rumney <jasonr@gnu.org>
11076
11077 * w32uniscribe.c: New file.
11078
11079 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11080
11081 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11082
11083 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11084 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11085 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11086 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11087 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11088 (Qphonetic): New symbols.
11089 (syms_of_w32font): Initialize them.
11090 (font_supported_scripts): Use them.
11091 (w32font_list_family): List all charsets.
11092 (w32font_text_extents, recompute_cached_metrics): Fix metric
11093 calculations.
11094 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11095 Give opentype fonts their own format.
11096 (font_matches_spec): New arguments backend and logfont.
11097 Handle :otf spec for uniscribe backend.
11098 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11099 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11100
11101 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11102 font backend.
11103 (globals_of_w32fns): Initialize uniscribe font backend.
11104
11105 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11106 dependencies.
11107 (w32uniscribe.$(O)): New file to build.
11108 (FONT_OBJ): Include w32uniscribe.$(O).
11109 (LIBS): Add uniscribe libraries.
11110
11111 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11112
11113 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
11114
11115 * callint.c (Vshift_select_mode): New var.
11116 (Finteractive): Document new ^ spec.
11117 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11118 is present.
11119
11120 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11121 (command_loop_1): Avoid running the direct display versions of
11122 forward-char and backward-char if shift-selection may occur.
11123 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11124 shift-translation takes place.
11125
11126 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11127 avoid clobbering by define-minor-mode.
11128
11129 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11130 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11131
11132 * syntax.c (Fforward_word): Add ^ interactive spec.
11133
11134 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11135 (Fscroll_right): Add ^ interactive spec.
11136
11137 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11138
11139 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11140
11141 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11142
11143 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11144
11145 2008-03-31 Juri Linkov <juri@jurta.org>
11146
11147 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11148
11149 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11150
11151 * gtkutil.c (xg_set_geometry): Fix indentation.
11152 (xg_resize_outer_widget): Remove.
11153 (x_wm_size_hint_off): Fix indentation.
11154 (xg_frame_set_char_size): Call flush_and_sync after
11155 gtk_window_resize.
11156 (x_wm_set_size_hint): Pass NULL as geometry window to
11157 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11158 Add menu bar and tool bar height to base height.
11159 (xg_update_frame_menubar, free_frame_menubar)
11160 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11161 (update_frame_tool_bar, free_frame_tool_bar):
11162 Change xg_resize_outer_widget to xg_frame_set_char_size.
11163
11164 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
11165
11166 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11167 (Fdbus_call_method): New parameter TIMEOUT.
11168 (dbus-send-signal): Optimize UNGCPRO call.
11169
11170 2008-03-29 Juri Linkov <juri@jurta.org>
11171
11172 * window.c (Fdisplay_buffer): Move call to
11173 Vsplit_window_preferred_function out of conditions that check
11174 if window is eligible for vertical splitting.
11175 When Vsplit_window_preferred_function is non-nil, call it and use
11176 its non-nil return value as window. Otherwise, continue doing
11177 vertical splitting using Fsplit_window with arg horflag=nil.
11178 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11179 default value from `split-window' to nil.
11180
11181 2008-03-29 Juri Linkov <juri@jurta.org>
11182
11183 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11184 for interactive code letters 'b' and 'B'.
11185
11186 2008-03-29 Eli Zaretskii <eliz@gnu.org>
11187
11188 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11189 multibyte string.
11190
11191 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11192
11193 * keyboard.c (pending_funcalls): New var.
11194 (timer_check): Run it.
11195 (syms_of_keyboard): Initialize it.
11196 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11197 (Vdelete_terminal_functions): New vars.
11198 (syms_of_terminal): Initialize them.
11199 (Fdelete_terminal): Run delete-terminal-functions.
11200 * xdisp.c (safe_eval): Rewrite.
11201 (safe_call2): New fun.
11202 * frame.c (Qdelete_frame_functions): New var.
11203 (syms_of_frame): Initialize it.
11204 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11205 * lisp.h (safe_call2, pending_funcalls): Declare.
11206
11207 2008-03-28 Andreas Schwab <schwab@suse.de>
11208
11209 * indent.c (Fmove_to_column): Move declaration before statements.
11210
11211 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11212
11213 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11214 (struct frame): Use bit fields for boolean vars.
11215
11216 * process.c (server_accept_connection): Simplify naming.
11217 (emacs_get_tty_pgrp): Use SDATA.
11218
11219 * coding.c (decode_coding_object): Fix last change.
11220
11221 2008-03-27 Jason Rumney <jasonr@gnu.org>
11222
11223 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11224
11225 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11226
11227 * charset.c (Fdefine_charset_internal): Change the way of
11228 registering charsets in Vcharset_order_list.
11229 (syms_of_charset): Make the charset `eight-bit' supplementary.
11230
11231 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11232
11233 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11234 operations, to avoid having the difference between pointers
11235 overflow.
11236
11237 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11238
11239 * indent.c (check_display_width): New fun.
11240 (scan_for_column): Use it.
11241
11242 * data.c (syms_of_data): Mark most-positive-fixnum and
11243 most-negative-fixnum as constants.
11244
11245 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11246
11247 * indent.c (scan_for_column): Extract from current_column_1.
11248 Merge with the same code from Fmove_to_column.
11249 (current_column_1, Fmove_to_column): Use it.
11250
11251 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11252
11253 * keymap.c (map_keymap_internal): New fun.
11254 (map_keymap): Use it.
11255 (Fmap_keymap_internal): New fun.
11256 (Fmap_keymap): Remove left-out test from before make_save_value.
11257
11258 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11259
11260 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11261 Use XCAR/XCDR.
11262
11263 * process.h (struct Lisp_Process): Remove filter_multibyte.
11264 * process.c (QCfilter_multibyte): Remove.
11265 (setup_process_coding_systems): Don't use filter_multibyte.
11266 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11267 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11268 (Fset_process_filter_multibyte): Change the coding-system to
11269 approximate the previous behavior.
11270 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11271 coding-system.
11272
11273 * coding.c (decode_coding_object): When not decoding into a buffer,
11274 obey the coding system's preference of (uni|multi)byte.
11275
11276 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11277
11278 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11279 every char is changed and has a different byte-length.
11280 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11281 Fix int -> EMACS_INT.
11282
11283 2008-03-23 David Hansen <david.hansen@gmx.net>
11284
11285 * dbusbind.c (xd_read_message): Remove extra copying of message
11286 strings. Check for NULL `interface' or `member'.
11287
11288 2008-03-22 Eli Zaretskii <eliz@gnu.org>
11289
11290 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11291 cFileName a file name that includes `?' characters, use the 8+3
11292 alias in cAlternateFileName instead.
11293
11294 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11295
11296 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11297
11298 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11299
11300 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11301 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11302 work on current_buffer only instead (that was already the case
11303 for some of the code anyway).
11304 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11305 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11306 (SET_PT, SET_PT_BOTH): Adjust.
11307 * intervals.h (set_point, temp_set_point, set_point_both)
11308 (temp_set_point_both): Remove redundant declarations.
11309
11310 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11311
11312 * fileio.c (Finsert_file_contents):
11313 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11314 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11315 when buffer != current_buffer anyway.
11316
11317 2008-03-20 Andreas Schwab <schwab@suse.de>
11318
11319 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11320 as default.
11321
11322 2008-03-19 Jason Rumney <jasonr@gnu.org>
11323
11324 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11325 (syms_of_w32fns): Initialize them.
11326 (HOURGLASS_ID): New constant.
11327 (x_window_to_frame): Don't check hourglass_window.
11328 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11329 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11330 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11331 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11332 Only change the cursor if hourglass is not active.
11333 (Fx_create_frame): Initialize frame's current_cursor.
11334 (hourglass_atimer): Remove.
11335 (hourglass_started): New function.
11336 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11337 (show_hourglass): Adapt to w32, changing argument to frame.
11338
11339 * w32term.h (struct w32_output): Remove hourglass_window.
11340 Add current_cursor.
11341
11342 * eval.c (call_debugger, Fsignal):
11343 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11344 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11345 (Fexecute_extended_command, cancel_hourglass_unwind):
11346 * minibuf.c (read_minibuf):
11347 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11348
11349 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11350
11351 * window.c (run_funs): New fun.
11352 (run_window_configuration_change_hook): Use it to run the buffer-local
11353 and the global part of the hook.
11354
11355 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11356 (unwind_format_mode_line): Restore selected window.
11357 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11358
11359 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11360
11361 * editfns.c (Fchar_equal): Check they are valid characters.
11362
11363 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11364
11365 2008-03-17 Andreas Schwab <schwab@suse.de>
11366
11367 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11368 against a charset.
11369
11370 * lisp.h (Fbuffer_list): Declare.
11371
11372 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
11373
11374 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11375 handlebox_widget is != 0.
11376
11377 2008-03-16 Juri Linkov <juri@jurta.org>
11378
11379 * callint.c (Fcall_interactively): For interactive code letters
11380 'b' and 'B' put the buffer list into the list of default "future"
11381 values of the minibuffer.
11382
11383 2008-03-16 Andreas Schwab <schwab@suse.de>
11384
11385 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11386 modifiers.
11387
11388 * regex.c (re_match_2_internal): Correct matching of a charset
11389 against latin-1 characters.
11390
11391 2008-03-16 Kenichi Handa <handa@m17n.org>
11392
11393 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11394 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11395 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11396 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11397 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11398 CHAR_STRING_ADVANCE.
11399 (produce_chars): Fix for the case that the source and the
11400 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11401 instead of CHAR_STRING_ADVANCE.
11402 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11403 STRING_CHAR_ADVANCE.
11404
11405 2008-03-15 Andreas Schwab <schwab@suse.de>
11406
11407 * regex.c (re_match_2_internal): Correct matching of eight bit
11408 characters in unibyte strings.
11409
11410 2008-03-15 Martin Rudalics <rudalics@gmx.at>
11411
11412 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11413 at end of range when it coincides with the end of the buffer.
11414
11415 2008-03-14 Eli Zaretskii <eliz@gnu.org>
11416
11417 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11418
11419 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11420
11421 2008-03-14 Jason Rumney <jasonr@gnu.org>
11422
11423 * editfns.c (initial_tz): New variable.
11424 (syms_of_editfns): Initialize it.
11425 (Fset_time_zone_rule): Set it when first called.
11426 Use it when TZSTRING is nil.
11427
11428 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11429 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11430 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11431 (globals_of_w32fns): Initialize them.
11432 (compute_tip_xy): Use them to position tooltips.
11433
11434 2008-03-14 Glenn Morris <rgm@gnu.org>
11435
11436 * emacs.c (main): Revert previous change.
11437 (standard_args): Revert -internal-script back to -scriptload,
11438 and remove the long-option form.
11439
11440 2008-03-13 Glenn Morris <rgm@gnu.org>
11441
11442 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11443 Remove option -enable-font-backend.
11444
11445 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11446
11447 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11448
11449 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11450
11451 * xterm.c (x_connection_closed): For GTK: If this is the last
11452 terminal just exit without closing the display.
11453
11454 2008-03-11 Jason Rumney <jasonr@gnu.org>
11455
11456 * w32font.c (w32font_full_name): Use floor to round.
11457
11458 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11459
11460 * sound.c (alsa_configure): Declare vol at beginning of block.
11461
11462 * fontset.c (Ffontset_info): Remove extra semicolon.
11463
11464 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11465
11466 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11467 size of resulting string.
11468
11469 2008-03-10 Jason Rumney <jasonr@gnu.org>
11470
11471 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11472
11473 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11474
11475 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11476 Don't pretend as if characters with display property haven't been
11477 consumed for string-replacing-string case.
11478
11479 2008-03-08 Kim F. Storm <storm@cua.dk>
11480
11481 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11482 (get_next_display_element, next_element_from_string)
11483 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11484
11485 2008-03-08 Andreas Schwab <schwab@suse.de>
11486
11487 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11488
11489 2008-03-06 Jason Rumney <jasonr@gnu.org>
11490
11491 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11492 when charset not specified. Only translate ANSI to unicode when
11493 font_type is truetype.
11494 (w32font_coverage_ok): New function.
11495 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11496
11497 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11498
11499 * lread.c (Fread_char): Resolve modifiers.
11500 (Fread_char_exclusive): Likewise.
11501
11502 * character.c (char_resolve_modifier_mask): New function.
11503 (char_string): Use char_resolve_modifier_mask.
11504 (Fchar_resolve_modifiers): New function.
11505 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11506 function.
11507
11508 2008-03-04 Jason Rumney <jasonr@gnu.org>
11509
11510 * makefile.w32-in: Always include w32font.c in the build.
11511 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11512
11513 2008-03-04 Andreas Schwab <schwab@suse.de>
11514
11515 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11516 (versionclean): Likewise.
11517
11518 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
11519
11520 * .cvsignore: Add oo.
11521
11522 2008-03-03 Andreas Schwab <schwab@suse.de>
11523
11524 * coding.c (decode_coding_object): Inhibit gap shrinking while
11525 decoding in place.
11526
11527 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11528
11529 * w32term.c: Remove unused include "gnu.h".
11530 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11531
11532 * gnu.h: Rename to ...
11533 * emacs-icon.h: ... this.
11534 * xterm.c: Use emacs-icon.h instead of gnu.h.
11535 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11536
11537 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
11538
11539 * w32font.c: Include math.h.
11540
11541 2008-03-03 Jason Rumney <jasonr@gnu.org>
11542
11543 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11544 Compute options separately.
11545 (w32font_open_internal): Set glyph_idx before caching metrics.
11546
11547 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11548 Define if system headers don't.
11549 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11550 (w32font_encode_char): Don't declare here.
11551
11552 * w32font.c (Quniscribe, QCformat): New symbols.
11553 (syms_of_w32font): Define them.
11554 (w32font_has_char): Indicate uncertainty.
11555 (w32font_encode_char): Encode as glyph point. Make static.
11556 (recompute_cached_metrics): New function.
11557 (w32font_open_internal): Use it. Set font to use glyph points
11558 initially. Set format based on type of font.
11559 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11560 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11561 on it. Set format based on information available here.
11562 (add_font_entity_to_list): Identify backend based on opentype_only.
11563
11564 2008-03-02 Andreas Schwab <schwab@suse.de>
11565
11566 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11567
11568 * coding.c (decode_coding_big5, produce_chars):
11569 Fix typos in last change.
11570
11571 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11572
11573 * gnu.h: New icon.
11574
11575 2008-03-02 Kenichi Handa <handa@m17n.org>
11576
11577 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11578 `dos', don't decode '\r' if that is the last in the source.
11579 (decode_coding_utf_16, decode_coding_emacs_mule)
11580 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11581 (decode_coding_raw_text, decode_coding_charset): Likewise.
11582 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11583
11584 2008-03-01 Jason Rumney <jasonr@gnu.org>
11585
11586 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11587
11588 2008-03-01 Kim F. Storm <storm@cua.dk>
11589
11590 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11591
11592 2008-03-01 Jason Rumney <jasonr@gnu.org>
11593
11594 * w32font.c (w32font_full_name): New function.
11595 (w32font_open_internal): Use it.
11596
11597 2008-03-01 Kim F. Storm <storm@cua.dk>
11598
11599 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11600
11601 2008-03-01 Jason Rumney <jasonr@gnu.org>
11602
11603 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11604
11605 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11606
11607 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11608 xg_frame_resized when the event is for the edit widget.
11609
11610 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11611
11612 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11613 set_char_size.
11614 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11615 operations on widgets here. Just set frame size if needed.
11616 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11617 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11618 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11619 the whole frame.
11620 (xg_create_tool_bar): Move attachment of the tool bar to
11621 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11622 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11623
11624 2008-03-01 Jason Rumney <jasonr@gnu.org>
11625
11626 * w32fns.c (w32_msg_pump): Disable debug code.
11627
11628 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11629
11630 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11631
11632 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11633
11634 * xdisp.c (next_overlay_string): Don't set
11635 overlay_strings_at_end_processed_p if we're currently reading from
11636 a display string.
11637
11638 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11639
11640 * xdisp.c (get_overlay_strings_1): Fix typo.
11641
11642 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11643
11644 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11645
11646 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11647
11648 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11649
11650 * xdisp.c (display_mode_element): Cancel the previous change.
11651 (decode_mode_spec): Likewise.
11652 (handle_auto_composed_prop): Don't make composition if it->string
11653 is a string.
11654
11655 2008-02-27 Kim F. Storm <storm@cua.dk>
11656
11657 * lisp.h (GLYPH): Change type from int to struct with separate char
11658 and face_id members.
11659 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11660 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11661 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11662 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11663 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11664 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11665 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11666 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11667 handle new Lisp glyph code encoding, either an integer or a cons.
11668
11669 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11670 (GLYPH_ALIAS): Delete.
11671 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11672 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11673 (GLYPH_FROM_CHAR): Replace macro by ...
11674 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11675
11676 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11677 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11678 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11679 (GLYPH_INVALID_P): New macro.
11680 (spec_glyph_lookup_face): Update prototype.
11681
11682 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11683 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11684 new glyph code encoding.
11685 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11686 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11687
11688 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11689 Adapt to new glyph type and new glyph code encoding.
11690
11691 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11692
11693 * indent.c (current_column, current_column_1, Fmove_to_column)
11694 (compute_motion): Adapt to new glyph code encoding.
11695
11696 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11697
11698 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
11699
11700 * process.c (wait_reading_process_output): Check for window
11701 changes caused by timers.
11702 Suggested by Johan Bockgård.
11703
11704 2008-02-27 Glenn Morris <rgm@gnu.org>
11705
11706 * emacs.c (USAGE1): Add `--disable-font-backend'.
11707
11708 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11709
11710 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11711 is made to the buffer.
11712
11713 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11714
11715 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11716 (face_at_string_position):
11717 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11718 (face_at_string_position):
11719 * xdisp.c (display_string, next_overlay_change):
11720 * buffer.h (overlays_at):
11721 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11722 Update callers.
11723
11724 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
11725
11726 * editfns.c (Fformat): Doc fix.
11727
11728 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
11729
11730 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11731 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11732 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11733
11734 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11735
11736 * buffer.c (Fbuffer_swap_text): New function.
11737 (syms_of_buffer): Defsubr it.
11738
11739 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
11740
11741 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11742
11743 2008-02-25 Jason Rumney <jasonr@gnu.org>
11744
11745 * w32font.c (w32font_draw): Draw one character at a time when padding.
11746
11747 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11748
11749 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11750 Handle a nil arg. Use run_window_configuration_change_hook.
11751 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11752 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11753 Use run_window_configuration_change_hook.
11754
11755 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11756
11757 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11758 1-pixel width.
11759
11760 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11761
11762 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11763 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11764 if the glyph in the font is zero pixel with.
11765
11766 * dispextern.h (struct glyph_string): New member padding_p.
11767
11768 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11769
11770 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11771
11772 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11773
11774 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11775
11776 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11777
11778 2008-02-25 Jason Rumney <jasonr@gnu.org>
11779
11780 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11781
11782 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11783
11784 Allow fine-grained image-cache flushing.
11785 * dispextern.h (struct image): Add `dependencies' field.
11786 (clear_image_caches): Change arg to Lisp_Object.
11787 * image.c (make_image): Initialize `dependencies' field.
11788 (clear_image_cache): Change arg to allow fine-grained flushing.
11789 Perform the flush even if image-cache-eviction-delay is nil.
11790 (clear_image_caches): Change arg to Lisp_Object.
11791 (Fclear_image_cache): Expand meaning of the argument.
11792 (mark_image): Mark `dependencies' field.
11793 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11794 (lface_hash): Use XHASH rather than XFASTINT.
11795 (face_at_buffer_position): Fix int -> EMACS_INT position.
11796 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11797 (select_frame_for_redisplay): Remove code duplication.
11798 (redisplay_internal): Adapt arg to call to clear_image_caches.
11799
11800 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11801
11802 * s/vms4-0.h:
11803 * s/vms4-2.h:
11804 * s/vms4-4.h:
11805 * s/vms5-5.h: Remove, unused.
11806
11807 * s/irix5-2.h:
11808 * s/irix6-0.h:
11809 * s/riscos5.h:
11810 * s/mach-bsd4-3.h:
11811 * m/mips4.h: Remove files for obsolete systems.
11812
11813 * Makefile.in:
11814 * filelock.c:
11815 * unexmips.c:
11816 * m/hp9000s300.h:
11817 * m/iris4d.h:
11818 * s/aix3-1.h:
11819 * s/hpux.h:
11820 * s/msdos.h:
11821 * s/usg5-0.h:
11822 * s/usg5-2-2.h:
11823 * s/usg5-2.h:
11824 * s/usg5-3.h: Remove references to obsolete variables.
11825
11826 * s/irix5-0.h: Remove, move all the contents ...
11827 * s/irix6-5.h: ... here. Simplify.
11828 * config.in: Regenerate.
11829
11830 2008-02-24 Jason Rumney <jasonr@gnu.org>
11831
11832 * w32term.c (x_draw_glyph_string_background): Clear the background
11833 manually when cleartype is in use.
11834 (x_draw_glyph_string_foreground): Draw text transparently when
11835 cleartype is in use.
11836
11837 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11838 a font into it unless we have to.
11839
11840 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11841
11842 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11843 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
11844
11845 2008-02-18 Jason Rumney <jasonr@gnu.org>
11846
11847 * w32fns.c (Fw32_shell_execute): Encode parameters.
11848
11849 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11850
11851 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11852
11853 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
11854
11855 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11856
11857 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11858
11859 * xterm.c (x_set_offset): Don't change the gravity if
11860 CHANGE_GRAVITY is -1.
11861
11862 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
11863
11864 * fileio.c (auto_save_error_occurred): New var.
11865 (auto_save_error): Set it.
11866 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11867 error occurred.
11868
11869 2008-02-23 Eli Zaretskii <eliz@gnu.org>
11870
11871 * w32.c (globals_of_w32): Add initializations for
11872 g_b_init_get_sid_sub_authority and
11873 g_b_init_get_sid_sub_authority_count.
11874
11875 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11876
11877 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11878 (font_parse_xlfd): Use them for sanity check.
11879 (Finternal_set_font_style_table): Make sure the table is bijective.
11880
11881 Consolidate the image_cache to the terminal struct.
11882 * termhooks.h (P_): Remove redundant def.
11883 (struct terminal): New field `image_cache'.
11884 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11885 of FRAME_X_IMAGE_CACHE.
11886 * xterm.h (struct x_display_info): Remove image_cache field.
11887 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11888 * w32term.h (struct w32_display_info): Remove image_cache field.
11889 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11890 * macterm.h (struct mac_display_info): Remove image_cache field.
11891 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11892 * xterm.c (x_term_init):
11893 * w32term.c (w32_term_init):
11894 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11895 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11896 Remove declarations.
11897 (clear_image_caches, mark_image_cache): New declarations.
11898 * xfaces.c (clear_face_cache):
11899 * xdisp.c (redisplay_internal): Use clear_image_caches.
11900 * image.c (clear_image_cache): Don't check that a frame is on
11901 a window-system before checking if it shares the same cache.
11902 (clear_image_caches): New function.
11903 (Fclear_image_cache): Use it.
11904 (mark_image): Move from allo.c.
11905 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11906 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11907 (mark_object): Don't call mark_image_cache for frames.
11908 (mark_terminals): Call mark_image_cache.
11909
11910 * lisp.h (Fdelete_terminal): Declare.
11911
11912 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11913 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11914 wrong_type_argument.
11915
11916 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11917
11918 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11919 malayalam.el, and tamil.el. Add sinhala.el.
11920
11921 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11922
11923 * xterm.c (x_connection_closed): Consolidate identical tests.
11924 (x_delete_terminal): Don't crash if called via x_connection_closed.
11925
11926 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11927
11928 * xdisp.c (decode_mode_spec): New arg string.
11929 (display_mode_element): Adjust for the above change.
11930
11931 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11932
11933 * callint.c (Fcall_interactively): Use AREF.
11934
11935 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11936
11937 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11938
11939 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11940
11941 * xfns.c (Fx_show_tip): Set string to " " if empty.
11942
11943 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11944
11945 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11946 with Qt.
11947
11948 2008-02-17 Kenichi Handa <handa@m17n.org>
11949
11950 * ftfont.c (ftfont_shape): Return Lispy number.
11951
11952 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11953 for GCs.
11954 (Finternal_set_font_selection_order): Call font_update_sort_order
11955 only when enable_font_backend is set.
11956 (realize_x_face): Set face->font_info to that of default face only
11957 when enable_font_backend is set.
11958
11959 * xdisp.c (handle_composition_prop): Set it->c to the fist
11960 character of the composed region.
11961 (fill_composite_glyph_string): Set base_face->font_info to
11962 s->font_info. Get a face for ascii from base_face->ascii_face.
11963 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11964 with a face already decided.
11965 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11966 non-negative.
11967 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11968 call font_prepare_composition unconditionally.
11969
11970 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11971
11972 * xterm.h (struct x_display_info): New member font.
11973
11974 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11975 (x_set_mouse_face_gc, x_new_font): Likewise.
11976 (x_term_init): Setup display_info->font.
11977 (x_delete_terminal): Free display_info->font.
11978
11979 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11980
11981 * ftxfont.c (ftxfont_default_fid): Delete it.
11982 (ftxfont_open): Set xfont->fid to 0.
11983 (ftxfont_end_for_frame): Clear data specific to the frame and the
11984 font-driver.
11985
11986 * xftfont.c (xftfont_default_fid): Delete it.
11987 (xftfont_open): Set xfont->fid to 0.
11988
11989 * fontset.c (FONTSET_OBJLIST): New macro.
11990 (fontset_find_font): Update font-object list of the fontset.
11991 (free_realized_fontset): New function.
11992 (free_face_fontset): Call free_realized_fontset.
11993 (Ffont_info): Call font_close_object only when enable_font_backend
11994 is set.
11995
11996 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11997 [HAVE_NTGUI]: Include w32term.h.
11998 [MAC_OS]: Include macterm.ch.
11999 (font_otf_ValueRecord): Use make_number.
12000 (font_finish_cache): Fix handling of reference count.
12001 (font_clear_cache): Update num_fonts.
12002 (font_open_entity): Update smallest_char_width and
12003 smallest_font_height of the frame.
12004 (font_close_object): Update num_fonts.
12005 (Fclear_font_cache): Fix finding the target cache data.
12006
12007 2008-02-16 Glenn Morris <rgm@gnu.org>
12008
12009 * fontset.c (Finternal_char_font): Fix compilation warning.
12010
12011 2008-02-16 Eli Zaretskii <eliz@gnu.org>
12012
12013 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12014 instead of char arrays. Enlarge the size of array passed to
12015 get_token_information.
12016
12017 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12018 warnings.
12019
12020 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12021
12022 * .gdbinit: Don't set `args', it breaks gdb --args.
12023
12024 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12025
12026 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12027 within a narrowed buffer.
12028
12029 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12030
12031 * coding.c (decode_coding_object, encode_coding_object):
12032 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12033
12034 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12035
12036 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12037 hardcoding 1.
12038 (detect_coding_system):
12039 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12040 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12041 * insdel.c (insert_from_gap):
12042 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12043 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12044 (string_to_multibyte):
12045 * character.c (chars_in_text, multibyte_chars_in_text):
12046 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12047
12048 * character.h (FETCH_STRING_CHAR_ADVANCE)
12049 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12050 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12051 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12052
12053 * casefiddle.c (casify_region): Only call after-change and composition
12054 functions on the part of the region that was changed.
12055
12056 * keyboard.c (read_avail_input):
12057 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12058
12059 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12060
12061 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12062 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12063
12064 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
12065
12066 * w32menu.c (push_submenu_start, push_submenu_end)
12067 (push_left_right_boundary, push_menu_pane, push_menu_item):
12068 * keyboard.c (read_key_sequence): Don't pass args with side effects
12069 to AREF, it fails when compiling with -DENABLE_CHECKING.
12070
12071 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12072
12073 * Makefile.in (${lispsource}international/charprop.el):
12074 Delete this target.
12075
12076 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12077 emacs-unicode-2.
12078
12079 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12080
12081 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12082
12083 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12084
12085 * frame.c (Qnoelisp): New symbol.
12086 (syms_of_frame): Initialize it.
12087 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12088 harmless Elisp code, from a strong `force' from x_connection_closed.
12089 * frame.h (Qnoelisp): Declare.
12090 * xterm.c (x_connection_closed): Pass `noelisp'.
12091
12092 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12093 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12094 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12095 rather than `int' for the type of `type'.
12096
12097 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12098
12099 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12100
12101 * Makefile.in (GNUC): Remove support for gcc-1.x.
12102
12103 2008-02-10 Richard Stallman <rms@gnu.org>
12104
12105 * lisp.h (ASET): Use AREF, not ASLOT.
12106
12107 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12108
12109 * lisp.h (ASET): Check bounds.
12110
12111 2008-02-10 Glenn Morris <rgm@gnu.org>
12112
12113 * buffer.c (mode-name): Doc fix.
12114
12115 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12116
12117 * Makefile.in:
12118 * emacs.c:
12119 * gmalloc.c:
12120 * keyboard.c:
12121 * lisp.h:
12122 * m/ibm370aix.h:
12123 * process.c:
12124 * regex.c:
12125 * s/hpux.h:
12126 * sysdep.c:
12127 * sysselect.h:
12128 * systty.h:
12129 * unexec.c:
12130 * w32term.c:
12131 * xsmfns.c:
12132 * xterm.c: Remove code that deals with obsolete variables.
12133
12134 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12135
12136 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12137 nothing else needs it anymore.
12138
12139 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12140
12141 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12142 instead of unibyte_char_to_multibyte.
12143
12144 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12145
12146 * s/gnu-linux.h: Remove commented out code.
12147
12148 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12149
12150 * Makefile.in: Update what RMS says about using autoconf.
12151 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12152 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12153 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12154 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12155
12156 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12157
12158 * keymap.c (Fkey_description): Move side effect outside of macro call.
12159
12160 * xfaces.c (Finternal_make_lisp_face):
12161 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12162
12163 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12164 (syms_of_fontset): Use ASET.
12165
12166 * fns.c (concat): Move side effect outside of macro call.
12167 (hash_clear): Use ASET.
12168
12169 2008-02-08 Richard Stallman <rms@gnu.org>
12170
12171 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12172 If FORCE, and frame has a surrogate minibuffer for another frame,
12173 delete the other frame first.
12174
12175 2008-02-07 Timo Savola <timo.savola@iki.fi>
12176
12177 * xterm.c (x_detect_focus_change): Handle embed client message.
12178 (handle_one_xevent): Ditto.
12179 (handle_one_xevent): If embedded and we get a button press/release,
12180 request focus.
12181 (xembed_set_info, xembed_send_message): New functions.
12182 (x_make_frame_visible): Call xembed_set_info if embedded.
12183 (x_make_frame_invisible): Call xembed_set_info if embedded.
12184 (x_term_init): Initialize Xatom_XEMBED.
12185 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12186 (x_iconify_frame): Ditto.
12187
12188 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12189 (enum xembed_info, enum xembed_message, enum xembed_focus)
12190 (enum xembed_modifier, enum xembed_accelerator): New.
12191 (xembed_set_info, xembed_send_message): Declare.
12192 (FRAME_X_EMBEDDED_P): New.
12193
12194 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12195 gtk_plug_new.
12196
12197 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12198 window ID of a frame.
12199 (x_window): Reparent frame if embedded.
12200 (Fx_create_frame): Don't set border width if embedded.
12201
12202 * emacs.c (USAGE3): Add --parent-id.
12203 (standard_args): Ditto.
12204
12205 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12206
12207 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12208
12209 2008-02-07 Jim Meyering <meyering@redhat.com>
12210
12211 Use "do...while (0)", not "if (1)...else" in macro definitions.
12212 The latter provokes a warning from gcc about the empty else, when
12213 followed by ";". Also, without that trailing semicolon, it would
12214 silently swallow up any following statement.
12215 * syntax.h (SETUP_SYNTAX_TABLE)
12216 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12217 * buffer.h (DECODE_POSITION): Likewise.
12218 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12219 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12220 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12221 (FETCH_CHAR_ADVANCE): Likewise.
12222 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12223
12224 2008-02-07 Jim Meyering <meyering@redhat.com>
12225
12226 * lread.c [lint]: Don't include <sys/inode.h>.
12227
12228 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12229
12230 * xselect.c (x_handle_dnd_message):
12231 * xmenu.c (digest_single_submenu, xmenu_show):
12232 * xdisp.c (with_echo_area_buffer_unwind_data)
12233 (format_mode_line_unwind_data, unwind_format_mode_line)
12234 (display_menu_bar):
12235 * eval.c (Ffetch_bytecode):
12236 * doc.c (store_function_docstring):
12237 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12238 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12239 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12240
12241 2008-02-07 Kenichi Handa <handa@m17n.org>
12242
12243 * ftxfont.c (ftxfont_open): Don't set
12244 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12245
12246 * ftfont.c (ftfont_open): Fix previous change.
12247
12248 2008-02-06 Jason Rumney <jasonr@gnu.org>
12249
12250 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12251 Use cached metrics for ASCII characters.
12252 (w32font_open_internal): Don't set font's owning_frame.
12253 Cache metrics for ASCII characters.
12254
12255 * w32font.h (struct w32font_info): Add ascii_metrics.
12256 Remove owning_frame.
12257
12258 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12259
12260 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12261 to negative value.
12262
12263 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12264
12265 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12266
12267 * charset.c (syms_of_charset): Set QCtest and Qeq.
12268
12269 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12270
12271 * process.c (Fstart_process):
12272 * callproc.c (Fcall_process): Handle the case where
12273 Funhandled_file_name_directory returns nil.
12274
12275 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12276 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12277 * font.c (check_gstring): Use them and AREF to access the vector before
12278 we know it's really a gstring.
12279 (Ffont_shape_text): Fix typo.
12280 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
12281
12282 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12283 Declare.
12284
12285 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12286
12287 2008-02-05 Jason Rumney <jasonr@gnu.org>
12288
12289 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12290 Set smallest_font_height and smallest_char_width in display info.
12291
12292 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12293
12294 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12295
12296 2008-02-05 Miles Bader <miles@gnu.org>
12297
12298 * xfaces.c (get_lface_attributes, merge_named_face)
12299 (lookup_named_face, lookup_derived_face, realize_named_face):
12300 Revert 2008-02-01 change by cyd@stupidchicken.com.
12301
12302 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12303
12304 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12305 fallback fonts.
12306 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12307
12308 2008-02-04 Jason Rumney <jasonr@gnu.org>
12309
12310 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12311 set full_name.
12312 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12313
12314 2008-02-03 Jason Rumney <jasonr@gnu.org>
12315
12316 * makefile.w32-in (OBJ1): Include font.o here.
12317 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12318
12319 2008-02-02 Jason Rumney <jasonr@gnu.org>
12320
12321 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12322
12323 2008-02-01 Jason Rumney <jasonr@gnu.org>
12324
12325 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12326
12327 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12328
12329 2008-02-01 Andreas Schwab <schwab@suse.de>
12330
12331 * Makefile.in (shortlisp, lisp): Update for rename of
12332 ../lisp/language/myanmar.el.
12333
12334 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
12335
12336 * xfaces.c (get_lface_attributes): Delete function.
12337 (merge_named_face, lookup_named_face, lookup_derived_face)
12338 (realize_named_face): Call lface_from_face_name directly, and use
12339 the fact that merge_face_vectors does not alter its FROM argument.
12340
12341 2008-02-01 Jason Rumney <jasonr@gnu.org>
12342
12343 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12344 input in the default locale. Handle non-Unicode multibyte input.
12345
12346 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12347
12348 * fontset.c (reorder_font_vector): Exclude nil elements from the
12349 font group. Don't try multiple fonts.
12350 (fontset_font): Adjust for the above change.
12351 (Finternal_char_font): Return nil if the found font doesn't
12352 contain the character ch.
12353
12354 * Makefile.in (lisp, shortlisp): Add cham.el.
12355
12356 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12357
12358 * font.h (FONTP): Make it return 1 also for a font-object.
12359
12360 * .gdbinit (xfontset): New function.
12361
12362 * font.c (font_find_for_lface): Check if the character C is
12363 supported or not only for the first font.
12364
12365 * fontset.c (reorder_font_vector): Fix typo.
12366 (fontset_find_font): Don't add a font-spec specifying a script.
12367 Use 0 (not Qt) for the indication of empty font-group. Change the
12368 format of RFONT-DEF. Return Qt if no font in the font-group
12369 support the character.
12370 (fontset_font): Adjust for the above change. If no font was
12371 found the character, remember that.
12372 (face_for_char): Adjust for the change of RFONT-DEF.
12373 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12374 no font for the target.
12375 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12376
12377 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12378
12379 * font.c (font_load_for_face): Handle the case that the font in
12380 face->lface is a string.
12381
12382 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12383
12384 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12385
12386 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12387
12388 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12389 Fix previous change. If the frame is not on a window system,
12390 signal an error.
12391
12392 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12393
12394 * coding.c (decode_coding_object, encode_coding_object): Adjust
12395 marker positions after conversion.
12396
12397 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12398
12399 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12400
12401 * font.c (font_find_for_lface): Fix the handling of the return
12402 value of font_has_char.
12403 (Ffont_shape_text): Fix previous change.
12404
12405 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12406 (fontset_ref_and_range): Delete it.
12407 (fontset_find_font): Call char_table_ref_and_range instead of
12408 FONTSET_REF_AND_RANGE.
12409 (make_fontset): Don't setup font groups of Latin here.
12410 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12411 (new_fontset_from_font): Make the specified font the default for
12412 all Latin characters.
12413
12414 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12415
12416 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12417 is on a window system before accessing the fontset of the frame.
12418
12419 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12420
12421 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12422
12423 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12424 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12425
12426 * font.c (Ffont_shape_text): If the font driver doesn't have a
12427 shaper function, make zero-width glyphs to have at least one-pixel
12428 width. Fix setting of `to' field of glyphs.
12429
12430 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12431
12432 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12433 glyphs.
12434
12435 * font.h (struct font_driver): Improve docstring of member `shape'.
12436
12437 2008-02-01 Kenichi Handa <handa@m17n.org>
12438
12439 * composite.c (syms_of_composite): Fix docstring of
12440 auto-composition-function.
12441
12442 * font.h (LGLYPH_SIZE): New macro.
12443
12444 * font.c (Ffont_fill_gstring): Stop filling when a character not
12445 supported by the font is found.
12446 (Ffont_shape_text): When a shape callback function returns nil,
12447 try at most two more times with larger gstring.
12448 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12449
12450 * xdisp.c (handle_auto_composed_prop): Change the argument to
12451 auto-composition-function.
12452
12453 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12454 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12455 Lispy glyph and store it in the lgstring.
12456
12457 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12458
12459 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12460
12461 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12462
12463 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12464
12465 * fontset.c (Vfont_encoding_charset_alist): New variable.
12466 (syms_of_fontset): DEFVAR it.
12467 (reorder_font_vector, fontset_find_font): Optimize for the case of
12468 no need of reordering.
12469 (face_for_char): Map the charset property by
12470 Vfont_encoding_charset_alist.
12471
12472 2008-02-01 Jason Rumney <jasonr@gnu.org>
12473
12474 * w32font.c (logfonts_match): Don't check adstyle here.
12475 (font_matches_spec): Check here against physical font instead.
12476 (add_font_entity_to_list): Avoid some substitutions.
12477
12478 * font.c (font_parse_fcname): Default weight and slant to normal.
12479 (font_score): Prefer normal fonts if weight or slant unspecified.
12480 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12481 match freetype scores.
12482
12483 2008-02-01 Jason Rumney <jasonr@gnu.org>
12484
12485 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12486 font, as it may have been deleted.
12487 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12488 most common hyphenless variation.
12489 (logfonts_match): Check generic family.
12490 (font_matches_spec): Don't check generic family here.
12491 (fill_in_logfont): Set generic family based on adstyle.
12492
12493 * w32font.h (w32font_get_cache): Update declaration.
12494
12495 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12496
12497 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12498
12499 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12500 If none of the new drivers are available, call font_update_drivers
12501 with the old drivers.
12502
12503 * w32font.c (w32font_get_cache): Adjust the argument type.
12504
12505 * xfont.c (xfont_get_cache): Adjust the argument type.
12506
12507 * font.h (struct font_driver): Change argument type of get_cache.
12508
12509 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12510
12511 * font.c (Ffont_get): Fix arguments to Fassoc.
12512 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12513 (font_clear_cache): New function.
12514 (font_list_entities, font_matching_entity): Use font_get_cache.
12515 (font_update_drivers): Call font_clear_cache when finishing a driver.
12516
12517 * fontset.c (fontset_find_font): Fix previous change.
12518
12519 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12520
12521 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12522 dpyinfo->font_table.
12523 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12524 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12525
12526 * font.c (font_at): Handle the case that the arg C is negative.
12527 Handle the unibyte case.
12528 (Ffont_at): Call font_at with the arg C -1.
12529
12530 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12531 the position here, and call font_at with the arg C -1.
12532 Don't check the range of the existing composition at the point.
12533
12534 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12535
12536 * fontset.c (fontset_add): New args charset_id and family.
12537 Change caller.
12538 (load_font_get_repertory, fontset_find_font): Assume that
12539 font_spec is always a font-spec object.
12540 (Fset_fontset_font): Always store a font-spec object in a fontset.
12541
12542 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12543 instead of get_property_and_range.
12544
12545 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12546
12547 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12548 (xftfont_open): Don't keep locking face.
12549 (xftfont_close): Don't unlock face.
12550 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12551
12552 * fontset.c (fontset_find_font): Don't prefer a font of
12553 supplementary charset.
12554
12555 2008-02-01 Kenichi Handa <handa@m17n.org>
12556
12557 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12558 script, langsys_tag to langsys, new member script.
12559 (OTF_TAG_STR): Terminate by '\0'.
12560 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
12561 listing to the script specified in that property. Fix arg to
12562 OTF_check_features.
12563
12564 2008-02-01 Jason Rumney <jasonr@gnu.org>
12565
12566 * w32font.h: New file.
12567
12568 * w32font.c: Include it.
12569 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12570 (w32font_open): Set owning_frame.
12571 (w32font_text_extents): Use owning_frame.
12572 (struct font_callback_data): Add opentype_only field.
12573 (add_font_entity_to_list): Use it to filter fonts.
12574 Don't check against full name.
12575 (w32font_list_internal): New function.
12576 (w32font_list): Use it.
12577 (w32font_match_internal): New function.
12578 (w32font_match): Use it.
12579 (w32font_open_internal): New function.
12580 (w32font_open): Use it.
12581 (w32font_get_cache, w32font_close, w32font_has_char)
12582 (w32font_encode_char, w32font_text_extents, w32font_draw):
12583 Make non-static.
12584
12585 * makefile.w32-in (w32font.o): Depend on w32font.h.
12586
12587 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12588
12589 * charset.c (Fdefine_charset_internal): Record a supplementary
12590 charset at the tail of Vcharset_order_list.
12591
12592 * font.c (Ffont_shape_text): Fix the return value.
12593
12594 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12595
12596 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12597
12598 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12599
12600 * ftfont.c (struct OpenTypeSpec): New struct.
12601 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12602 (ftfont_get_open_type_spec): New function.
12603 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12604
12605 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12606
12607 2008-02-01 Jason Rumney <jasonr@gnu.org>
12608
12609 * w32font.c (add_font_entity_to_list): Compare only the beginning
12610 of full name.
12611
12612 2008-02-01 Kenichi Handa <handa@m17n.org>
12613
12614 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12615 Never return HANDLED_RECOMPUTE_PROPS.
12616
12617 2008-02-01 Kenichi Handa <handa@m17n.org>
12618
12619 * font.c (font_gstring_produce): Delete it.
12620
12621 * composite.h (COMPOSITION_METHOD):
12622 Handle COMPOSITION_WITH_GLYPH_STRING.
12623
12624 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12625
12626 * xfont.c (Qx): Delete.
12627 (syms_of_xfont): Don't initialize Qx.
12628
12629 * composite.h (enum composition_method):
12630 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12631
12632 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12633
12634 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12635 (choose_face_font): Accept new form of font-spec.
12636
12637 * frame.h (font_driver_list): Declare it unconditionally.
12638 (struct frame): Define members font_driver_list and font_data_list
12639 unconditionally.
12640
12641 * fontset.c: Include "font.h" unconditionally.
12642 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12643 (Fset_fontset_font): Accept a font-spec object.
12644
12645 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12646 PIXEL_SIZE part a wild card.
12647
12648 * dispextern.h (struct glyph_string): Define members clip and
12649 num_clips unconditionally.
12650 (struct face): Define members font_info and extra unconditionally.
12651
12652 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12653 ftfont_info only when HAVE_LIBOTF is defined.
12654
12655 2008-02-01 Andreas Schwab <schwab@suse.de>
12656
12657 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12658 and end.
12659
12660 2008-02-01 Jason Rumney <jasonr@gnu.org>
12661
12662 * w32font.c (w32font_driver): Add new fields.
12663
12664 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12665
12666 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12667 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12668 (LIBES): Add @M17N_FLT_CFLAGS@.
12669
12670 * composite.c (compose_text): Don't treat the new style
12671 composition specially.
12672
12673 * emacs.c (main): Call syms_of_font unconditionally.
12674
12675 * font.h (FONT_ENTITY_NOT_LOADABLE)
12676 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12677 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12678 (struct font_driver): New member shape.
12679 (font_registry_charsets): Extern it.
12680 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12681 (font_otf_capability, font_drive_otf): Delete their externs.
12682
12683 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12684 (font_charset_alist, font_registry_charsets): Move from xfont.c
12685 and rename.
12686 (font_prop_validate_otf): New function.
12687 (font_property_table): Register it for QCotf.
12688 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12689 (font_drive_otf): Delete.
12690 (font_prepare_composition): New arg F. Adjust for the change of
12691 lispy gstring.
12692 (font_find_for_lface): New arg C.
12693 (font_load_for_face): Adjust for the change of font_find_for_lface.
12694 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12695 lispy gstring.
12696 (Ffont_shape_text): New function.
12697 (Fopen_font): If the font size is not given, use 12-pixel.
12698 (Ffont_at): New arg STRING.
12699 (syms_of_font): Initalize font_charset_alist.
12700 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12701 conditionally.
12702
12703 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12704 fonts of the same font-spec. Change the format of RFONT-DEF.
12705 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12706 Adjust for the change of RFONT-DEF.
12707 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12708
12709 * ftfont.h: New file.
12710
12711 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12712 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12713 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12714 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12715 font_otf_capability and font_drive_otf, set ftfont_shape.
12716 (ftfont_list): Adjust for the change of :otf property value.
12717 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12718 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12719 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12720 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12721 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12722 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12723
12724 * w32term.c (x_draw_composite_glyph_string_foreground):
12725 Adjust for the change of lispy gstring.
12726
12727 * xdisp.c (handle_composition_prop): Adjust for the change of
12728 lispy gstring. Call a function for auto-composition with the
12729 third arg it->window.
12730 (fill_composite_glyph_string): Adjust for the change of lispy string.
12731 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12732
12733 * xfaces.c (set_font_frame_param): Adjust for the change of
12734 font_find_for_lface.
12735
12736 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12737 (xfont_registry_charsets): Likewise. Change caller.
12738 (syms_of_xfont): Don't handle x_font_charset_alist.
12739
12740 * xftfont.c: Include "ftfont.h".
12741 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12742 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12743 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12744 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12745 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12746 Set xftfont_driver.shape to xftfont_shape.
12747
12748 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12749 the change of lispy gstring.
12750
12751 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12752
12753 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12754
12755 2008-02-01 Jason Rumney <jasonr@gnu.org>
12756
12757 * w32font.c (w32font_draw): Fill background manually.
12758
12759 2008-02-01 Jason Rumney <jasonr@gnu.org>
12760
12761 * font.c (Qfontp): Remove unused symbol.
12762 (QCantialias): New symbol.
12763 (syms_of_font): Define it.
12764 (font_property_table): Set a validator for QCantialias.
12765
12766 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12767 Define if not already.
12768 (QCfamily): Share with xfaces.c.
12769 (Qstandard, Qsubpixel, Qnatural): New symbols.
12770 (syms_of_w32font): Define them. Don't define QCfamily here.
12771 (w32_antialias_type, lispy_antialias_type): New functions.
12772 (w32_enumfont_pattern_entity): New arg requested_font.
12773 Set antialias parameter if non-default was requested.
12774 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12775
12776 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12777
12778 * lread.c (read1): Undo the previous change.
12779
12780 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12781
12782 * frame.c (Fdelete_frame): Call font_update_drivers only when
12783 USE_FONT_BACKEND is defined.
12784
12785 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12786
12787 * font.h (struct font_bitmap): New member bits_per_pixel.
12788 (struct font_driver): New members start_for_frame and end_for_frame.
12789 (struct font_data_list): New struct.
12790 (font_put_frame_data, font_get_frame_data): Extern them.
12791
12792 * frame.h (struct frame): New member font_data_list.
12793
12794 * font.c (font_update_drivers): Call driver->start_for_frame and
12795 driver->end_for_frame at proper timings.
12796 (font_put_frame_data, font_get_frame_data): New functions.
12797 (Ffont_spec): Add usage in the docstring.
12798
12799 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12800 (Fdelete_frame): Call font_update_drivers.
12801
12802 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12803 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12804 (xftfont_get_xft_draw): New function.
12805 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12806 (xftfont_end_for_frame): New function.
12807 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12808
12809 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12810 Change argument. Cache GCs in the per-frame data.
12811 (struct ftxfont_frame_data): New struct.
12812 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12813 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12814 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12815 (ftxfont_end_for_frame): New function.
12816 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12817
12818 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12819
12820 2008-02-01 Kenichi Handa <handa@m17n.org>
12821
12822 * xselect.c (Vselection_coding_system)
12823 (Vnext_selection_coding_system): Delete them.
12824 (syms_of_xselect): Don't declare selection-coding-system and
12825 next-selection-coding-system. They are declared in select.el.
12826
12827 2008-02-01 Jason Rumney <jasonr@gnu.org>
12828
12829 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12830
12831 * w32fns.c: Include imm.h.
12832 (get_composition_string_fn, get_ime_context_fn): New optional
12833 system functions.
12834 (globals_of_w32fns): Load them from imm32.dll.
12835 (ignore_ime_char): New flag.
12836 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12837 WM_IME_ENDCOMPOSITION messages.
12838
12839 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12840 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12841
12842 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12843
12844 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12845 (READCHAR_REPORT_MULTIBYTE): New macro.
12846 (readchar): New 2nd arg MULTIBYTE.
12847 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12848 Make symbol's name multibyte according to the multibyteness of the
12849 source.
12850
12851 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12852
12853 * xfaces.c (face_for_overlay_string): Call lookup_face with
12854 correct arguments (fix of synching with the trunk).
12855
12856 2008-02-01 Kenichi Handa <handa@m17n.org>
12857
12858 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12859 (font_prop_validate_non_neg, font_prop_validate_spacing):
12860 Delete argument prop_index.
12861 (font_property_table): Change arguments to validater. Change Callers.
12862 (font_lispy_object): Delete.
12863 (font_at): Use font_find_object instead fo font_lispy_object.
12864
12865 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12866
12867 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12868 and file names.
12869
12870 2008-02-01 Jason Rumney <jasonr@gnu.org>
12871
12872 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12873 (font_matches_spec): Remove debug output.
12874 (add_font_entity_to_list): Avoid using substituted fonts.
12875
12876 2008-02-01 Jason Rumney <jasonr@gnu.org>
12877
12878 * doc.c (Fsnarf_documentation):
12879 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12880
12881 2008-02-01 Miles Bader <miles@gnu.org>
12882
12883 * dispextern.h (struct glyph_row): Only define "clip" field if
12884 HAVE_WINDOW_SYSTEM is defined.
12885
12886 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12887
12888 Fix up multi-tty merge.
12889
12890 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12891 and indentation.
12892
12893 * xfaces.c (free_realized_face, clear_face_gcs):
12894 Include font_done_for_face in the input_blocked section, just in case.
12895
12896 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12897 (get_char_face_and_encoding): Undo last change and remove the *other*
12898 duplicate definition (i.e. keep the one that's better scoped and that
12899 includes code for the font-backend).
12900
12901 * terminal.c (create_terminal): Default keyboard_coding to
12902 `no-conversion' and terminal_coding to `undecided'.
12903
12904 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12905
12906 * fontset.c (free_realized_fontsets): Check that the table entry does
12907 contain a fontset before trying to compare it to `base'.
12908
12909 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12910 syms_of_charset, and syms_of_coding earlier because init_window_once
12911 now needs Vcoding_system_hash_table to be setup.
12912
12913 * coding.h (default_buffer_file_coding): Remove.
12914
12915 * coding.c (default_buffer_file_coding): Remove.
12916 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12917 than ->symbol, and use the terminal-local coding system.
12918 (syms_of_coding): Don't setup the coding-systems that are not
12919 terminal-local.
12920 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12921
12922 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12923 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12924
12925 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12926 in chartab.c and were re-added here by mistake.
12927 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12928
12929 * doc.c (Fsnarf_documentation):
12930 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12931 src to etc.
12932
12933 * ChangeLog.10: Add mistakenly removed entry.
12934
12935 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12936
12937 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12938
12939 2008-02-01 Miles Bader <miles@gnu.org>
12940
12941 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12942 Add extra args to FACE_FOR_CHAR.
12943
12944 2008-02-01 Kenichi Handa <handa@m17n.org>
12945
12946 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12947 in sequence.
12948
12949 * chartab.c (map_sub_char_table, map_char_table): If the range
12950 contains just one character, call the function with that character
12951 even if the depth is not 3.
12952
12953 2008-02-01 Jason Rumney <jasonr@gnu.org>
12954
12955 * w32font.c (w32font_text_extents): Calculate metrics for the
12956 whole string.
12957
12958 2008-02-01 Jason Rumney <jasonr@gnu.org>
12959
12960 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12961
12962 2008-02-01 Jason Rumney <jasonr@gnu.org>
12963
12964 * w32term.c (x_set_glyph_string_clipping): Use
12965 get_glyph_string_clip_rects.
12966 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12967 Adjust for the change of struct glyph_string.
12968
12969 * w32font.c (w32font_draw): Do clipping here.
12970
12971 2008-02-01 Kenichi Handa <handa@m17n.org>
12972
12973 * xftfont.c (xftfont_draw): Adjust for the change of struct
12974 glyph_string.
12975
12976 * xterm.c (x_set_glyph_string_clipping): Use
12977 get_glyph_string_clip_rects.
12978 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12979 Adjust for the change of struct glyph_string.
12980
12981 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12982 the resulting clip(s}.
12983 (expose_overlaps): Add arg r. Change callers. Set it to
12984 row->clip temporarily.
12985 (expose_window): Redraw rows overlapping the exposed area.
12986
12987 * dispextern.h (struct glyph_row): New member clip.
12988 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12989 clip_height, new member clip, and num_clips.
12990
12991 2008-02-01 Kenichi Handa <handa@m17n.org>
12992
12993 * data.c (Fchar_or_string_p): Fix docstring.
12994
12995 2008-02-01 Kenichi Handa <handa@m17n.org>
12996
12997 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12998 create a temporary XftDraw object.
12999
13000 2008-02-01 Kenichi Handa <handa@m17n.org>
13001
13002 * font.c (Ffontp): Fix docstring.
13003
13004 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13005 strong evidence of ISO-2022.
13006
13007 2008-02-01 Kenichi Handa <handa@m17n.org>
13008
13009 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13010 SYNTAX_ENTRY_FOLLOW_PARENT.
13011
13012 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13013
13014 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13015 its type.
13016 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13017 Update to the new type of weak_hash_tables and next_weak.
13018
13019 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13020 a plain C pointer to Lisp_Hash_Table.
13021
13022 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13023 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13024 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13025 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13026 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13027 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13028 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13029 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13030 (GC_EQ): Remove since they've been identical to their non-GC_
13031 alter-egos ever since the markbit was eradicated.
13032
13033 * alloc.c:
13034 * buffer.c:
13035 * buffer.h:
13036 * data.c:
13037 * fileio.c:
13038 * filelock.c:
13039 * fns.c:
13040 * frame.h:
13041 * lisp.h:
13042 * macterm.c:
13043 * print.c:
13044 * process.c:
13045 * w32fns.c:
13046 * w32menu.c:
13047 * w32term.c:
13048 * xfns.c:
13049 * xmenu.c:
13050 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13051
13052 2008-02-01 Kenichi Handa <handa@m17n.org>
13053
13054 * chartab.c (map_sub_char_table): Make it work for the top-level
13055 char-table. Fix handling of parent char-table.
13056 (map_char_table): Adjust for the above change.
13057
13058 2008-02-01 Jason Rumney <jasonr@gnu.org>
13059
13060 * w32font.c (Qgdi): Rename from Qw32.
13061
13062 2008-02-01 Jason Rumney <jasonr@gnu.org>
13063
13064 * w32bdf.c (get_quoted_string): Make function static.
13065
13066 2008-02-01 Kenichi Handa <handa@m17n.org>
13067
13068 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13069 bigger ascent and descent than those of the font, use them as
13070 font's ascent and descent.
13071
13072 2008-02-01 Kenichi Handa <handa@m17n.org>
13073
13074 * Makefile.in (${lispsource}international/charprop.el): Move this
13075 target within "#ifdef HAVE_UNIDATA" and "#endif".
13076
13077 2008-02-01 Kenichi Handa <handa@m17n.org>
13078
13079 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13080 (shortlisp): Add ../lisp/language/tai-viet.el.
13081
13082 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
13083
13084 * Makefile.in (${lispsource}international/charprop.el): Depend on
13085 temacs${EXEEXT}.
13086
13087 2008-02-01 Jason Rumney <jasonr@gnu.org>
13088
13089 * w32font.c (w32font_close): Delete the GDI font object.
13090
13091 * w32menu.c: Include character.h.
13092
13093 * w32proc.c: Likewise.
13094
13095 * w32select.c: Likewise.
13096
13097 * makefile.w32-in (w32proc.o): Depend on character.h.
13098
13099 2008-02-01 Jason Rumney <jasonr@gnu.org>
13100
13101 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13102
13103 * w32menu.c (syms_of_w32menu): Likewise.
13104
13105 * w32proc.c (syms_of_ntproc): Likewise.
13106
13107 * w32select.c (syms_of_w32select): Likewise.
13108
13109 * w32term.c (syms_of_w32term): Likewise.
13110
13111 2008-02-01 Jason Rumney <jasonr@gnu.org>
13112
13113 * w32font.c (w32font_draw): Delete brush after using it.
13114
13115 2008-02-01 Jason Rumney <jasonr@gnu.org>
13116
13117 * w32font.c (w32font_open): Don't set font_idx.
13118 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13119 to font settings.
13120 (w32font_draw): Fill background explicitly.
13121
13122 2008-02-01 Jason Rumney <jasonr@gnu.org>
13123
13124 * w32term.c (w32_initialize): Don't call w32font_initialize.
13125
13126 * w32font.c (w32font_info): Remove subranges.
13127 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13128 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13129 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13130 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13131 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13132 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13133 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13134 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13135 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13136 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13137 New symbols.
13138 (font_callback_data): New struct.
13139 (w32font_list, w32font_match): Use it.
13140 (w32font_open): Don't populate subranges.
13141 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13142 (w32font_encode_char): Always return unicode code-point as-is.
13143 (w32font_text_extents): Supply a transformation matrix to
13144 GetGlyphOutline. Never look up by glyph index. Avoid looping
13145 twice. Use unicode version of GetTexExtentPoint32 instead of
13146 glyph index version.
13147 (set_fonts_frame): Remove.
13148 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13149 set frame parameter. Use backward compatible fake foundries.
13150 Save generic family in extra slot under QCfamily. Make width slot
13151 constant. Save QCspacing value. Save list of scripts instead of
13152 binary subranges.
13153 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13154 (add_font_entity_to_list): Use font_callback_data struct. Filter
13155 unwanted fonts.
13156 (add_one_font_entity_to_list): Use font_callback_data struct.
13157 (w32_registry): Default to iso10646_1.
13158 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13159 string font registries. Don't fill in font name if it is a generic
13160 family name, fill family instead. Use spacing, family and script
13161 extra info to fill pitch, family and charset fields.
13162 (list_all_matching_fonts): Use font_callback_data struct.
13163 (unicode_range_for_char): Remove.
13164 (font_supported_scripts): New function.
13165 (w32font_initialize): Remove.
13166 (syms_of_w32font): Update which symbols are defined.
13167
13168 2008-02-01 Jason Rumney <jasonr@gnu.org>
13169
13170 * font.c (font_pixel_size): Reverse assq_no_quit args.
13171
13172 * w32term.h (FONT_WIDTH): Report max width, not average.
13173 (FONT_MAX_WIDTH): Remove.
13174 (FONT_AVG_WIDTH): New macro.
13175
13176 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13177 redefinition of FONT_WIDTH.
13178
13179 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13180 (w32_cache_char_metrics): Use FONT_WIDTH.
13181
13182 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13183
13184 2008-02-01 Jason Rumney <jasonr@gnu.org>
13185
13186 * w32font.c (w32font_open): Make lfHeight negative.
13187
13188 * w32fns.c (x_default_font_parameter): Use new style font name.
13189 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13190
13191 2008-02-01 Jason Rumney <jasonr@gnu.org>
13192
13193 * w32font.c (QCsubranges): New symbol.
13194 (w32font_open, w32font_has_char): Get subranges from subproperty
13195 of extra.
13196 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13197 (syms_of_w32font): Define :subranges symbol.
13198
13199 * font.c (font_put_extra): Expose externally.
13200
13201 * font.h (font_put_extra): Move declaration from font.c.
13202
13203 * font.c (Ffont_get): Use font driver to determine otf capability.
13204 (adjust_anchor): Check if driver defines anchor_point before using.
13205
13206 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13207 (w32font_draw): Use options.
13208 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13209 Fix detection of truetype fonts.
13210 (registry_to_w32_charset): Handle charsets other than iso8859-1
13211 expressed as lisp symbols.
13212 (w32_registry): Express charset as lisp symbol.
13213 (fill_in_logfont): Reverse pixel and point height logic.
13214 Don't set width here. Set quality to default.
13215
13216 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13217 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13218
13219 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13220 Remove redundant loop and allocation.
13221
13222 * makefile.w32-in (font.o, w32font.o): New objects.
13223 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13224 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13225
13226 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13227 STORE_XCHARB a valid l-value.
13228
13229 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13230 calculations for non-Truetype fonts.
13231 (x_draw_glyph_string): Sync with xterm.c.
13232 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13233 Remove redundant code.
13234 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13235
13236 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13237 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13238
13239 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13240 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13241
13242 * w32font.c: New file for w32 font backend.
13243
13244 2008-02-01 Kenichi Handa <handa@m17n.org>
13245
13246 * term.c: Don't include "buffer.h" twice.
13247
13248 2008-02-01 Kenichi Handa <handa@m17n.org>
13249
13250 * character.c (Funibyte_string): New function.
13251 (syms_of_character): Defsubr it.
13252
13253 2008-02-01 Jason Rumney <jasonr@gnu.org>
13254
13255 * w32term.c [USE_FONT_BACKEND]:
13256 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13257 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13258 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13259 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13260 (x_free_frame_resources): Sync with xterm.c.
13261
13262 2008-02-01 Andreas Schwab <schwab@suse.de>
13263
13264 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13265 char-table size.
13266
13267 2008-02-01 Kenichi Handa <handa@m17n.org>
13268
13269 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13270
13271 2008-02-01 Kenichi Handa <handa@m17n.org>
13272
13273 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13274 font_otf_gpos, add font_drive_otf.
13275
13276 * fontset.c (fontset_find_font): Pay attention to font size
13277 specified for a font.
13278 (reorder_font_vector): Check contents of font_def.
13279
13280 * font.c (struct otf_list): Delete it.
13281 (otf_list): Make it a lisp variable.
13282 (otf_open): Use lispy otf_list.
13283 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13284 (check_otf_features): New function.
13285 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13286 New functions.
13287 (font_drive_otf): New function merging font_otf_gsub and
13288 font_otf_gpos.
13289 (font_open_for_lface): New arg spec. Change argument order.
13290 (font_load_for_face): Adjust for the change of font_open_for_lface.
13291 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13292 Ffont_otf_gpos.
13293 (syms_of_font): Staticpro otf_list. Delete defsubr of
13294 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13295
13296 * xfaces.c (set_font_frame_param): Adjust for the change of
13297 font_open_for_lface.
13298
13299 * font.h (font_open_for_lface): Adjust prototype.
13300 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13301 member otf_drive.
13302 (font_otf_gsub, font_otf_gpos): Delete externs.
13303 (font_drive_otf): Extern it.
13304
13305 2008-02-01 Kenichi Handa <handa@m17n.org>
13306
13307 * font.c (font_at): If the window W is not on a window system,
13308 return Qnil.
13309
13310 * coding.c (produce_chars, encode_coding): Don't call
13311 insert_from_gap if no characters to produce.
13312
13313 2008-02-01 Kenichi Handa <handa@m17n.org>
13314
13315 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13316 Fclear_face_cache.
13317
13318 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13319
13320 2008-02-01 Miles Bader <miles@gnu.org>
13321
13322 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13323 Parse "--disable-font-backend" option.
13324 (standard_args): Add "--disable-font-backend" option.
13325
13326 2008-02-01 Kenichi Handa <handa@m17n.org>
13327
13328 * fontset.c (fontset_find_font): New function.
13329 (fontset_font): Use fontset_find_font.
13330 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13331 Register the specified font for all Latin characters.
13332 (new_fontset_from_font): Register the specified font for all Latin
13333 characters.
13334 (dump_fontset): For a realized fontset, include the base fontset
13335 name in the returned vector.
13336
13337 2008-02-01 Kenichi Handa <handa@m17n.org>
13338
13339 * character.h (CHAR_STRING): Cast C to unsigned on calling
13340 char_string.
13341
13342 * character.c (char_string): Type of arg C changed to unsigned.
13343 Signal an error if C is an invalid character code.
13344
13345 * editfns.c (general_insert_function, Fchar_to_string):
13346 Use CHARACTERP, not INTEGERP.
13347
13348 2008-02-01 Kenichi Handa <handa@m17n.org>
13349
13350 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13351 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13352
13353 * regex.c (analyse_first): Fix for multibyte characters in "case
13354 charset:" and "case categoryspec:".
13355
13356 2008-02-01 Andreas Schwab <schwab@suse.de>
13357
13358 * Makefile.in (LIBES): Move standard libraries to the end.
13359
13360 2008-02-01 Kenichi Handa <handa@m17n.org>
13361
13362 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13363 nonzero, don't shrink the buffer nextb.
13364
13365 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13366
13367 * coding.c (coding_alloc_by_making_gap): New arg offset.
13368 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13369 offset.
13370 (decode_coding_iso_2022): Update coding->safe_charsets.
13371 (decode_coding_gap): Temporarily set
13372 current_buffer->text->inhibit_shrinking to 1.
13373
13374 2008-02-01 Kenichi Handa <handa@m17n.org>
13375
13376 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13377 indexing into elements of s->cmp and s->char2b.
13378
13379 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
13380
13381 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13382
13383 2008-02-01 Kenichi Handa <handa@m17n.org>
13384
13385 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13386 target_multibyte instead of multibyte.
13387 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13388 (bcmp_translate): Change the argument name from multibyte to
13389 target_multibyte.
13390
13391 2008-02-01 Kenichi Handa <handa@m17n.org>
13392
13393 These changes are to compile a regexp into a pattern that can be
13394 used both for multibyte and unibyte targets.
13395
13396 * Makefile.in (search.o): Depend on charset.h.
13397
13398 * character.c (multibyte_char_to_unibyte_safe): New function.
13399
13400 * search.c: Include "charset.h".
13401 (compile_pattern_1): Delete argument multibyte. Don't set
13402 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13403 (compile_pattern): Don't compare cp->buf.target_multibyte.
13404 Compare cp->buf.charset_unibyte.
13405 (compile_pattern): Set cp->buf.target_multibyte.
13406
13407 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13408
13409 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13410
13411 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13412 multibyte. Change callers.
13413 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13414 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13415 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13416 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13417 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13418 (regex_compile): Make the compiled pattern usable both for
13419 multibyte and unibyte targets.
13420 (analyse_first): Make the fastmap usable both for multibyte and
13421 unibyte targets.
13422 (TRANSLATE_VIA_MULTIBYTE): Delete.
13423 (re_match_2_internal): Pay attention to the case that the
13424 multibyteness of bufp and target may be different.
13425
13426 2008-02-01 Kenichi Handa <handa@m17n.org>
13427
13428 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13429 empty box occupy at least one column width.
13430
13431 2008-02-01 Miles Bader <miles@gnu.org>
13432
13433 * Makefile.in: Remove redundant HAVE_XFT clause.
13434
13435 2008-02-01 Kenichi Handa <handa@m17n.org>
13436
13437 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13438
13439 2008-02-01 Kenichi Handa <handa@m17n.org>
13440
13441 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13442 being nil.
13443
13444 2008-02-01 Kenichi Handa <handa@m17n.org>
13445
13446 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13447
13448 2008-02-01 Kenichi Handa <handa@m17n.org>
13449
13450 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13451
13452 2008-02-01 Kenichi Handa <handa@m17n.org>
13453
13454 * search.c (simple_search): Fix previous change.
13455
13456 2008-02-01 Kenichi Handa <handa@m17n.org>
13457
13458 * xftfont.c (ftfont_font_format): Extern declaration.
13459
13460 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13461
13462 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13463 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13464
13465 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13466 (ftfont_font_format): Fix previous change.
13467
13468 * font.h (Ffont_xlfd_name): EXFUN it.
13469
13470 * font.c (font_parse_xlfd): Fix the array size of `f'.
13471 (register_font_driver): Use EQ to compare driver->type.
13472
13473 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13474 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13475 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13476
13477 2008-02-01 Kenichi Handa <handa@m17n.org>
13478
13479 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13480 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13481
13482 2008-02-01 Kenichi Handa <handa@m17n.org>
13483
13484 * xfont.c (xfont_open): Set font->format.
13485
13486 * xftfont.c (xftfont_open): Set font->format.
13487
13488 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13489 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13490 (ftfont_open): Set font->format.
13491 (ftfont_font_format): New function.
13492
13493 * font.h (struct font): New member format.
13494
13495 * font.c (Qopentype): New variable.
13496 (syms_of_font): Defsym it.
13497 (Fquery_font): Change the format of the last element of the return
13498 value.
13499
13500 2008-02-01 Kenichi Handa <handa@m17n.org>
13501
13502 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13503 last resort.
13504
13505 2008-02-01 Kenichi Handa <handa@m17n.org>
13506
13507 * coding.c (detect_coding_charset): Fix detection of multi-byte
13508 charset.
13509
13510 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13511
13512 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13513
13514 2008-02-01 Kenichi Handa <handa@m17n.org>
13515
13516 * xdisp.c (get_next_display_element): Set it->face_id for the
13517 first component of a composition.
13518 (x_produce_glyphs): Check if the font is changed or not for composition.
13519
13520 2008-02-01 Kenichi Handa <handa@m17n.org>
13521
13522 * fontset.c (Qlatin): New variable.
13523 (syms_of_fontset): Define it as a lisp symbol.
13524 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13525
13526 2008-02-01 Kenichi Handa <handa@m17n.org>
13527
13528 * font.c (font_unparse_fcname): Pay attention to the case that
13529 some of font property is a null string.
13530
13531 2008-02-01 Kenichi Handa <handa@m17n.org>
13532
13533 * term.c: Include "composite.h".
13534 (encode_terminal_code): Output all components of composition.
13535 Check the size of encode_terminal_src.
13536 (produce_glyphs): For composition, call produce_composite_glyph.
13537 (append_composite_glyph, produce_composite_glyph): New functions.
13538
13539 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13540 is not found, get font_info from the current ascii face.
13541
13542 2008-02-01 Kenichi Handa <handa@m17n.org>
13543
13544 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13545 buffer-file-name to Qnil before calling insert_from_buffer.
13546
13547 * font.c (font_unparse_fcname): Pay attention to the case that
13548 foundry is a null string.
13549
13550 2008-02-01 Kenichi Handa <handa@m17n.org>
13551
13552 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13553
13554 * font.c (Qunicode_sip): New variable.
13555 (syms_of_font): Declare it as a Lisp symbol.
13556
13557 * font.h (Qunicode_sip): Extern it.
13558
13559 2008-02-01 Kenichi Handa <handa@m17n.org>
13560
13561 * composite.c (get_composition_id): Pay attention to TAB component.
13562
13563 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13564 TAB. Adjust for the change of s->char2b which always points to
13565 the first element of allocated memory.
13566
13567 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13568
13569 * xdisp.c (handle_composition_prop): Set it->c to the first
13570 non-TAB component.
13571 (fill_composite_glyph_string): Change argument.
13572 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13573 (x_produce_glyphs): Fix handling of left/right padding.
13574
13575 2008-02-01 Kenichi Handa <handa@m17n.org>
13576
13577 * coding.c (detect_coding_system): Fix for handling off
13578 inhibit_iso_escape_detection. Fix for the case that no coding
13579 system is defined for a specific coding category.
13580
13581 2008-02-01 Kenichi Handa <handa@m17n.org>
13582
13583 * font.c (font_matching_entity): Delete unused local var.
13584
13585 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13586 opening a font.
13587
13588 * fileio.c (Finsert_file_contents): On recovering a file, assume
13589 Unix-like eol.
13590 (choose_write_coding_system): On auto-saving a file, force
13591 Unix-like eol.
13592
13593 * coding.c (setup_coding_system): Fix setting of
13594 coding->common_flags based on eol_type.
13595 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13596 inherit from it.
13597
13598 2008-02-01 Kenichi Handa <handa@m17n.org>
13599
13600 * alloc.c (NSTATICS): Increas to 0x600.
13601
13602 2008-02-01 Kenichi Handa <handa@m17n.org>
13603
13604 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13605 (ftfont_list): Don't check :name property.
13606 (ftfont_match): New function.
13607 (ftfont_pattern_entity): If the pattern doesn't contain
13608 FC_SPACING, don't assume FC_MONO.
13609
13610 * font.h (struct font_driver): New member `match'.
13611 (font_update_drivers): Adjust prototype.
13612
13613 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13614 property of FONT.
13615 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13616 them unconditionally.
13617 (font_matching_entity): New function.
13618 (font_open_by_name): Try font_matching_entity if exact match is
13619 not found.
13620 (font_update_drivers): Delete the arg FONT. Return a list of
13621 actually used backends. Don't free faces, font caches here.
13622 Don't store data in frame parameters. Don't call x_set_font.
13623 (Ffont_spec): Store :name property as is.
13624 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13625 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13626 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13627 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13628 Call font->driver->otf_gsub instead of font_otf_gsub.
13629
13630 * frame.c (x_set_font_backend): Do more works that were done in
13631 font_update_drivers before.
13632
13633 * xfont.c (xfont_match): New function.
13634 (xfont_driver): Set xfont_driver.match to xfont_match.
13635 (xfont_draw): Set font in GC if necessary.
13636
13637 * ftxfont.c (ftxfont_match): New function.
13638 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13639
13640 * xftfont.c (xftfont_match): New function.
13641 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13642
13643 2008-02-01 Kenichi Handa <handa@m17n.org>
13644
13645 * font.h (struct font): New member scalable.
13646 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13647 (font_otf_gsub): Adjust prototype.
13648
13649 * font.c (font_otf_capability): Fix handling of the default langsys.
13650 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13651 Check the contents of SPEC.
13652 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13653 (check_gstring): New function.
13654 (REPLACEMENT_CHARACTER): New macro.
13655 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13656 glyph codes of GSTRING.
13657 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13658 (font_prepare_composition): Set cmp->glyph_len.
13659 (font_open_entity): Set font->scalable.
13660 (Ffont_get): Handle :otf property.
13661 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13662 functions.
13663 (Fquery_font): Use font->font.full_name.
13664 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13665 Sfont_otf_alternates.
13666
13667 * ftfont.c (ftfont_open): Set font->font.full_name and
13668 font->font.name properly. Fix calculation of font->font.height
13669 and font->min_width.
13670
13671 * ftxfont.c (ftxfont_create_gcs): New function.
13672 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13673 (ftxfont_draw_backgrond): Fix filling region.
13674 (ftxfont_default_fid): New function.
13675 (ftxfont_open): Set xfont->fid to the return value of
13676 ftxfont_default_fid.
13677 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13678 (ftxfont_done_face): Free only GCs that are created by
13679 ftxfont_create_gcs.
13680 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13681
13682 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13683 Clip to src->width, etc (not src->clip_XXX).
13684
13685 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13686 FontBackend frame parameter.
13687
13688 2008-02-01 Kenichi Handa <handa@m17n.org>
13689
13690 * font.h (struct font_driver_list): New member `on'.
13691 (Fclear_font_cache): EXFUN it.
13692 (font_update_drivers): Extern it.
13693
13694 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13695 (font_list_entities): Check driver_list->on.
13696 (register_font_driver): Initalize `on' member to 0.
13697 (font_update_drivers): New function.
13698 (Fclear_font_cache): Check driver_list->on.
13699
13700 * frame.h (Qfont_backend): Extern it.
13701 (x_set_font_backend): Extern it.
13702
13703 * frame.c (Qfont_backend): New variable.
13704 (frame_parms): New element for font-backend.
13705 (x_set_font_backend): New function.
13706
13707 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13708 FontBackend frame parameter.
13709 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13710 x_set_font_backend.
13711
13712 * xfont.c (xfont_list): Don't try listing by :name property if the
13713 name is not for XLFD.
13714
13715 2008-02-01 Kenichi Handa <handa@m17n.org>
13716
13717 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13718 (LGLYPH_SET_TO): New macros.
13719 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13720 element of G is vector or not.
13721 (font_at): Extern it.
13722
13723 * font.c: Include window.h.
13724 (font_lispy_object): New function.
13725 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13726 end of valid glyph.
13727 (font_close_object): Fix getting (struct font *).
13728 (font_at): New function.
13729 (Ffont_get): If FONT is a font-object, get entity from it.
13730 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13731 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13732 range check.
13733 (Ffont_at): New function.
13734 (syms_of_font): Defsubr Sfont_at.
13735
13736 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13737 before the entry for Qcomposition.
13738 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13739 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13740 the font in gstring.
13741 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13742 LGLYPH_FORM (g) to detect the end of valid glyph.
13743 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13744 we are composing with gstring.
13745
13746 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13747 Check if adjustment is vector or not.
13748
13749 * Makefile.in (font.o): Make it depends on window.h.
13750
13751 2008-02-01 Kenichi Handa <handa@m17n.org>
13752
13753 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13754 adjustment is vector or not.
13755
13756 2008-02-01 Miles Bader <miles@gnu.org>
13757
13758 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13759
13760 2008-02-01 Kenichi Handa <handa@m17n.org>
13761
13762 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13763 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13764 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13765
13766 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13767 (DEVICE_DELTA): Fix typo.
13768 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13769 LGLYPH format.
13770
13771 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13772 the change of LGLYPH format.
13773
13774 2008-02-01 Kenichi Handa <handa@m17n.org>
13775
13776 * ftfont.c (ftfont_list): Fix typo.
13777 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13778
13779 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13780
13781 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13782
13783 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13784 xftface_info is non-NULL.
13785
13786 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13787
13788 * ftfont.c (ftfont_list): Move misplaced #endif.
13789
13790 2008-02-01 Kenichi Handa <handa@m17n.org>
13791
13792 * ftfont.c (ftfont_list): Pay attention to the case that
13793 FC_CAPABILITY is not defined.
13794
13795 2008-02-01 Kenichi Handa <handa@m17n.org>
13796
13797 * xftfont.c (xftfont_open): Set charset related members to -1.
13798
13799 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13800 QCname.
13801 (ftfont_open): Set charset related members to -1.
13802
13803 * fontset.c (Votf_script_alist): New variable.
13804 (syms_of_fontset): Initialize it.
13805 (fontset_font): Delete unused variable.
13806
13807 * fontset.h (Votf_script_alist): Extern it.
13808
13809 * font.c (font_find_for_lface): Optimize code.
13810
13811 * font.h (font_close_object, font_merge_old_spec): Extern them.
13812
13813 2008-02-01 Kenichi Handa <handa@m17n.org>
13814
13815 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13816 (syms_of_font): Initialize them.
13817 (font_pixel_size): Allow float value in dpi.
13818 (font_prop_validate_type): Delete.
13819 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13820 Change caller.
13821 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13822 (font_prop_validate_extra): Delete.
13823 (font_prop_validate_spacing): New function.
13824 (font_property_table): Add elements for all known properties.
13825 (get_font_prop_index): Rename from check_font_prop_name. New
13826 argument FROM. Change caller.
13827 (font_prop_validate): Validate all known properties.
13828 (font_put_extra): Delete argument force. Change caller.
13829 (font_expand_wildcards): Make it static. Fix the way of shrinking
13830 the possible range.
13831 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13832 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13833 Change caller.
13834 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13835 (font_parse_fcname): Delete argument merge. Fix parsing of point
13836 size. Don't validate properties values here. Change caller.
13837 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13838 (font_open_by_name): Delete unused variable.
13839 (Ffont_spec): Likewise. Validate property values.
13840 (Ffont_match_p): New function.
13841
13842 * font.h (QCscalable): Extern it.
13843 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13844
13845 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13846
13847 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13848 (xfont_list_pattern): New function.
13849 (xfont_list): Use xfont_list_pattern.
13850
13851 2008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * font.h (Flist_fonts): EXFUN it.
13854
13855 2008-02-01 Jason Rumney <jasonr@gnu.org>
13856
13857 * w32term.c (w32_initialize): Add back smoothing_type and
13858 smoothing_enabled definitions.
13859
13860 2008-02-01 Kenichi Handa <handa@m17n.org>
13861
13862 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13863 s->face->font on determining underline position.
13864
13865 2008-02-01 Kenichi Handa <handa@m17n.org>
13866
13867 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13868 (font_has_char): Accept font-object too.
13869 (font_find_for_lface): Try at first with a size specified in face.
13870
13871 2008-02-01 Kenichi Handa <handa@m17n.org>
13872
13873 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13874 font_open_by_name.
13875
13876 2008-02-01 Kenichi Handa <handa@m17n.org>
13877
13878 * font.h (QCspacing, QCdpi): Extern them.
13879 (enum font_spacing): New enum.
13880 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13881
13882 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13883 (QCspacing, QCdpi): New variables.
13884 (syms_of_font): Initialize them.
13885 (font_pixel_size): New function.
13886 (font_put_extra): New function.
13887 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13888 in FONT_EXTRA.
13889 (font_parse_fcname): Handle enumerated values (e.g. bold).
13890 Fix handling font size. Add QCname property that contains only
13891 unknown properties.
13892 (font_score): Change argument. Change caller. Pay attention to
13893 FONT_PIXEL_SIZE_QUANTUM.
13894 (font_sort_entites, font_list_entities, font_find_for_lface)
13895 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13896 (Ffont_spec): Add QCname property that contains only unknown properties.
13897
13898 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13899 include weight in listing pattern, instead check weight of each
13900 listed font. Don't include scalable in pattern. Pay attention to
13901 FONT_PIXEL_SIZE_QUANTUM.
13902
13903 2008-02-01 Kenichi Handa <handa@m17n.org>
13904
13905 * font.c (font_parse_fcname): Fix parsing of point-size.
13906 (font_unparse_fcname): Produce symbolic names for style properties.
13907 (font_list_entities): Handle float size correctly.
13908 (font_open_by_name): Prefer `normal' property values if the name
13909 doesn't specify them.
13910
13911 * fontset.c (Finternal_char_font): Use font_get_name, not
13912 Ffont_xlfd_name.
13913
13914 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13915 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13916 pattern. Don't force scalable.
13917
13918 * xftfont.c (xftfont_open): For generating a name, start from
13919 96-byte buffer.
13920
13921 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13922
13923 * frame.h (x_new_fontset2): Fix prototype.
13924
13925 2008-02-01 Kenichi Handa <handa@m17n.org>
13926
13927 * font.h (struct font_driver): Delete member parse_name.
13928 (font_match_p, font_get_spec, font_parse_fcname)
13929 (font_unparse_fcname): Extern them.
13930 (font_get_name): Adjust prototype.
13931
13932 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13933 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13934 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13935 unnecessary checks for weight, slant, and swidth.
13936 (font_parse_fcname): New function.
13937 (font_unparse_fcname): New function.
13938 (font_parse_name): New function.
13939 (font_match_p): New function.
13940 (font_get_name): Change return value to Lisp string.
13941 (font_get_spec): New function.
13942 (Qunspecified, Qignore_defface): Don't extern them.
13943 (font_find_for_lface): Assume that LFACE is fully specified.
13944 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13945 object, use it for FACE.
13946 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13947 driver->parse_name.
13948 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13949
13950 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13951 prototype.
13952
13953 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13954 argument F. Don't call Fnew_fontset. Instead, directly call
13955 make_fontset.
13956
13957 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13958
13959 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13960 of x_new_fontset2.
13961
13962 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13963 (Qsans__serif): New variables.
13964 (ftfont_generic_family_list): New variable.
13965 (syms_of_ftfont): Initialize the above variables.
13966 (ftfont_pattern_entity): Delete argument NAME.
13967 (ftfont_list_generic_family): New function.
13968 (ftfont_parse_name): Delete this function.
13969 (ftfont_list): Try generic family only when FcFontList found no font.
13970 (ftfont_list_family): Fix args to FcObjectSetBuild.
13971
13972 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13973 object in attrs[LFACE_FONT_INDEX].
13974 (set_lface_from_font_name): Cancel all changes for font-backend.
13975 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13976 function.
13977 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13978 font object in QCfont attribute.
13979 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13980 (realize_default_face) [USE_FONT_BACKEND]: Call
13981 set_lface_from_font_and_fontset.
13982
13983 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13984 "fixed", and signal error here if no suitable font was found.
13985
13986 * xfont.c (xfont_parse_name): Delete this function.
13987
13988 * xftfont.c (xftfont_open): Change coding style of error
13989 handling. Generate fontconfig's fontname pattern.
13990
13991 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13992 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13993
13994 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13995 Both args FONTSET and FONT_OBJECT must be existing ones.
13996
13997 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13998
13999 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14000
14001 2008-02-01 Kenichi Handa <handa@m17n.org>
14002
14003 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14004
14005 * font.h (struct font): Fix typo.
14006
14007 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14008 XLFD_XXX_INDEX.
14009 (enum xlfd_field_mask): New enum.
14010 (intern_font_field): Changed argument. Change caller. If digits
14011 are followed by non-digits, return a symbol.
14012 (font_expand_wildcards): New function.
14013 (font_parse_xlfd): Fix wildcard handling.
14014 (Ffont_spec): If :name is specified, reflect the info in the other
14015 properties.
14016
14017 * ftfont.c (ftfont_pattern_entity): Fix typo.
14018 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14019 locale.
14020
14021 2008-02-01 Kenichi Handa <handa@m17n.org>
14022
14023 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14024
14025 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14026 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14027 registry doesn't specify encoding part.
14028 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14029 (font_open_by_name): At first try parsing the name.
14030 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14031 as Lisp symbols.
14032
14033 * fontset.c (reorder_font_vector): Pay attention to the case that
14034 the 3rd element of font_def is nil.
14035 (fontset_font): For the default fontset, append one more fontset
14036 elements for a script-based font specification. Don't add script
14037 attribute on finding a font.
14038 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14039 font name.
14040 (fontset_ascii_font): If a font can't be opened, return nil.
14041
14042 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14043 (ftfont_pattern_entity): New function.
14044 (ftfont_get_cache): Assume that freetype_font_cache is already
14045 initialized.
14046 (ftfont_list): Handle the case that a file is specified in font
14047 name. Use ftfont_pattern_entity to generate entities.
14048 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14049 (syms_of_ftfont): Initialize freetype_font_cache.
14050
14051 * xftfont.c (xftfont_open): Make the font name fontconfig's
14052 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14053 (xftfont_close): Free font->font.name if not NULL.
14054
14055 * xfont.c (xfont_list): If script is specified for a font, return
14056 null_vector.
14057 (xfont_list_family): Declare argument type.
14058
14059 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14060 name, set LFACE_FONT (lface) to nil.
14061
14062 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14063 return Qnil.
14064
14065 2008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14068 (standard_args): Add "-enable-font-backend".
14069
14070 2008-02-01 Kenichi Handa <handa@m17n.org>
14071
14072 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14073 (struct xftdraw_list, xftdraw_list): Delete them.
14074 (register_xftdraw, check_xftdraw): Delete them.
14075 (xftfont_prepare_face): Don't call register_xftdraw.
14076 (xftfont_done_face): Don't call check_xftdraw.
14077 (xftfont_draw): Get background color only when with_background is
14078 nonzero.
14079
14080 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14081
14082 2008-02-01 Kenichi Handa <handa@m17n.org>
14083
14084 These changes are for the new font handling codes.
14085
14086 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14087 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14088 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14089 (FONTSRC, FONTOBJ): New variables.
14090 (obj): Add $(FONTOBJ).
14091 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14092 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14093 @LIBOTF_LIBS@.
14094 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14095 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14096
14097 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14098
14099 * character.h (Vscript_representative_chars): Extern it.
14100
14101 * character.c (Vscript_representative_chars): New variable.
14102 (syms_of_character): Declare it as a Lisp variable.
14103
14104 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14105 enable_font_backend is nonzero, accept the composition method
14106 COMPOSITION_WITH_GLYPH_STRING.
14107
14108 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14109 enumeration COMPOSITION_WITH_GLYPH_STRING.
14110
14111 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14112 members clip_x, clip_y, clip_width, and clip_height.
14113 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14114
14115 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14116 --enable-font-backend. Call syms_of_font.
14117
14118 * fns.c (assoc_no_quit): New function.
14119
14120 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14121 (face_for_font, new_fontset_from_font)
14122 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14123
14124 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14125 (fontset_font, fontset_ascii, face_for_char)
14126 (make_fontset_for_ascii_face, Ffont_info)
14127 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14128 is nonzero, use font-backend mechanism.
14129 (find_font_encoding): Make it non-static.
14130 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14131 New functions.
14132
14133 * frame.h (struct frame): New members resx and resy.
14134 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14135 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14136
14137 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14138 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14139
14140 * lisp.h (assoc_no_quit): Extern it.
14141
14142 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14143 Through out the file, use FONT_INFO_FROM_FACE instead of
14144 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14145 rif->per_char_metric.
14146 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14147 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14148 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14149 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14150 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14151 nonzero, use font-backend mechanism.
14152 (get_per_char_metric): New function.
14153
14154 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14155 (set_lface_from_font_name)
14156 (set_font_frame_param, free_realized_face)
14157 (prepare_face_for_display, clear_face_gcs)
14158 (Finternal_set_font_selection_order, realize_x_face)
14159 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14160 font-backend mechanism.
14161 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14162 (load_face_font) [USE_FONT_BACKEND]: Abort.
14163 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14164 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14165
14166 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14167 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14168 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14169 nonzero, register all available font drivers. Call
14170 x_default_font_parameter for deciding a font.
14171 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14172
14173 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14174 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14175 (x_set_glyph_string_clipping_exactly)
14176 (x_compute_glyph_string_overhangs)
14177 (x_draw_glyph_string_foreground)
14178 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14179 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14180 enable_font_backend is nonzero, use font-backend mechanism.
14181 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14182
14183 2008-02-01 Kenichi Handa <handa@m17n.org>
14184
14185 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14186 system_eol_type.
14187 (syms_of_coding): Initialize system_eol_type.
14188
14189 * process.c (Fset_process_coding_system): Inherit system's eol
14190 format if necessary.
14191
14192 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14193
14194 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14195
14196 2008-02-01 Kenichi Handa <handa@m17n.org>
14197
14198 * coding.c (decode_eol): Pay attention to buffer relocation in
14199 del_range_2.
14200 (decode_coding): Call decode_eol before restoring undo_list.
14201
14202 2008-02-01 Kenichi Handa <handa@m17n.org>
14203
14204 * charset.c (Fdefine_charset_internal): Fix setting of
14205 emacs_mule_bytes.
14206
14207 2008-02-01 Kenichi Handa <handa@m17n.org>
14208
14209 * keyboard.c (read_char): Check if C is a character or not before
14210 looking up Vkeyboard_translate_table.
14211
14212 2008-02-01 Kenichi Handa <handa@m17n.org>
14213
14214 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14215 condition to terminate the loop.
14216
14217 2008-02-01 Kenichi Handa <handa@m17n.org>
14218
14219 * coding.c (produce_composition): Compare charbuf[i] instead of
14220 args[i] against 0.
14221 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14222
14223 2008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14226 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14227 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14228 detect_coding.
14229 (emacs_mule_char): Handle old style (Emacs 20) component character
14230 of a composition.
14231 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14232 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14233 composition rule.
14234 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14235
14236 2008-02-01 Kenichi Handa <handa@m17n.org>
14237
14238 * coding.c (encode_coding_ccl): Allocate destination dynamically
14239 when necessary.
14240
14241 2008-02-01 Kenichi Handa <handa@m17n.org>
14242
14243 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14244 the loop. When quitted, show a proper error message.
14245
14246 2008-02-01 Kenichi Handa <handa@m17n.org>
14247
14248 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14249 src->clip_head and src->clip_tail temporarily instead of src->hl.
14250
14251 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14252 character sequence.
14253 (Fccl_execute_on_string): Use ASET, not XSET.
14254
14255 2008-02-01 Kenichi Handa <handa@m17n.org>
14256
14257 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14258
14259 2008-02-01 Kenichi Handa <handa@m17n.org>
14260
14261 * coding.c (decode_coding): Fix the condition of terminating the
14262 decoding loop.
14263
14264 2008-02-01 Kenichi Handa <handa@m17n.org>
14265
14266 * data.c (Faset): On setting a character bigger than 255 in a
14267 unibyte string, signal an error instead of make the string multibyte.
14268
14269 2008-02-01 Kenichi Handa <handa@m17n.org>
14270
14271 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14272 made by a mapping table.
14273
14274 2008-02-01 Kenichi Handa <handa@m17n.org>
14275
14276 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14277 not.
14278 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14279 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14280
14281 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14282 s->face is NULL or not.
14283
14284 2008-02-01 Kenichi Handa <handa@m17n.org>
14285
14286 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14287 (x_draw_glyph_string): Fix drawing of right_overhang and
14288 left_overhang around/on cursor.
14289
14290 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14291
14292 2008-02-01 Kenichi Handa <handa@m17n.org>
14293
14294 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14295
14296 2008-02-01 Kenichi Handa <handa@m17n.org>
14297
14298 * coding.c (Fdefine_coding_system_internal)
14299 (Fdefine_coding_system_alias): Avoid a duplicated element in
14300 Vcoding_system_alist.
14301
14302 2008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14305
14306 * coding.c (Qcoding_system_define_form): New variable.
14307 (syms_of_coding): Intern and staticpro it.
14308 (Fcoding_system_p): Check Qcoding_system_define_form.
14309 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14310
14311 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14312 Fcoding_system_p.
14313 (CHECK_CODING_SYSTEM): If ID is not available, call
14314 Fcheck_coding_system.
14315 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14316 Try also Fcheck_coding_system.
14317
14318 2008-02-01 Kenichi Handa <handa@m17n.org>
14319
14320 * coding.c (code_conversion_restore): GCPRO arg.
14321
14322 2008-02-01 Kenichi Handa <handa@m17n.org>
14323
14324 * character.c (lisp_string_width): Check multibyteness of STRING.
14325
14326 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14327
14328 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14329 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14330 (decode_mac_font_name): Use decode_coding_c_string instead of
14331 decode_coding.
14332 (x_load_font): Initialize fontp->fontset to -1. Set
14333 fontp->encoding_type.
14334
14335 2008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 * search.c (search_buffer): Give up BM search on case-fold-search
14338 if one of a target character has a case-equivalence of different
14339 byte length even if that target charcter is an ASCII.
14340 (simple_search): Fix calculation of byte length of matched text.
14341 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14342
14343 2008-02-01 Kenichi Handa <handa@m17n.org>
14344
14345 * coding.c (decode_coding): Fix handling of invalid bytes.
14346
14347 2008-02-01 Kenichi Handa <handa@m17n.org>
14348
14349 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14350 Unicode characters.
14351
14352 2008-02-01 Kenichi Handa <handa@m17n.org>
14353
14354 * coding.c (encode_coding_object): If a pre-write-conversion
14355 function makes a new buffer, kill it.
14356
14357 2008-02-01 Kenichi Handa <handa@m17n.org>
14358
14359 * coding.c (QCascii_compatible_p): New variable.
14360 (syms_of_coding): Initialize it.
14361 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14362 calling string_char.
14363 (record_conversion_result): Add `default:' case.
14364 (coding_charset_list): Delete unused variable `coding_type'.
14365 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14366 property in the plist of the coding system.
14367 (Fcoding_system_put): Check QCascii_compatible_p.
14368
14369 2008-02-01 Miles Bader <miles@gnu.org>
14370
14371 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14372 removed calculation of frame `f', as it's now used.
14373
14374 2008-02-01 Kenichi Handa <handa@m17n.org>
14375
14376 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14377 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14378 (UNIDATA): New variable.
14379 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14380 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14381 $(RUN_TEMACS) unconditionally.
14382
14383 2008-02-01 Kenichi Handa <handa@m17n.org>
14384
14385 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14386 (admindir): New variable.
14387 ($(lispsource)international/charprop.el): New target.
14388
14389 2008-02-01 Miles Bader <miles@gnu.org>
14390
14391 * character.c (chars-in-region): Remove obsolete function.
14392 (syms_of_character): Remove its initialization.
14393
14394 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14395
14396 * w32select.c (validate_coding_system)
14397 (setup_windows_coding_system): New functions.
14398 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14399 setup_windows_coding_system.
14400 (setup_config, Fw32_get_clipboard_data): Use
14401 validate_coding_system.
14402 (Fx_selection_exists): Move call to setup_config to a place
14403 where signals are allowed.
14404
14405 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14406 (Fcheck_coding_system): Add declarations.
14407
14408 2008-02-01 Kenichi Handa <handa@m17n.org>
14409
14410 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14411
14412 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14413
14414 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14415 string as the second argument for x_new_fontset.
14416
14417 2008-02-01 Kenichi Handa <handa@m17n.org>
14418
14419 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14420 (encode_coding_object): Use safe_call instead of call2.
14421
14422 2008-02-01 Kenichi Handa <handa@m17n.org>
14423
14424 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14425
14426 * Makefile.in (lisp): Include charprop.el.
14427
14428 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14429
14430 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14431 Not sure if it's unnecessary.
14432
14433 2008-02-01 Steven Tamm <steventamm@mac.com>
14434
14435 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14436 some possibly unnecessary fontset checking code that crashed
14437 when creating a new frame.
14438
14439 2008-02-01 Kenichi Handa <handa@m17n.org>
14440
14441 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14442 lookup_face.
14443
14444 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14445
14446 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14447
14448 2008-02-01 Kenichi Handa <handa@m17n.org>
14449
14450 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14451 (coding_charset_list): New function.
14452
14453 * coding.h (coding_charset_list): Extern it.
14454
14455 2008-02-01 Kenichi Handa <handa@m17n.org>
14456
14457 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14458 concatenation of family and registry.
14459
14460 2008-02-01 Kenichi Handa <handa@m17n.org>
14461
14462 * character.h (BYTE8_STRING): Fix typo.
14463
14464 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14465 string to multibyte (sync to HEAD).
14466
14467 * casefiddle.c (casify_region): Handle changes in byte-length
14468 using replace_range_2 (sync to HEAD).
14469
14470 2008-02-01 Andreas Schwab <schwab@suse.de>
14471
14472 * chartab.c (map_char_table): GCPRO table and arg.
14473
14474 2008-02-01 Kenichi Handa <handa@m17n.org>
14475
14476 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14477 already at limit.
14478
14479 2008-02-01 Kenichi Handa <handa@m17n.org>
14480
14481 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14482 instead of fast_c_string_match_ignore_case.
14483 (find_font_encoding): Change argument to Lisp_Object. Use
14484 fast_string_match_ignore_case instead of
14485 fast_c_string_match_ignore_case. Change caller.
14486
14487 2008-02-01 Kenichi Handa <handa@m17n.org>
14488
14489 * xdisp.c (get_next_display_element): In unibyte case, decide to
14490 display in octal form by checking a character by
14491 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14492
14493 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14494
14495 * character.c (unibyte_has_multibyte_table): New variable.
14496
14497 * character.h (unibyte_has_multibyte_table): Extern it.
14498 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14499
14500 2008-02-01 Kenichi Handa <handa@m17n.org>
14501
14502 * coding.c (encode_coding_iso_2022): Fix handling of charset
14503 annotation.
14504
14505 2008-02-01 Kenichi Handa <handa@m17n.org>
14506
14507 * coding.c (setup_coding_system): If coding_system is nil, use
14508 Qundecided.
14509 (Fterminal_coding_system): Return nil if terminal coding system is
14510 `undecided'.
14511 (syms_of_coding): Define coding-system `undecided' here. Setup
14512 terminal_coding as `undecided'.
14513
14514 2008-02-01 Kenichi Handa <handa@m17n.org>
14515
14516 * xdisp.c (message_dolog, set_message_1): Call
14517 unibyte_char_to_multibyte with arg type int.
14518
14519 * lread.c (read1): Fix reading of a char-table.
14520
14521 * print.c (print_object): Include sub char-table in circularities
14522 detection.
14523
14524 2008-02-01 Kenichi Handa <handa@m17n.org>
14525
14526 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14527 Append the found sequences in car of ARGS instead of prepending.
14528
14529 2008-02-01 Kenichi Handa <handa@m17n.org>
14530
14531 * fileio.c (report_file_error): Make a unibyte string from
14532 strerror (errorno).
14533 (Fsubstitute_in_file_name): Fix the arg to
14534 unibyte_char_to_multibyte. It is evaluated twice.
14535
14536 2008-02-01 Kenichi Handa <handa@m17n.org>
14537
14538 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14539
14540 2008-02-01 Kenichi Handa <handa@m17n.org>
14541
14542 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14543 BOM is not found.
14544 (detect_coding, detect_coding_system): Optimization for ISO-2022
14545 when no 8-bit data is found.
14546
14547 2008-02-01 Jason Rumney <jasonr@gnu.org>
14548
14549 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14550
14551 2008-02-01 Kenichi Handa <handa@m17n.org>
14552
14553 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14554 CHARS.
14555
14556 2008-02-01 Steven Tamm <steventamm@mac.com>
14557
14558 * macterm.c (mac_encode_char): Add charset argument and update
14559 to use encoding_type.
14560 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14561 switch to pure fontset.
14562 (decode_mac_font_name): Temporarily remove decoding.
14563 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14564 (x_load_font): Temporarily remove encoding.
14565
14566 2008-02-01 Kenichi Handa <handa@m17n.org>
14567
14568 * xfaces.c (Fface_font): If frame is not on a window system,
14569 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14570 refer to face->font.
14571 (split_font_name_into_vector, build_font_name_from_vector)
14572 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14573 when HAVE_WINDOW_SYSTEM is defined.
14574
14575 2008-02-01 Kenichi Handa <handa@m17n.org>
14576
14577 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14578 (x_produce_glyphs): Fix setting of members of cmp in case
14579 cmp->glyph_len is zero.
14580
14581 * fontset.c (Fset_fontset_font): Fix docstring.
14582 (Ffontset_info): Make it backward compatible. New arg ALL.
14583
14584 2008-02-01 Kim F. Storm <storm@cua.dk>
14585
14586 * process.c (read_process_output): Grow decoding_buf when needed;
14587 this could cause a crash in allocate_string and compact_small_strings.
14588
14589 2008-02-01 Kenichi Handa <handa@m17n.org>
14590
14591 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14592
14593 2008-02-01 Kenichi Handa <handa@m17n.org>
14594
14595 * coding.c (setup_coding_system): Set coding->common_flags
14596 correctly for raw-text.
14597 (consume_chars): On encoding unibyte text by raw-text, don't check
14598 multibyte form.
14599 (encode_coding): On encoding by raw-text, never use translation tables.
14600
14601 * fileio.c (e_write): Short cut for the case of no encoding.
14602
14603 2008-02-01 Kenichi Handa <handa@m17n.org>
14604
14605 * coding.c (detect_coding, detect_coding_system): Delete unused
14606 variables.
14607
14608 2008-02-01 Kenichi Handa <handa@m17n.org>
14609
14610 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14611 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14612
14613 2008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 * coding.c (Ffind_coding_systems_region_internal): Include
14616 raw-text and no-conversion in the result.
14617
14618 2008-02-01 Kenichi Handa <handa@m17n.org>
14619
14620 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14621 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14622 FONT_DEF.
14623 (font_def_arg, add_arg, from_arg, to_arg): New args.
14624 (set_fontset_font): Change argument.
14625 (Fset_fontset_font): Fix for the case that TARGET is a script
14626 name and charset name.
14627 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14628
14629 2008-02-01 Kenichi Handa <handa@m17n.org>
14630
14631 * fontset.c (fontset_font): Rename from fontset_face. Change return
14632 value.
14633 (face_suitable_for_char_p, face_for_char): Adjust for the change
14634 of fontset_font.
14635 (make_fontset_for_ascii_face): Fix setting of the fontset element
14636 for ASCII.
14637 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14638 to get a font name.
14639 (Ffontset_info): Adjust for the change of fontset_font.
14640
14641 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14642
14643 * character.h (LEADING_CODE_LATIN_1_MIN)
14644 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14645
14646 2008-02-01 Kenichi Handa <handa@m17n.org>
14647
14648 * editfns.c (check_translation): New function.
14649 (Ftranslate_region_internal): Handle M:N mapping.
14650
14651 2008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14654
14655 2008-02-01 Kenichi Handa <handa@m17n.org>
14656
14657 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14658 goto invalid_code.
14659 (decode_coding_iso_2022): Fix handling of invalid designation.
14660
14661 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14662 after calling code_conversion_save.
14663
14664 2008-02-01 Kenichi Handa <handa@m17n.org>
14665
14666 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14667
14668 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14669
14670 * fontset.c: Include "intervals.h".
14671 (fontset_face): Fix comparing of Lisp_Objects.
14672 (free_face_fontset, new_fontset_from_font_name): Fix
14673 Lisp_Object/int mixup.
14674
14675 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14676
14677 * coding.c: Add many prototypes for static functions.
14678 (get_translation_table): Allow max_lookup to be NULL.
14679 (decode_coding, Ffind_coding_systems_region_internal)
14680 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14681 get_translation_table with max_lookup NULL.
14682
14683 2008-02-01 Kenichi Handa <handa@m17n.org>
14684
14685 * coding.c (get_translation_table): Declare it as Lisp_Object.
14686 (LOOKUP_TRANSLATION_TABLE): New macro.
14687 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14688 instead of CHAR_TABLE_REF.
14689
14690 2008-02-01 Kenichi Handa <handa@m17n.org>
14691
14692 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14693 annotation data format.
14694 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14695 Change arguments FROM and TO to single argument NCHARS. Change caller.
14696 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14697 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14698 (decode_coding_ccl, decode_coding_charset): Pay attention to
14699 coding->charbuf_used.
14700 (get_translation): New function.
14701 (produce_chars): New arguments translation_table and last_block.
14702 Translate characters here. Return number of carryover chars.
14703 Change caller.
14704 (produce_composition): New argument pos. Change caller.
14705 Adjust for the change of annotation data format.
14706 (produce_charset, produce_annotation): Likewise.
14707 (decode_coding, encode_coding): Don't call translate_chars.
14708 (consume_chars): New arg translation_table. Change caller.
14709 (translate_chars): Delete.
14710 (syms_of_coding): Make translation-table's number of extra slots 2.
14711
14712 2008-02-01 Kenichi Handa <handa@m17n.org>
14713
14714 * search.c (simple_search): Fix setting this_pos_byte in backward
14715 search.
14716
14717 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14718 byte sequence.
14719 (detect_coding_ccl): Fix setting of the variable valids.
14720
14721 2008-02-01 Kenichi Handa <handa@m17n.org>
14722
14723 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14724
14725 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14726
14727 * editfns.c (Ftranslate_region_internal): Rename from
14728 Ftranslate_region. Accept a char-table in TABLE.
14729 (syms_of_editfns): Defsubr Stranslate_region_internal.
14730
14731 * xfaces.c (set_lface_from_font_name): If a font is specified for
14732 a frame, generate a fontset from the font.
14733 (build_scalable_font_name): If the scalable font is requested for
14734 a specific size, don't change that size.
14735 (try_font_list): Try a scalable font also in the case that a
14736 pattern string is specified.
14737
14738 2008-02-01 Kenichi Handa <handa@m17n.org>
14739
14740 * xfaces.c (Fface_font): New optional arg CHARACTER.
14741
14742 2008-02-01 Kenichi Handa <handa@m17n.org>
14743
14744 * charset.h (CHARSET_OFFSET): New macro.
14745
14746 2008-02-01 Kenichi Handa <handa@m17n.org>
14747
14748 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14749
14750 * fontset.c (fontset_face): Handle the case that repertory is a
14751 char-table.
14752 (find_font_encoding): Return nil for unknown encoding.
14753 (Fset_fontset_font): Ignore a font of unknown encoding.
14754
14755 2008-02-01 Kenichi Handa <handa@m17n.org>
14756
14757 * keymap.c (describe_vector): Handle default value of a char table.
14758
14759 * fontset.c (fontset_face): Handle fallback fonts correctly.
14760 (Ffontset_info): Return infomation about fallback fonts.
14761
14762 2008-02-01 Kenichi Handa <handa@m17n.org>
14763
14764 * fontset.c (FONTSET_DEFAULT): New macro.
14765 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14766 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14767 the case that it is nil.
14768 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14769 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14770
14771 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14772 subset or superset.
14773
14774 2008-02-01 Kenichi Handa <handa@m17n.org>
14775
14776 * emacs.c (main): Call init_charset after syms_of_XXX.
14777
14778 * charset.c (Vcharset_map_directory): Delete.
14779 (Vcharset_map_path): New variable.
14780 (load_charset_map_from_file): Use Vcharset_map_path instead.
14781 (init_charset): Initialize Vcharset_map_path.
14782 (syms_of_charset): Delete declaration of "charset-map-directory",
14783 add declaration of "charset-map-path".
14784
14785 2008-02-01 Kenichi Handa <handa@m17n.org>
14786
14787 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14788 ASCII only string.
14789
14790 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14791
14792 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14793 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14794
14795 2008-02-01 Kenichi Handa <handa@m17n.org>
14796
14797 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14798
14799 * coding.c (QCmnemonic, QCdefalut_char)
14800 (QCdecode_translation_table, QCencode_translation_table)
14801 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14802 (get_translation_table): Return a list of translation tables if
14803 necessary.
14804 (decode_coding): Call get_translation_table with ENCODEP 0.
14805 (char_encodable_p): If translation_table is non-nil, always call
14806 translate_char.
14807 (Fdefine_coding_system_internal): Accept list of translation
14808 tables as :encode-translation-table and :decode-translation-table.
14809 (Fcoding_system_put): New function.
14810 (syms_of_coding): Declare new symbols. Defsubr
14811 Scoding_system_put.
14812 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14813 typically JISX0212.
14814
14815 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14816 when the charset is superset type.
14817
14818 * character.c (translate_char): Accept list of translation tables.
14819
14820 2008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14823 (CODING_ATTR_TRANS_TBL): New macro.
14824
14825 * coding.c (get_translation_table): New function.
14826 (translate_chars): Fix the bug of skipping annotation data.
14827 (decode_coding, encode_coding): Utilize get_translation_table.
14828 (char_encodable_p, Funencodable_char_position): Translate char if
14829 necessary.
14830 (Ffind_coding_systems_region_internal)
14831 (Fcheck_coding_systems_region): Setup translation table for encode
14832 in a coding system attribute vector in advance.
14833 (Fdefine_coding_system_internal): Allow a symbol as translation
14834 table. For shift-jis type coding system, allow 4th charset.
14835
14836 2008-02-01 Kenichi Handa <handa@m17n.org>
14837
14838 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14839
14840 * xdisp.c (get_next_display_element): Pass -1 as POS to
14841 FACE_FOR_CHAR if displaying a C-string.
14842
14843 2008-02-01 Kenichi Handa <handa@m17n.org>
14844
14845 * composite.c (get_composition_id): Handle xoff and yoff in a
14846 composition rule.
14847
14848 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14849 (struct composition): New member lbearing and rbearing.
14850
14851 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14852 (x_get_glyph_overhangs): Handle a composition glyph.
14853 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14854
14855 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14856 composition glyph.
14857
14858 2008-02-01 Kenichi Handa <handa@m17n.org>
14859
14860 * print.c: Include charset.h.
14861 (Vprint_charset_text_property): New variable.
14862 (Qdefault): Extern it.
14863 (PRINT_STRING_NON_CHARSET_FOUND)
14864 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14865 (print_check_string_result): New variable.
14866 (print_check_string_charset_prop): New function.
14867 (print_prune_charset_plist): New variable.
14868 (print_prune_string_charset): New function.
14869 (print_object): Call print_prune_string_charset if
14870 Vprint_charset_text_property is not t.
14871 (print_interval): Print nothing if interval->plist is nil.
14872 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14873 variable. Init and staticpro print_prune_charset_plist.
14874
14875 2008-02-01 Kenichi Handa <handa@m17n.org>
14876
14877 * fontset.c (new_fontset_from_font_name): Use the specified font
14878 for all characters in the new fontset.
14879
14880 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14881 OBJECT args.
14882
14883 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14884 OBJECT args for composition too.
14885
14886 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14887 OBJECT args.
14888
14889 2008-02-01 Kenichi Handa <handa@m17n.org>
14890
14891 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14892
14893 * fontset.c (reorder_font_vector): Adjust for the change of
14894 FONT_DEF format.
14895 (fontset_face): New arg id. Change caller.
14896 (face_for_char): New args pos and object.
14897 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14898 (fs_query_fontset): Check NAME by Fassoc too.
14899 (Fset_fontset_font): Allow non-XLFD font name.
14900 (Ffontset_info): Adjust for the change of FONT_DEF format.
14901
14902 * fontset.h (face_for_char): Adjust prototype.
14903
14904 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14905 (append_space, extend_face_to_end_of_line)
14906 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14907 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14908
14909 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14910 POS and OBJECT args.
14911
14912 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14913 POS and OBJECT args.
14914
14915 2008-02-01 Jason Rumney <jasonr@gnu.org>
14916
14917 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14918 of GlobalAlloc'ed memory.
14919
14920 2008-02-01 Kenichi Handa <handa@m17n.org>
14921
14922 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14923
14924 * charset.h (charset_table_used): Delete extern.
14925
14926 * charset.c (charset_table_used): Make it static.
14927 (map_charset_chars): Fix args to c_function with.
14928
14929 * chartab.c (map_sub_char_table_for_charset): Fix args to
14930 c_function with.
14931
14932 * coding.h (enum coding_result_code): Delete
14933 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14934
14935 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14936 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14937 (Vlast_code_conversion_error): New variables.
14938 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14939 (ONE_MORE_BYTE): Record error if any instead of signaling an
14940 error. If non-ASCII multibyte char is found, return the negative
14941 value of the code. All callers changed to check it.
14942 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14943 (record_conversion_result): New function. Change all codes setting
14944 coding->result to call this function.
14945 (detect_coding_utf_8, decode_coding_utf_8)
14946 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14947 Don't use the local variable incomplete.
14948 (emacs_mule_char): Change the second arg to `const'.
14949 (decode_coding): Fix of flushing out unprocessed data.
14950 (make_conversion_work_buffer): Fix making of a work buffer.
14951 (decode_coding_object): Return coding->dst_object.
14952
14953 * fontset.c (set_fontset_font): Fix args.
14954
14955 * lisp.h (CHARACTERBITS): Define as 22.
14956
14957 * process.c (send_process): Be sure to set coding->src_multibyte.
14958
14959 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14960
14961 2008-02-01 Kenichi Handa <handa@m17n.org>
14962
14963 * xdisp.c (handle_auto_composed_prop): Give limit to
14964 Fnext_single_char_property_change.
14965
14966 2008-02-01 Kenichi Handa <handa@m17n.org>
14967
14968 * composite.c (syms_of_composite): Don't make the composition hash
14969 table weak.
14970
14971 * fontset.c (Fset_fontset_font): Fix docstring.
14972
14973 * lisp.h (detect_coding_system): Adjust prototype.
14974
14975 * fileio.c (kill_workbuf_unwind): Delete this function.
14976 (Finsert_file_contents): Adjust the call of detect_coding_system.
14977 Get conversion_buffer by code_conversion_save. Use the macro
14978 CODING_MAY_REQUIRE_DECODING. After decoding, update
14979 coding_system.
14980
14981 * coding.h (make_conversion_work_buffer): Delete extern.
14982 (code_conversion_save): Extern it.
14983
14984 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14985 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14986 (decode_coding_utf_8): Don't do eol converion.
14987 (detect_coding_utf_16): Check coding->src_chars, not
14988 coding->src_bytes. Add heuristics for those that have no signature.
14989 (decode_coding_emacs_mule, decode_coding_iso_2022)
14990 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14991 Don't do eol converion.
14992 (adjust_coding_eol_type): Return a new coding system.
14993 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14994 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14995 each change.
14996 (decode_coding): Pay attention to undo_list. Do eol conversion for
14997 all types of coding-systems (if necessary).
14998 (Vcode_conversion_work_buf_list): Delete it.
14999 (Vcode_conversion_reused_workbuf): Rename from
15000 Vcode_conversion_reused_work_buf.
15001 (Vcode_conversion_workbuf_name): New variable.
15002 (reused_workbuf_in_use): New variable.
15003 (make_conversion_work_buffer): Delete the arg DEPTH.
15004 (code_conversion_restore): Change argument to cons.
15005 (code_conversion_save): Delete the argument BUFFER. Change callers.
15006 (detect_coding_system): New argument src_chars. Change callers.
15007 Fix for utf-16 detection.
15008 (init_coding_once): Don't use ISO_carriage_return.
15009 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15010 reused_workbuf_in_use.
15011
15012 2008-02-01 Kenichi Handa <handa@m17n.org>
15013
15014 * keymap.c (store_in_keymap): Pay attention to the case that idx
15015 is a cons specifying a character range.
15016
15017 2008-02-01 Kenichi Handa <handa@m17n.org>
15018
15019 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15020 HANDLED_RECOMPUTE_PROPS.
15021
15022 * coding.c (Fdefine_coding_system_internal): Fix checking of
15023 ascii compatibility.
15024
15025 2008-02-01 Kenichi Handa <handa@m17n.org>
15026
15027 * charset.c (find_charsets_in_text): Delete unused locale variable.
15028 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15029
15030 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15031 Resync charset_list to Vemacs_mule_charset_list.
15032
15033 * keymap.c (store_in_keymap): Pay attention to the case that idx
15034 is a cons specifying a character range.
15035
15036 2008-02-01 Kenichi Handa <handa@m17n.org>
15037
15038 * composite.c (update_compositions): Bind inhibit-read-only, etc
15039 to t before calling remove-list-of-text-properties.
15040
15041 * print.c (print_object): Always print ASCII chars as is.
15042
15043 2008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15046
15047 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15048 is a char table.
15049
15050 2008-02-01 Kenichi Handa <handa@m17n.org>
15051
15052 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15053
15054 2008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * xfaces.c (set_lface_from_font_name): Fix for the case that
15057 FONTNAME is not fontset name.
15058
15059 2008-02-01 Kenichi Handa <handa@m17n.org>
15060
15061 * fns.c (base64_encode_1): Fix previous change.
15062
15063 2008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * fontset.c (set_fontset_font): New function.
15066 (Fset_fontset_font): If a font is specified for a charset, use
15067 map_charset_chars to store the font spec in a fontset.
15068
15069 2008-02-01 Kenichi Handa <handa@m17n.org>
15070
15071 * fontset.c (fontset_face): Create a fallback fontset on demand.
15072 (make_fontset): Don't create a fallback fontset here.
15073 (free_face_fontset): Free a fallback fontset (if any) too.
15074 (n_auto_fontsets): Delete this variable.
15075 (auto_fontset_alist): New variable.
15076 (new_fontset_from_font_name): Check auto_fontset_alist.
15077 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15078 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15079 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15080 Defsubr Sfontset_list_all.
15081
15082 2008-02-01 Kenichi Handa <handa@m17n.org>
15083
15084 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15085
15086 2008-02-01 Kenichi Handa <handa@m17n.org>
15087
15088 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15089
15090 2008-02-01 Kenichi Handa <handa@m17n.org>
15091
15092 * editfns.c (Fgoto_char): Fix docstring.
15093
15094 2008-02-01 Kenichi Handa <handa@m17n.org>
15095
15096 * insdel.c (insert_from_gap): Adjust intervals correctly.
15097
15098 2008-02-01 Jason Rumney <jasonr@gnu.org>
15099
15100 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15101 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15102 (w32_initialize): Try to load it.
15103 (x_get_font_repertory): Use it if available.
15104 (w32_encode_char): Add shortcut for unicode output.
15105
15106 * w32fns.c (w32_load_system_font): Default charset to -1.
15107 (x_to_w32_charset): Match all fonts for unicode.
15108 (w32_to_x_charset): New parameter matching. Don't return partial
15109 or wildcard charsets.
15110 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15111 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15112 (w32_to_x_font): Match charset to real charset.
15113 (enum_font_cb2): Always list unicode versions.
15114
15115 * makefile.w32-in (temacs): Increase EMHEAP.
15116
15117 2008-02-01 Jason Rumney <jasonr@gnu.org>
15118
15119 * w32term.c (w32_encode_char): New charset parameter.
15120 font_info.encoding becomes encoding_type.
15121 (x_get_font_repertory): New function. Warning: stub only!
15122 (x_new_font): Return quickly if font already set.
15123 (x_new_fontset): fontsetname parameter is Lisp_Object.
15124 Use new fs_query_fontset. Try new_fontset_from_font_name.
15125 Use fontset_name for return value.
15126
15127 * w32term.h: Declare x_get_font_repertory.
15128
15129 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15130 place of find_charset_in_text. Use encode_coding_object in place
15131 of encode_coding.
15132 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15133 decode_coding.
15134
15135 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15136 of x_new_fontset.
15137 (w32_load_system_font): Initialize charset as unicode.
15138 font_info.encoding becomes encoding_type.
15139 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15140 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15141 (syms_of_w32fns): Set get_font_repertory_func.
15142
15143 * w32console.c: Include character.h. Use terminal_encode_buffer
15144 from term.c.
15145 (write_glyphs): Use new version of encode_terminal_code. Use
15146 encode_coding_object in place of encode_coding.
15147
15148 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15149 encoding becomes encoding_type.
15150
15151 * term.c (terminal_encode_buffer): Make externally visible.
15152
15153 * makefile.w32-in: Add character.h dependancies.
15154 (character.o, chartab.o): New targets.
15155
15156 2008-02-01 Kenichi Handa <handa@m17n.org>
15157
15158 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15159 CODING_ID_EOL_TYPE.
15160
15161 2008-02-01 Andreas Schwab <schwab@suse.de>
15162
15163 * coding.c (produce_chars): Revert last change.
15164
15165 2008-02-01 Kenichi Handa <handa@m17n.org>
15166
15167 * charset.h (charset_unicode): Extern it.
15168
15169 * charset.c (string_xstring_p): Check by (C >= 0x100).
15170 (find_charsets_in_text): Change format of the arc CHARSETS. New
15171 arg MULTIBYTE.
15172 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15173 change of find_charsets_in_text.
15174 (Fsplit_char): Fix doc. Never return unknown.
15175
15176 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15177
15178 * coding.c (Fdefine_coding_system_alias): Update
15179 Vcoding_system_list.
15180
15181 * fontset.c (load_font_get_repertory): Pay attention to the case
15182 that ENCODING of a font is specified by a char-table.
15183
15184 * xterm.c (x_get_font_repertory): Handle the case that the
15185 encoding of font is other than Unicode.
15186
15187 2008-02-01 Kenichi Handa <handa@m17n.org>
15188
15189 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15190 if a character is encodable by the terminal coding system. If
15191 not, produces proper number of `?'s. Update
15192 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15193 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15194
15195 2008-02-01 Kenichi Handa <handa@m17n.org>
15196
15197 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15198 variables.
15199 (encode_terminal_code): Change argument. Encode multiple
15200 characters at once. Store the result of encoding in
15201 terminal_encode_buffer.
15202 (write_glyphs, insert_glyphs): Adjust for the change of
15203 encode_terminal_code.
15204 (term_init): Initialize terminal_encode_buffer and
15205 terminal_encode_buf_size.
15206
15207 * coding.c (consume_chars): If coding->src_object is nil, don't
15208 check annotation.
15209
15210 2008-02-01 Kenichi Handa <handa@m17n.org>
15211
15212 * character.c (char_string): Use ASCII_CHAR_P instead of
15213 SINGLE_BYTE_CHAR_P.
15214
15215 2008-02-01 Kenichi Handa <handa@m17n.org>
15216
15217 * xdisp.c (handle_auto_composed_prop): Check if the last
15218 characters of auto-composed region is newly composed with the
15219 following characters.
15220 (handle_composition_prop): Fix checking of point being inside
15221 composition.
15222
15223 2008-02-01 Kenichi Handa <handa@m17n.org>
15224
15225 * fns.c (concat): Don't change multibyteness of the result by
15226 concatenating an 8-bit character.
15227
15228 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15229 multibyteness of the result when newelt is an 8-bit character.
15230
15231 2008-02-01 Dave Love <fx@gnu.org>
15232
15233 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15234 EMACS_INT.
15235
15236 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15237
15238 * xfaces.c (face_numeric_value): Declare dim size_t.
15239 (Finternal_lisp_face_equal_p): Remove unused f.
15240
15241 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15242 (MATRIX_ROW): Remove unused vars.
15243 (draw_glyphs, x_insert_glyphs, fast_find_position)
15244 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15245 byte/char counts.
15246
15247 * regex.c (regex_compile): Remove unused var.
15248
15249 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15250
15251 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15252 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15253
15254 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15255
15256 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15257
15258 * fileio.c (Fwrite_region): Remove unused var.
15259
15260 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15261 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15262
15263 * composite.c (Fremove_list_of_text_properties): Declare.
15264
15265 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15266 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15267 (coding_inherit_eol_type): Remove unused attrs.
15268 (detect_coding): Cast arg of detect_eol.
15269
15270 * charset.c (syms_of_charset): Remove unused var p.
15271 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15272 byte/char counts.
15273
15274 * casetab.c (set_case_table): Remove unused var.
15275
15276 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15277 unused vars.
15278
15279 2008-02-01 Dave Love <fx@gnu.org>
15280
15281 * xterm.c (x_bitmap_mask): Declare.
15282
15283 2008-02-01 Dave Love <fx@gnu.org>
15284
15285 * xterm.c (x_term_init): Fix type error.
15286
15287 * lisp.h: Add Funibyte_char_to_multibyte.
15288
15289 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15290 (Fset_coding_system_priority): Doc fix.
15291
15292 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15293
15294 * indent.c (check_composition): Make start and end EMACS_INT.
15295
15296 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15297
15298 * xdisp.c (handle_composition_prop, check_point_in_composition):
15299 Make buffer positions EMACS_INT.
15300
15301 * composite.c (find_composition, run_composition_function)
15302 (update_compositions, Ffind_composition_internal): Make buffer
15303 positions EMACS_INT.
15304
15305 * composite.h (find_composition, update_compositions): Make
15306 position args EMACS_INT.
15307
15308 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15309
15310 * intervals.c (get_property_and_range):
15311 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15312
15313 * unexalpha.c: Don't include varargs.h.
15314
15315 2008-02-01 Dave Love <fx@gnu.org>
15316
15317 * coding.h (ENCODE_UTF_8): New.
15318
15319 * Makefile.in (gtkutil.o): Depend on coding.h.
15320
15321 * coding.c (Fset_coding_system_priority): Doc fix.
15322
15323 2008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15326 the case of auto saving.
15327
15328 2008-02-01 Andreas Schwab <schwab@suse.de>
15329
15330 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15331 `range' from GC.
15332
15333 2008-02-01 Kenichi Handa <handa@m17n.org>
15334
15335 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15336
15337 2008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * fileio.c (choose_write_coding_system): Return a decided coding system.
15340 (Fwrite_region): Set Vlast_coding_system_used to the return value
15341 of choose_write_coding_system.
15342
15343 2008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * charset.c (Fset_charset_priority): Pay attention to duplicated
15346 arguments.
15347
15348 * coding.c (QCcategory): New variable.
15349 (syms_of_coding): Defsym it. Set all elements of
15350 Vcoding_category_table and their symbol values.
15351 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15352 coding-category-XXX, and coding-category-list.
15353 (Fdefine_coding_system_internal): Add category in the plist.
15354
15355 2008-02-01 Kenichi Handa <handa@m17n.org>
15356
15357 * callproc.c (Fcall_process): Handle carryover correctly.
15358
15359 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15360 (raw_text_coding_system): Check NILP (coding_system).
15361 (coding_inherit_eol_type): Check NILP (coding_system) and
15362 NILP (parent).
15363 (consume_chars): Fix for the case of raw-text.
15364
15365 * process.c (read_process_output): Handle carryover correctly.
15366
15367 2008-02-01 Dave Love <fx@gnu.org>
15368
15369 * regex.c (re_search_2): Fix last change.
15370
15371 2008-02-01 Kenichi Handa <handa@m17n.org>
15372
15373 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15374 target_multibyte. Even in a unibyte case, return a converted
15375 multibyte char.
15376 (GET_CHAR_AFTER): New macro.
15377 (PATFETCH): Translate via multibyte char.
15378 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15379 (SETUP_MULTIBYTE_RANGE): New macro.
15380 (regex_compile): Setup compiled code so that its multibyteness
15381 matches that of a target. Fix the handling of "[X-YZ]" using
15382 SETUP_MULTIBYTE_RANGE.
15383 (analyse_first) <charset>: For filling fastmap for all multibyte
15384 characters, don't check by BASE_LEADING_CODE_P.
15385 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15386 the same as RE_MULTIBYTE_P (bufp) now.
15387 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15388 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15389 (TRANSLATE_VIA_MULTIBYTE): New macro.
15390 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15391 It is the same as RE_MULTIBYTE_P (bufp) now.
15392 <exactn>: Translate via multibyte.
15393 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15394 translate it.
15395 <charset, charset_not>: Fetch a character by
15396 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15397 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15398 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15399 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15400 by GET_CHAR_AFTER.
15401 (bcmp_translate): Likewise.
15402
15403 * search.c (compile_pattern): Check the member target_multibyte,
15404 not the member multibyte of buf.
15405
15406 * lread.c (read1): While reading a string, set force_singlebyte
15407 and force_multibyte correctly.
15408
15409 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15410 up of unibyte_to_multibyte_table.
15411
15412 2008-02-01 Kenichi Handa <handa@m17n.org>
15413
15414 * coding.c (setup_coding_system): If coding has
15415 post-read-conversion or pre-write-conversion, set
15416 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15417 respectively.
15418 (decode_coding_gap): Run post-read-conversion if any.
15419
15420 * fileio.c (Finsert_file_contents): Even if we read into a
15421 unibyte buffer, check if we must decode the result or not.
15422
15423 2008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * coding.c (make_conversion_work_buffer): Change the work buffer
15426 name to the same one as that of Emacs 21.
15427
15428 2008-02-01 Kenichi Handa <handa@m17n.org>
15429
15430 * coding.h (make_conversion_work_buffer): Adjust prototype.
15431 (code_conversion_restore): Don't extern it.
15432
15433 * coding.c (detected_mask): Delete unused variable.
15434 (decode_coding_iso_2022): Pay attention to the byte sequence of
15435 CTEXT extended segment, and retain those bytes as is.
15436 (decode_coding_ccl): Delete unused variable `valids'.
15437 (setup_coding_system): Delete unused variable `category'.
15438 (consume_chars): Delete unused variable `category'. Make it work
15439 for non-multibyte case.
15440 (make_conversion_work_buffer): Change argument.
15441 (saved_coding): Delete unused variable.
15442 (code_conversion_restore): Don't check saved_coding->destination.
15443 (code_conversion_save): New function.
15444 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15445 instead of record_unwind_protect.
15446 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15447 (detect_coding_system): Delete unused variable `mask'.
15448 (Fdefine_coding_system_internal): Delete unused variable id.
15449
15450 * fileio.c (kill_workbuf_unwind): New function.
15451 (Finsert_file_contents): On replacing, call
15452 make_conversion_work_buffer with correct args, and call
15453 record_unwind_protect with the first arg kill_workbuf_unwind.
15454
15455 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15456
15457 2008-02-01 Kenichi Handa <handa@m17n.org>
15458
15459 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15460 (fontset_add): Fix for the case that TO is less than TO1.
15461 (Ffontset_info): Don't use fallback fontset on checking the
15462 default fontset.
15463 (dump_fontset): New function for debugging.
15464
15465 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15466 coding_type is Qcharset.
15467
15468 2008-02-01 Kenichi Handa <handa@m17n.org>
15469
15470 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15471 (map_char_table): Don't inherit the value from the parent on
15472 initializing VAL. Adjust for the above change.
15473
15474 2008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * coding.c (Qsignature, Qendian): Delete these variables.
15477 (syms_of_coding): Don't initialize them.
15478 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15479 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15480 detect_info->found.
15481 (decode_coding_utf_16): Don't detect BOM here.
15482 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15483 is NOT utf_16_without_bom.
15484 (setup_coding_system): For a coding system of type utf-16, check
15485 if the attribute :endian is Qbig or not (not nil or not), and set
15486 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15487 (detect_coding): If coding type is utf-16 and BOM detection is
15488 required, detect it.
15489 (Fdefine_coding_system_internal): For a coding system of type
15490 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15491
15492 2008-02-01 Kenichi Handa <handa@m17n.org>
15493
15494 * coding.c (coding_set_source): Fix for the case that the current
15495 buffer is different from coding->src_object.
15496 (decode_coding_object): Don't use the conversion work buffer if
15497 DST_OBJECT is a buffer.
15498
15499 2008-02-01 Dave Love <fx@gnu.org>
15500
15501 * lread.c (read_emacs_mule_char) [len==2]: Index
15502 emacs_mule_charset correctly.
15503
15504 2008-02-01 Dave Love <fx@gnu.org>
15505
15506 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15507 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15508 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15509 treated specially.)
15510 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15511 (detected_mask): Remove Big5 bits.
15512
15513 2008-02-01 Kenichi Handa <handa@m17n.org>
15514
15515 The following changes are to make the font rescaling facility
15516 compatible with Emacs 21.
15517
15518 * xfaces.c (Vface_font_rescale_alist): Rename from
15519 Vface_resizing_fonts.
15520 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15521 (font_rescale_ratio): Rename from font_resizing_ratio.
15522 (split_font_name): Set font->rescale_ratio.
15523 (better_font_p): Pay attention to font->rescale_ratio.
15524 (build_scalable_font_name): Likewise. Change RESX, and RESY
15525 fields.
15526 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15527
15528 2008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15531 (Qutf_16_le): Remove these variables.
15532 (syms_of_coding): Don't DEFSYM them.
15533 (decode_coding_utf_16): Fix handling of BOM.
15534 (encode_coding_utf_16): Fix handling of BOM.
15535
15536 2008-02-01 Kenichi Handa <handa@m17n.org>
15537
15538 * fileio.c (Finsert_file_contents): On replacing, before decoding
15539 the file into the work buffer, set point of the work buffer to the end.
15540
15541 2008-02-01 Dave Love <fx@gnu.org>
15542
15543 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15544
15545 2008-02-01 Dave Love <fx@gnu.org>
15546
15547 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15548 and fix C types.
15549
15550 2008-02-01 Kenichi Handa <handa@m17n.org>
15551
15552 * xdisp.c (SKIP_GLYPHS): New macro.
15553 (set_cursor_from_row): Pay attention to string display properties.
15554
15555 * category.c (copy_category_entry): Fix for the case that RANGE
15556 is an integer.
15557
15558 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15559
15560 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15561
15562 2008-02-01 Kenichi Handa <handa@m17n.org>
15563
15564 * charset.c (Fcharset_id_internal): New function.
15565 (syms_of_charset): Defsubr it.
15566
15567 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15568 with the last arg charset_list acquired from coding.
15569 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15570 the attribute coding_attr_ccl_valids.
15571
15572 * coding.h (enum define_coding_ccl_arg_index): Set the first
15573 member coding_arg_ccl_decoder to coding_arg_max.
15574
15575 * ccl.h (ccl_driver): Adjust prototype.
15576
15577 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15578 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
15579 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
15580 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15581 last arg Qnil.
15582
15583 2008-02-01 Kenichi Handa <handa@m17n.org>
15584
15585 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15586 call encode_char.
15587
15588 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15589
15590 2008-02-01 Dave Love <fx@gnu.org>
15591
15592 * composite.c (syms_of_composite): Make composition_hash_table weak.
15593
15594 2008-02-01 Kenichi Handa <handa@m17n.org>
15595
15596 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15597 (font_name_registry): Don't extern them.
15598 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15599
15600 * fontset.h (Qfontset): Don't extern it.
15601 (new_fontset_from_font_name): Extern it.
15602
15603 * fontset.c: Give 8 extra slots to fontset objects.
15604 (Qfontset_info): New variable.
15605 (syms_of_fontset): Defsym it.
15606 (FONTSET_FALLBACK): New macro.
15607 (fontset_face): Try also the default fontset.
15608 (make_fontset): Realize a fallback fontset from the default fontset.
15609 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15610 using split_font_name_into_vector and build_font_name_from_vector.
15611 (Fset_fontset_font): Access the elements of font_spec by enum
15612 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15613 name by using split_font_name_into_vector.
15614 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15615 generate a proper font name from the fontset name. Update
15616 Vfontset_alias_alist.
15617 (n_auto_fontsets): New variable.
15618 (new_fontset_from_font_name): New function.
15619 (Ffont_info): Store the information about fonts generated from the
15620 default fontset in the first extra slot of the returned char-table.
15621
15622 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15623 (font_name_registry): Delete function.
15624 (split_font_name_into_vector): New function.
15625 (build_font_name_from_vector): New function.
15626 (font_list): The argument REGISTRY is now a list of registry names.
15627 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15628 specifies an explicit font name, return the name as is. Make a
15629 list of registy names.
15630
15631 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15632 of x_new_fontset.
15633 (Fx_create_frame): Don't call x_new_fontset here. Just use
15634 x_list_fonts to check the existence of fonts.
15635
15636 * xterm.h (x_new_fontset): Adjust prototype.
15637
15638 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15639 string. Use new_fontset_from_font_name to create a fontset from a
15640 font name.
15641
15642 2008-02-01 Kenichi Handa <handa@m17n.org>
15643
15644 * syntax.c (Vfind_word_boundary_function_table): New name for
15645 Vnext_word_boundary_function_table.
15646 (find-word-boundary-function-table): New name for
15647 next-word-boundary-function-table.
15648
15649 2008-02-01 Dave Love <fx@gnu.org>
15650
15651 * Makefile.in: Fix some dependencies.
15652
15653 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15654 set it to nil before returning.
15655
15656 * composite.c (update_compositions): Fix type error.
15657
15658 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15659
15660 2008-02-01 Kenichi Handa <handa@m17n.org>
15661
15662 * xterm.c (x_new_font): Optimize for the case that the font is
15663 already set for the frame.
15664
15665 2008-02-01 Kenichi Handa <handa@m17n.org>
15666
15667 * chartab.c (char_table_ascii): Check if the char table contents
15668 is sub-char-table or not.
15669 (char_table_set, char_table_set_range): Fix argument to
15670 char_table_ascii.
15671
15672 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15673 (detect_coding_utf_8, detect_coding_utf_16)
15674 (detect_coding_emacs_mule, detect_coding_iso_2022)
15675 (detect_coding_sjis, detect_coding_big5)
15676 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15677 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15678 sequence is valid in this coding system. Change callers.
15679 (MAX_ANNOTATION_LENGTH): New macro.
15680 (ADD_ANNOTATION_DATA): New macro.
15681 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15682 ADD_ANNOTATION_DATA. Change the format of annotation data.
15683 (ADD_CHARSET_DATA): New macro.
15684 (emacs_mule_char): New argument ID. Change callers.
15685 (decode_coding_emacs_mule, decode_coding_iso_2022)
15686 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15687 Produce charset annotation data in coding->charbuf.
15688 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15689 to charset annotation data in coding->charbuf.
15690 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15691 coding->common_flags if the coding system is iso-2022 based and
15692 uses designation.
15693 (produce_composition): Adjust for the new annotation data format.
15694 (produce_charset): New function.
15695 (produce_annotation): Handle charset annotation.
15696 (handle_composition_annotation, handle_charset_annotation): New
15697 functions.
15698 (consume_chars): Handle charset annotation. Utilize the above two
15699 functions.
15700 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15701 buffer, get the deleted text as a string and set
15702 coding->src_object to that string.
15703 (detect_coding, detect_coding_system): Use the new struct
15704 coding_detection_info.
15705
15706 * coding.h (struct coding_detection_info): New structure.
15707 (struct coding_system): Adjust prototype of the member `detector'.
15708 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15709
15710 2008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15713
15714 2008-02-01 Dave Love <fx@gnu.org>
15715
15716 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15717 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15718 to new local and nullify apropos_accumulate before returning.
15719 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15720
15721 2008-02-01 Kenichi Handa <handa@m17n.org>
15722
15723 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15724 correctly.
15725
15726 2008-02-01 Dave Love <fx@gnu.org>
15727
15728 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15729
15730 2008-02-01 Kenichi Handa <handa@m17n.org>
15731
15732 The following changes are to make character composition happen
15733 automatically on displaying.
15734
15735 * Makefile.in (lisp, shortlisp): Add composite.elc.
15736
15737 * composite.h (Qauto_composed, Vauto_composition_function)
15738 (Qauto_composition_function): Extern them.
15739
15740 * composite.c (Vcomposition_function_table)
15741 (Qcomposition_function_table): Delete variables.
15742 (Qauto_composed, Vauto_composition_function)
15743 (Qauto_composition_function): New variables.
15744 (run_composition_function): Don't call
15745 compose-chars-after-function.
15746 (update_compositions): Clear `auto-composed' text property.
15747 (compose_chars_in_text): Delete this function.
15748 (syms_of_composite): Staticpro Qauto_composed and
15749 Qauto_composition_function. Declare Vauto_composition_function as
15750 a Lisp variable.
15751
15752 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15753
15754 * xdisp.c (it_props): Add an entry for Qauto_composed.
15755 (handle_auto_composed_prop): New function.
15756
15757 * xselect.c (selection_data_to_lisp_data): Don't call
15758 compose_chars_in_text.
15759
15760 2008-02-01 Dave Love <fx@gnu.org>
15761
15762 * keyboard.c (read_char): Modify checking around use of
15763 Vkeyboard_translate_table.
15764
15765 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15766 and fix C types.
15767
15768 2008-02-01 Kenichi Handa <handa@m17n.org>
15769
15770 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15771 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15772 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15773 the case that the last byte is '\r' correctly.
15774 (decode_coding): Flush out the unprocessed data correctly.
15775 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15776
15777 2008-02-01 Dave Love <fx@gnu.org>
15778
15779 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15780 Add XK_ISO... case.
15781 (xaw_scroll_callback): Revert last change.
15782
15783 2008-02-01 Kenichi Handa <handa@m17n.org>
15784
15785 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15786
15787 2008-02-01 Kenichi Handa <handa@m17n.org>
15788
15789 * xfaces.c (Vface_resizing_fonts): New variable.
15790 (struct font_name): New member `resizing_ratio'.
15791 (font_resizing_ratio): New function.
15792 (split_font_name): Set font->resizing_ratio.
15793 (better_font_p): Pay attention to font->resizing_ratio.
15794 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15795 RESX, and RESY fields.
15796 (try_alternative_families): Try scalable fonts if
15797 Vscalable_fonts_allowed is not Qt.
15798 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15799
15800 2008-02-01 Dave Love <fx@gnu.org>
15801
15802 * xterm.c (xaw_scroll_callback): Cast correctly.
15803
15804 2008-02-01 Dave Love <fx@gnu.org>
15805
15806 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15807 (lispy_kana_keys): Comment out.
15808 (make_lispy_event) [XK_kana_A]: Comment out.
15809
15810 * xterm.c (xaw_scroll_callback): Cast call_data.
15811 (XTread_socket): Deal with ASCII keysyms.
15812 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15813
15814 2008-02-01 Dave Love <fx@gnu.org>
15815
15816 * xterm.c (Vx_keysym_table): New.
15817 (syms_of_xterm): Initialize it.
15818 (XTread_socket): Use it.
15819 From head: Eliminate incorrect optimization that tried to avoid
15820 decoding the output of X*LookupString.
15821 (x_get_font_repertory): Delete charset declaration.
15822
15823 2008-02-01 Kenichi Handa <handa@m17n.org>
15824
15825 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15826 return 0.
15827 (Fdefine_coding_system_internal): Setup
15828 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15829
15830 2008-02-01 Dave Love <fx@gnu.org>
15831
15832 * coding.c (Fcheck_coding_system): Doc fix.
15833
15834 * editfns.c (Finsert_byte): Return a proper value.
15835
15836 2008-02-01 Kenichi Handa <handa@m17n.org>
15837
15838 * coding.c (decode_coding): Fix args to translate_chars. Pay
15839 attention to Vstandard_translation_table_for_decode.
15840 (encode_coding): Fix args to translate_chars. Pay attention to
15841 Vstandard_translation_table_for_encode.
15842
15843 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15844 SINGLE_BYTE_CHAR_P.
15845
15846 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15847 not by SINGLE_BYTE_CHAR_P.
15848
15849 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15850 SINGLE_BYTE_CHAR_P.
15851
15852 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15853 SINGLE_BYTE_CHAR_P.
15854
15855 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15856 by SINGLE_BYTE_CHAR_P.
15857
15858 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15859 SINGLE_BYTE_CHAR_P.
15860
15861 2008-02-01 Dave Love <fx@gnu.org>
15862
15863 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15864
15865 2008-02-01 Dave Love <fx@gnu.org>
15866
15867 * fns.c (Flanginfo): Fix typo.
15868
15869 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15870
15871 2008-02-01 Kenichi Handa <handa@m17n.org>
15872
15873 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15874 (detect_coding_emacs_mule, detect_coding_iso_2022)
15875 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15876 incomplete byte sequence. Don't update *mask when correctly detected.
15877 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15878 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15879 (detect_coding, detect_coding_system): Adjust for the changes above.
15880
15881 2008-02-01 Kenichi Handa <handa@m17n.org>
15882
15883 * character.c (char_string): Rename from
15884 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15885 (string_char): Rename from string_char.
15886
15887 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15888 if C is greater than MAX_3_BYTE_CHAR.
15889 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15890 string_char instead of string_char_with_unification.
15891
15892 2008-02-01 Dave Love <fx@gnu.org>
15893
15894 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15895
15896 2008-02-01 Kenichi Handa <handa@m17n.org>
15897
15898 * keymap.c (push_key_description): Pay attention to force_multibyte.
15899
15900 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15901
15902 2008-02-01 Dave Love <fx@gnu.org>
15903
15904 * charset.c (define_charset_internal): Rename `supprementary'.
15905
15906 * Makefile.in (lisp, shortlisp): Remove latin-N.
15907
15908 2008-02-01 Dave Love <fx@gnu.org>
15909
15910 * xfns.c (x_window, x_window): Use use_xim.
15911
15912 * xterm.c (use_xim): Initialize.
15913 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15914 (x_term_init): Maybe set use_xim.
15915
15916 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15917
15918 2008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * search.c (search_buffer): Fix case-fold-search of multibyte
15921 characters.
15922 (boyer_moore): Rename the last argument to char_high_bits.
15923
15924 2008-02-01 Kenichi Handa <handa@m17n.org>
15925
15926 * xdisp.c (display_string): Fix for the case of zero width glyph.
15927
15928 * xfns.c (x_set_font): Change the error message of the case that
15929 x_new_fontset returns Qt.
15930
15931 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15932 (Finternal_set_lisp_face_attribute): Use signal_error for the
15933 error of invalid fontset.
15934
15935 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15936 fontset, return Qt.
15937
15938 2008-02-01 Dave Love <fx@gnu.org>
15939
15940 * unexelf.c (unexec): Make .got handling not SGI-specific.
15941
15942 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15943
15944 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15945
15946 * keyboard.c (read_key_sequence): Fix type error.
15947
15948 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15949 type error.
15950
15951 * fontset.c (fontset_add): Return Lisp_Object.
15952
15953 2008-02-01 Dave Love <fx@gnu.org>
15954
15955 * charset.h (charset_ordered_list_tick): Declare extern.
15956
15957 2008-02-01 Kenichi Handa <handa@m17n.org>
15958
15959 The following changes (and some of 2008-02-01 changes of mine) are
15960 for handling syntax, category, and case conversion for unibyte
15961 characters by converting them to multibyte on the fly. With these
15962 changes, we don't have to setup syntax and case tables for unibyte
15963 characters in each language environment.
15964
15965 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15966 multibyte if necessary.
15967
15968 * bytecode.c (Fbyte_code): Likewise.
15969
15970 * character.h (LEADING_CODE_LATIN_1_MIN)
15971 (LEADING_CODE_LATIN_1_MAX): New macros.
15972 (unibyte_to_multibyte_table): Extern it.
15973 (unibyte_char_to_multibyte): New macro.
15974 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15975 (CHAR_LEADING_CODE): New macro.
15976 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15977
15978 * character.c (unibyte_to_multibyte_table): New variable.
15979 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15980 (multibyte_char_to_unibyte): If C is an eight-bit character,
15981 convert it to the corresponding byte value.
15982
15983 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15984 not 1, signals an error. Update the elements of
15985 unibyte_to_multibyte_table.
15986 (init_charset_once): Initialize unibyte_to_multibyte_table.
15987 (syms_of_charset): Define the charset `iso-8859-1'.
15988
15989 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15990 as is without converting it to unibyte. In a unibyte buffer,
15991 convert C to multibyte before checking the syntax.
15992
15993 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15994
15995 * minibuf.c (Fminibuffer_complete_word): Use the macro
15996 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15997
15998 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15999
16000 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16001 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16002 that is zero, convert an eight-bit char to multibyte.
16003 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16004 non-emacs case.
16005 (PATFETCH): Convert an eight-bit char to multibyte.
16006 (HANDLE_UNIBYTE_RANGE): New macro.
16007 (regex_compile): Setup the compiled pattern for multibyte chars
16008 even if the given regex string is unibyte. Use PATFETCH_RAW
16009 instead of PATFETCH in many places. To handle `charset'
16010 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16011 only for ASCII chars.
16012 (analyse_first) <exactn>: Simplify because the compiled pattern
16013 is multibyte.
16014 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16015 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16016 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16017 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16018 multibyte always 1.
16019 (re_search_2): In emacs, set the locale variable multibyte to 1,
16020 otherwise to 0. New local variable target_multibyte. Check it
16021 to decide the multibyteness of STR1 and STR2. If
16022 target_multibyte is zero, convert unibyte chars to multibyte
16023 before translating and checking fastmap.
16024 (TARGET_CHAR_AND_LENGTH): New macro.
16025 (re_match_2_internal): In emacs, set the locale variable multibyte
16026 to 1, otherwise to 0. New local variable target_multibyte. Check
16027 it to decide the multibyteness of STR1 and STR2. Use
16028 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16029 <charset, charset_not>: If multibyte is nonzero, check fastmap
16030 only for ASCII chars. Call bcmp_translate with
16031 target_multibyte, not with multibyte.
16032 <begline>: Declare the local variable C as `unsigned'.
16033 (bcmp_translate): Change the last arg name to target_multibyte.
16034
16035 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16036 the regexp pattern and the matching target. Set cp->buf.multibyte
16037 to the multibyteness of the regexp pattern. Set
16038 cp->but.target_multibyte to the multibyteness of the matching target.
16039 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16040 FETCH_STRING_CHAR_ADVANCE.
16041 (Freplace_match): Convert unibyte chars to multibyte.
16042
16043 * syntax.c (char_quoted, back_comment, scan_words)
16044 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16045 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16046 unibyte chars to multibyte.
16047 (skip_chars): Delete the arg syntaxp, and move the code for
16048 handling syntaxes to skip_syntaxes. Change callers.
16049 Fix the case that the multibyteness of STRING and the current
16050 buffer doesn't match.
16051 (skip_syntaxes): New function.
16052 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16053 SINGLE_BYTE_CHAR_P.
16054
16055 2008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * xfaces.c (QCfontset): New variable.
16058 (LFACE_FONTSET): New macro.
16059 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16060 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16061 (Finternal_set_lisp_face_attribute)
16062 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16063 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16064 check also LFACE_FONTSET_INDEX.
16065 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16066 attrs[LFACE_FONT_INDEX].
16067 (syms_of_xfaces): Intern and staticpro QCfontset.
16068
16069 * dispextern.h (enum lface_attribute_index): New member
16070 LFACE_FONTSET_INDEX.
16071
16072 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16073
16074 2008-02-01 Kenichi Handa <handa@m17n.org>
16075
16076 * coding.c (coding_set_destination): Fix coding->destination for
16077 the case converting a region.
16078 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16079 (encode_coding_object): Fix coding->dst_pos and
16080 coding->dst_pos_byte for the case converting a region.
16081
16082 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16083
16084 * character.h (BYTE8_STRING): New macro.
16085
16086 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16087
16088 2008-02-01 Kenichi Handa <handa@m17n.org>
16089
16090 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16091 characters by octal form.
16092
16093 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16094
16095 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16096 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16097 _fetch_multibyte_char_len.
16098 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16099
16100 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16101
16102 * casefiddle.c (casify_object): Simplify. Handle the case that
16103 the case conversion change the byte length.
16104 (casify_region): Likewise.
16105
16106 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16107
16108 * character.c (_fetch_multibyte_char_len): Delete this variable.
16109 (syms_of_character): Setup Vprintable_chars.
16110
16111 * editfns.c (Fchar_equal): Fix for the unibyte case.
16112 (Finsert_byte): New function.
16113 (syms_of_editfns): Defsubr it.
16114
16115 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16116 of direct code 0x3ffff.
16117
16118 * search.c (Freplace_match): Fix for the unibyte case.
16119
16120 2008-02-01 Kenichi Handa <handa@m17n.org>
16121
16122 * lread.c (safe_to_load_p): Fix the logic.
16123
16124 * syntax.c (scan_words): Don't treat characters belonging to
16125 different scripts as constituting a word.
16126
16127 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16128
16129 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16130
16131 * emacs.c (main): In the case of --unibyte, instead of aborting on
16132 finding non-empty buffer, make it unibyte.
16133
16134 2008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16137 to create a fontset.
16138
16139 2008-02-01 Dave Love <fx@gnu.org>
16140
16141 * character.c (Funibyte_char_to_multibyte): Doc fix.
16142
16143 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16144
16145 2008-02-01 Kenichi Handa <handa@m17n.org>
16146
16147 * fontset.c (fontset_add): Make the type `int'.
16148 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16149
16150 * character.c (unibyte_char_to_multibyte)
16151 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16152 charset_unibyte, not charset_primary.
16153
16154 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16155
16156 * charset.c (charset_unibyte): Rename from charset_primary.
16157 (Funibyte_charset): Rename from Fprimary_charset.
16158 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16159 (syms_of_charset): Adjust for the above changes.
16160
16161 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16162 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16163 it->multibyte_p is zero.
16164
16165 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16166 Delete extern.
16167
16168 2008-02-01 Kenichi Handa <handa@m17n.org>
16169
16170 * coding.c (Fdefine_coding_system_internal): Fix category setting
16171 for a coding system of type iso-2022.
16172
16173 2008-02-01 Kenichi Handa <handa@m17n.org>
16174
16175 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16176
16177 2008-02-01 Kenichi Handa <handa@m17n.org>
16178
16179 * syntax.c (Vnext_word_boundary_function_table): New variable.
16180 (next-word-boundary-function-table): Declare it as a Lisp variable
16181 in syms_of_syntax.
16182 (scan_words): Call functions in Vnext_word_boundary_function_table
16183 if any.
16184
16185 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16186
16187 * fontset.c (fs_load_font): If fontp->charset is not negative,
16188 return fontp without setting its members.
16189
16190 2008-02-01 Dave Love <fx@gnu.org>
16191
16192 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16193
16194 * m/sparc.h (HAVE_ALLOCA): Delete.
16195
16196 * s/irix6-5.h: Don't include strings.h.
16197 (bcopy, bzero, bcmp): Don't undef.
16198
16199 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16200
16201 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16202 (TIOCSIGSEND): Don't test IRIX6.
16203 (bcopy, bzero, bcmp): Define conditionally.
16204
16205 2008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * buffer.c (Qas, Qmake, Qto): New variables.
16208 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16209 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16210
16211 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16212 we are inserting a process output into a multibyte buffer.
16213
16214 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16215 multibyte_char_to_unibyte.
16216
16217 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16218 by the primary charset, make it eight-bit char.
16219 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16220
16221 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16222 (charset_8_bit__control, charset_8_bit_graphic)
16223 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16224 (define_charset_internal): New function.
16225 (syms_of_charset): Call define_charset_internal for pre-defined
16226 charsets.
16227
16228 * charset.h (charset_8_bit): Extern it.
16229
16230 * coding.c (make_conversion_work_buffer): Adjust for the change
16231 of Fset_buffer_multibyte.
16232 (encode_coding_raw_text): Increment p0 in the loop.
16233
16234 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16235
16236 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16237 for the change of Fset_buffer_multibyte.
16238
16239 * fns.c (Fstring_to_multibyte): New function.
16240 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16241
16242 2008-02-01 Dave Love <fx@gnu.org>
16243
16244 * xfns.c (x_put_x_image): Declare args.
16245
16246 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16247 (try_font_list): Declare an arg.
16248
16249 * xdisp.c (message2_nolog, set_message): Declare an arg.
16250
16251 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16252
16253 * syntax.c (scan_sexps_forward): Declare an arg.
16254
16255 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16256 Declare an arg.
16257
16258 * lisp.h (Fnew_fontset): Declare.
16259
16260 * keymap.c (push_key_description): Call CHARACTERP correctly.
16261
16262 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16263 (face_for_char): Delete unused vars.
16264 (Fset_fontset_font): Doc fix. Delete unused vars.
16265
16266 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16267
16268 * composite.c (update_compositions): Declare arg.
16269
16270 * cm.c (calccost, cmgoto): Declare args.
16271
16272 * charset.c: Remove `emacs' conditional. Doc fixes.
16273 (map_char_table_for_charset): Declare.
16274
16275 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16276
16277 * ccl.c: Remove `emacs' conditional.
16278
16279 2008-02-01 Kenichi Handa <handa@m17n.org>
16280
16281 The following changes are to allow specifying multiple font
16282 patterns for a character range (specified by script or charset).
16283
16284 * Makefile.in (abbrev.o): Depend on syntax.h.
16285 (xfaces.o): Depend on charset.h.
16286
16287 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16288 SINGLE_BYTE_CHAR_P.
16289
16290 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16291
16292 * character.h (Vchar_script_table): Extern it.
16293
16294 * character.c (Vscript_alist): Delete.
16295 (Vchar_script_table, Qchar_script_table): New variable.
16296 (syms_of_character): Declare Vchar_script_table as a lisp variable
16297 and initialize it.
16298
16299 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16300 have property char-table-extra-slots, make no extra slot.
16301
16302 * dispextern.h (struct face): Delete member `charset'.
16303 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16304 SINGLE_BYTE_CHAR_P.
16305 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16306 Add prototypes.
16307 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16308 (generate_ascii_font_name): Rename from generate_ascii_font.
16309
16310 * fontset.h (get_font_repertory_func): New prototype.
16311 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16312 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16313
16314 * fontset.c (Qprepend, Qappend): New variables.
16315 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16316 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16317 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16318 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16319 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16320 (load_font_get_repertory): New functions.
16321 (fontset_set): Delete.
16322 (fontset_face): New arg FACE. Return face ID, not face.
16323 Complete re-write to handle new fontset structure. Change caller.
16324 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16325 (face_for_char): Don't call lookup_face.
16326 (make_fontset_for_ascii_face): New arg FACE.
16327 (fs_load_font): New arg CHARSET_ID. Don't check
16328 Vfont_encoding_alist here.
16329 (find_font_encoding): New function.
16330 (list_fontsets): Use STRINGP, not ! NILP.
16331 (accumulate_script_ranges): New function.
16332 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16333 re-written to handle new fontset structure.
16334 (Ffontset_font): Return a copy of element.
16335 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16336 docstring of font-encoding-alist.
16337
16338 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16339 (Fset_fotset_font): Fix arguments to 5.
16340
16341 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16342
16343 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16344 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16345 (highlight_trailing_whitespace): Adjust for the change of
16346 lookup_named_face.
16347
16348 * xfaces.c: Include charset.h.
16349 (load_face_font): Delete argument C. Change caller.
16350 (generate_ascii_font_name): Rename from generate_ascii_font.
16351 (font_name_registry): New function.
16352 (cache_face): Store ascii faces before non-ascii faces in buckets.
16353 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16354 Lookup only ascii faces.
16355 (lookup_non_ascii_face): New function.
16356 (lookup_named_face): Delete argument C. Change caller.
16357 (lookup_derived_face): Delete argument C. Change caller.
16358 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16359 a string, just call font_list with it.
16360 (choose_face_font): Delete arguments FACE and C. New arg
16361 FONT_SPEC. Change caller.
16362 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16363 Change caller.
16364 (realize_non_ascii_face): New function.
16365 (realize_x_face): Call load_face_font here.
16366 (realize_tty_face): Delete argument C. Change caller.
16367 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16368 get a face ID.
16369 (dump_realized_face): Don't print charset of FACE.
16370
16371 * xfns.c (x_set_font): Always call x_new_fontset and
16372 store_frame_parameter.
16373 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16374 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16375
16376 * xterm.h (x_get_font_repertory): Extern it.
16377
16378 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16379 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16380 it->multibyte_p is zero.
16381 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16382 (x_new_fontset): If FONTSETNAME doesn't match any existing
16383 fontsets, create a new one.
16384 (x_get_font_repertory): New function.
16385
16386 2008-02-01 Kenichi Handa <handa@m17n.org>
16387
16388 * coding.c (Ffind_coding_systems_region_internal): Detect an
16389 ASCII only string correctly.
16390
16391 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16392 version is 0.
16393
16394 2008-02-01 Kenichi Handa <handa@m17n.org>
16395
16396 * lread.c: Include "coding.h".
16397 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16398 (load_each_byte, unread_char): New variables.
16399 (readchar_backlog): Delete.
16400 (readchar): Return a character unless load_each_byte is nonzero.
16401 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16402 cons. If unread_char is not -1, simply return it.
16403 (unreadchar): Handle the case that readcharfun is
16404 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16405 (read_multibyte): Delete.
16406 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16407 (read_emacs_mule_char): New functions.
16408 (Fload): Even if the file doesn't have the extension ".elc", if
16409 safe_to_load_p returns a positive version number, assume that the
16410 file contains bytecompiled code. If the version is less than 22,
16411 load the file while decoding multibyte sequences by emacs-mule.
16412 (readevalloop): Don't use readchar_backlog.
16413 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16414 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16415 (read_escape): Delete the arg BYTEREP.
16416 (read1): Set load_each_byte to 1 temporarily while handling
16417 #@NUMBER. Don't call read_multibyte.
16418 (read_vector): Call Fread with a cons. If readcharfun is
16419 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16420 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16421 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16422 and Qload_force_doc_strings.
16423
16424 2008-02-01 Kenichi Handa <handa@m17n.org>
16425
16426 * xdisp.c (face_before_or_after_it_pos): Call
16427 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16428
16429 2008-02-01 Kenichi Handa <handa@m17n.org>
16430
16431 * character.h (TRAILING_CODE_P): New macro.
16432 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16433 (string_char_with_unification): Fix prototype.
16434 (Vscript_alist): Extern it.
16435
16436 * character.c (Vscript_alist): New variable.
16437 (string_char_with_unification, str_as_unibyte)
16438 (string_escape_byte8): Add `const' to local variables.
16439 (syms_of_character): Declare script-alist as a Lisp variable.
16440
16441 * charset.h (Vcharset_ordered_list): Extern it.
16442 (charset_ordered_list_tick): Extern it.
16443 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16444 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16445 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16446 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16447 (Funify_charset): Adjust for the change of Funify_charset.
16448
16449 * charset.c (charset_ordered_list_tick): New variable.
16450 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16451 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16452 deunify intead of unify a charset.
16453 (string_xstring_p): Add `const' to local variables.
16454 (find_charsets_in_text): Add `const' to arguments and local variables.
16455 (encode_char): Adjust for the change of Funify_charset. Fix
16456 detecting of invalid code.
16457 (Fset_charset_priority): Increment charset_ordered_list_tick.
16458 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16459 and TO_CODE.
16460
16461 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16462 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16463 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16464 (decode_coding_ccl, consume_chars)
16465 (Ffind_coding_systems_region_internal)
16466 (Fcheck_coding_systems_region): Add `const' to local variables.
16467
16468 * print.c (print_object): Use octal form for printing the
16469 contents of a bool vector.
16470
16471 2008-02-01 Dave Love <fx@gnu.org>
16472
16473 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16474 <version == 20>: Refuse to load.
16475
16476 2008-02-01 Dave Love <fx@gnu.org>
16477
16478 * fns.c: Move coding.h.
16479 (Qcodeset, Qdays, Qmonths): New.
16480 (concat): Use CHARACTERP instead of INTEGERP.
16481 (Flocale_codeset): Delete.
16482 (Flanginfo): New function.
16483 (syms_of_fns): Change accordingly.
16484
16485 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16486
16487 2008-02-01 Dave Love <fx@gnu.org>
16488
16489 * casetab.c (init_casetab_once, init_casetab_once): Fix
16490 CHAR_TABLE_SET call.
16491
16492 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16493
16494 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16495
16496 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16497 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16498 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16499
16500 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16501
16502 * coding.c (ENCODE_DESIGNATION, decode_eol)
16503 (make_conversion_work_buffer, code_conversion_restore)
16504 (Fdefine_coding_system_internal): Convert Lisp types.
16505 (code_conversion_restore): Use EQ, not ==.
16506 (Fencode_coding_string): Fix code_convert_string call.
16507
16508 * coding.h (code_convert_region): Fix prototype.
16509
16510 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16511
16512 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16513 (Ffontset_info): Convert Lisp types.
16514
16515 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16516
16517 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16518
16519 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16520
16521 * chartab.c: Include "...h", not <...h> in some cases.
16522
16523 * callproc.c (Fcall_process): Remove unused variables.
16524
16525 2008-02-01 Dave Love <fx@gnu.org>
16526
16527 * coding.c (Fset_coding_system_priority): Allow null arg list.
16528
16529 2008-02-01 Dave Love <fx@gnu.org>
16530
16531 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16532 (Fself_insert_and_exit): Use CHARACTERP.
16533
16534 * callproc.c (Fcall_process): Remove unused vars.
16535
16536 * xterm.c (XTread_socket): Add extra dead keysyms.
16537
16538 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16539
16540 * dispextern.h: Remove prototypes for redraw_frame,
16541 redraw_garbaged_frames.
16542
16543 * cmds.c (Fself_insert_command): Use CHARACTERP.
16544
16545 * chartab.c (make_sub_char_table): Remove unused var.
16546 (Fset_char_table_default, Fmap_char_table): Doc fix.
16547
16548 * keymap.c (access_keymap): Remove generic char code.
16549 (push_key_description): Use CHARACTERP.
16550
16551 2008-02-01 Dave Love <fx@gnu.org>
16552
16553 * charset.c: Doc fixes.
16554 (Funify_charset): Extra checking.
16555
16556 2008-02-01 Dave Love <fx@gnu.org>
16557
16558 * lread.c: Remove some unused variables.
16559 (safe_to_load_p): If safe, return the magic number version byte.
16560 (Fload): Maybe use load-with-code-conversion.
16561
16562 2008-02-01 Kenichi Handa <handa@m17n.org>
16563
16564 * category.c (Fmodify_category_entry): Don't modify the contents
16565 of category_set for characters out of the range. Avoid
16566 unnecessary modification.
16567
16568 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16569 Vchar_unify_table. The default value of the table is now nil.
16570
16571 * character.c (syms_of_character): Setup Vchar_width_table for
16572 eight-bit-control and raw-byte chars.
16573
16574 * charset.h (enum define_charset_arg_index): Delete
16575 charset_arg_parents and add charset_arg_subset and
16576 charset_arg_superset.
16577 (enum charset_attr_index): Delete charset_parents and add
16578 charset_subset and charset_superset.
16579 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16580 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16581 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16582 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16583 (CHARSET_SUPERSET): New macros.
16584 (charset_work): Extern it.
16585 (ENCODE_CHAR): Use charset_work.
16586 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16587 (map_charset_chars): Extern it.
16588
16589 * charset.c (load_charset_map): Set the default value of encoder
16590 and deunifier char-tables to nil.
16591 (map_charset_chars): Change argument. Change callers. Use
16592 map_char_table_for_charset instead of map_char_table.
16593 (Fmap_charset_chars): New optional args from_code and to_code.
16594 (Fdefine_charset_internal): Adjust for the change of
16595 `define-charset' (:parents -> :subset or :superset).
16596 (charset_work): New variable.
16597 (encode_char, syms_of_charset): Adjust for the change of
16598 Fdefine_charset_internal.
16599 (Ffind_charset_string): Setup the vector `charsets' correctly.
16600
16601 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16602 the previous change.
16603 (char_table_ref_and_range): Adjust for the above change.
16604 (map_sub_char_table_for_charset): New function.
16605 (map_char_table_for_charset): New function.
16606
16607 * keymap.c (describe_vector): Handle a char-table directly here.
16608 (describe_char_table): Delete.
16609
16610 * lisp.h (map_charset_chars): Delete.
16611
16612 2008-02-01 Dave Love <fx@gnu.org>
16613
16614 * fns.c (count_combining): Comment out (unused).
16615 (Flocale_codeset): New.
16616 (syms_of_fns): Defsubr it.
16617
16618 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16619 (size_t): Remove.
16620
16621 2008-02-01 Dave Love <fx@gnu.org>
16622
16623 * Makefile.in (chartab.o): Depend on charset.h.
16624
16625 2008-02-01 Kenichi Handa <handa@m17n.org>
16626
16627 * character.c (syms_of_character): Set the default value of
16628 Vprintable_chars to Qnil.
16629
16630 2008-02-01 Dave Love <fx@gnu.org>
16631
16632 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16633
16634 2008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * charset.c (load_charset_map): Handle the case that from < to
16637 correctly.
16638
16639 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16640 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16641 Pay attention to raw-8-bit chars.
16642
16643 2008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16646 It is not bytecompiled now.
16647
16648 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16649 (charset_jisx0208): New variables.
16650 (Fdefine_charset_internal): Setup them if appropriate.
16651 (init_charset_once): Initialize them to -1.
16652
16653 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16654 (charset_jisx0208): Extern them.
16655
16656 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16657 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16658 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16659 (setup_iso_safe_charsets): Fix arguments to Fassq.
16660 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16661 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16662 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16663 (encode_coding_iso_2022): Change the 1st arg to
16664 ENCODE_ISO_CHARACTER to a variable.
16665
16666 2008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * charset.h (enum define_charset_arg_index): New enums
16669 charset_arg_min_code and charset_arg_max_code.
16670 (struct charset): New member char_index_offset.
16671
16672 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16673 Take charset->char_index_offset into account.
16674 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16675 args[charset_arg_max_code]. Setup charset.char_index_offset.
16676 (syms_of_charset): Fix args to Fdefine_charset_internal.
16677
16678 2008-02-01 Dave Love <fx@gnu.org>
16679
16680 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16681
16682 2008-02-01 Dave Love <fx@gnu.org>
16683
16684 * coding.c: Doc fixes.
16685 (Fcoding_system_aliases): Fix return value.
16686 (Qmac): Remove (duplicated) definition.
16687
16688 2008-02-01 Dave Love <fx@gnu.org>
16689
16690 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16691 New functions.
16692
16693 * character.c (Fstring): Doc fix.
16694
16695 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16696
16697 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
16698 (font-encoding-alist): Doc fix.
16699
16700 2008-02-01 Dave Love <fx@gnu.org>
16701
16702 * term.c (costs_set): Declare static, non-initialized for pcc.
16703 (encode_terminal_code): Remove unused var.
16704
16705 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16706 for K&R.
16707
16708 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16709
16710 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16711 (suffixes): Move out of make_subsidiaries for K&R.
16712
16713 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16714
16715 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16716
16717 2008-02-01 Dave Love <fx@gnu.org>
16718
16719 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16720
16721 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16722
16723 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16724
16725 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16726
16727 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16728
16729 2008-02-01 Kenichi Handa <handa@m17n.org>
16730
16731 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16732 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16733
16734 2008-02-01 Kenichi Handa <handa@m17n.org>
16735
16736 * coding.c (decode_coding_charset): Adjust for the change of
16737 Fdefine_coding_system_internal.
16738 (Fdefine_coding_system_internal): For a coding system of
16739 `charset' type, store a list of charset IDs in
16740 `charset_attr_charset_valids' element of coding attributes.
16741
16742 2008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16745 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16746 caller. Handle 2-byte and 3-byte charsets correctly.
16747 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16748 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16749 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16750 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16751 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16752 sequence.
16753 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16754 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16755 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16756 and alt&rule composition.
16757 (decode_coding_iso_2022): Handle composition correctly.
16758 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16759
16760 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16761 re-defining a charset. If the charset has :emacs-mule-id, setup
16762 emacs_mule_bytes.
16763 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16764
16765 2008-02-01 Kenichi Handa <handa@m17n.org>
16766
16767 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16768 (encode_coding_big5, encode_coding_charset): If coding requires safe
16769 encoding, produce a character specified by
16770 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16771
16772 2008-02-01 Dave Love <fx@gnu.org>
16773
16774 * xterm.c (XSetIMValues): Declare.
16775
16776 * process.c: Conditionally include sys/wait.h, pty.h.
16777
16778 * print.c (print_object): Fix print format for 64-bit systems.
16779
16780 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16781
16782 * buffer.c (emacs_strerror): Declare.
16783
16784 * fontset.c (Fclear_face_cache): Declare.
16785 (accumulate_font_info): Comment-out (unused).
16786 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16787 variables.
16788
16789 * character.h (string_escape_byte8): Declare.
16790
16791 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16792 unused vars.
16793 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16794 (Fmap_charset_chars): Doc fix.
16795
16796 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16797 (Fset_coding_system_priority, Fset_coding_system_priority)
16798 (Fdefine_coding_system_internal): Doc fix.
16799
16800 2008-02-01 Dave Love <fx@gnu.org>
16801
16802 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16803
16804 2008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * character.c (string_escape_byte8): Make multibyte string with
16807 correct size.
16808
16809 * charset.c (Fmake_char): Delete unnecessary code.
16810
16811 2008-02-01 Kenichi Handa <handa@m17n.org>
16812
16813 * xfns.c (x_encode_text): Allocate coding.destination here, and
16814 call encode_coding_object with dst_object Qnil.
16815
16816 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16817 multibyte form correctly.
16818
16819 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16820 against Vfont_encoding_alist.
16821
16822 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16823 handling of charset list.
16824 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16825 (decode_coding_object): Move point to coding->dst_pos before
16826 calling post-read-conversion function.
16827 (encode_coding_object): Give correct arguments to
16828 pre-write-conversion. Ignore the return value of
16829 pre-write-conversion function. Pay attention to the case that
16830 pre-write-conversion changes the current buffer. If dst_object is
16831 Qt, even if coding->src_bytes is zero, allocate at least one byte
16832 to coding->destination.
16833
16834 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16835
16836 * charset.c (Fmake_char): Make it more backward compatible.
16837 (Fmap_charset_chars): Fix docstring.
16838
16839 2008-02-01 Dave Love <fx@gnu.org>
16840
16841 * coding.c: Doc fixes.
16842 (Fdefine_coding_system_alias): Use names, not symbols, in
16843 coding-system-alist.
16844
16845 2008-02-01 Kenichi Handa <handa@m17n.org>
16846
16847 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16848 of calling free_realized_face.
16849
16850 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16851
16852 * charset.c (read_hex): Don't treat SPC as a comment starter.
16853 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16854 (Fdecode_char): Fix typo.
16855
16856 2008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 * charset.h (struct charset): New member `code_space_mask'.
16859
16860 * coding.c (coding_set_source): Delete the local variable beg_byte.
16861 (encode_coding_charset, Fdefine_coding_system_internal):
16862 Delete the local variable charset.
16863 (Fdefine_coding_system_internal): Setup
16864 attrs[coding_attr_charset_valids] correctly.
16865
16866 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16867 member to check if CODE is valid or not.
16868 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16869 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16870 is within the range of charset->min_code and carset->max_code.
16871
16872 2008-02-01 Dave Love <fx@gnu.org>
16873
16874 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16875
16876 * dispextern.h (generate_ascii_font): Fix return type.
16877
16878 * xfaces.c (generate_ascii_font): Fix arg declaration.
16879
16880 * coding.c (coding_inherit_eol_type)
16881 (Fset_terminal_coding_system_internal)
16882 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16883
16884 2008-02-01 Kenichi Handa <handa@m17n.org>
16885
16886 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16887 multiple charsets correctly.
16888
16889 2008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * search.c (boyer_moore): Fix handling of multibyte character
16892 translation.
16893
16894 * xdisp.c (display_mode_element): When the variable `elt' is
16895 changed, update `this' and `lisp_string'.
16896
16897 2008-02-01 Kenichi Handa <handa@m17n.org>
16898
16899 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16900
16901 * callproc.c (Fcall_process): Be sure to give the current buffer
16902 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16903
16904 * charset.c (struct charset_map_entries): New struct.
16905 (load_charset_map): Rename from parse_charset_map. New args
16906 entries and n_entries. Change caller.
16907 (load_charset_map_from_file): Rename from load_charset_map.
16908 Change caller. New arg control_flag. Call load_charset_map at
16909 the tail.
16910 (load_charset_map_from_vector): New function.
16911 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16912 (encode_char): If the charset is compact, change a character index
16913 to a code point.
16914
16915 * coding.c (coding_alloc_by_making_gap): Check the case that the
16916 source and destination are the same correctly.
16917 (decode_coding_raw_text): Set coding->consumed_char and
16918 coding->consumed to 0.
16919 (produce_chars): If coding->chars_at_source is nonzero, update
16920 coding->consumed_char and coding->consumed before calling
16921 alloc_destination.
16922 (Fdefine_coding_system_alias): Register ALIAS in
16923 Vcoding_system_alist.
16924 (syms_of_coding): Define `no-conversion' coding system at the tail.
16925
16926 * fileio.c (Finsert_file_contents): Set coding_system instead of
16927 val. If the current buffer is multibyte, always call
16928 decode_coding_gap.
16929
16930 * xfaces.c (try_font_list): Give higher priority to fontset's
16931 family than face's family.
16932
16933 2008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * callproc.c (Fcall_process): Be sure to give the current buffer
16936 to decode_coding_c_string.
16937
16938 * xfaces.c (try_font_list): Give a family specified in a fontset
16939 higher priority than a family specified in a face.
16940
16941 2008-02-01 Kenichi Handa <handa@m17n.org>
16942
16943 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16944 Fix arguments to insert_from_buffer.
16945
16946 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16947
16948 2008-02-01 Kenichi Handa <handa@m17n.org>
16949
16950 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16951 (decode_coding_gap): Set coding->dst_multibyte correctly.
16952
16953 2008-02-01 Kenichi Handa <handa@m17n.org>
16954
16955 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16956 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16957 (encode_coding_utf_16): Substitute coding->default_char for
16958 non-Unicode characters.
16959 (decode_coding): Don't call record_insert here.
16960 (setup_coding_system): Initialize `surrogate' of
16961 coding->spec.utf_16 to 0.
16962 (EMIT_ONE_BYTE): Fix for multibyte case.
16963
16964 * insdel.c (insert_from_gap): Call record_insert.
16965
16966 2008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * casefiddle.c (casify_region): Fix multibyte case.
16969
16970 * character.c (c_string_width): Add return type `int'.
16971 (char_string_with_unification): Delete arg ADVANCED.
16972
16973 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16974 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16975 (CHAR_STRING_ADVANCE): Make it do-while statement.
16976
16977 * chartab.c (sub_char_table_set_range): Optimize for the case
16978 DEPTH == 3. Add workaround code for a GCC optimization bug.
16979
16980 * charset.c (parse_charset_map): Remove an unused variable.
16981
16982 * coding.c: Delete unused variables.
16983
16984 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16985 earlier. If inserted is zero and the coding system doesn't
16986 require flushing, don't call decode_coding_gap.
16987
16988 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16989
16990 2008-02-01 Kenichi Handa <handa@m17n.org>
16991
16992 The following changes are for using Unicode as an internal
16993 character model, and use UTF-8 format for buffer/string
16994 representation.
16995
16996 * .gdbinit (xchartable): Adjust for the change of char table structure.
16997 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16998
16999 * Makefile.in (obj): Add character.o and chartab.o.
17000 (lisp, shortlisp): Remove utf-8.elc.
17001 (*.o): For many files, change dependency on charset.h to
17002 character.h, and add dependency on character.h.
17003 (character.o, chartab.o): New targets.
17004
17005 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17006 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17007 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17008 of "charset.h".
17009
17010 * dired.c, filelock.c: Include "character.h".
17011
17012 * alloc.c: Include "character.h" instead of "charset.h".
17013 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17014 (syms_of_alloc): Remove defsubr for Smake_char_table.
17015
17016 * buffer.c: Include "character.h" instead of "charset.h", don't
17017 include "coding.h".
17018 (Fset_buffer_multibyte): Adjust for UTF-8.
17019
17020 * buffer.h: EXFUN Fbuffer_live_p.
17021
17022 * callproc.c: Include "character.h" instead of "charset.h".
17023 (Fcall_process): Big change for the new code-conversion APIs.
17024
17025 * casetab.c: Include "character.h" instead of "charset.h".
17026 (set_canon, set_identity, shuffle): Adjust for the new
17027 map_char_table spec.
17028 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17029 accessing the char table structure.
17030
17031 * chartab.c: New file that implements char table.
17032
17033 * category.c: Include "character.h".
17034 (copy_category_entry): New function.
17035 (copy_category_table): Call map_char_table and copy_category_entry.
17036 (Fmake_category_table): Initialize all top-level slots.
17037 (char_category_set): New function.
17038 (modify_lower_category_set): Delete.
17039 (Fmodify_category_entry): Call char_table_ref_and_range.
17040
17041 * category.h (CATEGORY_SET): Just call char_category_set.
17042
17043 * ccl.c: Include "character.h".
17044 (Qccl, Qcclp): New variables.
17045 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17046 it's less than 256.
17047 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17048 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17049 and DST type.
17050 (ccl_driver): Change types of argument, adjust code accordingly.
17051 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17052 ccl_driver.
17053 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17054
17055 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17056 New members src_multibyte, dst_multibyte, consumed, and produced.
17057 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17058 (CODING_SPEC_CCL_PROGRAM): New macro.
17059 (ccl_driver): Update prototype.
17060 (Qccl, Qcclp, Fccl_program_p): Extern them.
17061 (CHECK_CCL_PROGRAM): New macro.
17062
17063 * character.c, character.h, chartab.c: New files.
17064
17065 * charset.c: Mostly re-written. Move character and multibyte sequence
17066 handling codes to character.c.
17067
17068 * charset.h: Mostly re-written. Move character and multibyte sequence
17069 handling codes to character.h.
17070
17071 * coding.c, coding.h: Mostly re-written.
17072
17073 * composite.c: Include "character.h" instead of "charset.h".
17074 (CHAR_WIDTH): Move to character.h.
17075 (HASH_KEY, HASH_VALUE): Delete.
17076
17077 * composite.h (enum composition_method): Change order of enumeration
17078 symbols.
17079
17080 * data.c: Include "character.h" instead of "charset.h".
17081 (Faref): Call CHAR_TABLE_REF for a char table.
17082 (Faset): Call CHAR_TABLE_SET for a char table.
17083
17084 * dispextern.h (free_realized_face, check_face_attribytes)
17085 (generate_ascii_font): Extern them.
17086 (free_realized_multibyte_face): Delete extern.
17087
17088 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17089 table structure.
17090
17091 * editfns.c: Include "character.h" instead of "charset.h".
17092 (Fchar_to_string): Always call CHAR_STRING.
17093
17094 * emacs.c (main): Call init_charset_once, init_charset,
17095 syms_of_chartab, and syms_of_character.
17096
17097 * fileio.c: Include "character.h" instead of "charset.h".
17098 (Finsert_file_contents): Big change for the new code-conversion API.
17099 (choose_write_coding_system, Fwrite_region): Likewise.
17100 (build_annotations_2): Delete.
17101 (e_write): Big change for the new code-conversion API.
17102
17103 * fns.c: Include "character.h" instead of "charset.h".
17104 (copy_sub_char_table): Move to chartab.c.
17105 (Fcopy_sequence): Call copy_char_table for a char table.
17106 (concat): Delete codes calling count_multibyte.
17107 (string_char_to_byte, string_byte_to_char): Adjust for the new
17108 multibyte form.
17109 (internal_equal): Adjust for the change of char table structure.
17110 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17111 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17112 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17113 (char_table_translate, optimize_sub_char_table)
17114 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17115 chartab.c.
17116 (char_table_ref_and_index): Delete.
17117 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17118 (Fmd5): Call preferred_coding_system instead of accessing
17119 Vcoding_category_list. Adjust for the new code-conversion API.
17120 (syms_of_fns): Move defsubr for char table related functions to
17121 chartab.c.
17122
17123 * fontset.c: Mostly re-written.
17124
17125 * fontset.h (struct font_info): Change type of the member encoding_type.
17126 (enum FONT_SPEC_INDEX): New enum.
17127 (fontset_font_pattern, fs_load_font): Update prototype.
17128 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17129
17130 * indent.c: Include "character.h" instead of "charset.h".
17131 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17132
17133 * insdel.c: Include "character.h" instead of "charset.h".
17134 (copy_text): Don't refer to Vnonascii_translation_table.
17135 (insert_from_gap): New function.
17136
17137 * keyboard.c: Include "character.h" instead of "charset.h".
17138 (command_loop_1): Never call direct_output_forward_char before
17139 a non-ASCII character.
17140 (read_char): If Vkeyboard_translate_table is a char table, always
17141 translate a character.
17142
17143 * keymap.c: Include "character.h".
17144 (store_in_keymap): Handle the case that IDX is a cons.
17145 (Fdefine_key): Handle the case that KEY is a cons and the car part
17146 is also a cons (range).
17147 (push_key_description): Adjust for the new character code.
17148 (describe_vector): Call describe_char_table for a char table.
17149 (describe_char_table): New function.
17150
17151 * keymap.h (describe_char_table): Extern it.
17152
17153 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17154 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17155 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17156 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17157 Delete.
17158 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17159 structure.
17160 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17161 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17162 (CHARTAB_SIZE_BITS_3): New macros.
17163 (chartab_size): Extern it.
17164 (struct Lisp_Char_Table): Re-design.
17165 (struct Lisp_Sub_Char_Table): New structure.
17166 (HASH_KEY, HASH_VALUE): Move from fns.c.
17167 (CHARACTERBITS): Define as 22.
17168 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17169 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17170 (GC_SUB_CHAR_TABLE_P): New macro.
17171 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17172 (code_convert_string_norecord): Deleted extern.
17173 (init_character_once, syms_of_character, init_charset)
17174 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17175
17176 * lread.c: Include "character.h".
17177 (read_multibyte): New arg NBYTES.
17178 (read_escape): Change the meaning of returned *BYTEREP.
17179 (to_multibyte): Delete.
17180 (read1): Adjust the handling of char table and string.
17181
17182 * print.c: Include "character.h" instead of "charset.h".
17183 (print_string): Convert 8-bit raw bytes to octal form by
17184 string_escape_byte8.
17185 (print_object): Adjust for the new multibyte form. Print 8-bit
17186 raw bytes always in octal form. Handle sub char table correctly.
17187
17188 * process.c: Include "character.h" instead of "charset.h".
17189 (read_process_output, send_process): Adjust for the new
17190 code-conversion API.
17191
17192 * puresize.h (BASE_PURESIZE): Increase.
17193
17194 * regex.c: Include "character.h" instead of "charset.h".
17195 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17196 (regex_compile): Accept a range whose starting and ending
17197 character have different leading bytes.
17198 (analyse_first): Adjust for the above change.
17199
17200 * search.c: Include "character.h" instead of "charset.h".
17201 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17202 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17203
17204 * syntax.c: Include "character.h" instead of "charset.h".
17205 (syntax_parent_lookup): Delete.
17206 (Fmodify_syntax_entry): Accept a cons as CHAR.
17207 (skip_chars): Adjust for the new multibyte form.
17208 (init_syntax_once): Call char_table_set_range instead of directly
17209 accessing the structure of a char table.
17210
17211 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17212 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17213 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17214 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17215
17216 * term.c: Include "buffer.h" and "character.h".
17217 (encode_terminal_code, write_glyphs): Adjust for the new
17218 code-conversion API.
17219 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17220
17221 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17222
17223 * xdisp.c: Include "character.h".
17224 (get_next_display_element): Adjust for the new multibyte form.
17225 (disp_char_vector): Adjust for the new char table structure.
17226 (decode_mode_spec_coding): Adjust for the new structure of
17227 coding system.
17228 (decode_mode_spec): Adjust for the new code-conversion API.
17229
17230 * xfaces.c: Include "character.h" instead of "charset.h".
17231 (load_face_font): Adjust for the change of choose_face_font and
17232 FS_LOAD_FONT.
17233 (generate_ascii_font): New function.
17234 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17235 (set_font_frame_param): Adjust for the change of choose_face_font.
17236 (free_realized_face): Make it public.
17237 (free_realized_faces_for_fontset): Rename from
17238 free_realized_multibyte_face. Free also faces realized for ASCII.
17239 (choose_face_font): Change arguments. Adjust for the change of
17240 fontset_font_pattern and FS_LOAD_FONT.
17241
17242 * xfns.c: Include "character.h".
17243 (x_encode_text): Adjust for the new code-conversion API.
17244
17245 * xselect.c: Don't include "charset.h".
17246 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17247
17248 * xterm.c: Include "character.h".
17249 (x_encode_char): New argument CHARSET. Change caller.
17250 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17251 Call ENCODE_CHAR instead of SPLIT_CHAR.
17252 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17253 CHAR_WIDTH instead of CHARSET_WIDTH.
17254 (XTread_socket): Adjust for the new code-conversion API.
17255 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17256 (x_load_font): Adjust for the change of struct font.
17257
17258 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17259
17260 * xfaces.c (face_at_buffer_position): Remove unused vars.
17261
17262 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17263
17264 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17265 Fix overflow checking.
17266
17267 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17268
17269 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17270 Cancel previous change.
17271
17272 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17273
17274 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17275 ccl->eight_bit_control. Fix check for buffer overflow.
17276 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17277 (ccl_driver): Initialize extra_bytes to 0.
17278
17279 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17280
17281 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17282 return it ORed with ctrl_modifier.
17283
17284 2008-01-29 Miles Bader <miles@gnu.org>
17285
17286 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17287
17288 2008-01-28 Jason Rumney <jasonr@gnu.org>
17289
17290 * w32.c (stat): Don't double check for networked drive.
17291
17292 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17293
17294 * window.c (run_window_configuration_change_hook): New function.
17295 Code extracted from set_window_buffer. Set the selected frame.
17296 (set_window_buffer): Use it.
17297 * window.h (run_window_configuration_change_hook): Declare.
17298 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17299
17300 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17301
17302 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17303
17304 * Makefile.in: Remove references to unused macros.
17305
17306 2008-01-26 Eli Zaretskii <eliz@gnu.org>
17307
17308 * w32.c (g_b_init_get_sid_sub_authority)
17309 (g_b_init_get_sid_sub_authority_count): New static variables.
17310 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17311 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17312 (init_user_info): Use them to retrieve uid and gid.
17313 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17314 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17315 st_uid and st_gid of the file.
17316
17317 2008-01-26 Jason Rumney <jasonr@gnu.org>
17318
17319 * w32.c (logon_network_drive): New function.
17320 (stat): Use it.
17321
17322 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
17323
17324 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17325 invisible text covered with an ellipsis.
17326
17327 2008-01-25 Richard Stallman <rms@gnu.org>
17328
17329 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17330 jump back to beginning. Move some other initializations after that.
17331 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17332 New variables.
17333 (syms_of_xdisp): Init them.
17334
17335 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17336
17337 * buffer.c (reset_buffer_local_variables):
17338 Implement `permanent-local-hook'.
17339 (Qpermanent_local_hook): New variable.
17340 (syms_of_buffer): Init and staticpro it.
17341
17342 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
17343
17344 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17345
17346 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17347
17348 * fns.c (Fclrhash): Return TABLE.
17349
17350 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17351
17352 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17353 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17354 is set even without positional changes.
17355 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17356
17357 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17358
17359 2008-01-23 Jason Rumney <jasonr@gnu.org>
17360
17361 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17362
17363 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17364 the unicode range available in MULE by locale-coding-system.
17365 Improve dbcs lead byte detection. Set event timestamp and modifiers
17366 earlier.
17367
17368 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17369
17370 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17371 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17372 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17373 when used on child processes.
17374
17375 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
17376
17377 * dbusbind.c (Fdbus_method_return_internal): Rename from
17378 Fdbus_method_return.
17379 (Fdbus_unregister_object): Move to dbus.el.
17380 (Fdbus_call_method, Fdbus_method_return_internal)
17381 (Fdbus_send_signal): Improve debug messages.
17382
17383 2008-01-20 Martin Rudalics <rudalics@gmx.at>
17384
17385 * undo.c (undo_inhibit_record_point): New variable.
17386 (syms_of_undo): Initialize it.
17387 (record_point): Don't record point when undo_inhibit_record_point
17388 is set.
17389
17390 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17391
17392 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17393
17394 * xdisp.c (Qauto_hscroll_mode): New var.
17395 (syms_of_xdisp): Initialize it.
17396 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17397 window's buffer.
17398 (hscroll_windows): Don't check automatic_hscrolling_p here.
17399
17400 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17401 vscroll if we're setting window-buffer to the value it already has.
17402
17403 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17404
17405 * m/intel386.h: Remove references to XENIX.
17406
17407 2008-01-17 Andreas Schwab <schwab@suse.de>
17408
17409 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17410 instead of HAVE_X86_64_LIB64_DIR.
17411 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17412
17413 2008-01-17 Glenn Morris <rgm@gnu.org>
17414
17415 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17416 to HAVE_X86_64_LIB64_DIR.
17417
17418 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17419
17420 * s/irix3-3.h:
17421 * s/irix4-0.h:
17422 * s/386-ix.h:
17423 * s/domain.h:
17424 * s/hpux9-x11r4.h:
17425 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17426
17427 * sysdep.c: Remove code containing references to symbols defined
17428 by unsupported systems.
17429
17430 2008-01-16 Glenn Morris <rgm@gnu.org>
17431
17432 * coding.c (select-safe-coding-system-function): Doc fix.
17433
17434 2008-01-15 Glenn Morris <rgm@gnu.org>
17435
17436 * config.in: Revert 2008-01-13 change: this is a generated file.
17437
17438 2008-01-13 Tom Tromey <tromey@redhat.com>
17439
17440 * lisp.h: Fix typo.
17441
17442 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17443
17444 * m/sequent-ptx.h:
17445 * m/sequent.h:
17446 * s/ptx.h:
17447 * s/ptx4-2.h:
17448 * s/ptx4.h: Remove files for systems no longer supported.
17449
17450 * callproc.c (Fcall_process): Fix previous change.
17451
17452 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17453
17454 * unexsunos4.c: Remove file, system not supported anymore.
17455
17456 * m/mips.h:
17457 * m/intel386.h:
17458 * callproc.c:
17459 * config.in:
17460 * ecrt0.c:
17461 * emacs.c:
17462 * fileio.c:
17463 * frame.c:
17464 * getpagesize.h:
17465 * keyboard.c:
17466 * lread.c:
17467 * process.c:
17468 * puresize.h:
17469 * sysdep.c:
17470 * systty.h:
17471 * syswait.h:
17472 * unexec.c:
17473 * xdisp.c:
17474 * alloc.c: Remove code containing references to symbols defined by
17475 unsupported systems.
17476
17477 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17478
17479 * coding.c (detect_coding_mask): Fix previous change.
17480
17481 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17482
17483 * coding.c (detect_coding_iso2022): New arg
17484 latin_extra_code_state. Allow Latin extra codes only
17485 when *latin_extra_code_state is nonzero.
17486 (detect_coding_mask): If there is a NULL byte, detect the encoding
17487 as UTF-16 or binary. If Latin extra codes exist, detect the
17488 encoding as ISO-2022 only when there's no other proper encoding is
17489 found.
17490
17491 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17492
17493 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17494 #ifdef MAC_OS.
17495
17496 2008-01-08 Richard Stallman <rms@gnu.org>
17497
17498 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17499
17500 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
17501
17502 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17503 menu bar in parentheses.
17504
17505 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17506
17507 * m/7300.h:
17508 * m/acorn.h:
17509 * m/alliant-2800.h:
17510 * m/alliant.h:
17511 * m/alliant1.h:
17512 * m/alliant4.h:
17513 * m/altos.h:
17514 * m/amdahl.h:
17515 * m/apollo.h:
17516 * m/att3b.h:
17517 * m/aviion-intel.h:
17518 * m/aviion.h:
17519 * m/celerity.h:
17520 * m/clipper.h:
17521 * m/cnvrgnt.h:
17522 * m/convex.h:
17523 * m/cydra5.h:
17524 * m/delta88k.h:
17525 * m/dpx2.h:
17526 * m/dual.h:
17527 * m/elxsi.h:
17528 * m/f301.h:
17529 * m/gould-np1.h:
17530 * m/gould.h:
17531 * m/i860.h:
17532 * m/ibmps2-aix.h:
17533 * m/ibmrt-aix.h:
17534 * m/ibmrt.h:
17535 * m/irist.h:
17536 * m/is386.h:
17537 * m/isi-ov.h:
17538 * m/mega68.h:
17539 * m/mg1.h:
17540 * m/news-r6.h:
17541 * m/news-risc.h:
17542 * m/news.h:
17543 * m/nh3000.h:
17544 * m/nh4000.h:
17545 * m/ns16000.h:
17546 * m/ns32000.h:
17547 * m/nu.h:
17548 * m/orion.h:
17549 * m/orion105.h:
17550 * m/paragon.h:
17551 * m/pfa50.h:
17552 * m/plexus.h:
17553 * m/pyramid.h:
17554 * m/pyrmips.h:
17555 * m/sh3el.h:
17556 * m/sps7.h:
17557 * m/sr2k.h:
17558 * m/stride.h:
17559 * m/sun1.h:
17560 * m/sun2.h:
17561 * m/sun3-68881.h:
17562 * m/sun3-fpa.h:
17563 * m/sun3-soft.h:
17564 * m/sun3.h:
17565 * m/sun386.h:
17566 * m/symmetry.h:
17567 * m/tad68k.h:
17568 * m/tahoe.h:
17569 * m/targon31.h:
17570 * m/tek4300.h:
17571 * m/tekxd88.h:
17572 * m/tower32.h:
17573 * m/tower32v3.h:
17574 * m/ustation.h:
17575 * m/wicat.h:
17576 * m/xps100.h:
17577 * s/cxux.h:
17578 * s/cxux7.h:
17579 * s/dgux.h:
17580 * s/dgux4.h:
17581 * s/dgux5-4-3.h:
17582 * s/dgux5-4r2.h:
17583 * s/esix.h:
17584 * s/esix5r4.h:
17585 * s/hiuxmpp.h:
17586 * s/hiuxwe2.h:
17587 * s/iris3-5.h:
17588 * s/iris3-6.h:
17589 * s/isc2-2.h:
17590 * s/isc3-0.h:
17591 * s/isc4-0.h:
17592 * s/isc4-1.h:
17593 * s/newsos5.h:
17594 * s/newsos6.h:
17595 * s/osf1.h:
17596 * s/osf5-0.h:
17597 * s/riscix1-1.h:
17598 * s/riscix12.h:
17599 * s/sco4.h:
17600 * s/sco5.h:
17601 * s/sunos4-0.h:
17602 * s/sunos4-1.h:
17603 * s/sunos413.h:
17604 * s/sunos4shr.h:
17605 * s/umax.h:
17606 * s/unipl5-2.h:
17607 * s/xenix.h:
17608 * cxux-crt0.s:
17609 * unexapollo.c:
17610 * unexconvex.c:
17611 * unexenix.c:
17612 * unexsni.c: Remove files for systems no longer supported.
17613
17614 * m/intel386.h: Remove references to unsupported systems.
17615
17616 * w32.c (get_emacs_configuration): Remove reference to i860.
17617
17618 * sysdep.c: Remove dead code.
17619
17620 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17621
17622 * s/rtu.h:
17623 * m/masscomp.h: Remove files. Platform is obsolete.
17624
17625 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
17626
17627 * dbusbind.c (Fdbus_method_return): New function.
17628 (xd_read_message): Add the serial number to the event.
17629 (Fdbus_register_method): Activate the function.
17630
17631 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17632
17633 * keyboard.c (read_key_sequence): Fix typo.
17634
17635 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
17636
17637 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17638 (xd_signature, xd_append_arg): Handle element type detection for
17639 empty arrays.
17640 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17641 SDATA () calls; this must be solved more general.
17642 (Fdbus_register_signal): Use SBYTES instead of strlen.
17643
17644 2008-01-03 Magnus Henoch <magnus@zemdatav>
17645
17646 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17647 unsigned int for byte values (necessary for big-endian platform).
17648 (Fdbus_call_method): Handle the case of no returned arguments.
17649
17650 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17651
17652 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17653
17654 2007-12-31 Magnus Henoch <mange@freemail.hu>
17655
17656 * dbusbind.c (xd_signature): Signature of variant is just "v".
17657
17658 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
17659
17660 * dbusbind.c: Fix several errors and compiler warnings.
17661 Reported by Tom Tromey <tromey@redhat.com>.
17662 (XD_ERROR, XD_DEBUG_MESSAGE)
17663 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17664 (xd_append_arg): Part for basic D-Bus types rewritten.
17665 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17666 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17667 appropriate.
17668 (xd_read_message): Return Qnil. Don't signal an error; it is not
17669 useful during event reading.
17670 (Fdbus_register_signal): Signal an error if the check for
17671 FUNCTIONP fails.
17672 (Fdbus_register_method): New function. The implementation is not
17673 complete, the call of the function signals an error therefore.
17674 (Fdbus_unregister_object): New function, renamed from
17675 Fdbus_unregister_signal. The initial check signals an error, if
17676 the object is not well formed.
17677
17678 2007-12-30 Richard Stallman <rms@gnu.org>
17679
17680 * textprop.c (get_char_property_and_overlay):
17681 Signal error if POSITION is out of range in a buffer.
17682
17683 2007-12-29 Martin Rudalics <rudalics@gmx.at>
17684
17685 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17686 because the original parameters are in pure storage now.
17687
17688 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17689
17690 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17691
17692 2007-12-22 Eli Zaretskii <eliz@gnu.org>
17693
17694 * callint.c (syms_of_callint) <command-history>: Add reference to
17695 history-length in the doc string.
17696
17697 2007-12-17 Jason Rumney <jasonr@gnu.org>
17698
17699 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17700 before passing as wParam.
17701
17702 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
17703
17704 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17705 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17706 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17707 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17708 as number.
17709 (Fdbus_call_method): Fix docstring.
17710
17711 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
17712
17713 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17714 New macros.
17715 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17716 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17717 Simplify.
17718 (xd_signature): New function.
17719 (xd_append_arg): Compute also signatures. Major rewrite.
17720 (xd_retrieve_arg): Make debug messages friendly.
17721 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17722 Check for signatures of arguments.
17723
17724 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
17725
17726 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17727 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17728 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17729 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17730 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17731 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17732 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17733 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17734 (xd_retrieve_value): Remove. Functionality included in ...
17735 (xd_append_arg): New function.
17736 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17737
17738 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
17739
17740 * dbusbind.c (top): Include <stdio.h>.
17741 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17742 dbus_message_new_method_call and dbus_message_new_signal.
17743 (Fdbus_register_signal): Rename unique_name to uname.
17744 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17745 non-existing unique name. Fix typos in matching rule. Return an
17746 object which is useful in Fdbus_unregister_signal.
17747 (Fdbus_unregister_signal): Reimplementation, in order to remove
17748 only the corresponding entry.
17749 (Vdbus_registered_functions_table): Change the order of entries.
17750 Apply these changes in xd_read_message and Fdbus_register_signal.
17751
17752 2007-12-16 Andreas Schwab <schwab@suse.de>
17753
17754 * fileio.c (Finsert_file_contents): Fix overflow check to not
17755 depend on undefined integer overflow.
17756
17757 2007-12-14 Jason Rumney <jasonr@gnu.org>
17758
17759 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17760 for characters above 127.
17761
17762 2007-12-13 Jason Rumney <jasonr@gnu.org>
17763
17764 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17765 before dereferencing array.
17766 (lookup_vk_code): Remove zero comparison.
17767
17768 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
17769
17770 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17771 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17772 Use `unsigned int' instead of `uint'.
17773 (xd_read_message, Fdbus_register_signal): Split expressions into
17774 multiple lines before operators "&&" and "||", according to the
17775 GNU Coding Standards.
17776
17777 2007-12-14 Eli Zaretskii <eliz@gnu.org>
17778
17779 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17780
17781 2007-12-12 Juri Linkov <juri@jurta.org>
17782
17783 * buffer.c (Frename_buffer): In interactive spec replace
17784 `read-buffer' with `read-string' that uses `buffer-name-history'
17785 as history, and the current buffer's name as default.
17786
17787 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17788
17789 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17790 manipulating the backtrace manually.
17791 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17792 (struct backtrace, backtrace_list): Remove.
17793 (command_loop_1): Remove dead var `no_direct'.
17794
17795 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17796 preserve non-built-in buffer-local variables.
17797 (Fkill_all_local_variables): Don't re-create&re-set permanent
17798 buffer-local variables.
17799
17800 2007-12-09 Juri Linkov <juri@jurta.org>
17801
17802 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17803 Lisp code that uses `read-buffer' with current buffer as default.
17804
17805 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
17806
17807 * dbusbind.c (xd_read_message): Generate an event for every
17808 registered handler. There might be several handlers registered
17809 for the same signal.
17810 (Fdbus_register_signal): Don't overwrite a registration for the
17811 same signal. Add a new registration if handlers are different.
17812 (Vdbus_registered_functions_table): Rework doc string.
17813
17814 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
17815
17816 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17817 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17818 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17819 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17820 Unify argument lists.
17821 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17822 arguments and hash table keys. Use unique name for service.
17823 (Fdbus_unregister_signal): Remove checks.
17824 (Vdbus_registered_functions_table): Fix doc string.
17825
17826 2007-12-05 Magnus Henoch <mange@freemail.hu>
17827
17828 * process.c (make_process): Initialize pty_flag to 0.
17829
17830 2007-12-05 Jason Rumney <jasonr@gnu.org>
17831
17832 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17833 specified XBMs.
17834
17835 2007-12-05 Richard Stallman <rms@gnu.org>
17836
17837 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17838
17839 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17840
17841 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17842 New variable.
17843 (mac_try_close_socket) [MAC_OSX]: New function.
17844 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17845 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17846
17847 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17848 Use mac_try_close_socket.
17849
17850 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17851
17852 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17853 reloc_base.
17854 (copy_dysymtab): Compute relocation base here.
17855 (rebase_reloc_address) [__ppc64__]: New function.
17856 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17857 changed.
17858
17859 2007-12-05 Jason Rumney <jasonr@gnu.org>
17860
17861 * w32proc.c (sys_spawnve): Quote args with wildcards.
17862
17863 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17864
17865 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17866 __objc_* sections.
17867 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17868
17869 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
17870
17871 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17872 Move check for Vdbus_registered_functions_table to
17873 xd_read_queued_messages.
17874 (xd_read_queued_messages): Protect xd_read_message calls by
17875 internal_condition_case_1.
17876
17877 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
17878
17879 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17880 Qdbus_system_bus and Qdbus_session_bus, respectively.
17881 (Vdbus_intern_symbols): Remove.
17882 (Vdbus_registered_functions_table): New hash table.
17883 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17884 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17885 Rewrite in order to manage registered functions by hash table
17886 Vdbus_registered_functions_table.
17887
17888 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17889
17890 * xterm.c: Update URL to Window Manager Specification in comment.
17891
17892 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
17893
17894 * config.in (HAVE_DBUS): Add.
17895
17896 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17897 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17898 (obj): Add $(DBUS_OBJ).
17899 (LIBES): Add $(DBUS_LIBS).
17900 (dbusbind.o): New target.
17901
17902 * dbusbind.c: New file.
17903
17904 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17905
17906 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17907 (Qdbus_event): New Lisp symbol.
17908 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17909 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
17910 (keys_of_keyboard): Define dbus-event.
17911
17912 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17913
17914 2007-12-01 Richard Stallman <rms@gnu.org>
17915
17916 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17917
17918 2007-11-30 Jason Rumney <jasonr@gnu.org>
17919
17920 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17921 (w32con_reset_terminal_modes): Clear screen buffer.
17922 (w32_face_attributes): Don't use color indexes that are out of range.
17923 Only reverse the default colors.
17924
17925 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17926 WINDOWSNT.
17927
17928 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17929
17930 2007-11-29 Jason Rumney <jasonr@gnu.org>
17931
17932 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17933 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17934 if the terminal colors are initialized.
17935 (unspecified_fg, unspecified_bg): Remove unused declarations.
17936
17937 2007-11-29 Andreas Schwab <schwab@suse.de>
17938
17939 * keyboard.c (apply_modifiers): Fix typo.
17940
17941 2007-11-29 Richard Stallman <rms@gnu.org>
17942
17943 * keymap.c (Fcurrent_local_map): Doc fix.
17944
17945 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17946
17947 * s/gnu-kfreebsd.h: New file.
17948
17949 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17950
17951 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17952 Don't cast redundantly.
17953
17954 * keyboard.c (KEY_TO_CHAR): New macro.
17955 (parse_modifiers, apply_modifiers): Accept integer arguments.
17956 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17957 for chars and symbol keys.
17958 After doing such remapping, apply function-key-map again.
17959
17960 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17961
17962 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17963 compiled anymore.
17964
17965 2007-11-26 Andreas Schwab <schwab@suse.de>
17966
17967 * process.c (list_processes_1): Fix indentation level of the
17968 command column.
17969
17970 2007-11-23 Andreas Schwab <schwab@suse.de>
17971
17972 * editfns.c (Fformat): Handle %c specially since it requires the
17973 argument to be of type int.
17974
17975 2007-11-23 Markus Triska <markus.triska@gmx.at>
17976
17977 * emacs.c (main): Call init_editfns before init_process, since
17978 init_process sets Vprocess_connection_type depending on OS release.
17979
17980 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17981
17982 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17983 (find_symbol_value): Use do_symval_forwarding.
17984
17985 * data.c (set_internal): Set the value in the `cons-cell' (for
17986 Buffer_Local_values) not only for frame-local variables.
17987
17988 2007-11-22 Andreas Schwab <schwab@suse.de>
17989
17990 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17991 values to sprintf.
17992 * keymap.c (Fsingle_key_description): Likewise.
17993 * print.c (print_object): Likewise.
17994
17995 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17996
17997 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17998 file for image is nil.
17999
18000 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18001
18002 * term.c: Include stdarg.h.
18003 (fatal): Implement using varargs.
18004 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18005
18006 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18007
18008 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18009 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18010 Update call to buffer_slot_type_mismatch.
18011 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18012 (buffer_slot_type_mismatch): Update.
18013 * buffer.c (buffer_local_types): Remove.
18014 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18015 (defvar_per_buffer): Set the type in the buffer_objfwd.
18016
18017 2007-11-21 Jason Rumney <jasonr@gnu.org>
18018
18019 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18020 CreateFileMapping returns NULL on failure.
18021
18022 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18023
18024 * search.c (Fset_match_data): Remove the `evaporate' feature.
18025 (unwind_set_match_data): Don't use the `evaporate' feature.
18026
18027 2007-11-21 Jason Rumney <jasonr@gnu.org>
18028
18029 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18030
18031 * w32console.c (w32con_write_glyphs): Remove unused variables.
18032
18033 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18034
18035 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18036
18037 * s/darwin.h (MULTI_KBOARD): Remove.
18038
18039 * macfns.c (x_create_tip_frame, Fx_create_frame)
18040 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18041
18042 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18043
18044 * buffer.c (Fbuffer_local_value): Remove redundant test.
18045 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18046 than in `current-buffer' to match the comment.
18047 Do the swap using swap_in_global_binding.
18048
18049 * data.c (store_symval_forwarding, set_internal):
18050 * eval.c (specbind): Remove dead code.
18051
18052 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18053 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18054 Since we do not want to see internal Lisp_*fwd objects here.
18055
18056 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18057
18058 * sysdep.c (init_system_name): Use getaddrinfo if available.
18059
18060 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18061 (x_scroll_bar_note_movement): start, end, with, height in struct
18062 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18063
18064 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18065
18066 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18067
18068 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18069
18070 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18071 This undoes Richard's change of 14-Oct-2002.
18072
18073 * alloc.c (allocate_other_vector):
18074 * lisp.h (allocate_other_vector): Remove.
18075
18076 * window.c (struct save_window_data): Move non-lisp data to the end
18077 and make it `int' rather than Lisp_Object.
18078 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18079 Done wrap/unwrap integer values.
18080 (Fset_window_configuration, compare_window_configurations):
18081 Update use of fields to their new types.
18082
18083 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18084 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18085 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18086 (SET_SCROLL_BAR_X_WINDOW): Remove.
18087 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18088 Access the new x_window field directly.
18089 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18090 Don't wrap/unwrap integers into Lisp_Objects.
18091 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18092 (x_scroll_bar_report_motion):
18093 Don't wrap/unwrap integers into Lisp_Objects.
18094 (x_term_init): Use SDATA.
18095 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18096 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18097 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18098 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18099 * xfns.c (x_set_background_color):
18100 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18101 Access the new x_window field directly.
18102
18103 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18104 (allocate_pseudovector): Make non-static.
18105
18106 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18107 (allocate_pseudovector): Declare.
18108 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18109
18110 2007-11-15 Andreas Schwab <schwab@suse.de>
18111
18112 * editfns.c (Fformat): Correctly format EMACS_INT values.
18113 Also take precision into account when formatting an integer.
18114
18115 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18116
18117 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18118
18119 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18120 (syms_of_keyboard): Defsubr it.
18121
18122 * data.c (swap_in_global_binding): Fix longstanding bug where
18123 store_symval_forwarding was not called with the right second argument,
18124 thus causing objfwd-ing from being dropped.
18125
18126 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18127
18128 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18129 (Fx_display_pixel_height, Fx_display_planes)
18130 (Fx_display_color_cells, Fx_server_max_request_size)
18131 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18132 (Fx_display_visual_class, Fx_display_save_under):
18133 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18134 (Fx_display_pixel_height, Fx_display_planes)
18135 (Fx_display_color_cells, Fx_server_max_request_size)
18136 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18137 (Fx_display_mm_height, Fx_display_mm_width)
18138 (Fx_display_backing_store, Fx_display_visual_class)
18139 (Fw32_select_font, Fx_display_save_under):
18140 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18141 (Fx_display_pixel_height, Fx_display_planes)
18142 (Fx_display_color_cells, Fx_server_max_request_size)
18143 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18144 (Fx_display_save_under): Fix typos in docstrings.
18145
18146 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18147
18148 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18149 corresponding to deleted entries; they are an implementation detail.
18150 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18151 Remove variables.
18152 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18153 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18154 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18155 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18156 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18157 (Fw32_define_rgb_color, Fw32_load_color_file)
18158 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18159 Fix typos in docstrings.
18160 (Fx_server_version): Reflow docstring.
18161 (Fw32_shell_execute): Doc fixes.
18162
18163 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
18164
18165 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18166 if w32_parse_hot_key returned nil.
18167
18168 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18169
18170 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18171
18172 2007-11-09 Jason Rumney <jasonr@gnu.org>
18173
18174 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18175
18176 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18177
18178 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18179 Remove W32_SCROLL_BAR_CLICK_EVENT.
18180
18181 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18182 Add MULTIMEDIA_KEY_EVENT.
18183
18184 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18185 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18186 (make_lispy_event) [WINDOWSNT]: Use it to translate
18187 MULTIMEDIA_KEY_EVENT.
18188
18189 * w32term.h (WM_APPCOMMAND): Define if not already.
18190 (GET_APPCOMMAND_LPARAM): Likewise.
18191
18192 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18193 WM_APPCOMMAND.
18194
18195 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18196 (syms_of_w32fns): Export and initialize it.
18197 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18198
18199 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
18200
18201 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18202 twice.
18203
18204 * xdisp.c (handle_face_prop): Fix last change.
18205
18206 2007-11-09 Richard Stallman <rms@gnu.org>
18207
18208 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18209 not just for after-strings and before-strings.
18210 Call face_for_overlay_string and pass the overlay to it.
18211 (handle_display_prop): Determine whether property came from an overlay.
18212 Pass OVERLAY arg to handle_single_display_spec.
18213 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18214 (load_overlay_strings): Fill in it->string_overlays.
18215 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18216
18217 * xfaces.c (face_for_overlay_string): Function renamed from
18218 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18219
18220 * dispextern.h (struct it): New elt string_overlays.
18221 New elt from_overlay, also in stack.
18222 Rearrange a few elements.
18223 (face_for_overlay_string): Decl renamed from
18224 face_at_buffer_position_no_overlays, and add argument.
18225
18226 2007-11-09 Richard Stallman <rms@gnu.org>
18227
18228 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18229 to get the base face for an overlay string.
18230
18231 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18232
18233 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18234
18235 * xdisp.c (handle_stop): Move some code out of loop.
18236
18237 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18238
18239 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18240 Fix conversion from Lisp object to ATSUFontID.
18241
18242 2007-11-09 Jason Rumney <jasonr@gnu.org>
18243
18244 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18245
18246 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18247
18248 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18249 Don't assume regions are aligned to page boundary.
18250 (print_load_command_name): Add LC_UUID if defined.
18251
18252 2007-11-09 Richard Stallman <rms@gnu.org>
18253
18254 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18255
18256 2007-11-07 Jason Rumney <jasonr@gnu.org>
18257
18258 * s/windows95.h: Remove.
18259
18260 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18261
18262 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18263 abort with a message on unhandled store_type values.
18264
18265 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18266
18267 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18268 Remove HAVE_X11R5 and HAVE_X11R4.
18269
18270 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18271
18272 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18273
18274 2007-11-01 Johan Bockgård <bojohan@gnu.org>
18275
18276 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18277 Don't set s->stippled_p here, since it has already been set by
18278 x_set_glyph_string_gc from x_draw_glyph_string.
18279
18280 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18281
18282 * sunfns.c: Remove file.
18283
18284 * m/sun386.h:
18285 * m/sun2.h:
18286 * m/sparc.h: Remove Sun windows code.
18287
18288 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18289
18290 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18291 (init_keyboard): Set current_kboard's window-system to nil.
18292 (tty_read_avail_input): Typo.
18293 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18294
18295 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18296
18297 * s/usg5-4.h:
18298 * s/usg5-3.h:
18299 * s/ptx.h:
18300 * m/is386.h:
18301 * m/ibmps2-aix.h:
18302 * Makefile.in: Remove all mentions of X10.
18303
18304 * dispnew.c (syms_of_display): Don't mention version 10.
18305
18306 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
18307
18308 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18309 ($(BLD)/abbrev.$(O)): Remove.
18310
18311 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18312
18313 Rewrite abbrev.c in Elisp.
18314 * image.c (Qcount): Don't declare as extern.
18315 (syms_of_image): Initialize and staticpro `Qcount'.
18316 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18317 * emacs.c (main): Don't call syms_of_abbrev.
18318 * Makefile.in (obj): Remove abbrev.o.
18319 (abbrev.o): Remove.
18320 * abbrev.c: Remove.
18321
18322 2007-10-26 Martin Rudalics <rudalics@gmx.at>
18323
18324 * window.c (window_min_size_2): Don't count header-line.
18325
18326 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18327
18328 * frame.h (struct frame): Move all bit fields after the first bit
18329 field to take advantage of the available space. Group all the
18330 chars together to reduce wasted space due to padding.
18331
18332 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
18333
18334 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18335
18336 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18337 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18338 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18339 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18340 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18341 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18342 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18343 (last_marked, mark_object_loop_halt): Make static.
18344
18345 * frame.c (syms_of_frame) <delete-frame-functions>:
18346 Fix typo in docstring.
18347
18348 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
18349
18350 * w32.c (init_environment): Fix tiny memory leak.
18351 (w32_get_resource): Remove unused variable `ok'.
18352
18353 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18354
18355 Make `window-system' into a keyboard-local variable (rather than
18356 frame-local as done originally by multi-tty).
18357
18358 * keyboard.h (struct kboard): Add Vwindow_system.
18359 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18360 (mark_kboards): Mark Vwindow_system.
18361
18362 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18363 (init_display): Don't set the obsolete `window-system' frame-param.
18364
18365 * xterm.c (x_term_init):
18366 * w32term.c (w32_create_terminal):
18367 * term.c (init_tty): Set Vwindow_system.
18368 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18369 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18370
18371 * xfns.c (Fx_create_frame, x_create_tip_frame):
18372 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18373 * macfns.c (Fx_create_frame):
18374 Don't set the obsolete `window-system' frame-param.
18375
18376 * frame.h (Qwindow_system): Remove.
18377 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18378 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18379
18380 2007-10-24 Richard Stallman <rms@gnu.org>
18381
18382 * frame.c (x_figure_window_size): For fullscreen case,
18383 set USPosition | PPosition without clobbering rest of window_prompting.
18384
18385 * keyboard.c (Fcurrent_idle_time): Doc fix.
18386
18387 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18388
18389 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18390
18391 * process.c (unwind_request_sigio): Only define if __ultrix__.
18392
18393 * callproc.c (child_setup): Remove spurious *.
18394
18395 * lisp.h (Fget_text_property): Declare.
18396 (have_menus_p): Declare it here rather than in sys-dep header files.
18397 * macterm.h (have_menus_p):
18398 * msdos.h (have_menus_p):
18399 * xterm.h (have_menus_p): Remove.
18400
18401 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18402 (Fmake_variable_frame_local): Just check the variable's const-ness
18403 rather than checking nil or t.
18404
18405 2007-10-22 Jason Rumney <jasonr@gnu.org>
18406
18407 * w32fns.c: Include math.h.
18408 (w32_abort): Declaration moved to nt/config.nt.
18409
18410 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18411 (abort): Redefinition moved to nt/config.nt.
18412
18413 * m/windowsnt.h: Remove.
18414
18415 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
18416
18417 * emacs.c (Fdump_emacs): Fix typo in message.
18418 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18419 <installation-directory>: Reflow docstring.
18420
18421 2007-10-22 Juri Linkov <juri@jurta.org>
18422
18423 * minibuf.c: Allow minibuffer default to be a list of default values.
18424 With empty input use the first element of this list as returned default.
18425 (string_to_object)
18426 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18427 (read_minibuf): If defalt is cons, set histstring to its car.
18428 (Fread_string): If default_value is cons, set val to its car.
18429 (Fread_buffer): If def is cons, use its car.
18430 (Fcompleting_read): If defalt is cons, set val to its car.
18431
18432 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
18433
18434 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18435
18436 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
18437
18438 * doc.c (Fdocumentation): Check for advice in all cases.
18439
18440 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
18441
18442 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18443
18444 2007-10-19 Richard Stallman <rms@gnu.org>
18445
18446 * doc.c (Fdocumentation): Check for and handle an advised function.
18447
18448 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
18449
18450 * process.c (Fset_process_filter): Doc fix.
18451
18452 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18453
18454 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18455 which caused key-translation-map to applied repeatedly (thus breaking
18456 double-mode).
18457
18458 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18459
18460 * xselect.c (x_own_selection, x_handle_selection_clear)
18461 (x_clear_frame_selections):
18462 * w32menu.c (list_of_panes, list_of_items):
18463 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18464 * textprop.c (validate_plist, interval_has_all_properties)
18465 (interval_has_some_properties, interval_has_some_properties_list)
18466 (add_properties, text_property_list):
18467 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18468 * minibuf.c (Fassoc_string):
18469 * macselect.c (x_own_selection, x_clear_frame_selections)
18470 (Fx_disown_selection_internal):
18471 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18472 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18473
18474 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
18475
18476 * process.c: Link to libs for calling res_init() if available.
18477 (Fmake_network_process): Call res_init() before getaddrinfo or
18478 gethostbyname, if possible.
18479
18480 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18481
18482 * lread.c (read1): Set pvectype for char_tables.
18483
18484 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18485 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18486 Add type checks.
18487 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18488
18489 * alloc.c (free_misc): Use XMISCTYPE.
18490 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18491
18492 2007-10-17 Glenn Morris <rgm@gnu.org>
18493
18494 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18495 (syms_of_minibuf): Add Qcompletion_ignore_case.
18496 * dired.c (Qcompletion_ignore_case): Change to external.
18497 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18498 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18499 (Fread_file_name): Use it rather than intern'ing.
18500
18501 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18502 (Fread_coding_system): Ignore case of user input.
18503
18504 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18505
18506 * xdisp.c (handle_display_prop): Ignore display specs after
18507 replacing one when string text is being replaced.
18508 (handle_single_display_spec): Pretend as if characters with display
18509 property haven't been consumed only when buffer text is being replaced.
18510
18511 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18512
18513 * xfns.c (Fx_create_frame, Fx_display_list):
18514 * window.c (window_fixed_size_p, enlarge_window)
18515 (shrink_window_lowest_first):
18516 * macterm.c (init_font_name_table):
18517 * macfns.c (Fx_create_frame, Fx_display_list):
18518 * lread.c (close_load_descs):
18519 * keyboard.c (read_char_x_menu_prompt):
18520 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18521 * coding.c (code_convert_region_unwind): Test the type of an object
18522 rather than just !NILP before extracting data from it.
18523
18524 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18525
18526 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18527 (XMISCANY): New macro.
18528 (XMISCTYPE): Use it.
18529 (struct Lisp_Misc_Any): New type.
18530 (union Lisp_Misc): Use it.
18531 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18532 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18533 (find_symbol_value, set_internal, default_value, Fset_default)
18534 (Fmake_variable_buffer_local, Fmake_local_variable)
18535 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18536 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18537 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18538 * alloc.c (allocate_buffer): Set the size and tag.
18539 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18540 Use XMISCANY.
18541 (die): Follow the GNU convention for error messages.
18542 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18543 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18544 tag any more.
18545 (set_buffer_internal_1):
18546 * frame.c (store_frame_param):
18547 * eval.c (specbind):
18548 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18549
18550 * doc.c (Fsnarf_documentation): Simplify.
18551
18552 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18553
18554 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18555 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18556
18557 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18558
18559 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18560
18561 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18562
18563 * eval.c (do_autoload): Don't save autoloads.
18564
18565 * data.c (Ffset): Save autoload of the function being set.
18566
18567 2007-10-07 John Paul Wallington <jpw@pobox.com>
18568
18569 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18570 parameter before setting up faces.
18571
18572 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18573
18574 * ccl.c (Fregister_code_conversion_map):
18575 * keyboard.c (append_tool_bar_item): Reformat last change.
18576
18577 * lisp.h (eabs): Rename from `abs'. All callers changed.
18578
18579 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18580
18581 * buffer.c (add_overlay_mod_hooklist):
18582 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18583 * fontset.c (make_fontset):
18584 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18585 (append_tool_bar_item):
18586 * macmenu.c (grow_menu_items):
18587 * w32menu.c (grow_menu_items):
18588 * xmenu.c (grow_menu_items): Use larger_vector.
18589
18590 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18591
18592 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18593 selected frame'' on MSDOS).
18594
18595 2007-10-12 Martin Rudalics <rudalics@gmx.at>
18596
18597 * frame.c (Qexplicit_name): New variable.
18598 (x_report_frame_params): Report it in parameter alist.
18599 (syms_of_frame): Intern and staticpro it.
18600
18601 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18602
18603 * macfns.c (x_create_tip_frame): Set terminal for frame.
18604
18605 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18606
18607 * frame.c (Qenvironment): Remove.
18608 (syms_of_frame) <Qenvironment>: Don't initialize.
18609 (Fdelete_frame): Don't treat the `environment' param specially.
18610 * frame.h (Qenvironment): Don't declare.
18611 * callproc.c (set_initial_environment): Don't set unused frame param.
18612
18613 * frame.c (Fframe_with_environment): Remove.
18614 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18615
18616 * lisp.h (Fframe_with_environment): Don't declare.
18617
18618 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
18619
18620 * indent.c (indent_tabs_mode, last_known_column)
18621 (last_known_column_modified): Make static.
18622 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18623
18624 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18625
18626 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18627
18628 2007-10-09 Jason Rumney <jasonr@gnu.org>
18629
18630 * w32term.c (x_set_window_size): Disable code that attempts to tell
18631 Lisp code about a size change before it actually happens.
18632
18633 2007-10-09 Richard Stallman <rms@gnu.org>
18634
18635 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18636 return HANDLED_RETURN.
18637
18638 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18639
18640 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18641 when there's an unread command event.
18642
18643 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18644 window autoselection act appropriately when leaving selected frame.
18645 (syms_of_frame): Initialize focus_follows_mouse.
18646 * frame.h (focus_follows_mouse): Extern it.
18647 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18648 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18649 * msdos.c (dos_rawgetc): Likewise.
18650 * w32term.c (w32_read_socket): Likewise.
18651 * xterm.c (handle_one_xevent): Likewise.
18652 * xdisp.c (syms_of_xdisp): In doc-string of
18653 mouse-autoselect-window mention focus-follows-mouse.
18654
18655 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18656
18657 * macterm.c (mac_load_query_font): Fix missing return value.
18658 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18659 Add BLOCK_INPUT.
18660
18661 2007-10-08 Richard Stallman <rms@gnu.org>
18662
18663 * xdisp.c (get_window_cursor_type): Implement documented behavior
18664 for cursor-in-non-selected-windows = t.
18665
18666 2007-10-08 Jason Rumney <jasonr@gnu.org>
18667
18668 * w32.c (w32_get_resource): Always close registry keys.
18669
18670 2007-10-08 Jason Rumney <jasonr@gnu.org>
18671
18672 * makefile.w32-in (LIBS): Add COMCTL32.
18673
18674 * w32fns.c (globals_of_w32fns): Init common controls.
18675
18676 2007-10-08 Richard Stallman <rms@gnu.org>
18677
18678 * image.c (our_memory_buffer): Rename from omfib_buffer.
18679
18680 2007-10-08 Richard Stallman <rms@gnu.org>
18681
18682 * buffer.c (Foverlays_at): Doc fix.
18683
18684 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18685
18686 * fns.c (Fplist_put): Preserve uneven tail data.
18687
18688 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18689
18690 * termhooks.h (enum event_kind): Remove trailing comma.
18691
18692 * frame.h (enum): Remove trailing comma.
18693
18694 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18695
18696 * w32proc.c (delete_child): Don't terminate threads of zombies.
18697
18698 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18699
18700 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18701
18702 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18703 last-repeatable-command.
18704 (init_kboard): Initialize Vlast_repeatable_command.
18705 (command_loop_1): Set it to real_this_command unless that was
18706 bound to an input event.
18707 (mark_kboards): Mark it.
18708
18709 2007-10-08 Richard Stallman <rms@gnu.org>
18710
18711 * eval.c (condition-case): Doc fix.
18712
18713 2007-10-08 Masatake YAMATO <jet@gyve.org>
18714
18715 * xfaces.c (tty_supports_face_attributes_p): Fix code
18716 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18717 was copied and not edited.
18718
18719 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18720
18721 Add new `input-decode-map' keymap and use it for terminal
18722 escape sequences.
18723 * keyboard.h (struct kboard): Add Vinput_decode_map.
18724 Remove Vlocal_key_translation_map.
18725 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18726 (init_kboard): Init input-decode-map.
18727 Replace local-key-translation-map back with key-translation-map.
18728 (syms_of_keyboard): Declare input-decode-map.
18729 Remove local-key-translation-map. Update docstrings.
18730 (mark_kboards): Mark Vinput_decode_map.
18731 Don't mark Vlocal_key_translation_map.
18732 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18733 Replace local-key-translation-map back with key-translation-map.
18734 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18735 Bind in input-decode-map rather than function-key-map.
18736
18737 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18738 This was made redundant by the previous introduction of XSETPVECTYPE.
18739
18740 2007-10-09 Richard Stallman <rms@gnu.org>
18741
18742 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18743
18744 2007-09-29 Richard Stallman <rms@gnu.org>
18745
18746 * eval.c (internal_condition_case_2, internal_condition_case_1)
18747 (internal_condition_case): Reenable abort if x_catching_errors ()
18748 to see if that really happens and why.
18749
18750 2007-10-06 Andreas Schwab <schwab@suse.de>
18751
18752 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18753
18754 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
18755
18756 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18757
18758 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18759
18760 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18761
18762 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18763
18764 * window.h (struct window):
18765 * window.c (struct save_window_data, struct saved_window):
18766 * termhooks.h (struct terminal):
18767 * process.h (struct Lisp_Process):
18768 * frame.h (struct frame):
18769 * buffer.h (struct buffer):
18770 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18771 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18772 The size field of (pseudo)vectors is now unsigned.
18773 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18774
18775 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18776 Turn `count' into an integer.
18777
18778 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18779 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18780 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18781 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18782 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18783
18784 * alloc.c (allocate_pseudovector): New fun.
18785 (ALLOCATE_PSEUDOVECTOR): New macro.
18786 (allocate_window, allocate_terminal, allocate_frame)
18787 (allocate_process): Use it.
18788 (mark_vectorlike): New function.
18789 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18790 (mark_terminals): Use it.
18791 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18792 (Fmake_byte_code): Use XSETPVECTYPE.
18793
18794 * frame.c (Fframe_parameters): Minor simplification.
18795
18796 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18797
18798 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18799
18800 * buffer.c (Fget_buffer_create, init_buffer_once):
18801 * lread.c (defsubr):
18802 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18803
18804 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18805 defined differently in the m/*.h files.
18806 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18807 (XSETPVECTYPE): New macro.
18808 (XSETPSEUDOVECTOR): Use it.
18809
18810 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18811 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18812
18813 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18814 * lread.c (defvar_per_buffer):
18815 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18816
18817 * window.c (candidate_window_p): Only consider as visible frames that
18818 are on the same terminal.
18819
18820 * m/ibms390x.h (MARKBIT): Remove unused macro.
18821
18822 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
18823
18824 * lread.c (Fload): Fix typo in docstring.
18825
18826 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18827
18828 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18829 of a non-zero value can't yield zero.
18830
18831 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18832
18833 * term.c (term_clear_mouse_face, term_mouse_highlight)
18834 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18835
18836 * print.c (safe_debug_print): Use XHASH.
18837
18838 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18839 Lisp elements such as tags.
18840 (XHASH): New macro.
18841 (EQ): Use it.
18842 (SREF, SSET, STRING_COPYIN): Use SDATA.
18843 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18844
18845 * alloc.c (mark_terminal): Remove left-over declaration.
18846 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18847 (allocate_vectorlike): Remove type argument. Adjust callers.
18848 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18849 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18850
18851 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18852 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18853 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18854 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18855 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18856 Use them.
18857
18858 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18859 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18860 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18861
18862 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18863
18864 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18865 loaded by default.
18866
18867 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18868
18869 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18870 on this tty.
18871 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18872
18873 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18874 Update all users.
18875 (handle_one_term_event): Use Gpm_DrawPointer.
18876 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18877 Signal errors instead of returning nil. Always return nil.
18878 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18879 Make it a noop if gpm-mouse was not activated.
18880 (syms_of_term): Update names.
18881
18882 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18883
18884 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18885 (init_sys_modes): Check that gpm_tty is the current tty.
18886
18887 * alloc.c (allocate_terminal): Set the vector size to only count the
18888 lisp fields. Initialize those to nil.
18889 (mark_object): Don't treat terminals specially.
18890 (mark_terminal): Remove.
18891 (mark_terminals): Use mark_object instead.
18892
18893 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18894 the GC to the beginning.
18895
18896 * indent.h:
18897 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18898
18899 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18900
18901 2007-09-25 Jason Rumney <jasonr@gnu.org>
18902
18903 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18904
18905 * w32console.c (create_w32cons_output): Remove.
18906
18907 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18908
18909 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18910 (reset_sys_modes): Use reset_terminal_modes_hook.
18911
18912 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18913
18914 * eval.c (do_autoload): Don't output any message.
18915
18916 2007-09-24 Juri Linkov <juri@jurta.org>
18917
18918 * emacs.c (standard_args): Change priority of "--no-splash"
18919 from 40 to 3. Add "--no-desktop" with the same priority.
18920
18921 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18922
18923 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18924 and optimize the case where they are all 1.
18925
18926 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
18927
18928 * lisp.h (abs): Define if not defined.
18929 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18930 Don't define `abs', since it's defined in lisp.h.
18931
18932 2007-09-22 Eli Zaretskii <eliz@gnu.org>
18933
18934 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18935 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18936 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18937 (init_tty): Use DEV_TTY instead of "/dev/tty".
18938 [WINDOWSNT]: No need to protect from NAME arg being null.
18939
18940 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18941
18942 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18943 up the tty state.
18944
18945 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18946
18947 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18948 (gpm_tty): Change its type.
18949 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18950 (gpm_tty): Change its type and initialize it.
18951 (Fterm_open_connection): Check the frame is indeed a tty.
18952 Use the new gpm_tty.
18953 (Fterm_close_connection): Use the new gpm_tty.
18954 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18955 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18956
18957 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
18958
18959 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18960 underline_color, to draw strike-through.
18961
18962 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18963
18964 * lisp.h (allocate_terminal): Declare.
18965
18966 * window.c (candidate_window_p): Consider frames that are being placed
18967 by the user as somewhere between visible and iconified.
18968 (window_loop): Prefer windows on the current frame.
18969 (Fselect_window): Move the use of select-frame to the beginning so we
18970 can just delegate all the work (it'll call us back anyway).
18971
18972 * frame.c (Qdisplay_environment_variable):
18973 * frame.h (Qdisplay_environment_variable): Delete.
18974
18975 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18976 of the first arg, since that value may be a union.
18977
18978 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18979 parameter rather than Qdisplay_environment_variable. If all else
18980 fails, look for DISPLAY in initial-environment.
18981
18982 2007-09-21 Glenn Morris <rgm@gnu.org>
18983
18984 * Makefile.in (emacstool): Remove target.
18985 (lisp, shortlisp): Remove termdev.elc.
18986
18987 2007-09-21 Markus Triska <markus.triska@gmx.at>
18988
18989 * xterm.c (x_delete_display): Compile session management conditionally.
18990
18991 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18992
18993 * callproc.c (getenv_internal_1): New function.
18994 (getenv_internal): Use it.
18995 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18996
18997 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18998 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18999 (Fset_terminal_parameter): Work with dead terminals as well.
19000 (Fmodify_terminal_parameters): Remove.
19001
19002 * terminal.c (get_terminal): Handle terminals.
19003 Make sure the terminal returned is live.
19004 (create_terminal): Use allocate_terminal.
19005 (mark_terminals): Move to alloc.c.
19006 (delete_terminal): Use terminal->name as liveness status.
19007 NULL out fields after freeing their contents.
19008 Don't deallocate the object.
19009 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19010 rather than an int.
19011 (Fterminal_live_p): Accept non-integer arguments.
19012 (Fterminal_list): Return terminal objects rather than an ints.
19013
19014 * alloc.c (enum mem_type): New member for `terminal' objects.
19015 (allocate_terminal): New function.
19016 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19017 Handle terminals.
19018 (mark_terminal): New fun.
19019 (mark_terminals): Move from terminal.c.
19020
19021 * term.c (get_tty_terminal): Don't treat output_initial specially.
19022 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19023 (delete_tty): Use terminal->name as liveness status.
19024
19025 * termhooks.h (struct terminal): Make it into a pseudovector.
19026 Remove `deleted' replaced by checking `name's nullness.
19027
19028 * print.c (print_object): Handle terminals.
19029
19030 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19031 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19032
19033 * frame.c (make_terminal_frame):
19034 * keyboard.c (tty_read_avail_input):
19035 * w32term.c (x_delete_terminal):
19036 * xfns.c (Fx_create_frame, x_create_tip_frame):
19037 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19038
19039 2007-09-20 Glenn Morris <rgm@gnu.org>
19040
19041 * process.c (Fmake_network_process): Doc fix.
19042
19043 2007-09-19 Jason Rumney <jasonr@gnu.org>
19044
19045 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19046
19047 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19048
19049 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19050 Fix a C warning regarding variable constness.
19051
19052 * xterm.c (handle_one_xevent): Fix a C warning.
19053
19054 2007-09-18 Jason Rumney <jasonr@gnu.org>
19055
19056 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19057
19058 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19059
19060 * gtkutil.c (gdpy_def): New variable.
19061 (xg_initialize): Initialize gdpy_def.
19062 (xg_display_close): If no other display exists, set gdpy_def to a
19063 new connection.
19064
19065 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19066
19067 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19068 when we have no file name for the icon.
19069 (xg_tool_bar_expose_callback): Remove.
19070 (xg_create_tool_bar): Don't connect expose signal to
19071 xg_tool_bar_expose_callback.
19072 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19073
19074 2007-09-16 Andreas Schwab <schwab@suse.de>
19075
19076 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19077 values instead of zapping them.
19078
19079 2007-09-14 Glenn Morris <rgm@gnu.org>
19080
19081 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19082 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19083 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19084 scope and rename to omfib_buffer for clarity.
19085 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19086
19087 2007-09-14 Kenichi Handa <handa@m17n.org>
19088
19089 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19090
19091 2007-09-13 Jason Rumney <jasonr@gnu.org>
19092
19093 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19094
19095 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19096
19097 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19098 (mac_term_init): Call here instead, passing rif.
19099
19100 2007-09-13 Glenn Morris <rgm@gnu.org>
19101
19102 * s/hpux.h: No longer define `static' as nothing.
19103
19104 2007-09-13 Johan Bockgård <bojohan@gnu.org>
19105
19106 * callint.c (Fcall_interactively): Remove unused var `fun'.
19107
19108 2007-09-12 Romain Francoise <romain@orebokech.com>
19109
19110 * window.c (prefer_window_split_horizontally, display_buffer):
19111 Revert 2007-09-08 change.
19112
19113 2007-09-12 Glenn Morris <rgm@gnu.org>
19114
19115 * alloca.c: Remove file.
19116 * Makefile.in (alloca): Do not undef.
19117 (allocaobj, alloca.o): Remove.
19118 (otherobj): Remove allocaobj.
19119 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19120 * regex.c (C_ALLOCA): Remove all references and code that was only
19121 used when this was defined.
19122 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19123 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19124 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19125
19126 * Makefile.in (SOURCES, unlock, relock): Delete.
19127
19128 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19129 (menu_grab_callback): All uses changed.
19130
19131 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19132 (x_reply_selection_request): All uses changed.
19133
19134 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19135
19136 * lread.c (load_warn_old_style_backquotes): Change message to look
19137 better when it appears in the middle of byte-compiler messages.
19138
19139 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19140
19141 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19142
19143 * xterm.c (x_create_terminal): Add comment.
19144
19145 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19146
19147 2007-09-10 Richard Stallman <rms@gnu.org>
19148
19149 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19150
19151 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19152
19153 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19154 (DEFUN): Document `intspec', use it instead of `prompt'.
19155
19156 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19157
19158 * data.c (Finteractive_form): If the interactive specification starts
19159 with a `(', use it as a Lisp form.
19160
19161 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19162 name and file modes.
19163
19164 * callint.c (Fcall_interactively): Comment fixes.
19165
19166 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19167
19168 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19169 and compiled functions.
19170
19171 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19172
19173 * window.c (prefer_window_split_horizontally): New variable.
19174 (display_buffer): Consider splitting window horizontally depending
19175 on prefer_window_split_horizontally.
19176
19177 2007-09-08 Eli Zaretskii <eliz@gnu.org>
19178
19179 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19180
19181 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19182
19183 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19184
19185 * frame.c (x_set_frame_parameters): Check number is positive before
19186 using XFASTINT.
19187
19188 * window.c (freeze_window_start): Don't presume selected_window holds
19189 a window object.
19190 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19191
19192 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19193
19194 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19195
19196 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19197
19198 * window.c (Vsplit_window_preferred_function): New var.
19199 (Fdisplay_buffer): Use it.
19200 (syms_of_window): Export, and initialize it.
19201
19202 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19203
19204 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19205
19206 2007-09-06 Glenn Morris <rgm@gnu.org>
19207
19208 * gtkutil.c (menu_grab_callback) <cnt>:
19209 * xselect.c (x_reply_selection_request) <cnt>: Move static
19210 variable to file scope.
19211
19212 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19213
19214 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19215 consistent values of selected_frame and selected_window.
19216
19217 2007-09-04 Jason Rumney <jasonr@gnu.org>
19218
19219 * w32console.c (initialize_w32_display): Zero unused hooks.
19220
19221 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19222
19223 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19224 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19225
19226 2007-09-04 Jason Rumney <jasonr@gnu.org>
19227
19228 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19229 in w32console.c. Set up input. Remove XXX comments that have been
19230 confirmed as correct.
19231
19232 * s/ms-w32.h (MULTI_KBOARD): Define.
19233
19234 * w32console.c (one_and_only_w32cons): Remove.
19235 (initialize_w32_display): Take terminal argument.
19236
19237 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19238 initialize_w32_display.
19239 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19240
19241 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19242
19243 * keyboard.c (discard_mouse_events): Discard it.
19244 (make_lispy_event): Translate it to a lisp event.
19245 (lispy_wheel_names): Add wheel-left and right events.
19246 (syms_of_keyboard): Enlarge wheel_syms.
19247
19248 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19249 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19250
19251 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19252
19253 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19254 from WM_MOUSEHWHEEL.
19255 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19256
19257 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19258 terminal.
19259
19260 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19261 keyboard for the terminal.
19262
19263 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19264
19265 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19266 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19267 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19268 and resume-tty-function to resume-tty-hook.
19269 (Fsuspend_tty, Fresume_tty): Use new names.
19270
19271 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19272
19273 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19274 if it starts with "n:".
19275
19276 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19277
19278 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19279
19280 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19281
19282 * frame.h:
19283 * frame.c (Qterm_environment_variable): Remove.
19284 (syms_of_frame): Don't init and staticpro it.
19285
19286 * callproc.c (getenv_internal): Remove special case for $TERM.
19287
19288 * callproc.c (Vinitial_environment): New variable.
19289 (set_initial_environment): Initialize it.
19290 (syms_of_callproc): Declare it.
19291 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19292 TERM under which a process runs is never related to the TERM in which
19293 Emacs is running.
19294
19295 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19296
19297 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19298 * s/darwin.h: ... do it here.
19299
19300 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19301
19302 * lisp.h (set_initial_environment): Rename from set_global_environment.
19303
19304 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19305 removed by mistake on the multi-tty branch.
19306
19307 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19308 (Fmodify_frame_parameters): Return a value.
19309
19310 * image.c (png_load): Comment-out var only used in commented-out code.
19311
19312 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19313 before passing it to mark_object.
19314
19315 * xfaces.c (internal_resolve_face_name): Return a value.
19316 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19317
19318 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19319 (x_icon): Comment-out var only used in commented-out code.
19320
19321 2007-08-29 Romain Francoise <romain@orebokech.com>
19322
19323 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19324 QUIT hasn't been provided.
19325
19326 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19327
19328 * callproc.c (child_setup, getenv_internal): Use the
19329 display-environment-variable and term-environment-variable frame params.
19330 (set_initial_environment): Initialise Vprocess_environment.
19331
19332 * config.in: Disable multi-keyboard support on a mac.
19333
19334 * frame.c (Qterm_environment_variable)
19335 (Qdisplay_environment_variable): New variables.
19336 (syms_of_frame): Intern and staticpro them.
19337 (Fmake_terminal_frame): Disable output method test.
19338
19339 * frame.h: Declare them here.
19340
19341 * macfns.c (x_set_mouse_color): Get rif from the frame.
19342 (x_set_tool_bar_lines): Don't use updating_frame.
19343 (mac_window): Add 2 new parameters for consistency with other systems.
19344 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19345 frame parameters following what is done in X11 and w32. Don't use
19346 FRAME_MAC_DISPLAY_INFO.
19347 (Fx_open_connection, start_hourglass): Remove window-system check.
19348 (x_create_tip_frame): Get the keyboard from the terminal.
19349
19350 * macmenu.c: Reorder includes.
19351 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19352
19353 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19354 terminal parameter.
19355 (x_clear_frame): Add a frame parameter.
19356 (note_mouse_movement): Get rif from the frame.
19357 (mac_term_init): Initialize the terminal.
19358 (mac_initialize): Make static and move terminal initialization ...
19359 (mac_create_terminal): ... to this new function.
19360
19361 * macterm.h (struct mac_display_info): Add terminal.
19362 (mac_initialize): Delete declaration.
19363
19364 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19365
19366 * sysdep.c: Comment out text after #endif.
19367
19368 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19369 is defined. Better initialize ttys in windows. Use terminal
19370 specific mouse_position_hook.
19371
19372 * termhooks.h (union display_info): Add mac_display_info.
19373
19374 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19375 Set the default minibuffer frame, window_system and the rest of the
19376 frame parameters following what is done in X11.
19377
19378 * w32term.c (w32_initialize): Make static.
19379
19380 * xselect.c (x_handle_selection_clear): Only access
19381 terminal->kboard when MULTI_KBOARD is defined.
19382
19383 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19384 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19385
19386 2007-08-29 Jason Rumney <jasonr@gnu.org>
19387
19388 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19389 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19390
19391 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19392 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19393
19394 * keyboard.c (restore_kboard_configuration): Only define when
19395 MULTI_KBOARD defined.
19396
19397 * makefile.w32-in: Update dependancies from Makefile.in.
19398 (OBJ1): Add terminal.$(O)
19399
19400 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19401 Don't define function body.
19402 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19403
19404 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19405
19406 * w32.c (request_sigio, unrequest_sigio): Remove.
19407
19408 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19409 (w32con_clear_frame, w32con_clear_end_of_line)
19410 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19411 (w32con_delete_glyphs, w32con_set_terminal_window)
19412 (scroll_line, w32_sys_ring_bell): Add frame arg.
19413 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19414 Add terminal arg.
19415 (PICK_FRAME): Remove.
19416 (w32con_write_glyphs): Use frame specific terminal coding.
19417 (one_and_only_w32cons): New global variable.
19418 (initialize_w32_display): Use it for storing hooks.
19419 (create_w32cons_output): New function.
19420
19421 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19422 arg a frame.
19423
19424 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19425 Set window_system.
19426 (x_set_tool_bar_lines): Don't use updating_frame.
19427 (Fx_create_frame): Set terminal and ref count.
19428 (Fx_open_connection): Remove window-system check.
19429
19430 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19431
19432 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19433 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19434 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19435 Add frame arg.
19436 (x_delete_terminal, w32_create_terminal): New functions.
19437 (w32_term_init): Create a terminal.
19438 (w32_initialize): Move terminal specific initialization to
19439 w32_create_terminal.
19440
19441 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19442 (w32_clear_rect, w32_clear_area): Use background from frame.
19443 (w32_display_info): Add terminal.
19444 (w32_sys_ring_bell, x_delete_display): Declare here.
19445
19446 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19447
19448 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19449
19450 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19451
19452 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19453 Fix get_named_tty calls for the controlling tty.
19454
19455 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19456
19457 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19458
19459 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19460
19461 * term.c (tty_insert_glyphs): Add missing first parameter.
19462
19463 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19464
19465 * buffer.c (Fbuffer_list, Fbury_buffer):
19466 Take frame->buried_buffer_list into account.
19467
19468 * cm.c (current_tty): New variable, for cmputc().
19469 (cmputc): Use it.
19470 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19471 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19472 (cmgoto): Add tty parameter. Pass it on to calccost().
19473 Use emacs_tputs() instead of tputs().
19474
19475 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19476 tputs().
19477 (current_tty): New variable, for cmputc().
19478 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19479
19480 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19481 (internal_condition_case, internal_condition_case_1)
19482 (internal_condition_case_2): Don't abort when x_catching_errors.
19483
19484 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19485 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19486 prevent crashes caused by bogus longjmps in read_char.
19487
19488 * keymap.h (Fset_keymap_parent): Add EXFUN.
19489
19490 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19491 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19492 Remove redundant definition.
19493
19494 * macfns.c (x_set_mouse_color, x_make_gc):
19495 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19496
19497 * w32term.c (x_free_frame_resources):
19498 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19499 (w32_initialize): Use the accessor macros for terminal characteristics.
19500
19501 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19502 Use the accessor macros for terminal characteristics.
19503 * msdos.c (internal_terminal_init): Use the accessor macros for
19504 terminal characteristics.
19505 (ScreenVisualBell, internal_terminal_init):
19506 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19507
19508 * termopts.h (no_redraw_on_reenter): Declare.
19509
19510 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19511 (mark_terminals, mark_ttys): Declare.
19512 (Fgarbage_collect): Call them.
19513 (mark_object): Mark buried_buffer_list.
19514
19515 * prefix-args.c: Include stdlib.h for exit.
19516
19517 * syssignal.h: Add comment.
19518
19519 * indent.c: Include stdio.h.
19520
19521 * window.h (Vinitial_window_system): Declare.
19522 (Vwindow_system): Delete declaration.
19523
19524 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19525
19526 * image.c (lookup_image): Don't initialize `c' until the xasserts
19527 have been run.
19528
19529 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19530 FRAME_FOREGROUND_PIXEL.
19531
19532 * print.c (print_preprocess): Don't lose print_depth levels while
19533 iterating.
19534
19535 * widget.c (update_from_various_frame_slots):
19536 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19537
19538 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19539 frames.
19540 (window_internal_height): Remove bogus make_number call.
19541 (init_window_once): Call make_terminal_frame with two zero parameters.
19542
19543 * fileio.c (Fread_file_name): Update comment.
19544
19545 * callint.c (Fcall_interactively):
19546 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19547 Make sure it is correctly unwound.
19548
19549 * xsmfns.c (x_session_close): New function.
19550
19551 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19552 Delete declarations.
19553
19554 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19555 (x_output): Remove background_pixel and foreground_pixel fields.
19556 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19557 (x_delete_device, x_session_close): Declare.
19558
19559 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19560 (read_filtered_event): Call `read_char' with a local
19561 `wrong_kboard_jmpbuf'.
19562
19563 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19564 Don't call single_kboard_state. Use FRAME_RIF.
19565
19566 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19567 systems.
19568
19569 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19570 (Fframe_with_environment, Fset_input_meta_mode)
19571 (Fset_quit_char): EXFUN.
19572 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19573 (init_sys_modes, reset_sys_modes): Update prototypes.
19574 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19575
19576 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19577 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19578 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19579 Delete declarations.
19580 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19581 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19582 New declarations.
19583
19584 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19585 already does that during init_display(). Call syms_of_keymap
19586 before syms_of_keyboard. Call `syms_of_terminal'.
19587 Call set_initial_environment, not set_process_environment.
19588 (shut_down_emacs): Call reset_all_sys_modes() instead of
19589 reset_sys_modes().
19590
19591 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19592 (internal_resolve_face_name, resolve_face_name_error): New functions.
19593 (resolve_face_name): Protect against loops and errors thrown by Fget.
19594 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19595 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19596
19597 * scroll.c: Replace CURTTY() with local variables throughout the
19598 file (where applicable).
19599 (calculate_scrolling, calculate_direct_scrolling)
19600 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19601 characteristics.
19602
19603 * keymap.c (Vfunction_key_map): Remove.
19604 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19605 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19606 (Vkey_translation_map): Remove.
19607 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19608 (Fdescribe_buffer_bindings)
19609 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19610 Update for terminal-local key-translation-map.
19611
19612 * Makefile.in (callproc.o): Update dependencies.
19613 (lisp, shortlisp): Add termdev.elc.
19614 (obj): Add terminal.o.
19615 (terminal.o): Add dependencies.
19616 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19617 (data.o, fns.o): Add termhooks.h dependency.
19618 (SOME_MACHINE_LISP): Add dnd.elc.
19619 (minibuf.o): Fix typo.
19620 Update dependencies.
19621
19622 * data.c (do_symval_forwarding, store_symval_forwarding)
19623 (find_symbol_value): Use the selected frame's keyboard, not
19624 current_kboard.
19625
19626 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19627 Vwindow_system.
19628
19629 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19630 Fmenu_bar_open.
19631 (syms_of_xmenu): Update defsubr.
19632 (mouse_position_for_popup, Fx_popup_menu)
19633 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19634 (set_frame_menubar, free_frame_menubar)
19635 (create_and_show_popup_menu, xmenu_show)
19636 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19637 an X frame.
19638
19639 * xselect.c (x_own_selection): Abort if not an X frame.
19640 (some_frame_on_display): Check if it is an X frame.
19641 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19642
19643 * coding.c: Include frame.h and termhooks.h.
19644 (terminal_coding, keyboard_coding): Delete.
19645 (Fset_terminal_coding_system_internal)
19646 (Fset_keyboard_coding_system_internal)
19647 (Fkeyboard_coding_system)
19648 (Fterminal_coding_system): Add a terminal parameter.
19649 Get terminal_coding from the terminal.
19650 (init_coding_once): Don't call setup_coding_system here.
19651
19652 * dispextern.h (set_scroll_region, turn_off_insert)
19653 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19654 (tty_clear_end_of_line, tty_setup_colors)
19655 (delete_tty, updating_frame)
19656 (produce_special_glyphs, produce_glyphs, write_glyphs)
19657 (insert_glyphs): Remove.
19658 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19659 (tty_turn_off_highlight, get_tty_size): Add declaration.
19660 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19661
19662 * frame.h (enum output_method): Add output_initial.
19663 (struct x_output): Delete.
19664 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19665 Access foreground_pixel and background_pixel directly from the frame.
19666 (tty_display): Delete.
19667 (struct frame): Add buried_buffer_list, foreground_pixel,
19668 background_pixel and terminal. Delete kboard.
19669 (union output_data): Add tty.
19670 (FRAME_KBOARD): Get the kboard from the terminal.
19671 (FRAME_INITIAL_P): New macro.
19672 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19673 (Qterm_environment_variable, Qdisplay_environment_variable)
19674 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19675 New declarations.
19676
19677 * termchar.h (tty_output, tty_display_info): New structures.
19678 (tty_list): Declare.
19679 (FRAME_TTY, CURTTY): New macros.
19680 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19681 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19682 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19683 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19684
19685 * callproc.c: Include frame.h and termhooks.h, for terminal
19686 parameters.
19687 (add_env): New function.
19688 (child_setup): Use it.
19689 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19690 (getenv_internal): Fix get_terminal_param call.
19691 (Fgetenv_internal, egetenv): Update doc.
19692 (syms_of_callproc): Initialize Vprocess_environment to nil.
19693 Register and initialize them. Remove obsolete defvars. Update doc
19694 strings.
19695 (child_setup): Handle Vlocal_environment_variables.
19696 (getenv_internal): Add terminal parameter.
19697 Handle Vlocal_environment_variables.
19698 (Fgetenv_internal): Add terminal parameter.
19699 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19700 environment in a frame (not terminal) parameter. Update doc strings.
19701 (set_initial_environment): Rename from set_global_environment.
19702 Store Emacs environment in initial frame parameter.
19703
19704 * xdisp.c (redisplay_internal): Update references to
19705 `previous_terminal_frame'.
19706 (display_mode_line, Fformat_mode_line): Replace calls to
19707 `push_frame_kboard' with `push_kboard'.
19708 (get_glyph_string_clip_rects): Add extra parentheses and
19709 braces to prevent compiler warnings.
19710 (calc_pixel_width_or_height): Add xassert to check that the
19711 frame is alive. Don't call `lookup_image' on a termcap frame.
19712 (message2_nolog, message3_nolog, redisplay_internal)
19713 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19714 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19715 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19716 (Fx_display_pixel_width, Fx_display_pixel_height)
19717 (Fx_display_planes, Fx_display_color_cells)
19718 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19719 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19720 (Fx_display_backing_store, Fx_display_visual_class)
19721 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19722 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19723
19724 * xfns.c (x_set_foreground_color x_set_background_color)
19725 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19726 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19727 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19728 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19729 terminal that is being deleted.
19730 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19731 frame parameter, and make sure it overrides any user-supplied setting.
19732 (Fx_close_connection, Fx_synchronize): Unify argument names with
19733 the rest of the DEFUNs.
19734
19735 * dispnew.c (Fsend_string_to_terminal): Update call to
19736 `get_tty_terminal'.
19737 (Fredraw_frame, Fsend_string_to_terminal)
19738 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19739 FRAME_TERMCAP_P and FRAME_TTY.
19740 (window_change_signal): Don't believe width/height values that are
19741 impossibly small.
19742 (Vinitial_window_system): Rename from Vwindow_system.
19743 (termscript, Wcm, rif): Delete.
19744
19745 * termhooks.h (struct terminal): New struct containing the
19746 previously global text display hooks and new members NAME,
19747 DELETED and PARAM_ALIST.
19748 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19749 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19750 (FRAME_RIF): New macros.
19751 (get_terminal_param, get_device): New declarations.
19752 (termscript): Delete declaration.
19753
19754 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19755 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19756 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19757 FRAME_FOREGROUND_PIXEL.
19758 (x_fully_uncatch_errors): Disable definition.
19759 (x_scroll_bar_expose): Fix reference to foreground pixel.
19760 (XTread_socket): Disable loop on all X displays.
19761 (x_delete_terminal): Don't set terminal->deleted and let
19762 delete_terminal delete the frames on the terminal.
19763 (x_delete_display): Doc update to reflect changes in
19764 delete_terminal.
19765 (x_display_info) <terminal>: Move member earlier in the struct.
19766 (deleting_tty): Remove old variable.
19767 (Fsuspend_tty): Call clear_tty_hooks.
19768 (Fresume_tty, init_tty): Call set_tty_hooks.
19769 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19770 errors on X frames.
19771 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19772 (handle_one_xevent): Initialize `f' to NULL.
19773 (x_delete_terminal, x_create_terminal): New functions.
19774 (XTset_terminal_modes, XTreset_terminal_modes)
19775 (XTread_socket, x_connection_closed, x_term_init)
19776 (x_term_init, x_delete_display): Add terminal parameter.
19777 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19778 X connections.
19779
19780 * frame.c: Include termchar.h.
19781 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19782 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19783 (Qdisplay_environment_variable): New vars.
19784 (Fframep): Deal with output_initial.
19785 (Fframe-live-p): Doc fix.
19786 (Fwindow-system): New function.
19787 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19788 (make_terminal_frame): Don't create frames on a terminal that is
19789 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19790 (store_frame_param): Check for found_for_frame before calling XFRAME.
19791 (Fmake_terminal_frame): Handle NULL tty names correctly.
19792 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19793 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19794 frames to refer to a deleted frame in their 'environment parameter.
19795 (Fframe_with_environment): New function.
19796 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19797 (get_future_frame_param): New function.
19798 (Fmake_terminal_frame): Use it.
19799 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19800
19801 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19802 * sysdep.c (reset_sys_modes): Update for renames.
19803
19804 * keyboard.c (tty_read_avail_input): New function.
19805 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19806 (syms_of_keyboard): Defsubr them.
19807 (Fset_input_meta_mode, Fset_quit_char): New functions.
19808 (Fset_input_mode): Split to above functions.
19809 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19810 parameter. Use it in call to `read_char'.
19811 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19812 Set wrong_kboard_jmpbuf correctly in recursive calls.
19813 Use current_kboard to access Vkeyboard_translate_table.
19814 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19815 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19816 Update longjmp invocations. Remember the original current_kboard,
19817 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19818 changes it. Comment out unnecessary calls to
19819 `record_single_kboard_state' and `any_kboard_state'.
19820 Update recursive calls.
19821 (wrong_kboard_jmpbuf): Remove global variable.
19822 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19823 Handle deleted interrupted_kboards correctly; that is a legal
19824 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19825 and read_char calls. Abort if interrupted_kboard died in read_char.
19826 (any_kboard_state, single_kboard_state)
19827 (push_frame_kboard): Remove function.
19828 (pop_kboard): Switch out of single_kboard mode if the kboard has
19829 been deleted. Remove unused variable. Help debugging by not
19830 changing current_kboard unnecessarily. Set current_kboard to the
19831 kboard of the selected frame when the stored kboard object has
19832 been deleted before pop_kboard.
19833 (temporarily_switch_to_single_kboard): Change first parameter to a
19834 frame pointer. Throw an error when caller wants to change kboards
19835 while in single_kboard mode. Don't push_kboard if we weren't in
19836 single kboard state. Don't pop_kboard if we popped into any
19837 kboard state.
19838 (restore_kboard_configuration): Abort if pop_kboard changed the
19839 kboard in single_kboard mode. Call pop_kboard only after setting
19840 up single_kboard mode.
19841 (Frecursive_edit): Switch to single_kboard mode only in nested
19842 command loops.
19843 (cmd_error, command_loop, command_loop_1, timer_check):
19844 Comment out unnecessary call to `any_kboard_state' and
19845 `record_single_kboard_state'.
19846 (delete_kboard): Exit single_kboard mode if we have just deleted
19847 that kboard. Use FRAME_KBOARD.
19848 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19849 `fatal_error_signal'.
19850 (record_single_kboard_state): Don't push_kboard if we weren't in
19851 single kboard state. Don't pop_kboard if we popped into any
19852 kboard state.
19853 (push_frame_kboard): Rename to push_kboard.
19854 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19855 (read_avail_input): Read input from all terminals.
19856 (mark_kboards): Also mark Vkeyboard_translate_table.
19857 (kbd_buffer_store_event_hold): Simplify condition.
19858 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19859 (Vkeyboard_translate_table): Move to struct kboard.
19860 (init_kboard): Initialize Vkeyboard_translate_table.
19861 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19862 Vkeyboard_translate_table. Update doc strings. Update docs of
19863 local-function-key-map and function-key-map.
19864
19865 * terminal.c: New file.
19866
19867 * term.c: Include errno.h.
19868 (Vring_bell_function, device_list, initial_device)
19869 (next_device_id, ring_bell, update_begin, update_end)
19870 (set_terminal_window, cursor_to, raw_cursor_to)
19871 (clear_to_end, clear_frame, clear_end_of_line)
19872 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19873 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19874 (syms_of_term): Move their initialization to terminal.c.
19875 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19876 (Ftty_display_color_cells)
19877 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19878 (clear_tty_hooks, set_tty_hooks)
19879 (init_tty, maybe_fatal): New functions.
19880 (Ftty_type): Return nil if terminal is not on a tty instead of
19881 throwing an error. Doc update.
19882 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19883 Doc update. Initialize new subrs and variables.
19884 (delete_tty): Use terminal->deleted.
19885 (tty_set_terminal_modes): Rename from set_terminal_modes.
19886 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19887 (set_scroll_region): Rename to `tty_set_scroll_region'.
19888 (turn_on_insert): Rename to `tty_turn_on_insert'.
19889 (turn_off_insert): Rename to `tty_turn_off_insert'.
19890 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19891 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19892 (toggle_highligh): Rename to `tty_toggle_highlight'.
19893 (background_highlight): Rename to `tty_background_highlight'.
19894 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19895 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19896 (tty_set_scroll_region, tty_background_highlight)
19897 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19898 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19899 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19900 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19901 Add static modifier.
19902 (tty_reset_terminal_modes, tty_set_terminal_window)
19903 (tty_set_scroll_region, tty_background_highlight)
19904 (tty_highlight_if_desired, tty_cursor_to)
19905 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19906 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19907 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19908 renames.
19909
19910 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19911
19912 * keyboard.c: Qrtl is new.
19913 (parse_tool_bar_item): Handle :rtl keyword.
19914 (syms_of_keyboard): Intern :rtl keyword.
19915
19916 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19917
19918 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19919 so no Lisp code is executed.
19920 (file_for_image, find_rtl_image): New functions.
19921 (xg_get_image_for_pixmap): Use file_for_image.
19922 (update_frame_tool_bar): If direction is RTL, use RTL image if
19923 defined. Use Gtk stock images if defined.
19924
19925 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19926
19927 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19928 for nonexistent or zero-width glyph in composition glyph.
19929
19930 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19931
19932 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19933
19934 * xdisp.c (Finvisible_p): New function.
19935 (syms_of_xdisp): defsubr it.
19936
19937 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
19938
19939 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19940 Doc fixes.
19941
19942 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19943
19944 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19945
19946 2007-08-24 Martin Rudalics <rudalics@gmx.at>
19947
19948 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19949 whether decoding has modified buffer contents.
19950
19951 2007-08-24 Jason Rumney <jasonr@gnu.org>
19952
19953 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19954 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19955 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19956 (init_svg_functions) [HAVE_NTGUI]: New function.
19957 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19958 (svg_load_image): Use them.
19959 (svg_load_image) [HAVE_NTGUI]: Implement background.
19960
19961 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19962
19963 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19964 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19965 (LIBX): Remove @RSVG_LIBS@.
19966 (LIBES): Add $(RSVG_LIBS).
19967
19968 * image.c (svg_load_image): Blend with specified background if exists.
19969 Use IMAGE_BACKGROUND. Add Mac OS Support.
19970
19971 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19972 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19973 Remove macros.
19974 [MAC_OSX] (socket_callback): Do nothing.
19975 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19976 ReceiveNextEvent.
19977 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19978 socket_callback.
19979 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19980
19981 2007-08-22 Glenn Morris <rgm@gnu.org>
19982
19983 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19984
19985 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19986
19987 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19988
19989 * image.c: Add support for SVG images. Some additional comments
19990 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19991 (svg_image_p): New function to test for SVG image.
19992 (svg_load): New function to load SVG image.
19993 (svg_load_image): New function, helper for svg_load.
19994 (Qsvg): New Lisp_object.
19995 (svg_keyword_index): New enum.
19996 (svg_format): New static `image_keyword' struct.
19997 (svg_type): New static `image_type' struct.
19998 (librsvg/rsvg.h): Include it.
19999
20000 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20001
20002 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20003
20004 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20005
20006 * lread.c (Qold_style_backquotes): New var.
20007 (syms_of_lread): Init and staticpro it.
20008 (load_warn_old_style_backquotes): New fun.
20009 (Fload): Use them to warn about old style backquotes.
20010 (end_of_file_error, Fload): Remove unused vars.
20011
20012 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20013
20014 * lread.c (Vold_style_backquotes): New var.
20015 (syms_of_lread): Init and export it to Elisp.
20016 (read1): Set it when we find an old-style (back)quote.
20017
20018 2007-08-22 Jason Rumney <jasonr@gnu.org>
20019
20020 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20021
20022 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20023
20024 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20025
20026 2007-08-19 Richard Stallman <rms@gnu.org>
20027
20028 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20029
20030 2007-08-19 Andreas Schwab <schwab@suse.de>
20031
20032 * alloc.c (pure): Round PURESIZE up.
20033
20034 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20035
20036 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20037 active frame.
20038
20039 2007-08-16 Richard Stallman <rms@gnu.org>
20040
20041 * eval.c (Fcommandp): Add parens to clarify.
20042
20043 * minibuf.c (Fall_completions): Use enum for type of table.
20044
20045 * emacs.c (USAGE2): Improve text.
20046
20047 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20048
20049 * term.c (tty_default_color_capabilities): Declare static
20050 variables in file scope, to avoid HPUX compiler problem.
20051
20052 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20053
20054 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20055 to gtk_toolbar_insert.
20056
20057 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20058
20059 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20060
20061 * insdel.c (reset_var_on_error): New fun.
20062 (signal_before_change, signal_after_change):
20063 Use it to reset (after|before)-change-functions to nil in case of error.
20064 Bind inhibit-modification-hooks to t.
20065 Don't bind (after|before)-change-functions to nil while they run.
20066
20067 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20068
20069 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20070 filling pixmap with stippled background.
20071
20072 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20073
20074 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20075 Don't use invisible frame as parent window for repositioning.
20076
20077 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20078
20079 * print.c (new_backquote_output): Rename from old_backquote_output.
20080 (print): Inverse its logic (according to its name) so as to match the
20081 behavior of new_backquote_flag in lread.c.
20082
20083 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20084
20085 * gmalloc.c (posix_memalign): New function.
20086
20087 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20088 ActivateControl/DeactivateControl here.
20089 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20090 frame-notice-user-settings is non-nil.
20091 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20092 for kEventParamFMFontStyle.
20093 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20094 mac_pass_command_to_system and mac_pass_control_to_system here.
20095 (XTread_socket): Call ActivateControl/DeactivateControl here.
20096 (XTread_socket) [TARGET_API_MAC_CARBON]:
20097 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20098 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20099 for window repositioning.
20100
20101 2007-08-08 Glenn Morris <rgm@gnu.org>
20102
20103 * Replace `iff' in doc-strings and comments.
20104
20105 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
20106
20107 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20108
20109 2007-08-07 Martin Rudalics <rudalics@gmx.at>
20110
20111 * fileio.c (Finsert_file_contents): Run format-decode and
20112 after_insert_file_functions on entire buffer when REPLACE is
20113 non-nil and inhibit modification_hooks and point_motion_hooks.
20114 For consistency, run after_insert_file_functions iff something
20115 got inserted. Move signal_after_change and update_compositions
20116 after code running after_insert_file_functions. Make sure that
20117 undo_list doesn't record intermediate steps of the decoding process.
20118
20119 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20120
20121 * emacs.c (main)
20122 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20123 Call malloc_enable_thread on interactive startup.
20124
20125 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20126 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20127 [USE_PTHREAD]: Conditionalize with it.
20128 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20129 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20130 New functions.
20131
20132 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
20133
20134 * xdisp.c (redisplay_window): When restoring original buffer
20135 position, make sure it is still valid.
20136
20137 * image.c (png_load): Ignore png-supplied background color.
20138
20139 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20140
20141 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20142 Use kCFAbsoluteTimeIntervalSince1970.
20143
20144 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20145 New variable.
20146 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20147 event loop should be quit.
20148 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20149 Quit dialog event loop if quit_dialog_event_loop is set.
20150
20151 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20152 (Selection): New typedef. Use instead of ScrapRef.
20153 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20154 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20155 (mac_clear_selection): Rename from clear_scrap.
20156 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20157 scrap_has_target_type. All uses changed.
20158 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20159 (mac_selection_has_target_p): New functions.
20160 (mac_put_selection_value): Rename from put_scrap_string.
20161 (mac_get_selection_value): Rename from get_scrap_string.
20162 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20163 (put_scrap_private_timestamp, scrap_has_target_type)
20164 (get_scrap_private_timestamp): Remove functions.
20165 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20166 (x_own_selection, x_get_local_selection):
20167 Use mac_valid_selection_value_p.
20168 (x_own_selection): Don't use put_scrap_private_timestamp.
20169 Record OWNERSHIP-INFO into Vselection_alist instead.
20170 (x_get_local_selection): Don't check type if request is local.
20171 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20172 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20173
20174 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20175
20176 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20177 add comment explaining why.
20178
20179 2007-08-03 Richard Stallman <rms@gnu.org>
20180
20181 * fileio.c (Fvisited_file_modtime): Use make_time.
20182
20183 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20184
20185 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20186 build.
20187
20188 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20189
20190 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20191
20192 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20193
20194 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20195
20196 2007-07-30 Richard Stallman <rms@gnu.org>
20197
20198 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20199
20200 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20201
20202 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20203
20204 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
20205
20206 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20207 remote default-directory.
20208
20209 * buffer.c (mode-line-format): Update doc string.
20210
20211 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20212
20213 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20214 scroll bar gap.
20215 (x_scroll_bar_create): Set bar->fringe_extended_p.
20216 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20217 on frame edge. Check fringe background extension. Don't clear
20218 extended fringe background area.
20219
20220 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20221 (w32_fill_area): Enclose multiple statements with do ... while (0).
20222
20223 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20224 Extend fringe background to scroll bar gap.
20225 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20226 Set bar->fringe_extended_p.
20227 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20228 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20229 background extension. Don't clear extended fringe background area.
20230
20231 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20232 New member fringe_extended_p.
20233
20234 2007-07-25 Glenn Morris <rgm@gnu.org>
20235
20236 * Relicense all FSF files to GPLv3 or later.
20237
20238 * COPYING: Switch to GPLv3.
20239
20240 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20241
20242 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20243
20244 * data.c (Finteractive_form): Check for the presence of an
20245 `interactive-form' symbol property more thoroughly.
20246
20247 * data.c (Finteractive_form): Use an `interactive-form' property if
20248 present, analogous to the function-documentation property.
20249
20250 2007-07-24 Jason Rumney <jasonr@gnu.org>
20251
20252 * w32fns.c (x_real_positions): Get real position from OS instead of
20253 calculating it.
20254
20255 2007-07-23 Jason Rumney <jasonr@gnu.org>
20256
20257 * filelock.c (current_lock_owner): Allow for @ sign in username.
20258
20259 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
20260
20261 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20262 remote default-directory.
20263
20264 * buffer.c (mode-line-format): Describe above case in doc string.
20265
20266 2007-07-20 Eli Zaretskii <eliz@gnu.org>
20267
20268 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20269 Define if not defined.
20270
20271 2007-07-18 Jason Rumney <jasonr@gnu.org>
20272
20273 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20274
20275 2007-07-18 Richard Stallman <rms@gnu.org>
20276
20277 * data.c (Fsetq_default): Doc fix.
20278
20279 * eval.c (Fsetq): Doc fix.
20280
20281 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
20282
20283 * coding.c (Ffind_operation_coding_system):
20284 * eval.c (For, Fand): Doc fixes.
20285 Reported by Johan Bockgård.
20286
20287 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20288
20289 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20290
20291 * xterm.h: Declare x_ewmh_activate_frame.
20292
20293 * xterm.c (x_ewmh_activate_frame): New function.
20294 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20295
20296 2007-07-17 Martin Rudalics <rudalics@gmx.at>
20297
20298 * window.c (Fdisplay_buffer): If largest or LRU window is the
20299 only window, split it even if it is not eligible for splitting.
20300 This restores the original behavior broken by the 2007-07-15
20301 change.
20302
20303 2007-07-17 Glenn Morris <rgm@gnu.org>
20304
20305 * abbrev.c (abbrev_check_chars): New function.
20306 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20307 Call abbrev_check_chars to check abbrev characters are word
20308 constituents. Doc fix.
20309
20310 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20311
20312 * process.c (Fstart_process, Fmake_network_process)
20313 (read_process_output): Fix up last changes.
20314
20315 2007-07-16 Eli Zaretskii <eliz@gnu.org>
20316
20317 * makefile.w32-in (clean): Don't delete *~.
20318
20319 2007-07-16 Andreas Schwab <schwab@suse.de>
20320
20321 * window.c (Fdisplay_buffer): Use NILP.
20322 (Fset_window_scroll_bars): Likewise.
20323
20324 2007-07-15 Martin Rudalics <rudalics@gmx.at>
20325
20326 * window.c (window_min_size_2): New function.
20327 (window_min_size_1, size_window, Fdisplay_buffer)
20328 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20329 windows without mode- or header-lines when window-min-height is
20330 too small.
20331 (size_window): Reset nodelete_p after testing it, following an
20332 earlier note by Kim F. Storm.
20333 (display_buffer): Do not set split_height_threshold to twice the
20334 value of window_min_height to avoid changing the value of a
20335 customizable variable. Rather explicitly check whether the
20336 height of the window that shall be splitted is at least as large
20337 as split_height_threshold.
20338 (Fwindow_full_width_p): New defun.
20339 (syms_of_window): Defsubr it.
20340
20341 * window.h: Add EXFUN for Fwindow_full_width_p.
20342
20343 2007-07-14 Jason Rumney <jasonr@gnu.org>
20344
20345 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20346
20347 2007-07-14 Richard Stallman <rms@gnu.org>
20348
20349 * eval.c (maybe_call_debugger): New function.
20350 (find_handler_clause): Use maybe_call_debugger.
20351 Call it when the handler says `debug'.
20352 Eliminate DEBUGGER_VALUE_PTR.
20353 (Fsignal): Eliminate debugger_value.
20354 (Qdebug): New variable.
20355 (syms_of_eval): Initialize it.
20356
20357 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
20358
20359 * eval.c (Fprogn):
20360 * keyboard.c (Ftrack_mouse):
20361 * print.c (Fwith_output_to_temp_buffer):
20362 * window.c (Fsave_window_excursion): Doc fix.
20363
20364 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20365
20366 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20367
20368 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20369
20370 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20371 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20372 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20373 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20374 Remove unused encoding_carryover.
20375 * process.c: Adjust all functions accordingly.
20376
20377 2007-07-12 Richard Stallman <rms@gnu.org>
20378
20379 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20380
20381 2007-07-11 Jason Rumney <jasonr@gnu.org>
20382
20383 * makefile.w32-in (LIBS): Include OLE32.
20384
20385 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20386 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20387
20388 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20389
20390 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20391 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20392 from a Lisp_Object into a bare pointer.
20393 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20394 Adjust the code correspondingly.
20395
20396 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20397
20398 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20399 (term_show_mouse_face): Remove unused var `j'.
20400 (handle_one_term_event): Remove unused vars `i' and `j'.
20401 Don't cast return value of ttyname since it's not necessary.
20402
20403 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20404
20405 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20406 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20407
20408 * fns.c (map_char_table): Use an array of int for `indices' rather than
20409 an array of Lisp_Objects (which are only ever integers anyway).
20410 (Fmap_char_table): Update caller.
20411 * lisp.h: Update prototype.
20412 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20413 * fontset.c (Ffontset_info):
20414 * casetab.c (set_case_table): Update callers.
20415
20416 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20417
20418 * keymap.c (struct accessible_keymaps_data)
20419 (struct where_is_internal_data): New structures.
20420 (accessible_keymaps_1, where_is_internal_1): Use them to change
20421 interface to adhere to the one used by map_keymap.
20422 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20423 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20424
20425 * keymap.h (map_keymap_function_t): More informative prototype.
20426
20427 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20428
20429 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20430 (looking_at_1): Don't change search_regs and last_thing_searched
20431 if `inhibit-changing-match-data' is non-nil.
20432 (string_match_1, search_buffer, set_search_regs): Likewise.
20433 (syms_of_search): Add Lisp level definition for
20434 `inhibit-changing-match-data' and set it to nil.
20435 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20436 start and end of the match, instead of using values in search_regs.
20437
20438 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20439
20440 * minibuf.c (Fcompleting_read): New value `confirm-only'
20441 for `require-match'.
20442
20443 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20444
20445 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20446 part of the 2007-06-27 change to syms_of_fileio.
20447
20448 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20449
20450 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20451 Check WINDOWP before using XWINDOW. Consolidate return statements.
20452
20453 2007-06-27 Richard Stallman <rms@gnu.org>
20454
20455 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20456
20457 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
20458
20459 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20460
20461 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20462
20463 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20464 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20465 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20466 (_free_internal, memalign): Use them.
20467 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20468 Initialize to PTHREAD_MUTEX_INITIALIZER.
20469 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20470 (morecore_nolock): Rename from morecore. All uses changed.
20471 Use only nolock versions of internal allocation functions.
20472 (_malloc_internal_nolock, _realloc_internal_nolock)
20473 (_free_internal_nolock): New functions created from
20474 _malloc_internal, _realloc_internal, and _free_internal.
20475 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20476 Copy hook value to automatic variable before its use.
20477 (memalign): Copy hook value to automatic variable before its use.
20478
20479 2007-06-26 Kenichi Handa <handa@m17n.org>
20480
20481 * coding.c (Ffind_operation_coding_system): Docstring improved.
20482 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20483
20484 2007-06-25 David Kastrup <dak@gnu.org>
20485
20486 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20487 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20488 cater for additional parameter.
20489
20490 * keymap.h: Adjust number of parameters to `current-active-maps'.
20491
20492 * doc.c (Fsubstitute_command_keys): Adjust call of
20493 `current-active-maps'.
20494
20495 2007-06-25 David Kastrup <dak@gnu.org>
20496
20497 * callint.c (Fcall_interactively): Make the parsing of interactive
20498 specs somewhat more readable.
20499
20500 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20501
20502 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20503 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20504 if extended background has already been filled.
20505
20506 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20507
20508 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20509 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20510
20511 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20512 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20513 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20514 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20515 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20516 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20517 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20518 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20519 Run timers during dialog popup.
20520 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20521
20522 2007-06-21 Jason Rumney <jasonr@gnu.org>
20523
20524 * image.c (convert_mono_to_color_image): Swap fore and background.
20525
20526 2007-06-20 Jason Rumney <jasonr@gnu.org>
20527
20528 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20529 (w32_free_bdf_font): Unmap memory not handle.
20530
20531 2007-06-20 Sam Steingold <sds@gnu.org>
20532
20533 * gmalloc.c (__morecore): Fix the declaration to comply with the
20534 definition.
20535
20536 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
20537
20538 * w32term.c (w32_delete_display): Remove leftover declaration.
20539 (w32_define_cursor, w32_initialize): Make static.
20540
20541 * w32.c (_wsa_errlist): Fix typo in error message.
20542 (init_environment): Ignore any environment variable from the
20543 registry having a null value.
20544
20545 2007-06-20 Glenn Morris <rgm@gnu.org>
20546
20547 * Makefile.in (LIBGIF): Default to -lgif.
20548
20549 2007-06-17 Jason Rumney <jasonr@gnu.org>
20550
20551 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20552 unicode strings.
20553
20554 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
20555
20556 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20557 Fix typo in docstring.
20558
20559 2007-06-16 Eli Zaretskii <eliz@gnu.org>
20560
20561 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20562 and their keybindings.
20563
20564 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
20565
20566 * composite.c (update_compositions): Fix last fix.
20567
20568 2007-06-14 Jason Rumney <jasonr@gnu.org>
20569
20570 * w32.c (get_process_times_fn): New function pointer.
20571 (globals_of_w32): Intialize it if present in kernel32.dll.
20572 (w32_get_internal_run_time): New function.
20573
20574 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20575
20576 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20577
20578 * composite.c (update_compositions): Check the validness of
20579 compositions.
20580
20581 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20582
20583 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20584 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20585
20586 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20587 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20588
20589 * macgui.h (USE_MAC_TOOLBAR): New define.
20590
20591 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20592 Return immediately unless popup is activated.
20593
20594 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20595 background to scroll bar gap.
20596 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20597 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20598 scroll bars on frame edge. Check fringe background extension.
20599 Don't clear extended fringe background area.
20600 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20601 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20602 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20603 [USE_MAC_TOOLBAR]: New macros.
20604 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20605 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20606 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20607 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20608 [USE_MAC_TOOLBAR]: New functions.
20609 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20610 manually if previous repositioning has failed.
20611 (mac_handle_keyboard_event): Use precomputed event kind.
20612 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20613 as tool bar item click. Handle mouse movement over tool bar items.
20614
20615 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20616 toolbar_win_gravity.
20617 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20618 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20619 Add externs.
20620
20621 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20622 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20623
20624 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
20625
20626 * image.c (search_image_cache): Remove unused variable.
20627
20628 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
20629
20630 * xfns.c, xmenu.c: Link to xaw3d if available.
20631
20632 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20633
20634 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20635 frame_foreground and frame_background.
20636
20637 * image.c (lookup_image): Save frame foreground and background colors.
20638 (search_image_cache): Check if saved and current frame colors match.
20639
20640 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20641
20642 * regex.c (regex_compile): Remove the `regnum' counter.
20643 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20644
20645 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20646
20647 * term.c: Include intervals.h to declare Fget_text_property.
20648
20649 2007-06-10 Jason Rumney <jasonr@gnu.org>
20650
20651 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20652
20653 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
20654
20655 * callint.c (Fcall_interactively):
20656 * editfns.c (Fdelete_and_extract_region):
20657 * fileio.c (Fread_file_name):
20658 * fns.c (Fmapconcat):
20659 * keyboard.c (cmd_error_internal):
20660 * keymap.c (Fkey_description):
20661 * lread.c (openp):
20662 * minibuf.c (read_minibuf):
20663 * search.c (wordify):
20664 * sunfns.c (sel_read):
20665 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20666 * xfns.c (x_default_scroll_bar_color_parameter):
20667 * xmenu.c (menu_help_callback):
20668 * xselect.c (Fx_get_atom_name):
20669 * xterm.c (x_term_init): Use empty_unibyte_string.
20670
20671 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20672
20673 * alloc.c (init_strings): Initialize canonical empty strings.
20674 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20675 canonical empty string when the requested size is 0.
20676
20677 * emacs.c (empty_unibyte_string): Rename from empty_string.
20678 (empty_multibyte_string): New canonical empty string.
20679 (syms_of_emacs): Don't initialize empty_string.
20680
20681 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20682 string, if appropriate.
20683 (empty_unibyte_string, empty_multibyte_string): New externs.
20684 (empty_string): Remove extern.
20685
20686 * lread.c (syms_of_lread): Use empty_unibyte_string.
20687
20688 2007-06-07 Jason Rumney <jasonr@gnu.org>
20689
20690 * s/ms-w32.h: Don't define HAVE_TZNAME.
20691
20692 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20693
20694 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20695
20696 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20697
20698 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20699 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20700
20701 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20702 Don't call next handler.
20703 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20704 Remove argument. Install handler to application.
20705 (set_frame_menubar): Don't change deep_p.
20706 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20707 FRAME_OUTER_TO_INNER_DIFF_Y.
20708 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20709 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20710 [HAVE_DIALOGS]: New macros.
20711 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20712 Use them.
20713 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20714
20715 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20716 init_service_handler. All callers changed. Return OSStatus value.
20717
20718 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20719 All callers changed so as not to call SetPortWindowPort.
20720 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20721 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20722 mac_draw_string_common.
20723 (mac_draw_image_string_qd): Likewise.
20724 (mac_draw_string_common): Use them. Add INLINE.
20725 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20726 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20727 GetGlobalMouse.
20728 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20729 and FRAME_OUTER_TO_INNER_DIFF_Y.
20730 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20731 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20732 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20733 repositioning window to mac_handle_window_event.
20734 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20735 saving window location to mac_handle_window_event
20736 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20737 (install_menu_target_item_handler): Remove argument in extern.
20738 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20739 Also accept command events.
20740 (do_keystroke): New function created from XTread_socket.
20741 (init_command_handler): Remove functions.
20742 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20743 and save window location by kEventWindowShowing and kEventWindowHiding
20744 handlers here. Don't call next handler for window state change and
20745 focus events.
20746 (mac_handle_application_event, mac_handle_keyboard_event)
20747 [TARGET_API_MAC_CARBON]: New functions.
20748 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20749 kEventWindowShowing and kEventWindowHiding events. Move installation
20750 of mouse, font, text input and menu target item handlers to
20751 install_application_handler.
20752 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20753 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20754 New function.
20755 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20756 Register it.
20757 (XTread_socket) [TARGET_API_MAC_CARBON]:
20758 Consolidate SendEventToEventTarget calls.
20759 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20760 Move application activation handler to mac_handle_application_event.
20761 Move keyboard handler to mac_handle_keyboard_event.
20762 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20763 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20764 init_command_handler. Call install_application_handler.
20765
20766 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20767 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20768
20769 2007-06-07 Glenn Morris <rgm@gnu.org>
20770
20771 * emacs.c (main): Use `emacs-copyright' in --version output.
20772
20773 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
20774
20775 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20776
20777 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20778
20779 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20780
20781 * macgui.h: Replace WindowPtr with WindowRef.
20782
20783 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20784 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20785 Replace ControlHandle with ControlRef.
20786 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20787
20788 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20789 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20790 Replace ControlHandle with ControlRef.
20791 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20792 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20793
20794 * macterm.h (struct scroll_bar): Rename member control_handle_low
20795 and control_handle_high to control_ref_low and control_ref_high.
20796 All uses changed.
20797 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20798 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20799 respectively. All uses changed.
20800 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20801 (install_window_handler, remove_window_handler): Replace WindowPtr
20802 with WindowRef in externs.
20803
20804 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
20805
20806 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20807
20808 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
20809
20810 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20811
20812 * frame.c (Fmouse_position, Fmouse_pixel_position):
20813 Condition on HAVE_GPM too.
20814
20815 * term.c (term_mouse_highlight): Remove unused variables.
20816 (Fterm_open_connection): Set gpm_zerobased to 1.
20817 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20818 Use zero based co-ordinates.
20819 (handle_one_term_event): Report a drag as mouse movement too.
20820
20821 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20822
20823 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
20824
20825 * image.c (search_image_cache): New function. Require background
20826 color match if background color is unspecified in the image spec.
20827 (uncache_image, lookup_image): Use it.
20828
20829 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
20830
20831 * window.c (Fshrink_window): Reflow docstring.
20832
20833 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
20834
20835 * Version 22.1 released.
20836
20837 2007-06-01 Richard Stallman <rms@gnu.org>
20838
20839 * xfns.c (x_encode_text): Add GCPRO.
20840
20841 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20842
20843 * xfns.c (x_set_name_internal): Save encoded name before
20844 x_encode_text in case string data is relocated.
20845
20846 2007-05-31 Richard Stallman <rms@gnu.org>
20847
20848 * buffer.c (syms_of_buffer): Doc fix.
20849
20850 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
20851
20852 * sysdep.c (init_sys_modes): Add rather than replace with
20853 O_NONBLOCK.
20854
20855 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20856 term_mouse_moveto.
20857
20858 * termhooks.h (term_mouse_moveto): New extern.
20859
20860 * term.c (mouse_face_window): Rename...
20861 (Qmouse_face_window): ...to this.
20862 (term_show_mouse_face, term_clear_mouse_face)
20863 (term_mouse_highlight): Use Qmouse_face_window.
20864 (term_mouse_moveto): New function.
20865 (term_mouse_position): Make it work.
20866 (syms_of_term): Uncomment assignment to mouse_position_hook.
20867 Staticpro Qmouse_face_window.
20868
20869 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20870
20871 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20872 around current_column call.
20873
20874 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20875
20876 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20877 * xdisp.c (next_element_from_buffer):
20878 * window.c (delete_window):
20879 * term.c (term_mouse_highlight):
20880 * msdos.c (getdefdir):
20881 * macterm.c (mac_create_bitmap_from_bitmap_data)
20882 (init_font_name_table):
20883 * fns.c (Fsxhash):
20884 * data.c (Fmake_local_variable):
20885 * ccl.c (ccl_driver): Likewise.
20886
20887 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20888
20889 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20890 Call mac_wakeup_from_rne on window size change.
20891
20892 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
20893
20894 * image.c (uncache_image): Fix typo.
20895
20896 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20897
20898 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20899
20900 2007-05-22 Richard Stallman <rms@gnu.org>
20901
20902 * xterm.c (x_connection_closed): Remove NO_RETURN.
20903
20904 2007-05-22 Martin Rudalics <rudalics@gmx.at>
20905
20906 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20907
20908 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
20909
20910 * image.c (uncache_image): New function.
20911 (Fimage_refresh): New function.
20912
20913 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20914
20915 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20916
20917 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20918
20919 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20920 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20921
20922 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20923
20924 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20925 conditional on [HAVE_GPM_H].
20926
20927 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20928
20929 * syntax.c (skip_chars): Update syntax-table only after we checked that
20930 the new location is valid.
20931
20932 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20933
20934 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20935 mac_get_window_bounds.
20936
20937 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20938
20939 * Makefile.in (LIBGPM): Allow it to be set from configure.
20940 If set then link Emacs with it.
20941
20942 * config.in: Regenerate.
20943
20944 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20945 New externs.
20946
20947 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20948 Include gpm.h.
20949 (handle_one_term_event, term_gpm): New externs.
20950
20951 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20952 and allow it to be interrupted by SIGIO.
20953
20954 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20955 (wait_reading_process_output): Wait on gpm_fd too.
20956 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20957 (add_gpm_wait_descriptor_called_flag): New variable.
20958 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20959
20960 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20961 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20962 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20963 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20964 (make_lispy_event): Add case GPM_CLICK_EVENT.
20965 (read_avail_input): Handle mouse input.
20966
20967 * term.c (write_glyphs_with_face): New function.
20968 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20969 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20970 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20971 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20972 (last_mouse_x, last_mouse_y): New variables.
20973 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20974 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20975 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20976 (Fterm_close_connection): New functions.
20977 (term_init): Initialise mouse_face_window.
20978
20979 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
20980
20981 * xdisp.c (redisplay_window): If first window line is a
20982 continuation line, recompute the new window start instead of
20983 recentering.
20984
20985 2007-05-18 Glenn Morris <rgm@gnu.org>
20986
20987 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20988 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20989
20990 2007-05-17 Glenn Morris <rgm@gnu.org>
20991
20992 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20993
20994 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20995
20996 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20997 dead key repeat and up events.
20998
20999 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
21000
21001 * image.c (pbm_load): Check image size for monochrome pbm.
21002
21003 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
21004
21005 * xterm.c (XTread_socket): Revert last change.
21006
21007 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
21008
21009 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21010
21011 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21012
21013 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21014
21015 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21016 mixup (YAILOM).
21017
21018 2007-05-07 Andreas Schwab <schwab@suse.de>
21019
21020 * keymap.c (Flookup_key): Fix typo in last change.
21021
21022 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21023
21024 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21025 mapping for unibyte strings.
21026
21027 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21028
21029 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21030 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21031
21032 2007-04-29 Richard Stallman <rms@gnu.org>
21033
21034 * insdel.c (replace_range): For undo, record insertion first.
21035
21036 2007-04-29 Andreas Schwab <schwab@suse.de>
21037
21038 * lisp.h (VECSIZE): Use OFFSETOF.
21039
21040 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21041
21042 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21043 disabled lines.
21044
21045 2007-04-28 Richard Stallman <rms@gnu.org>
21046
21047 * lread.c (read_escape): In a string, \s is always space.
21048
21049 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21050
21051 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21052
21053 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21054 submenu for menu bar items.
21055
21056 See ChangeLog.10 for earlier changes.
21057
21058 ;; Local Variables:
21059 ;; coding: utf-8
21060 ;; add-log-time-zone-rule: t
21061 ;; End:
21062
21063 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
21064
21065 This file is part of GNU Emacs.
21066
21067 GNU Emacs is free software: you can redistribute it and/or modify
21068 it under the terms of the GNU General Public License as published by
21069 the Free Software Foundation, either version 3 of the License, or
21070 (at your option) any later version.
21071
21072 GNU Emacs is distributed in the hope that it will be useful,
21073 but WITHOUT ANY WARRANTY; without even the implied warranty of
21074 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21075 GNU General Public License for more details.
21076
21077 You should have received a copy of the GNU General Public License
21078 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21079
21080 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40