(Qseqpacket): New symbol.
[bpt/emacs.git] / src / ChangeLog
1 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * process.c (Qseqpacket): New symbol.
4 (HAVE_SEQPACKET): New macro.
5 (Fmake_network_process): Accept new :type `seqpacket'.
6 (init_process): Add `seqpacket' feature when applicable.
7 (syms_of_process): Initialize Qseqpacket.
8
9 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10
11 * font.c (font_load_for_lface, font_open_by_name): Don't store name
12 if entity is Qnil.
13
14 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
15
16 * print.c (print_preprocess): Preprocess the key_and_value table of
17 hashtables, even tho they're "hidden" (bug#5082).
18
19 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
20
21 * frame.c (frame_make_pointer_invisible)
22 (frame_make_pointer_visible): Declare f before statements.
23
24 2009-11-28 Eli Zaretskii <eliz@gnu.org>
25
26 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
27 omitted dependencies on lisp.h.
28
29 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
30
31 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
32 is NULL.
33
34 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
35
36 * frame.c (frame_make_pointer_invisible)
37 (frame_make_pointer_visible): Just return if there isn't any selected
38 frame.
39
40 * search.c (simple_search): Remove warning by making *p const.
41
42 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
43
44 * xdisp.c (power_letter): Remove duplicate const.
45
46 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
47
48 * term.c (delete_tty): Remove check for last terminal (bug#4970).
49
50 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
51 defaults (bug #5025).
52
53 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
54
55 * insdel.c (adjust_markers_for_delete): Move it in the
56 right direction! (bug#4803)
57
58 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
59
60 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
61
62 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
63
64 2009-11-24 Glenn Morris <rgm@gnu.org>
65
66 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
67
68 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
69
70 * Makefile.in: Must create deps for ecrt0.o in its rule.
71
72 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
73 because that is what Gtk+ font dialog understands.
74
75 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
76 of Fcopy_sequence.
77 (font_open_by_name): Put name given into QCname for font-object returned.
78
79 * frame.c (x_set_font): Save original font name as frame parameter
80 font-parameter.
81
82 * xsettings.c (set_default_xft_settings): New function.
83 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
84 is found.
85
86 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
87
88 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
89 searching backwards through multibyte buffer.
90
91 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
92
93 * xterm.c: #include xgselect.h.
94 (x_initialize): Call xgselect_initialize.
95
96 * xsettings.c (something_changedCB): C++ comments => C comments.
97 (init_gconf): Do not deal with any GLib file descriptors, xg_select
98 does that now.
99
100 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
101 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
102 (scroll_bar_button_cb): Remove.
103 (create_menus): C++ comments => C comments. Don't bind grab-notify
104 event.
105 (xg_create_scroll_bar): Don't bind button-press-event and
106 button-release-event.
107
108 * process.c: Include xgselect.h if defined (USE_GTK) ||
109 defined (HAVE_GCONF).
110 (wait_reading_process_output): Call xg_select for the same condition.
111
112 * xgselect.c (xg_select): New function to better integrate with
113 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
114
115 * xgselect.h: New file, declare xg_select, xgselect_initialize.
116
117 * Makefile.in (XOBJ): Add xgselect.o.
118
119 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
120
121 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
122 ignored second argument. All callers changed.
123 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
124 (RE_STRING_CHAR_AND_LENGTH): Likewise.
125 * xdisp.c (string_char_and_length): Likewise.
126
127 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
128
129 * xterm.c (x_new_font):
130 * print.c (print_object):
131 * cmds.c (Fself_insert_command): Move declarations before statements.
132
133 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
134
135 * s/cygwin.h: Remove unneeded linker flags.
136
137 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
138
139 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
140
141 * xsettings.h: Declare xsettings_get_system_font.
142
143 * xsettings.c (xsettings_get_system_font): New function.
144 (init_gconf): No use initiating gconf unless we have Xft also.
145 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
146 HAVE_GCONF.
147
148 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
149 add a blank entry so it doesn't collapse into nothing.
150
151 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
152
153 * lread.c (Funintern): Comment out last change.
154
155 2009-11-19 Richard Stallman <rms@gnu.org>
156
157 * lread.c (Funintern): Error if symbol is t or nil.
158
159 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
160
161 * insdel.c (make_gap_larger): Don't make as many assumptions about the
162 representation of Lisp integers.
163 Reported by MJ Chan <mjchan.inbox@gmail.com>.
164
165 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
166
167 * lisp.h: Remove declaration of Ffont_get_system_font.
168 * xfns.c: Move include of "xsettings.h".
169 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
170
171 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
172
173 * xsettings.c (something_changedCB, Ffont_get_system_font):
174 Check use_system_font.
175 (syms_of_xsettings): DEFVAR font-use-system-font.
176
177 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
178
179 * xfns.c (x_default_font_parameter): Remove dead assignment.
180
181 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
182
183 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
184
185 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
186 not have FC_LCD_*. #define them if not there.
187
188 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
189
190 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
191
192 * xterm.c (handle_one_xevent): Call xft_settings_event for
193 ClientMessage, PropertyNotify and DestroyNotify.
194 (x_term_init): If we have XFT, get DPI from Xft.dpi.
195 Call xsettings_initialize.
196
197 * xftfont.c (xftfont_fix_match): New function.
198 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
199 Call xftfont_fix_match after XftFontMatch.
200
201 * xfont.c (xfont_driver): Initialize all members.
202
203 * xfns.c (x_default_font_parameter):
204 Try font from Ffont_get_system_font.
205 Do not get font from x_default_parameter if we got one from
206 Ffont_get_system_font.
207 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
208
209 * w32font.c (w32font_driver): Initialize all members.
210
211 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
212
213 * lisp.h: Declare syms_of_xsettings.
214
215 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
216 Handle CONFIG_CHANGED_EVENT.
217
218 * ftfont.c (ftfont_filter_properties): New function.
219
220 * frame.c (x_set_font): Remove unused variable lval.
221
222 * font.h (struct font_driver): Add filter_properties.
223
224 * font.c (font_put_extra): Don't return if val is nil, it means
225 boolean option is off.
226 (font_parse_fcname): Collect all extra properties in extra_props
227 and call filter_properties for all drivers with extra_props and
228 font as parameter.
229 (font_open_entity): Do not use cache, it does not pick up new
230 fontconfig settings like hinting.
231 (font_load_for_lface): If spec had a name in it, store it in entity.
232
233 * emacs.c (main): Call syms_of_xsettings
234
235 * config.in: HAVE_GCONF is new.
236
237 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
238 xsettings.o is new.
239
240 2009-11-17 Kenichi Handa <handa@m17n.org>
241
242 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
243 back to the default font in case that no suitable font is found.
244
245 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
246
247 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
248 Suggested by Chad Brown <yandros@mit.edu>.
249 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
250
251 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
252
253 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
254
255 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
256
257 * Makefile.in: Ignore errors from mkdir when creating deps directory.
258
259 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
260
261 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
262 has a parent.
263
264 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
265 dependency files in deps/. Include those files into Makefile.
266
267 * config.in: Generated (AUTO_DEPEND).
268
269 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
270
271 * dbusbind.c (Vdbus_registered_objects_table): Rename from
272 Vdbus_registered_functions_table, because it contains also
273 properties. Fix docstring.
274 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
275
276 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
277
278 * alloc.c (mark_object): Don't reprocess marked strings.
279 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
280 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
281
282 2009-11-13 Kenichi Handa <handa@m17n.org>
283
284 * category.c (word_boundary_p): Adjust for the change of the
285 semantics of Vword_combining_categories.
286 (Vword_combining_categories): Describe the slight change of the
287 semantics.
288
289 2009-11-13 Eli Zaretskii <eliz@gnu.org>
290
291 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
292
293 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
294
295 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
296
297 * xdisp.c (syms_of_xdisp): Fix typo in last change.
298
299 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
300
301 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
302
303 2009-11-11 David Reitter <david.reitter@gmail.com>
304
305 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
306 variables to fix 2009-11-09 change.
307
308 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
309
310 * process.c (ifflag_def): Make flag_sym constant.
311 (Fnetwork_interface_info): Use a constant pointer.
312 (ifflag_table):
313 * xfns.c (cursor_bits):
314 * xdisp.c (power_letter):
315 * termcap.c (speeds, esctab):
316 * sysdep.c (baud_convert):
317 * keyboard.c (lispy_accent_codes, modifier_names):
318 * image.c (xbm_format, xpm_format, pbm_format, png_format)
319 (jpeg_format, tiff_format, gif_format, svg_format)
320 (interlace_start, interlace_increment, gs_format):
321 * gtkutil.c (separator_names):
322 * fringe.c (swap_nibble):
323 * fns.c (base64_value_to_char, base64_char_to_value):
324 * fileio.c (make_temp_name_tbl):
325 * coding.c (suffixes): Make constant.
326
327 * frame.c (make_initial_frame):
328 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
329 build_string.
330 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
331
332 * s/freebsd.h:
333 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
334
335 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
336 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
337
338 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
339 * xterm.c (syms_of_xterm):
340 * xfaces.c (syms_of_xfaces):
341 * xdisp.c (syms_of_xdisp):
342 * lread.c (syms_of_lread):
343 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
344 build_string.
345
346 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
347
348 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
349
350 * fns.c (Fplist_get): Merge the active and the commented out code.
351
352 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
353
354 * keyboard.h: Declare timer_check.
355
356 * keyboard.c (timer_check_2): New function that does what the old
357 timer_check did.
358 (timer_check): Call timer_check_2 until -1 or a non-zero time is
359 returned, i.e. don't return -1 with timers pending.
360
361 * process.c: Remove extern declaration of timer_check.
362
363 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
364 even if timer_check returned -1.
365
366 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
367 xg_dialog_data.
368 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
369 the event loop.
370 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
371 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
372 Destroy the dialog after xg_dialog_run.
373
374 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
375
376 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
377
378 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
379
380 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
381
382 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
383
384 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
385
386 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
387
388 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
389 w32menu.c, and nsmenu.m.
390 Simplify the obsolete case where position is nil.
391 (cleanup_popup_menu): New function, moved from nsmenu.m.
392 (struct skp): Remove slot `notreal'.
393 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
394 adjust callers.
395 (single_menu_item): Adjust call to parse_menu_item.
396 (syms_of_menu): Defsubr x-popup-menu.
397 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
398 (keymap_panes): Don't export any more.
399 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
400 (xmenu_show): Declare.
401 * keyboard.c (parse_menu_item): Remove arg `notreal'.
402 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
403 * keyboard.h (parse_menu_item): Update declaration.
404 * xmenu.c (Fx_popup_menu): Remove.
405 (syms_of_xmenu): Don't defsubr x-popup-menu.
406 * w32menu.c (Fx_popup_menu): Remove.
407 (syms_of_w32menu): Don't defsubr x-popup-menu.
408 * nsmenu.m (cleanup_popup_menu): Remove.
409 (ns_menu_show): Rename from ns_popup_menu and remove all the code
410 moved to menu.c's Fx_popup_menu.
411 (Fx_popup_menu): Remove.
412 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
413 menu_items (it's done in menu.c already).
414
415 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
416
417 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
418 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
419
420 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
421
422 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
423 xmenu_show. Hide any tooltip before opening a menu.
424 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
425 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
426
427 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
428
429 Let integers use up 2 tags to give them one extra bit and thus double
430 their range.
431 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
432 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
433 New macros.
434 (enum Lisp_Type): Use them. Give explicit values.
435 (Lisp_Type_Limit): Remove.
436 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
437 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
438 Pay attention to USE_2_TAGS_FOR_INTS.
439 (INTEGERP): Use LISP_INT_TAG_P.
440 * fns.c (internal_equal): Simplify the default case.
441 (sxhash): Use case_Lisp_Int.
442 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
443 any more.
444 (Ftype_of): Use case_Lisp_Int.
445 (store_symval_forwarding): Take into account the fact that Ints can
446 now have more than one tag.
447 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
448 buffer_slot_type_mismatch):
449 * xfaces.c (face_attr_equal_p):
450 * print.c (print_object):
451 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
452 Use case_Lisp_Int.
453
454 2009-11-06 Eli Zaretskii <eliz@gnu.org>
455
456 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
457
458 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
459 warning.
460
461 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
462
463 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
464
465 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
466
467 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
468 ButtonPressRelease and MotionNotify (bug#4870).
469
470 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
471
472 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
473
474 * xterm.c (syms_of_xterm):
475 * xselect.c (syms_of_xselect):
476 * xmenu.c (syms_of_xmenu):
477 * xfns.c (syms_of_xfns):
478 * xfaces.c (syms_of_xfaces):
479 * xdisp.c (syms_of_xdisp):
480 * window.c (syms_of_window):
481 * w32fns.c (syms_of_w32fns):
482 * undo.c (syms_of_undo):
483 * textprop.c (syms_of_textprop):
484 * terminal.c (syms_of_terminal):
485 * syntax.c (syms_of_syntax):
486 * sound.c (syms_of_sound):
487 * search.c (syms_of_search):
488 * print.c (syms_of_print):
489 * minibuf.c (syms_of_minibuf):
490 * macros.c (syms_of_macros):
491 * keymap.c (syms_of_keymap, initial_define_key)
492 (initial_define_lispy_key):
493 * keyboard.c (syms_of_keyboard):
494 * insdel.c (syms_of_insdel):
495 * image.c (syms_of_image):
496 * fringe.c (syms_of_fringe):
497 * frame.c (syms_of_frame):
498 * fontset.c (syms_of_fontset):
499 * fns.c (syms_of_fns):
500 * fns.c (syms_of_fns):
501 * fileio.c (syms_of_fileio):
502 * fileio.c (syms_of_fileio):
503 * eval.c (syms_of_eval):
504 * doc.c (syms_of_doc):
505 * dispnew.c (syms_of_display):
506 * dired.c (syms_of_dired):
507 * dbusbind.c (syms_of_dbusbind):
508 * data.c (syms_of_data):
509 * composite.c (syms_of_composite):
510 * coding.c (syms_of_coding):
511 * cmds.c (syms_of_cmds):
512 * charset.c (define_charset_internal, syms_of_character):
513 * ccl.c (syms_of_ccl):
514 * category.c (syms_of_category, init_category_once):
515 * casetab.c (syms_of_casetab):
516 * casefiddle.c (syms_of_casefiddle):
517 * callint.c (syms_of_callint):
518 * bytecode.c (syms_of_bytecode):
519 * buffer.c (keys_of_buffer, syms_of_buffer):
520 * alloc.c (syms_of_alloc):
521 * process.c (syms_of_process, init_process):
522 * lread.c (syms_of_lread, init_obarray):
523 * font.c (build_style_table):
524 * emacs.c (syms_of_emacs, main): Replace calls to intern with
525 intern_c_string, calls to make_pure_string with
526 make_pure_c_string. Use pure_cons instead of Fcons.
527
528 * process.c (socket_options): Make it const.
529 (set_socket_option, init_process): Use a const pointer.
530
531 * lread.c (intern_c_string): New function.
532 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
533 (defvar_int): Uset it. Make the name const char*.
534
535 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
536 (defvar_int): Update prototypes.
537 (DEFUN, EXFUN): Support for prototypes is now required.
538 (intern_c_string): New prototype.
539 (struct Lisp_Subr): Make symbol_name constant.
540
541 * font.c (struct table_entry): Remove unused member. Make NAMES
542 constant.
543 (weight_table, slant_table, width_table): Make constant.
544
545 * emacs.c (struct standard_args): Make name and longname constant.
546
547 * character.h (DEFSYM): Use intern_c_string.
548
549 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
550
551 * alloc.c (make_pure_c_string): New function.
552
553 * eval.c (Fautoload): Purecopy all arguments.
554
555 2009-11-05 Kenichi Handa <handa@m17n.org>
556
557 * fileio.c (Finsert_file_contents): Be sure set coding-system of
558 the buffer in case of replace.
559
560 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
561
562 * puresize.h (BASE_PURESIZE): Increase to 1620000.
563
564 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
565
566 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
567 when applicable (bug#4851).
568
569 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
570 (P_): Support for prototypes is now required.
571
572 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
573
574 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
575 (Bug#4827).
576
577 2009-10-30 Eli Zaretskii <eliz@gnu.org>
578
579 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
580
581 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
582
583 * puresize.h (BASE_PURESIZE): Increase to 1470000.
584
585 * lread.c (Fload): Purecopy the file name when building
586 Vpreloaded_file_list.
587
588 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
589
590 * w32fns.c (syms_of_w32fns): Change default value of
591 w32-scroll-lock-modifier to nil. (Bug#2827)
592
593 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
594
595 * minibuf.c (Fall_completions): Fix typos in docstring.
596
597 2009-10-26 Andreas Schwab <schwab@redhat.com>
598
599 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
600
601 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
602
603 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
604 For delta < 0, skip check that only makes sense when the mini-window
605 is going to be enlarged. (Bug#4534)
606
607 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
608
609 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
610 string in menu maps (Bug#4471).
611
612 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
613
614 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
615 FRAME_NS_VIEW on terminal frames (Bug#4765).
616
617 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
618
619 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
620 DBUS_TYPE_UINTnn separately to get proper sign extension.
621
622 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
623 can properly handle unsigned types.
624 (make_uid, make_gid): Remove.
625
626 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
627 types again.
628
629 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
630 (system_process_attributes): Likewise.
631
632 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
633
634 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
635
636 * eval.c (Fautoload): Purecopy the filename. Simplify.
637
638 * category.c (Fdefine_category): Purecopy docstring.
639
640 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
641
642 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
643
644 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
645
646 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
647
648 * window.c (Fwindow_edges, Fwindow_pixel_edges)
649 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
650 (Bug#4775).
651
652 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
653
654 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
655 (init_fileio_once):
656 * lisp.h (init_fileio_once): Remove.
657 * emacs.c (main): Don't call init_fileio_once.
658
659 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
660
661 * puresize.h (BASE_PURESIZE): Increase to 1430000.
662
663 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
664
665 * doprnt.c (doprnt): Fix overflow check.
666
667 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
668
669 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
670
671 * xterm.h (x_wait_for_event): Declare it.
672
673 * xterm.c (pending_event_wait): New variable.
674 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
675 see pending_event_wait.eventtype.
676 (handle_one_xevent): Don't change gravity when parent changes.
677 (x_new_font): Call change_frame_size with new rows/columns before we
678 try to resize the frame.
679 (x_wait_for_event): New function.
680 (x_set_window_size_1): Don't change gravity unless change_gravity
681 is set.
682 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
683 don't change frame size, instead wait for the ConfigureNotify.
684 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
685 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
686 (x_initialize): Initialize pending_event_wait.
687
688 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
689 size.
690
691 * widget.c (EmacsFrameSetValues): Add comment.
692 (EmacsFrameSetCharSize): Just call x_set_window_size.
693
694 * gtkutil.c (xg_frame_set_char_size): Flush events and call
695 x_wait_for_event.
696 (flush_and_sync): Remove again.
697 (xg_get_font_name): Suggest monospace if no previous font is known.
698
699 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
700
701 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
702 8th bit, since that only made sense in the ASCII world (bug#4751).
703
704 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
705
706 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
707 processing pending events when event is filtered for input method.
708 (Bug#3681)
709
710 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
711
712 * fns.c: Add #endif accidentally removed in previous change.
713
714 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
715
716 * fns.c: Remove code for unsupported system: MAC_OS.
717 * image.c: Likewise. Include setjmp.h.
718
719 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
720
721 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
722 pixel -1 (bug #4742).
723
724 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
725
726 * process.c (create_pty): Remove conditionals for no longer
727 supported systems: UNIPLUS and RTU.
728
729 * xterm.c:
730 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
731
732 * alloc.c: Do not define struct catchtag.
733 * eval.c: Move struct catchtag definition ...
734 * lisp.h: ... here.
735
736 * image.c: Move png.h #include earlier to avoid warnings.
737
738 * xterm.c:
739 * xsmfns.c:
740 * xselect.c:
741 * xrdb.c:
742 * xmenu.c:
743 * xftfont.c:
744 * xfont.c:
745 * xfns.c:
746 * xfaces.c:
747 * xdisp.c:
748 * window.c:
749 * widget.c:
750 * w32xfns.c:
751 * w32uniscribe.c:
752 * w32term.c:
753 * w32select.c:
754 * w32reg.c:
755 * w32proc.c:
756 * w32menu.c:
757 * w32inevt.c:
758 * w32heap.c:
759 * w32font.c:
760 * w32fns.c:
761 * w32console.c:
762 * w32.c:
763 * w16select.c:
764 * vm-limit.c:
765 * unexsol.c:
766 * unexec.c:
767 * unexcw.c:
768 * unexaix.c:
769 * undo.c:
770 * tparam.c:
771 * textprop.c:
772 * terminfo.c:
773 * terminal.c:
774 * termcap.c:
775 * term.c:
776 * syntax.c:
777 * sound.c:
778 * sheap.c:
779 * search.c:
780 * scroll.c:
781 * region-cache.c:
782 * regex.c:
783 * ralloc.c:
784 * process.c:
785 * print.c:
786 * nsterm.m:
787 * nsselect.m:
788 * nsmenu.m:
789 * nsimage.m:
790 * nsfont.m:
791 * nsfns.m:
792 * msdos.c:
793 * minibuf.c:
794 * menu.c:
795 * marker.c:
796 * macros.c:
797 * keymap.c:
798 * keyboard.c:
799 * intervals.c:
800 * insdel.c:
801 * indent.c:
802 * gtkutil.c:
803 * ftxfont.c:
804 * ftfont.c:
805 * fringe.c:
806 * frame.c:
807 * fontset.c:
808 * font.c:
809 * fns.c:
810 * floatfns.c:
811 * filelock.c:
812 * fileio.c:
813 * emacs.c:
814 * editfns.c:
815 * dosfns.c:
816 * doprnt.c:
817 * doc.c:
818 * dispnew.c:
819 * dired.c:
820 * dbusbind.c:
821 * data.c:
822 * composite.c:
823 * coding.c:
824 * cmds.c:
825 * cm.c:
826 * chartab.c:
827 * charset.c:
828 * character.c:
829 * ccl.c:
830 * category.c:
831 * casetab.c:
832 * casefiddle.c:
833 * callproc.c:
834 * callint.c:
835 * bytecode.c:
836 * buffer.c:
837 * atimer.c: Include setjmp.h. (Bug#4643)
838
839 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
840
841 Remove leftover table unibyte_to_multibyte_table.
842 * character.c (unibyte_to_multibyte_table): Remove.
843 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
844 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
845 * character.h (UNIBYTE_TO_CHAR): New macro.
846 (MAKE_CHAR_MULTIBYTE): Use it.
847 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
848 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
849 (message_dolog, set_message_1):
850 * search.c (Freplace_match):
851 * editfns.c (Fcompare_buffer_substrings):
852 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
853 (concat):
854 * insdel.c (copy_text, count_size_as_multibyte):
855 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
856 * term.c (produce_glyphs):
857 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
858 * regex.c (RE_CHAR_TO_MULTIBYTE):
859 * cmds.c (internal_self_insert):
860 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
861
862 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
863
864 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
865
866 * puresize.h (BASE_PURESIZE): Increase to 1310000.
867
868 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
869
870 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
871
872 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
873
874 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
875 still needed under Tiger.
876
877 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
878
879 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
880 __Apple__.
881
882 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
883
884 2009-10-15 Kenichi Handa <handa@m17n.org>
885
886 * print.c (print_object): Escape a symbol like "2E10" too.
887
888 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
889
890 Cleanups and changes for 64-bit compile under Snow Leopard.
891 Based on suggestions by Erik Charlebois.
892
893 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
894
895 * nsfont.m (ns_char_width): Replace deprecated call.
896 (ns_findfonts, nsfont_list_family): Use long format in printf, and
897 cast argument.
898 (nsfont_open): Use ns_char_width() everywhere.
899 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
900
901 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
902
903 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
904 where appropriate.
905
906 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
907 where appropriate.
908 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
909 Use stringWithUTF8String.
910 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
911
912 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
913 Add formal protocol mention to inheritance.
914 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
915
916 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
917 Fix printf format.
918 (ns_query_color): Use CGFloat where appropriate.
919 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
920 (EmacsScroller-mouseDown:) Use long format in printf, and cast
921 argument.
922
923 * config.in (NS_HAVE_NSINTEGER): Drop.
924
925 * dbusbind.c (dbus-method-return-internal)
926 (dbus-method-error-internal): Use long format in printf, and cast
927 argument.
928
929 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
930 in printf, and cast argument.
931
932 * process.c (list_processes_1): Use long format in printf, and
933 cast argument.
934
935 2009-10-11 Glenn Morris <rgm@gnu.org>
936
937 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
938
939 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
940
941 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
942 menu bar with a small width so it doesn't enlarge the frame.
943
944 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
945
946 * fontset.c (Fset_fontset_font): Fix typos in error messages.
947
948 2009-10-06 Glenn Morris <rgm@gnu.org>
949
950 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
951 SOME_MACHINE_LISP (this enters indirectly via DOC).
952
953 2009-10-05 Eli Zaretskii <eliz@gnu.org>
954
955 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
956
957 2009-10-04 Eli Zaretskii <eliz@gnu.org>
958
959 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
960 Doc fix.
961
962 2009-10-03 Martin Rudalics <rudalics@gmx.at>
963
964 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
965
966 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
967
968 * lisp.h (Qdelete_directory_internal): Remove, because it is not
969 used anymore outside fileio.c.
970
971 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
972
973 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
974
975 * lisp.h (Qdelete_directory_internal):
976 Declare, instead of Qdelete_directory.
977
978 * w32fns.c (Fsystem_move_file_to_trash): Use it.
979
980 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
981
982 * eval.c (Fcalled_interactively_p): Add `kind' argument.
983
984 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
985
986 * fileio.c (Fdelete_directory_internal): Rename from
987 Fdelete_directory. It is not a command anymore. It has no file
988 name handler.
989
990 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
991
992 * xdisp.c (get_next_display_element): Use an enum in last change.
993
994 2009-09-28 Kenichi Handa <handa@m17n.org>
995
996 * xdisp.c (get_next_display_element): Pay attention to
997 unibyte_display_via_language_environment in handling
998 Vnobreak_char_display.
999
1000 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1001
1002 * nsterm.h (ns_app_name): New extern variable.
1003
1004 * nsterm.m (ns_app_name): New variable.
1005 (ns_term_init): Set and use it.
1006 (ns_term_shutdown): Use it.
1007
1008 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1009 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1010
1011 * nsfns.m (ns_set_name_iconic, ns_set_name)
1012 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1013 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1014
1015 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1016 Remove double-casting in client_data comparison.
1017
1018 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1019
1020 * keyboard.c (make_lispy_event): Remember last wheel direction.
1021 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1022
1023 2009-09-26 Glenn Morris <rgm@gnu.org>
1024
1025 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1026 internal.elc. Add term/pc-win.elc.
1027 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1028 term/x-win.elc.
1029 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1030 term/w32-win.elc.
1031 (NS_SUPPORT): New.
1032 (lisp): Add NS_SUPPORT.
1033 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1034
1035 2009-09-25 David Reitter <david.reitter@gmail.com>
1036
1037 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1038 on Mac OS X 10.6+ (bug#4513).
1039
1040 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1041
1042 * frame.c (xrdb_get_resource): Return nil for empty string resources;
1043 some parts of Emacs code (like font selection) don't grok them.
1044 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
1045
1046 2009-09-24 Andreas Schwab <schwab@redhat.com>
1047
1048 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1049
1050 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1051
1052 * dired.c (Fdirectory_files): Fix typo in docstring.
1053
1054 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1055
1056 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1057 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1058 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1059 under GNUstep.
1060 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1061
1062 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1063 glyph advancement.
1064
1065 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1066
1067 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
1068 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
1069
1070 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1071 deleted (bug #4492).
1072
1073 * nsfont.m (Vns_reg_to_script): New lisp variable.
1074 (syms_of_nsfont): Declare it.
1075 (ns_registry_to_script): New function.
1076 (ns_get_req_script): Call it.
1077 (ns_findfonts): Don't give up on non-unicode registry.
1078
1079 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1080
1081 2009-09-20 Tom Tromey <tromey@redhat.com>
1082
1083 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1084 batch mode (bug#4228).
1085
1086 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
1087
1088 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
1089 carefully. (Bug #4339)
1090
1091 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
1092
1093 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
1094
1095 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1096
1097 * emacs.c (inhibit_x_resources): Update doc string for NS.
1098 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
1099 legacy code for -NXHost. Fix error printf in daemon case.
1100
1101 * nsterm.h (ns_no_defaults): Remove.
1102
1103 * nsterm.m (ns_no_defaults): Remove.
1104 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1105 (ns_use_qd_smoothing): Remove legacy variable.
1106 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1107 don't update the NSWindow itself.
1108 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
1109 state detection and store user rect ourselves. (Bug #3581)
1110
1111 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1112 ns_use_qd_smoothing.
1113
1114 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1115 platform versions. Drop support for emacs-20-style face specs.
1116 (x-close-connection): Drop PSFlush() under OS X.
1117 (x-focus-frame): Activate the app first. (Bug #4180)
1118
1119 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
1120
1121 * emacs.c (inhibit_x_resources): New variable.
1122 (main) [HAVE_NS]: Don't process --quick command line option.
1123 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1124
1125 * lisp.h (inhibit_x_resources): Declare it extern.
1126
1127 * w32reg.c (x_get_string_resource):
1128 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1129
1130 2009-09-17 Eli Zaretskii <eliz@gnu.org>
1131
1132 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1133 Add lisp/term/internal.elc.
1134
1135 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1136
1137 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1138 (bug#4461).
1139
1140 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1141
1142 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1143
1144 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1145 (OBJECTS_MACHINE): Remove, unused.
1146
1147 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1148
1149 * frame.c (x_get_resource_string): Remove unused.
1150
1151 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1152
1153 * xterm.c (x_new_font): Call change_frame_size before calling
1154 x_set_window_size, in case frame size won't change.
1155
1156 * frame.c (x_set_font): Remove dead code.
1157
1158 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1159
1160 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1161
1162 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1163
1164 * lread.c (Fload): Don't output a message after loading an obsolete
1165 package any more (done in Lisp now).
1166
1167 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
1168
1169 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1170
1171 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1172
1173 * keymap.c (Fwhere_is_internal): Use nconc2.
1174
1175 2009-09-11 Alan Mackenzie <acm@muc.de>
1176
1177 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1178 batch mode.
1179
1180 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1181
1182 * xdisp.c (display_mode_element): Detect cycles.
1183
1184 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1185
1186 * keymap.c (where_is_internal): Don't erroneously return nil right after
1187 filling the cache.
1188 (where_is_internal_1): Fix up typo.
1189
1190 2009-09-11 Glenn Morris <rgm@gnu.org>
1191
1192 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1193 share a common doc-string.
1194
1195 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1196
1197 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1198 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1199
1200 * keymap.c (QCadvertised_binding): New constant.
1201 (syms_of_keymap): Initialize it.
1202 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1203 if applicable.
1204
1205 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1206
1207 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1208 (parse_menu_item): Streamline since bindings are recomputed all the
1209 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1210 more and don't support lmenu's menu-alias any more either.
1211
1212 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1213 (where_is_internal): Strip it down to only traverse the keymaps.
1214 Move the cache handling from Fwhere_is_internal to here.
1215 (Fwhere_is_internal): Move the handling of remapping and the choice of
1216 the best binding from where_is_internal to here.
1217 Unify the cached/noncached paths, so remapping is also handled
1218 correctly when the cache is used, and so the cache can be used to
1219 speed up remap-handling when applicable.
1220 Give preference to non-remapped bindings.
1221 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1222 non-remapped bindings.
1223 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1224 command remapping.
1225
1226 * xdisp.c (display_mode_element): Move list length limit from 50 to
1227 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1228
1229 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
1230
1231 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1232
1233 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1234
1235 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1236 (Bug#4334)
1237
1238 * keymap.c (where_is_internal): Filter out shadowed remappings.
1239 Assume that where_is_internal returns unshadowed bindings to simplify
1240 the code and get rid of the gotos. Use ASIZE.
1241
1242 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1243
1244 * xterm.c (x_focus_changed): If we get a focusout and pointer
1245 is invisible, make it visible.
1246
1247 * xterm.h: Remove condition for declaration of
1248 x_*_window_to_frame.
1249
1250 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1251
1252 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1253 initial terminal as well.
1254
1255 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1256
1257 * xterm.h: Rename x_non_menubar_window_to_frame to
1258 x_menubar_window_to_frame.
1259
1260 * xterm.c: Remove declarations also in xterm.h
1261 (XTmouse_position): Do not return valid positions
1262 for clicks in the menubar and the toolbar for Gtk+.
1263
1264 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1265 if the widget for the event has the same top level as a frame,
1266 return the frame.
1267 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1268 internal windows, bug #4122.
1269 (x_non_menubar_window_to_frame): Remove.
1270
1271 2009-09-02 Glenn Morris <rgm@gnu.org>
1272
1273 * buffer.c (default-major-mode): Move most of the doc from here...
1274 (major-mode): ... to here.
1275
1276 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
1277
1278 * process.c (wait_reading_process_output): Keep the descriptor
1279 when pty is used by a non-child process, e.g., in I/O buffer of
1280 GDB this allows inferior to be restarted.
1281
1282 2009-08-29 Eli Zaretskii <eliz@gnu.org>
1283
1284 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1285 both branches into one.
1286
1287 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1288
1289 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1290 (main): Use enable-multibyte-characters rather than
1291 default-enable-multibyte-characters. Output a warning message when
1292 running a unibyte session.
1293
1294 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1295
1296 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1297 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1298 (copy_data_segment): Also copy __program_vars section.
1299 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1300 (dump_it) [LC_DYLD_INFO]: Use it.
1301
1302 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1303
1304 2009-08-28 Eli Zaretskii <eliz@gnu.org>
1305
1306 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1307 $(SRC)/buildobj.h.
1308 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1309 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1310 $(SRC)/buildobj.h.
1311 (clean): Add buildobj.h.
1312
1313 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1314
1315 * print.c (print_object): Set escapeflag to 1 when printing
1316 hashtable keys and values.
1317
1318 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1319
1320 * lread.c (read_integer): Use doubles (and potentially return a float
1321 number) as we do in string-to-number.
1322 (read1): Use strtol to read integers, signal errors on strtol's
1323 overflow and use floats if strtol's output is too large for
1324 Elisp integers.
1325
1326 2009-08-27 Eli Zaretskii <eliz@gnu.org>
1327
1328 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1329 (make-buildobj-SH): Fix last change.
1330 (SRC): Move to before where it's first used.
1331
1332 2009-08-27 Kenichi Handa <handa@m17n.org>
1333
1334 * process.c (send_process): Use encode_coding_object instead of
1335 encode_coding_string to perform eol-conversion even if the string
1336 is unibyte.
1337
1338 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1339 character.
1340
1341 * cmds.c (Fself_insert_command): Avoid unnecessay
1342 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
1343
1344 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1345
1346 * callproc.c (Fcall_process): Remove always true #if.
1347
1348 * lisp.h: Replace #if 0 code for checking with text pointing to
1349 the --enable-checking configure flag.
1350
1351 * emacs.c (main): Mention the --enable-profiling configure flag
1352 instead of using CFLAGS.
1353
1354 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
1355
1356 * Makefile.in (buildobj.h): New target.
1357 (doc.o): Depend on it.
1358 (temacs${EXEEXT}): Don't generate buildobj.lst.
1359 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1360 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1361 ($(BLD)/doc.$(O)): Depend on it.
1362 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1363 provided by Eli Zaretskii.)
1364 ($(TEMACS)): Don't generate buildobj.lst.
1365 * doc.c: Include buildobj.h.
1366 (buildobj): New static variable.
1367 (Fsnarf_documentation): Use it, instead of opening and reading
1368 buildobj.lst.
1369
1370 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
1371
1372 * dbusbind.c (Fdbus_call_method)
1373 (Fdbus_call_method_asynchronously): Use English numeric format for
1374 timeout values in doc string.
1375
1376 2009-08-25 Kenichi Handa <handa@m17n.org>
1377
1378 * alloc.c (mark_char_table): New function.
1379 (mark_object): Use mark_char_table for a char-table.
1380
1381 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1382 (CHAR_TABLE_REF): Use it.
1383
1384 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
1385
1386 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1387 before invoking the newly build emacs to check for load-path
1388 shadowing.
1389
1390 2009-08-22 Glenn Morris <rgm@gnu.org>
1391
1392 * Makefile.in (bootstrap_exe): New variable.
1393 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1394 Use ${bootstrap_exe}.
1395
1396 2009-08-22 Eli Zaretskii <eliz@gnu.org>
1397
1398 * coding.h (encode_coding_string): Don't encode unibyte strings.
1399 (Bug#4047)
1400
1401 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
1402
1403 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1404
1405 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1406 intended as hotfix only.
1407 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1408
1409 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1410
1411 * nsterm.m (ns_get_color): Update documentation properly for last
1412 change, and clean up loose ends in the code left by it. Fix
1413 longstanding bug with 16-bit hex parsing, and add support for
1414 yet another X11 format (rgb:r/g/b) for compatibility.
1415 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1416 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1417
1418 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1419
1420 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1421
1422 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
1423
1424 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1425 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1426 (xd_initialize, xd_pending_messages): Check, whether
1427 $DBUS_SESSION_BUS_ADDRESS is set.
1428
1429 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1430
1431 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1432
1433 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1434
1435 2009-08-20 Glenn Morris <rgm@gnu.org>
1436
1437 * emacs.c (system-type): Doc fix.
1438
1439 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1440
1441 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1442 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1443
1444 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
1445
1446 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1447 New functions.
1448 (xd_initialize): Revert change from 2009-08-16.
1449
1450 2009-08-18 Kenichi Handa <handa@m17n.org>
1451
1452 * fontset.c (Ffontset_font): If a nil element is found in a
1453 font-group vector, return nil.
1454
1455 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
1456
1457 * process.c (status_notify): Don't perform redisplay.
1458 (Fdelete_process, list_processes_1, process_send_signal):
1459 Expliticly perform redisplay.
1460 (wait_reading_process_output): Always check process status, but
1461 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1462
1463 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
1464
1465 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
1466 (XFLOAT_INIT): New macro for storing a float value.
1467 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1468 * fns.c (sxhash): Copy out the value of a float in order to
1469 examine its bytes.
1470 * dbusbind.c (xd_append_arg): Likewise.
1471
1472 * emacs.c (main): Don't call syms_of_data twice.
1473
1474 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
1475
1476 * dbusbind.c (xd_initialize): Add connection file descriptor to
1477 input_wait_mask, in order to let select() detect, whether a new
1478 message has been arrived.
1479 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
1480
1481 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
1482
1483 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1484 New functions.
1485
1486 * lisp.h (xd_pending_messages): Declare.
1487
1488 * keyboard.c (readable_events): Call xd_pending_messages.
1489
1490 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
1491
1492 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
1493
1494 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1495
1496 * buffer.c (set_buffer_internal_1)
1497 (swap_out_buffer_local_variables): Check for unbound local
1498 variables (Bug#4138).
1499
1500 2009-08-14 Eli Zaretskii <eliz@gnu.org>
1501
1502 * process.c (create_pty): Fix last change.
1503
1504 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
1505
1506 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1507 (xbm_load_image): Caller changed.
1508 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
1509
1510 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
1511
1512 * process.c (create_pty): New function.
1513 (Fstart_process): Use it to allow Emacs to just associate a pty
1514 with the buffer. See associated change in gdb-mi.el.
1515 (list_processes_1): Deal with no program name.
1516 (start_process_unwind): Use pid == -2 to mean no process.
1517
1518 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1519
1520 * cmds.c (nonundocount): New global variable.
1521 (keys_of_cmds): Initialize it.
1522 (Fself_insert_command): Use it to combine upto 20 sequential chars
1523 into a single undo entry, just like the Qself_insert_command code in
1524 keyboard.c does.
1525 Call frame_make_pointer_invisible, also like the Qself_insert_command
1526 code in keyboard.c does.
1527 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1528 than its own local replacement for it.
1529
1530 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
1531
1532 * fns.c (concat): Don't re-set string length to its current value.
1533
1534 * coding.h (decode_coding_string, encode_coding_string):
1535 Use SBYTES macro.
1536
1537 * doprnt.c (doprnt_lisp): Delete unused function.
1538 (doprnt): Merge with doprnt1, discarding lispstrings code.
1539 * lisp.h (doprnt_lisp): Don't declare.
1540
1541 2009-08-07 Juri Linkov <juri@jurta.org>
1542
1543 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1544
1545 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1546
1547 * print.c (syms_of_print): Undo previous change.
1548
1549 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1550
1551 * lread.c (read1, syms_of_lread): Read hashtables back from the
1552 readable format.
1553
1554 * print.c (print_preprocess, print_object): Print hashtables fully
1555 and readably.
1556 (syms_of_print): Provide 'hashtable-print-readable.
1557
1558 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1559
1560 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1561 no family set.
1562 (nsfont_open): Handle case when entity has no family.
1563
1564 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1565
1566 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1567 element, not a list, for match case.
1568
1569 2009-07-28 Kenichi Handa <handa@m17n.org>
1570
1571 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1572 rigidly.
1573
1574 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1575 font_parse_xlfd. Check font properties more rigidly.
1576
1577 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1578
1579 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1580 bsd-common.h.
1581
1582 2009-07-27 Kenichi Handa <handa@m17n.org>
1583
1584 * xfaces.c (face_with_height): Call font_clear_prop.
1585
1586 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
1587
1588 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1589
1590 * xterm.c (x_term_init): Use Qx.
1591
1592 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1593
1594 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
1595 (ns_get_color): Revert 2009-07-16 change.
1596
1597 2009-07-25 Eli Zaretskii <eliz@gnu.org>
1598
1599 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1600 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
1601
1602 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
1603
1604 * coding.h (decode_coding_string, encode_coding_string):
1605 Use SCHARS macro.
1606
1607 * lread.c: Rewrite 2009-07-21 changes.
1608 (load_depth): Delete.
1609 (Qload_in_progress): New variable.
1610 (load_unwind): Don't reference load_depth or load_in_progress.
1611 (Fload): Likewise; specbind Qload_in_progress instead.
1612 (init_lread): Don't initialize load_depth.
1613 (syms_of_lread): Initialize and protect Qload_in_progress.
1614
1615 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1616
1617 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1618
1619 2009-07-23 Yavor Doganov <yavor@gnu.org>
1620
1621 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1622
1623 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1624
1625 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
1626 Bugs 3792, 3720, 2402.
1627 (ns_lookup_indexed_color): Check for bad index.
1628 (ns_index_color): Init unused slot to 0.
1629 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1630 Bug 3714, possibly 3082.
1631
1632 2009-07-22 Jason Rumney <jasonr@gnu.org>
1633
1634 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1635 Position IME window at cursor (Bug#2570).
1636 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1637 (globals_of_w32fns): Dynamically load functions required above.
1638
1639 * w32term.c (w32_draw_window_cursor): Send message to reposition
1640 any IME window.
1641
1642 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1643
1644 * fileio.c: Revert 2009-07-16 changes.
1645 (Vauto_save_include_big_deletions): New variable.
1646 (Fdo_auto_save): Disable auto-save only if
1647 auto-save-include-big-deletions is nil.
1648
1649 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1650
1651 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1652 the overflowed pixels into account (Bug#3879).
1653
1654 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
1655
1656 * lread.c (load_depth): New variable.
1657 (Fload, load_unwind, init_lread): Set it to the load recursion
1658 depth; set load_in_progress as a simple boolean based on the
1659 current load_depth. (Bug#3892)
1660
1661 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1662
1663 * nsfont.m (ns_has_attribute): Remove.
1664 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1665
1666 2009-07-18 Juri Linkov <juri@jurta.org>
1667
1668 * process.c (Fset_process_query_on_exit_flag): Mention killing
1669 a buffer in docstring.
1670
1671 2009-07-17 Kenichi Handa <handa@m17n.org>
1672
1673 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1674
1675 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1676
1677 * nsfns.m (Fns_set_alpha): Remove function.
1678 (syms_of_nsfns): Don't defsubr it.
1679
1680 * nsterm.m (ns_get_color): Remove incompatible color formats.
1681 (ns_color_to_lisp): Generate #rrggbb color format string.
1682
1683 2009-07-16 Richard Stallman <rms@gnu.org>
1684
1685 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1686 (Fset_buffer_auto_saved): Handle save_length = -2.
1687
1688 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
1689
1690 * xterm.c (Qx_gtk_map_stock): New var.
1691
1692 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1693 of calling intern each time.
1694
1695 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1696
1697 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1698 does tiling.
1699
1700 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1701
1702 2009-07-14 Kenichi Handa <handa@m17n.org>
1703
1704 * font.c (font_vconcat_entity_vectors): New function.
1705 (struct font_sort_data): New member font_driver_preference.
1706 (font_compare): Check font_driver_preference.
1707 (font_sort_entities): The format of the first argument changed.
1708 (font_delete_unmatched): Likewise.
1709 (font_list_entities): The return type changed.
1710 (font_select_entity): The format of the second argument changed.
1711 (font_find_for_lface): Adjuste for the above changes.
1712 Don't suppress the checking of C even if the repertory supports it.
1713 (Flist_fonts): Adjust for the above changes.
1714
1715 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1716 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
1717 Reject a font who has adstyle property that is different from a
1718 langname derived from registry property.
1719 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
1720
1721 2009-07-13 Eli Zaretskii <eliz@gnu.org>
1722
1723 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1724 local copy of dirfilename.
1725
1726 2009-07-13 Kenichi Handa <handa@m17n.org>
1727
1728 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1729 against max_char.
1730
1731 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1732 calling XSYMBOL (sym).
1733
1734 2009-07-11 Eli Zaretskii <eliz@gnu.org>
1735
1736 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1737 New function.
1738 (directory_files_internal) [WINDOWSNT]:
1739 Bind w32-get-true-file-attributes to either t or nil, depending whether
1740 the filesystem of the directory is fast or slow.
1741
1742 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1743 file name.
1744 (is_slow_fs): New function.
1745 (stat): Use it to determine whether to issue more system calls to
1746 get accurate file attributes, when w32-get-true-file-attributes is
1747 `local'.
1748
1749 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1750
1751 * xfns.c (Fx_select_font): Remember last font selected in
1752 x_last_font_name and use that the next time. Also try the frame
1753 parameter font-parameter as default to the font dialog.
1754
1755 2009-07-10 Kenichi Handa <handa@m17n.org>
1756
1757 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1758
1759 2009-07-09 Eli Zaretskii <eliz@gnu.org>
1760
1761 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1762
1763 * w32.c (stat): Treat UNC file names as residing on remote
1764 drives. (Bug#3542)
1765
1766 2009-07-09 Kenichi Handa <handa@m17n.org>
1767
1768 * fontset.c (fontset_find_font): Fix previous change.
1769
1770 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
1771
1772 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1773 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1774 error flag.
1775
1776 2009-07-08 Kenichi Handa <handa@m17n.org>
1777
1778 * fontset.c (fontset_find_font): Fix the logic of handling
1779 charset_matched.
1780 (font_for_char): Delete unused var.
1781 (generate_ascii_font_name): Delete it.
1782
1783 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1784
1785 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1786 (encode_coding_sjis): Fix the code range check.
1787
1788 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
1789
1790 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1791 (Fexpand_file_name): Copy string data properly (Bug#3772).
1792
1793 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1794
1795 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1796 first MapNotify.
1797
1798 2009-07-07 Kenichi Handa <handa@m17n.org>
1799
1800 * character.h (unibyte_has_multibyte_table): Delete extern.
1801 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1802
1803 * charset.c (Fset_charset_priority): Update charset_unibyte.
1804 (syms_of_charset): Initialize charset_unibyte.
1805
1806 * character.c (unibyte_has_multibyte_table): Delete it.
1807 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1808 charset_unibyte.
1809 (multibyte_char_to_unibyte_safe): Likewise.
1810 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1811
1812 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
1813 (x_produce_glyphs): Likewise.
1814
1815 * .gdbinit (xcharset): Fix the treating $arg0.
1816
1817 2009-07-04 Eli Zaretskii <eliz@gnu.org>
1818
1819 Emulation of `getloadavg' on MS-Windows.
1820 * w32.c: Include float.h
1821 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1822 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1823 (get_native_system_info, get_system_times): New functions.
1824 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1825 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1826 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1827 g_b_init_get_system_times, and num_of_processors.
1828
1829 2009-07-03 Jason Rumney <jasonr@gnu.org>
1830
1831 * w32term.c (w32_initialize): Use standard types.
1832
1833 2009-07-03 Eli Zaretskii <eliz@gnu.org>
1834
1835 * dired.c (Ffile_attributes): Decode user and group names by the
1836 locale's encoding. (Bug#3443)
1837
1838 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1839
1840 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1841 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1842
1843 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1844
1845 * term.c (init_tty): Remove spurious #ifdef.
1846
1847 * m/mips.h: Mention this file is also used for netbsd.
1848 * m/pmax.h: Remove file.
1849
1850 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1851
1852 * xterm.h (struct x_display_info): Add invisible_cursor.
1853 (struct x_output): Add current_cursor.
1854
1855 * xterm.c (XTtoggle_invisible_pointer): New function.
1856 (x_define_frame_cursor): Don't define cursor if invisible or the
1857 same as before. Set current_cursor.
1858 (x_create_terminal): Set toggle_invisible_pointer_hook.
1859
1860 * xfns.c (make_invisible_cursor): New function.
1861 (x_set_mouse_color): Call make_invisible_cursor.
1862 Set current_cursor.
1863 (x_window): Set current_cursor.
1864
1865 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1866
1867 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1868 inserting a character.
1869 (read_avail_input): Call frame_make_pointer_visible.
1870
1871 * frame.c (Vmake_pointer_invisible): New variable.
1872 (frame_make_pointer_invisible, frame_make_pointer_visible):
1873 New functions.
1874 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1875
1876 * frame.h: Declare frame_make_pointer_invisible and
1877 frame_make_pointer_visible.
1878 (struct frame): Add pointer_invisible.
1879
1880 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1881
1882 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1883 frame isn't visible.
1884 (xg_frame_resized): If width/height is -1, get size of window
1885 from X server.
1886
1887 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1888 for MapNotify.
1889
1890 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
1891 here or call change_frame_size. Just call flush_and_sync.
1892 (flush_and_sync): Reintroduce.
1893
1894 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
1895
1896 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
1897
1898 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1899 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1900
1901 * frame.h: Declare Qsticky.
1902
1903 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1904
1905 * nsfns.m (ns_frame_parm_handlers): Ditto.
1906
1907 * frame.c: Declare Qsticky.
1908 (frame_parms): Add sticky.
1909
1910 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1911
1912 * xterm.h: Declare x_set_sticky.
1913
1914 * xterm.c (x_set_sticky): New function.
1915
1916 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1917 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1918 xg_tool_bar_proxy_help_callback.
1919
1920 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1921
1922 * frame.c: Qmaximized is new.
1923 (x_set_frame_parameters): Do not handle fullscreen specially.
1924 Only set width and height if explicitly set.
1925 (x_set_fullscreen): Handle Qmaximized.
1926 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1927 (syms_of_frame): Initialize Qmaximized.
1928
1929 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1930 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
1931
1932 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
1933 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1934 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
1935 set gravity to NorthWestGravity when USE_GTK.
1936 (set_wm_state): New function.
1937 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
1938 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1939 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
1940 or the case when no window manager is running. That means remove calls
1941 to x_real_positions and x_fullscreen_adjust.
1942
1943 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1944 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1945 flush_and_sync.
1946 (xg_height_changed): New function.
1947 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1948 and gtk_window_set_policy. Set frame gravity after parsing the
1949 geometry string.
1950 (xg_update_frame_menubar, free_frame_menubar)
1951 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1952 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1953 Remove calls to xg_frame_set_char_size.
1954
1955 2009-07-01 Kenichi Handa <handa@m17n.org>
1956
1957 * keyboard.c (decode_keyboard_code): New function.
1958 (tty_read_avail_input): Decode the input bytes if necessary.
1959
1960 * coding.c (setup_coding_system):
1961 Initialize coding->carryover_bytes to 0.
1962 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1963 use Qno_conversion.
1964
1965 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1966
1967 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1968
1969 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
1970
1971 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
1972
1973 2009-06-30 Jason Rumney <jasonr@gnu.org>
1974
1975 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1976 is already loaded.
1977 Set user model ID if supported (bug#1849).
1978
1979 2009-06-29 Jim Meyering <meyering@redhat.com>
1980
1981 Remove useless if-before-xfree test.
1982 * nsfont.m (nsfont_close): Remove useless test.
1983 * term.c (delete_tty): Likewise.
1984 * w32.c (system_process_attributes): Likewise.
1985 * w32font.c (w32font_close): Likewise.
1986 * xfaces.c (x_free_gc): Likewise.
1987 * xselect.c (buffer): Likewise.
1988
1989 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1990
1991 * process.c (send_process): Keep decoded string in a local
1992 variable and protect it from GC. (Bug#3521)
1993
1994 2009-06-28 Eli Zaretskii <eliz@gnu.org>
1995
1996 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1997 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1998
1999 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
2000
2001 * xdisp.c (start_display, handle_face_prop)
2002 (move_it_vertically_backward, cursor_row_fully_visible_p)
2003 (redisplay_window, try_window_id, produce_image_glyph):
2004 Delete some #ifdef-ed out code chunks that are now obsolete.
2005
2006 * xterm.c (x_update_window_begin, x_new_focus_frame)
2007 (x_scroll_bar_handle_click, handle_one_xevent)
2008 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2009 (x_make_frame_visible, x_make_frame_invisible)
2010 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2011 code chunks that are now obsolete.
2012
2013 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
2014
2015 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2016 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2017 for hours, when optimzation is enabled.
2018 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2019 (xd_read_message): Make them static.
2020
2021 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2022
2023 * term.c (turn_on_face): Allow simultaneously bold and dim
2024 terminal faces (Bug#3530).
2025
2026 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
2027
2028 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2029
2030 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2031 truncation glyphs (Bug#3686).
2032
2033 2009-06-27 Glenn Morris <rgm@gnu.org>
2034
2035 * m/pmax.h: Restore file, with only netbsd portions.
2036
2037 2009-06-26 David Reitter <david.reitter@gmail.com>
2038
2039 * nsterm.m (keydown): Avoid infinite loop.
2040
2041 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2042
2043 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2044 the arg FORCE_SYMBOL.
2045
2046 2009-06-25 Kenichi Handa <handa@m17n.org>
2047
2048 * fontset.c (fontset_find_font): When a usable rfont_def is found
2049 in a fallback font-group, make it the first element of the group.
2050
2051 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
2052
2053 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2054
2055 2009-06-24 Kenichi Handa <handa@m17n.org>
2056
2057 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2058 set for C.
2059 (fontset_font): Record the availability of a font for C both in
2060 the realized fontsets of the current one and the default one.
2061
2062 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2063
2064 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2065 conditional, it is always defined on AIX.
2066
2067 2009-06-23 Miles Bader <miles@gnu.org>
2068
2069 * window.c (Vrecenter_redisplay): New variable.
2070 (syms_of_window): Initialize it.
2071 (Qtty): New extern declaration.
2072 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2073
2074 2009-06-23 Jim Meyering <meyering@redhat.com>
2075
2076 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2077 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
2078 pointer dereferences are guaranteed to be valid.
2079
2080 2009-06-23 Kenichi Handa <handa@m17n.org>
2081
2082 * emacs.c (main): Call init_font ().
2083
2084 * font.h (Vfont_log): Extern it.
2085 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2086
2087 * font.c (font_sort_entities, font_list_entities)
2088 (font_matching_entity, font_open_entity)
2089 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2090 (Vfont_log): Delete static.
2091 (font_log_env_checked): Delete this variable.
2092 (font_add_log): Don't check font_log_env_checked.
2093 (font_deferred_log): Check Vfont_log.
2094 (init_font): New function.
2095
2096 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2097
2098 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2099
2100 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2101
2102 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2103
2104 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2105 (face_for_char): Don't call font_deferred_log here.
2106 (font_for_char): Likewise.
2107
2108 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
2109
2110 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2111 rather than its background_width for drawing the overline and
2112 underline (Bug#489).
2113
2114 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2115 rather than its background_width for drawing the overline and
2116 underline (Bug#489).
2117 (xg_default_icon_file): New variable.
2118 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2119 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
2120
2121 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2122 (load_overlay_strings): Remove externs.
2123 (fast_find_position): Function deleted.
2124 (mouse_face_from_buffer_pos): New function, based on
2125 fast_find_position. Correctly handle before-strings,
2126 display-strings, and after-strings (Bug#1220).
2127 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2128
2129 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2130
2131 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
2132 (move_it_in_display_line_to, move_it_in_display_line_to)
2133 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2134
2135 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2136
2137 * Branch for 23.1.
2138
2139 2009-06-21 Jason Rumney <jasonr@gnu.org>
2140
2141 * w32term.c (keyboard_codepage): New static variable.
2142 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2143 (w32_read_socket) [WM_CHAR]: Use it to decode character
2144 input (bug#3237).
2145 (w32_initialize): Initialize it.
2146 (codepage_for_locale): New function.
2147
2148 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
2149
2150 * process.c (status_message): Pass Faset index argument as a lisp
2151 object, so as to work with USE_LISP_UNION_TYPE.
2152
2153 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2154
2155 * coding.c (Ffind_coding_systems_region_internal):
2156 Cache checked characters.
2157
2158 2009-06-18 Kenichi Handa <handa@m17n.org>
2159
2160 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
2161
2162 2009-06-18 Andreas Schwab <aschwab@redhat.com>
2163
2164 * xdisp.c (redisplay_internal): Check that the frame is still
2165 live after redisplay of its windows.
2166 (redisplay_windows): Check that the window is still live.
2167
2168 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2169
2170 * coding.c (detect_coding_utf_16): Fix previous change.
2171
2172 2009-06-16 Kenichi Handa <handa@m17n.org>
2173
2174 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2175 UTF-16 by checking the dispersion of Eth and Oth bytes.
2176
2177 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2178
2179 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2180
2181 2009-06-15 Kenichi Handa <handa@m17n.org>
2182
2183 * process.c (status_message): Fix previous change. Be sure to
2184 decode a localized string.
2185
2186 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2187
2188 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2189 add comment explaining why.
2190
2191 2009-06-14 Sidney Markowitz <sidney@sidney.com>
2192
2193 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
2194
2195 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2196
2197 * nsfont.m (ns_attribute_value): Remove.
2198 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2199 (ns_has_attribute): Shrink the normal range.
2200 (ns_findfonts): Don't worry about requested spec in determining
2201 need for synthItal.
2202 (ns_get_covering_families): Retain scriptToFamilies.
2203
2204 2009-06-14 Seiji Zenitani <zenitani@mac.com>
2205
2206 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2207
2208 2009-06-11 Kenichi Handa <handa@m17n.org>
2209
2210 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2211 overhang for the static composition case.
2212
2213 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2214
2215 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2216 overhang for the automatic composition case.
2217
2218 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2219 composition case.
2220
2221 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
2222
2223 * xdisp.c (get_next_display_element): When handling wrap-prefix
2224 and line-prefix, treat \n as a control character (bug#3502).
2225
2226 2009-06-10 Kenichi Handa <handa@m17n.org>
2227
2228 * font.c (font_parse_family_registry): Fix for one-char foundry.
2229 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2230
2231 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2232
2233 * process.c (status_message): Fix handling of multibyte signal
2234 string (Bug#3499).
2235
2236 2009-06-09 Jim Meyering <meyering@redhat.com>
2237
2238 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2239 color name is missing.
2240
2241 2009-06-09 Kenichi Handa <handa@m17n.org>
2242
2243 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2244 FROM-CODE and TO-CODE are codepoints of CHARSET.
2245
2246 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2247
2248 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2249
2250 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2251
2252 Changes to support :script/:lang/:otf in NS font driver.
2253 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2254 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2255 indicate not part of font driver interface, and change callers.
2256 (ns_get_family): Remove pointless null check.
2257 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2258 ns_spec_to_descriptor, ns_descriptor_to_entity.
2259 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2260 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2261 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2262 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2263 (ns_get_req_script, ns_accumulate_script_ranges)
2264 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2265 New functions.
2266 (nsfont_list, nsfont_match): Use ns_findfonts.
2267 (nsfont_open): Use font descriptor instead of traits.
2268 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2269 (dump_glyphstring): Rename to ns_dump_glyphstring.
2270
2271 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2272
2273 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2274
2275 * fontset.c (fontset_from_font): Remove NS-specific code.
2276
2277 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
2278
2279 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2280 nonactive windows.
2281
2282 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
2283
2284 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
2285
2286 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2287
2288 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2289
2290 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
2291
2292 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2293 account for the overflowing of newlines into the last glyph on the
2294 display line (Bug#3482).
2295
2296 2009-06-05 David Reitter <david.reitter@gmail.com>
2297
2298 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2299 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
2300 Fns_selection_exists_p, Fns_selection_owner_p.
2301
2302 2009-06-03 Jason Rumney <jasonr@gnu.org>
2303
2304 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2305 available. (Bug#3379)
2306
2307 2009-05-29 Kenichi Handa <handa@m17n.org>
2308
2309 * coding.c (get_translation_table):
2310 Check Venable_character_translation.
2311
2312 2009-05-26 David Reitter <david.reitter@gmail.com>
2313
2314 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2315 (x_make_frame_visible): Move frame to front rather than calling
2316 ns_raise_frame().
2317 (keyDown:): Do not swallow events that aren't re-sent if frame
2318 isn't key window.
2319 (drawRect:): Do not set visibility/iconified flags because
2320 drawRect may be called by NSView even if the frame is hidden.
2321
2322 * nsfns.m (Fx_create_frame): Follow other ports in
2323 determining visibility; default to t. Ensure async_visible is set.
2324
2325 2009-05-23 Eli Zaretskii <eliz@gnu.org>
2326
2327 * dired.c (Ffile_attributes): Doc fix.
2328
2329 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
2330
2331 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2332
2333 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2334
2335 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2336 and xfont_scratch_props.
2337 (syms_of_xfont): Do it here instead.
2338 (xfont_find_ccl_program): Delete, unused.
2339 (xfont_open): Delete unused var `i'.
2340
2341 2009-05-21 Kenichi Handa <handa@m17n.org>
2342
2343 * fontset.c (Qlatin): Don't make it static.
2344
2345 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2346 New functions.
2347 (xfont_scripts_cache, xfont_scratch_props): New variables.
2348 (Qlatin, Vscalable_fonts_allowed): Extern it.
2349 (xfont_list_pattern): Argument changed. Callers changed.
2350 Check Vscalable_fonts_allowed. Check the support of a script.
2351 (xfont_list): Don't reject a font spec with :script property.
2352 (xfont_has_char): Fix setting of encoding.
2353 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2354 xfont_scratch_props.
2355
2356 2009-05-19 Kenichi Handa <handa@m17n.org>
2357
2358 * font.c (font_sort_entities): Rename from font_sort_entites.
2359 Callers changed.
2360
2361 2009-05-18 Kenichi Handa <handa@m17n.org>
2362
2363 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2364
2365 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2366
2367 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2368 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2369
2370 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2371
2372 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2373 (x_delete_terminal): Dissociate resource database from display and
2374 then call XrmDestroyDatabase before closing display.
2375
2376 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2377
2378 * nsterm.m (ns_read_socket): Remove unused variable.
2379 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2380 whether selected frame is viable before raising it (based on patch
2381 by David Reitter), and improve commentary.
2382 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
2383
2384 2009-05-15 Kenichi Handa <handa@m17n.org>
2385
2386 * font.c (Ffont_spec): Check arguments.
2387
2388 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
2389
2390 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2391 weight when testing attributes (Bug#3282).
2392
2393 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2394
2395 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2396 what we expect to get in the next ConfigureNotify event.
2397
2398 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2399 before Xft one (Bug#1696).
2400
2401 2009-05-07 David Reitter <david.reitter@gmail.com>
2402
2403 * nsfns.m (Fx_display_planes): Compute bitplanes using
2404 NSBitsPerPixelFromDepth (Bug#3207).
2405
2406 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
2407
2408 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2409
2410 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
2411
2412 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2413
2414 2009-05-07 David Reitter <david.reitter@gmail.com>
2415
2416 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2417 Respect mouse face background.
2418
2419 2009-05-07 David Reitter <david.reitter@gmail.com>
2420
2421 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2422 Mouse movement/highlight: bracket drawing operations
2423 in ns_update_begin and ns_update_end.
2424
2425 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2426
2427 * nsfns.m (ns_get_screen): Rewrite.
2428 Don't presume selected-frame is of type `ns'.
2429
2430 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2431 all drivers.
2432
2433 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2434
2435 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2436
2437 * keyboard.h (add_user_signal): Fix typo in extern.
2438
2439 * lisp.h (add_user_signal): Remove extern.
2440
2441 * unexelf.c (unexec): Consider a section to precede the .bss section
2442 if its addresses overlap that of .bss.
2443 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2444 instead of dumping process.
2445
2446 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2447
2448 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2449
2450 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2451
2452 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2453
2454 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2455
2456 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2457 any statements.
2458
2459 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2460
2461 * process.c (read_process_output): Make sure the current buffer is
2462 always restored.
2463
2464 * coding.c (record_conversion_result): Don't modify
2465 Vlast_code_conversion_error for successful result.
2466 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2467
2468 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2469
2470 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
2471 (load_charset_map): Remove unnecessary code.
2472
2473 2009-04-30 David Reitter <david.reitter@gmail.com>
2474
2475 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
2476 through f24.
2477
2478 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
2479
2480 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2481
2482 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2483 face_at_buffer_position.
2484 (face_before_or_after_it_pos, get_next_display_element)
2485 (note_mouse_highlight): Update face_at_buffer_position call.
2486
2487 * term.c (term_mouse_highlight):
2488 * msdos.c (IT_note_mouse_highlight):
2489 * fontset.c (Finternal_char_font):
2490 * font.c (font_at, font_range): Update face_at_buffer_position call.
2491
2492 * dispextern.h (face_at_buffer_position): Update prototype.
2493
2494 2009-04-30 Kenichi Handa <handa@m17n.org>
2495
2496 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
2497
2498 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2499
2500 * callproc.c (Fcall_process): Fix GC protection. Make sure
2501 current buffer is always restored.
2502
2503 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2504
2505 * atimer.c (init_atimer): Also clear stopped_atimers.
2506
2507 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2508
2509 * process.c (create_process): Clean up merger residues of
2510 2008-07-17 change.
2511
2512 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
2513
2514 * lread.c (Vread_circle): New variable.
2515 (read1): Disable recursive read if Vread_circle is nil.
2516
2517 2009-04-29 Kenichi Handa <handa@m17n.org>
2518
2519 * fontset.h (set_default_ascii_font): Delete extern.
2520
2521 * fontset.c (set_default_ascii_font): Delete this unused function.
2522
2523 * frame.c (x_set_font): When ARG is a font-object, check if the
2524 font-object matches with the ASCII font-spec of the frame's
2525 fontset. If not, create a new fontset for the frame. (Bug #3075)
2526
2527 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2528
2529 * fns.c (Flocale_info): Protect vector from GC during decoding.
2530
2531 * process.c (Fstart_process): Protect argv strings from GC during
2532 encoding.
2533
2534 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2535
2536 * sysdep.c: Include <ctype.h>.
2537
2538 2009-04-27 David Reitter <david.reitter@gmail.com>
2539
2540 * nsfont.m (nsfont_open): Remove unused variable shrink.
2541 Remove commented-out code.
2542
2543 2009-04-26 Johan Bockgård <bojohan@gnu.org>
2544
2545 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2546
2547 2009-04-25 Jason Rumney <jasonr@gnu.org>
2548
2549 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2550
2551 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2552
2553 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2554 Swap bytes in short integer if fringe bitmap width > 8.
2555
2556 2009-04-23 Kenichi Handa <handa@m17n.org>
2557
2558 * xfaces.c (Fx_list_fonts): If a font size is specified in
2559 PATTERN, set it in returned scalable fonts.
2560
2561 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
2562
2563 * keyboard.c (Fset_input_meta_mode): Doc fix.
2564
2565 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2566
2567 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
2568
2569 * coding.c (Fterminal_coding_system): Doc fix.
2570
2571 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2572 (Fx_display_pixel_height, Fx_display_planes)
2573 (Fx_display_color_cells, Fx_server_max_request_size)
2574 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2575 (Fx_display_mm_height, Fx_display_mm_width)
2576 (Fx_display_backing_store, Fx_display_visual_class)
2577 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2578 Doc fixes, replacing "terminal id" with "terminal object".
2579 (check_x_display_info): Handle terminal objects instead of
2580 terminal ids.
2581
2582 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2583 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
2584 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2585 Doc fixes, replacing "terminal id" with "terminal object".
2586
2587 2009-04-21 Kenichi Handa <handa@m17n.org>
2588
2589 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
2590 (font_score): Check AVGWIDTH too.
2591
2592 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2593 worst case.
2594 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2595 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
2596
2597 2009-04-19 Jason Rumney <jasonr@gnu.org>
2598
2599 The following changes fix Bug#3005 for wide glyphs on each platform,
2600 without reintroducing Bug#1258 for stretch glyphs.
2601
2602 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2603 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2604 get_phys_cursor_geometry.
2605
2606 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
2607 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2608 using get_phys_cursor_geometry.
2609
2610 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2611 correctly calculated.
2612
2613 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2614
2615 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2616 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
2617 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2618 is deprecated.
2619
2620 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2621
2622 * font.c (font_put_frame_data): Use xfree instead of free.
2623
2624 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
2625
2626 * w32font.c (Qja, Qko): Remove declarations.
2627 (syms_of_w32font): Don't DEFSYM them.
2628
2629 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
2630
2631 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2632
2633 * font.h (Qja, Qko): Extern them.
2634
2635 * ftfont.c (Qja, Qko): Remove declarations.
2636
2637 * xfont.c (Qja, Qko): Remove declarations.
2638
2639 2009-04-17 Kenichi Handa <handa@m17n.org>
2640
2641 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2642 string from a vector to handle Latin-1 characters correctly.
2643
2644 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2645 entity even if the cache hits.
2646
2647 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2648
2649 * search.c (boyer_moore): Use zero as marker value for a possible
2650 match instead of depending on overflow behavior. (Bug#2844)
2651
2652 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2653 * lisp.h: Adjust prototypes.
2654
2655 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
2656
2657 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2658 change (Bug#3003).
2659
2660 2009-04-16 Kenichi Handa <handa@m17n.org>
2661
2662 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
2663
2664 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2665 adstyle.
2666
2667 * ftfont.c (Qja, Qko): Don't make them static.
2668 (enum ftfont_cache_for): New enum.
2669 (fc_charset_table): Undo the previous change.
2670 (ftfont_get_latin1_charset): Delete it.
2671 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2672 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
2673 non-scarable font, try to get AVERAGE_WIDTH.
2674 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2675 Change ft_face_cache from a list of a hash-table. Don't check
2676 `ja' and `ko' adstyle here.
2677 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2678 FTFONT_CACHE_FOR_CHARET.
2679 (ftfont_get_charset): Undo the previous change.
2680 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
2681 (ftfont_close): Likewise.
2682 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2683
2684 * font.c (font_sort_entites): Change the meaning of the arg
2685 BEST-ONLY. Don't optimize for VEC of lenght 1.
2686 (font_select_entity): Just return the value of font_sort_entites.
2687
2688 * xfaces.c (merge_face_vectors): Reflect font properties in
2689 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2690 font_clear_prop if a face attribute doesn't change.
2691
2692 * charset.h (charset_ksc5601): Extern it.
2693
2694 * charset.c (charset_ksc5601): New variable.
2695 (Fdefine_charset_internal): Set charset_ksc5601.
2696 (init_charset_once): Initialize charset_ksc5601 to -1.
2697
2698 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2699
2700 * fileio.c (history_delete_duplicates): Remove unused declaration.
2701
2702 * callint.c (history_delete_duplicates): New declaration.
2703 (Fcall_interactively): Remove command history duplicates when
2704 history_delete_duplicates is true.
2705
2706 2009-04-14 Eli Zaretskii <eliz@gnu.org>
2707
2708 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2709
2710 2009-04-14 Kenichi Handa <handa@m17n.org>
2711
2712 * font.c (Ffont_info): Fix docstring. Fix the second element of
2713 the returned value (bug#2949).
2714
2715 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
2716
2717 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2718
2719 2009-04-14 Kenichi Handa <handa@m17n.org>
2720
2721 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2722 encoding charset is ascii_compatible.
2723
2724 * charset.c (Fdefine_charset_internal): Make charset
2725 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2726 code_offset is 0, and covers all ASCII characters.
2727
2728 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2729
2730 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2731 (ns_string_to_pasteboard_internal):
2732 * nsmenu.m (process_dialog):
2733 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2734 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2735 * lisp.h (Fx_load_color_file): Declare.
2736
2737 2009-04-13 Kenichi Handa <handa@m17n.org>
2738
2739 * font.c (font_delete_unmatched): Preserve the order of list elements.
2740 (font_select_entity): Suppress the code to optimize for the same
2741 kind of fonts.
2742 (font_load_for_lface): Get a font that supports at least ASCII
2743 characters.
2744
2745 * ftfont.c (Qja, Qko): New variables.
2746 (fc_charset_table): Delete uniquifier data for iso8859-1.
2747 (ftfont_get_latin1_charset): New function.
2748 (get_adstyle_property): New function.
2749 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2750 bitmap fonts.
2751 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2752 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2753 `ko' or `ja'.
2754 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
2755 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
2756 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2757 property.
2758 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2759 (syms_of_ftfont): DEFSYM Qja and Qko.
2760
2761 2009-04-09 Kenichi Handa <handa@m17n.org>
2762
2763 * charset.c (map_charset_chars): For a charset of `superset'
2764 method, fix calculation of code range.
2765
2766 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2767 from the list of extra properties.
2768 (font_clear_prop): Be sure to delete `:name' font property.
2769
2770 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2771
2772 * dispnew.c (redraw_overlapping_rows): Fix detection of
2773 overlapping for topmost and bottommost rows.
2774
2775 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
2776
2777 2009-04-06 Jason Rumney <jasonr@gnu.org>
2778
2779 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2780
2781 2009-04-06 Kenichi Handa <handa@m17n.org>
2782
2783 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2784
2785 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2786
2787 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2788
2789 * ftfont.c (ftfont_open): Fix checking of the return value of
2790 FT_Load_Char. Fix setting font->underline_thickness.
2791
2792 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
2793
2794 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2795 (Fterminal_parameters, Fterminal_parameter)
2796 (Fset_terminal_parameter): In doc string, refer to terminal
2797 objects rather than terminal ids.
2798
2799 2009-04-04 Eli Zaretskii <eliz@gnu.org>
2800
2801 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2802 ret_lim_data. (Bug#2867)
2803
2804 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
2805
2806 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2807 so they don't get wider than the window, matching 2006-01-23
2808 change to the partner function in xdisp.c (Bug#2800).
2809
2810 2009-04-03 Kenichi Handa <handa@m17n.org>
2811
2812 * print.c (print_object): Make each lowest sub_char_table start a
2813 new line (Bug#2866).
2814
2815 2009-04-02 Kenichi Handa <handa@m17n.org>
2816
2817 * fontset.c (fontset_font): Record no-font when a fontset
2818 explicitly tells not to try another font-specs.
2819
2820 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2821
2822 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2823
2824 2009-03-30 Kenichi Handa <handa@m17n.org>
2825
2826 * fontset.c (fontset_from_font): Specify only registry in a
2827 font-spec for all characters supported by that registry.
2828
2829 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2830 even if HAVE_M17N_FLT is not defined.
2831
2832 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2833
2834 * ftfont.c: Conditionalize prototyping and use of
2835 ftfont_variation_glyphs.
2836
2837 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2838
2839 * frame.c (delete_frame): Work around compiler bug.
2840
2841 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2842 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2843 Some more EMACS_INT.
2844 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2845
2846 * xdisp.c (dump_glyph): Fix typo.
2847
2848 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2849 (adjust_markers_gap_motion, adjust_markers_for_delete)
2850 (adjust_markers_for_insert, adjust_point)
2851 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2852 (make_gap, copy_text, count_size_as_multibyte, insert)
2853 (insert_and_inherit, insert_before_markers)
2854 (insert_before_markers_and_inherit, insert_1)
2855 (count_combining_before, count_combining_after, insert_1_both)
2856 (insert_from_string, insert_from_string_before_markers)
2857 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2858 (insert_from_buffer_1, adjust_after_replace)
2859 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2860 (replace_range_2, del_range, del_range_1, del_range_byte)
2861 (del_range_both, del_range_2, modify_region)
2862 (prepare_to_modify_buffer, signal_before_change)
2863 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2864 for buffer positions and sizes.
2865 * lisp.h: Adjust prototypes accordingly.
2866
2867 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2868 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2869 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2870
2871 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2872
2873 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2874
2875 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2876 lines and columns so we keep the same pixel height and width.
2877
2878 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2879 the property _NET_WM_STATE has changed.
2880 (x_handle_net_wm_state): New function to update frame parameter
2881 fullscreen.
2882 (x_term_init): Initialize atoms for _NET_WM_STATE.
2883
2884 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2885
2886 2009-03-27 Kevin Ryde <user42@zip.com.au>
2887
2888 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2889 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2890 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2891 (Fgpm_mouse_stop): Pass that new parameter.
2892 * termhooks.h (close_gpm): Adjust prototype.
2893
2894 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2895
2896 * lisp.h (Fx_focus_frame): Declare.
2897
2898 * callint.c (Fcall_interactively): For '^' just delegate the work to
2899 handle-shift-selection.
2900 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2901
2902 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
2903
2904 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2905
2906 * data.c (Qinteractive_form): New variable.
2907 (Finteractive_form): Use it.
2908
2909 * eval.c (Fcommandp): Use Qinteractive_form.
2910
2911 2009-03-24 Jason Rumney <jasonr@gnu.org>
2912
2913 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2914 Calculate total size precisely. Decode environment variables
2915 before substituting. (Bug#38)
2916
2917 2009-03-24 Kenichi Handa <handa@m17n.org>
2918
2919 * font.c (find_font_encoding): Return Qnil for unsupported
2920 encoding (Bug#2722).
2921
2922 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2923
2924 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2925 that gdpy is set.
2926
2927 2009-03-22 Alan Mackenzie <acm@muc.de>
2928
2929 * callint.c (Finteractive): Clarify the doc string - even
2930 promptless elements need \n separators.
2931
2932 2009-03-22 Jason Rumney <jasonr@gnu.org>
2933
2934 * w32term.c (syms_of_w32term): Doc fix for
2935 x-use-underline-position-properties.
2936
2937 2009-03-21 Eli Zaretskii <eliz@gnu.org>
2938
2939 * w32.c (getpwuid): Change argument type to unsigned.
2940 (struct w32_id): Change type of `rid' member to unsigned.
2941 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2942 argument ID to unsigned. All callers changed.
2943 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2944
2945 2009-03-20 Eli Zaretskii <eliz@gnu.org>
2946
2947 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2948 negative, produce a float value.
2949
2950 * dired.c (make_uid, make_gid): New functions.
2951 (Ffile_attributes): Use them to avoid negative UID and GID.
2952
2953 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
2954
2955 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2956 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2957 Fix typos in docstrings.
2958
2959 2009-03-19 Kenichi Handa <handa@m17n.org>
2960
2961 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
2962 changed, use font_load_for_lface to get a new font object.
2963 Call free_realized_fontset after handling ASCII font change.
2964
2965 * frame.c (x_set_font): Handle the case that ARG is a cons.
2966
2967 2009-03-19 Glenn Morris <rgm@gnu.org>
2968
2969 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2970
2971 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
2972
2973 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2974
2975 2009-03-19 Kenichi Handa <handa@m17n.org>
2976
2977 * charset.c (load_charset_map_from_file): When a mapfile can't be
2978 loaded, signal an error.
2979
2980 2009-03-18 Eli Zaretskii <eliz@gnu.org>
2981
2982 * dired.c (Ffile_attributes): Make sure UID and GID are always
2983 positive, even if the value is too large for a positive EMACS_INT.
2984 Doc fix.
2985
2986 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2987
2988 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2989
2990 * xmenu.c (xdialog_show): Move Fredisplay call ...
2991 (Fx_popup_dialog): ... here.
2992
2993 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2994
2995 * dired.c (file_name_completion): Disable the first optimization just
2996 installed, since it is not implemented correctly.
2997
2998 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2999
3000 * dired.c (file_name_completion): Check completion-ignored-extensions
3001 only if the entry can affect bestmatch.
3002 Stop the search early, as Ftry_completion already does.
3003
3004 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
3005
3006 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
3007
3008 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
3009
3010 * keyboard.c (parse_menu_item): Don't display remappings as menu
3011 equivalent bindings (Bug#788).
3012
3013 2009-03-15 Jason Rumney <jasonr@gnu.org>
3014
3015 * w32term.h (WM_EMACS_PAINT): New message.
3016 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3017 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3018 before passing to lisp thread. (Bug#950)
3019
3020 2009-03-14 David Reitter <david.reitter@gmail.com>
3021
3022 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3023 variable as it was never reset.
3024 (ns_term_init): Remove initialization of Lisp-settable defaults
3025 and ns_expand_space.
3026 (-setPanelFromDefaultValues): Remove ns_expand_space.
3027 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3028 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
3029 i.e. no additional spacing, similar to Carbon port.
3030
3031 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3032 * nsfns.m (ns-popup-prefs-panel): Remove.
3033
3034 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3035
3036 * sound.c (alsa_configure): Remove call to deprecated
3037 snd_pcm_sw_params_set_xfer_align.
3038
3039 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
3040
3041 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3042 after clicking in a detached tool bar.
3043 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3044
3045 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3046
3047 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3048 int/Lisp_Object mixup).
3049
3050 2009-03-13 Kenichi Handa <handa@m17n.org>
3051
3052 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
3053 Handle NAME nil and t correctly. Callers changed.
3054 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3055 (set_fontset_font): Change ARG to a vector. Handle range_list in
3056 ARG correctly.
3057 (Fset_fontset_font): Fix the case that TARGET is both a script
3058 name and charset name. Adjust the arg to set_fontset_font for
3059 the above change.
3060 (fontset_from_font): Fix previous change.
3061 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
3062 entry. If FONTSET is the default fontset, don't set the extra
3063 slot of the returning char-table.
3064
3065 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
3066
3067 * nsfns.m (Fx_close_connection): Doc fix.
3068 (Fns_do_applescript): Reflow docstring.
3069 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3070 (Fx_display_pixel_width, Fx_display_pixel_height)
3071 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3072 Fix typos in docstrings.
3073 (Fns_set_alpha): Fix typos in error messages.
3074
3075 2009-03-12 David Reitter <david.reitter@gmail.com>
3076
3077 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
3078 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3079 were used for such events.
3080
3081 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3082 (toggleToolbar, performDragOperation, runHelp): Use it.
3083
3084 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
3085 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3086
3087 2009-03-11 Kenichi Handa <handa@m17n.org>
3088
3089 * font.h (font_open_by_spec): Extern it.
3090
3091 * font.c (font_open_by_spec): New function.
3092 (font_open_by_name): Use font_open_by_spec.
3093
3094 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3095 fontset of the frame.
3096
3097 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3098 modify the default font of frames that use this fontset.
3099 (num_auto_fontsets): New variable.
3100 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3101 name. Be sure to set FONTSET_ASCII to the correct font name.
3102 (update_auto_fontset_alist): New function.
3103
3104 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
3105
3106 * makefile.w32-in: Update dependencies.
3107
3108 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3109
3110 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3111
3112 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3113
3114 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3115
3116 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
3117
3118 * lread.c (Feval_buffer): Doc fix.
3119
3120 2009-03-09 Kenichi Handa <handa@m17n.org>
3121
3122 * charset.c (Qfile_name_handler_alist): Extern it.
3123 (load_charset_map_from_file): Temporarily bind
3124 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3125
3126 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
3127
3128 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3129 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
3130
3131 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3132
3133 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3134 (x_set_window_size): Change back to calculated method of setting
3135 toolbar height under Cocoa. (Bug#2546)
3136 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3137 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3138
3139 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3140
3141 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3142 accelerator in parens under GNUstep.
3143
3144 2009-03-06 Kenichi Handa <handa@m17n.org>
3145
3146 These changes are to detect incorrect composition sequence without
3147 looking ahead the source. (Bug#2370)
3148
3149 * coding.h: Include "composite.h".
3150 (enum compisition_state): New enum.
3151 (struct compisition_status): New struct.
3152 (struct iso_2022_spec): New member cmp_status.
3153 (struct emacs_mule_spec): New struct.
3154 (struct coding_system): New members ctext_extended_segment_len and
3155 embedded_utf_8. Change the union member
3156 spec.emacs_mule_full_support to spec.emacs_mule.
3157
3158 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3159 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
3160 (MAX_ANNOTATION_LENGTH): Define to 5.
3161 (ADD_COMPOSITION_DATA): New arg nbytes.
3162 (emacs_mule_char): New arg cmp_status.
3163 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3164 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3165 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3166 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3167 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3168 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3169 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3170 (EMACS_MULE_COMPOSITION_END): New macro.
3171 (emacs_mule_finish_composition): New function.
3172 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3173 (decode_coding_emacs_mule): Avoid long looking ahead while
3174 handling composition.
3175 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3176 (ENCODE_COMPOSITION_RULE): New macro.
3177 (finish_composition): New function.
3178 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3179 (DECODE_COMPOSITION_START): New implementation.
3180 (DECODE_COMPOSITION_END): Likewise.
3181 (STORE_COMPOSITION_RULE): New macro.
3182 (decode_coding_iso_2022): Avoid long looking ahead while handling
3183 composition, CTEXT extended segment, and embedded UTF-8.
3184 (setup_coding_system): For a coding of type iso-2022, reset
3185 CODING_ISO_EXTSEGMENT_LEN (coding) and
3186 CODING_ISO_EMBEDDED_UTF_8 (coding).
3187 (get_translation): Delete arguments last_block, from_nchars,
3188 to_nchars. Callers changed.
3189 (produce_chars): Don't modify charbuf. Adjusted for the change of
3190 get_translation.
3191 (produce_composition): Adjust for the new annotation sequence.
3192 (handle_composition_annotation): Likewise.
3193 (consume_chars): Adjust for the change of get_translation.
3194
3195 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3196
3197 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
3198
3199 2009-03-05 Kenichi Handa <handa@m17n.org>
3200
3201 * font.c (font_select_entity): New function.
3202 (font_find_for_lface): Use font_select_entity to select a font.
3203
3204 * fontset.c (fontset_find_font): If a font found without
3205 restricting to the characters C doesn't support C, try to find a
3206 font with C restriction.
3207
3208 2009-03-04 Nikolaj Schumacher <me@nschum.de>
3209
3210 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
3211
3212 2009-03-04 Jason Rumney <jasonr@gnu.org>
3213
3214 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
3215 characters that have already been read. (Bug#2569)
3216
3217 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3218 Log an error message if check_image_size failed.
3219 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
3220 (gs_load): Mention max-image-size in size error message. (Bug#2560)
3221
3222 2009-03-02 Eli Zaretskii <eliz@gnu.org>
3223
3224 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3225 when decoding process output.
3226
3227 2009-03-01 Richard M Stallman <rms@gnu.org>
3228
3229 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3230
3231 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3232
3233 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3234
3235 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3236 (decode_coding_emacs_mule, decode_coding_iso_2022)
3237 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3238 (decode_coding_raw_text, decode_coding_charset)
3239 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3240 Honor inhibit-eol-conversion. (Bug #2186)
3241
3242 2009-02-28 Jason Rumney <jasonr@gnu.org>
3243
3244 * coding.c (detect_coding_charset): If not checking latin extra,
3245 fail on characters between 0x80 and 0xA0. (Bug#2354)
3246
3247 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3248
3249 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
3250 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
3251
3252 2009-02-27 Glenn Morris <rgm@gnu.org>
3253
3254 * callint.c (Finteractive): Doc fix.
3255
3256 2009-02-27 Kenichi Handa <handa@m17n.org>
3257
3258 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3259
3260 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
3261
3262 * font.c (font_style_to_value): Set value for unknown symbols to
3263 100 instead of 255.
3264 (weight_table, slant_table, width_table): Treat "unspecified" as
3265 the default value.
3266
3267 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
3268
3269 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3270
3271 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
3272
3273 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3274 error as soon as a recursive load is detected.
3275
3276 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3277
3278 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3279 before caching.
3280
3281 2009-02-24 Kenichi Handa <handa@m17n.org>
3282
3283 * fontset.c (fontset_find_font): Fix the condition for checking
3284 unavailable font.
3285
3286 2009-02-24 Glenn Morris <rgm@gnu.org>
3287
3288 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3289 whitespace that confuses documentation.
3290
3291 2009-02-23 Miles Bader <miles@gnu.org>
3292
3293 * process.c (Flist_system_processes, Fprocess_attributes)
3294 (syms_of_process): Rename `system-process-attributes' to
3295 `process-attributes'.
3296
3297 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3298
3299 * coding.h (struct coding_system): Make safe_charsets a pointer to
3300 unsigned char.
3301 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3302 being 255.
3303 (SAFE_CHARSET_P): Likewise.
3304 (setup_iso_safe_charsets): Properly setup safe_charsets.
3305 (Fdefine_coding_system_internal): Likewise.
3306 (setup_coding_system): Likewise. Remove unneeded casts.
3307 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3308 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3309 unneeded casts.
3310
3311 * insdel.c (del_range_2): Don't modify gap contents when called
3312 from decode_coding_object. (Bug#1809)
3313
3314 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
3315
3316 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3317 Qfont_object.
3318 (Ftype_of): Recognize font objects.
3319
3320 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3321
3322 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3323 moved to data.c.
3324
3325 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3326
3327 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3328 async_iconified. Based on a patch by Christian Lynbech
3329 <christian.lynbech@tieto.com>.
3330 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3331
3332 2009-02-20 Glenn Morris <rgm@gnu.org>
3333
3334 * syntax.c (Fskip_chars_forward): Fix doc typo.
3335
3336 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
3337
3338 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3339
3340 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
3341
3342 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3343
3344 2009-02-19 Kenichi Handa <handa@m17n.org>
3345
3346 * coding.c (detect_coding): Preserve coding->mode.
3347 Don't overflow coding->carryover. (Bug#2370)
3348
3349 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3350
3351 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3352
3353 2009-02-18 Kenichi Handa <handa@m17n.org>
3354
3355 * font.c (font_check_otf_features): Fix handling of `nil' element.
3356 (Ffont_spec): Describe :lang and :otf in the docstring.
3357
3358 2009-02-16 Andreas Schwab <schwab@suse.de>
3359
3360 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3361 string.
3362
3363 2009-02-16 Kenichi Handa <handa@m17n.org>
3364
3365 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
3366 (Bug#1723)
3367
3368 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
3369
3370 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
3371
3372 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3373 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3374
3375 2009-02-14 Eli Zaretskii <eliz@gnu.org>
3376
3377 * msdos.c (MAX_SCREEN_BUF): New macro.
3378 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3379 Encode the entire run of glyphs sharing the same face, instead of
3380 doing that one glyph at a time (fixes a bug with displaying
3381 double-size characters).
3382
3383 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3384
3385 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3386
3387 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3388 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
3389 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
3390
3391 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
3392 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
3393
3394 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3395
3396 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3397 invisible areas.
3398
3399 2009-02-12 Jason Rumney <jasonr@gnu.org>
3400
3401 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3402 (add_font_entity_to_list): Call check_face_name even when family
3403 is unspecified.
3404
3405 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3406 Release DC when finished. Use NULL window to refer to desktop.
3407 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
3408
3409 * w32font.c (add_font_entity_to_list): Fix check for substituted
3410 raster fonts. (Bug#2219)
3411
3412 2009-02-12 Kenichi Handa <handa@m17n.org>
3413
3414 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3415 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3416 (autocmp_chars): Use fast_looking_at. Don't compose more
3417 characters than MAX_COMPOSITION_COMPONENTS.
3418 (find_automatic_composition): While looking forward and backward,
3419 check static composition. Fix where to stop looking forward.
3420 (composition_adjust_point): Fix checking of static composition.
3421 (Fcomposition_get_gstring): Pay attention to
3422 MAX_COMPOSITION_COMPONENTS.
3423
3424 * lisp.h (fast_looking_at): Extern it.
3425
3426 * search.c (fast_looking_at): New function.
3427
3428 * term.c (encode_terminal_code): Adjust for the change of
3429 <struct glyph>.u.cmp.to.
3430 (append_composite_glyph): Likewise.
3431
3432 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
3433 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3434 composition.
3435 (append_composite_glyph): Adjust for the change of
3436 <strcut glyph>.u.cmp.to.
3437
3438 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
3439
3440 * casetab.c (init_casetab_once):
3441 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3442 * font.c (font_update_lface):
3443 * fontset.c (Fnew_fontset):
3444 * ftfont.c (ftfont_drive_otf):
3445 * xfont.c (xfont_open):
3446 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3447
3448 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3449
3450 * fileio.c (Fwrite_region): !NILP -> CONSP.
3451
3452 2009-02-10 Andreas Schwab <schwab@suse.de>
3453
3454 * process.c (send_process): Properly relocate pointer into data
3455 when using encoded data. (Bug#2272)
3456
3457 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3458
3459 * coding.c (detect_coding_charset): Fix previous change.
3460
3461 2009-02-08 Jason Rumney <jasonr@gnu.org>
3462
3463 * w32fns.c (w32_hide_hourglass): Handle case where frame
3464 disappeared while hourglass was displayed. (Bug #2193)
3465
3466 2009-02-07 Andreas Schwab <schwab@suse.de>
3467
3468 * unexelf.c (unexec): Fix error message.
3469
3470 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3471
3472 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
3473 when modal window is active. (Bug #2152)
3474 (applicationShouldTerminate:): Remove now-unneeded while loop
3475 around NSRunAlertPanel.
3476
3477 * nsmenu.m (popupSession): New file-global variable.
3478 (pop_down_menu): End the popupSession before closing dialog.
3479 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3480 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3481 don't query NSApp for events (just sleep instead).
3482
3483 2009-02-07 Eli Zaretskii <eliz@gnu.org>
3484
3485 * coding.c (syms_of_coding) <translation-table-for-input>:
3486 Modify doc string to discourage use for character code unification.
3487
3488 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3489
3490 * atimer.c (run_timers): Update pending_atimers.
3491
3492 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
3493
3494 * image.c (svg_load_image): Fix last change.
3495
3496 * xfns.c (Fx_create_frame): Signal an error if no font is
3497 found (Bug#2147).
3498
3499 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
3500
3501 * character.c (syms_of_character) <script-representative-chars>:
3502 Fix typo in docstring.
3503
3504 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3505
3506 * nsmenu.m (pop_down_menu): New function.
3507 (ns_popup_dialog): Call it on unwind.
3508 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3509 call timer_check() (Bug#2154).
3510 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3511 handling_signal is set.
3512 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3513
3514 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
3515
3516 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3517
3518 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3519
3520 * keyboard.c (poll_for_input_1, handle_async_input):
3521 Set handling_signal under HAVE_NS.
3522
3523 2009-02-04 Glenn Morris <rgm@gnu.org>
3524
3525 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3526
3527 2009-02-04 Kenichi Handa <handa@m17n.org>
3528
3529 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3530
3531 * charset.c (Fchar_charset): New optional arg restriction.
3532
3533 * coding.h (coding_system_charset_list): Extern it.
3534
3535 * coding.c (coding_system_charset_list): New function.
3536
3537 * composite.c: Include coding.h and termhooks.h.
3538 (composition_gstring_p): Fix for the terminal case.
3539 (composition_gstring_width): Likewise.
3540 (fill_gstring_body): Likewise.
3541 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3542 the frame.
3543 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3544 is within a composition.
3545 (Fcomposition_get_gstring): Fix the terminal case.
3546
3547 * term.c (encode_terminal_code): Fix handling of composition.
3548 (produce_composite_glyph): For static composition, get pixel_width
3549 from struct composition.
3550
3551 2009-02-02 Andreas Schwab <schwab@suse.de>
3552
3553 * unexelf.c (unexec): Handle unaligned bss offset.
3554
3555 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3556
3557 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3558 XT,w32read_socket changes to ns_read_socket.
3559
3560 * keyboard.c (handle_interrupt): Don't call
3561 quit_throw_to_read_char() under NS.
3562
3563 * blockinput.h: Remove NS-specific code.
3564
3565 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3566
3567 * dispnew.c (window_change_signal): Don't try to get the size of a
3568 suspended tty frame.
3569 * term.c (Fresume_tty): Resize if the size has changed while the
3570 tty was suspended.
3571
3572 * alloc.c (mark_stack): Properly conditionalize previous change.
3573
3574 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3575
3576 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3577 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3578 Remove; this code is not used on Windows.
3579
3580 2009-01-30 Eli Zaretskii <eliz@gnu.org>
3581
3582 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3583 EOLs that also has stray ^M characters.
3584
3585 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3586
3587 * atimer.c (run_timers, alarm_signal_handler):
3588 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3589 * w32inevt.c (w32_console_read_socket):
3590 * w32term.c (w32_read_socket):
3591 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3592
3593 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
3594
3595 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3596 Initialize it as a relative filename pattern.
3597 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3598 (Fcall_process_region): Simplify temp file creation using
3599 temporary-file-directory.
3600
3601 2009-01-29 Eli Zaretskii <eliz@gnu.org>
3602
3603 * msdos.c: Rename pending_signals to msdos_pending_signals.
3604 (sig_suspender, sigprocmask): Adjust.
3605
3606 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
3607
3608 * keyboard.c (pending_signals): New var.
3609 (poll_for_input, input_available_signal, init_keyboard): Set it.
3610 (process_pending_signals): New function.
3611
3612 * lisp.h (QUIT): Check pending_signals instead of
3613 interrupt_input_pending. Use process_pending_signals.
3614
3615 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
3616
3617 * process.c (wait_reading_process_output): Use process_pending_signals.
3618
3619 * sysdep.c (emacs_write): Use process_pending_signals.
3620
3621 * xterm.c (XTread_socket): Update pending_signals.
3622
3623 * w32term.c (w32_read_socket): Update pending_signals.
3624
3625 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3626
3627 2009-01-29 Kenichi Handa <handa@m17n.org>
3628
3629 * xftfont.c (xftfont_has_char): New function.
3630 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3631
3632 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3633
3634 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3635 under GNUstep.
3636 (ns_query_color): New declaration.
3637
3638 * nsterm.m (ns_confirm_quit): New variable.
3639 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3640 (EmacsApp-applicationShouldTerminate:): Use it.
3641 (EmacsPrefsController): Let user set it.
3642 (ns_query_color): New function.
3643 (ns_defined_color): Use it.
3644 (ns_initialize): Drop.
3645 (ns_term_init): Add two lines from ns_initialize(), and set
3646 input_interrupt_mode to nil.
3647
3648 * image.c (svg_load_image): Don't right-shift background RGB when
3649 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
3650
3651 2009-01-28 Kenichi Handa <handa@m17n.org>
3652
3653 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3654 (fontset_get_font_group): Remember that no font-group is specified
3655 for C.
3656
3657 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
3658
3659 * fns.c (concat): Check for string overflow (bug#1787).
3660
3661 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3662 Quadruple undo limits (bug#1501).
3663
3664 2009-01-27 Kenichi Handa <handa@m17n.org>
3665
3666 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3667 directly use GT_Get_Char_index.
3668
3669 * xftfont.c (struct xftfont_info): New member `index'.
3670
3671 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3672 (Ffontset_font): Adjust for the change of fontset entry.
3673
3674 2009-01-26 Kenichi Handa <handa@m17n.org>
3675
3676 * fontset.c (fontset_find_font): Fix handling of non-cons return
3677 value of fontset_get_font_group.
3678 (fontset_font): Revert last change.
3679
3680 2009-01-26 Jason Rumney <jasonr@gnu.org>
3681
3682 * w32font.c (w32font_list_internal): Return quickly if registry is
3683 unknown. Simplify final return.
3684 (add_font_entity_to_list): Break complex logic down into more
3685 manageable chunks. Move unknown registry check to
3686 w32font_list_internal.
3687
3688 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3689
3690 Changes to remove Feval calls from GUI under NS.
3691
3692 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3693 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
3694 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3695
3696 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3697 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3698 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3699 instead of NON_ASCII_KEYSTROKE_EVENT.
3700 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3701 (EmacsApp-applicationShouldTerminate:): Query user.
3702 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3703 instead of Feval.
3704
3705 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3706
3707 * keyboard.c (kbd_buffer_get_event): Check for it.
3708 (keys_of_keyboard): Define lispy keys for
3709 ns-put/unput-working-text.
3710
3711 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3712 versions.
3713 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3714
3715 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
3716
3717 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
3718 setting current_buffer directly. (Bug#2044)
3719
3720 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
3721
3722 * fontset.c (fontset_font): If we know there is no font, don't do
3723 any work. (Bug#1952, bug#1990).
3724
3725 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
3726
3727 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3728
3729 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
3730 (ns_no_defaults): New declaration.
3731 (main): Use it.
3732
3733 * nsterm.h (ns_no_defaults): New declaration.
3734
3735 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
3736
3737 * nsterm.m (ns_no_defaults): New variable.
3738 (ns_initialize): Don't read defaults when ns_no_defaults.
3739 (EmacsView-readSelectionFromPasteboard:)
3740 (writeSelectionToPasteboard:types:): New stubbed-out methods for
3741 NSServicesRequests protocol. (Bug#1435)
3742 (ns_dumpglyphs_stretch): New function.
3743 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
3744 of 2008-11-15 to other terms. (Bug#615)
3745
3746 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3747
3748 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3749
3750 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3751 call for Sparc64.
3752
3753 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3754
3755 * nsfns.m:
3756 * nsgui.h:
3757 * nsmenu.m:
3758 * nsselect.m:
3759 * nsterm.h:
3760 * nsterm.m: Remove '23' comments that indicated code added during
3761 update from emacs-20 -> emacs-23.
3762
3763 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3764
3765 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3766 ns_alternate_modifier. (Bug#1217)
3767
3768 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3769 Display all shortcuts, including those w/o super modifier.
3770
3771 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3772
3773 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
3774
3775 * fileio.c (Vwrite_region_post_annotation_function)
3776 (Vwrite_region_annotation_buffers): New vars.
3777 (build_annotations_unwind): Just reset
3778 Vwrite_region_annotation_buffers.
3779 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3780 Call write-region-post-annotation-function.
3781 (build_annotations): Add to Vwrite_region_annotation_buffers if
3782 buffer changes.
3783
3784 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3785
3786 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3787 Tiger.
3788 * nsfns.m (ns_do_applescript):
3789 Conditionalize typeUTF16ExternalRepresentation on Tiger.
3790
3791 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3792
3793 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3794
3795 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3796
3797 * nsmenu.m (NSMENUPROFILE): Change #if style.
3798
3799 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3800
3801 * nsterm.m (x_set_frame_alpha): Add prototype.
3802 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3803 handle Ctrl-tab. (Bug#1841)
3804 (ns_get_color): Use unsigned long long for scanned hex string value.
3805 (ns_term_shutdown): Abort on non SIGTERM signals.
3806 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
3807 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3808 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
3809 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
3810 (ns_defined_color): Fix settings of the XColor variable fields:
3811 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
3812
3813 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3814 DPI. (Bug#1316)
3815 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3816 values in onTiger section.
3817
3818 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
3819
3820 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3821 Check return value of font_spec_from_name.
3822 (Fx_list_fonts): Doc fix. (Bug#1951)
3823
3824 * font.c (font_spec_from_name): Return Qnil if font name could not
3825 be parsed.
3826 (font_parse_name): Treat a `?' character as part of an XLFD.
3827
3828 * fns.c (Fsubstring): Doc fix.
3829
3830 2009-01-19 Kenichi Handa <handa@m17n.org>
3831
3832 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
3833 (ftfont_list): Likewise.
3834
3835 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
3836
3837 * dbusbind.c (Fdbus_register_signal):
3838 * process.c (conv_sockaddr_to_lisp):
3839 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3840
3841 * callproc.c (Fgetenv_internal): Doc fix.
3842
3843 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
3844
3845 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3846 it is not even used.
3847
3848 2009-01-16 Glenn Morris <rgm@gnu.org>
3849
3850 * font.c (Ffont_variation_glyphs): Silence compiler.
3851
3852 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
3853
3854 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3855 Reported by David Robinow <drobinow@gmail.com>.
3856
3857 2009-01-15 Kenichi Handa <handa@m17n.org>
3858
3859 * coding.c (detect_coding_system): Fix handling of null_byte_found.
3860
3861 2009-01-14 Jason Rumney <jasonr@gnu.org>
3862
3863 * frame.c (x_set_font): Always store a font to the font parameter,
3864 never a fontset. (Bug#1562)
3865
3866 2009-01-14 Kenichi Handa <handa@m17n.org>
3867
3868 * coding.c (TWO_MORE_BYTES): New macro.
3869 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
3870
3871 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
3872
3873 * font.c (font_clear_prop): If clearing the family, clear the font
3874 width index too.
3875
3876 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
3877
3878 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
3879
3880 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3881 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3882 functions, use sizeof.
3883
3884 2009-01-12 Martin Rudalics <rudalics@gmx.at>
3885
3886 * keyboard.c (read_char): Fix case where last_nonmenu_event
3887 returned a bad value with submenus. (Bug#447)
3888
3889 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
3890
3891 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3892 family, clear the font width index too.
3893
3894 2009-01-11 Jason Rumney <jasonr@gnu.org>
3895
3896 * keyboard.c (cmd_error_internal): Exit when errors occur before
3897 frame creation and not in daemon mode. (Bug#1836)
3898
3899 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
3900
3901 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3902 of a display vector, backtrack.
3903 (try_window_reusing_current_matrix): Check glyph type before
3904 referencing charpos member.
3905
3906 2009-01-10 Eli Zaretskii <eliz@gnu.org>
3907
3908 Fix Bug #876:
3909
3910 * coding.c (inhibit_null_byte_detection): New variable.
3911 (detect_coding, detect_coding_system): Don't pay attention to null
3912 bytes if inhibit_null_byte_detection is non-zero.
3913 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
3914 <inhibit-iso-escape-detection>: Doc fix.
3915
3916 2009-01-09 Jason Rumney <jasonr@gnu.org>
3917
3918 * w32font.c (add_font_entity_to_list): Don't report unknown
3919 Windows charset as any unrecognized registry. (Bug#1548)
3920 Only report Unicode Plane 2 fonts as unicode-sip.
3921
3922 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
3923
3924 * xfaces.c (Fx_font_family_list): Delete function.
3925 Move compatibility version to faces.el.
3926
3927 * font.c (Ffont_family_list): Return a list of strings, not symbols.
3928
3929 2009-01-09 Martin Rudalics <rudalics@gmx.at>
3930
3931 * frame.c (x_set_frame_parameters): Remember requested value for
3932 fullscreen before it's reset by the parameter handler.
3933
3934 2009-01-09 Glenn Morris <rgm@gnu.org>
3935
3936 * keyboard.c (last_command_char): For clarity, rename to...
3937 (last_command_event): ... and update all users.
3938 (last_input_char): For clarity, rename to...
3939 (last_input_event): ... and update all users.
3940 (last-command-char, last-input-char): Move to subr.el as aliases.
3941 * cmds.c, commands.h: Update for last_command_char rename.
3942
3943 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
3944
3945 * font.c (font_open_for_lface): Handle unspecified height attribute.
3946
3947 2009-01-08 Jason Rumney <jasonr@gnu.org>
3948
3949 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3950 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3951 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3952 Don't declare.
3953 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
3954 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3955
3956 2009-01-07 Kenichi Handa <handa@m17n.org>
3957
3958 * fileio.c (Finsert_file_contents): In the case of replace,
3959 remember the coding system used for decoding in
3960 coding_system (Bug#1039).
3961
3962 * coding.c (decode_coding_utf_8): Check byte_after_cr before
3963 breaking the loop. (Bug#870)
3964 (decode_coding_utf_16, decode_coding_emacs_mule)
3965 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3966 (decode_coding_charset): Likewise.
3967
3968 2009-01-05 Martin Rudalics <rudalics@gmx.at>
3969
3970 * frame.c (x_set_frame_parameters): Make sure height (width) get
3971 applied when fullwidth (fullheight) is set. (Bug#1522)
3972
3973 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
3974
3975 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3976 (utc_base): Declare as ULONGLONG, not long double.
3977 (convert_time_raw): Delete.
3978 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3979 (initialize_utc_base): New function.
3980 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3981 (convert_from_time_t): Use initialize_utc_base; compute result with
3982 64-bit arithmetic.
3983 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3984
3985 2009-01-03 Eli Zaretskii <eliz@gnu.org>
3986
3987 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
3988 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3989 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3990 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3991 [!subprocesses]: Define.
3992 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3993 (Flist_system_processes, Fsystem_process_attributes)
3994 [!subprocesses]: Call list_system_processes and
3995 system_process_attributes instead of returning Qnil.
3996
3997 * dosfns.c (system_process_attributes, list_system_processes):
3998 New functions.
3999
4000 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4001
4002 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4003 Don't use the default (no-op) implementation.
4004
4005 2009-01-03 Jason Rumney <jasonr@gnu.org>
4006
4007 * keyboard.c (parse_modifiers_uncached): Wheel events are
4008 clicks (bug#687).
4009
4010 * w32term.c (x_query_colors, x_query_color): New functions.
4011
4012 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4013 (svg_load_image): Cast returned pointers from dynamically loaded
4014 functions. Eliminate W32 specific code.
4015
4016 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4017
4018 * nsfns.m (x_set_foreground_color, x_set_background_color)
4019 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4020 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4021 x_ prefix instead of ns_. Update references.
4022 (syms_of_nsfns): Add a FIXME comment.
4023
4024 * nsterm.m (x_set_cursor_type): New prototype.
4025 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4026
4027 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4028 for Solaris instead of incorrectly providing Qutime and Qcutime.
4029
4030 2009-01-02 Eli Zaretskii <eliz@gnu.org>
4031
4032 * w32.c (process_times): Compute sum of utime and stime.
4033 (system_process_attributes): Add Qtime to the alist.
4034
4035 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4036 and add them to the alist.
4037
4038 * process.c (top level) <Qtime, Qctime>: New variables.
4039 (syms_of_process): staticpro them.
4040 (Fsystem_process_attributes): Add their documentation to the doc
4041 string.
4042
4043 * process.h: Declare Qtime and Qctime.
4044
4045 2009-01-02 Jason Rumney <jasonr@gnu.org>
4046
4047 * image.c (Qgobject): New symbol.
4048 (syms_of_image): Initialize it.
4049 (init_svg_functions): Load some functions from gobject library.
4050
4051 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4052
4053 * frame.c (make_terminal_frame): Remove redundant code and useless
4054 block.
4055
4056 2009-01-01 Andreas Schwab <schwab@suse.de>
4057
4058 * process.c (conv_sockaddr_to_lisp): Add workaround for
4059 getsockname bug on BSD.
4060
4061 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
4062
4063 * xfns.c (x_create_tip_frame): Set border width of the X window.
4064
4065 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
4066
4067 2009-01-01 Jason Rumney <jasonr@gnu.org>
4068
4069 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
4070 Don't block input, as per earlier xterm.c changes.
4071
4072 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4073
4074 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4075 (ns_appkit_version_int): New function.
4076 (x-server-version): Use ns_appkit_version_int and follow 21+
4077 convention of returning 3 integers.
4078
4079 2008-12-30 Kenichi Handa <handa@m17n.org>
4080
4081 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4082 (CHAR_SURROGATE_PAIR_P): New macro.
4083
4084 * font.h (struct font_driver): New member get_variation_glyphs.
4085
4086 * font.c (font_range): Don't require a font for a variation selector.
4087 (Ffont_variation_glyphs): New function.
4088 (syms_of_font): Defsubr it.
4089
4090 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4091 ftfont_variation_glyphs.
4092 (setup_otf_gstring): New function.
4093 (ftfont_drive_otf): Use it.
4094 (ftfont_shape_by_flt): Handle variation selector.
4095 (ftfont_variation_glyphs): New function.
4096
4097 2008-12-30 Martin Rudalics <rudalics@gmx.at>
4098
4099 * frame.c (Vemacs_iconified): Remove.
4100
4101 2008-12-30 Jason Rumney <jasonr@gnu.org>
4102
4103 * frame.c (store_frame_param, x_get_arg): Enable newer code on
4104 WINDOWSNT too, as related changes have already been synced. (Bug#117)
4105
4106 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
4107
4108 * indent.c (Fvertical_motion): Don't advance iterator if we have
4109 reseated to the desired position.
4110
4111 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4112 checking for pos match.
4113
4114 2008-12-30 Kenichi Handa <handa@m17n.org>
4115
4116 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4117 just get the low 8-bit of the code.
4118
4119 * font.c (font_intern_prop): Validate str as multibyte.
4120
4121 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4122
4123 * dispextern.h (struct face): Move lface and hash from the middle
4124 of bitfields.
4125
4126 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4127
4128 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4129
4130 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4131 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4132 instead of intervals.h.
4133
4134 2008-12-26 Andreas Schwab <schwab@suse.de>
4135
4136 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4137 cons.
4138
4139 2008-12-26 Martin Rudalics <rudalics@gmx.at>
4140
4141 * textprop.c (Qminibuffer_prompt): New variable.
4142 (syms_of_textprop): Initialize it.
4143 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4144 in minibuffer-prompt face. (Bug#1662)
4145
4146 2008-12-25 Jason Rumney <jasonr@gnu.org>
4147
4148 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4149
4150 2008-12-24 Jason Rumney <jasonr@gnu.org>
4151
4152 * ralloc.c (r_alloc_reset_variable): New function.
4153
4154 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
4155 record of what points where. (Bug#716)
4156
4157 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4158
4159 * minibuf.c (read_minibuf): Follow the non-interactive case when
4160 running as a daemon, before detaching.
4161
4162 2008-12-22 Andreas Schwab <schwab@suse.de>
4163
4164 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4165 * gtkutil.c (free_widget_value): Use xfree instead of free.
4166
4167 2008-12-22 Martin Rudalics <rudalics@gmx.at>
4168
4169 * frame.c (delete_frame): New function derived from
4170 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4171 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4172 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4173 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4174 * frame.h: Extern delete_frame.
4175 * window.c (window_loop):
4176 * terminal.c (delete_terminal):
4177 * xterm.c (x_connection_closed):
4178 * xfns.c (Fx_hide_tip):
4179 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
4180
4181 2008-12-21 Jason Rumney <jasonr@gnu.org>
4182
4183 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4184 when character maps to .notdef character.
4185
4186 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4187
4188 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4189
4190 2008-12-20 Jason Rumney <jasonr@gnu.org>
4191
4192 * frame.c (Fmake_terminal_frame): Raise an error when called from
4193 a graphical frame on Windows. (Bug#1325)
4194
4195 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4196
4197 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4198
4199 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
4200
4201 * minibuf.c (Fread_buffer): Doc fix.
4202
4203 2008-12-20 Jason Rumney <jasonr@gnu.org>
4204
4205 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
4206 server name in UNC paths. (Bug#719)
4207
4208 * coding.c (decode_coding): Clear chars_at_source flag when using
4209 charbuf. (Bug#1035)
4210
4211 2008-12-19 Daniel Engeler <engeler@gmail.com>
4212
4213 * sysdep.c (serial_configure): Fix typo.
4214
4215 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4216
4217 * sysdep.c: Include alloca.h.
4218 (system_process_attributes): Add implementation for Solaris.
4219
4220 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
4221
4222 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4223
4224 Reorganize implementation of Flist_system_processes and
4225 Fsystem_process_attributes. No functional changes.
4226 * process.c: Don't #include pwd.h, grp.h and limits.h.
4227 (Flist_system_processes): Just call list_system_processes.
4228 (Fsystem_process_attributes): Just call system_process_attributes.
4229 (procfs_list_system_processes, time_from_jiffies)
4230 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4231 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4232
4233 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4234 (list_system_processes): Rename from
4235 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4236 Provide a do nothing implementation.
4237 (system_process_attributes): Rename from
4238 procfs_list_system_processes.
4239 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4240 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
4241
4242 * w32.c (list_system_processes): Rename from
4243 w32_list_system_processes.
4244 (system_process_attributes): Rename from
4245 w32_system_process_attributes.
4246
4247 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4248
4249 * process.h (w32_list_system_processes)
4250 (w32_system_process_attributes): Remove.
4251 (list_system_processes, system_process_attributes):
4252 New prototypes.
4253
4254 2008-12-19 Kenichi Handa <handa@m17n.org>
4255
4256 * xfont.c (xfont_decode_coding_xlfd): New function.
4257 (xfont_encode_coding_xlfd): New function.
4258 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4259 (xfont_list): Decode and encode XLFD by iso-8859-1.
4260 (xfont_match): Likewise.
4261 (xfont_list_family): Likewise.
4262 (xfont_open): Likewise.
4263
4264 * ftfont.c (ftfont_open): Generate a multibyte string if given
4265 names are utf-8.
4266
4267 * xftfont.c (xftfont_open): Generate a multibyte string if given
4268 names are utf-8.
4269
4270 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4271
4272 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4273 changed.
4274 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4275 clicked on a detached tool bar button.
4276
4277 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4278
4279 * emacs.c (main): Print and error and exit when no data is read
4280 from the pipe.
4281
4282 2008-12-17 Jason Rumney <jasonr@gnu.org>
4283
4284 * w32font.c (w32font_has_char): Always return -1.
4285
4286 2008-12-16 Kenichi Handa <handa@m17n.org>
4287
4288 * font.c (font_open_entity): Fix previous change.
4289
4290 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4291
4292 * process.c: Include <limits.h>.
4293
4294 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
4295
4296 * font.c (font_update_drivers): Fix mistake in reconstructing the
4297 driver list.
4298
4299 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
4300
4301 * font.c (font_clear_cache): Fix format of font cache data.
4302
4303 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
4304
4305 * xftfont.c (xftfont_open): Free Xft font pattern if
4306 XftFontOpenPattern fails.
4307
4308 * xterm.c (x_free_frame_resources): Remove extraneous call to
4309 free_frame_faces.
4310
4311 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4312
4313 * xterm.c (x_delete_display): Move xim_close_dpy call to
4314 x_delete_terminal.
4315 (x_delete_terminal): Call xim_close_dpy.
4316
4317 2008-12-13 Jason Rumney <jasonr@gnu.org>
4318
4319 * w32font.c (intern_font_name): New function.
4320 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4321 (w32font_open_internal, Fx_select_font): Decode font name.
4322 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4323
4324 * w32font.h (intern_font_name): Declare new function.
4325
4326 * w32uniscribe.c (add_opentype_font_name_to_list):
4327 Use intern_font_name.
4328
4329 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4330
4331 * frame.c (Fdelete_frame): Call free_font_driver_list.
4332
4333 * font.c (free_font_driver_list): Implement missing function.
4334
4335 * w32term.c (w32_term_init): Don't initialize the image cache
4336 here; it will be done in init_frame_faces.
4337
4338 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4339 (struct x_display_info): Remove unused member null_pixel. New
4340 member xim_callback_data.
4341
4342 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4343 (xim_initialize): Save pointer to callback function data.
4344 (xim_close_dpy): Free callback function data. Call XCloseIM,
4345 reverting 2008-11-04 change by David Smith.
4346 (x_term_init): Don't initialize the image cache here; it will be
4347 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4348 (x_delete_display): Free x_dnd_atoms member.
4349
4350 2008-12-13 Kenichi Handa <handa@m17n.org>
4351
4352 * font.c (font_rescale_ratio): Moved from xfaces.c.
4353 Argument type changed. Handle a font-spec too.
4354 (font_score): Check Vface_font_rescale_alist.
4355 (font_open_entity): Likewise. (Bug#1547)
4356
4357 * xfaces.c (font_rescale_ratio): Moved to font.c.
4358
4359 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4360
4361 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4362
4363 2008-12-12 Jason Rumney <jasonr@gnu.org>
4364
4365 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4366 Vwindow_system_version to the real w32 major version.
4367
4368 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4369
4370 * term.c (init_tty): Move setting the terminal name before the
4371 potential user: maybe_fatal.
4372
4373 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
4374
4375 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4376 all callers changed. Call free_frame_faces to free the face cache.
4377
4378 2008-12-11 Jason Rumney <jasonr@gnu.org>
4379
4380 * w32font.c (fill_in_logfont): Don't assume symbol script means
4381 SYMBOL_CHARSET. (Bug#547)
4382
4383 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
4384 size for surrogates. (Bug#1096, bug#872)
4385
4386 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4387
4388 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4389
4390 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4391
4392 * process.c (Fsystem_process_attributes, syms_of_process):
4393 Fix typo in name of Ssystem_process_attributes.
4394 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4395
4396 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4397
4398 * syntax.c (Fmodify_syntax_entry): Doc fix.
4399
4400 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4401
4402 * font.c (Ffont_spec): Move usage to end of docstring.
4403
4404 2008-12-10 Jason Rumney <jasonr@gnu.org>
4405
4406 * w32font.c (Qcham): New symbol.
4407 (font_supported_scripts): Add cham, and comments for other new
4408 scripts in bitfield from OpenType spec.
4409 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4410 contain characters beyond the bmp.
4411
4412 2008-12-10 Kenichi Handa <handa@m17n.org>
4413
4414 * ftfont.c (fc_charset_table): Add "unicode-sip".
4415 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
4416 Qunicode_sip.
4417
4418 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4419
4420 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4421 (Fcoding_system_put): Use QCdefault_char.
4422 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4423
4424 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
4425
4426 * xftfont.c (syms_of_xftfont): Fix typo.
4427
4428 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
4429
4430 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4431
4432 * emacs.c (main): Close daemon_pipe on exec.
4433
4434 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
4435
4436 * termchar.h (struct tty): New members termcap_term_buffer and
4437 termcap_strings_buffer.
4438
4439 * term.c (encode_terminal_code): Free any previous memory blocks
4440 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
4441 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4442 All callers changed.
4443 (init_tty): Store termcap data and string buffers in new struct
4444 tty members termcap_term_buffer and termcap_strings_buffer.
4445 (delete_tty): Free them.
4446 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
4447
4448 2008-12-07 Seiji Zenitani <zenitani@mac.com>
4449
4450 * nsfns.m (ns_set_background_color): Remove code duplication.
4451 It was a substitute for face-transparency on OS X 10.3.
4452
4453 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
4454
4455 * coding.c (make_conversion_work_buffer): Disable buffer
4456 modification hooks in the work buffer.
4457
4458 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4459
4460 * process.c (procfs_system_process_attributes): If `nread' has a
4461 negative value, assign zero to it.
4462
4463 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
4464
4465 * eval.c (Vdebug_on_error): Doc fix.
4466
4467 2008-12-05 Kenichi Handa <handa@m17n.org>
4468
4469 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4470 second character is a combining character.
4471
4472 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4473
4474 * process.c (procfs_system_process_attributes): Don't use cmd,
4475 cmdsize, and q without initializing them first.
4476
4477 2008-12-04 Jason Rumney <jasonr@gnu.org>
4478
4479 * w32font.c (w32font_draw): Initialize orig_clip before getting
4480 it, and delete it when finished.
4481
4482 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4483
4484 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4485 case when running as a daemon before detaching.
4486
4487 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
4488
4489 * w32.c (init_environment): Don't unload library shell32.dll.
4490
4491 2008-12-03 Kenichi Handa <handa@m17n.org>
4492
4493 * font.c (font_at): Set `multibyte' at first.
4494
4495 * coding.c (decode_coding_charset): Check type of an element of
4496 vector VALIDS.
4497 (encode_coding_emacs_mule): Be sure to set `code'.
4498
4499 * fontset.c (face_for_char): Handle invalid charset property correctly.
4500 (font_for_char): Likewise.
4501
4502 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
4503
4504 * font.c (Fopen_font): Compute pixel size correctly.
4505 (font_update_lface): Handle fonts with corrupted size specs,
4506 i.e. non-int and non-float.
4507
4508 * ftfont.c (ftfont_match): Initialize entity variable.
4509 (ftfont_resolve_generic_family): Avoid using uninitialized var.
4510 (ftfont_list_family): Initialize list var earlier.
4511
4512 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4513
4514 * xterm.c (x_draw_glyph_string): Fall back on
4515 underline_minimum_offset for underline position.
4516
4517 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4518
4519 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4520
4521 * character.c (c_string_width): Specify the type for LEN.
4522
4523 2008-12-03 Kenichi Handa <handa@m17n.org>
4524
4525 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
4526 (decode_coding_utf_8): Likewise.
4527 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4528 (produce_chars): Initialize consumed_chars to 0.
4529
4530 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4531
4532 * keyboard.c (make_lispy_position): Only use PT if the selected
4533 window is current.
4534
4535 2008-12-02 Andreas Schwab <schwab@suse.de>
4536
4537 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4538
4539 * doprnt.c (doprnt1): Fix size of charbuf.
4540
4541 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4542
4543 * keyboard.c (timer_check): Revert last change.
4544
4545 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
4546
4547 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4548
4549 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
4550
4551 * makefile.w32-in: Update dependencies.
4552 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4553
4554 2008-12-01 Andreas Schwab <schwab@suse.de>
4555
4556 * font.c (register_font_driver): Use xmalloc.
4557 (font_put_frame_data): Likewise.
4558
4559 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
4560
4561 * xfaces.c (realize_x_face): Make abort condition clearer.
4562
4563 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4564
4565 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
4566
4567 * keyboard.c (timer_check): After a timer runs, ensure that the
4568 selected window's buffer is current.
4569
4570 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
4571
4572 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4573 It was accidentally restored by the Unicode merge.
4574
4575 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4576
4577 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
4578
4579 * w32proc.c: Include "coding.h".
4580 (Fw32_short_file_name): Encode filename passed to Windows API.
4581 (Fw32_long_file_name): Encode filename passed to Windows API and
4582 decode back the result. (Bug#1433)
4583
4584 2008-11-29 Kenichi Handa <handa@m17n.org>
4585
4586 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4587 not before accessing it.
4588
4589 * charset.c (Fdefine_charset_internal): After calculating
4590 min_char, max_char, and fastmap, copy the charset structure again.
4591 (encode_char): Fix the previous change.
4592
4593 2008-11-28 Seiji Zenitani <zenitani@mac.com>
4594
4595 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4596
4597 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4598
4599 * nsterm.m (x_set_frame_alpha): New function.
4600
4601 2008-11-27 Eli Zaretskii <eliz@gnu.org>
4602
4603 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4604
4605 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
4606
4607 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4608 pointer to check_face_name.
4609
4610 2008-11-27 Kenichi Handa <handa@m17n.org>
4611
4612 * category.h (SET_CATEGORY_SET): Call set_category_set.
4613 (set_category_set): Extern it.
4614
4615 * category.c (hash_get_category_set): New function.
4616 (Fmodify_category_entry): Adjusted for the change of
4617 char_table_ref_and_range. Call hash_get_category_set to get a
4618 category set to store in the table.
4619
4620 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4621 Funify_charset.
4622
4623 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
4624 (DECODE_CHAR): Check if the decoder vector is ready.
4625 (ENCODE_CHAR): Check if the encoder char-table is ready.
4626 (maybe_unify_char): Extern it.
4627
4628 * charset.c (Vchar_unified_charset_table): Delete it.
4629 (inhibit_load_charset_map): New variable.
4630 (temp_charset_work): New variable.
4631 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4632 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4633 New macros.
4634 (load_charset_map): Meaning of control_flag changed. If
4635 inhibit_load_charset_map is nonzero, setup a table in
4636 temp_charset_work.
4637 (load_charset): New argument control_flag.
4638 (map_charset_for_dump): New function.
4639 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4640 map_charset_for_dump.
4641 (Fdefine_charset_internal): If the charset method is MAP, load
4642 mapping tables by calling load_charset.
4643 (Funify_charset): Don't load a mapping table but directly set
4644 Vchar_unify_table.
4645 (maybe_unify_char): New function.
4646 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4647 Handle the case of inhibit_load_charset_map being nonzero.
4648 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4649 Handle the case of inhibit_load_charset_map being nonzero.
4650 (Fclear_charset_maps): Just free temp_charset_work.
4651 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4652 variable.
4653
4654 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4655 change of char_table_ref_and_range.
4656 (char_table_ref_and_range): Change the meaning of argument FROM
4657 and TO. Now the caller must provide initial values for *FROM
4658 and *TO.
4659
4660 * fontset.c (fontset_add): Adjusted for the change of
4661 char_table_ref_and_range.
4662 (fontset_get_font_group): Likewise.
4663 (Ffontset_info): Likewise.
4664
4665 * keymap.c (describe_vector): Adjusted for the change of
4666 char_table_ref_and_range. For char-table, put boundary between
4667 non-ASCII and 8-bit characters.
4668
4669 * print.c (print_object): For bool-vector, delete unnecessary
4670 check of ASCII_BYTE_P.
4671
4672 2008-11-26 Jason Rumney <jasonr@gnu.org>
4673
4674 * w32font.c (w32font_open_internal): Don't include external
4675 leading in font height. (Bug#879)
4676
4677 2008-11-26 Glenn Morris <rgm@gnu.org>
4678
4679 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4680 redefinition with ifdef. (Bug#1383)
4681
4682 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4683
4684 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4685
4686 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4687
4688 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4689 New EmacsView methods.
4690 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4691 Fixes bug #1048,1357,1414.
4692
4693 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4694
4695 Fix bug #1362.
4696 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4697 is not an indexed color.
4698 * nsterm.m (free_indexed_color): Add argument checking.
4699 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4700
4701 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
4702
4703 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4704 Document confirm-after-completion value for
4705 minibuffer-completion-confirm.
4706
4707 2008-11-24 Jason Rumney <jasonr@gnu.org>
4708
4709 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4710 warning.
4711
4712 2008-11-23 Jason Rumney <jasonr@gnu.org>
4713
4714 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4715 restored before returning.
4716
4717 * w32font.c (check_face_name): New function.
4718 (add_font_entity_to_list): Use it to filter out common substituted
4719 fonts. (Bug#642)
4720
4721 2008-11-22 Martin Rudalics <rudalics@gmx.at>
4722
4723 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4724 confirm-nonexistent-file-or-buffer in doc-string.
4725
4726 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4727
4728 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4729 Fix copy/paste typo. Add checks.
4730
4731 2008-11-21 Kenichi Handa <handa@m17n.org>
4732
4733 * coding.c (detect_coding_iso_2022): Reject invalid composition
4734 sequence.
4735 (DECODE_COMPOSITION_START): If the current source is the last
4736 block, and the current composition doesn't end, regard this
4737 sequence as invalid.
4738 (decode_coding_iso_2022): Handle invalid composition sequence.
4739
4740 2008-11-20 Martin Rudalics <rudalics@gmx.at>
4741
4742 * window.c (coordinates_in_window): Don't return
4743 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4744 line when the window is not the rightmost one. (Bug#1372)
4745
4746 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4747
4748 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4749
4750 2008-11-15 Eli Zaretskii <eliz@gnu.org>
4751
4752 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4753 and bright_bg if noninteractive is non-zero.
4754
4755 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4756
4757 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4758 x_draw_glyph_string_background.
4759
4760 * w32term.c (x_draw_glyph_string): Likewise.
4761
4762 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
4763
4764 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4765 the next glyph string once past the overhang width.
4766
4767 * nsterm.m (ns_draw_glyph_string): Likewise.
4768
4769 * w32term.c (x_draw_glyph_string): Likewise.
4770
4771 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4772
4773 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4774 double file close.
4775
4776 2008-11-14 Martin Rudalics <rudalics@gmx.at>
4777
4778 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4779 dedicated status of window before attempting to display another
4780 buffer in it.
4781
4782 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
4783
4784 * msdos.c (Fmsdos_long_file_names):
4785 (syms_of_msdos) <dos-unsupported-char-glyph>:
4786 * dosfns.c (Fint86): Fix typos in docstrings.
4787
4788 2008-11-14 Eli Zaretskii <eliz@gnu.org>
4789
4790 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4791
4792 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4793
4794 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4795
4796 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4797
4798 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4799
4800 * frame.h: Negative alpha means "don't touch".
4801
4802 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4803
4804 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4805
4806 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4807
4808 * hftctl.c:
4809 * chpdef.h:
4810 * acldef.h: Remove files used only for systems no longer supported.
4811
4812 * Makefile.in: Fix .o alphabetical ordering.
4813 (hftctl.o): Remove dependency, file removed.
4814 (keymap.o, print.o): Depend on charset.h.
4815
4816 2008-11-10 Kenichi Handa <handa@m17n.org>
4817
4818 * character.c (Fget_byte): Fix and make it faster for unibyte target.
4819
4820 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
4821
4822 * dired.c (file_name_completion): If completion_ignore_case is
4823 enabled, ignore case when checking completion-regexp-list.
4824
4825 2008-11-08 Eli Zaretskii <eliz@gnu.org>
4826
4827 * vm-limit.c (get_lim_data): Fix last change.
4828
4829 2008-11-08 Kenichi Handa <handa@m17n.org>
4830
4831 * character.c (Fget_byte): New function.
4832 (syms_of_character): Defsubr Fget_byte.
4833
4834 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
4835
4836 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4837 cursor position is valid after scrolling.
4838
4839 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
4840
4841 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4842
4843 2008-11-06 Glenn Morris <rgm@gnu.org>
4844
4845 * xterm.c (handle_one_xevent): Don't let popup menus cause
4846 mouse-autoselect-window related window switching. (Bug#1261)
4847
4848 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4849
4850 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4851
4852 2008-11-04 Andreas Schwab <schwab@suse.de>
4853
4854 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4855
4856 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
4857
4858 * xfns.c (Fx_wm_set_size_hint): New function.
4859
4860 2008-11-03 Martin Rudalics <rudalics@gmx.at>
4861
4862 * textprop.c (Fprevious_single_char_property_change): Return 0
4863 when there's no change in a string. (Bug#1301)
4864
4865 2008-11-02 Martin Rudalics <rudalics@gmx.at>
4866
4867 * frame.c (do_switch_frame): New argument NORECORD passed to
4868 Fselect_window.
4869 (Fselect_frame): New argument NORECORD passed to
4870 do_switch_frame.
4871 (Fset_frame_selected_window): New argument NORECORD passed to
4872 Fselect_frame.
4873 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4874 in call of do_switch_frame.
4875 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4876 Handle NORECORD argument in call of Fselect_frame.
4877 * lisp.h (do_switch_frame, Fselect_frame)
4878 (Fset_frame_selected_window): Adjust declarations.
4879 * window.c (select_frame_norecord): New function.
4880 (run_window_configuration_change_hook): Use it and call
4881 Fselect_frame with NORECORD set.
4882 (Fselect_window): Pass NORECORD to Fselect_frame.
4883 (Fset_window_configuration): Handle NORECORD argument in call of
4884 do_switch_frame.
4885 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4886 Fset_frame_selected_window.
4887 * keyboard.c (command_loop_1): Handle NORECORD in call of
4888 Fselect_frame (currently ifdefd).
4889
4890 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4891
4892 * emacs.c (USAGE2): Untabify.
4893
4894 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4895
4896 * composite.c (fill_gstring_header): Fix copy/paste typo.
4897
4898 2008-10-31 Martin Rudalics <rudalics@gmx.at>
4899
4900 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4901 (Fother_window): Rename argument and rewrite doc-string.
4902 (select_window_norecord): Fix return value. (Bug#1276)
4903
4904 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
4905
4906 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4907 new frames overriding foreground for tooltips. Based on similar patch
4908 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4909
4910 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
4911
4912 * emacs.c (Fdaemon_initialized): Initialize nfd.
4913
4914 2008-10-29 Martin Rudalics <rudalics@gmx.at>
4915
4916 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4917 (Fwindow_text_height): Clarify doc-strings.
4918 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4919 doc-string of window-scroll-functions.
4920
4921 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4922
4923 * category.c (syms_of_category): Fix typo in docstring.
4924
4925 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
4926
4927 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4928 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4929 Fix typos in docstrings.
4930
4931 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4932
4933 * emacs.c (daemon_pipe): Make non-static.
4934 (IS_DAEMON): Move definition ...
4935 * lisp.h (IS_DAEMON): ... here.
4936 (daemon_pipe): Declare.
4937 (is_daemon): Remove.
4938 * dispnew.c (init_display): Use IS_DAEMON.
4939
4940 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4941
4942 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4943 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4944
4945 * emacs.c (is_daemon): Remove.
4946 (main): Don't set is_daemon.
4947 (IS_DAEMON): New macro.
4948 (Fdaemonp, Fdaemon_initialized): Use it.
4949 (Fdaemon_initialized): Write a char into the pipe to make sure the
4950 parent exits.
4951 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4952
4953 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
4954
4955 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4956 over-sized glyph, draw it with the default glyph width.
4957
4958 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4959 glyph, draw it with the default glyph width.
4960
4961 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4962 glyph, draw it with the default glyph width.
4963
4964 * xdisp.c (try_scrolling): When computing the distance from the
4965 scroll margin to PT, try moving some distance past the window
4966 bottom before giving up.
4967
4968 2008-10-27 Martin Rudalics <rudalics@gmx.at>
4969
4970 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4971 (Fset_window_buffer): Explain in doc-string that a window can be
4972 "strongly" dedicated to its buffer.
4973
4974 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4975
4976 * emacs.c (daemon_name): New variable.
4977 (main): Deal with --daemon=SERVER_NAME.
4978 (Fdaemonp): Return a name if one was passed to --daemon.
4979
4980 2008-10-26 Romain Francoise <romain@orebokech.com>
4981
4982 * emacs.c (daemon_pipe): New variable.
4983 (main): Create a pipe before forking, make the parent exit only after
4984 the child has closed its end of the pipe. Move closing the
4985 descriptors ...
4986 (Fdaemon_initialized): ... here. New function.
4987
4988 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4989
4990 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4991 the previous unoptimized table.
4992
4993 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4994 the distinction between non-nil and non-t value of `dedicated'.
4995
4996 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
4997
4998 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
4999 read_char_minibuf_menu_text is large enough to hold the menu string.
5000
5001 2008-10-25 Martin Rudalics <rudalics@gmx.at>
5002
5003 * window.c (Fget_buffer_window, Fdelete_windows_on)
5004 (Freplace_buffer_in_windows): Make buffer argument optional and
5005 rename to buffer_or_name.
5006
5007 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
5008
5009 * xdisp.c (handle_single_display_spec, handle_display_prop):
5010 Undo 2005-05-16 change.
5011 (handle_stop): Pop iterator if it's loaded with an empty string.
5012 (get_overlay_strings_1): Don't save iterator if it's loaded with
5013 an empty string (bug#1201).
5014
5015 2008-10-24 Kenichi Handa <handa@m17n.org>
5016
5017 * ftfont.c (ftfont_otf_features): Fix previous change.
5018 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5019 calling ftfont_otf_features.
5020
5021 2008-10-24 Kenichi Handa <handa@m17n.org>
5022
5023 * font.c (font_match_p): Fix for the case that a vector of
5024 characters is in script-representative-chars.
5025
5026 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
5027
5028 * dbusbind.c (xd_in_read_queued_messages): New variable.
5029 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
5030 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5031 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5032 macro. (Bug#1186).
5033
5034 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
5035
5036 * s/sol2-10.h: New file.
5037
5038 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5039
5040 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5041 poor beast has survived 9+ years and the jump from xterm.c!).
5042
5043 2008-10-23 Martin Rudalics <rudalics@gmx.at>
5044
5045 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5046 Reword doc-string.
5047 (Fbury_buffer): In doc-string say what happens to the buffer's window.
5048
5049 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5050
5051 * character.c (syms_of_character) <script-representative-chars>:
5052 <unicode-category-table>: Doc fixes.
5053
5054 2008-10-23 Noah Friedman <friedman@splode.com>
5055
5056 * coding.c (make_conversion_work_buffer): Check that
5057 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5058 Fget_buffer_create.
5059
5060 2008-10-23 Kenichi Handa <handa@m17n.org>
5061
5062 * font.c (font_add_log): Check the values of extra properties.
5063
5064 2008-10-22 Martin Rudalics <rudalics@gmx.at>
5065
5066 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5067 Reword doc-string.
5068 (Fset_window_parameter): Use NILP.
5069 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
5070 (Frecenter): Use "selected" instead of "current" window in doc-strings.
5071
5072 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5073
5074 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5075
5076 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5077
5078 * nsfns.m (ns_appkit_version): New function.
5079 (x-server-version): Use it.
5080 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5081 (x-server-vendor): Don't check_ns().
5082
5083 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5084
5085 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5086
5087 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5088 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5089
5090 2008-10-22 Kenichi Handa <handa@m17n.org>
5091
5092 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5093 scripts.
5094
5095 * category.c (word_boundary_p): Check scripts instead of charset.
5096 Handle nil value in word-separating-categories and
5097 word-combining-categories.
5098 (syms_of_category): Fix docstrings of word-separating-categories
5099 and word-combining-categories.
5100
5101 2008-10-21 Eli Zaretskii <eliz@gnu.org>
5102
5103 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5104 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5105
5106 2008-10-21 Martin Rudalics <rudalics@gmx.at>
5107
5108 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5109 Rename arg "buffer" to "buffer_or_name".
5110 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5111 it optional.
5112 (no_switch_window): Remove since the return value is not used.
5113 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
5114 Consider window as dedicated when Fwindow_dedicated_p returns a
5115 non-nil value.
5116 * lisp.h: Remove prototype for no_switch_window.
5117
5118 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5119
5120 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
5121 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
5122
5123 2008-10-21 Kenichi Handa <handa@m17n.org>
5124
5125 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5126 check Vlatin_extra_code_table.
5127
5128 2008-10-20 Eli Zaretskii <eliz@gnu.org>
5129
5130 * fileio.c (Fset_file_modes): Doc fix.
5131
5132 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
5133
5134 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5135 in arrays.
5136
5137 2008-10-19 Martin Rudalics <rudalics@gmx.at>
5138
5139 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5140 Mention kill-buffer in doc-string.
5141 (Fset_window_buffer): Reinsert tem check removed in last commit.
5142 (Fenlarge_window, Fshrink_window): Have argument names and
5143 doc-string follow Elisp manual more closely.
5144
5145 2008-10-18 Eli Zaretskii <eliz@gnu.org>
5146
5147 * fileio.c (Fset_file_modes): Doc fix.
5148
5149 2008-10-18 Martin Rudalics <rudalics@gmx.at>
5150
5151 * window.c (Fwindow_width, Fset_window_start)
5152 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
5153 (Fdelete_windows_on, Freplace_buffer_in_windows):
5154 Make doc-strings follow code and Elisp manual more closely.
5155 (Fwindow_dedicated_p): Make window argument optional.
5156 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5157 (Fset_window_buffer): Respect any non-nil dedicated value for
5158 window. Rename "buffer" argument to "buffer_or_name".
5159
5160 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
5161
5162 * m/sh3.h: New file, machine description for SuperH.
5163
5164 2008-10-17 Martin Rudalics <rudalics@gmx.at>
5165
5166 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5167
5168 2008-10-17 Kenichi Handa <handa@m17n.org>
5169
5170 * ftfont.c (ftfont_otf_features): Fix indexing
5171 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5172
5173 2008-10-16 Magnus Henoch <mange@freemail.hu>
5174
5175 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5176 (Fdbus_call_method_asynchronously): Ditto.
5177 This change makes C-h f display the argument list.
5178
5179 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
5180
5181 * fileio.c (Fexpand_file_name): Doc fix.
5182
5183 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5184 of :foreground and :background equivalent to unspecified (20.x
5185 compatibility).
5186
5187 2008-10-15 Eli Zaretskii <eliz@gnu.org>
5188
5189 * buffer.c (syms_of_buffer): Doc fix.
5190
5191 2008-10-14 Kenichi Handa <handa@m17n.org>
5192
5193 * font.c (font_clear_prop): When clearing font width, clear the
5194 average width field too.
5195
5196 2008-10-12 Andreas Schwab <schwab@suse.de>
5197
5198 * ftfont.c (ftfont_shape_by_flt): Make static.
5199 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5200
5201 * font.c: Don't include <m17n-flt.h>.
5202
5203 2008-10-10 Eli Zaretskii <eliz@gnu.org>
5204
5205 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5206
5207 2008-10-09 Eli Zaretskii <eliz@gnu.org>
5208
5209 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5210 away code.
5211
5212 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
5213
5214 * dispnew.c (update_text_area): Avoid looping due to large glyph
5215 overhangs (bug#1070).
5216
5217 2008-10-09 Kenichi Handa <handa@m17n.org>
5218
5219 * fontset.c (face_for_char): If face->fontset is negative, just
5220 return ascii_face.
5221
5222 * font.c (font_delete_unmatched): Fix previous change.
5223 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
5224
5225 2008-10-09 Martin Rudalics <rudalics@gmx.at>
5226
5227 * frame.c (Fraise_frame): On text-only terminals select frame in
5228 order to make it visible. (Bug#1061)
5229
5230 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
5231
5232 * fontset.c (fontset_find_font): Check frame validity.
5233
5234 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
5235
5236 * gtkutil.c (xg_display_open): Reset default display if none exists.
5237 (xg_display_close): Allow Emacs to close all displays (bug#985).
5238
5239 2008-10-06 Andreas Schwab <schwab@suse.de>
5240
5241 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
5242
5243 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
5244
5245 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
5246
5247 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
5248
5249 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5250 during initialization.
5251
5252 2008-10-04 Eli Zaretskii <eliz@gnu.org>
5253
5254 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5255 whole thing on MSDOS frames as well as on a TTY.
5256
5257 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5258 well as for TTY.
5259 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5260 well as on a TTY.
5261
5262 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5263 as well as for TTY.
5264
5265 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5266
5267 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5268 MSDOS frames as well.
5269
5270 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5271
5272 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5273 correct arguments.
5274 * menu.c (find_and_return_menu_selection): Add cast.
5275
5276 2008-10-03 Glenn Morris <rgm@gnu.org>
5277
5278 * emacs.c (USAGE1): Add --daemon.
5279
5280 2008-10-02 Eli Zaretskii <eliz@gnu.org>
5281
5282 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5283 100, so it's in percents as advertised.
5284
5285 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5286
5287 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5288 (ns_output.current_cursor, ns_output.desired_cursor)
5289 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5290 (FRAME_NEW_CURSOR_COLOR): Remove.
5291
5292 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
5293 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
5294 enumeration (HOLLOW_BOX_CURSOR, etc.).
5295
5296 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5297 (draw_window_cursor): Simplify code.
5298 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5299 Don't change cursor type. In latter, call rehighlight instead of doing
5300 updates manually.
5301 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5302 Use core Emacs cursor types.
5303
5304 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
5305
5306 2008-10-02 Martin Rudalics <rudalics@gmx.at>
5307
5308 * process.c (Faccept_process_output): Fix doc-string.
5309
5310 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5311
5312 * gmalloc.c (__sbrk): Also define for uClibc.
5313
5314 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5315 for uClibc.
5316
5317 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5318
5319 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5320 styles.
5321 (nsfont_open): Reenable the cache.
5322
5323 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5324
5325 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5326 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5327
5328 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5329
5330 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5331 a suspended terminal.
5332
5333 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
5334
5335 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5336
5337 2008-09-30 Eli Zaretskii <eliz@gnu.org>
5338
5339 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5340
5341 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
5342
5343 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5344 in a continued line coincides with a line beginning.
5345
5346 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5347
5348 * nsfont.m (nsfont_trait_distance): Fix bug.
5349 (nsfont_list): Return a list rather than a vector (syncs with Handa
5350 changes of 2008-05-14).
5351 (nsfont_open): Improve logging.
5352
5353 2008-09-29 Andreas Schwab <schwab@suse.de>
5354
5355 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5356
5357 2008-09-28 Martin Rudalics <rudalics@gmx.at>
5358
5359 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5360 name as char-resolve-modifiers.
5361 Reported by: Markus Triska <markus.triska@gmx.at>
5362
5363 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5364
5365 * dispnew.c (init_display): Return earlier when running as a daemon.
5366
5367 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5368
5369 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5370
5371 2008-09-27 Eli Zaretskii <eliz@gnu.org>
5372
5373 * composite.c (Fcomposition_get_gstring)
5374 (Fcompose_region_internal, Fcompose_string_internal)
5375 (Ffind_composition_internal): Doc fix.
5376 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5377 (syms_of_composite) <auto-composition-function>: Doc fix.
5378 (syms_of_composite) <composition-function-table>: Doc fix.
5379
5380 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
5381
5382 * search.c (wordify): New argument for lax word-ends.
5383 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5384
5385 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5386
5387 * lisp.h (is_daemon): Declare.
5388 * dispnew.c (init_display): Do not try to initialize the terminal
5389 when running as a daemon.
5390
5391 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
5392
5393 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5394 x_display_pixel_height.
5395
5396 2008-09-22 Martin Rudalics <rudalics@gmx.at>
5397
5398 * undo.c (record_point): Don't call Fundo_boundary for first
5399 change. (Bug#731)
5400
5401 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
5402
5403 * emacs.c (Fdaemonp): Doc fix.
5404
5405 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5406
5407 * emacs.c (main): Place #ifdef in the proper place.
5408
5409 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5410
5411 * emacs.c (standard_args): Add --daemon.
5412 (main): Disconnect from the terminal when --daemon is passed.
5413 (is_daemon): New variable.
5414 (Fdaemonp): New function.
5415 (syms_of_emacs): Defsubr it.
5416
5417 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
5418
5419 * xdisp.c (get_next_display_element): Handle string display
5420 correctly when checking for the end of a box run.
5421
5422 2008-09-20 Glenn Morris <rgm@gnu.org>
5423
5424 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5425 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5426 (Frename_file): Avoid copying to trash if a rename involves
5427 a delete. (Bug#964).
5428
5429 2008-09-20 Eli Zaretskii <eliz@gnu.org>
5430
5431 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5432 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5433 frames as well as termcap frames.
5434 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5435 get_named_tty.
5436
5437 2008-09-19 Eli Zaretskii <eliz@gnu.org>
5438
5439 * process.c (procfs_system_process_attributes): Fix cmdline in
5440 case /proc/PID/cmdline is empty.
5441
5442 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5443 x_display_pixel_height.
5444
5445 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
5446
5447 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5448
5449 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5450 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5451
5452 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5453
5454 * dispextern.h (struct it): Move line_wrap away from the middle of
5455 bitfields. Move voffset in struct iterator_stack_entry after the
5456 bitfields. Move tab_width near after another short.
5457
5458 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5459
5460 * frame.h (struct frame): Move alpha from the middle of bitfields.
5461
5462 * window.h (struct window): Move frozen_window_start_p after the
5463 rest of the bitfields to reduce padding.
5464
5465 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
5466
5467 * xterm.h (x_display_info): Remove `height' and `width' members.
5468
5469 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5470
5471 * w32term.h (w32_display_info): Remove `height', `width',
5472 `height_in', and `width_in' members.
5473
5474 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5475 New functions.
5476 (x_calc_absolute_position): Use them.
5477 (x_term_init): Omit removed `height' and `width' members.
5478
5479 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5480 New functions.
5481 (w32_read_socket, x_calc_absolute_position): Use them.
5482 (w32_initialize_display_info, w32_term_init): Omit removed members
5483 of w32_display_info.
5484
5485 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5486 New functions.
5487 (ns_initialize_display_info): Omit removed members of ns_display_info.
5488
5489 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5490 New functions.
5491 (x_calc_absolute_position): Use them.
5492 (x_term_init): Omit removed `height' and `width' members.
5493
5494 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5495 (compute_tip_xy):
5496 * frame.c (x_fullscreen_adjust):
5497 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5498 x_display_pixel_width.
5499
5500 2008-09-18 Kenichi Handa <handa@m17n.org>
5501
5502 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5503 (composition_compute_stop_pos): Fix handling of static composition.
5504 (Fcomposition_get_gstring): Check FROM and TO at first.
5505
5506 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5507
5508 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
5509 mixup (YAILOM).
5510
5511 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
5512
5513 * indent.c (Fvertical_motion): Use position reported by iterator
5514 instead of PT for determining screen motion (bug#943).
5515
5516 2008-09-17 Romain Francoise <romain@orebokech.com>
5517
5518 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5519
5520 2008-09-17 Kenichi Handa <handa@m17n.org>
5521
5522 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5523
5524 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5525 if necessary.
5526
5527 2008-09-16 Kenichi Handa <handa@m17n.org>
5528
5529 * coding.c (make_conversion_work_buffer): Avoid calling
5530 Fget_buffer_create if it is not necessary.
5531
5532 2008-09-15 Martin Rudalics <rudalics@gmx.at>
5533
5534 * window.c (Fselect_window): Don't update window_select_count and
5535 use_time when norecord is not nil.
5536
5537 2008-09-14 Kenichi Handa <handa@m17n.org>
5538
5539 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5540 specpdl_ptr.
5541
5542 2008-09-12 Kenichi Handa <handa@m17n.org>
5543
5544 * indent.c (scan_for_column): Don't handle automatic composition
5545 if the current buffer is not associated with a window.
5546
5547 * composite.c (composition_reseat_it): If the current buffer is
5548 not associated with a window, ignore the automatic composition.
5549 (find_automatic_composition): Likewise.
5550
5551 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5552
5553 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5554 (Fgpm_mouse_stop): Use it.
5555 * termhooks.h (close_gpm): Declare.
5556 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5557 connection if Gpm_GetEvent fails.
5558
5559 * window.c (set_window_buffer): Always preserve current-buffer.
5560
5561 2008-09-12 Glenn Morris <rgm@gnu.org>
5562
5563 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5564
5565 2008-09-11 Glenn Morris <rgm@gnu.org>
5566
5567 * charset.c (charset-map-path): Doc fix.
5568
5569 2008-09-10 Kenichi Handa <handa@m17n.org>
5570
5571 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5572
5573 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5574 compose a grapheme cluster with the preceding base glyph.
5575
5576 * composite.c (composition_compute_stop_pos): Fix previous change.
5577 Reset cmp_it->id to -1 at first.
5578
5579 2008-09-10 Glenn Morris <rgm@gnu.org>
5580
5581 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5582
5583 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
5584
5585 * keyboard.c (read_key_sequence): Reapply translation maps when
5586 switching keyboards.
5587
5588 2008-09-09 Kenichi Handa <handa@m17n.org>
5589
5590 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5591 characters.
5592
5593 * composite.c (FORWARD_CHAR): Fix calculation
5594 of (POSITION).pos_byte.
5595 (composition_compute_stop_pos): Limit the search of composition to
5596 at most 500 characters ahead. If we reach the limit or find a
5597 newline, set cmp_it->ch to -2 and return 0.
5598 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5599
5600 2008-09-08 Kenichi Handa <handa@m17n.org>
5601
5602 * indent.c (Fvertical_motion): Be sure to set
5603 it_overshoot_expected if it.cmp_it.id is non-negative.
5604
5605 2008-09-07 Andreas Schwab <schwab@suse.de>
5606
5607 * callproc.c (Fcall_process): Don't hold references to string data
5608 across garbage collection. Move initialisation of new_argv down
5609 to avoid compiler bug.
5610
5611 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5612
5613 * process.c (Fsystem_process_attributes): Doc fix.
5614
5615 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
5616
5617 * callproc.c (Fcall_process): Canonicalize current directory name.
5618
5619 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5620 iterator advances to the next line if the current line ends in a
5621 continued tab.
5622
5623 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5624
5625 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5626 member to point to cmp_from.
5627
5628 * xdisp.c: Doc fix for references to gidx data member.
5629
5630 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5631
5632 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5633
5634 2008-09-07 Kenichi Handa <handa@m17n.org>
5635
5636 * composite.c (FORWARD_CHAR): Check STOP after
5637 incrementing (POSITION).pos.
5638
5639 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5640
5641 * process.c (Fsystem_process_attributes): Doc fix.
5642
5643 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
5644
5645 * keyboard.c (Ftop_level): Doc fix.
5646
5647 2008-09-06 Eli Zaretskii <eliz@gnu.org>
5648
5649 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5650 minibuffer, don't let lower part of menu invade the echo area.
5651
5652 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5653 "char *q" to access menu text and advance through it. Revert the
5654 change that displayed ">" instead of ASCII character 0x10.
5655
5656 2008-09-05 Eli Zaretskii <eliz@gnu.org>
5657
5658 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5659 toggle boxes and radio buttons on MS-DOS as well.
5660
5661 2008-09-05 Kenichi Handa <handa@m17n.org>
5662
5663 * composite.c (autocmp_chars): Check lookback count.
5664 (composition_compute_stop_pos): Set cmp_it->lookback.
5665 (composition_reseat_it): Check lookback count.
5666 (struct position_record): New struct.
5667 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5668 (find_automatic_composition): New function.
5669 (composition_adjust_point): Use find_automatic_composition.
5670
5671 * dispextern.h (struct composition_it): New member lookback.
5672
5673 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
5674
5675 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5676 if moving by a single line.
5677
5678 2008-09-02 Andreas Schwab <schwab@suse.de>
5679
5680 * xterm.c (x_delete_display): Fix merge error.
5681
5682 * fileio.c (Fexpand_file_name): Remove unused variables.
5683
5684 2008-09-02 Eli Zaretskii <eliz@gnu.org>
5685
5686 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5687 storage on all platforms, not just on DOS_NT.
5688
5689 2008-09-02 Jason Rumney <jasonr@gnu.org>
5690
5691 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5692 Ensure mouse is not grabbed after menu is finished.
5693
5694 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
5695
5696 * xfaces.c (Finternal_set_alternative_font_family_alist)
5697 (Finternal_set_alternative_font_registry_alist): Properly copy
5698 entire alist structure.
5699
5700 2008-09-01 Kenichi Handa <handa@m17n.org>
5701
5702 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
5703 representative chars of the script is a vector.
5704 (ftfont_list): Handle the case where the representative chars of
5705 the script is a vector.
5706
5707 * character.c (syms_of_character): Docstring of
5708 script-representative-chars fixed.
5709
5710 2008-08-31 Eli Zaretskii <eliz@gnu.org>
5711
5712 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5713 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5714 the menu. Allocate larger buffer for `text', to account for
5715 possible ^C characters.
5716
5717 2008-08-31 Martin Rudalics <rudalics@gmx.at>
5718
5719 * xdisp.c (prepare_menu_bars): Don't call
5720 Vwindow_size_change_functions with arg Qt.
5721
5722 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5723
5724 * font.h (font_range):
5725 * fileio.c (report_file_error):
5726 * composite.c (composition_update_it): Yet another int/Lisp_Object
5727 mixup (YAILOM).
5728
5729 2008-08-30 Glenn Morris <rgm@gnu.org>
5730
5731 * data.c (Fmake_variable_frame_local): Doc fix.
5732
5733 * frame.c (Fmodify_frame_parameters): Doc fix.
5734
5735 2008-08-30 Eli Zaretskii <eliz@gnu.org>
5736
5737 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5738 needed by GetTokenInformation.
5739 (w32_system_process_attributes): Check return values of all system
5740 APIs.
5741
5742 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5743 only when the state changes.
5744 (IT_update_begin, IT_update_end): Add termscript trace.
5745
5746 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5747 clipboard is unavailable. Set dst to NULL if it doesn't point to
5748 malloc'ed data.
5749 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5750 passing random values to xfree.
5751
5752 * dispnew.c (init_display): Set `tty's association in frame's
5753 parameters alist to the name of the terminal device, if that is known.
5754
5755 2008-08-29 Jason Rumney <jasonr@gnu.org>
5756
5757 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5758
5759 2008-08-29 Eli Zaretskii <eliz@gnu.org>
5760
5761 * composite.c (fill_gstring_body): Avoid compiler warnings.
5762
5763 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5764 LGLYPH_SET_CODE to avoid compiler warnings.
5765
5766 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
5767
5768 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5769
5770 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5771 LGLYPH_SET_CODE.
5772
5773 2008-08-29 Kenichi Handa <handa@m17n.org>
5774
5775 * fileio.c (report_file_error): Don't downcase the first character
5776 of errstring if it is still unibyte.
5777
5778 2008-08-29 Kenichi Handa <handa@m17n.org>
5779
5780 These changes are to re-implement the automatic composition so
5781 that it doesn't use text properties.
5782
5783 * Makefile.in (ftfont.o): Depend on composite.h.
5784 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5785
5786 * character.h (Vunicode_category_table): Extern it.
5787
5788 * character.c (Vunicode_category_table): New variable.
5789 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5790
5791 * chartab.c (optimize_sub_char_table): Perform more greedy
5792 optimization.
5793
5794 * composite.h (enum composition_method):
5795 Delete COMPOSITION_WITH_GLYPH_STRING.
5796 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5797 (Vcomposition_function_table): Extern it.
5798 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5799 (composition_gstring_put_cache, composition_gstring_from_id)
5800 (composition_gstring_p, composition_gstring_width)
5801 (composition_compute_stop_pos, composition_reseat_it)
5802 (composition_update_it, composition_adjust_point): Extern them.
5803 (Fcomposition_get_gstring): EXFUN it.
5804
5805 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
5806 (Vcomposition_function_table)
5807 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
5808 (gstring_hash_table, gstring_work, gstring_work_headers):
5809 New variables.
5810 (gstring_lookup_cache, composition_gstring_put_cache)
5811 (composition_gstring_from_id, composition_gstring_p)
5812 (composition_gstring_width, fill_gstring_header)
5813 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5814 (composition_reseat_it, composition_update_it)
5815 (composition_adjust_point, Fcomposition_get_gstring): New functions.
5816 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5817 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5818 Defsubr compostion_get_gstring.
5819
5820 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5821 cmp_id.
5822 (struct glyph_string): Delete the member gidx. New members
5823 cmp_id, cmp_from, and cmp_to.
5824 (enum it_method): Delete GET_FROM_COMPOSITION.
5825 (struct composition_it): New struct.
5826 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5827 Delete c, len, cmp_id, cmp_len in u.comp.
5828
5829 * font.h (enum lgstring_indices): Delete it.
5830 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
5831 (enum lglyph_indices): Likewise.
5832 (font_range): Adjust extern.
5833 (font_fill_lglyph_metrics): Extern it.
5834
5835 * font.c (QCf): New variable.
5836 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5837 (font_prepare_composition): Delete this function.
5838 (font_range): Type and arguments changed.
5839 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5840 (font_fill_lglyph_metrics): New function.
5841 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
5842 (syms_of_font): DEFSYM QCf. Delete defsubr for
5843 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5844 Defsubr Sfont_shape_gstring.
5845
5846 * fontset.h (font_for_char): Extern it.
5847
5848 * fontset.c (font_for_char): New function.
5849
5850 * ftfont.c: Include composite.h.
5851 (ftfont_resolve_generic_family): Add langset "en" to pattern.
5852 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5853
5854 * indent.c: Include composite.h and dispextern.h.
5855 (check_composition): Delete this function.
5856 (scan_for_column): Handle composition by
5857 composition_compute_stop_pos, composition_reseat_it, and
5858 composition_update_it.
5859 (compute_motion): Likewise.
5860 (Fvertical_motion): Fix checking of composition.
5861
5862 * keyboard.c (adjust_point_for_property): Check composition by
5863 composition_adjust_point.
5864
5865 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
5866 struct glyph_string.
5867
5868 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5869 (append_composite_glyph): Adjust for the change of struct it and
5870 struct glyph.
5871 (produce_composite_glyph): Likewise.
5872
5873 * w32term.c (x_draw_composite_glyph_string_foreground):
5874 Adjust for the change of struct glyph_string.
5875 (x_draw_glyph_string): Likewise.
5876
5877 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5878 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5879
5880 * xdisp.c: Include font.h.
5881 (it_props): Delete the entry for Qauto_composed.
5882 (init_iterator): Initialize it->cmp_it.id to -1.
5883 (compute_stop_pos): Call composition_compute_stop_pos.
5884 (face_before_or_after_it_pos): Adjust for the change of struct it.
5885 (handle_auto_composed_prop): Delete it.
5886 (handle_composition_prop): Handle only static composition.
5887 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5888 from xassert. Initialize it->cmp_it.stop_pos.
5889 (push_it): Adjust for the change of struct it.
5890 (pop_it): Likewise.
5891 (get_next_element): Delete next_element_from_composition.
5892 (CHAR_COMPOSED_P): New macro.
5893 (get_next_display_element): For automatic composition, get a face
5894 from the font in the glyph-string.
5895 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
5896 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
5897 (next_element_from_string): Check if the character at the current
5898 position is composed by CHAR_COMPOSED_P.
5899 (next_element_from_buffer): Likewise.
5900 (next_element_from_composition): Adjust for the change of struct it.
5901 Update it->cmp_it.
5902 (dump_glyph): Adjust for the change of struct glyph.
5903 (fill_composite_glyph_string): Adjust for the change of struct
5904 it and struct glyph. Don't handle automatic composition here.
5905 (fill_gstring_glyph_string): New function.
5906 (x_get_glyph_overhangs): Handle automatic composition.
5907 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
5908 (BUILD_GSTRING_GLYPH_STRING): New macro.
5909 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5910 automatic composition.
5911 (append_composite_glyph): Adjust for the change of struct it and
5912 struct glyph.
5913 (x_produce_glyphs): Adjust for the change of struct it.
5914
5915 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5916 the change of struct glyph_string.
5917 (x_draw_glyph_string): Likewise.
5918
5919 2008-08-29 Glenn Morris <rgm@gnu.org>
5920
5921 * buffer.c (word-wrap): Doc fix.
5922 * xdisp.c (truncate-partial-width-windows): Doc fix.
5923 Increase default to 50.
5924
5925 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
5926
5927 * xdisp.c (update_tool_bar_unwind): New function.
5928 (update_tool_bar): Temporarily set selected frame before building
5929 tool-bar items.
5930
5931 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
5932
5933 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5934 snprintf, respectively.
5935 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5936
5937 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
5938
5939 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5940 LDFLAGS to GNUstep CC invocation.
5941
5942 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
5943
5944 * indent.c (Fvertical_motion): Revert last change. Handle the
5945 general case where we are moving forward, and PT spans multiple
5946 screen lines.
5947
5948 * eval.c (find_handler_clause): Temporarily increase
5949 max-lisp-eval-depth while printing the backtrace buffer, to
5950 guarantee that help-mode code can run.
5951
5952 2008-08-27 Eli Zaretskii <eliz@gnu.org>
5953
5954 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5955 colors under -rv.
5956 (IT_set_frame_parameters): Don't swap foreground and background
5957 colors if `(reverse . t)' is present in the frame properties.
5958 (internal_terminal_init): Call init_frame_faces only for the
5959 initial frame.
5960
5961 2008-08-27 Andreas Schwab <schwab@suse.de>
5962
5963 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5964
5965 2008-08-27 Andreas Schwab <schwab@suse.de>
5966
5967 * search.c (search_buffer): Set char_base to zero only at the end.
5968
5969 2008-08-27 Kenichi Handa <handa@m17n.org>
5970
5971 * fileio.c (report_file_error): Fix handling of multibyte error string.
5972
5973 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5974
5975 * xterm.c (x_term_init): Temporarily hide the partially
5976 initialized terminal while calling vendor-specific-keysyms.
5977
5978 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5979
5980 * msdos.c (internal_terminal_init): Most initializations done only
5981 once, especially initial_screen_colors[] and termscript open.
5982
5983 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5984
5985 * eval.c (Fcondition_case): Doc fix.
5986
5987 * widgetprv.h (EmacsFramePart): Change font member to the new font
5988 struct.
5989
5990 * widget.c: Include character.h and font.h for XSETFONT.
5991 (setup_frame_gcs): Compute X font id from font struct, just once.
5992
5993 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5994
5995 * term.c (get_named_tty): Fix last change.
5996
5997 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5998
5999 * indent.c (Fvertical_motion): If moving forward starting from a
6000 multi-line string, move the iterator to the last line of that string.
6001
6002 2008-08-25 Eli Zaretskii <eliz@gnu.org>
6003
6004 * frame.c (do_switch_frame): Mark previously displayed frame as
6005 obscured for FRAME_MSDOS_P frames as well.
6006
6007 2008-08-24 Eli Zaretskii <eliz@gnu.org>
6008
6009 * frame.c (make_terminal_frame): Initialize f->terminal,
6010 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6011 Set the top frame to newly created frame.
6012 (Fmake_terminal_frame): Reuse the_only_display_info.
6013
6014 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6015 estimating available memory.
6016
6017 2008-08-23 David Reitter <david.reitter@gmail.com>
6018
6019 * nsterm.m (ns_draw_window_cursor): Don't call
6020 NSDisableScreenUpdates and NSEnableScreenUpdates on
6021 non-NS_IMPL_COCOA systems.
6022
6023 2008-08-23 Andreas Schwab <schwab@suse.de>
6024
6025 * process.c (procfs_system_process_attributes): Fix use of
6026 uninitialized variables.
6027
6028 2008-08-23 Eli Zaretskii <eliz@gnu.org>
6029
6030 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6031
6032 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6033 calling tty-set-up-initial-frame-faces.
6034
6035 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6036 Allow MSDOS frames along with X frames.
6037
6038 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6039 addition to output_termcap.
6040
6041 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6042
6043 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6044 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6045 highlight.
6046
6047 * process.c [!subprocesses]: Define QCname.
6048 (syms_of_process): Intern and staticpro it.
6049
6050 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6051 Adjust for changes in encoding/decoding routines.
6052 Use encode_coding_object and decode_coding_object instead of
6053 encode_coding and decode_coding.
6054
6055 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
6056
6057 * dosfns.c: Include frame.h before termhooks.h.
6058 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6059 variable termscript.
6060
6061 * s/msdos.h (USER_FULL_NAME): Define.
6062 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6063
6064 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6065 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6066 pw->pw_gecos.
6067
6068 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6069 SELECTED_FRAME as additional (1st) argument.
6070 (tty_read_avail_input): Handle output_msdos_raw in
6071 addition to output_termcap.
6072
6073 * msdos.c: Include frame.h before termhooks.h.
6074 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6075 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6076 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6077 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6078 (IT_set_terminal_modes, IT_reset_terminal_modes)
6079 (IT_set_frame_parameters): Use tty->termscript instead of a global
6080 variable termscript.
6081 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6082 global variable terminal_coding. Don't refer to
6083 Vnonascii_translation_table.
6084 (internal_terminal_init): Set Vwindow_system in current_kboard.
6085 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6086 Announce date and time of session start, if termscript is open.
6087 Don't zero out the_only_display_info (it is done in
6088 term.c:init_tty). Open termscript only of not already open.
6089 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
6090 here instead of dos_ttraw. Don't initialize display if this is an
6091 initial tty. Don't set FRAME_FONT.
6092 (Vwindow_system_version): Bump to 23.
6093 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6094 is available, set up mouse_position_hook.
6095 (dos_ttraw, IT_set_terminal_modes): If called with initial
6096 terminal, do nothing.
6097 (IT_set_frame_parameters): Handle the Qtty_type frame
6098 parameter by calling internal_terminal_init.
6099 (dos_set_window_size, show_mouse_face)
6100 (clear_mouse_face, IT_note_mode_line_highlight)
6101 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6102 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6103 (initialize_msdos_display): New function.
6104 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6105 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6106 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6107 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
6108 Accept additional argument: a pointer to a frame. Update all callers.
6109 (request_sigio, unrequest_sigio): Don't define, now defined on
6110 sysdep.c.
6111 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6112
6113 * term.c [MSDOS]: Include msdos.h.
6114 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6115 conditional to DOS_NT. Allow only one call to this function in a
6116 session. Don't allocate a new struct tty_display_info; instead,
6117 reuse the_only_display_info. Call get_tty_size to get screen
6118 dimensions. Call init_baud_rate to set bad_rate.
6119 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6120 (Fsuspend_tty) [MSDOS]: Don't close input and output.
6121 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
6122 (get_tty_terminal, get_named_tty, Ftty_type)
6123 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6124 output_termcap.
6125 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6126 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
6127 only when subprocesses are supported.
6128
6129 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6130 f->output_data.x.
6131 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6132 terminal devices.
6133
6134 * msdos.h: Remove definition of struct x_display_info and struct
6135 x_output.
6136 (FRAME_FONT): Use output_data.tty.
6137 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
6138 (struct x_display_info): Rename from display_info. Update all users in
6139 msdos.c.
6140 (struct x_output): Remove background_pixel and foreground_pixel.
6141 (the_only_display_info): Rename from the_only_x_display.
6142 (dos_ttraw): Update prototype.
6143
6144 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6145 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6146
6147 2008-08-23 Jason Rumney <jasonr@gnu.org>
6148
6149 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6150 (fn_TIFFSetDirectory): New library function used.
6151 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6152 (tiff_load): Use :index to select among multiple images. Set count
6153 property when multiple images exist.
6154 (gif_format): Use :index, not :image.
6155
6156 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
6157
6158 * xdisp.c (try_scrolling): Check INT_MAX instead of
6159 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6160 to obtain INT_MAX.
6161
6162 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6163
6164 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6165
6166 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6167
6168 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6169 GNUstep library location.
6170
6171 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
6172
6173 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6174 before using it.
6175
6176 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6177
6178 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6179
6180 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6181 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6182 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6183 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6184 (EmacsApp-cursor_blink_handler): Remove declaration.
6185 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6186 match 01 Feb 2008 changes in xterm.c.
6187 (ns_read_socket): Add cast to avoid warning.
6188 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6189 GNUstep.
6190
6191 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
6192
6193 * xselect.c (x_get_foreign_selection): Return nil if desired
6194 selection could not be obtained, instead of signalling an error.
6195
6196 2008-08-20 David Reitter <david.reitter@gmail.com>
6197
6198 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6199 * nsterm.m: Remove ns-specific code for cursor blinking.
6200 (ns_draw_window_cursor): Clear cursor properly rather than
6201 redrawing the area. Respect width of bar cursors.
6202 These changes enable the use of generic blink-cursor-mode and
6203 generic cursor types in NS and support smooth cursor movements (do
6204 not blink off after command).
6205 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6206 Nextstep, too.
6207
6208 2008-08-19 Kenichi Handa <handa@m17n.org>
6209
6210 * font.c (Vfont_log_deferred): New variable.
6211 (font_add_log): Check Vfont_log_deferred.
6212 (font_deferred_log): New function.
6213
6214 * font.h (font_deferred_log): Extern it.
6215
6216 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6217 for sorting.
6218 (face_for_char): Use deferred log.
6219
6220 2008-08-18 Kenichi Handa <handa@m17n.org>
6221
6222 * fontset.c (face_for_char): Add font log.
6223
6224 * font.c (font_add_log): Add the font properties :script, :lang,
6225 and :otf in the log.
6226
6227 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
6228
6229 * xdisp.c: Remove dead code.
6230 (handle_invisible_prop, next_overlay_string): Defer call to
6231 setup_for_ellipsis.
6232 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6233
6234 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * xfaces.c (lookup_derived_face): Properly handle possible zero
6237 return value of get_lface_attributes.
6238 (merge_faces): Don't tell lookup_derived_face to signal an error
6239 if face is not found.
6240
6241 * dired.c (Fdirectory_files): Doc fix.
6242
6243 * process.c (make_process): Initialize kill_without_query struct
6244 member.
6245
6246 2008-08-15 Eli Zaretskii <eliz@gnu.org>
6247
6248 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6249 Alternative calculation of totphys for Visual Studio 6.
6250
6251 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6252
6253 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6254 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6255 All users changed.
6256 (stat): Only root directory passed to GetDriveType. Allow RAM
6257 disk as well as local fixed disk when w32-get-true-file-attributes
6258 is set to `local'.
6259 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6260 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6261 (w32_cached_id, w32_add_to_cache): New functions.
6262 (get_name_and_id): Look account names in the cache before calling
6263 lookup_account_sid.
6264 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6265 New initialization flags.
6266 (globals_of_w32): Initialize them to zero.
6267 (w32_system_process_attributes): Use w32_cached_id and
6268 w32_add_to_cache.
6269
6270 2008-08-14 Lawrence Mitchell <wence@gmx.li>
6271
6272 * lread.c (Fread_char, Fread_char_exclusive): If no character
6273 event is read before timeout is reached, return nil, rather than
6274 converting to a number.
6275
6276 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
6277
6278 * fns.c (use_dialog_box): Doc fix.
6279
6280 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6281 on OS X.
6282
6283 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
6284
6285 * frame.c (Qns_parse_geometry): New var.
6286 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6287
6288 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
6289
6290 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6291 space character in calculating tabs.
6292
6293 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6294
6295 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6296
6297 2008-08-10 Glenn Morris <rgm@gnu.org>
6298
6299 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6300 silence gcc "limited range of data type" warnings in some
6301 make_fixnum_or_float calls.
6302
6303 2008-08-09 Eli Zaretskii <eliz@gnu.org>
6304
6305 * w32.c (w32_system_process_attributes): If the process does not
6306 exist, return nil.
6307
6308 * w32.c: Include thelp32.h, psapi.h and coding.h.
6309 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6310 declarations.
6311 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6312 (Process32Next_Proc): New typedefs.
6313 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6314 (g_b_init_process32_next, g_b_init_open_thread_token)
6315 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6316 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6317 (g_b_init_get_process_working_set_size)
6318 (g_b_init_global_memory_status_ex): New static variables.
6319 (globals_of_w32): Initialize them.
6320 (create_toolhelp32_snapshot, process32_first, process32_next)
6321 (open_thread_token, impersonate_self, revert_to_self)
6322 (get_process_memory_info, get_process_working_set_size)
6323 (global_memory_status, global_memory_status_ex): New wrapper
6324 functions.
6325 (w32_list_system_processes, w32_system_process_attributes)
6326 (enable_privilege, restore_privilege, ltime, process_times):
6327 New functions.
6328 (convert_time_raw): New function.
6329 (convert_time): Remove conversion of FILETIME into time in 100
6330 nsec units, call convert_time_raw instead.
6331
6332 * process.h (w32_list_system_processes, w32_system_process_attributes):
6333 Add prototypes.
6334 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6335 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6336 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6337 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6338
6339 * process.c (Fsystem_process_attributes): Doc fix.
6340
6341 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
6342
6343 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6344 a continued multi-char glyph; if so, advance to the actual glyph.
6345
6346 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6347
6348 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6349
6350 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6351 (.m.o): Use it.
6352 * config.in: Regenerate.
6353
6354 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
6355
6356 * xdisp.c (redisplay_window): Revert last change.
6357 (try_window): Check bottom scroll margin too.
6358
6359 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6360
6361 * config.in: Regenerate.
6362
6363 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6364 -list-load-path-shadows'.
6365 (nsgui.h): Reduce number of things depending on it.
6366
6367 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
6368
6369 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6370 instead of window-end which does the wrong thing at eob.
6371 (try_cursor_movement): Minor optimization.
6372 (redisplay_window): If scroll margin is defined, don't assume
6373 window doesn't need scrolling.
6374
6375 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6376
6377 * config.in: Regenerate.
6378
6379 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6380 (mostlyclean): Don't delete *.d under NS.
6381
6382 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6383
6384 2008-08-06 Kenichi Handa <handa@m17n.org>
6385
6386 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6387
6388 2008-08-06 Andreas Schwab <schwab@suse.de>
6389
6390 * config.in: Regenerate.
6391
6392 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
6393
6394 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6395 forcing a window start.
6396
6397 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6398 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6399
6400 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6401
6402 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6403 argument.
6404
6405 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
6406
6407 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6408 <scroll-down-aggressively, before-change-functions>:
6409 <after-change-functions>: Reflow docstrings.
6410
6411 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6412 Ken Raeburn <raeburn@gnu.org>
6413
6414 Dock menu customization, based on a patch by Ken Raeburn, plus some
6415 other fixes.
6416 * nsmenu.m (dockMenu): New variable.
6417 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6418
6419 * nsterm.h (dockMenu): Declare.
6420
6421 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6422 (ns_term_init): Initialize dockMenu.
6423 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6424 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6425 left.
6426
6427 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6428
6429 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6430
6431 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6432
6433 * config.in: Regenerate.
6434
6435 2008-08-04 Seiji Zenitani <zenitani@mac.com>
6436
6437 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6438
6439 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6440
6441 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6442
6443 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6444
6445 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6446
6447 * keyboard.h: Comment an #endif.
6448
6449 * lisp.h (have_menus_p): Adjust comment.
6450
6451 * menu.c (find_and_return_menu_selection): Fix comparison with
6452 client_data.
6453
6454 * nsmenu.m (popup_activated_flag): New variable.
6455 (popup_activated): New function.
6456 (menu-or-popup-active-p): New exported lisp definition.
6457 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6458 when popup done.
6459 (ns_popup_dialog): Set popup_activated_flag.
6460
6461 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6462 version for GNUstep (handled by conditional typedef in nsterm.m).
6463 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6464 in rgb.txt).
6465
6466 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6467
6468 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6469
6470 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6471
6472 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6473 shortcircuit if popup_activated like GTK and X toolkit.
6474
6475 * m/inter386.h: Change DARWIN to DARWIN_OS.
6476
6477 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6478 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6479 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6480 comment on NO_SOCK_SIGIO.
6481
6482 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
6483
6484 * nsterm.m (windowDidResize): Remove stopModal call.
6485
6486 2008-08-03 Andreas Schwab <schwab@suse.de>
6487
6488 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6489 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6490
6491 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
6492
6493 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6494 Don't use uninitialized pointer variable when using getrlimit.
6495
6496 2008-08-02 Jason Rumney <jasonr@gnu.org>
6497
6498 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6499
6500 2008-08-02 Eli Zaretskii <eliz@gnu.org>
6501
6502 * alloc.c (NSTATICS): Bump to 0x640.
6503
6504 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6505
6506 * lisp.h: Add prototype for directory_files_internal.
6507
6508 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6509 New functions.
6510 (syms_of_process): Defsubr them. Add initializations for various
6511 Q* symbols used in procfs_system_process_attributes.
6512 (procfs_list_system_processes, procfs_system_process_attributes)
6513 [HAVE_PROCFS]: New functions.
6514 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6515 (procfs_get_total_memory): New functions.
6516
6517 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6518
6519 * xfaces.c (Fx_load_color_file): Fix previous change;
6520 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6521
6522 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
6523
6524 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6525
6526 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6527
6528 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6529
6530 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
6531
6532 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6533
6534 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6535 define NSApplicationDelegateReplySuccess.
6536 (EmacsView -converstationIdentifier): Use long instead of
6537 NSInteger for GNUstep, since it doesn't have NSInteger.
6538
6539 * xmenu.c: Revert last change.
6540
6541 * keyboard.h: Fix last change.
6542
6543 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6544
6545 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6546 on Windows.
6547
6548 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6549
6550 Warning clearing and clean-up in NS port.
6551 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6552 Add prototypes.
6553 * nsgui.h (FACE_DEFAULT): Remove, unused.
6554 (XGCValues): Change colors to unsigned long.
6555 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6556 nsterm.m.
6557 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6558 (ns_list_fonts): Remove, unused.
6559 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6560 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6561 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6562 (nsfont_draw): Compare face colors to 0, not nil.
6563 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6564 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6565 (-addSubmenuWithTitle:): Use NSMenuItem class.
6566 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6567 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6568 (ns_clip_to_row): Make gc arg a BOOL.
6569 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6570 ns_clip_to_row() call.
6571 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6572 used). Cast FRAME_FONT assignments.
6573 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6574 (ns_string_to_lispmod): Change arg to const char.
6575 (ns_term_init): Use NSMenuItem class.
6576 (EmacsApp -openFile:): Move to different section of file.
6577 (EmacsApp -application:openFiles:): Don't return a value, call
6578 -replyToOpenOrPrint:.
6579 (EmacsView -keyDown:): Fix up cast.
6580 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6581 (EmacsView -menuDown:): Cast tag in call to
6582 find_and_call_menu_selection().
6583 (ns_list_fonts): Remove, unused.
6584 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6585 (ns_fontname_to_xlfd): Make static.
6586 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6587 Remove prototypes (now in keyboard.h).
6588 (next_menubar_widget_id): Remove, unused.
6589 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6590 Remove prototypes (now in keyboard.h).
6591 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6592
6593 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6594
6595 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6596 (floatfns.o): Depend on syssignal.h.
6597 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6598
6599 * systty.h: Fix previous change that removed BSD_TERMIOS.
6600 Add comments to #ifdefs.
6601
6602 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6603
6604 * w32fns.c (w32-load-color-file): Remove.
6605 (x-open-connection): Use renamed Fx_load_color_file.
6606 * xfaces.c (x-load-color-file): Add.
6607 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6608 Emacs.clr.
6609 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6610
6611 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
6612
6613 * dbusbind.c (Fdbus_call_method_asynchronously)
6614 (Fdbus_method_error_internal): New defuns.
6615 (xd_read_message): Handle also reply messages.
6616 (Vdbus_registered_functions_table): Extend docstring.
6617
6618 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
6619
6620 * keyboard.c (gobble_input): Fix previous change.
6621
6622 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6623
6624 * bitmaps/README:
6625 * xfns.c:
6626 * termcap.c:
6627 * term.c:
6628 * syswait.h:
6629 * systty.h:
6630 * systime.h:
6631 * syssignal.h:
6632 * sysdep.c:
6633 * process.h:
6634 * process.c:
6635 * print.c:
6636 * ndir.h:
6637 * lread.c:
6638 * keyboard.c:
6639 * getpagesize.h:
6640 * floatfns.c:
6641 * fileio.c:
6642 * emacs.c:
6643 * doc.c:
6644 * dispnew.c:
6645 * dired.c:
6646 * data.c:
6647 * callproc.c:
6648 * buffer.c:
6649 * README:
6650 * Makefile.in:
6651 * s/template.h:
6652 * s/msdos.h:
6653 * m/vax.h: Remove VMS support.
6654 * s/vms.h:
6655 * vlimit.h:
6656 * uaf.h:
6657 * temacs.opt:
6658 * param.h:
6659 * ioctl.h: Remove file.
6660
6661 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6662
6663 * s/ms-w32.h (MULTI_KBOARD): Remove.
6664 * xterm.c:
6665 * xselect.c:
6666 * xfns.c:
6667 * window.c:
6668 * w32term.c:
6669 * w32fns.c:
6670 * terminal.c:
6671 * termhooks.h:
6672 * term.c:
6673 * sysdep.c:
6674 * keyboard.h:
6675 * keyboard.c:
6676 * frame.h:
6677 * frame.c:
6678 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6679 * config.in: Regenerate.
6680
6681 2008-07-30 Jason Rumney <jasonr@gnu.org>
6682
6683 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6684
6685 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6686 (w32font_open_internal): Get unicode version of textmetrics.
6687 Don't enable or disable glyph indices here.
6688 (w32font_open): Disable use of glyph indices.
6689
6690 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6691
6692 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
6693
6694 * minibuf.c (Vread_buffer_function): Doc fix.
6695
6696 2008-07-30 John Paul Wallington <jpw@pobox.com>
6697
6698 * minibuf.c (read_buffer_completion_ignore_case): New var.
6699 (Fread_buffer): Use it.
6700
6701 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6702
6703 * systty.h (sensemode): Remove empty #if. Remove reference to
6704 BSD_TERMIOS, unused.
6705
6706 * sysdep.c: Remove reference to DGUX.
6707 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6708
6709 * config.in: Regenerate.
6710
6711 2008-07-30 Jason Rumney <jasonr@gnu.org>
6712
6713 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6714
6715 2008-07-29 Jason Rumney <jasonr@gnu.org>
6716
6717 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6718 is populated.
6719 (uniscribe_encode_char): Always use uniscribe.
6720 Avoid using context if cache is populated.
6721
6722 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6723
6724 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6725 open menu.
6726
6727 * gtkutil.c (menu_nav_ended): Remove.
6728 (create_menus): Remove signal connect for menu_nav_ended.
6729
6730 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
6731
6732 * xdisp.c (redisplay_window): Check return value of
6733 compute_window_start_on_continuation_line before forcing a window
6734 start.
6735
6736 2008-07-28 Jason Rumney <jasonr@gnu.org>
6737
6738 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6739
6740 * w32term.c (w32_enable_unicode_output, cleartype_active):
6741 Remove obsolete display options.
6742 (x_draw_glyph_string_background): Don't use old cleartype_active
6743 workaround.
6744 (w32_initialize): Remove cleartype_active initialization.
6745 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6746
6747 2008-07-28 Andreas Schwab <schwab@suse.de>
6748
6749 * lisp.h (init_weak_hash_tables, syms_of_font)
6750 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6751 (remove_hash_entry): Don't declare.
6752 * eval.c (maybe_call_debugger): Make static and move before use.
6753 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6754 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6755 * xterm.h (x_set_frame_alpha): Declare.
6756
6757 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6758
6759 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6760 (create_menus): Connect selection-done to menu_nav_ended.
6761
6762 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6763
6764 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6765 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6766 parameter with read of 'alpha' one.
6767 (Qns_frame_parameter): Remove.
6768 * nsselect.m (selection-coding-system)
6769 (next-selection-coding-system, Vselection_coding_system)
6770 (Vnext_selection_coding_system): Drop.
6771
6772 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6773
6774 * nsfns.m (do-applescript, do_applescript): Rename to
6775 ns-do-applescript, ns_do_applescript, and move within file.
6776
6777 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6778
6779 Remove support for Mac Carbon.
6780 * mactoolbox.c:
6781 * macterm.h:
6782 * macterm.c:
6783 * macselect.c:
6784 * macmenu.c:
6785 * macgui.h:
6786 * macfns.c:
6787 * mac.c: Remove file.
6788 * s/darwin.h:
6789 * m/intel386.h:
6790 * xfaces.c:
6791 * xdisp.c:
6792 * window.c:
6793 * tparam.c:
6794 * termhooks.h:
6795 * termcap.c:
6796 * term.c:
6797 * syssignal.h:
6798 * sysselect.h:
6799 * sysdep.c:
6800 * process.c:
6801 * lread.c:
6802 * lisp.h:
6803 * keyboard.c:
6804 * image.c:
6805 * fringe.c:
6806 * frame.h:
6807 * frame.c:
6808 * fontset.c:
6809 * font.h:
6810 * font.c:
6811 * fns.c:
6812 * fileio.c:
6813 * emacs.c:
6814 * dispnew.c:
6815 * dispextern.h:
6816 * config.in:
6817 * atimer.c:
6818 * Makefile.in: Remove code for Carbon.
6819
6820 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6821
6822 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6823
6824 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6825
6826 * macterm.h (kCGBitmapByteOrder32Host): New define for
6827 non-universal SDKs.
6828
6829 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6830 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6831
6832 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6833 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6834
6835 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6836
6837 * w32inevt.c: Include dispextern.h.
6838
6839 2008-07-26 Andreas Schwab <schwab@suse.de>
6840
6841 * print.c (print_object): Fix off-by-one in last change.
6842
6843 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
6844
6845 * term.c (syms_of_term): Don't initialize default_orig_pair,
6846 default_set_foreground and default_set_background on Windows.
6847
6848 2008-07-25 Jason Rumney <jasonr@gnu.org>
6849
6850 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6851 ScriptItemize. Clean up return value checking. Remove unused
6852 variables.
6853 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6854 shaping engine.
6855
6856 * w32font.c (w32font_has_char): Handle the case where we can't
6857 determine the script for a character.
6858
6859 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6860
6861 * term.c (syms_of_term): Initialize default_orig_pair,
6862 default_set_foreground, and default_set_background.
6863
6864 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6865 clash (bug#86).
6866 (getloadavg): Callers changed.
6867
6868 * image.c (svg_load_image): Fix last change.
6869 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6870 image size is valid. Use g_object_unref instead of deprecated
6871 rsvg_handle_free to free rsvg handle.
6872 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6873
6874 2008-07-25 Jason Rumney <jasonr@gnu.org>
6875
6876 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6877 surrogates before looking up glyph index.
6878 (w32font_text_extents): Encode as surrogates if falling back to
6879 functions that need UTF-16 wide chars.
6880
6881 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6882 BMP as surrogates before looking up glyph index.
6883
6884 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6885
6886 * image.c (svg_load_image): Check for failure in return value of
6887 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6888
6889 2008-07-25 Jason Rumney <jasonr@gnu.org>
6890
6891 * w32font.c (Fx_select_font): Reverse sense of second arg.
6892
6893 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6894
6895 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6896 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6897
6898 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6899 (PURESIZE): Use it.
6900
6901 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6902
6903 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6904 * m/alpha.h (TEXT_END):
6905 * m/ibmrs6000.h (TEXT_END):
6906 * m/macppc.h (TEXT_END):
6907 * s/darwin.h (TEXT_END):
6908 * s/msdos.h (TEXT_END): Remove, unused.
6909 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6910 * s/cygwin.h: Remove comment.
6911
6912 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6913 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6914 * m/intel386.h (DOT_GLOBAL_START):
6915 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6916 (USG): Remove, file not used on USG platforms.
6917
6918 * Makefile.in (HAVE_X11): Remove empty #else.
6919
6920 2008-07-24 Andreas Schwab <schwab@suse.de>
6921
6922 * fileio.c (Finsert_file_contents): Properly adjust undo list
6923 after format conversion.
6924
6925 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6926
6927 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6928 (menu_nav_ended): Remove.
6929 (create_menus): Remove signal connect for menu_nav_ended.
6930 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6931 create_menus.
6932 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6933
6934 2008-07-23 Jason Rumney <jasonr@gnu.org>
6935
6936 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6937 with opened font.
6938 (w32font_open): Set font type to gdi.
6939
6940 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6941
6942 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6943
6944 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6945 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6946 defines it.
6947 * unexec.c (ADDR_CORRECT): Define unconditionally.
6948
6949 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6950
6951 * unexec.c: Remove code depending on !COFF and USG, the file is
6952 not used for such systems.
6953
6954 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6955 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6956 (LD_SWITCH_SYSTEM_1): Remove, update users.
6957
6958 * s/darwin.h (DATA_END):
6959 * m/intel386.h (DATA_END):
6960 * m/ibmrs6000.h (DATA_END):
6961 * m/alpha.h (DATA_END): Remove, unused.
6962
6963 * config.in: Regenerate.
6964 * s/ms-w32.h (subprocesses): Define unconditionally.
6965 * s/template.h (subprocesses): Update comment.
6966 * s/vms.h (subprocesses):
6967 * s/usg5-4.h (subprocesses):
6968 * s/hpux10-20.h (subprocesses):
6969 * s/gnu-linux.h (subprocesses):
6970 * s/cygwin.h (subprocesses):
6971 * s/bsd-common.h (subprocesses):
6972 * s/aix4-2.h (subprocesses):
6973 * s/darwin.h (subprocesses): Do not define, defined by default now.
6974
6975 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6976 Remove all references.
6977 (temacs): Add GNUstep specific ld flags.
6978
6979 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6980 similarly to what X does.
6981
6982 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6983
6984 * nsfns.m (x-list-fonts): Remove.
6985 (syms_of_nsfns): Drop the x-list-fonts declaration.
6986 * nsterm.m: Get rid of remaining "//" comments.
6987
6988 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
6989
6990 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6991
6992 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6993 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6994 (Fns_own_selection_internal, Fx_disown_selection_internal)
6995 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6996
6997 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6998 ... */' style of docstrings. Doc fixes.
6999
7000 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7001
7002 * terminfo.c (UP, BC, PC): Undo previous change.
7003
7004 * nsfns.m: Rename ns prefixed functions/variables to the
7005 corresponding x versions. Update references.
7006
7007 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7008
7009 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7010
7011 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7012
7013 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7014 Remove forwarding functions.
7015 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7016 non-static.
7017 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7018 non-static.
7019 (ns_frame_parm_handlers): Use the new names.
7020 (syms_of_nsfns): Move to the end of file.
7021
7022 * nsterm.m (syms_of_nsterm): Move to the end of file.
7023
7024 * dispnew.c (init_display): Remove code for X10.
7025
7026 2008-07-22 Jason Rumney <jasonr@gnu.org>
7027
7028 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7029 bare drive.
7030
7031 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7032
7033 * nsterm.m (syms_of_nsterm): Remove debugging println.
7034
7035 2008-07-22 David Reitter <david.reitter@gmail.com>
7036
7037 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7038 Carbon implementation of the same functionality: execute arbitrary
7039 AppleScript code.
7040
7041 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7042
7043 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7044 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7045 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7046 (Fx_display_mm_height, Fx_display_mm_width)
7047 (Fx_display_backing_store, Fx_display_visual_class)
7048 (Fx_display_save_under, Fx_open_connection)
7049 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7050 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7051 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7052 (Fx_display_pixel_width, Fx_display_pixel_height)
7053 (Fx_display_usable_bounds, Fx_display_planes)
7054 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7055 ... */' style of docstrings.
7056
7057 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7058
7059 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7060 on this platform.
7061 (mips):
7062 * m/iris4d.h (mips): Do not define.
7063 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7064
7065 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7066
7067 * image.c:
7068 * nsfns.m:
7069 * nsselect.m:
7070 * nsterm.h:
7071 * nsterm.m: Rename ns prefixed functions/variables to the
7072 corresponding x versions. Update references.
7073
7074 * m/ibms390x.h (NO_REMAP): Do not undefine.
7075
7076 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7077
7078 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
7079
7080 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7081 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7082 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7083 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7084 (Fns_display_mm_height, Fns_display_mm_width)
7085 (Fns_display_backing_store, Fns_display_visual_class)
7086 (Fns_display_save_under, Fns_open_connection)
7087 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7088 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7089 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7090 (Fns_display_pixel_width, Fns_display_pixel_height)
7091 (Fns_display_usable_bounds, Fx_display_planes)
7092 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7093
7094 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7095
7096 * print.c (print_object): Check print_depth before searching for
7097 circularities.
7098
7099 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
7100
7101 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7102 only sprintf.
7103
7104 2008-07-21 Kenichi Handa <handa@m17n.org>
7105
7106 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7107
7108 2008-07-20 Andreas Schwab <schwab@suse.de>
7109
7110 * syntax.c (find_start_pos, find_start_value)
7111 (find_start_value_byte, find_start_begv, find_defun_start)
7112 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7113
7114 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7115
7116 * s/sol2-3.h: Insert contents of s/sol2.h.
7117 (LD_SWITCH_SYSTEM): Remove redundant definition.
7118 * s/sol2.h: Remove, unused.
7119
7120 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7121
7122 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7123
7124 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7125
7126 * Makefile.in (ns_appdir): Fix typo in find command.
7127
7128 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7129
7130 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7131
7132 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7133 added not supported anymore.
7134
7135 * s/usg5-4-2.h (LIBS_SYSTEM):
7136 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7137
7138 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7139 * s/lynxos.h (GETPGRP_NO_ARG):
7140 * s/hpux10-20.h (NO_SIOCTL_H):
7141 * s/gnu.h (GETPGRP_NO_ARG):
7142 * s/gnu-linux.h (NO_SIOCTL_H):
7143 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7144 * s/cygwin.h (GETPGRP_NO_ARG):
7145 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7146 (C_DEBUG_SWITCH): Remove duplicate definition.
7147
7148 * m/ibms390.h: Remove boilerplate comments.
7149
7150 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7151
7152 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7153 (wait_reading_process_output): Remove code for SunOS, platform not
7154 supported anymore. Use SOLARIS2 instead of sun.
7155
7156 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7157
7158 * font.c (font_open_by_name): Under NS, default lface height to zero.
7159 (font_open_for_lface): Under NS, set size based on frame fontsize.
7160 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7161 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7162
7163 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7164
7165 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7166 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7167 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7168 YES/NO.
7169 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7170 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7171 * Makefile.in (clean): Clear out build destination dir.
7172
7173 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7174
7175 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7176 xterm, xselect.
7177 * lisp.h: Remove declaration of hash_remove.
7178 * nsgui.h: Remove redefinitions of hash_remove.
7179 * fns.c (hash_remove): Rename to hash_remove_from_table.
7180
7181 2008-07-19 Seiji Zenitani <zenitani@mac.com>
7182
7183 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7184 strdup() the family UTF8String before modifying it.
7185
7186 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7187
7188 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7189 NS_FACE_BACKGROUND with 0 instead of nil.
7190 * nsfont.m (nsfont_draw): Same.
7191
7192 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
7193
7194 * nsfns.m (ns_set_background_color): Fix crash.
7195
7196 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7199
7200 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7201
7202 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7203
7204 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7205
7206 * gtkutil.c: Include <config.h> instead of "config.h".
7207
7208 * lisp.h (Foverlay_buffer): Add EXFUN.
7209
7210 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7211 child process to complete child_setup. Undo 2005-09-21 change.
7212
7213 * s/darwin.h: Mention setsid after vfork.
7214
7215 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7216
7217 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7218 Depend on macgui.h.
7219
7220 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7221 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7222
7223 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7224 and f19.
7225 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7226
7227 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7228 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7229 Remove enumerators.
7230
7231 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7232 Check if FACE_FROM_ID returns NULL.
7233
7234 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7235
7236 * w32inevt.c (change_frame_size): Remove extern declaration.
7237 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7238 change_frame_size.
7239
7240 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7241
7242 * getloadavg.c: Revert last change (2008-07-15).
7243
7244 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7245
7246 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
7247 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
7248 from configure.
7249
7250 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7251
7252 * s/sol2.h:
7253 * s/sol2-4.h: Reorganize conditionals.
7254
7255 * ecrt0.c: Remove code depending on m68000, not used anymore.
7256
7257 * fns.c (hash_remove): Make static.
7258 * lisp.h (hash_remove): Don't prototype.
7259
7260 * m/ibmrs6000.h:
7261 * m/ibms390x.h:
7262 * m/macppc.h: Remove boilerplate comments.
7263
7264 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7265 Solaris, which does not need them.
7266
7267 * m/vax.h: Remove comments about unsupported systems.
7268
7269 * s/darwin.h: Reorganize ifdefs.
7270
7271 2008-07-17 Andreas Schwab <schwab@suse.de>
7272
7273 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7274
7275 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7276
7277 Use SDATA. Follow coding convention of placing operators at
7278 beginning of next line rather than end of previous line, and placing
7279 spaces around infix operators.
7280
7281 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7282 in case it was defined already.
7283 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7284 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7285 ns_default.
7286 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7287 Lisp_Objects.
7288 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7289 (ns_defined_color, ns_color_to_lisp): Declare.
7290 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7291 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7292 it's accepted even with USE_LISP_UNION_TYPE.
7293 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7294 (update_frame_tool_bar): Remove apparently obsolete tests for
7295 non-integerness of f->tool_bar_lines.
7296 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7297 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7298 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7299 (nsfont_open): Don't confuse NULL for Qnil.
7300 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7301 * menu.h (find_and_call_menu_selection):
7302 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7303 (find_and_return_menu_selection): Always return something.
7304 * frame.h: Include dispextern.h for Display_Info.
7305 (display_x_get_resource): Declare.
7306
7307 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7308
7309 * syntax.c: Remove stdio.h include accidentally introduced in
7310 Emacs.app commit.
7311 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7312 NS_IMPL_COCOA.
7313 * keyboard.c (handle_async_input, input_available_signal): Remove
7314 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7315
7316 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7317
7318 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7319 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7320 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7321 Use SDATA.
7322
7323 * keymap.c: Remove all NS-specific code.
7324 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7325 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7326 where_is_preferred_modifier, return a different value depending on how
7327 preferred is the binding.
7328 (where_is_internal): Adjust accordingly.
7329 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7330 Adjust to new preferred_sequence_p.
7331 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7332 * keyboard.c (parse_solitary_modifier): Not static any more.
7333 * keyboard.h (parse_solitary_modifier): Declare.
7334
7335 2008-07-16 Andreas Schwab <schwab@suse.de>
7336
7337 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7338 of easymenu.
7339
7340 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
7341
7342 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7343 that we don't move off the line.
7344
7345 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7346
7347 * keyboard.c (Qsuper): Remove.
7348 (parse_menu_item): Don't call where_is_internal specially for NS.
7349
7350 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7351
7352 * s/gnu-linux.h: Remove boilerplate comments.
7353
7354 * m/alpha.h (__ELF__): Consolidate conditions.
7355
7356 * m/m68k.h (linux): Use GNU_LINUX instead.
7357 Remove boilerplate comments.
7358
7359 * m/intel386.h: Undo refactoring from previous change.
7360 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7361 too, remove dead code.
7362 (linux): Use GNU_LINUX instead.
7363
7364 2008-07-16 Jason Rumney <jasonr@gnu.org>
7365
7366 * w32gui.h: Repeat 26 June changes lost by last change.
7367
7368 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7369
7370 * systty.h: Remove code for Aix on 386, unsupported platform.
7371
7372 * s/ms-w32.h: Remove boilerplate comments.
7373 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7374
7375 * s/gnu-linux.h (TERM): Remove support.
7376 (HAVE_SYSVIPC): Remove, unused.
7377 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7378 for this system.
7379
7380 * process.c: Remove support for IRIS, unused.
7381 Remove support for TERM, not relevant anymore.
7382
7383 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7384 used with the definition.
7385
7386 * s/aix4-2.h (static): Do not undef.
7387
7388 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7389 only used on Aix.
7390 (HAVE_SYSVIPC): Remove, unused.
7391
7392 * m/hp800.h (CANNOT_DUMP): Do not undef.
7393
7394 * m/alpha.h: Fix comment.
7395
7396 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7397 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7398 used by this configuration.
7399 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7400 * unexec.c: Remove code depending on HPUX and
7401 USG_SHARED_LIBRARIES, not used with this file. Remove code
7402 depending on IRIS, unused. Remove if 0-ed code.
7403
7404 * s/template.h: Remove comments about static.
7405
7406 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7407 Remove if 0-ed code.
7408 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7409 were the same as the default.
7410 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7411 Remove boilerplate comments.
7412 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7413 (HAVE_SYSVIPC): Remove, unused.
7414 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7415
7416 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7417 Remove boilerplate comments.
7418 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7419 Remove boilerplate comments.
7420 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7421 Remove boilerplate comments.
7422 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7423
7424 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7425 USG systems which do not use DATA_SEG_BITS.
7426 Refactor code. Remove boilerplate comments.
7427
7428 * m/ibms390.h:
7429 * m/m68k.h:
7430 * s/bsd-common.h:
7431 * s/cygwin.h:
7432 * s/darwin.h:
7433 * s/freebsd.h:
7434 * s/gnu.h:
7435 * s/msdos.h: Remove boilerplate comments.
7436
7437 * m/iris4d.h: Remove boilerplate comments and code for systems that
7438 do not use this file.
7439 (IRIS_4D): Remove, unused.
7440
7441 * m/mips.h: Remove boilerplate comments and code for systems that
7442 do not use this file.
7443 (SIGN_EXTEND_CHAR):
7444 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7445 * unexmips.c: Remove file, unused.
7446
7447 * editfns.c (Fuser_full_name): Replace the only use of
7448 USER_FULL_NAME with its value.
7449 * config.in: Regenerate.
7450
7451 2008-07-16 David Reitter <david.reitter@gmail.com>
7452
7453 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7454 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7455
7456 2008-07-16 Glenn Morris <rgm@gnu.org>
7457
7458 * emacs.c (system-type): Doc fix.
7459
7460 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7461
7462 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7463 If the cache doesn't work, let's fix it, rather than work around it.
7464
7465 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7466
7467 * Makefile.in: Correct additions for nsfont.o in last commit.
7468 * nsfont.m: New file (forgot last commit).
7469
7470 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7471
7472 * callproc.c (set_initial_environment): Initialize
7473 Vprocess_environment under CANNOT_DUMP (fixes crash when
7474 batch-compiling for bootstrap).
7475
7476 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7477 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7478
7479 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7480 fix crash due to different init order.
7481
7482 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7483
7484 Changes and additions for NeXTstep windowing system (Cocoa and
7485 GNUstep) support.
7486
7487 * Makefile.in:
7488 * config.in: Support defines and build commands for NS port.
7489 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7490 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7491 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7492 windowing.
7493 (struct face): Add synth_ital field.
7494 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7495 (init_display): Initialize Vinitial_window_system to "ns" when so
7496 compiled.
7497 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7498 (display_arg): Use under NS.
7499 (main): Under NS, allocate autorelease pool and handle command line
7500 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7501 (standard_args): Add NS-specific args.
7502 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7503 * font.c (DEFAULT_ENCODING): New variable.
7504 (font_find_for_lface): Use it.
7505 (syms_of_font): Load syms_of_nsfont under NS.
7506 * font.h: Declare nsfont_driver when compiled under NS.
7507 * fontset.c: When compiling under NS, include nsterm.h.
7508 (fontset_from_font): Autoconstruct fontset under NS.
7509 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7510 symbol, document and use it.
7511 (do_switch_frame): When for_deletion under Cocoa, add
7512 Fraise_frame(Qnil).
7513 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7514 (x_get_arg): Allow "yes" and "no" as boolean values.
7515 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7516 Qright under Cocoa.
7517 (focus-follows-mouse): Default to 0 under NS.
7518 * frame.h (enum output_method): Add output_ns.
7519 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7520 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7521 (FRAME_WINDOW_P): NS-specific definition.
7522 * fringe.c (max_used_fringe_bitmap): Make public.
7523 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7524 (getloadavg): Use NeXT code under descendant OS's.
7525 * image.c (includes and header section, x_create_bitmap_from_data)
7526 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7527 (image_background_transparent, x_clear_image_1)
7528 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7529 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7530 (x_to_xcolors, x_from_xcolors, x_disable_image)
7531 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7532 other GUIs, including XPM support using code originally written for
7533 Carbon GUI.
7534 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7535 using NS API.
7536 (image_ascent): Use font metrics macros instead of direct struct field
7537 access.
7538 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7539 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7540 Also, handle NS as GTK for menu bar purposes.
7541 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7542 toolkit where they differ.
7543 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7544 use cachelist, still needed under NS.
7545 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7546 (struct widget_value): Define it here for menu.c.
7547 * keymap.c (includes): Include modifier internals.
7548 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7549 NS.
7550 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7551 support for preferring sequences using certain modifiers, specified by
7552 the FIRSTONLY argument.
7553 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7554 under NS GNUstep implementation.
7555 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7556 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7557 * menu.c: Include nsterm.h under NS.
7558 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7559 (free_menubar_widget_tree_value, update_submenu_strings)
7560 (find_and_call_menu_selection): Treat NS as X and NT.
7561 (find_and_return_menu_selection): New function, used for popup menus.
7562 * nsgui.h:
7563 * nsterm.h:
7564 * nsfns.m:
7565 * nsimage.m:
7566 * nsmenu.m:
7567 * nsselect.m:
7568 * nsterm.m: New files.
7569 * process.c (wait_reading_process_output): Under NS, call ns_select()
7570 instead of plain select().
7571 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7572 beginning of buffer.
7573 * sysselect.h (init_process): Rename when compiling under Cocoa to
7574 avoid name conflict.
7575 * termhooks.h (display_info): Add ns_display_info to union.
7576 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7577 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7578 COCOA environment.
7579 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7580 unexec() signature. (Note, this will dump, but the resulting file
7581 crashes; unexosx is used instead; keeping around for reference and
7582 possible aid in getting dump working under GNUstep.)
7583 * w32gui.h (button_type, widget_value): Remove definitions (now in
7584 keyboard.h).
7585 * window.c: Include nsterm.h when compiling under NS.
7586 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7587 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7588 other GUI windowing systems.
7589 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7590 GTK.
7591 (x_consider_frame_title): Under NS, set icon type and frame
7592 modified-state indicator; use ns_set_name_as_filename() when using
7593 formatted title.
7594 (update_window_cursor): Make public when compiling under NS.
7595 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7596 (hourglass_atimer, Vhourglass_delay
7597 * xfaces.c (header section, init_frame_faces, clear_font_table)
7598 (defined_color, unload_color, x_face_list_fonts)
7599 (prepare_face_for_display): Add NS support parallel to other GUIs.
7600 Emulate GCs like other non-X GUIs.
7601 (split_font_name): Don't lowercase font name under NS.
7602 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7603 under NS.
7604 * s/darwin.h: Add support for compilation under NS.
7605
7606 2008-07-15 Jason Rumney <jasonr@gnu.org>
7607
7608 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7609 (w32_show_hourglass): Rename from show_hourglass.
7610 (w32_hide_hourglass): Rename from hide_hourglass.
7611 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7612 (Vhourglass_delay): Declare extern.
7613 (hourglass_started): Remove.
7614
7615 * xdisp.c (Vhourglass_delay): Remove static.
7616 (hourglass_started, start_hourglass, cancel_hourglass):
7617 Don't include these versions on WINDOWSNT.
7618
7619 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7620
7621 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7622 variables (formerly in xfns.c).
7623 (show_hourglass, hide_hourglass): New prototypes (same).
7624 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7625 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7626 in xfns.c).
7627 (syms_of_xdisp): Declare/initialize display-hourglass,
7628 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7629 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7630 formerly in xfns.c.
7631 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7632 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7633 (start_hourglass, cancel_hourglass): Remove.
7634 (show_hourglass, hide_hourglass): Remove prototypes and static
7635 modifiers.
7636 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7637 hourglass_atimer, hourglass_shown_p declaration/initialization.
7638 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7639 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7640 (start_hourglass, cancel_hourglass): Remove.
7641 (show_hourglass, hide_hourglass): Remove prototypes and static
7642 modifiers.
7643 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7644 hourglass_atimer, hourglass_shown_p declaration/initialization.
7645 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7646 (DEFAULT_HOURGLASS_DELAY): Remove.
7647 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7648 hourglass_shown_p declaration/initialization.
7649
7650 2008-07-14 Jason Rumney <jasonr@gnu.org>
7651
7652 * w32fns.c (w32_get_arg): Remove wrapper function.
7653 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7654 directly.
7655 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7656
7657 2008-07-14 Kenichi Handa <handa@m17n.org>
7658
7659 * xfont.c (xfont_open): Add workaround for X's bug.
7660
7661 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7662
7663 * fontset.c: Include <stdio.h> unconditionally.
7664
7665 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
7666
7667 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7668 for filtering.
7669
7670 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7671
7672 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7673
7674 * m/macppc.h:
7675 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7676
7677 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7678 (SPECIAL_EMACS_INT):
7679 * m/ia64.h (SPECIAL_EMACS_INT):
7680 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7681 * s/gnu.h (NLIST_STRUCT):
7682 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7683 * s/gnu-linux.h (LINUX):
7684 * s/msdos.h (HAVE_FACES):
7685 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7686
7687 * systty.h:
7688 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7689 anymore.
7690
7691 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7692
7693 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7694 always defined as int.
7695
7696 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7697 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7698 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7699 * s/freebsd.h (HAVE_WAIT_HEADER):
7700 * s/bsd-common.h (HAVE_UNION_WAIT):
7701 * s/aix4-2.h (HAVE_WAIT_HEADER):
7702 * m/mips.h (HAVE_UNION_WAIT):
7703 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7704 (COFF, static): Do not define, they are undefined later in the file.
7705
7706 * process.c (update_status): Don't use a union.
7707 (status_convert):
7708 (sigchld_handler): Use int instead of WAITTYPE.
7709
7710 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
7711
7712 * indent.c (Fvertical_motion): Restore hscroll before moving to
7713 goal column.
7714
7715 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7716
7717 * lisp.h: Remove left over code.
7718
7719 2008-07-11 Andreas Schwab <schwab@suse.de>
7720
7721 * lisp.h: Fix logic in last change.
7722
7723 * menu.h: New file.
7724 * menu.c: Include it.
7725 * xmenu.c: Likewise.
7726 * Makefile.in: Update dependencies.
7727
7728 2008-07-11 Kenichi Handa <handa@m17n.org>
7729
7730 * fontset.c (fontset_from_font): Cancel the previous change.
7731
7732 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7733
7734 * lisp.h:
7735 * w32heap.c:
7736 * emacs.c:
7737 * alloc.c: Replace all references of NO_UNION_TYPE with
7738 USE_LISP_UNION_TYPE.
7739
7740 * m/xtensa.h (NO_UNION_TYPE):
7741 * m/vax.h (NO_UNION_TYPE):
7742 * m/template.h (NO_UNION_TYPE):
7743 * m/sparc.h (NO_UNION_TYPE):
7744 * m/mips.h (NO_UNION_TYPE):
7745 * m/macppc.h (NO_UNION_TYPE):
7746 * m/m68k.h (NO_UNION_TYPE):
7747 * m/iris4d.h (NO_UNION_TYPE):
7748 * m/intel386.h (NO_UNION_TYPE):
7749 * m/ibms390x.h (NO_UNION_TYPE):
7750 * m/ibms390.h (NO_UNION_TYPE):
7751 * m/ibmrs6000.h (NO_UNION_TYPE):
7752 * m/ia64.h (NO_UNION_TYPE):
7753 * m/hp800.h (NO_UNION_TYPE):
7754 * m/arm.h (NO_UNION_TYPE):
7755 * m/amdx86-64.h (NO_UNION_TYPE):
7756 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7757 defining it the same.
7758
7759 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
7760
7761 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7762
7763 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7764
7765 * fileio.c:
7766 * sysdep.c
7767 * systty.h:
7768 * m/ibmrs6000.h:
7769 * m/iris4d.h:
7770 * s/aix4-2.h:
7771 * s/freebsd.h:
7772 * s/gnu-linux.h:
7773 * s/hpux10-20.h:
7774 * s/hpux11.h:
7775 * s/netbsd.h:
7776 * s/sol2-3.h:
7777 * s/sol2-4.h:
7778 * s/sol2.h:
7779 * s/usg5-4.h:
7780 * s/vms.h: Remove references to unused variables.
7781
7782 2008-07-10 Andreas Schwab <schwab@suse.de>
7783
7784 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7785 pattern before matching the generic family.
7786
7787 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7788
7789 * unexec.c:
7790 * s/vms.h:
7791 * s/usg5-4-2.h:
7792 * s/sol2-5.h:
7793 * s/freebsd.h:
7794 * s/darwin.h: Remove dead code.
7795
7796 * m/template.h:
7797 * m/sparc.h:
7798 * m/mips.h:
7799 * m/m68k.h:
7800 * m/iris4d.h:
7801 * m/intel386.h:
7802 * m/ibms390x.h:
7803 * m/ibms390.h:
7804 * m/ia64.h:
7805 * m/hp800.h:
7806 * m/arm.h:
7807 * m/amdx86-64.h: Remove dead code and references to unused
7808 and compiler defined symbols.
7809
7810 * unexmips.c:
7811 * unexelf.c: Remove references to desupported systems.
7812
7813 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7814
7815 * m/powermac.h: Remove boilerplate comments.
7816 (NO_REMAP): Remove unused definition.
7817
7818 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7819 define them.
7820
7821 2008-07-10 Kenichi Handa <handa@m17n.org>
7822
7823 * xfont.c (xfont_open): Log the reason of failure.
7824
7825 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7826
7827 * fontset.c (fontset_get_font_group):
7828 * font.c (font_check_otf): Specify argument types.
7829
7830 2008-07-09 Kenichi Handa <handa@m17n.org>
7831
7832 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7833 non-ASCII char is found.
7834
7835 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7836 (reorder_font_vector): Change the arg preferred_family to font.
7837 Prefer the spec matching with font.
7838 (fontset_get_font_group): New function.
7839 (fontset_find_font): Change the format of an element of a realized
7840 fontset. Use fontset_get_font_group.
7841 (fontset_font): Try the current fontset, the default fontset, the
7842 fallbacks of the current fontset, and the fallbacks of the default
7843 fontset in this order.
7844 (face_for_char): Delete the shortcut to use the current font.
7845 (fontset_from_font): Don't set fonts for Latin in the fontset.
7846
7847 * font.h (font_make_object, font_match_p): Adjust prototypes.
7848
7849 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7850
7851 * font.c (font_make_object): New arg entity and pixelsize.
7852 (font_check_otf_features, font_check_otf): New functions.
7853 (font_match_p): Check :lang, :script, and :otf properties.
7854
7855 * xfont.c (xfont_open): Adjust it for the change of
7856 font_make_object.
7857 (xfont_text_extents): Fix initial setting of metrics.
7858
7859 * ftfont.c (struct ftfont_info): New member index, delete member
7860 fc_charset_idx. Make the member order compatible with struct
7861 xftfont_info.
7862 (fc_charset_table): Change charset names to registry names.
7863 (ftfont_pattern_entity): Delete the args registry and
7864 fc_charset_idx. Change the value of :font-entity property
7865 to (FONTNAME . INDEX). Always set :registry property to
7866 `iso10646-1'.
7867 (struct ftfont_cache_data): New struct.
7868 (ftfont_lookup_cache): New arg for_face.
7869 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7870 (ftfont_driver): Set the member otf_capability.
7871 (ftfont_get_charset): Adjust it for the change of
7872 fc_charset_table.
7873 (OTF_TAG_SYM): New macro.
7874 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7875 for the change of fc_charset_table.
7876 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7877 ftfont_pattern_entity. Add FC_INDEX to objset.
7878 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7879 and ftfont_pattern_entity.
7880 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7881 font_make_object, struct ftfont_info.
7882 (ftfont_has_char): Use ftfont_get_fc_charset.
7883 (ftfont_otf_features, ftfont_otf_capability): New functions.
7884 (ftfont_shape): Use ftfont_get_otf.
7885 (ftfont_text_extents): Fix initial setting of metrics.
7886
7887 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7888 member order compatible with struct ftfont_info.
7889 (xftfont_open): Add FC_CHARSET to the pattern. Set
7890 xftfont_info->ft_size. Don't unlock the face. Check BDF
7891 properties if appropriate.
7892 (xftfont_close): Unlock the face.
7893 (xftfont_anchor_point, xftfont_shape): Deleted.
7894 (syms_of_xftfont): Don't set members anchor_point and shape of
7895 xftfont_driver.
7896
7897 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7898 font_make_object.
7899
7900 * w32font.c (w32font_open): Adjust it for the change of
7901 font_make_object.
7902 (w32font_open_internal): Don't set properties of font_object here.
7903
7904 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
7905
7906 * macfns.c (x_create_tip_frame):
7907 * w32fns.c (x_create_tip_frame):
7908 * xfns.c (x_create_tip_frame): Pass parameter argument to
7909 face-set-after-frame-default.
7910
7911 * xfaces.c (Finternal_merge_in_global_face): Save merged
7912 attributes for the default face back into the face vector.
7913
7914 2008-07-08 Andreas Schwab <schwab@suse.de>
7915
7916 * fontset.h: Declare fontset_from_font. Don't declare
7917 new_fontset_from_font and fontset_from_font_name.
7918 * xterm.c: Include "fontset.h".
7919 * Makefile.in (xterm.o): Update dependencies.
7920
7921 2008-07-08 Glenn Morris <rgm@gnu.org>
7922
7923 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7924 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7925
7926 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
7927
7928 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7929 (x_set_frame_parameters): Don't bind it.
7930
7931 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
7932
7933 * w32fns.c (map_w32_filename): Declare extern.
7934
7935 2008-07-07 Jason Rumney <jasonr@gnu.org>
7936
7937 * w32term.c (WS_EX_LAYERED): Define if not already.
7938
7939 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
7940
7941 * xfaces.c (set_font_frame_param): Don't try to set the font
7942 parameter if it is still unspecified in the lface.
7943
7944 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7945
7946 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7947 face if it didn't already exist.
7948
7949 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7950
7951 2008-07-05 Andreas Schwab <schwab@suse.de>
7952
7953 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7954
7955 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7956
7957 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7958 word-wrapping.
7959 (IT_DISPLAYING_WHITESPACE): New macro.
7960 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7961 when word-wrapping. Simplify word-wrapping logic. Use correct
7962 pixel positions when saving copies of the iterator.
7963 (display_line): Use proper wrap point if the last character on a
7964 line was preceded by whitespace.
7965
7966 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7967
7968 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7969
7970 2008-07-04 Kenichi Handa <handa@m17n.org>
7971
7972 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7973
7974 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7975
7976 2008-07-02 Jason Rumney <jasonr@gnu.org>
7977
7978 * xfns.c (syms_of_xfns): Only define x-select-font when both
7979 HAVE_FREETYPE and USE_GTK.
7980
7981 * xdisp.c (next_element_from_display_vector): Move assignment out
7982 of if statement.
7983
7984 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7985
7986 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7987
7988 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7989 (syms_of_fileio): Initialize and export them.
7990 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7991
7992 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7993 (Fsystem_move_file_to_trash): New function.
7994 (syms_of_w32fns): Export it to lisp.
7995
7996 2008-07-01 Jason Rumney <jasonr@gnu.org>
7997
7998 * w32font.c (w32font_text_extents): Don't count overhang as part
7999 of width.
8000
8001 2008-06-30 Miles Bader <miles@gnu.org>
8002
8003 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8004 Add `avoid_cursor_p' field.
8005
8006 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8007 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8008 (append_glyph, append_composite_glyph, produce_image_glyph)
8009 (append_stretch_glyph): Initialize avoid_cursor_p.
8010 (get_it_property): Rename from `get_line_height_property'.
8011 (x_produce_glyphs): Use get_it_property.
8012 (handle_line_prefix, push_display_prop): New functions.
8013 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8014 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8015 New variables.
8016 (syms_of_xdisp): Initialize them.
8017
8018 2008-06-30 Kenichi Handa <handa@m17n.org>
8019
8020 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8021 XftDefaultSubstitute (they are called in XftFontMatch).
8022 (xftfont_open): Fix args to ftfont_font_format.
8023
8024 * ftfont.c (fc_charset_table): New member lang.
8025 (ftfont_resolve_generic_family): New arg pattern.
8026 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
8027 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8028 (ftfont_open): Fix args to ftfont_font_format.
8029 (ftfont_font_format): New arg filename.
8030
8031 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
8032
8033 * xfaces.c (Finternal_merge_in_global_face): If default face was
8034 modified, realize it again. Update the font face attribute.
8035
8036 2008-06-29 Jason Rumney <jasonr@gnu.org>
8037
8038 * w32term.c (x_set_frame_alpha): Fix logic.
8039
8040 2008-06-29 Kenichi Handa <handa@m17n.org>
8041
8042 * fontset.c (Finternal_char_font): Return font-object instead of
8043 font-name.
8044
8045 * composite.c (get_composition_id): Fix the width calculation for TAB.
8046
8047 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8048
8049 * indent.c (Fvertical_motion): Properly handle float column arg.
8050
8051 2008-06-28 Jason Rumney <jasonr@gnu.org>
8052
8053 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8054 (pfnSetLayeredWindowAttributes): New function pointer.
8055 (w32_initialize): Initialize it when supported.
8056 (x_set_frame_alpha): New function.
8057
8058 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8059 (w32_frame_parm_handlers): Set alpha handler.
8060
8061 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8062
8063 2008-06-27 Jason Rumney <jasonr@gnu.org>
8064
8065 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8066 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8067 (w32_to_x_charset, x_to_w32_charset)
8068 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8069 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8070 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8071 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8072 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8073 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8074 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8075 (Qw32_charset_unicode): Remove.
8076 (syms_of_w32fns): Update for above changes.
8077
8078 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8079 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8080 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8081 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8082 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8083 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8084 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8085 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8086 (syms_of_w32font): Update for above changes.
8087
8088 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8089
8090 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8091 removed #if.
8092 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8093
8094 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8095 Eli Zaretskii <eliz@gnu.org>
8096
8097 * makefile.w32-in (LOCAL_FLAGS):
8098 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8099
8100 * sysdep.c (_spawnlp, _getpid):
8101 Declare with explicit _cdecl instead of _CRTAPI1.
8102
8103 * editfns.c (Fget_internal_run_time):
8104 Check for WINDOWSNT with #ifdef, not #if.
8105
8106 2008-06-26 Jason Rumney <jasonr@gnu.org>
8107
8108 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8109
8110 * w32term.c (x_draw_glyph_string_foreground)
8111 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8112 Use FONT_HANDLE macro.
8113 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8114
8115 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8116 (uniscribe_encode_char): Use FONT_HANDLE macro.
8117
8118 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8119 (w32font_text_extents): Use precast w32_font.
8120 (w32font_close): Free cached metrics.
8121 (w32font_open_internal): Allocate space for name on stack.
8122
8123 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
8124
8125 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8126
8127 2008-06-26 Jason Rumney <jasonr@gnu.org>
8128
8129 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8130 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8131
8132 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8133
8134 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8135
8136 2008-06-26 Jason Rumney <jasonr@gnu.org>
8137
8138 * w32bdf.c, w32bdf.h: Remove obsolete files.
8139
8140 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8141
8142 * w32gui.h: Don't include w32bdf.h.
8143 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8144 Remove obsolete font support.
8145
8146 * w32font.h (struct w32font_info): Remove compat_w32_font.
8147 Add hfont member.
8148 (FONT_COMPAT): Remove obsolete macro.
8149
8150 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8151 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8152 (w32font_open_internal): Remove compat code. Set new hfont member.
8153 (Fx_select_font): Use new hfont member.
8154
8155 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8156 (uniscribe_encode_char): Use new hfont member.
8157
8158 * w32term.c (x_draw_glyph_string_foreground)
8159 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8160 (x_draw_glyph_string): Use metrics in w32font_info.
8161
8162 2008-06-26 Kenichi Handa <handa@m17n.org>
8163
8164 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8165
8166 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8167
8168 * unexnext.c:
8169 * m/ews4800.h:
8170 * m/hp9000s300.h:
8171 * m/ibm370aix.h:
8172 * m/mips-siemens.h:
8173 * m/ncr386.h:
8174 * m/next.h:
8175 * m/pmax.h:
8176 * m/powerpcle.h:
8177 * m/tandem-s2.h:
8178 * s/386bsd.h:
8179 * s/bsd386.h:
8180 * s/bsd4-1.h:
8181 * s/bsd4-2.h:
8182 * s/bsdos2-1.h:
8183 * s/bsdos2.h:
8184 * s/bsdos3.h:
8185 * s/bsdos4.h:
8186 * s/nextstep.h:
8187 * s/ultrix4-3.h:
8188 * s/usg5-0.h:
8189 * s/usg5-2-2.h:
8190 * s/usg5-2.h:
8191 * s/usg5-4-3.h:
8192 * s/ux4800.h:
8193 * s/uxpds.h:
8194 * s/uxpv.h: Remove support for obsolete systems.
8195 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8196 Remove, insert contents in s/hpux10-20.h.
8197 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8198 Remove, insert contents in s/aix4-2.h.
8199 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8200 * s/bsd4-3.h: Rename to ...
8201 * s/bsd-common.h: ... this.
8202 * data.c:
8203 * doc.c:
8204 * ecrt0.c:
8205 * emacs.c:
8206 * fileio.c:
8207 * floatfns.c:
8208 * keyboard.c:
8209 * mem-limits.h:
8210 * print.c:
8211 * process.c:
8212 * sysdep.c:
8213 * syssignal.h:
8214 * systty.h:
8215 * syswait.h:
8216 * term.c:
8217 * unexec.c:
8218 * unexelf.c:
8219 * unexhp9k800.c:
8220 * m/hp800.h:
8221 * m/ibmrs6000.h:
8222 * m/mips.h:
8223 * m/vax.h:
8224 * s/darwin.h:
8225 * s/freebsd.h:
8226 * s/gnu.h:
8227 * s/ms-w32.h:
8228 * s/msdos.h:
8229 * s/netbsd.h:
8230 * s/template.h: Remove references to obsolete variables.
8231
8232 * Makefile.in: Add dependencies for all unexec files.
8233 (admindir): Remove unused variable.
8234 (UNEXEC_SRC): Remove references.
8235
8236 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
8237
8238 * xfns.c (x_default_font_parameter): If Xft is available, first
8239 try Monospace-12 for the default font.
8240
8241 2008-06-25 Jason Rumney <jasonr@gnu.org>
8242
8243 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8244
8245 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8246
8247 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8248
8249 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8250
8251 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
8252
8253 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8254 <scroll-conservatively>: Fix typo in docstring.
8255
8256 * xselect.c (Fx_send_client_event): Doc fix.
8257
8258 2008-06-25 Kenichi Handa <handa@m17n.org>
8259
8260 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8261
8262 * font.c (font_parse_fcname): Remove unused variables.
8263 (font_sort_entites): Delete the arg SPEC. Caller changed.
8264 Fix for the case of ! best_only.
8265 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8266
8267 * lisp.h (Fstring_to_unibyte): EXFUN it.
8268
8269 * character.h (str_to_unibyte): Extern it.
8270
8271 * character.c (str_to_unibyte): New function.
8272
8273 * fns.c (Fstring_to_unibyte): New function.
8274 (syms_of_fns): Defsubr it.
8275
8276 2008-06-24 Kenichi Handa <handa@m17n.org>
8277
8278 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8279 DPI too.
8280 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8281
8282 2008-06-24 Andreas Schwab <schwab@suse.de>
8283
8284 * Makefile.in (${lispsource}loaddefs.el): Rename from
8285 ../lisp/loaddefs.el.
8286 (bootstrap-clean): Do what distclean does but don't remove
8287 Makefile.
8288 (distclean): Depend on bootstrap-clean and remove Makefile.
8289
8290 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
8291
8292 * buffer.h (struct buffer): New member word_wrap.
8293
8294 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8295 word-wrap.
8296 (init_buffer_once): Initialize them.
8297
8298 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8299 line_wrap enum possessing three possible values.
8300
8301 * termopts.h: Replace truncate_partial_width_windows with
8302 Vtruncate_partial_width_windows.
8303
8304 * dispnew.c (direct_output_for_insert): Avoid direct output when
8305 inserting a space with word wrap on.
8306
8307 * indent.c (compute_motion): Obey integer values of
8308 truncate-partial-width-windows.
8309
8310 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8311 replacing truncate_partial_width_windows.
8312 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8313 truncate only if the window width is below that integer.
8314 (start_display, resize_mini_window, produce_stretch_glyph)
8315 (display_string, move_it_in_display_line_to): Use line_wrap.
8316 (back_to_previous_visible_line_start, reseat_1): Reset
8317 string_from_display_prop_p.
8318 (display_line): Extend default face to end of line when wrapping.
8319
8320 2008-06-24 Kim F. Storm <storm@cua.dk>
8321
8322 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8323 to wrap continued lines at word boundaries.
8324
8325 2008-06-24 Jason Rumney <jasonr@gnu.org>
8326
8327 * font.c (Ffont_face_attributes): Multiply pixel size before point
8328 conversion to avoid multiplying rounding error.
8329
8330 2008-06-23 Jason Rumney <jasonr@gnu.org>
8331
8332 * w32term.c (x_draw_glyph_string_background)
8333 (x_draw_glyph_string): Remove old bdf font code.
8334
8335 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8336
8337 2008-06-22 Kenichi Handa <handa@m17n.org>
8338
8339 * font.c (font_find_for_lface): Try the adstyle specified in
8340 the property of LFACE_FONT of LFACE (if any).
8341
8342 2008-06-21 Seiji Zenitani <zenitani@mac.com>
8343 Ryo Yoshitake <ryo@shiftmode.net>
8344
8345 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8346
8347 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8348
8349 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8350 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8351 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8352 (witness-emacs): Remove.
8353 (lisp, shortlisp): Move loaddefs.el earlier.
8354 (mostlyclean): Forget about witness-emacs.
8355
8356 2008-06-22 Glenn Morris <rgm@gnu.org>
8357
8358 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8359 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8360
8361 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8362
8363 * Makefile.in (PRECOMP): Remove.
8364 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8365 (witness-emacs): Run `compile-first'.
8366 (.el.elc): Use the new compile-onefile target.
8367
8368 2008-06-21 Kenichi Handa <handa@m17n.org>
8369
8370 * xftfont.c (xftfont_open): Handle QCembolden only when
8371 FC_EMBOLDEN is defined.
8372
8373 2008-06-21 Andreas Schwab <schwab@suse.de>
8374
8375 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8376 (.el.elc): Likewise.
8377
8378 2008-06-21 Miles Bader <miles@gnu.org>
8379
8380 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8381 build dir, not the lisp source dir.
8382
8383 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8384
8385 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8386 (bootstrapclean): Remove.
8387 (.el.elc): New rule.
8388 (PRECOMP): New var.
8389 (../lisp/subdirs.el): Remove.
8390 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8391 (witness-emacs): New target.
8392 (mostlyclean): Remove witness-emacs as well.
8393 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8394 Add witness-emacs dependency.
8395
8396 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
8397
8398 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8399 defined by the font.
8400
8401 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8402
8403 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8404 (bootstrap-clean): New target that keeps TAGS around.
8405 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8406 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8407
8408 2008-06-20 Jason Rumney <jasonr@gnu.org>
8409
8410 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8411 Remove obsolete font code.
8412
8413 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8414 to determine language support.
8415
8416 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8417
8418 * sysdep.c (cfsetspeed): New fun extracted from the code.
8419 (cfmakeraw): Move before first use.
8420
8421 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8422
8423 * sysdep.c (cfmakeraw): Provide fallback implementation.
8424 (serial_configure): Provide fallback implementation of cfsetspeed.
8425
8426 2008-06-20 Kenichi Handa <handa@m17n.org>
8427
8428 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8429 the pattern.
8430
8431 * fontset.c (fontset_from_font): Copy font_spec before changing
8432 the elements.
8433
8434 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8435
8436 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8437
8438 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8439 for explicit `font' parameters.
8440
8441 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8442
8443 2008-06-19 Kenichi Handa <handa@m17n.org>
8444
8445 * frame.c: Include <ctype.h>.
8446 (x_set_font_backend): Allow spacing characters in the X resource
8447 for FontBackend.
8448
8449 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8450
8451 * w32fns.c, xfns.c (Qfont_param): New var.
8452 (syms_of_w32fns): Initialize it.
8453 (x_default_font_parameter): Record explicit `font' into
8454 `font-parameter'.
8455
8456 2008-06-18 Kenichi Handa <handa@m17n.org>
8457
8458 * font.c (font_parse_xlfd): Fix previous change.
8459 (font_parse_fcname): Don't use :fc-unknown-spec.
8460 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8461 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8462 (font_add_log): Prepend the driver name to the resulting fonts.
8463
8464 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8465 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8466 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8467
8468 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8469 (QCembolden): New variables.
8470 (syms_of_xftfont): DEFSYM them.
8471 (xftfont_open): Call XftFontMatch. Don't trust the result of
8472 XftTextExtents8 if the pixel_size is less than 5.
8473
8474 2008-06-18 Andreas Schwab <schwab@suse.de>
8475
8476 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8477 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8478
8479 2008-06-18 Jason Rumney <jasonr@gnu.org>
8480
8481 * w32font.c (w32font_list, w32font_match): Add logging.
8482
8483 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8484
8485 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
8486
8487 * font.c (font_parse_fcname): Store divider characters for
8488 unknown-spec list. For known key symbols, intern using correct
8489 symbol name.
8490
8491 2008-06-17 Kenichi Handa <handa@m17n.org>
8492
8493 * xfaces.c (realize_default_face): If the frame is not on window
8494 system, set the fontset of face to nil.
8495
8496 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8497
8498 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8499
8500 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8501
8502 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8503 (build_font_name_from_vector): Delete externs.
8504
8505 * xfaces.c (struct font_name): Don't declare.
8506
8507 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8508
8509 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8510
8511 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8512
8513 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8514
8515 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8516
8517 * font.c (Ffont_spec): Fix usage in docstring.
8518 (Ffont_face_attributes): Doc fix.
8519
8520 2008-06-16 Andreas Schwab <schwab@suse.de>
8521
8522 * font.c (Ffont_face_attributes): Fix definition.
8523
8524 2008-06-16 Jason Rumney <jasonr@gnu.org>
8525
8526 * font.h (font_style_symbolic_from_value): Remove.
8527
8528 * font.c (font_style_symbolic_from_value): Remove.
8529 (font_style_symbolic): Revert to pre 2008-06-13 version.
8530
8531 * w32font.c (w32_to_fc_weight): New function.
8532 (w32font_full_name, logfont_to_fcname): Use it.
8533
8534 2008-06-16 Kenichi Handa <handa@m17n.org>
8535
8536 * font.c (font_check_object): Delete it.
8537 (font_clear_cache): Check if a font-object is alive.
8538 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8539 font-object to nil.
8540 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8541 (font_at): Don't call font_check_object.
8542 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8543
8544 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8545
8546 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8547
8548 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8549
8550 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8551
8552 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
8553
8554 * font.c (font_parse_fcname): Only one decimal point.
8555 (font_unparse_fcname): Handle data in family and foundry indices
8556 as symbols, not strings.
8557 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8558
8559 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8560
8561 * font.h (font_unparse_gtkname): Add prototype.
8562
8563 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8564
8565 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8566
8567 2008-06-15 Andreas Schwab <schwab@suse.de>
8568
8569 * font.c (font_update_drivers): Fix crash when no drivers match.
8570
8571 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8572
8573 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8574 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8575
8576 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8577
8578 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8579
8580 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8581
8582 * process.c (Fserial_process_configure, Fprocess_send_eof):
8583 Use EQ to compare Lisp_Objects.
8584
8585 2008-06-13 Jason Rumney <jasonr@gnu.org>
8586
8587 * w32fns.c (Fw32_select_font): Remove old font API function.
8588
8589 * w32font.c (logfont_to_fcname): New function.
8590 (Fx_select_font): New font dialog function compatible with
8591 GTK/fontconfig version.
8592
8593 * font.c (font_style_symbolic_from_value): New function.
8594 (font_style_symbolic): Use it.
8595
8596 * font.h (font_style_symbolic_from_value): Declare new function.
8597
8598 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
8599
8600 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8601 <font-width-table>: Fix typos in docstrings.
8602
8603 2008-06-13 Daniel Engeler <engeler@gmail.com>
8604
8605 These changes add serial port access.
8606 * process.c: Add HAVE_SERIAL.
8607 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8608 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8609 (list_processes_1, select_wrapper, Fstop_process)
8610 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8611 (status_notify): Modify to handle serial processes.
8612 [HAVE_SERIAL] (Fserial_process_configure)
8613 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8614 New functions.
8615 * process.h (struct Lisp_Process): Add `type'.
8616 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8617 New functions.
8618 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8619 serial ports.
8620 (serial_open, serial_configure): New functions.
8621 * w32.h: Add FILE_SERIAL.
8622 (struct _child_process): Add ovl_read, ovl_write.
8623
8624 2008-06-13 Kenichi Handa <handa@m17n.org>
8625
8626 * dispextern.h (enum lface_attribute_index): New member
8627 LFACE_FOUNDRY_INDEX.
8628
8629 * font.c (font_score): Delete arg alternate_families. Check only
8630 weight, slant, width, and size. Ignore the difference of alias
8631 style symbols.
8632 (font_sort_entites): Adjust for the above change. Reflect the
8633 order of font-driver to scores.
8634 (font_list_entities): Don't check alternate_familes here.
8635 (font_clear_prop): Handle foundry.
8636 (font_update_lface): Don't parse "foundry-family" form here.
8637 Handle FONT_FOUNDRY_INDEX.
8638 (font_find_for_lface): Likewise. Handle alternate families here.
8639 If registry is nil, try iso8859-1 and ascii-0.
8640 (font_open_for_lface): Pay attention to size in ENTITY.
8641 (font_open_by_name): Simplify by calling font_load_for_lface.
8642 (free_font_driver_list): Delete it.
8643 (font_update_drivers): Preserve the order of backends.
8644 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8645 of font_score and font_sort_entites.
8646 (font_update_sort_order): Likewise.
8647
8648 * xfaces.c (LFACE_FOUNDRY): New macro.
8649 (check_lface_attrs): Check foundry.
8650 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8651 (merge_face_vectors): Check foundry.
8652 (merge_face_ref): Likewise.
8653 (Finternal_set_lisp_face_attribute): Likewise.
8654 (x_update_menu_appearance): Likewise.
8655 (Finternal_get_lisp_face_attribute): Likewise.
8656 (lface_hash): Likewise.
8657 (lface_same_font_attributes_p): Likewise.
8658 (x_supports_face_attributes_p): Likewise.
8659 (tty_supports_face_attributes_p): Likewise.
8660 (Finternal_set_alternative_font_family_alist): Intern strings.
8661 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8662 (realize_default_face): Set LFACE_FOUNDRY (lface).
8663
8664 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8665 font-driver at first.
8666
8667 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8668
8669 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8670
8671 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8672
8673 2008-06-12 Jim Meyering <meyering@redhat.com>
8674
8675 Make unexec_free handle NULL the same way free does.
8676 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8677
8678 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8679
8680 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8681 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8682 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8683 (WEAK_ALIAS): Simplify.
8684 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8685 when searching a unibyte buffer.
8686
8687 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
8688
8689 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8690
8691 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
8692
8693 * w32font.c: Include ctype.h.
8694
8695 2008-06-11 Jason Rumney <jasonr@gnu.org>
8696
8697 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8698 misreported as space.
8699 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8700 as aliases for registry iso10646-1.
8701
8702 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8703
8704 * buffer.c (clone_per_buffer_values): Skip `name'.
8705
8706 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
8707
8708 * font.c (font_parse_fcname): Fix last change; accept decimal
8709 points in font size.
8710
8711 2008-06-10 Jason Rumney <jasonr@gnu.org>
8712
8713 * w32uniscribe.c (add_opentype_font_name_to_list):
8714 Skip non unicode fonts.
8715
8716 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8717
8718 * xfns.c (Fx_font_dialog): New function.
8719
8720 * gtkutil.c (xg_dialog_response_cb): Rename from
8721 xg_file_response_callback.
8722 (pop_down_dialog): Rename from pop_down_file_dialog.
8723 (xg_get_file_name): Callers changed.
8724 (xg_get_font_name): New function.
8725
8726 * gtkutil.h (xg_get_font_name): Insert prototype.
8727
8728 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8729
8730 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8731 x_underline_minimum_display_offset.
8732 (syms_of_xdisp): Declare it here rather than in xterm.c.
8733 * dispextern.h (underline_minimum_offset): Declare it.
8734 * w32term.c (x_draw_glyph_string): Use it.
8735 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8736 (syms_of_xterm): Don't declare it any more.
8737 (x_draw_glyph_string): Adjust to the new name.
8738
8739 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8740
8741 * xterm.c (x_underline_minimum_display_offset): New var.
8742 (x_draw_glyph_string): Use it.
8743 (syms_of_xterm): Declare it.
8744
8745 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8746
8747 * font.c (font_parse_fcname): Accept GTK-style font names too.
8748
8749 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8750
8751 * dired.c (file_name_completion): Don't return t if the match is exact
8752 but with different capitalization.
8753 * minibuf.c (Ftry_completion): Simplify.
8754
8755 * window.c (Vwindow_point_insertion_type): New var.
8756 (set_window_buffer): Use it.
8757 (syms_of_window): Init and export it to Lisp.
8758
8759 2008-06-10 Kenichi Handa <handa@m17n.org>
8760
8761 * font.h (font_intern_prop): Prototype adjusted.
8762
8763 * font.c (font_intern_prop): New arg force_symbol.
8764 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8765 Adjust for the change of font_intern_prop.
8766
8767 * ftfont.c (ftfont_pattern_entity):
8768 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8769 (w32_registry):
8770 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8771 the change of font_intern_prop.
8772
8773 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
8774
8775 * w32menu.c (digest_single_submenu): Declare extern.
8776
8777 2008-06-09 Jason Rumney <jasonr@gnu.org>
8778
8779 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8780
8781 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8782 (parse_single_submenu): Remove.
8783 (digest_single_submenu): Remove.
8784 (syms_of_w32menu): Don't initialise variables that have moved
8785 to menu.c.
8786 (set_frame_menubar): Sync with version in xmenu.c.
8787 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8788
8789 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8790 Make static again.
8791
8792 2008-06-09 Jason Rumney <jasonr@gnu.org>
8793
8794 Changes to w32 files related to the move of common menu code
8795 to menu.c on 2008-06-08 by Chong Yidong.
8796
8797 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8798 defs to w32gui.h.
8799 (single_keymap_panes, push_menu_item, push_menu_pane):
8800 Make globally visible.
8801
8802 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8803 (local_free, malloc_widget_value, free_widget_value)
8804 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8805 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8806 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8807 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8808 (menu_items, menu_items_allocated, menu_items_used)
8809 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8810 (init_menu_items, finish_menu_items, discard_menu_items)
8811 (grow_menu_items, push_submenu_start, push_submenu_end)
8812 (push_left_right_boundary, push_menu_pane, push_menu_item)
8813 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8814 (free_menubar_widget_tree_value, parse_single_submenu)
8815 (update_submenu_strings): Remove functions.
8816 (xmalloc_widget_value): Remove and declare extern.
8817
8818 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8819 (OBJ1): Build it.
8820
8821 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8822 (local_heap, local_alloc, local_free, malloc_widget_value)
8823 (free_widget_value): Define here.
8824
8825 2008-06-09 Kenichi Handa <handa@m17n.org>
8826
8827 * font.h (Qascii_0): Extern it.
8828
8829 * font.c (Qascii_0): New variable.
8830 (syms_of_font): DEFSYM it.
8831 (font_open_by_name): If the registry "iso8859-1" fails, try also
8832 "ascii-0".
8833
8834 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8835
8836 2008-06-08 Kenichi Handa <handa@m17n.org>
8837
8838 * .gdbinit (xfont): New command.
8839
8840 2008-06-08 Andreas Schwab <schwab@suse.de>
8841
8842 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8843 * Makefile.in (menu.o): Update dependencies.
8844
8845 * Makefile.in (obj): Always add menu.o.
8846 * emacs.c (main): Always call syms_of_menu.
8847 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8848
8849 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
8850
8851 * Makefile.in: Compile menu.c.
8852
8853 * lisp.h: Declare syms_of_menu.
8854
8855 * emacs.c (main): Call syms_of_menu.
8856
8857 * keyboard.h: Relocate platform-independent menu definitions from
8858 xmenu.c.
8859
8860 * menu.c: New file. Relocate platform-independent menu
8861 definitions from xmenu.c. Suggested by Adrian Robert.
8862
8863 * xmenu.c: Remove platform-independent menu definitions.
8864 (menu_items menu_items_inuse, menu_items_allocated)
8865 (menu_items_used, menu_items_n_panes)
8866 (menu_items_submenu_depth): Move to keyboard.h.
8867 (init_menu_items, finish_menu_items, unuse_menu_items)
8868 (discard_menu_items, restore_menu_items, save_menu_items)
8869 (grow_menu_items, push_submenu_start, push_submenu_end)
8870 (push_left_right_boundary, push_menu_pane, push_menu_item)
8871 (keymap_panes, single_keymap_panes, single_menu_item)
8872 (list_of_panes, list_of_items, find_and_call_menu_selection)
8873 (xmalloc_widget_value, free_menubar_widget_value_tree)
8874 (parse_single_submenu, digest_single_submenu)
8875 (update_submenu_strings): Move to menu.c.
8876
8877 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8878
8879 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8880
8881 2008-06-06 Miles Bader <miles@gnu.org>
8882
8883 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8884 face, not frame default.
8885
8886 2008-06-05 Martin Rudalics <rudalics@gmx.at>
8887
8888 * window.c (pop_up_windows, pop_up_frames)
8889 (display_buffer_reuse_frames, Vpop_up_frame_function)
8890 (Vdisplay_buffer_function, Veven_window_heights)
8891 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8892 (Vspecial_display_function, Vsame_window_buffer_names)
8893 (Vsame_window_regexps, split_height_threshold)
8894 (Vsplit_window_preferred_function): Move those vars to window.el.
8895 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8896 (Fdisplay_buffer): Move those functions to window.el.
8897 (syms_of_window): Remove corresponding declarations.
8898 (display_buffer): New function.
8899 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8900 * dispnew.c (Flast_nonminibuf_frame): New function.
8901 * buffer.c (Fpop_to_buffer): Move to window.el.
8902
8903 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8904
8905 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8906
8907 2008-06-05 Kenichi Handa <handa@m17n.org>
8908
8909 * coding.c (detect_coding): Fix previous change.
8910 (detect_coding_system): Likewise.
8911
8912 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8913
8914 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8915
8916 * keymap.c (Vminibuffer_local_filename_must_match_map):
8917 Rename from Vminibuffer_local_must_match_filename_map.
8918 (syms_of_keymap):
8919 * minibuf.c (Fcompleting_read): Adjust accordingly.
8920 * commands.h: Rename declaration as well.
8921
8922 2008-06-05 Kenichi Handa <handa@m17n.org>
8923
8924 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8925 family name.
8926 (Ffont_put): Likewise.
8927
8928 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8929 current font-spec.
8930
8931 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8932 is unspecified.
8933
8934 * xfaces.c (realize_x_face): If the font-related face attributes
8935 are the same as those of default face, realize a new fontset from
8936 default->fontset.
8937 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8938
8939 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8940
8941 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8942 (move_it_in_display_line): New wrapper.
8943
8944 * window.c (window_scroll_pixel_based_preserve_x)
8945 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8946 (window_scroll_pixel_based, window_scroll_line_based):
8947 Use them to preserve column positions.
8948 (syms_of_window): Initialize them.
8949
8950 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8951 (HPOS . VPOS) pair.
8952
8953 * dispextern.h (move_it_in_display_line): Declare.
8954
8955 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
8956
8957 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8958 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8959 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8960
8961 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
8962
8963 * window.c (Fset_window_parameter): Doc fix.
8964 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8965
8966 2008-06-04 Joakim Verona <joakim@verona.se>
8967
8968 * window.h (struct window): Add new member window_parameters.
8969
8970 * window.c (Fwindow_parameters, Fwindow_parameter)
8971 (Fset_window_parameter): New defuns.
8972 (syms_of_window): Defsubr the new defuns.
8973 (make_window): Initialize window_parameters to nil.
8974
8975 2008-06-04 John Paul Wallington <jpw@pobox.com>
8976
8977 * eval.c (Fdefmacro): Doc fix.
8978
8979 2008-06-04 Kenichi Handa <handa@m17n.org>
8980
8981 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8982 Be sure to call setup_coding_system when we find a proper coding system.
8983 (detect_coding_system): Fix handling of coding->head_ascii.
8984
8985 2008-06-03 Andreas Schwab <schwab@suse.de>
8986
8987 * font.c (font_prop_validate_spacing): Fix last change.
8988
8989 2008-06-03 Kenichi Handa <handa@m17n.org>
8990
8991 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8992 (font_parse_fcname): Fix handling of unknown key.
8993
8994 * xfont.c (xfont_list): Try an alias.
8995
8996 * charset.c (char_charset): Return NULL if the arg charset_list is
8997 specified and C doesn't belong to any of them.
8998
8999 2008-06-02 Chip Coldwell <coldwell@redhat.com>
9000
9001 * font.c (font_pixel_size): Don't take cdr of an integer.
9002
9003 2008-06-02 Jim Meyering <meyering@redhat.com>
9004
9005 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9006 * alloc.c (xfree): Return right away for a NULL arg.
9007 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9008 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9009 * mac.c (create_apple_event_from_event_ref): Likewise.
9010 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9011 Likewise.
9012 * doprnt.c (doprnt1): Likewise.
9013 * frame.c (frame): Likewise.
9014 * keyboard.c (wipe_kboard): Likewise.
9015 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9016 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9017 * term.c (tty_default_color_capabilities, maybe_fatal)
9018 (delete_tty): Likewise.
9019 * w16select.c (string): Likewise.
9020 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9021 * w32bdf.c (w32_free_bdf_font): Likewise.
9022 * w32fns.c (w32_unload_font): Likewise.
9023 * w32font.c (w32font_close): Likewise.
9024 * window.c (size_window): Likewise.
9025 * xselect.c (receive_incremental_selection): Likewise.
9026 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9027 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9028 * w32.c (stat): Likewise.
9029
9030 Remove useless if-before-free tests.
9031 * editfns.c (Fset_time_zone_rule): Likewise.
9032 * lread.c (nosuffix): Likewise.
9033 * ralloc.c (get_bloc): Likewise.
9034 * regex.c (reg_free): Likewise.
9035 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9036 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9037 * xsmfns.c (smc_save_yourself_CB): Likewise.
9038
9039 2008-06-02 Kenichi Handa <handa@m17n.org>
9040
9041 * font.c (font_find_for_lface): Handle float font size.
9042 (font_open_for_lface): Likewise.
9043
9044 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9045 comparing the properties.
9046
9047 2008-06-01 Jason Rumney <jasonr@gnu.org>
9048
9049 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9050 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9051 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9052 Don't add empty script list.
9053 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9054
9055 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9056
9057 * Makefile.in (dot, dotdot): Remove, update users.
9058 ".." has been used elsewhere in the file for a long time.
9059 (LIBXT_STATIC): Remove conditional based on unused variable.
9060
9061 2008-06-01 Miles Bader <miles@gnu.org>
9062
9063 * xfaces.c (Vface_remapping_alist): New variable.
9064 (syms_of_xfaces): Initialize it.
9065 (enum named_merge_point_kind): New type.
9066 (struct named_merge_point): Add `named_merge_point_kind' field.
9067 (push_named_merge_point): Make cycle detection respect different
9068 named-merge-point kinds.
9069 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9070 Remove face-name alias resolution.
9071 (lface_from_face_name): New definition using
9072 `lface_from_face_name_no_resolve'.
9073 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9074 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9075 (get_lface_attributes): New definition that layers face-remapping on
9076 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9077 (lookup_basic_face): New function.
9078 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9079 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9080 `get_lface_attributes'.
9081 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9082 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9083 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9084
9085 * xdisp.c (init_iterator): Pass base_face_id through
9086 `lookup_basic_face' when we actually use it as a face-id.
9087 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9088 DEFAULT_FACE_ID.
9089
9090 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9091 lookup the initial face-id.
9092
9093 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9094
9095 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
9096
9097 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9098 (Fremove_text_properties): Fix typos in docstrings.
9099
9100 2008-05-31 Kenichi Handa <handa@m17n.org>
9101
9102 * font.c (font_list_entities): Fix the car part of data to be
9103 stored in the cache.
9104
9105 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9106
9107 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9108
9109 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9110 Add a `test' argument so another predicate than `equal' can be used.
9111 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9112 (map_char_table): Remove unused vars `c' and `i'.
9113 * lisp.h (Foptimize_char_table): Adjust declaration.
9114 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9115
9116 2008-05-30 Kenichi Handa <handa@m17n.org>
9117
9118 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9119 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9120 defined.
9121
9122 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9123
9124 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9125 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9126 frame-local settings for the same variable.
9127
9128 2008-05-30 Kenichi Handa <handa@m17n.org>
9129
9130 * fontset.c (Ffont_info): Move to font.c.
9131 (syms_of_fontset): Delete defsubr of Sfont_info.
9132
9133 * font.c (font_style_to_value, font_score): Delete casting of the
9134 args to xstcasecmp.
9135 (register_font_driver): Increment num_font_drivers only when
9136 registering the driver globally.
9137 (Ffont_info): Move from fontset.c. Handle a font object too.
9138 (syms_of_font): Defsubr Sfont_info.
9139
9140 2008-05-29 Kenichi Handa <handa@m17n.org>
9141
9142 * coding.h (enum define_coding_utf8_arg_index): New enum.
9143 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9144 coding_attr_utf_bom.
9145 (enum utf_bom_type): Rename from utf_16_bom_type.
9146 (struct utf_16_spec): Adjust for the above change.
9147 (struct coding_system): Add utf_8_bom in `spec' union.
9148
9149 * coding.c (CODING_UTF_8_BOM): New macro.
9150 (enum coding_category): Delete coding_category_utf_8, add
9151 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9152 coding_category_utf_8_sig.
9153 (CATEGORY_MASK_UTF_8): Delete it.
9154 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9155 (CATEGORY_MASK_UTF_8_SIG): New macros.
9156 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9157 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9158 CATEGORY_MASK_UTF_8_SIG.
9159 (CATEGORY_MASK_UTF_8): New macro.
9160 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9161 (detect_coding_utf_8): Check BOM.
9162 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9163 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9164 (encode_coding_utf_16): Likewise.
9165 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9166 (detect_coding, detect_coding_system): Handle utf-8-auto.
9167 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9168 (syms_of_coding): Fix setting up of Vcoding_category_table.
9169
9170 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9171
9172 * process.c (Faccept_process_output): If `millisec' is non-nil,
9173 `seconds' default to 0.
9174 (wait_reading_process_output): Also return non-nil if we read output
9175 from a non-running process.
9176
9177 2008-05-29 Jason Rumney <jasonr@gnu.org>
9178
9179 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9180 `raster' specified.
9181 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9182 in the uniscribe backend, but disallow any font that has no
9183 unicode subrange support.
9184
9185 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
9186
9187 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9188 Fix typos in docstrings.
9189
9190 2008-05-29 Kenichi Handa <handa@m17n.org>
9191
9192 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9193 (Fx_family_fonts): Set frame correctly.
9194
9195 2008-05-28 Jason Rumney <jasonr@gnu.org>
9196
9197 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9198
9199 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9200
9201 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9202 calling build_annotations.
9203
9204 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
9205
9206 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9207 (Fencode_coding_string):
9208 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9209 <latin-extra-code-table>: Fix typos in docstrings.
9210 (syms_of_coding) <coding-system-alist>: Doc fix.
9211 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9212
9213 2008-05-28 Kenichi Handa <handa@m17n.org>
9214
9215 * fontset.c (Ffont_info): Don't call font_close_object.
9216
9217 * font.c (font_parse_family_registry): Use Ffont_put to validate
9218 foundry and family.
9219 (font_delete_unmatched): Don't check spacing.
9220 (font_list_entities): Add spacing to the spec to list fonts.
9221
9222 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9223 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9224
9225 * coding.c (encode_coding_raw_text): Fix previous change.
9226 (encode_coding_object): When the dst_object is a buffer and is
9227 different from src_object, move gap to PT.
9228
9229 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9230
9231 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9232
9233 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9234
9235 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9236 all branches. Compute it differently.
9237
9238 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9239
9240 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
9241
9242 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9243 into "else if () ... else ...".
9244
9245 2008-05-27 Jason Rumney <jasonr@gnu.org>
9246
9247 * w32font.c (w32font_open_internal): Determine if glyph indices
9248 are likely to work here.
9249
9250 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9251
9252 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9253 draw overlap glyphs with appropriate highlighting.
9254
9255 2008-05-27 Kenichi Handa <handa@m17n.org>
9256
9257 * xfont.c (xfont_open): Fix calculation of font->average_width.
9258
9259 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * casefiddle.c (casify_object): Try to guess better whether the
9262 argument is a byte or a char.
9263
9264 2008-05-26 Andreas Schwab <schwab@suse.de>
9265
9266 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9267 Always send multiples of format size.
9268
9269 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9270
9271 2008-05-26 Jason Rumney <jasonr@gnu.org>
9272
9273 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9274 (compute_metrics): Don't set failure if we just cleared the cache.
9275 (w32_weight_table): Remove unused variable.
9276 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9277 backwards compatibility.
9278
9279 2008-05-25 Kenichi Handa <handa@m17n.org>
9280
9281 * w32term.c (x_draw_glyph_string):
9282 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9283
9284 * xfaces.c: Delete unused function prototypes.
9285 (xstrlwr, font_frame): Delete them.
9286 (clear_face_cache): Delete unused variable.
9287
9288 * xftfont.c (xftfont_open): Delete unused variable.
9289 If underline_thickness is not 1, adjust underline_position.
9290
9291 * ftxfont.c (ftxfont_open): Delete unused variable.
9292
9293 * fontset.c (face_for_char): Optimize for the case of no charset
9294 property.
9295
9296 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9297 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9298 (otf_open, font_otf_capability, generate_otf_features)
9299 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9300 Comment out by surrounding "#if 0" and "#endif" for the moment.
9301 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9302 (syms_of_font): Codes for accessing above commented out.
9303
9304 2008-05-24 Eli Zaretskii <eliz@gnu.org>
9305
9306 * w32proc.c: Include dispextern.h.
9307
9308 * w32.c: Include dispextern.h.
9309
9310 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
9311
9312 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9313 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9314 Fix typos in docstrings.
9315
9316 2008-05-23 Jason Rumney <jasonr@gnu.org>
9317
9318 * xsmfns.c: Remove includes that are already included by config.h.
9319
9320 2008-05-23 Kenichi Handa <handa@m17n.org>
9321
9322 * charset.c (Qemacs, charset_emacs): New variables.
9323 (char_charset): Fix for non-Unicode characters.
9324 (syms_of_charset): Define charset_emacs.
9325
9326 * w32term.c (x_draw_glyph_string): Be sure to update
9327 s->underline_thickness and s->underline_position. Be sure to draw
9328 underline within the current line area.
9329
9330 * xterm.c (x_draw_glyph_string): Be sure to update
9331 s->underline_thickness and s->underline_position. Be sure to draw
9332 underline within the current line area.
9333
9334 * fontset.c: Delete unused variables and add casting for char *
9335 throughout the file.
9336 (fontset_font): Try the fallback fonts of the current fontset
9337 before consulting the default fontset.
9338
9339 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9340
9341 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9342
9343 2008-05-22 Jason Rumney <jasonr@gnu.org>
9344
9345 * font.c: Don't include strings.h.
9346
9347 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9348
9349 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9350 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9351 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9352 to call xstrcasecmp.
9353
9354 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9355
9356 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9357
9358 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9359
9360 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9361
9362 2008-05-22 Kenichi Handa <handa@m17n.org>
9363
9364 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9365
9366 * font.c (font_prop_validate_style): Adjust for the format
9367 change of font_style_table.
9368
9369 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9370 two args.
9371
9372 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9373 two args.
9374
9375 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9376
9377 * minibuf.c (keys_of_minibuf): Delete.
9378 * lisp.h (keys_of_minibuf): Delete.
9379 * emacs.c (main): Don't call keys_of_minibuf.
9380
9381 2008-05-22 Kenichi Handa <handa@m17n.org>
9382
9383 * ftfont.c (ftfont_resolve_generic_family): Rename from
9384 ftfont_list_generic_family. Return a single family for each
9385 generic family.
9386 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9387 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9388 Call font_add_log.
9389 (ftfont_match): Call font_add_log.
9390
9391 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9392 (FONT_DEBUG): Define it.
9393 (font_add_log): Extern it.
9394 (font_assert): Rename from xassert.
9395
9396 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9397 (xfont_list_family): Call font_add_log.
9398 (xfont_match): Likewise.
9399 (memq_no_quit): Delete.
9400
9401 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9402 call of Ffont_xlfd_name.
9403
9404 * xfaces.c (struct table_entry, slant_table, weight_table)
9405 (swidth_table): Move to font.c.
9406
9407 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9408 xassert are changed to font_assert. Delete many unused variables.
9409 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9410 New variables.
9411 (struct table_entry): Move from xfaces.c and modified.
9412 (weight_table, slant_table, width_table): Move from xfaces.c and
9413 contents adjusted for the change of struct table_entry.
9414 (font_style_to_value, font_style_symbolic): Adjust for the
9415 format change of font_style_table.
9416 (font_parse_family_registry): Don't overwrite existing foundry and
9417 family of font_spec.
9418 (font_score): Fix calculation of diff for sizes.
9419 (font_sort_entites): Call font_add_log.
9420 (font_delete_unmatched): Return a newly created list.
9421 (font_list_entities): Fix previous change. Call font_add_log.
9422 (font_matching_entity, font_open_entity, font_close_entity):
9423 Call font_add_log.
9424 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9425 (Finternal_set_font_style_table): Delete.
9426 (BUILD_STYLE_TABLE): New macro.
9427 (build_style_table): New function.
9428 (Vfont_log, font_log_env_checked): New variables.
9429 (font_add_log): New function.
9430 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9431 Declare Lisp variables "font-weight-table", "font-slant-table",
9432 "font-width-table", and "font-log". Initialize font_style_table.
9433
9434 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9435
9436 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9437
9438 2008-05-21 Seiji Zenitani <zenitani@mac.com>
9439 Ryo Yoshitake <ryo@shiftmode.net>
9440
9441 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9442 (Vframe_alpha_lower_limit): New variable.
9443 (x_set_alpha): New function.
9444
9445 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9446
9447 * xfns.c (x-create-frame, Qalpha):
9448 Initialize the frame parameter `alpha'.
9449 * xterm.c (OPAQUE, OPACITY): New.
9450 (x_set_frame_alpha): New function.
9451 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9452
9453 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9454 * w32fns.c (w32_frame_parm_handlers): Likewise.
9455
9456 2008-05-20 Jason Rumney <jasonr@gnu.org>
9457
9458 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9459 truetype fonts to opentype list.
9460
9461 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
9462
9463 * fontset.c (Ffontset_info): Doc fix.
9464 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9465 <ignore-relative-composition>: Fix typos in docstrings.
9466
9467 * font.c (syms-of-font) <font-encoding-alist>:
9468 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9469 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9470 (Ffont_otf_alternates): Doc fixes.
9471
9472 2008-05-20 Kenichi Handa <handa@m17n.org>
9473
9474 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9475 font.h through out the file.
9476 (FONT_DRIVERS): Rename from FONTOBJ.
9477 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9478 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9479
9480 * emacs.c (main): Call syms_of_font unconditionally.
9481
9482 * font.h (find_font_encoding): Extern it.
9483
9484 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9485 fontset.c.
9486 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9487 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9488 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9489 only when HAVE_WINDOW_SYSTEM is defined.
9490 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9491 when HAVE_WINDOW_SYSTEM is defined.
9492
9493 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9494 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9495
9496 * xfaces.c: Include font.h unconditionally.
9497 (merge_face_ref, merge_face_vectors)
9498 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9499
9500 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9501
9502 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9503 indirect_variable.
9504 * eval.c (lisp_indirect_variable): New fun.
9505 (Fuser_variable_p): Use it.
9506
9507 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9508
9509 * lisp.h (indirect_variable):
9510 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9511 Use Lisp_Symbol pointers rather than Lisp_Object.
9512 Adjust callers.
9513 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9514 To this end, change calling-convention.
9515
9516 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9517 if some non-hidden buffers are selected by string&pred.
9518
9519 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
9520
9521 * process.c (wait_reading_process_output): Always check status
9522 when in batch mode.
9523
9524 2008-05-19 Kenichi Handa <handa@m17n.org>
9525
9526 * font.c (font_list_entities): Fix handling of cache.
9527 (font_matching_entity): Likewise.
9528
9529 * ftfont.c (cs_iso8859_1): Delete.
9530 (ft_face_cache): New variable.
9531 (struct ftfont_info): New member fc_charset_idx.
9532 (ftfont_build_basic_charsets): Delete.
9533 (fc_charset_table): New variable.
9534 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9535 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9536 Callers changed.
9537 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9538 (ftfont_spec_pattern): New argument fc_charset_idx.
9539 Check registry more rigidly. Change callers.
9540 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9541 change of :font-entity property of the font.
9542
9543 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9544 property of the font.
9545
9546 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
9547
9548 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9549 (Funencodable_char_position, Fcheck_coding_systems_region)
9550 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9551 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9552 (Ffind_operation_coding_system, Fset_coding_system_priority)
9553 (Fcoding_system_eol_type): Doc fixes.
9554
9555 2008-05-17 Glenn Morris <rgm@gnu.org>
9556
9557 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9558
9559 2008-05-16 Eli Zaretskii <eliz@gnu.org>
9560
9561 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9562 and st_gid.
9563
9564 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9565 HAVE_WINDOW_SYSTEM is not defined.
9566
9567 * xfaces.c (merge_face_ref, merge_face_vectors)
9568 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9569 HAVE_WINDOW_SYSTEM is defined.
9570 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9571
9572 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9573
9574 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9575
9576 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9577
9578 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9579
9580 2008-05-15 Kenichi Handa <handa@m17n.org>
9581
9582 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9583 preference.
9584
9585 2008-05-15 Glenn Morris <rgm@gnu.org>
9586
9587 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9588
9589 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
9590
9591 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9592 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9593
9594 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9595
9596 2008-05-15 Kenichi Handa <handa@m17n.org>
9597
9598 * ftfont.c (ftfont_list): Downcase family name to check generic
9599 families.
9600
9601 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9602 font-spec for QCfont value.
9603
9604 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9605 buffer. Check the return value of it.
9606
9607 2008-05-14 Jason Rumney <jasonr@gnu.org>
9608
9609 * w32term.c (w32_get_glyph_overhangs): Remove.
9610 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9611
9612 2008-05-14 Kenichi Handa <handa@m17n.org>
9613
9614 * font.c (font_prop_validate): Make nil a valid value.
9615 (font_clear_cache): Check if the cached vector of entities is nil
9616 or not.
9617
9618 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9619
9620 * emacs.c (main_thread): Conditionalize on
9621 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9622 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9623
9624 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9625 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9626 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9627
9628 2008-05-14 Kenichi Handa <handa@m17n.org>
9629
9630 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9631 has no corresponding coding system.
9632
9633 2008-05-14 Jason Rumney <jasonr@gnu.org>
9634
9635 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9636
9637 * w32font.h (w32font_open_internal): Update declaration.
9638
9639 * w32font.c (w32font_open_internal): Change last argument from
9640 w32font_info struct to font object. Fill in font object from
9641 font_entity. Get Outline metrics if possible. Use them to
9642 calculate underline position and thickness. Use xlfd name as name
9643 property. Don't set codepage.
9644 (w32font_open): Pass font_object to w32font_open_internal. Don't
9645 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9646 (w32font_draw): Use s->font.
9647 (clear_cached_metrics): Don't clear non-existent blocks.
9648
9649 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9650 font was not found.
9651 (x_draw_glyph_string): Use underline position and thickness from font.
9652
9653 * w32uniscribe.c (uniscribe_open): Pass font_object to
9654 w32font_open_internal.
9655
9656 2008-05-14 Kenichi Handa <handa@m17n.org>
9657
9658 These changes are to delete all legacy font-handling codes, and
9659 make Emacs use only font-backends.
9660
9661 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9662 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9663
9664 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9665
9666 * charset.h (Vcharset_non_preferred_head)
9667 (Vcurrent_iso639_language): Extern them.
9668
9669 * charset.c (Vcharset_non_preferred_head): New variable.
9670 (Vcurrent_iso639_language): New variable.
9671 (syms_of_charset): Declare it as a Lisp variable.
9672 (char_charset): Don't check non preferred charsets. As a last
9673 resort, return charset_unicode.
9674 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9675
9676 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9677 conditionals. Don't check enable_font_backend. Delete all codes
9678 used only when USE_FONT_BACKEND is not defined.
9679
9680 * dispextern.h (struct glyph_string): Change type of `font' to
9681 `struct font *'.
9682 (struct glyph_string): New member underline_position and
9683 underline_thickness.
9684 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9685 (struct face): Change type of `font' to `struct font *'. Remove
9686 members `font_name', `font_info_id'.
9687 (per_char_metric, encode_char): Delete externs.
9688 (calc_pixel_width_or_height): Adjust the prototype.
9689
9690 * emacs.c (enable_font_backend): Delete extern.
9691 (main): Don't set enable_font_backend. Don't check the command
9692 line argument "-disable-font-backend".
9693
9694 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9695 (enum font_property_index): New members FONT_DPI_INDEX,
9696 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9697 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9698 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9699 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9700 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9701 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9702 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9703 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9704 (struct font_spec, struct font_entity): New structs.
9705 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9706 (struct font): Many members from old "struct font_info" moved to
9707 here. Members font and entity deleted.
9708 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9709 the new font-related objects.
9710 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9711 (CHECK_FONT_GET_OBJECT): Likewise.
9712 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9713 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9714 (struct font_driver): New members case_sensitive anc check. Type
9715 of the member list and open changed.
9716 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9717 (font_symbolic_width, font_find_object, font_get_spec)
9718 (font_set_lface_from_name): Delete extern.
9719 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9720
9721 * font.c: Include <strings.h>.
9722 (enable_font_backend): Delete it.
9723 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9724 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9725 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9726 (null_string): Delete it.
9727 (null_vector): Make it static.
9728 (font_family_alist): Delete it.
9729 (Qnormal): Extern it.
9730 (QCextra, QClanguage): Delete it.
9731 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9732 (font_make_spec, font_make_entity, font_make_object)
9733 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9734 the string. Callers changed.
9735 (font_pixel_size): Adjusted for the format change of font-related
9736 objects.
9737 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9738 (font_style_to_value, font_style_symbolic): New function.
9739 (build_font_family_alist): Delete it.
9740 (font_registry_charsets): Use Fassoc_string instead of
9741 assq_no_quit.
9742 (font_prop_validate_symbol): Don't return null_string.
9743 (font_prop_validate_style): Adjusted for the change of
9744 style-related values in a font vector.
9745 (font_property_table): Delete entries for QClanguage and
9746 QCantialias, add entries for QCavgwidth.
9747 (get_font_prop_index): Delete the 2nd argument FROM.
9748 (font_prop_validate): Arguments changed.
9749 (font_put_extra): Adjusted for the change of font-related objects.
9750 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9751 (font_parse_fcname, font_unparse_fcname)
9752 (font_prepare_composition): Likewise.
9753 (font_parse_family_registry): Renamed from font_merge_old_spec.
9754 (otf_open): Delete the 1st arg entity.
9755 (font_otf_capability): Adjusted for the above change.
9756 (font_score): New arg alternate_families. Adjusted for the change
9757 of font-related objects.
9758 (font_sort_entites): New arg best_only.
9759 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9760 Delete them.
9761 (font_match_p): Check alternate families.
9762 (font_find_object): Delete it.
9763 (font_check_object): New function.
9764 (font_clear_cache): Adjusted for the change of font-related objects.
9765 (font_delete_unmatched): New arg.
9766 (font_list_entities): Call font_driver->list with a spec that
9767 doesn't specify style-related properties.
9768 (font_matching_entity): Arguments changed. Caller changed.
9769 (font_open_entity): Adjusted for the change of font-related objects.
9770 (font_close_object, font_has_char, font_encode_char)
9771 (font_get_name, font_get_spec): Likewise.
9772 (font_spec_from_name, font_clear_prop, font_update_lface):
9773 New functions.
9774 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9775 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9776 (font_at): Adjusted for the change of font-related objects.
9777 (font_range): New function.
9778 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9779 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9780 (Fcopy_font_spec, Fmerge_font_spec): New function.
9781 (Ffont_family_list): Renamed from list-families.
9782 (Finternal_set_font_style_table): Arguments changed.
9783 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9784 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9785 change of font-related objects.
9786 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9787
9788 * fontset.h (struct font_info): Delete it. Most members go to
9789 struct font.
9790 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9791 (enum FONT_SPEC_INDEX): Delete it.
9792 (font_info, list_fonts_func, load_font_func, query_font_func)
9793 (set_frame_fontset_func, find_ccl_program_func)
9794 (get_font_repertory_func, new_fontset_from_font_name): Delete
9795 externs.
9796 (fontset_from_font_name): Extern it.
9797 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9798 (FONT_INFO_FROM_FACE): Deleted.
9799 (face_for_font): Adjust prototype.
9800
9801 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9802 conditionals. Don't check enable_font_backend. Delete all codes
9803 used only when USE_FONT_BACKEND is not defined.
9804 (get_font_info_func, list_font_func, load_font_func)
9805 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9806 (get_font_repertory_func): Delete them.
9807 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9808 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9809 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9810 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9811 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9812 (fontset_compare_rfontdef): New function.
9813 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9814 rfont-defs by qsort. Adjusted for the change of font-group vector.
9815 (load_font_get_repertory): Deleted.
9816 (fontset_find_font): Use new macros to ref/set elements of
9817 font-def and rfont-def.
9818 (fontset_font): Fix the timing of remembering that no font for C.
9819 (free_face_fontset): Do nothing if the face has no fontset.
9820 (face_suitable_for_char_p): Use new macros to ref/set elements of
9821 rfont-def.
9822 (face_for_char): Likewise. Call face_for_char with font_object.
9823 (fs_load_font): Delete. Delete #pragma surrounding it.
9824 (fs_query_fontset): Use strcasecmp instead of strcmp.
9825 (generate_ascii_font_name): Adjusted for the format change of
9826 font-spec.
9827 (Fset_fontset_font): Likewise. Use new macros to set elements of
9828 font-def.
9829 (Fnew_fontset): Use font_unparse_xlfd to generate
9830 FONTSET_ASCII (fontset).
9831 (new_fontset_from_font_name): Deleted.
9832 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9833 a fontset is already created for the font. FIx updating of
9834 Vfontset_alias_alist.
9835 (fontset_ascii_font): Deleted.
9836 (Ffont_info): Adjusted for the format change of font-spec.
9837 (Finternal_char_font): Likewise.
9838 (Ffontset_info): Likewise.
9839 (syms_of_fontset): Don't check load_font_func.
9840
9841 * fns.c (internal_equal): Handle PREV_FONT.
9842
9843 * frame.h: Delete USE_FONT_BACKEND conditional.
9844
9845 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9846 conditionals. Don't check enable_font_backend. Delete all codes
9847 used only when USE_FONT_BACKEND is not defined.
9848 (x_set_font): Call x_new_font, not x_new_fontset2.
9849 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9850 already set for the frame.
9851
9852 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9853 a font-entity by font_make_entity. Use font_intern_prop instead
9854 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9855 font property. If a font is scalable, set avgwidth property to 0.
9856 Set font-entity property by font_put_extra.
9857 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9858 (ffont_driver): Adjusted for the change of struct font_driver.
9859 (ftfont_spec_pattern): New function.
9860 (ftfont_list): Return a list, not vector.
9861 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9862 (ftfont_list_family): Don't downcase names.
9863 (ftfont_free_entity): Deleted.
9864 (ftfont_open): Return a font-object. Adjusted for the change of
9865 struct font. Get underline_thickness and underline_position from
9866 font property. Don't update dpyinfo->smallest_font_height and
9867 dpyinfo->smallest_char_width.
9868 (ftfont_close): Don't free `struct font'.
9869 (ftfont_has_char): Adjusted for the format change of font-entity.
9870 (ftfont_encode_char, ftfont_text_extents): Likewise.
9871
9872 * ftxfont.c (ftxfont_list): Return a list, not vector.
9873 (ftxfont_open): Return a font-object. Adjusted for the change of
9874 struct font. Get underline_thickness and underline_position from
9875 font property. Don't update dpyinfo->smallest_font_height and
9876 dpyinfo->smallest_char_width.
9877 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9878 (ftxfont_draw): Adjusted for the change of struct font.
9879
9880 * image.c (image_ascent): Don't include "charset.h". Include
9881 "character.h" and "font.h".
9882
9883 * lisp.h (enum pvec_type): New member PREV_FONT.
9884 (Fassoc_string): EXFUN it.
9885
9886 * print.c: Include font.h.
9887 (print_object): Handle font-related objects.
9888
9889 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9890 conditionals. Don't check enable_font_backend. Delete all codes
9891 used only when USE_FONT_BACKEND is not defined.
9892 (handle_auto_composed_prop): Do nothing if it->f is not on a
9893 window system. Check how many following characters can be
9894 displayed by the same font.
9895 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9896 'struct font *'.
9897 (get_char_face_and_encoding): Assign the whole encoding task to
9898 the `encode-char' method of a font driver.
9899 (fill_composite_glyph_string): Adjusted for the change of `struct
9900 face' and `struct glyph_string'.
9901 (fill_glyph_string): Likewise.
9902 (get_per_char_metric): Arguments changed.
9903 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9904 and `struct glyph_string'.
9905 (produce_stretch_glyph, calc_line_height_property)
9906 (x_produce_glyphs): Likewise.
9907
9908 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9909 conditionals. Don't check enable_font_backend. Delete all codes
9910 used only when USE_FONT_BACKEND is not defined. Use
9911 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9912 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9913 (Qp): Extern them.
9914 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9915 Deleted.
9916 (struct font_name): Deleted.
9917 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9918 (compare_fonts_by_sort_order): New function.
9919 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9920 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9921 Deleted.
9922 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9923 compare_fonts_by_sort_order.
9924 (Fx_font_family_list): Call Ffont_family_list.
9925 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9926 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9927 (face_symbolic_slant, face_symbolic_swidth)
9928 (split_font_name_into_vector, build_font_name_from_vector)
9929 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9930 (font_rescale_ratio, split_font_name, build_font_name)
9931 (free_font_names, sort_fonts, x_face_list_fonts)
9932 (face_font_available_p, sorted_font_list, cmp_font_names)
9933 (font_list_1, concat_font_list, font_list, remove_duplicates):
9934 Deleted.
9935 (Fx_list_fonts): Use Ffont_list.
9936 (LFACE_AVGWIDTH): Deleted.
9937 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9938 by FONTP.
9939 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9940 (set_lface_from_font_name): Delete it.
9941 (set_lface_from_font): Renamed from
9942 set_lface_from_font_and_fontset. Caller changed. Don't set
9943 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9944 for face.
9945 (merge_face_vectors): Copy font-spec if necessary.
9946 Clear properties of the font-spec if necessary.
9947 (merge_face_ref): Clear properties of the font-spec if necessary.
9948 (Finternal_set_lisp_face_attribute): Likewise.
9949 (set_font_frame_param): Use font_load_for_lface to load a
9950 font-object, and call Fmodify_frame_parameters with it.
9951 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9952 font name by Ffont_xlfd_name.
9953 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9954 QCslant, and QCwidth.
9955 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9956 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9957 Compare fonts by EQ.
9958 (lookup_non_ascii_face): Deleted.
9959 (face_for_font): The 2nd argument changed.
9960 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9961 Check atomic font properties by case insensitive.
9962 (realize_non_ascii_face): Set face->overstrike correctly.
9963 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9964 (dump_realized_face): Get font name from
9965 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9966
9967 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9968 conditionals. Don't check enable_font_backend. Delete all codes
9969 used only when USE_FONT_BACKEND is not defined.
9970 (xic_create_xfontset): Original code deleted and renamed from
9971 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9972 (x_make_gc): Don't set GCFont in GCs.
9973 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9974 opened by "fixed".
9975 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9976 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9977 get_font_repertory_func.
9978
9979 * xfont.c: Include <stdlib.h> and "ccl.h".
9980 (struct xfont_info): New structure.
9981 (xfont_query_font): Deleted.
9982 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9983 moved from xterm.c.
9984 (xfont_driver): Adjusted for the change of struct font_driver.
9985 (compare_font_names): New function.
9986 (xfont_list_pattern): Sort font names case insensitively. Make
9987 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9988 (xfont_list): Return a list, not vector.
9989 (xfont_match): If the font doesn't have QCname property, generate
9990 a name from the other font properties.
9991 (xfont_open): Return a font-object. Adjusted for the change of
9992 struct font. Get underline_thickness and underline_position from
9993 font property. Don't update dpyinfo->smallest_font_height and
9994 dpyinfo->smallest_char_width.
9995 (xfont_close): Don't free struct font.
9996 (xfont_prepare_face): Adjusted for the change of struct font.
9997 (xfont_done_face): Deleted.
9998 (xfont_has_char): Adjusted for the change of struct font.
9999 (xfont_encode_char, xfont_draw): Likewise.
10000 (xfont_check): New function.
10001
10002 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10003 callback function.
10004 (xftfont_match): Adjusted for the format change of font-entity.
10005 (xftfont_open): Adjusted for the format change of font-entity and
10006 font-object. Adjusted for the change of struct font. Return a
10007 font-object. Don't update dpyinfo->smallest_font_height and
10008 dpyinfo->smallest_char_width.
10009 (xftfont_close): Block input while calling XftFontClose.
10010 (xftfont_prepare_face): Don't block input while calling
10011 xftfont_get_colors. Adjusted for the change of struct font.
10012 (xftfont_shape): Return value of error case fixed.
10013
10014 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10015
10016 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10017 conditionals.
10018 (FONT_WIDTH): Return (f)->max_width.
10019 (struct x_display_info): Delete member `font'.
10020 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10021 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10022 (struct x_output): Change type of `font' to `struct font *'.
10023
10024 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10025 conditionals. Don't check enable_font_backend. Delete all codes
10026 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10027 (x_per_char_metric, x_encode_char): Deleted.
10028 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10029 (x_compute_glyph_string_overhangs): Adjusted for the change of
10030 `struct face'.
10031 (x_draw_glyph_string_foreground)
10032 (x_draw_composite_glyph_string_foreground): Likewise.
10033 (x_draw_glyph_string): Likewise. Use font->underline_position and
10034 font->underline_thickness.
10035 (x_new_font): Renamed from x_new_fontset2.
10036 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10037 (x_check_font): Call `check' method of a font driver.
10038 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10039 (x_query_font, x_get_font_repertory): Deleted.
10040 (x_find_ccl_program): Renamed and moved to xfont.c.
10041 (x_redisplay_interface): Adjusted for the change of `struct
10042 redisplay_interface'.
10043
10044 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10045 conditionals. Don't check enable_font_backend. Delete all codes
10046 used only when USE_FONT_BACKEND is not defined. Surround non-used
10047 code by "#ifdef OLD_FONT" and "endif".
10048 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10049
10050 * w32font.h (struct w32font_info): New member.
10051 (FONT_COMPAT): New macro.
10052 (w32font_open_internal): Prototype adjusted.
10053
10054 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10055 OLD_FONT" and "endif".
10056
10057 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10058 conditionals. Don't check enable_font_backend. Delete all codes
10059 used only when USE_FONT_BACKEND is not defined.
10060 (w32font_open): Return a font-object. Make a font-object by
10061 font_make_object. Adjusted for the change of struct w32font_info.
10062 (w32font_close): Don't free struct font. Adjusted for the change
10063 of struct w32font_info.
10064 (w32font_encode_char, w32font_text_extents, w32font_draw):
10065 Adjusted for the change of struct w32font_info.
10066 (w32font_draw): Likewise.
10067 (w32font_list_internal): Return a list, not vector.
10068 (w32font_open_internal): Change the 4th arg to font-object.
10069 Adjusted for the change of struct w32font_info and font-object format.
10070 (add_font_name_to_list): Don't downcase names.
10071 (w32_enumfont_pattern_entity): Make a font-entity by
10072 font_make_entity. Adjusted for the format change of font-entity.
10073 Use FONT_SET_STYLE to set a style-related font property. If a
10074 font is scalable, set avgwidth property to 0. Set font-entity
10075 property by font_put_extra.
10076 (font_matches_spec): Adjusted for the format change of font-entity.
10077 (w32_weight_table, w32_decode_weight): New variables.
10078 (w32_encode_weight): New function.
10079 (fill_in_logfont): Adjusted for the format change of font-spec.
10080 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10081 weight value.
10082 (w32font_driver): Adjusted for the change of struct font_driver.
10083
10084 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10085 conditionals. Don't check enable_font_backend. Surround non-used
10086 code by "#ifdef OLD_FONT" and "endif".
10087 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10088 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10089
10090 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10091 conditionals. Don't check enable_font_backend. Delete all codes
10092 used only when USE_FONT_BACKEND is not defined. Surround non-used
10093 code by "#ifdef OLD_FONT" and "endif".
10094
10095 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10096 (uniscribe_open): Return value changed to font-object.
10097 Adjusted for the format change of font-object.
10098 (uniscribe_otf_capability): Adjusted for the change of struct font.
10099 (add_opentype_font_name_to_list): Don't downcase names.
10100 (uniscribe_font_driver): Adjusted for the change of struct
10101 font_driver.
10102
10103 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
10104
10105 * dispnew.c (update_frame_1): Check if tty output is still valid
10106 before flushing it.
10107
10108 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10109
10110 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10111 to Gtk+ menus.
10112
10113 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10114
10115 * dired.c (file_name_completion): Tweak the code so as to always do it
10116 in a single pass. Tighten the scope of some variables.
10117
10118 * dired.c (Qdefault_directory): New var.
10119 (file_name_completion): Use it instead of Fexpand_file_name.
10120 (syms_of_dired): Initialize it.
10121
10122 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10123
10124 * fileio.c (double_dollars): Remove dead code.
10125
10126 2008-05-10 Eli Zaretskii <eliz@gnu.org>
10127
10128 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10129 Mention w32-get-true-file-attributes in doc string.
10130
10131 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10132
10133 2008-05-09 Glenn Morris <rgm@gnu.org>
10134
10135 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10136 2008-04-23.
10137
10138 2008-05-09 Eli Zaretskii <eliz@gnu.org>
10139
10140 Support for reporting owner and group of each file on MS-Windows:
10141 * dired.c (stat_uname, stat_gname): New functions, with special
10142 implementation for w32.
10143 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10144
10145 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10146 (dflt_group_name): New static variable.
10147 (dflt_group): Rename from the_group.
10148 (init_user_info): Init dflt_group fields. Get user's group name
10149 from LookupAccountSid.
10150 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10151 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10152 New initialization states.
10153 (globals_of_w32): Initialize them to zero. Initialize the default
10154 group name to "None".
10155 (GetFileSecurity_Name): New global var, the name of the function
10156 to call for GetFileSecurity.
10157 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10158 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10159 (get_file_security, get_security_descriptor_owner)
10160 (get_security_descriptor_group, is_valid_sid)
10161 (get_file_security_desc, get_rid, get_name_and_id)
10162 (get_file_owner_and_group): New functions.
10163 (stat): Use get_file_security_desc and get_file_owner_and_group to
10164 report the owner and primary group of each file. Don't ignore the
10165 high 32 bits of file's size, now that st_size is 64-bit wide.
10166 Fix test when to get true file attributes.
10167 (init_user_info): Use get_rid instead of equivalent inline code.
10168 (fstat): Don't ignore the high 32 bits of file's size.
10169
10170 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * image.c (png_load): Use correct bit-depth for setting background
10173 color.
10174
10175 2008-05-08 Eli Zaretskii <eliz@gnu.org>
10176
10177 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10178 epa-hook.elc.
10179
10180 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
10181
10182 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10183
10184 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10185
10186 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10187 because the original parameters are in pure storage now.
10188 (mac_window): Remove unused params. Update callers.
10189
10190 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10191
10192 * lread.c (substitute_object_recurse): Use lower-level primitives.
10193 Don't signal errors when traversing sub-char-tables.
10194 Don't loop over all the possible characters when traversing char-tables.
10195
10196 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10197 just like we do in print.c.
10198
10199 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10200
10201 * minibuf.c (Ftry_completion): Remove code left over from when we used
10202 scmp instead of Fcompare_strings.
10203
10204 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
10205
10206 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10207
10208 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10209
10210 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10211 Create bitmap context in native byte order.
10212
10213 * macterm.c (XDrawLine)
10214 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10215 context in native byte order.
10216
10217 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10218
10219 * config.in: Regenerate.
10220
10221 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10222 New definitions for Image I/O support.
10223 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10224 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10225 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10226 (mac_data_provider_release_data, image_load_image_io)
10227 [USE_MAC_IMAGE_IO]: New functions.
10228 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10229 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10230 (init_image_func_pointer) [MAC_OSX]: Remove function.
10231 (image_load_quartz2d) [MAC_OSX]: Check availability of
10232 CGImageCreateWithPNGDataProvider at compile time.
10233 Use lowercase `false' for boolean constant.
10234 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10235 Use image_load_image_io.
10236 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10237 Don't check MyCGImageCreateWithPNGDataProvider.
10238 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10239 Don't call init_image_func_pointer.
10240
10241 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10242
10243 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10244 Make variable non-static.
10245 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10246 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10247
10248 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10249 (RED_FROM_ULONG): Mask off higher bits.
10250 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10251
10252 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10253 Include AvailabilityMacros.h.
10254 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10255 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10256
10257 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10258
10259 * chartab.c (Fset_char_table_range): If range is t, really set all
10260 chars to that value.
10261
10262 2008-05-03 Eli Zaretskii <eliz@gnu.org>
10263
10264 * dired.c (Ffile_attributes): Don't allow the device number become
10265 negative.
10266
10267 2008-05-02 Daiki Ueno <ueno@unixuser.org>
10268
10269 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10270
10271 2008-05-02 Juri Linkov <juri@jurta.org>
10272
10273 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10274 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10275 DEFAULT argument as a list of default values in docstrings.
10276
10277 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
10278
10279 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10280
10281 2008-05-01 Martin Rudalics <rudalics@gmx.at>
10282
10283 * dispnew.c (change_frame_size_1): Preserve small windows when
10284 shrinking frames by calling set_window_height|width with third
10285 arg 2.
10286
10287 * window.h (struct window): Replace field too_small_ok by field
10288 resize_proportionally.
10289
10290 * window.c (make_window): Initialize resize_proportionally.
10291 (enlarge_window): Temporarily set resize_proportionally to make
10292 sure that shrink_windows does scale the window proportionally.
10293 (shrink_windows): When window has resize_proportionally set try
10294 to shrink it proportionally by stealing from other windows.
10295 (struct saved_window, Fset_window_configuration)
10296 (compare_window_configurations): Handle resize_proportionally.
10297 (WINDOW_TOTAL_SIZE): New macro.
10298 (window_min_size, shrink_windows, size_window): Use it.
10299 (check_min_window_sizes): Remove. Invalid values of
10300 window-min-height|width are handled by window_min_size_2 now.
10301 (size_window, Fsplit_window, enlarge_window)
10302 (adjust_window_trailing_edge, grow_mini_window): Don't call
10303 check_min_window_sizes.
10304 (window_min_size_2, window_min_size_1, window_min_size):
10305 New argument safe_p for retrieving "safe" minimum sizes.
10306 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10307 (adjust_window_trailing_edge, grow_mini_window):
10308 Adjust arguments of window_min_size... functions.
10309 (shrink_windows): Argument min_size removed. New argument
10310 safe_p allows shrinking windows to their safe minimum sizes.
10311 Calculate minimum size and decide whether a window shall be
10312 deleted for each window individually.
10313 (size_window): When nodelete_p equals 2, tell shrink_windows to
10314 delete windows only if their new minimum size is no more safe.
10315 (shrink_window_lowest_first): Call window_min_size_1 to make
10316 sure to preserve modeline of bottom-most window when resizing
10317 the minibuffer.
10318 (Fset_window_configuration, Fcurrent_window_configuration)
10319 (compare_window_configurations): Do not handle
10320 window-min-height|width any more.
10321 (syms_of_window): Clarify window-min-height|width doc-strings.
10322
10323 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10324
10325 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10326 some more. Copy some of the code from Ftry_completions.
10327 Remove special case code that dates back to initial revision when the
10328 slash was only added when necessary and that can't trigger nowadays.
10329
10330 2008-04-27 Kenichi Handa <handa@m17n.org>
10331
10332 * font.c (font_prop_validate): Signal `error' instead of `font'.
10333
10334 2008-04-29 Jason Rumney <jasonr@gnu.org>
10335
10336 * w32fns.c (Fw32_battery_status): New defun.
10337 (syms_of_w32fns): Defsubr it.
10338
10339 2008-04-28 Andreas Schwab <schwab@suse.de>
10340
10341 * dired.c (file_name_completion): Fix another mixing of encoded
10342 and decoded names.
10343
10344 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
10345
10346 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10347
10348 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
10349
10350 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10351
10352 2008-04-27 Andreas Schwab <schwab@suse.de>
10353
10354 * dired.c (file_name_completion): Fix inappropriate mixing of
10355 encoded and decoded names.
10356
10357 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10358
10359 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10360
10361 2008-04-26 Eli Zaretskii <eliz@gnu.org>
10362
10363 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10364 2008-03-31, it's not needed anymore with `struct stat' definition
10365 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10366 for the same reasons.
10367
10368 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10369
10370 * m/sparc.h: Additional redefinitions for GNU/Linux.
10371
10372 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10373
10374 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10375 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10376 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10377 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10378 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10379 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10380 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10381 Likewise.
10382
10383 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10384 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10385 (mac_ax_number_of_characters): Add externs.
10386 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10387 [USE_MAC_TSM]: Likewise.
10388 (mac_handle_text_input_event) [MAC_OSX]:
10389 Handle kEventTextInputOffsetToPos for no active input area case.
10390 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10391 (mac_handle_document_access_event)
10392 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10393 (install_application_handler) [MAC_OSX]: Register handlers for
10394 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10395 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10396 Register mac_handle_document_access_event.
10397
10398 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10399 Make functions non-static.
10400
10401 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10402
10403 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10404 (read_file_name_completion_ignore_case, insert_default_directory)
10405 (Qdefault_directory): Move to minibuffer.el.
10406 (Fread_file_name): Call the new `read-file-name' instead.
10407
10408 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10409
10410 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10411 Make function non-static.
10412 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10413 Remove function.
10414 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10415 Move to mactoolbox.c.
10416 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10417
10418 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10419 (mac_rect_make): New macro.
10420
10421 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10422 instead of float.
10423 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10424 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10425 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10426 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10427 CGRectMake.
10428 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10429 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10430 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10431 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10432 instead of WindowRef in argument type.
10433 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10434 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10435 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10436 instead of DISPLAY. All uses changed.
10437 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10438 (x_calc_absolute_position): Simplify so as not to use
10439 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10440
10441 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10442 instead of WindowRef in argument type.
10443 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10444 [TARGET_API_MAC_CARBON]: Remove externs.
10445 (create_apple_event, mac_event_parameters_to_lisp)
10446 [TARGET_API_MAC_CARBON]: Add externs.
10447
10448 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10449 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10450 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10451 is clicked.
10452 (x_activate_menubar): Remove extern for saved_menu_event_location.
10453 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10454 Move from mac.c.
10455
10456 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10457
10458 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10459 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10460
10461 2008-04-23 Jason Rumney <jasonr@gnu.org>
10462
10463 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10464 attributes only for local files.
10465
10466 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10467 default to Qlocal.
10468
10469 2008-04-22 Juri Linkov <juri@jurta.org>
10470
10471 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10472 read-buffer-to-switch instead of using the letter "B".
10473
10474 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10475
10476 * fileio.c (Qdefault_directory): New variable.
10477 (Fread_file_name): Use it to pass `dir' to the completion functions.
10478
10479 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
10480
10481 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10482
10483 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10484
10485 * keyboard.c (Vpre_help_message): Remove.
10486 (show_help_echo): Remove default C code.
10487
10488 * dired.c (directory_files_internal, file_name_completion):
10489 Only call ENCODE_FILE if the string is indeed decoded.
10490
10491 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10492
10493 * Makefile.in (TOOLKIT_DEFINES): Remove.
10494 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10495
10496 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10497
10498 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10499 (mactoolbox.o): New target.
10500
10501 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10502 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10503
10504 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10505 Use mac_set_frame_window_background instead of XSetWindowBackground.
10506 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10507 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10508 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10509 instead of SetWindowTitleWithCFString.
10510 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10511 Move function to mactoolbox.c.
10512 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10513 Use mac_set_window_modified instead of SetWindowModified.
10514 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10515 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10516 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10517 FrontNonFloatingWindow. Use mac_activate_window instead of
10518 ActivateWindow. Use mac_active_non_floating_window instead of
10519 ActiveNonFloatingWindow.
10520 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10521 Use mac_show_hourglass and mac_hide_hourglass.
10522 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10523 instead of GetGlobalMouse.
10524 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10525 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10526 Use mac_bring_window_to_front instead of BringToFront.
10527 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10528 mactoolbox.c.
10529 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10530 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10531 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10532 mactoolbox.c.
10533
10534 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10535 (XtPointer): Move typedef from macmenu.c.
10536 (enum button_type): Move enum from macmenu.c.
10537 (widget_value): Move typedef from macmenu.c.
10538 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10539 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10540 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10541 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10542 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10543 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10544 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10545 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10546 (Selection): Move typedef from macselect.c.
10547 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10548 macterm.c.
10549 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10550 (mac_is_window_collapsed, mac_bring_window_to_front)
10551 (mac_send_window_behind, mac_hide_window, mac_show_window)
10552 (mac_collapse_window, mac_front_non_floating_window)
10553 (mac_active_non_floating_window, mac_activate_window)
10554 (mac_move_window_structure, mac_move_window, mac_size_window)
10555 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10556
10557 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10558 (enum mac_menu_kind): Move enum to mactoolbox.c.
10559 (min_menu_id): Move variable to mactoolbox.c.
10560 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10561 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10562 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10563 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10564 [TARGET_API_MAC_CARBON]: Likewise.
10565 (XtPointer): Move typedef to macgui.h.
10566 (enum button_type): Move enum to macgui.h.
10567 (widget_value): Move typedef to macgui.h.
10568 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10569 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10570 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10571 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10572 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10573 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10574 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10575 (popup_activated_flag): Make variable non-static.
10576 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10577 (add_menu_item, fill_menu, dispose_menus):
10578 Move functions to mactoolbox.c.
10579 (restore_show_help_function, menu_target_item_handler)
10580 (install_menu_target_item_handler, mac_handle_dialog_event)
10581 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10582 [TARGET_API_MAC_CARBON]: Likewise.
10583 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10584 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10585 (find_and_call_menu_selection, name_is_separator): Make function
10586 non-static.
10587 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10588 to mactoolbox.c.
10589 (set_frame_menubar): Don't call install_menu_quit_handler.
10590 (menu_item_selection): New variable.
10591 (mac_menu_show): Use create_and_show_popup_menu.
10592 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10593 selection but set variable menu_item_selection. All uses changed.
10594 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10595 Call install_menu_quit_handler. Move to mactoolbox.c.
10596
10597 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10598 (Selection): Move typedef to macgui.h.
10599 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10600 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10601 Make variables non-static.
10602 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10603 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10604 Make functions non-static.
10605 (Vmac_service_selection) [MAC_OSX]: Likewise.
10606 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10607 (mac_valid_selection_target_p, mac_clear_selection)
10608 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10609 (mac_put_selection_value, mac_selection_has_target_p)
10610 (mac_get_selection_value, mac_get_selection_target_list)
10611 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10612 Move functions to mactoolbox.c.
10613 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10614 Likewise.
10615 (copy_scrap_flavor_data, mac_handle_service_event)
10616 (install_service_handler) [MAC_OSX]: Likewise.
10617 (syms_of_macselect) <Vmac_dnd_known_types>:
10618 Use mac_dnd_default_known_types.
10619
10620 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10621 Move to mactoolbox.c.
10622 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10623 (Fx_selection_owner_p): Add EXFUN.
10624 (install_window_handler, remove_window_handler, XSetWindowBackground):
10625 Remove externs.
10626 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10627 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10628 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10629 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10630 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10631 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10632 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10633 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10634 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10635 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10636 (mac_valid_selection_target_p, mac_clear_selection)
10637 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10638 (mac_put_selection_value, mac_selection_has_target_p)
10639 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10640 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10641 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10642 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10643 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10644 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10645 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10646 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10647 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10648
10649 * mactoolbox.c: New file.
10650
10651 2008-04-18 Jason Rumney <jasonr@gnu.org>
10652
10653 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10654
10655 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10656
10657 * character.c (Fmultibyte_char_to_unibyte):
10658 Return latin1 chars unchanged.
10659
10660 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10661 relocated if it points to `name'.
10662
10663 2008-04-17 Kenichi Handa <handa@m17n.org>
10664
10665 * data.c (Faset): Allow setting a multibyte character in an
10666 ASCII-only unibyte string.
10667
10668 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10669
10670 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10671
10672 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10673 done in config.h.
10674
10675 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
10676
10677 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10678 (Fchar_direction): Add usage in the docstring.
10679
10680 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
10681
10682 * keyboard.c (read_key_sequence): Remove always-true checks.
10683
10684 2008-04-14 Jason Rumney <jasonr@gnu.org>
10685
10686 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10687 compatibility struct, for better underline positioning.
10688
10689 2008-04-13 David Hansen <david.hansen@gmx.net>
10690
10691 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10692 string.
10693
10694 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10695
10696 * m/hp800.h (XUINT, XSET): Remove.
10697
10698 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
10699
10700 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10701 previous change.
10702
10703 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10704
10705 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10706 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10707
10708 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10709
10710 * keymap.h (map_keymap_canonical): Declare.
10711 * xmenu.c (single_keymap_panes): Use it.
10712
10713 2008-04-11 Glenn Morris <rgm@gnu.org>
10714
10715 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10716 set the target's value to that of the alias.
10717
10718 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10719
10720 * term.c (set_tty_color_mode): Left over typo.
10721
10722 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
10723
10724 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10725 only after check for file name handler functions. Signal, when
10726 native functionality is not supported.
10727 (syms_of_fileio): Declare it unconditionally.
10728
10729 2008-04-10 Jason Rumney <jasonr@gnu.org>
10730
10731 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10732 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10733
10734 * w32.c (logon_network_drive): Also logon to remote drives that
10735 are mapped to drive letters.
10736
10737 2008-04-10 Glenn Morris <rgm@gnu.org>
10738
10739 * xdisp.c (truncate-partial-width-windows): Doc fix.
10740
10741 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10742
10743 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10744 Move functions to minibuffer.el.
10745 (syms_of_fileio): Don't declare them.
10746
10747 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10748
10749 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10750 (syms_of_minibuf): Remove its initialization.
10751
10752 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10753
10754 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
10755
10756 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10757
10758 2008-04-09 Jason Rumney <jasonr@gnu.org>
10759
10760 * makefile.w32-in (distclean): Delete makefile too.
10761 (maintainer-clean): New target.
10762
10763 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10764
10765 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10766 for new font backend and composite cases.
10767
10768 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10769
10770 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10771 Most of the code moved to run_timers.
10772 (do_pending_atimers): Call run_timers.
10773 (run_timers): New function.
10774
10775 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10776 run atimers.
10777
10778 * process.c (wait_reading_process_output): The same as above.
10779
10780 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10781
10782 * minibuf.c (last_exact_completion): Remove variable.
10783 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10784 (complete_and_exit_1, complete_and_exit_2)
10785 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10786 (Fdisplay_completion_list, display_completion_list_1)
10787 (Fminibuffer_completion_help, Fself_insert_and_exit)
10788 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10789 minibuffer.el.
10790 (syms_of_minibuf): Remove corresponding initializations.
10791
10792 * keyboard.c (Qdeactivate_mark): New var.
10793 (command_loop_1): Use it to call `deactivate-mark'.
10794 (syms_of_keyboard): Initialize it.
10795
10796 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10797 to another frame.
10798 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10799 Don't call set_tty_color_mode.
10800 (store_frame_param): Reset previous_frame rather than call
10801 set_tty_color_mode.
10802 * term.c (set_tty_color_mode): Rewrite.
10803 * dispextern.h (set_tty_color_mode): New type.
10804 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10805
10806 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10807
10808 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10809 for generic chars, which do not exist any more in emacs-unicode.
10810
10811 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
10812
10813 * coding.c (detect_coding_emacs_mule)
10814 (Ffind_operation_coding_system): Fix typo.
10815
10816 2008-04-08 Jason Rumney <jasonr@gnu.org>
10817
10818 * w32uniscribe.c (SNAME): Extract only symbol name.
10819
10820 * w32font.h (struct w32_metric_cache): New struct.
10821 (w32font_info): Use it.
10822 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10823 (CACHE_BLOCKSIZE): New constants.
10824
10825 * w32font.c (Qja, Qko, Qzh): New symbols.
10826 (syms_of_w32font): Initialise them.
10827 (font_matches_spec): Use them to filter by language.
10828 (recompute_cached_metrics): Remove function.
10829 (compute_metrics, clear_cached_metrics): New functions.
10830 (w32font_encode_char): Use them to manage metric cache.
10831 (w32font_text_extents): Cache metrics for all glyphs on demand.
10832 Delay converting glyph indices to WORD until needed.
10833 (w32font_open_internal): Initialize metric cache to empty.
10834 (registry_to_w32_charset): Charset should always be a symbol.
10835 (fill_in_logfont, list_all_matching_fonts): Family should
10836 always be a symbol.
10837
10838 2008-04-06 Jason Rumney <jasonr@gnu.org>
10839
10840 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10841 Give up if glyph indices not supported. Use uniscribe obtained
10842 ABC widths for individual metrics. Map glyph clusters back to
10843 characters using fClusterStart flag. Return number of glyphs
10844 produced, not chars processed.
10845 (uniscribe_shape): Map char at FROM to current glyph.
10846
10847 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10848
10849 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10850 Use SetMenuItemHierarchicalMenu.
10851
10852 2008-04-05 Jason Rumney <jasonr@gnu.org>
10853
10854 * image.c (pbm_load): Allow color values up to 65535.
10855 Throw an error if max_color_idx is outside the supported range.
10856 Report an error when image size is invalid.
10857 Read two bytes at a time when raw images have max_color_idx above 255.
10858
10859 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10860
10861 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10862 cFileName a file name that includes `?' characters, use the 8+3
10863 alias in cAlternateFileName instead.
10864
10865 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10866
10867 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10868 append "CCL: Quitted" when the CCL program is quitted.
10869 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10870
10871 * ccl.h (struct ccl_program): New member quit_silently.
10872
10873 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
10874
10875 * search.c (compile_pattern_1): Treat non-nil and non-string of
10876 search-spaces-regexp as nil.
10877
10878 * minibuf.c (Fassoc_string): Tweak docstring.
10879
10880 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10881
10882 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10883 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10884 2008-03-14 to force inode be positive.
10885
10886 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10887 _S_* ones, since we now use our own sys/stat.h.
10888 (stat, fstat): Don't mangle the inode number.
10889 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10890
10891 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10892
10893 * frame.h (struct frame): Give one more bit to `visible' since we use
10894 values larger than 1 to indicate obscured frames on ttys.
10895
10896 * keymap.c (Qkeymap_canonicalize): New var.
10897 (Fmap_keymap_internal): New fun.
10898 (describe_map): Use keymap-canonicalize.
10899
10900 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10901 (Fundo_boundary): Set them.
10902 (syms_of_undo): Initialize them.
10903 (record_point): Use them instead of last_point_position*.
10904 (last_undo_buffer): Change type.
10905
10906 2008-04-04 Jason Rumney <jasonr@gnu.org>
10907
10908 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10909 (recompute_cached_metrics): Don't set ascent and descent per char.
10910
10911 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10912 (uniscribe_check_otf): Add GC protection before consing.
10913 Rearrange loop for counting features.
10914
10915 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10916
10917 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10918 buffer with byte-size of source buffer.
10919
10920 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
10921
10922 * callint.c (Fcall_interactively): Handle temporary region even
10923 when shift-select-mode is off.
10924
10925 2008-04-03 Jason Rumney <jasonr@gnu.org>
10926
10927 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10928
10929 2008-04-03 Kenichi Handa <handa@m17n.org>
10930
10931 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10932 (CATEGORY_MASK_UTF_16): Likewise.
10933 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10934 binary file.
10935 (detect_coding): Add null-byte detection for a binary file.
10936 (detect_coding_system): Likewise.
10937
10938 2008-04-03 Jason Rumney <jasonr@gnu.org>
10939
10940 * w32uniscribe.c: New file.
10941
10942 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10943
10944 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10945
10946 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10947 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10948 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10949 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10950 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10951 (Qphonetic): New symbols.
10952 (syms_of_w32font): Initialize them.
10953 (font_supported_scripts): Use them.
10954 (w32font_list_family): List all charsets.
10955 (w32font_text_extents, recompute_cached_metrics): Fix metric
10956 calculations.
10957 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10958 Give opentype fonts their own format.
10959 (font_matches_spec): New arguments backend and logfont.
10960 Handle :otf spec for uniscribe backend.
10961 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10962 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10963
10964 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10965 font backend.
10966 (globals_of_w32fns): Initialize uniscribe font backend.
10967
10968 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10969 dependencies.
10970 (w32uniscribe.$(O)): New file to build.
10971 (FONT_OBJ): Include w32uniscribe.$(O).
10972 (LIBS): Add uniscribe libraries.
10973
10974 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10975
10976 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
10977
10978 * callint.c (Vshift_select_mode): New var.
10979 (Finteractive): Document new ^ spec.
10980 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10981 is present.
10982
10983 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10984 (command_loop_1): Avoid running the direct display versions of
10985 forward-char and backward-char if shift-selection may occur.
10986 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10987 shift-translation takes place.
10988
10989 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10990 avoid clobbering by define-minor-mode.
10991
10992 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10993 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10994
10995 * syntax.c (Fforward_word): Add ^ interactive spec.
10996
10997 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10998 (Fscroll_right): Add ^ interactive spec.
10999
11000 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11001
11002 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11003
11004 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11005
11006 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11007
11008 2008-03-31 Juri Linkov <juri@jurta.org>
11009
11010 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11011
11012 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11013
11014 * gtkutil.c (xg_set_geometry): Fix indentation.
11015 (xg_resize_outer_widget): Remove.
11016 (x_wm_size_hint_off): Fix indentation.
11017 (xg_frame_set_char_size): Call flush_and_sync after
11018 gtk_window_resize.
11019 (x_wm_set_size_hint): Pass NULL as geometry window to
11020 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11021 Add menu bar and tool bar height to base height.
11022 (xg_update_frame_menubar, free_frame_menubar)
11023 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11024 (update_frame_tool_bar, free_frame_tool_bar):
11025 Change xg_resize_outer_widget to xg_frame_set_char_size.
11026
11027 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
11028
11029 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11030 (Fdbus_call_method): New parameter TIMEOUT.
11031 (dbus-send-signal): Optimize UNGCPRO call.
11032
11033 2008-03-29 Juri Linkov <juri@jurta.org>
11034
11035 * window.c (Fdisplay_buffer): Move call to
11036 Vsplit_window_preferred_function out of conditions that check
11037 if window is eligible for vertical splitting.
11038 When Vsplit_window_preferred_function is non-nil, call it and use
11039 its non-nil return value as window. Otherwise, continue doing
11040 vertical splitting using Fsplit_window with arg horflag=nil.
11041 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11042 default value from `split-window' to nil.
11043
11044 2008-03-29 Juri Linkov <juri@jurta.org>
11045
11046 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11047 for interactive code letters 'b' and 'B'.
11048
11049 2008-03-29 Eli Zaretskii <eliz@gnu.org>
11050
11051 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11052 multibyte string.
11053
11054 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11055
11056 * keyboard.c (pending_funcalls): New var.
11057 (timer_check): Run it.
11058 (syms_of_keyboard): Initialize it.
11059 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11060 (Vdelete_terminal_functions): New vars.
11061 (syms_of_terminal): Initialize them.
11062 (Fdelete_terminal): Run delete-terminal-functions.
11063 * xdisp.c (safe_eval): Rewrite.
11064 (safe_call2): New fun.
11065 * frame.c (Qdelete_frame_functions): New var.
11066 (syms_of_frame): Initialize it.
11067 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11068 * lisp.h (safe_call2, pending_funcalls): Declare.
11069
11070 2008-03-28 Andreas Schwab <schwab@suse.de>
11071
11072 * indent.c (Fmove_to_column): Move declaration before statements.
11073
11074 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11075
11076 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11077 (struct frame): Use bit fields for boolean vars.
11078
11079 * process.c (server_accept_connection): Simplify naming.
11080 (emacs_get_tty_pgrp): Use SDATA.
11081
11082 * coding.c (decode_coding_object): Fix last change.
11083
11084 2008-03-27 Jason Rumney <jasonr@gnu.org>
11085
11086 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11087
11088 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11089
11090 * charset.c (Fdefine_charset_internal): Change the way of
11091 registering charsets in Vcharset_order_list.
11092 (syms_of_charset): Make the charset `eight-bit' supplementary.
11093
11094 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11095
11096 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11097 operations, to avoid having the difference between pointers
11098 overflow.
11099
11100 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11101
11102 * indent.c (check_display_width): New fun.
11103 (scan_for_column): Use it.
11104
11105 * data.c (syms_of_data): Mark most-positive-fixnum and
11106 most-negative-fixnum as constants.
11107
11108 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11109
11110 * indent.c (scan_for_column): Extract from current_column_1.
11111 Merge with the same code from Fmove_to_column.
11112 (current_column_1, Fmove_to_column): Use it.
11113
11114 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11115
11116 * keymap.c (map_keymap_internal): New fun.
11117 (map_keymap): Use it.
11118 (Fmap_keymap_internal): New fun.
11119 (Fmap_keymap): Remove left-out test from before make_save_value.
11120
11121 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11122
11123 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11124 Use XCAR/XCDR.
11125
11126 * process.h (struct Lisp_Process): Remove filter_multibyte.
11127 * process.c (QCfilter_multibyte): Remove.
11128 (setup_process_coding_systems): Don't use filter_multibyte.
11129 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11130 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11131 (Fset_process_filter_multibyte): Change the coding-system to
11132 approximate the previous behavior.
11133 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11134 coding-system.
11135
11136 * coding.c (decode_coding_object): When not decoding into a buffer,
11137 obey the coding system's preference of (uni|multi)byte.
11138
11139 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11140
11141 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11142 every char is changed and has a different byte-length.
11143 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11144 Fix int -> EMACS_INT.
11145
11146 2008-03-23 David Hansen <david.hansen@gmx.net>
11147
11148 * dbusbind.c (xd_read_message): Remove extra copying of message
11149 strings. Check for NULL `interface' or `member'.
11150
11151 2008-03-22 Eli Zaretskii <eliz@gnu.org>
11152
11153 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11154 cFileName a file name that includes `?' characters, use the 8+3
11155 alias in cAlternateFileName instead.
11156
11157 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11158
11159 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11160
11161 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11162
11163 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11164 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11165 work on current_buffer only instead (that was already the case
11166 for some of the code anyway).
11167 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11168 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11169 (SET_PT, SET_PT_BOTH): Adjust.
11170 * intervals.h (set_point, temp_set_point, set_point_both)
11171 (temp_set_point_both): Remove redundant declarations.
11172
11173 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11174
11175 * fileio.c (Finsert_file_contents):
11176 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11177 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11178 when buffer != current_buffer anyway.
11179
11180 2008-03-20 Andreas Schwab <schwab@suse.de>
11181
11182 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11183 as default.
11184
11185 2008-03-19 Jason Rumney <jasonr@gnu.org>
11186
11187 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11188 (syms_of_w32fns): Initialize them.
11189 (HOURGLASS_ID): New constant.
11190 (x_window_to_frame): Don't check hourglass_window.
11191 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11192 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11193 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11194 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11195 Only change the cursor if hourglass is not active.
11196 (Fx_create_frame): Initialize frame's current_cursor.
11197 (hourglass_atimer): Remove.
11198 (hourglass_started): New function.
11199 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11200 (show_hourglass): Adapt to w32, changing argument to frame.
11201
11202 * w32term.h (struct w32_output): Remove hourglass_window.
11203 Add current_cursor.
11204
11205 * eval.c (call_debugger, Fsignal):
11206 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11207 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11208 (Fexecute_extended_command, cancel_hourglass_unwind):
11209 * minibuf.c (read_minibuf):
11210 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11211
11212 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11213
11214 * window.c (run_funs): New fun.
11215 (run_window_configuration_change_hook): Use it to run the buffer-local
11216 and the global part of the hook.
11217
11218 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11219 (unwind_format_mode_line): Restore selected window.
11220 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11221
11222 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11223
11224 * editfns.c (Fchar_equal): Check they are valid characters.
11225
11226 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11227
11228 2008-03-17 Andreas Schwab <schwab@suse.de>
11229
11230 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11231 against a charset.
11232
11233 * lisp.h (Fbuffer_list): Declare.
11234
11235 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
11236
11237 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11238 handlebox_widget is != 0.
11239
11240 2008-03-16 Juri Linkov <juri@jurta.org>
11241
11242 * callint.c (Fcall_interactively): For interactive code letters
11243 'b' and 'B' put the buffer list into the list of default "future"
11244 values of the minibuffer.
11245
11246 2008-03-16 Andreas Schwab <schwab@suse.de>
11247
11248 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11249 modifiers.
11250
11251 * regex.c (re_match_2_internal): Correct matching of a charset
11252 against latin-1 characters.
11253
11254 2008-03-16 Kenichi Handa <handa@m17n.org>
11255
11256 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11257 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11258 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11259 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11260 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11261 CHAR_STRING_ADVANCE.
11262 (produce_chars): Fix for the case that the source and the
11263 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11264 instead of CHAR_STRING_ADVANCE.
11265 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11266 STRING_CHAR_ADVANCE.
11267
11268 2008-03-15 Andreas Schwab <schwab@suse.de>
11269
11270 * regex.c (re_match_2_internal): Correct matching of eight bit
11271 characters in unibyte strings.
11272
11273 2008-03-15 Martin Rudalics <rudalics@gmx.at>
11274
11275 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11276 at end of range when it coincides with the end of the buffer.
11277
11278 2008-03-14 Eli Zaretskii <eliz@gnu.org>
11279
11280 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11281
11282 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11283
11284 2008-03-14 Jason Rumney <jasonr@gnu.org>
11285
11286 * editfns.c (initial_tz): New variable.
11287 (syms_of_editfns): Initialize it.
11288 (Fset_time_zone_rule): Set it when first called.
11289 Use it when TZSTRING is nil.
11290
11291 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11292 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11293 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11294 (globals_of_w32fns): Initialize them.
11295 (compute_tip_xy): Use them to position tooltips.
11296
11297 2008-03-14 Glenn Morris <rgm@gnu.org>
11298
11299 * emacs.c (main): Revert previous change.
11300 (standard_args): Revert -internal-script back to -scriptload,
11301 and remove the long-option form.
11302
11303 2008-03-13 Glenn Morris <rgm@gnu.org>
11304
11305 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11306 Remove option -enable-font-backend.
11307
11308 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11309
11310 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11311
11312 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11313
11314 * xterm.c (x_connection_closed): For GTK: If this is the last
11315 terminal just exit without closing the display.
11316
11317 2008-03-11 Jason Rumney <jasonr@gnu.org>
11318
11319 * w32font.c (w32font_full_name): Use floor to round.
11320
11321 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11322
11323 * sound.c (alsa_configure): Declare vol at beginning of block.
11324
11325 * fontset.c (Ffontset_info): Remove extra semicolon.
11326
11327 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11328
11329 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11330 size of resulting string.
11331
11332 2008-03-10 Jason Rumney <jasonr@gnu.org>
11333
11334 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11335
11336 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11337
11338 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11339 Don't pretend as if characters with display property haven't been
11340 consumed for string-replacing-string case.
11341
11342 2008-03-08 Kim F. Storm <storm@cua.dk>
11343
11344 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11345 (get_next_display_element, next_element_from_string)
11346 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11347
11348 2008-03-08 Andreas Schwab <schwab@suse.de>
11349
11350 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11351
11352 2008-03-06 Jason Rumney <jasonr@gnu.org>
11353
11354 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11355 when charset not specified. Only translate ANSI to unicode when
11356 font_type is truetype.
11357 (w32font_coverage_ok): New function.
11358 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11359
11360 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11361
11362 * lread.c (Fread_char): Resolve modifiers.
11363 (Fread_char_exclusive): Likewise.
11364
11365 * character.c (char_resolve_modifier_mask): New function.
11366 (char_string): Use char_resolve_modifier_mask.
11367 (Fchar_resolve_modifiers): New function.
11368 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11369 function.
11370
11371 2008-03-04 Jason Rumney <jasonr@gnu.org>
11372
11373 * makefile.w32-in: Always include w32font.c in the build.
11374 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11375
11376 2008-03-04 Andreas Schwab <schwab@suse.de>
11377
11378 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11379 (versionclean): Likewise.
11380
11381 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
11382
11383 * .cvsignore: Add oo.
11384
11385 2008-03-03 Andreas Schwab <schwab@suse.de>
11386
11387 * coding.c (decode_coding_object): Inhibit gap shrinking while
11388 decoding in place.
11389
11390 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11391
11392 * w32term.c: Remove unused include "gnu.h".
11393 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11394
11395 * gnu.h: Rename to ...
11396 * emacs-icon.h: ... this.
11397 * xterm.c: Use emacs-icon.h instead of gnu.h.
11398 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11399
11400 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
11401
11402 * w32font.c: Include math.h.
11403
11404 2008-03-03 Jason Rumney <jasonr@gnu.org>
11405
11406 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11407 Compute options separately.
11408 (w32font_open_internal): Set glyph_idx before caching metrics.
11409
11410 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11411 Define if system headers don't.
11412 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11413 (w32font_encode_char): Don't declare here.
11414
11415 * w32font.c (Quniscribe, QCformat): New symbols.
11416 (syms_of_w32font): Define them.
11417 (w32font_has_char): Indicate uncertainty.
11418 (w32font_encode_char): Encode as glyph point. Make static.
11419 (recompute_cached_metrics): New function.
11420 (w32font_open_internal): Use it. Set font to use glyph points
11421 initially. Set format based on type of font.
11422 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11423 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11424 on it. Set format based on information available here.
11425 (add_font_entity_to_list): Identify backend based on opentype_only.
11426
11427 2008-03-02 Andreas Schwab <schwab@suse.de>
11428
11429 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11430
11431 * coding.c (decode_coding_big5, produce_chars):
11432 Fix typos in last change.
11433
11434 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11435
11436 * gnu.h: New icon.
11437
11438 2008-03-02 Kenichi Handa <handa@m17n.org>
11439
11440 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11441 `dos', don't decode '\r' if that is the last in the source.
11442 (decode_coding_utf_16, decode_coding_emacs_mule)
11443 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11444 (decode_coding_raw_text, decode_coding_charset): Likewise.
11445 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11446
11447 2008-03-01 Jason Rumney <jasonr@gnu.org>
11448
11449 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11450
11451 2008-03-01 Kim F. Storm <storm@cua.dk>
11452
11453 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11454
11455 2008-03-01 Jason Rumney <jasonr@gnu.org>
11456
11457 * w32font.c (w32font_full_name): New function.
11458 (w32font_open_internal): Use it.
11459
11460 2008-03-01 Kim F. Storm <storm@cua.dk>
11461
11462 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11463
11464 2008-03-01 Jason Rumney <jasonr@gnu.org>
11465
11466 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11467
11468 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11469
11470 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11471 xg_frame_resized when the event is for the edit widget.
11472
11473 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11474
11475 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11476 set_char_size.
11477 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11478 operations on widgets here. Just set frame size if needed.
11479 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11480 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11481 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11482 the whole frame.
11483 (xg_create_tool_bar): Move attachment of the tool bar to
11484 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11485 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11486
11487 2008-03-01 Jason Rumney <jasonr@gnu.org>
11488
11489 * w32fns.c (w32_msg_pump): Disable debug code.
11490
11491 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11492
11493 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11494
11495 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11496
11497 * xdisp.c (next_overlay_string): Don't set
11498 overlay_strings_at_end_processed_p if we're currently reading from
11499 a display string.
11500
11501 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11502
11503 * xdisp.c (get_overlay_strings_1): Fix typo.
11504
11505 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11506
11507 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11508
11509 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11510
11511 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11512
11513 * xdisp.c (display_mode_element): Cancel the previous change.
11514 (decode_mode_spec): Likewise.
11515 (handle_auto_composed_prop): Don't make composition if it->string
11516 is a string.
11517
11518 2008-02-27 Kim F. Storm <storm@cua.dk>
11519
11520 * lisp.h (GLYPH): Change type from int to struct with separate char
11521 and face_id members.
11522 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11523 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11524 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11525 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11526 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11527 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11528 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11529 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11530 handle new Lisp glyph code encoding, either an integer or a cons.
11531
11532 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11533 (GLYPH_ALIAS): Delete.
11534 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11535 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11536 (GLYPH_FROM_CHAR): Replace macro by ...
11537 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11538
11539 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11540 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11541 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11542 (GLYPH_INVALID_P): New macro.
11543 (spec_glyph_lookup_face): Update prototype.
11544
11545 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11546 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11547 new glyph code encoding.
11548 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11549 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11550
11551 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11552 Adapt to new glyph type and new glyph code encoding.
11553
11554 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11555
11556 * indent.c (current_column, current_column_1, Fmove_to_column)
11557 (compute_motion): Adapt to new glyph code encoding.
11558
11559 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11560
11561 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
11562
11563 * process.c (wait_reading_process_output): Check for window
11564 changes caused by timers.
11565 Suggested by Johan Bockgård.
11566
11567 2008-02-27 Glenn Morris <rgm@gnu.org>
11568
11569 * emacs.c (USAGE1): Add `--disable-font-backend'.
11570
11571 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11572
11573 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11574 is made to the buffer.
11575
11576 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11577
11578 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11579 (face_at_string_position):
11580 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11581 (face_at_string_position):
11582 * xdisp.c (display_string, next_overlay_change):
11583 * buffer.h (overlays_at):
11584 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11585 Update callers.
11586
11587 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
11588
11589 * editfns.c (Fformat): Doc fix.
11590
11591 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
11592
11593 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11594 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11595 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11596
11597 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11598
11599 * buffer.c (Fbuffer_swap_text): New function.
11600 (syms_of_buffer): Defsubr it.
11601
11602 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
11603
11604 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11605
11606 2008-02-25 Jason Rumney <jasonr@gnu.org>
11607
11608 * w32font.c (w32font_draw): Draw one character at a time when padding.
11609
11610 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11611
11612 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11613 Handle a nil arg. Use run_window_configuration_change_hook.
11614 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11615 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11616 Use run_window_configuration_change_hook.
11617
11618 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11619
11620 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11621 1-pixel width.
11622
11623 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11624
11625 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11626 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11627 if the glyph in the font is zero pixel with.
11628
11629 * dispextern.h (struct glyph_string): New member padding_p.
11630
11631 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11632
11633 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11634
11635 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11636
11637 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11638
11639 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11640
11641 2008-02-25 Jason Rumney <jasonr@gnu.org>
11642
11643 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11644
11645 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11646
11647 Allow fine-grained image-cache flushing.
11648 * dispextern.h (struct image): Add `dependencies' field.
11649 (clear_image_caches): Change arg to Lisp_Object.
11650 * image.c (make_image): Initialize `dependencies' field.
11651 (clear_image_cache): Change arg to allow fine-grained flushing.
11652 Perform the flush even if image-cache-eviction-delay is nil.
11653 (clear_image_caches): Change arg to Lisp_Object.
11654 (Fclear_image_cache): Expand meaning of the argument.
11655 (mark_image): Mark `dependencies' field.
11656 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11657 (lface_hash): Use XHASH rather than XFASTINT.
11658 (face_at_buffer_position): Fix int -> EMACS_INT position.
11659 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11660 (select_frame_for_redisplay): Remove code duplication.
11661 (redisplay_internal): Adapt arg to call to clear_image_caches.
11662
11663 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11664
11665 * s/vms4-0.h:
11666 * s/vms4-2.h:
11667 * s/vms4-4.h:
11668 * s/vms5-5.h: Remove, unused.
11669
11670 * s/irix5-2.h:
11671 * s/irix6-0.h:
11672 * s/riscos5.h:
11673 * s/mach-bsd4-3.h:
11674 * m/mips4.h: Remove files for obsolete systems.
11675
11676 * Makefile.in:
11677 * filelock.c:
11678 * unexmips.c:
11679 * m/hp9000s300.h:
11680 * m/iris4d.h:
11681 * s/aix3-1.h:
11682 * s/hpux.h:
11683 * s/msdos.h:
11684 * s/usg5-0.h:
11685 * s/usg5-2-2.h:
11686 * s/usg5-2.h:
11687 * s/usg5-3.h: Remove references to obsolete variables.
11688
11689 * s/irix5-0.h: Remove, move all the contents ...
11690 * s/irix6-5.h: ... here. Simplify.
11691 * config.in: Regenerate.
11692
11693 2008-02-24 Jason Rumney <jasonr@gnu.org>
11694
11695 * w32term.c (x_draw_glyph_string_background): Clear the background
11696 manually when cleartype is in use.
11697 (x_draw_glyph_string_foreground): Draw text transparently when
11698 cleartype is in use.
11699
11700 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11701 a font into it unless we have to.
11702
11703 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11704
11705 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11706 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
11707
11708 2008-02-18 Jason Rumney <jasonr@gnu.org>
11709
11710 * w32fns.c (Fw32_shell_execute): Encode parameters.
11711
11712 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11713
11714 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11715
11716 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
11717
11718 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11719
11720 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11721
11722 * xterm.c (x_set_offset): Don't change the gravity if
11723 CHANGE_GRAVITY is -1.
11724
11725 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
11726
11727 * fileio.c (auto_save_error_occurred): New var.
11728 (auto_save_error): Set it.
11729 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11730 error occurred.
11731
11732 2008-02-23 Eli Zaretskii <eliz@gnu.org>
11733
11734 * w32.c (globals_of_w32): Add initializations for
11735 g_b_init_get_sid_sub_authority and
11736 g_b_init_get_sid_sub_authority_count.
11737
11738 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11739
11740 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11741 (font_parse_xlfd): Use them for sanity check.
11742 (Finternal_set_font_style_table): Make sure the table is bijective.
11743
11744 Consolidate the image_cache to the terminal struct.
11745 * termhooks.h (P_): Remove redundant def.
11746 (struct terminal): New field `image_cache'.
11747 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11748 of FRAME_X_IMAGE_CACHE.
11749 * xterm.h (struct x_display_info): Remove image_cache field.
11750 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11751 * w32term.h (struct w32_display_info): Remove image_cache field.
11752 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11753 * macterm.h (struct mac_display_info): Remove image_cache field.
11754 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11755 * xterm.c (x_term_init):
11756 * w32term.c (w32_term_init):
11757 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11758 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11759 Remove declarations.
11760 (clear_image_caches, mark_image_cache): New declarations.
11761 * xfaces.c (clear_face_cache):
11762 * xdisp.c (redisplay_internal): Use clear_image_caches.
11763 * image.c (clear_image_cache): Don't check that a frame is on
11764 a window-system before checking if it shares the same cache.
11765 (clear_image_caches): New function.
11766 (Fclear_image_cache): Use it.
11767 (mark_image): Move from allo.c.
11768 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11769 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11770 (mark_object): Don't call mark_image_cache for frames.
11771 (mark_terminals): Call mark_image_cache.
11772
11773 * lisp.h (Fdelete_terminal): Declare.
11774
11775 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11776 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11777 wrong_type_argument.
11778
11779 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11780
11781 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11782 malayalam.el, and tamil.el. Add sinhala.el.
11783
11784 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11785
11786 * xterm.c (x_connection_closed): Consolidate identical tests.
11787 (x_delete_terminal): Don't crash if called via x_connection_closed.
11788
11789 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11790
11791 * xdisp.c (decode_mode_spec): New arg string.
11792 (display_mode_element): Adjust for the above change.
11793
11794 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11795
11796 * callint.c (Fcall_interactively): Use AREF.
11797
11798 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11799
11800 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11801
11802 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11803
11804 * xfns.c (Fx_show_tip): Set string to " " if empty.
11805
11806 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11807
11808 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11809 with Qt.
11810
11811 2008-02-17 Kenichi Handa <handa@m17n.org>
11812
11813 * ftfont.c (ftfont_shape): Return Lispy number.
11814
11815 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11816 for GCs.
11817 (Finternal_set_font_selection_order): Call font_update_sort_order
11818 only when enable_font_backend is set.
11819 (realize_x_face): Set face->font_info to that of default face only
11820 when enable_font_backend is set.
11821
11822 * xdisp.c (handle_composition_prop): Set it->c to the fist
11823 character of the composed region.
11824 (fill_composite_glyph_string): Set base_face->font_info to
11825 s->font_info. Get a face for ascii from base_face->ascii_face.
11826 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11827 with a face already decided.
11828 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11829 non-negative.
11830 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11831 call font_prepare_composition unconditionally.
11832
11833 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11834
11835 * xterm.h (struct x_display_info): New member font.
11836
11837 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11838 (x_set_mouse_face_gc, x_new_font): Likewise.
11839 (x_term_init): Setup display_info->font.
11840 (x_delete_terminal): Free display_info->font.
11841
11842 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11843
11844 * ftxfont.c (ftxfont_default_fid): Delete it.
11845 (ftxfont_open): Set xfont->fid to 0.
11846 (ftxfont_end_for_frame): Clear data specific to the frame and the
11847 font-driver.
11848
11849 * xftfont.c (xftfont_default_fid): Delete it.
11850 (xftfont_open): Set xfont->fid to 0.
11851
11852 * fontset.c (FONTSET_OBJLIST): New macro.
11853 (fontset_find_font): Update font-object list of the fontset.
11854 (free_realized_fontset): New function.
11855 (free_face_fontset): Call free_realized_fontset.
11856 (Ffont_info): Call font_close_object only when enable_font_backend
11857 is set.
11858
11859 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11860 [HAVE_NTGUI]: Include w32term.h.
11861 [MAC_OS]: Include macterm.ch.
11862 (font_otf_ValueRecord): Use make_number.
11863 (font_finish_cache): Fix handling of reference count.
11864 (font_clear_cache): Update num_fonts.
11865 (font_open_entity): Update smallest_char_width and
11866 smallest_font_height of the frame.
11867 (font_close_object): Update num_fonts.
11868 (Fclear_font_cache): Fix finding the target cache data.
11869
11870 2008-02-16 Glenn Morris <rgm@gnu.org>
11871
11872 * fontset.c (Finternal_char_font): Fix compilation warning.
11873
11874 2008-02-16 Eli Zaretskii <eliz@gnu.org>
11875
11876 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11877 instead of char arrays. Enlarge the size of array passed to
11878 get_token_information.
11879
11880 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11881 warnings.
11882
11883 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11884
11885 * .gdbinit: Don't set `args', it breaks gdb --args.
11886
11887 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11888
11889 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11890 within a narrowed buffer.
11891
11892 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11893
11894 * coding.c (decode_coding_object, encode_coding_object):
11895 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11896
11897 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11898
11899 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11900 hardcoding 1.
11901 (detect_coding_system):
11902 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11903 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11904 * insdel.c (insert_from_gap):
11905 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11906 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11907 (string_to_multibyte):
11908 * character.c (chars_in_text, multibyte_chars_in_text):
11909 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11910
11911 * character.h (FETCH_STRING_CHAR_ADVANCE)
11912 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11913 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11914 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11915
11916 * casefiddle.c (casify_region): Only call after-change and composition
11917 functions on the part of the region that was changed.
11918
11919 * keyboard.c (read_avail_input):
11920 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11921
11922 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11923
11924 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11925 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11926
11927 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
11928
11929 * w32menu.c (push_submenu_start, push_submenu_end)
11930 (push_left_right_boundary, push_menu_pane, push_menu_item):
11931 * keyboard.c (read_key_sequence): Don't pass args with side effects
11932 to AREF, it fails when compiling with -DENABLE_CHECKING.
11933
11934 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11935
11936 * Makefile.in (${lispsource}international/charprop.el):
11937 Delete this target.
11938
11939 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11940 emacs-unicode-2.
11941
11942 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11943
11944 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11945
11946 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11947
11948 * frame.c (Qnoelisp): New symbol.
11949 (syms_of_frame): Initialize it.
11950 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11951 harmless Elisp code, from a strong `force' from x_connection_closed.
11952 * frame.h (Qnoelisp): Declare.
11953 * xterm.c (x_connection_closed): Pass `noelisp'.
11954
11955 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11956 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11957 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11958 rather than `int' for the type of `type'.
11959
11960 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11961
11962 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11963
11964 * Makefile.in (GNUC): Remove support for gcc-1.x.
11965
11966 2008-02-10 Richard Stallman <rms@gnu.org>
11967
11968 * lisp.h (ASET): Use AREF, not ASLOT.
11969
11970 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11971
11972 * lisp.h (ASET): Check bounds.
11973
11974 2008-02-10 Glenn Morris <rgm@gnu.org>
11975
11976 * buffer.c (mode-name): Doc fix.
11977
11978 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11979
11980 * Makefile.in:
11981 * emacs.c:
11982 * gmalloc.c:
11983 * keyboard.c:
11984 * lisp.h:
11985 * m/ibm370aix.h:
11986 * process.c:
11987 * regex.c:
11988 * s/hpux.h:
11989 * sysdep.c:
11990 * sysselect.h:
11991 * systty.h:
11992 * unexec.c:
11993 * w32term.c:
11994 * xsmfns.c:
11995 * xterm.c: Remove code that deals with obsolete variables.
11996
11997 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11998
11999 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12000 nothing else needs it anymore.
12001
12002 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12003
12004 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12005 instead of unibyte_char_to_multibyte.
12006
12007 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12008
12009 * s/gnu-linux.h: Remove commented out code.
12010
12011 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12012
12013 * Makefile.in: Update what RMS says about using autoconf.
12014 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12015 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12016 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12017 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12018
12019 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12020
12021 * keymap.c (Fkey_description): Move side effect outside of macro call.
12022
12023 * xfaces.c (Finternal_make_lisp_face):
12024 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12025
12026 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12027 (syms_of_fontset): Use ASET.
12028
12029 * fns.c (concat): Move side effect outside of macro call.
12030 (hash_clear): Use ASET.
12031
12032 2008-02-08 Richard Stallman <rms@gnu.org>
12033
12034 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12035 If FORCE, and frame has a surrogate minibuffer for another frame,
12036 delete the other frame first.
12037
12038 2008-02-07 Timo Savola <timo.savola@iki.fi>
12039
12040 * xterm.c (x_detect_focus_change): Handle embed client message.
12041 (handle_one_xevent): Ditto.
12042 (handle_one_xevent): If embedded and we get a button press/release,
12043 request focus.
12044 (xembed_set_info, xembed_send_message): New functions.
12045 (x_make_frame_visible): Call xembed_set_info if embedded.
12046 (x_make_frame_invisible): Call xembed_set_info if embedded.
12047 (x_term_init): Initialize Xatom_XEMBED.
12048 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12049 (x_iconify_frame): Ditto.
12050
12051 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12052 (enum xembed_info, enum xembed_message, enum xembed_focus)
12053 (enum xembed_modifier, enum xembed_accelerator): New.
12054 (xembed_set_info, xembed_send_message): Declare.
12055 (FRAME_X_EMBEDDED_P): New.
12056
12057 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12058 gtk_plug_new.
12059
12060 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12061 window ID of a frame.
12062 (x_window): Reparent frame if embedded.
12063 (Fx_create_frame): Don't set border width if embedded.
12064
12065 * emacs.c (USAGE3): Add --parent-id.
12066 (standard_args): Ditto.
12067
12068 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12069
12070 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12071
12072 2008-02-07 Jim Meyering <meyering@redhat.com>
12073
12074 Use "do...while (0)", not "if (1)...else" in macro definitions.
12075 The latter provokes a warning from gcc about the empty else, when
12076 followed by ";". Also, without that trailing semicolon, it would
12077 silently swallow up any following statement.
12078 * syntax.h (SETUP_SYNTAX_TABLE)
12079 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12080 * buffer.h (DECODE_POSITION): Likewise.
12081 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12082 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12083 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12084 (FETCH_CHAR_ADVANCE): Likewise.
12085 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12086
12087 2008-02-07 Jim Meyering <meyering@redhat.com>
12088
12089 * lread.c [lint]: Don't include <sys/inode.h>.
12090
12091 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12092
12093 * xselect.c (x_handle_dnd_message):
12094 * xmenu.c (digest_single_submenu, xmenu_show):
12095 * xdisp.c (with_echo_area_buffer_unwind_data)
12096 (format_mode_line_unwind_data, unwind_format_mode_line)
12097 (display_menu_bar):
12098 * eval.c (Ffetch_bytecode):
12099 * doc.c (store_function_docstring):
12100 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12101 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12102 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12103
12104 2008-02-07 Kenichi Handa <handa@m17n.org>
12105
12106 * ftxfont.c (ftxfont_open): Don't set
12107 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12108
12109 * ftfont.c (ftfont_open): Fix previous change.
12110
12111 2008-02-06 Jason Rumney <jasonr@gnu.org>
12112
12113 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12114 Use cached metrics for ASCII characters.
12115 (w32font_open_internal): Don't set font's owning_frame.
12116 Cache metrics for ASCII characters.
12117
12118 * w32font.h (struct w32font_info): Add ascii_metrics.
12119 Remove owning_frame.
12120
12121 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12122
12123 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12124 to negative value.
12125
12126 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12127
12128 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12129
12130 * charset.c (syms_of_charset): Set QCtest and Qeq.
12131
12132 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12133
12134 * process.c (Fstart_process):
12135 * callproc.c (Fcall_process): Handle the case where
12136 Funhandled_file_name_directory returns nil.
12137
12138 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12139 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12140 * font.c (check_gstring): Use them and AREF to access the vector before
12141 we know it's really a gstring.
12142 (Ffont_shape_text): Fix typo.
12143 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
12144
12145 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12146 Declare.
12147
12148 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12149
12150 2008-02-05 Jason Rumney <jasonr@gnu.org>
12151
12152 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12153 Set smallest_font_height and smallest_char_width in display info.
12154
12155 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12156
12157 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12158
12159 2008-02-05 Miles Bader <miles@gnu.org>
12160
12161 * xfaces.c (get_lface_attributes, merge_named_face)
12162 (lookup_named_face, lookup_derived_face, realize_named_face):
12163 Revert 2008-02-01 change by cyd@stupidchicken.com.
12164
12165 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12166
12167 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12168 fallback fonts.
12169 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12170
12171 2008-02-04 Jason Rumney <jasonr@gnu.org>
12172
12173 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12174 set full_name.
12175 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12176
12177 2008-02-03 Jason Rumney <jasonr@gnu.org>
12178
12179 * makefile.w32-in (OBJ1): Include font.o here.
12180 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12181
12182 2008-02-02 Jason Rumney <jasonr@gnu.org>
12183
12184 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12185
12186 2008-02-01 Jason Rumney <jasonr@gnu.org>
12187
12188 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12189
12190 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12191
12192 2008-02-01 Andreas Schwab <schwab@suse.de>
12193
12194 * Makefile.in (shortlisp, lisp): Update for rename of
12195 ../lisp/language/myanmar.el.
12196
12197 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
12198
12199 * xfaces.c (get_lface_attributes): Delete function.
12200 (merge_named_face, lookup_named_face, lookup_derived_face)
12201 (realize_named_face): Call lface_from_face_name directly, and use
12202 the fact that merge_face_vectors does not alter its FROM argument.
12203
12204 2008-02-01 Jason Rumney <jasonr@gnu.org>
12205
12206 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12207 input in the default locale. Handle non-Unicode multibyte input.
12208
12209 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12210
12211 * fontset.c (reorder_font_vector): Exclude nil elements from the
12212 font group. Don't try multiple fonts.
12213 (fontset_font): Adjust for the above change.
12214 (Finternal_char_font): Return nil if the found font doesn't
12215 contain the character ch.
12216
12217 * Makefile.in (lisp, shortlisp): Add cham.el.
12218
12219 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12220
12221 * font.h (FONTP): Make it return 1 also for a font-object.
12222
12223 * .gdbinit (xfontset): New function.
12224
12225 * font.c (font_find_for_lface): Check if the character C is
12226 supported or not only for the first font.
12227
12228 * fontset.c (reorder_font_vector): Fix typo.
12229 (fontset_find_font): Don't add a font-spec specifying a script.
12230 Use 0 (not Qt) for the indication of empty font-group. Change the
12231 format of RFONT-DEF. Return Qt if no font in the font-group
12232 support the character.
12233 (fontset_font): Adjust for the above change. If no font was
12234 found the character, remember that.
12235 (face_for_char): Adjust for the change of RFONT-DEF.
12236 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12237 no font for the target.
12238 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12239
12240 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12241
12242 * font.c (font_load_for_face): Handle the case that the font in
12243 face->lface is a string.
12244
12245 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12246
12247 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12248
12249 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12250
12251 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12252 Fix previous change. If the frame is not on a window system,
12253 signal an error.
12254
12255 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12256
12257 * coding.c (decode_coding_object, encode_coding_object): Adjust
12258 marker positions after conversion.
12259
12260 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12261
12262 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12263
12264 * font.c (font_find_for_lface): Fix the handling of the return
12265 value of font_has_char.
12266 (Ffont_shape_text): Fix previous change.
12267
12268 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12269 (fontset_ref_and_range): Delete it.
12270 (fontset_find_font): Call char_table_ref_and_range instead of
12271 FONTSET_REF_AND_RANGE.
12272 (make_fontset): Don't setup font groups of Latin here.
12273 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12274 (new_fontset_from_font): Make the specified font the default for
12275 all Latin characters.
12276
12277 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12278
12279 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12280 is on a window system before accessing the fontset of the frame.
12281
12282 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12283
12284 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12285
12286 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12287 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12288
12289 * font.c (Ffont_shape_text): If the font driver doesn't have a
12290 shaper function, make zero-width glyphs to have at least one-pixel
12291 width. Fix setting of `to' field of glyphs.
12292
12293 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12294
12295 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12296 glyphs.
12297
12298 * font.h (struct font_driver): Improve docstring of member `shape'.
12299
12300 2008-02-01 Kenichi Handa <handa@m17n.org>
12301
12302 * composite.c (syms_of_composite): Fix docstring of
12303 auto-composition-function.
12304
12305 * font.h (LGLYPH_SIZE): New macro.
12306
12307 * font.c (Ffont_fill_gstring): Stop filling when a character not
12308 supported by the font is found.
12309 (Ffont_shape_text): When a shape callback function returns nil,
12310 try at most two more times with larger gstring.
12311 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12312
12313 * xdisp.c (handle_auto_composed_prop): Change the argument to
12314 auto-composition-function.
12315
12316 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12317 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12318 Lispy glyph and store it in the lgstring.
12319
12320 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12321
12322 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12323
12324 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12325
12326 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12327
12328 * fontset.c (Vfont_encoding_charset_alist): New variable.
12329 (syms_of_fontset): DEFVAR it.
12330 (reorder_font_vector, fontset_find_font): Optimize for the case of
12331 no need of reordering.
12332 (face_for_char): Map the charset property by
12333 Vfont_encoding_charset_alist.
12334
12335 2008-02-01 Jason Rumney <jasonr@gnu.org>
12336
12337 * w32font.c (logfonts_match): Don't check adstyle here.
12338 (font_matches_spec): Check here against physical font instead.
12339 (add_font_entity_to_list): Avoid some substitutions.
12340
12341 * font.c (font_parse_fcname): Default weight and slant to normal.
12342 (font_score): Prefer normal fonts if weight or slant unspecified.
12343 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12344 match freetype scores.
12345
12346 2008-02-01 Jason Rumney <jasonr@gnu.org>
12347
12348 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12349 font, as it may have been deleted.
12350 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12351 most common hyphenless variation.
12352 (logfonts_match): Check generic family.
12353 (font_matches_spec): Don't check generic family here.
12354 (fill_in_logfont): Set generic family based on adstyle.
12355
12356 * w32font.h (w32font_get_cache): Update declaration.
12357
12358 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12359
12360 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12361
12362 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12363 If none of the new drivers are available, call font_update_drivers
12364 with the old drivers.
12365
12366 * w32font.c (w32font_get_cache): Adjust the argument type.
12367
12368 * xfont.c (xfont_get_cache): Adjust the argument type.
12369
12370 * font.h (struct font_driver): Change argument type of get_cache.
12371
12372 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12373
12374 * font.c (Ffont_get): Fix arguments to Fassoc.
12375 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12376 (font_clear_cache): New function.
12377 (font_list_entities, font_matching_entity): Use font_get_cache.
12378 (font_update_drivers): Call font_clear_cache when finishing a driver.
12379
12380 * fontset.c (fontset_find_font): Fix previous change.
12381
12382 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12383
12384 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12385 dpyinfo->font_table.
12386 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12387 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12388
12389 * font.c (font_at): Handle the case that the arg C is negative.
12390 Handle the unibyte case.
12391 (Ffont_at): Call font_at with the arg C -1.
12392
12393 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12394 the position here, and call font_at with the arg C -1.
12395 Don't check the range of the existing composition at the point.
12396
12397 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12398
12399 * fontset.c (fontset_add): New args charset_id and family.
12400 Change caller.
12401 (load_font_get_repertory, fontset_find_font): Assume that
12402 font_spec is always a font-spec object.
12403 (Fset_fontset_font): Always store a font-spec object in a fontset.
12404
12405 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12406 instead of get_property_and_range.
12407
12408 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12409
12410 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12411 (xftfont_open): Don't keep locking face.
12412 (xftfont_close): Don't unlock face.
12413 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12414
12415 * fontset.c (fontset_find_font): Don't prefer a font of
12416 supplementary charset.
12417
12418 2008-02-01 Kenichi Handa <handa@m17n.org>
12419
12420 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12421 script, langsys_tag to langsys, new member script.
12422 (OTF_TAG_STR): Terminate by '\0'.
12423 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
12424 listing to the script specified in that property. Fix arg to
12425 OTF_check_features.
12426
12427 2008-02-01 Jason Rumney <jasonr@gnu.org>
12428
12429 * w32font.h: New file.
12430
12431 * w32font.c: Include it.
12432 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12433 (w32font_open): Set owning_frame.
12434 (w32font_text_extents): Use owning_frame.
12435 (struct font_callback_data): Add opentype_only field.
12436 (add_font_entity_to_list): Use it to filter fonts.
12437 Don't check against full name.
12438 (w32font_list_internal): New function.
12439 (w32font_list): Use it.
12440 (w32font_match_internal): New function.
12441 (w32font_match): Use it.
12442 (w32font_open_internal): New function.
12443 (w32font_open): Use it.
12444 (w32font_get_cache, w32font_close, w32font_has_char)
12445 (w32font_encode_char, w32font_text_extents, w32font_draw):
12446 Make non-static.
12447
12448 * makefile.w32-in (w32font.o): Depend on w32font.h.
12449
12450 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12451
12452 * charset.c (Fdefine_charset_internal): Record a supplementary
12453 charset at the tail of Vcharset_order_list.
12454
12455 * font.c (Ffont_shape_text): Fix the return value.
12456
12457 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12458
12459 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12460
12461 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12462
12463 * ftfont.c (struct OpenTypeSpec): New struct.
12464 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12465 (ftfont_get_open_type_spec): New function.
12466 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12467
12468 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12469
12470 2008-02-01 Jason Rumney <jasonr@gnu.org>
12471
12472 * w32font.c (add_font_entity_to_list): Compare only the beginning
12473 of full name.
12474
12475 2008-02-01 Kenichi Handa <handa@m17n.org>
12476
12477 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12478 Never return HANDLED_RECOMPUTE_PROPS.
12479
12480 2008-02-01 Kenichi Handa <handa@m17n.org>
12481
12482 * font.c (font_gstring_produce): Delete it.
12483
12484 * composite.h (COMPOSITION_METHOD):
12485 Handle COMPOSITION_WITH_GLYPH_STRING.
12486
12487 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12488
12489 * xfont.c (Qx): Delete.
12490 (syms_of_xfont): Don't initialize Qx.
12491
12492 * composite.h (enum composition_method):
12493 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12494
12495 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12496
12497 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12498 (choose_face_font): Accept new form of font-spec.
12499
12500 * frame.h (font_driver_list): Declare it unconditionally.
12501 (struct frame): Define members font_driver_list and font_data_list
12502 unconditionally.
12503
12504 * fontset.c: Include "font.h" unconditionally.
12505 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12506 (Fset_fontset_font): Accept a font-spec object.
12507
12508 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12509 PIXEL_SIZE part a wild card.
12510
12511 * dispextern.h (struct glyph_string): Define members clip and
12512 num_clips unconditionally.
12513 (struct face): Define members font_info and extra unconditionally.
12514
12515 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12516 ftfont_info only when HAVE_LIBOTF is defined.
12517
12518 2008-02-01 Andreas Schwab <schwab@suse.de>
12519
12520 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12521 and end.
12522
12523 2008-02-01 Jason Rumney <jasonr@gnu.org>
12524
12525 * w32font.c (w32font_driver): Add new fields.
12526
12527 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12528
12529 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12530 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12531 (LIBES): Add @M17N_FLT_CFLAGS@.
12532
12533 * composite.c (compose_text): Don't treat the new style
12534 composition specially.
12535
12536 * emacs.c (main): Call syms_of_font unconditionally.
12537
12538 * font.h (FONT_ENTITY_NOT_LOADABLE)
12539 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12540 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12541 (struct font_driver): New member shape.
12542 (font_registry_charsets): Extern it.
12543 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12544 (font_otf_capability, font_drive_otf): Delete their externs.
12545
12546 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12547 (font_charset_alist, font_registry_charsets): Move from xfont.c
12548 and rename.
12549 (font_prop_validate_otf): New function.
12550 (font_property_table): Register it for QCotf.
12551 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12552 (font_drive_otf): Delete.
12553 (font_prepare_composition): New arg F. Adjust for the change of
12554 lispy gstring.
12555 (font_find_for_lface): New arg C.
12556 (font_load_for_face): Adjust for the change of font_find_for_lface.
12557 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12558 lispy gstring.
12559 (Ffont_shape_text): New function.
12560 (Fopen_font): If the font size is not given, use 12-pixel.
12561 (Ffont_at): New arg STRING.
12562 (syms_of_font): Initalize font_charset_alist.
12563 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12564 conditionally.
12565
12566 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12567 fonts of the same font-spec. Change the format of RFONT-DEF.
12568 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12569 Adjust for the change of RFONT-DEF.
12570 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12571
12572 * ftfont.h: New file.
12573
12574 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12575 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12576 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12577 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12578 font_otf_capability and font_drive_otf, set ftfont_shape.
12579 (ftfont_list): Adjust for the change of :otf property value.
12580 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12581 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12582 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12583 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12584 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12585 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12586
12587 * w32term.c (x_draw_composite_glyph_string_foreground):
12588 Adjust for the change of lispy gstring.
12589
12590 * xdisp.c (handle_composition_prop): Adjust for the change of
12591 lispy gstring. Call a function for auto-composition with the
12592 third arg it->window.
12593 (fill_composite_glyph_string): Adjust for the change of lispy string.
12594 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12595
12596 * xfaces.c (set_font_frame_param): Adjust for the change of
12597 font_find_for_lface.
12598
12599 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12600 (xfont_registry_charsets): Likewise. Change caller.
12601 (syms_of_xfont): Don't handle x_font_charset_alist.
12602
12603 * xftfont.c: Include "ftfont.h".
12604 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12605 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12606 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12607 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12608 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12609 Set xftfont_driver.shape to xftfont_shape.
12610
12611 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12612 the change of lispy gstring.
12613
12614 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12615
12616 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12617
12618 2008-02-01 Jason Rumney <jasonr@gnu.org>
12619
12620 * w32font.c (w32font_draw): Fill background manually.
12621
12622 2008-02-01 Jason Rumney <jasonr@gnu.org>
12623
12624 * font.c (Qfontp): Remove unused symbol.
12625 (QCantialias): New symbol.
12626 (syms_of_font): Define it.
12627 (font_property_table): Set a validator for QCantialias.
12628
12629 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12630 Define if not already.
12631 (QCfamily): Share with xfaces.c.
12632 (Qstandard, Qsubpixel, Qnatural): New symbols.
12633 (syms_of_w32font): Define them. Don't define QCfamily here.
12634 (w32_antialias_type, lispy_antialias_type): New functions.
12635 (w32_enumfont_pattern_entity): New arg requested_font.
12636 Set antialias parameter if non-default was requested.
12637 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12638
12639 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12640
12641 * lread.c (read1): Undo the previous change.
12642
12643 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12644
12645 * frame.c (Fdelete_frame): Call font_update_drivers only when
12646 USE_FONT_BACKEND is defined.
12647
12648 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12649
12650 * font.h (struct font_bitmap): New member bits_per_pixel.
12651 (struct font_driver): New members start_for_frame and end_for_frame.
12652 (struct font_data_list): New struct.
12653 (font_put_frame_data, font_get_frame_data): Extern them.
12654
12655 * frame.h (struct frame): New member font_data_list.
12656
12657 * font.c (font_update_drivers): Call driver->start_for_frame and
12658 driver->end_for_frame at proper timings.
12659 (font_put_frame_data, font_get_frame_data): New functions.
12660 (Ffont_spec): Add usage in the docstring.
12661
12662 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12663 (Fdelete_frame): Call font_update_drivers.
12664
12665 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12666 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12667 (xftfont_get_xft_draw): New function.
12668 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12669 (xftfont_end_for_frame): New function.
12670 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12671
12672 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12673 Change argument. Cache GCs in the per-frame data.
12674 (struct ftxfont_frame_data): New struct.
12675 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12676 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12677 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12678 (ftxfont_end_for_frame): New function.
12679 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12680
12681 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12682
12683 2008-02-01 Kenichi Handa <handa@m17n.org>
12684
12685 * xselect.c (Vselection_coding_system)
12686 (Vnext_selection_coding_system): Delete them.
12687 (syms_of_xselect): Don't declare selection-coding-system and
12688 next-selection-coding-system. They are declared in select.el.
12689
12690 2008-02-01 Jason Rumney <jasonr@gnu.org>
12691
12692 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12693
12694 * w32fns.c: Include imm.h.
12695 (get_composition_string_fn, get_ime_context_fn): New optional
12696 system functions.
12697 (globals_of_w32fns): Load them from imm32.dll.
12698 (ignore_ime_char): New flag.
12699 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12700 WM_IME_ENDCOMPOSITION messages.
12701
12702 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12703 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12704
12705 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12706
12707 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12708 (READCHAR_REPORT_MULTIBYTE): New macro.
12709 (readchar): New 2nd arg MULTIBYTE.
12710 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12711 Make symbol's name multibyte according to the multibyteness of the
12712 source.
12713
12714 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12715
12716 * xfaces.c (face_for_overlay_string): Call lookup_face with
12717 correct arguments (fix of synching with the trunk).
12718
12719 2008-02-01 Kenichi Handa <handa@m17n.org>
12720
12721 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12722 (font_prop_validate_non_neg, font_prop_validate_spacing):
12723 Delete argument prop_index.
12724 (font_property_table): Change arguments to validater. Change Callers.
12725 (font_lispy_object): Delete.
12726 (font_at): Use font_find_object instead fo font_lispy_object.
12727
12728 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12729
12730 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12731 and file names.
12732
12733 2008-02-01 Jason Rumney <jasonr@gnu.org>
12734
12735 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12736 (font_matches_spec): Remove debug output.
12737 (add_font_entity_to_list): Avoid using substituted fonts.
12738
12739 2008-02-01 Jason Rumney <jasonr@gnu.org>
12740
12741 * doc.c (Fsnarf_documentation):
12742 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12743
12744 2008-02-01 Miles Bader <miles@gnu.org>
12745
12746 * dispextern.h (struct glyph_row): Only define "clip" field if
12747 HAVE_WINDOW_SYSTEM is defined.
12748
12749 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12750
12751 Fix up multi-tty merge.
12752
12753 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12754 and indentation.
12755
12756 * xfaces.c (free_realized_face, clear_face_gcs):
12757 Include font_done_for_face in the input_blocked section, just in case.
12758
12759 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12760 (get_char_face_and_encoding): Undo last change and remove the *other*
12761 duplicate definition (i.e. keep the one that's better scoped and that
12762 includes code for the font-backend).
12763
12764 * terminal.c (create_terminal): Default keyboard_coding to
12765 `no-conversion' and terminal_coding to `undecided'.
12766
12767 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12768
12769 * fontset.c (free_realized_fontsets): Check that the table entry does
12770 contain a fontset before trying to compare it to `base'.
12771
12772 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12773 syms_of_charset, and syms_of_coding earlier because init_window_once
12774 now needs Vcoding_system_hash_table to be setup.
12775
12776 * coding.h (default_buffer_file_coding): Remove.
12777
12778 * coding.c (default_buffer_file_coding): Remove.
12779 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12780 than ->symbol, and use the terminal-local coding system.
12781 (syms_of_coding): Don't setup the coding-systems that are not
12782 terminal-local.
12783 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12784
12785 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12786 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12787
12788 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12789 in chartab.c and were re-added here by mistake.
12790 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12791
12792 * doc.c (Fsnarf_documentation):
12793 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12794 src to etc.
12795
12796 * ChangeLog.10: Add mistakenly removed entry.
12797
12798 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12799
12800 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12801
12802 2008-02-01 Miles Bader <miles@gnu.org>
12803
12804 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12805 Add extra args to FACE_FOR_CHAR.
12806
12807 2008-02-01 Kenichi Handa <handa@m17n.org>
12808
12809 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12810 in sequence.
12811
12812 * chartab.c (map_sub_char_table, map_char_table): If the range
12813 contains just one character, call the function with that character
12814 even if the depth is not 3.
12815
12816 2008-02-01 Jason Rumney <jasonr@gnu.org>
12817
12818 * w32font.c (w32font_text_extents): Calculate metrics for the
12819 whole string.
12820
12821 2008-02-01 Jason Rumney <jasonr@gnu.org>
12822
12823 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12824
12825 2008-02-01 Jason Rumney <jasonr@gnu.org>
12826
12827 * w32term.c (x_set_glyph_string_clipping): Use
12828 get_glyph_string_clip_rects.
12829 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12830 Adjust for the change of struct glyph_string.
12831
12832 * w32font.c (w32font_draw): Do clipping here.
12833
12834 2008-02-01 Kenichi Handa <handa@m17n.org>
12835
12836 * xftfont.c (xftfont_draw): Adjust for the change of struct
12837 glyph_string.
12838
12839 * xterm.c (x_set_glyph_string_clipping): Use
12840 get_glyph_string_clip_rects.
12841 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12842 Adjust for the change of struct glyph_string.
12843
12844 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12845 the resulting clip(s}.
12846 (expose_overlaps): Add arg r. Change callers. Set it to
12847 row->clip temporarily.
12848 (expose_window): Redraw rows overlapping the exposed area.
12849
12850 * dispextern.h (struct glyph_row): New member clip.
12851 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12852 clip_height, new member clip, and num_clips.
12853
12854 2008-02-01 Kenichi Handa <handa@m17n.org>
12855
12856 * data.c (Fchar_or_string_p): Fix docstring.
12857
12858 2008-02-01 Kenichi Handa <handa@m17n.org>
12859
12860 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12861 create a temporary XftDraw object.
12862
12863 2008-02-01 Kenichi Handa <handa@m17n.org>
12864
12865 * font.c (Ffontp): Fix docstring.
12866
12867 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12868 strong evidence of ISO-2022.
12869
12870 2008-02-01 Kenichi Handa <handa@m17n.org>
12871
12872 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12873 SYNTAX_ENTRY_FOLLOW_PARENT.
12874
12875 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12876
12877 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12878 its type.
12879 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12880 Update to the new type of weak_hash_tables and next_weak.
12881
12882 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12883 a plain C pointer to Lisp_Hash_Table.
12884
12885 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12886 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12887 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12888 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12889 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12890 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12891 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12892 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12893 (GC_EQ): Remove since they've been identical to their non-GC_
12894 alter-egos ever since the markbit was eradicated.
12895
12896 * alloc.c:
12897 * buffer.c:
12898 * buffer.h:
12899 * data.c:
12900 * fileio.c:
12901 * filelock.c:
12902 * fns.c:
12903 * frame.h:
12904 * lisp.h:
12905 * macterm.c:
12906 * print.c:
12907 * process.c:
12908 * w32fns.c:
12909 * w32menu.c:
12910 * w32term.c:
12911 * xfns.c:
12912 * xmenu.c:
12913 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12914
12915 2008-02-01 Kenichi Handa <handa@m17n.org>
12916
12917 * chartab.c (map_sub_char_table): Make it work for the top-level
12918 char-table. Fix handling of parent char-table.
12919 (map_char_table): Adjust for the above change.
12920
12921 2008-02-01 Jason Rumney <jasonr@gnu.org>
12922
12923 * w32font.c (Qgdi): Rename from Qw32.
12924
12925 2008-02-01 Jason Rumney <jasonr@gnu.org>
12926
12927 * w32bdf.c (get_quoted_string): Make function static.
12928
12929 2008-02-01 Kenichi Handa <handa@m17n.org>
12930
12931 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12932 bigger ascent and descent than those of the font, use them as
12933 font's ascent and descent.
12934
12935 2008-02-01 Kenichi Handa <handa@m17n.org>
12936
12937 * Makefile.in (${lispsource}international/charprop.el): Move this
12938 target within "#ifdef HAVE_UNIDATA" and "#endif".
12939
12940 2008-02-01 Kenichi Handa <handa@m17n.org>
12941
12942 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12943 (shortlisp): Add ../lisp/language/tai-viet.el.
12944
12945 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
12946
12947 * Makefile.in (${lispsource}international/charprop.el): Depend on
12948 temacs${EXEEXT}.
12949
12950 2008-02-01 Jason Rumney <jasonr@gnu.org>
12951
12952 * w32font.c (w32font_close): Delete the GDI font object.
12953
12954 * w32menu.c: Include character.h.
12955
12956 * w32proc.c: Likewise.
12957
12958 * w32select.c: Likewise.
12959
12960 * makefile.w32-in (w32proc.o): Depend on character.h.
12961
12962 2008-02-01 Jason Rumney <jasonr@gnu.org>
12963
12964 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12965
12966 * w32menu.c (syms_of_w32menu): Likewise.
12967
12968 * w32proc.c (syms_of_ntproc): Likewise.
12969
12970 * w32select.c (syms_of_w32select): Likewise.
12971
12972 * w32term.c (syms_of_w32term): Likewise.
12973
12974 2008-02-01 Jason Rumney <jasonr@gnu.org>
12975
12976 * w32font.c (w32font_draw): Delete brush after using it.
12977
12978 2008-02-01 Jason Rumney <jasonr@gnu.org>
12979
12980 * w32font.c (w32font_open): Don't set font_idx.
12981 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12982 to font settings.
12983 (w32font_draw): Fill background explicitly.
12984
12985 2008-02-01 Jason Rumney <jasonr@gnu.org>
12986
12987 * w32term.c (w32_initialize): Don't call w32font_initialize.
12988
12989 * w32font.c (w32font_info): Remove subranges.
12990 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12991 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12992 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12993 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12994 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12995 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12996 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12997 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12998 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12999 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13000 New symbols.
13001 (font_callback_data): New struct.
13002 (w32font_list, w32font_match): Use it.
13003 (w32font_open): Don't populate subranges.
13004 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13005 (w32font_encode_char): Always return unicode code-point as-is.
13006 (w32font_text_extents): Supply a transformation matrix to
13007 GetGlyphOutline. Never look up by glyph index. Avoid looping
13008 twice. Use unicode version of GetTexExtentPoint32 instead of
13009 glyph index version.
13010 (set_fonts_frame): Remove.
13011 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13012 set frame parameter. Use backward compatible fake foundries.
13013 Save generic family in extra slot under QCfamily. Make width slot
13014 constant. Save QCspacing value. Save list of scripts instead of
13015 binary subranges.
13016 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13017 (add_font_entity_to_list): Use font_callback_data struct. Filter
13018 unwanted fonts.
13019 (add_one_font_entity_to_list): Use font_callback_data struct.
13020 (w32_registry): Default to iso10646_1.
13021 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13022 string font registries. Don't fill in font name if it is a generic
13023 family name, fill family instead. Use spacing, family and script
13024 extra info to fill pitch, family and charset fields.
13025 (list_all_matching_fonts): Use font_callback_data struct.
13026 (unicode_range_for_char): Remove.
13027 (font_supported_scripts): New function.
13028 (w32font_initialize): Remove.
13029 (syms_of_w32font): Update which symbols are defined.
13030
13031 2008-02-01 Jason Rumney <jasonr@gnu.org>
13032
13033 * font.c (font_pixel_size): Reverse assq_no_quit args.
13034
13035 * w32term.h (FONT_WIDTH): Report max width, not average.
13036 (FONT_MAX_WIDTH): Remove.
13037 (FONT_AVG_WIDTH): New macro.
13038
13039 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13040 redefinition of FONT_WIDTH.
13041
13042 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13043 (w32_cache_char_metrics): Use FONT_WIDTH.
13044
13045 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13046
13047 2008-02-01 Jason Rumney <jasonr@gnu.org>
13048
13049 * w32font.c (w32font_open): Make lfHeight negative.
13050
13051 * w32fns.c (x_default_font_parameter): Use new style font name.
13052 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13053
13054 2008-02-01 Jason Rumney <jasonr@gnu.org>
13055
13056 * w32font.c (QCsubranges): New symbol.
13057 (w32font_open, w32font_has_char): Get subranges from subproperty
13058 of extra.
13059 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13060 (syms_of_w32font): Define :subranges symbol.
13061
13062 * font.c (font_put_extra): Expose externally.
13063
13064 * font.h (font_put_extra): Move declaration from font.c.
13065
13066 * font.c (Ffont_get): Use font driver to determine otf capability.
13067 (adjust_anchor): Check if driver defines anchor_point before using.
13068
13069 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13070 (w32font_draw): Use options.
13071 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13072 Fix detection of truetype fonts.
13073 (registry_to_w32_charset): Handle charsets other than iso8859-1
13074 expressed as lisp symbols.
13075 (w32_registry): Express charset as lisp symbol.
13076 (fill_in_logfont): Reverse pixel and point height logic.
13077 Don't set width here. Set quality to default.
13078
13079 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13080 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13081
13082 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13083 Remove redundant loop and allocation.
13084
13085 * makefile.w32-in (font.o, w32font.o): New objects.
13086 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13087 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13088
13089 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13090 STORE_XCHARB a valid l-value.
13091
13092 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13093 calculations for non-Truetype fonts.
13094 (x_draw_glyph_string): Sync with xterm.c.
13095 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13096 Remove redundant code.
13097 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13098
13099 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13100 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13101
13102 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13103 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13104
13105 * w32font.c: New file for w32 font backend.
13106
13107 2008-02-01 Kenichi Handa <handa@m17n.org>
13108
13109 * term.c: Don't include "buffer.h" twice.
13110
13111 2008-02-01 Kenichi Handa <handa@m17n.org>
13112
13113 * character.c (Funibyte_string): New function.
13114 (syms_of_character): Defsubr it.
13115
13116 2008-02-01 Jason Rumney <jasonr@gnu.org>
13117
13118 * w32term.c [USE_FONT_BACKEND]:
13119 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13120 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13121 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13122 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13123 (x_free_frame_resources): Sync with xterm.c.
13124
13125 2008-02-01 Andreas Schwab <schwab@suse.de>
13126
13127 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13128 char-table size.
13129
13130 2008-02-01 Kenichi Handa <handa@m17n.org>
13131
13132 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13133
13134 2008-02-01 Kenichi Handa <handa@m17n.org>
13135
13136 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13137 font_otf_gpos, add font_drive_otf.
13138
13139 * fontset.c (fontset_find_font): Pay attention to font size
13140 specified for a font.
13141 (reorder_font_vector): Check contents of font_def.
13142
13143 * font.c (struct otf_list): Delete it.
13144 (otf_list): Make it a lisp variable.
13145 (otf_open): Use lispy otf_list.
13146 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13147 (check_otf_features): New function.
13148 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13149 New functions.
13150 (font_drive_otf): New function merging font_otf_gsub and
13151 font_otf_gpos.
13152 (font_open_for_lface): New arg spec. Change argument order.
13153 (font_load_for_face): Adjust for the change of font_open_for_lface.
13154 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13155 Ffont_otf_gpos.
13156 (syms_of_font): Staticpro otf_list. Delete defsubr of
13157 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13158
13159 * xfaces.c (set_font_frame_param): Adjust for the change of
13160 font_open_for_lface.
13161
13162 * font.h (font_open_for_lface): Adjust prototype.
13163 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13164 member otf_drive.
13165 (font_otf_gsub, font_otf_gpos): Delete externs.
13166 (font_drive_otf): Extern it.
13167
13168 2008-02-01 Kenichi Handa <handa@m17n.org>
13169
13170 * font.c (font_at): If the window W is not on a window system,
13171 return Qnil.
13172
13173 * coding.c (produce_chars, encode_coding): Don't call
13174 insert_from_gap if no characters to produce.
13175
13176 2008-02-01 Kenichi Handa <handa@m17n.org>
13177
13178 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13179 Fclear_face_cache.
13180
13181 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13182
13183 2008-02-01 Miles Bader <miles@gnu.org>
13184
13185 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13186 Parse "--disable-font-backend" option.
13187 (standard_args): Add "--disable-font-backend" option.
13188
13189 2008-02-01 Kenichi Handa <handa@m17n.org>
13190
13191 * fontset.c (fontset_find_font): New function.
13192 (fontset_font): Use fontset_find_font.
13193 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13194 Register the specified font for all Latin characters.
13195 (new_fontset_from_font): Register the specified font for all Latin
13196 characters.
13197 (dump_fontset): For a realized fontset, include the base fontset
13198 name in the returned vector.
13199
13200 2008-02-01 Kenichi Handa <handa@m17n.org>
13201
13202 * character.h (CHAR_STRING): Cast C to unsigned on calling
13203 char_string.
13204
13205 * character.c (char_string): Type of arg C changed to unsigned.
13206 Signal an error if C is an invalid character code.
13207
13208 * editfns.c (general_insert_function, Fchar_to_string):
13209 Use CHARACTERP, not INTEGERP.
13210
13211 2008-02-01 Kenichi Handa <handa@m17n.org>
13212
13213 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13214 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13215
13216 * regex.c (analyse_first): Fix for multibyte characters in "case
13217 charset:" and "case categoryspec:".
13218
13219 2008-02-01 Andreas Schwab <schwab@suse.de>
13220
13221 * Makefile.in (LIBES): Move standard libraries to the end.
13222
13223 2008-02-01 Kenichi Handa <handa@m17n.org>
13224
13225 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13226 nonzero, don't shrink the buffer nextb.
13227
13228 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13229
13230 * coding.c (coding_alloc_by_making_gap): New arg offset.
13231 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13232 offset.
13233 (decode_coding_iso_2022): Update coding->safe_charsets.
13234 (decode_coding_gap): Temporarily set
13235 current_buffer->text->inhibit_shrinking to 1.
13236
13237 2008-02-01 Kenichi Handa <handa@m17n.org>
13238
13239 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13240 indexing into elements of s->cmp and s->char2b.
13241
13242 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
13243
13244 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13245
13246 2008-02-01 Kenichi Handa <handa@m17n.org>
13247
13248 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13249 target_multibyte instead of multibyte.
13250 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13251 (bcmp_translate): Change the argument name from multibyte to
13252 target_multibyte.
13253
13254 2008-02-01 Kenichi Handa <handa@m17n.org>
13255
13256 These changes are to compile a regexp into a pattern that can be
13257 used both for multibyte and unibyte targets.
13258
13259 * Makefile.in (search.o): Depend on charset.h.
13260
13261 * character.c (multibyte_char_to_unibyte_safe): New function.
13262
13263 * search.c: Include "charset.h".
13264 (compile_pattern_1): Delete argument multibyte. Don't set
13265 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13266 (compile_pattern): Don't compare cp->buf.target_multibyte.
13267 Compare cp->buf.charset_unibyte.
13268 (compile_pattern): Set cp->buf.target_multibyte.
13269
13270 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13271
13272 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13273
13274 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13275 multibyte. Change callers.
13276 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13277 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13278 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13279 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13280 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13281 (regex_compile): Make the compiled pattern usable both for
13282 multibyte and unibyte targets.
13283 (analyse_first): Make the fastmap usable both for multibyte and
13284 unibyte targets.
13285 (TRANSLATE_VIA_MULTIBYTE): Delete.
13286 (re_match_2_internal): Pay attention to the case that the
13287 multibyteness of bufp and target may be different.
13288
13289 2008-02-01 Kenichi Handa <handa@m17n.org>
13290
13291 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13292 empty box occupy at least one column width.
13293
13294 2008-02-01 Miles Bader <miles@gnu.org>
13295
13296 * Makefile.in: Remove redundant HAVE_XFT clause.
13297
13298 2008-02-01 Kenichi Handa <handa@m17n.org>
13299
13300 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13301
13302 2008-02-01 Kenichi Handa <handa@m17n.org>
13303
13304 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13305 being nil.
13306
13307 2008-02-01 Kenichi Handa <handa@m17n.org>
13308
13309 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13310
13311 2008-02-01 Kenichi Handa <handa@m17n.org>
13312
13313 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13314
13315 2008-02-01 Kenichi Handa <handa@m17n.org>
13316
13317 * search.c (simple_search): Fix previous change.
13318
13319 2008-02-01 Kenichi Handa <handa@m17n.org>
13320
13321 * xftfont.c (ftfont_font_format): Extern declaration.
13322
13323 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13324
13325 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13326 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13327
13328 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13329 (ftfont_font_format): Fix previous change.
13330
13331 * font.h (Ffont_xlfd_name): EXFUN it.
13332
13333 * font.c (font_parse_xlfd): Fix the array size of `f'.
13334 (register_font_driver): Use EQ to compare driver->type.
13335
13336 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13337 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13338 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13339
13340 2008-02-01 Kenichi Handa <handa@m17n.org>
13341
13342 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13343 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13344
13345 2008-02-01 Kenichi Handa <handa@m17n.org>
13346
13347 * xfont.c (xfont_open): Set font->format.
13348
13349 * xftfont.c (xftfont_open): Set font->format.
13350
13351 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13352 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13353 (ftfont_open): Set font->format.
13354 (ftfont_font_format): New function.
13355
13356 * font.h (struct font): New member format.
13357
13358 * font.c (Qopentype): New variable.
13359 (syms_of_font): Defsym it.
13360 (Fquery_font): Change the format of the last element of the return
13361 value.
13362
13363 2008-02-01 Kenichi Handa <handa@m17n.org>
13364
13365 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13366 last resort.
13367
13368 2008-02-01 Kenichi Handa <handa@m17n.org>
13369
13370 * coding.c (detect_coding_charset): Fix detection of multi-byte
13371 charset.
13372
13373 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13374
13375 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13376
13377 2008-02-01 Kenichi Handa <handa@m17n.org>
13378
13379 * xdisp.c (get_next_display_element): Set it->face_id for the
13380 first component of a composition.
13381 (x_produce_glyphs): Check if the font is changed or not for composition.
13382
13383 2008-02-01 Kenichi Handa <handa@m17n.org>
13384
13385 * fontset.c (Qlatin): New variable.
13386 (syms_of_fontset): Define it as a lisp symbol.
13387 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13388
13389 2008-02-01 Kenichi Handa <handa@m17n.org>
13390
13391 * font.c (font_unparse_fcname): Pay attention to the case that
13392 some of font property is a null string.
13393
13394 2008-02-01 Kenichi Handa <handa@m17n.org>
13395
13396 * term.c: Include "composite.h".
13397 (encode_terminal_code): Output all components of composition.
13398 Check the size of encode_terminal_src.
13399 (produce_glyphs): For composition, call produce_composite_glyph.
13400 (append_composite_glyph, produce_composite_glyph): New functions.
13401
13402 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13403 is not found, get font_info from the current ascii face.
13404
13405 2008-02-01 Kenichi Handa <handa@m17n.org>
13406
13407 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13408 buffer-file-name to Qnil before calling insert_from_buffer.
13409
13410 * font.c (font_unparse_fcname): Pay attention to the case that
13411 foundry is a null string.
13412
13413 2008-02-01 Kenichi Handa <handa@m17n.org>
13414
13415 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13416
13417 * font.c (Qunicode_sip): New variable.
13418 (syms_of_font): Declare it as a Lisp symbol.
13419
13420 * font.h (Qunicode_sip): Extern it.
13421
13422 2008-02-01 Kenichi Handa <handa@m17n.org>
13423
13424 * composite.c (get_composition_id): Pay attention to TAB component.
13425
13426 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13427 TAB. Adjust for the change of s->char2b which always points to
13428 the first element of allocated memory.
13429
13430 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13431
13432 * xdisp.c (handle_composition_prop): Set it->c to the first
13433 non-TAB component.
13434 (fill_composite_glyph_string): Change argument.
13435 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13436 (x_produce_glyphs): Fix handling of left/right padding.
13437
13438 2008-02-01 Kenichi Handa <handa@m17n.org>
13439
13440 * coding.c (detect_coding_system): Fix for handling off
13441 inhibit_iso_escape_detection. Fix for the case that no coding
13442 system is defined for a specific coding category.
13443
13444 2008-02-01 Kenichi Handa <handa@m17n.org>
13445
13446 * font.c (font_matching_entity): Delete unused local var.
13447
13448 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13449 opening a font.
13450
13451 * fileio.c (Finsert_file_contents): On recovering a file, assume
13452 Unix-like eol.
13453 (choose_write_coding_system): On auto-saving a file, force
13454 Unix-like eol.
13455
13456 * coding.c (setup_coding_system): Fix setting of
13457 coding->common_flags based on eol_type.
13458 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13459 inherit from it.
13460
13461 2008-02-01 Kenichi Handa <handa@m17n.org>
13462
13463 * alloc.c (NSTATICS): Increas to 0x600.
13464
13465 2008-02-01 Kenichi Handa <handa@m17n.org>
13466
13467 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13468 (ftfont_list): Don't check :name property.
13469 (ftfont_match): New function.
13470 (ftfont_pattern_entity): If the pattern doesn't contain
13471 FC_SPACING, don't assume FC_MONO.
13472
13473 * font.h (struct font_driver): New member `match'.
13474 (font_update_drivers): Adjust prototype.
13475
13476 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13477 property of FONT.
13478 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13479 them unconditionally.
13480 (font_matching_entity): New function.
13481 (font_open_by_name): Try font_matching_entity if exact match is
13482 not found.
13483 (font_update_drivers): Delete the arg FONT. Return a list of
13484 actually used backends. Don't free faces, font caches here.
13485 Don't store data in frame parameters. Don't call x_set_font.
13486 (Ffont_spec): Store :name property as is.
13487 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13488 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13489 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13490 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13491 Call font->driver->otf_gsub instead of font_otf_gsub.
13492
13493 * frame.c (x_set_font_backend): Do more works that were done in
13494 font_update_drivers before.
13495
13496 * xfont.c (xfont_match): New function.
13497 (xfont_driver): Set xfont_driver.match to xfont_match.
13498 (xfont_draw): Set font in GC if necessary.
13499
13500 * ftxfont.c (ftxfont_match): New function.
13501 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13502
13503 * xftfont.c (xftfont_match): New function.
13504 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13505
13506 2008-02-01 Kenichi Handa <handa@m17n.org>
13507
13508 * font.h (struct font): New member scalable.
13509 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13510 (font_otf_gsub): Adjust prototype.
13511
13512 * font.c (font_otf_capability): Fix handling of the default langsys.
13513 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13514 Check the contents of SPEC.
13515 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13516 (check_gstring): New function.
13517 (REPLACEMENT_CHARACTER): New macro.
13518 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13519 glyph codes of GSTRING.
13520 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13521 (font_prepare_composition): Set cmp->glyph_len.
13522 (font_open_entity): Set font->scalable.
13523 (Ffont_get): Handle :otf property.
13524 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13525 functions.
13526 (Fquery_font): Use font->font.full_name.
13527 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13528 Sfont_otf_alternates.
13529
13530 * ftfont.c (ftfont_open): Set font->font.full_name and
13531 font->font.name properly. Fix calculation of font->font.height
13532 and font->min_width.
13533
13534 * ftxfont.c (ftxfont_create_gcs): New function.
13535 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13536 (ftxfont_draw_backgrond): Fix filling region.
13537 (ftxfont_default_fid): New function.
13538 (ftxfont_open): Set xfont->fid to the return value of
13539 ftxfont_default_fid.
13540 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13541 (ftxfont_done_face): Free only GCs that are created by
13542 ftxfont_create_gcs.
13543 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13544
13545 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13546 Clip to src->width, etc (not src->clip_XXX).
13547
13548 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13549 FontBackend frame parameter.
13550
13551 2008-02-01 Kenichi Handa <handa@m17n.org>
13552
13553 * font.h (struct font_driver_list): New member `on'.
13554 (Fclear_font_cache): EXFUN it.
13555 (font_update_drivers): Extern it.
13556
13557 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13558 (font_list_entities): Check driver_list->on.
13559 (register_font_driver): Initalize `on' member to 0.
13560 (font_update_drivers): New function.
13561 (Fclear_font_cache): Check driver_list->on.
13562
13563 * frame.h (Qfont_backend): Extern it.
13564 (x_set_font_backend): Extern it.
13565
13566 * frame.c (Qfont_backend): New variable.
13567 (frame_parms): New element for font-backend.
13568 (x_set_font_backend): New function.
13569
13570 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13571 FontBackend frame parameter.
13572 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13573 x_set_font_backend.
13574
13575 * xfont.c (xfont_list): Don't try listing by :name property if the
13576 name is not for XLFD.
13577
13578 2008-02-01 Kenichi Handa <handa@m17n.org>
13579
13580 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13581 (LGLYPH_SET_TO): New macros.
13582 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13583 element of G is vector or not.
13584 (font_at): Extern it.
13585
13586 * font.c: Include window.h.
13587 (font_lispy_object): New function.
13588 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13589 end of valid glyph.
13590 (font_close_object): Fix getting (struct font *).
13591 (font_at): New function.
13592 (Ffont_get): If FONT is a font-object, get entity from it.
13593 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13594 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13595 range check.
13596 (Ffont_at): New function.
13597 (syms_of_font): Defsubr Sfont_at.
13598
13599 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13600 before the entry for Qcomposition.
13601 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13602 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13603 the font in gstring.
13604 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13605 LGLYPH_FORM (g) to detect the end of valid glyph.
13606 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13607 we are composing with gstring.
13608
13609 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13610 Check if adjustment is vector or not.
13611
13612 * Makefile.in (font.o): Make it depends on window.h.
13613
13614 2008-02-01 Kenichi Handa <handa@m17n.org>
13615
13616 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13617 adjustment is vector or not.
13618
13619 2008-02-01 Miles Bader <miles@gnu.org>
13620
13621 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13622
13623 2008-02-01 Kenichi Handa <handa@m17n.org>
13624
13625 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13626 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13627 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13628
13629 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13630 (DEVICE_DELTA): Fix typo.
13631 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13632 LGLYPH format.
13633
13634 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13635 the change of LGLYPH format.
13636
13637 2008-02-01 Kenichi Handa <handa@m17n.org>
13638
13639 * ftfont.c (ftfont_list): Fix typo.
13640 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13641
13642 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13643
13644 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13645
13646 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13647 xftface_info is non-NULL.
13648
13649 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13650
13651 * ftfont.c (ftfont_list): Move misplaced #endif.
13652
13653 2008-02-01 Kenichi Handa <handa@m17n.org>
13654
13655 * ftfont.c (ftfont_list): Pay attention to the case that
13656 FC_CAPABILITY is not defined.
13657
13658 2008-02-01 Kenichi Handa <handa@m17n.org>
13659
13660 * xftfont.c (xftfont_open): Set charset related members to -1.
13661
13662 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13663 QCname.
13664 (ftfont_open): Set charset related members to -1.
13665
13666 * fontset.c (Votf_script_alist): New variable.
13667 (syms_of_fontset): Initialize it.
13668 (fontset_font): Delete unused variable.
13669
13670 * fontset.h (Votf_script_alist): Extern it.
13671
13672 * font.c (font_find_for_lface): Optimize code.
13673
13674 * font.h (font_close_object, font_merge_old_spec): Extern them.
13675
13676 2008-02-01 Kenichi Handa <handa@m17n.org>
13677
13678 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13679 (syms_of_font): Initialize them.
13680 (font_pixel_size): Allow float value in dpi.
13681 (font_prop_validate_type): Delete.
13682 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13683 Change caller.
13684 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13685 (font_prop_validate_extra): Delete.
13686 (font_prop_validate_spacing): New function.
13687 (font_property_table): Add elements for all known properties.
13688 (get_font_prop_index): Rename from check_font_prop_name. New
13689 argument FROM. Change caller.
13690 (font_prop_validate): Validate all known properties.
13691 (font_put_extra): Delete argument force. Change caller.
13692 (font_expand_wildcards): Make it static. Fix the way of shrinking
13693 the possible range.
13694 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13695 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13696 Change caller.
13697 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13698 (font_parse_fcname): Delete argument merge. Fix parsing of point
13699 size. Don't validate properties values here. Change caller.
13700 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13701 (font_open_by_name): Delete unused variable.
13702 (Ffont_spec): Likewise. Validate property values.
13703 (Ffont_match_p): New function.
13704
13705 * font.h (QCscalable): Extern it.
13706 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13707
13708 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13709
13710 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13711 (xfont_list_pattern): New function.
13712 (xfont_list): Use xfont_list_pattern.
13713
13714 2008-02-01 Kenichi Handa <handa@m17n.org>
13715
13716 * font.h (Flist_fonts): EXFUN it.
13717
13718 2008-02-01 Jason Rumney <jasonr@gnu.org>
13719
13720 * w32term.c (w32_initialize): Add back smoothing_type and
13721 smoothing_enabled definitions.
13722
13723 2008-02-01 Kenichi Handa <handa@m17n.org>
13724
13725 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13726 s->face->font on determining underline position.
13727
13728 2008-02-01 Kenichi Handa <handa@m17n.org>
13729
13730 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13731 (font_has_char): Accept font-object too.
13732 (font_find_for_lface): Try at first with a size specified in face.
13733
13734 2008-02-01 Kenichi Handa <handa@m17n.org>
13735
13736 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13737 font_open_by_name.
13738
13739 2008-02-01 Kenichi Handa <handa@m17n.org>
13740
13741 * font.h (QCspacing, QCdpi): Extern them.
13742 (enum font_spacing): New enum.
13743 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13744
13745 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13746 (QCspacing, QCdpi): New variables.
13747 (syms_of_font): Initialize them.
13748 (font_pixel_size): New function.
13749 (font_put_extra): New function.
13750 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13751 in FONT_EXTRA.
13752 (font_parse_fcname): Handle enumerated values (e.g. bold).
13753 Fix handling font size. Add QCname property that contains only
13754 unknown properties.
13755 (font_score): Change argument. Change caller. Pay attention to
13756 FONT_PIXEL_SIZE_QUANTUM.
13757 (font_sort_entites, font_list_entities, font_find_for_lface)
13758 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13759 (Ffont_spec): Add QCname property that contains only unknown properties.
13760
13761 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13762 include weight in listing pattern, instead check weight of each
13763 listed font. Don't include scalable in pattern. Pay attention to
13764 FONT_PIXEL_SIZE_QUANTUM.
13765
13766 2008-02-01 Kenichi Handa <handa@m17n.org>
13767
13768 * font.c (font_parse_fcname): Fix parsing of point-size.
13769 (font_unparse_fcname): Produce symbolic names for style properties.
13770 (font_list_entities): Handle float size correctly.
13771 (font_open_by_name): Prefer `normal' property values if the name
13772 doesn't specify them.
13773
13774 * fontset.c (Finternal_char_font): Use font_get_name, not
13775 Ffont_xlfd_name.
13776
13777 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13778 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13779 pattern. Don't force scalable.
13780
13781 * xftfont.c (xftfont_open): For generating a name, start from
13782 96-byte buffer.
13783
13784 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13785
13786 * frame.h (x_new_fontset2): Fix prototype.
13787
13788 2008-02-01 Kenichi Handa <handa@m17n.org>
13789
13790 * font.h (struct font_driver): Delete member parse_name.
13791 (font_match_p, font_get_spec, font_parse_fcname)
13792 (font_unparse_fcname): Extern them.
13793 (font_get_name): Adjust prototype.
13794
13795 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13796 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13797 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13798 unnecessary checks for weight, slant, and swidth.
13799 (font_parse_fcname): New function.
13800 (font_unparse_fcname): New function.
13801 (font_parse_name): New function.
13802 (font_match_p): New function.
13803 (font_get_name): Change return value to Lisp string.
13804 (font_get_spec): New function.
13805 (Qunspecified, Qignore_defface): Don't extern them.
13806 (font_find_for_lface): Assume that LFACE is fully specified.
13807 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13808 object, use it for FACE.
13809 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13810 driver->parse_name.
13811 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13812
13813 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13814 prototype.
13815
13816 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13817 argument F. Don't call Fnew_fontset. Instead, directly call
13818 make_fontset.
13819
13820 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13821
13822 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13823 of x_new_fontset2.
13824
13825 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13826 (Qsans__serif): New variables.
13827 (ftfont_generic_family_list): New variable.
13828 (syms_of_ftfont): Initialize the above variables.
13829 (ftfont_pattern_entity): Delete argument NAME.
13830 (ftfont_list_generic_family): New function.
13831 (ftfont_parse_name): Delete this function.
13832 (ftfont_list): Try generic family only when FcFontList found no font.
13833 (ftfont_list_family): Fix args to FcObjectSetBuild.
13834
13835 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13836 object in attrs[LFACE_FONT_INDEX].
13837 (set_lface_from_font_name): Cancel all changes for font-backend.
13838 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13839 function.
13840 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13841 font object in QCfont attribute.
13842 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13843 (realize_default_face) [USE_FONT_BACKEND]: Call
13844 set_lface_from_font_and_fontset.
13845
13846 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13847 "fixed", and signal error here if no suitable font was found.
13848
13849 * xfont.c (xfont_parse_name): Delete this function.
13850
13851 * xftfont.c (xftfont_open): Change coding style of error
13852 handling. Generate fontconfig's fontname pattern.
13853
13854 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13855 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13856
13857 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13858 Both args FONTSET and FONT_OBJECT must be existing ones.
13859
13860 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13861
13862 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13863
13864 2008-02-01 Kenichi Handa <handa@m17n.org>
13865
13866 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13867
13868 * font.h (struct font): Fix typo.
13869
13870 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13871 XLFD_XXX_INDEX.
13872 (enum xlfd_field_mask): New enum.
13873 (intern_font_field): Changed argument. Change caller. If digits
13874 are followed by non-digits, return a symbol.
13875 (font_expand_wildcards): New function.
13876 (font_parse_xlfd): Fix wildcard handling.
13877 (Ffont_spec): If :name is specified, reflect the info in the other
13878 properties.
13879
13880 * ftfont.c (ftfont_pattern_entity): Fix typo.
13881 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13882 locale.
13883
13884 2008-02-01 Kenichi Handa <handa@m17n.org>
13885
13886 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13887
13888 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13889 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13890 registry doesn't specify encoding part.
13891 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13892 (font_open_by_name): At first try parsing the name.
13893 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13894 as Lisp symbols.
13895
13896 * fontset.c (reorder_font_vector): Pay attention to the case that
13897 the 3rd element of font_def is nil.
13898 (fontset_font): For the default fontset, append one more fontset
13899 elements for a script-based font specification. Don't add script
13900 attribute on finding a font.
13901 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13902 font name.
13903 (fontset_ascii_font): If a font can't be opened, return nil.
13904
13905 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13906 (ftfont_pattern_entity): New function.
13907 (ftfont_get_cache): Assume that freetype_font_cache is already
13908 initialized.
13909 (ftfont_list): Handle the case that a file is specified in font
13910 name. Use ftfont_pattern_entity to generate entities.
13911 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13912 (syms_of_ftfont): Initialize freetype_font_cache.
13913
13914 * xftfont.c (xftfont_open): Make the font name fontconfig's
13915 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13916 (xftfont_close): Free font->font.name if not NULL.
13917
13918 * xfont.c (xfont_list): If script is specified for a font, return
13919 null_vector.
13920 (xfont_list_family): Declare argument type.
13921
13922 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13923 name, set LFACE_FONT (lface) to nil.
13924
13925 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13926 return Qnil.
13927
13928 2008-02-01 Kenichi Handa <handa@m17n.org>
13929
13930 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13931 (standard_args): Add "-enable-font-backend".
13932
13933 2008-02-01 Kenichi Handa <handa@m17n.org>
13934
13935 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13936 (struct xftdraw_list, xftdraw_list): Delete them.
13937 (register_xftdraw, check_xftdraw): Delete them.
13938 (xftfont_prepare_face): Don't call register_xftdraw.
13939 (xftfont_done_face): Don't call check_xftdraw.
13940 (xftfont_draw): Get background color only when with_background is
13941 nonzero.
13942
13943 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13944
13945 2008-02-01 Kenichi Handa <handa@m17n.org>
13946
13947 These changes are for the new font handling codes.
13948
13949 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13950 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13951 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13952 (FONTSRC, FONTOBJ): New variables.
13953 (obj): Add $(FONTOBJ).
13954 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13955 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13956 @LIBOTF_LIBS@.
13957 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13958 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13959
13960 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13961
13962 * character.h (Vscript_representative_chars): Extern it.
13963
13964 * character.c (Vscript_representative_chars): New variable.
13965 (syms_of_character): Declare it as a Lisp variable.
13966
13967 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13968 enable_font_backend is nonzero, accept the composition method
13969 COMPOSITION_WITH_GLYPH_STRING.
13970
13971 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13972 enumeration COMPOSITION_WITH_GLYPH_STRING.
13973
13974 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13975 members clip_x, clip_y, clip_width, and clip_height.
13976 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13977
13978 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13979 --enable-font-backend. Call syms_of_font.
13980
13981 * fns.c (assoc_no_quit): New function.
13982
13983 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13984 (face_for_font, new_fontset_from_font)
13985 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13986
13987 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13988 (fontset_font, fontset_ascii, face_for_char)
13989 (make_fontset_for_ascii_face, Ffont_info)
13990 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13991 is nonzero, use font-backend mechanism.
13992 (find_font_encoding): Make it non-static.
13993 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13994 New functions.
13995
13996 * frame.h (struct frame): New members resx and resy.
13997 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13998 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13999
14000 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14001 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14002
14003 * lisp.h (assoc_no_quit): Extern it.
14004
14005 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14006 Through out the file, use FONT_INFO_FROM_FACE instead of
14007 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14008 rif->per_char_metric.
14009 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14010 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14011 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14012 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14013 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14014 nonzero, use font-backend mechanism.
14015 (get_per_char_metric): New function.
14016
14017 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14018 (set_lface_from_font_name)
14019 (set_font_frame_param, free_realized_face)
14020 (prepare_face_for_display, clear_face_gcs)
14021 (Finternal_set_font_selection_order, realize_x_face)
14022 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14023 font-backend mechanism.
14024 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14025 (load_face_font) [USE_FONT_BACKEND]: Abort.
14026 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14027 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14028
14029 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14030 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14031 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14032 nonzero, register all available font drivers. Call
14033 x_default_font_parameter for deciding a font.
14034 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14035
14036 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14037 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14038 (x_set_glyph_string_clipping_exactly)
14039 (x_compute_glyph_string_overhangs)
14040 (x_draw_glyph_string_foreground)
14041 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14042 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14043 enable_font_backend is nonzero, use font-backend mechanism.
14044 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14045
14046 2008-02-01 Kenichi Handa <handa@m17n.org>
14047
14048 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14049 system_eol_type.
14050 (syms_of_coding): Initialize system_eol_type.
14051
14052 * process.c (Fset_process_coding_system): Inherit system's eol
14053 format if necessary.
14054
14055 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14056
14057 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14058
14059 2008-02-01 Kenichi Handa <handa@m17n.org>
14060
14061 * coding.c (decode_eol): Pay attention to buffer relocation in
14062 del_range_2.
14063 (decode_coding): Call decode_eol before restoring undo_list.
14064
14065 2008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * charset.c (Fdefine_charset_internal): Fix setting of
14068 emacs_mule_bytes.
14069
14070 2008-02-01 Kenichi Handa <handa@m17n.org>
14071
14072 * keyboard.c (read_char): Check if C is a character or not before
14073 looking up Vkeyboard_translate_table.
14074
14075 2008-02-01 Kenichi Handa <handa@m17n.org>
14076
14077 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14078 condition to terminate the loop.
14079
14080 2008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * coding.c (produce_composition): Compare charbuf[i] instead of
14083 args[i] against 0.
14084 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14085
14086 2008-02-01 Kenichi Handa <handa@m17n.org>
14087
14088 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14089 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14090 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14091 detect_coding.
14092 (emacs_mule_char): Handle old style (Emacs 20) component character
14093 of a composition.
14094 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14095 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14096 composition rule.
14097 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14098
14099 2008-02-01 Kenichi Handa <handa@m17n.org>
14100
14101 * coding.c (encode_coding_ccl): Allocate destination dynamically
14102 when necessary.
14103
14104 2008-02-01 Kenichi Handa <handa@m17n.org>
14105
14106 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14107 the loop. When quitted, show a proper error message.
14108
14109 2008-02-01 Kenichi Handa <handa@m17n.org>
14110
14111 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14112 src->clip_head and src->clip_tail temporarily instead of src->hl.
14113
14114 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14115 character sequence.
14116 (Fccl_execute_on_string): Use ASET, not XSET.
14117
14118 2008-02-01 Kenichi Handa <handa@m17n.org>
14119
14120 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14121
14122 2008-02-01 Kenichi Handa <handa@m17n.org>
14123
14124 * coding.c (decode_coding): Fix the condition of terminating the
14125 decoding loop.
14126
14127 2008-02-01 Kenichi Handa <handa@m17n.org>
14128
14129 * data.c (Faset): On setting a character bigger than 255 in a
14130 unibyte string, signal an error instead of make the string multibyte.
14131
14132 2008-02-01 Kenichi Handa <handa@m17n.org>
14133
14134 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14135 made by a mapping table.
14136
14137 2008-02-01 Kenichi Handa <handa@m17n.org>
14138
14139 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14140 not.
14141 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14142 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14143
14144 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14145 s->face is NULL or not.
14146
14147 2008-02-01 Kenichi Handa <handa@m17n.org>
14148
14149 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14150 (x_draw_glyph_string): Fix drawing of right_overhang and
14151 left_overhang around/on cursor.
14152
14153 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14154
14155 2008-02-01 Kenichi Handa <handa@m17n.org>
14156
14157 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14158
14159 2008-02-01 Kenichi Handa <handa@m17n.org>
14160
14161 * coding.c (Fdefine_coding_system_internal)
14162 (Fdefine_coding_system_alias): Avoid a duplicated element in
14163 Vcoding_system_alist.
14164
14165 2008-02-01 Kenichi Handa <handa@m17n.org>
14166
14167 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14168
14169 * coding.c (Qcoding_system_define_form): New variable.
14170 (syms_of_coding): Intern and staticpro it.
14171 (Fcoding_system_p): Check Qcoding_system_define_form.
14172 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14173
14174 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14175 Fcoding_system_p.
14176 (CHECK_CODING_SYSTEM): If ID is not available, call
14177 Fcheck_coding_system.
14178 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14179 Try also Fcheck_coding_system.
14180
14181 2008-02-01 Kenichi Handa <handa@m17n.org>
14182
14183 * coding.c (code_conversion_restore): GCPRO arg.
14184
14185 2008-02-01 Kenichi Handa <handa@m17n.org>
14186
14187 * character.c (lisp_string_width): Check multibyteness of STRING.
14188
14189 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14190
14191 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14192 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14193 (decode_mac_font_name): Use decode_coding_c_string instead of
14194 decode_coding.
14195 (x_load_font): Initialize fontp->fontset to -1. Set
14196 fontp->encoding_type.
14197
14198 2008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * search.c (search_buffer): Give up BM search on case-fold-search
14201 if one of a target character has a case-equivalence of different
14202 byte length even if that target charcter is an ASCII.
14203 (simple_search): Fix calculation of byte length of matched text.
14204 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14205
14206 2008-02-01 Kenichi Handa <handa@m17n.org>
14207
14208 * coding.c (decode_coding): Fix handling of invalid bytes.
14209
14210 2008-02-01 Kenichi Handa <handa@m17n.org>
14211
14212 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14213 Unicode characters.
14214
14215 2008-02-01 Kenichi Handa <handa@m17n.org>
14216
14217 * coding.c (encode_coding_object): If a pre-write-conversion
14218 function makes a new buffer, kill it.
14219
14220 2008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 * coding.c (QCascii_compatible_p): New variable.
14223 (syms_of_coding): Initialize it.
14224 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14225 calling string_char.
14226 (record_conversion_result): Add `default:' case.
14227 (coding_charset_list): Delete unused variable `coding_type'.
14228 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14229 property in the plist of the coding system.
14230 (Fcoding_system_put): Check QCascii_compatible_p.
14231
14232 2008-02-01 Miles Bader <miles@gnu.org>
14233
14234 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14235 removed calculation of frame `f', as it's now used.
14236
14237 2008-02-01 Kenichi Handa <handa@m17n.org>
14238
14239 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14240 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14241 (UNIDATA): New variable.
14242 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14243 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14244 $(RUN_TEMACS) unconditionally.
14245
14246 2008-02-01 Kenichi Handa <handa@m17n.org>
14247
14248 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14249 (admindir): New variable.
14250 ($(lispsource)international/charprop.el): New target.
14251
14252 2008-02-01 Miles Bader <miles@gnu.org>
14253
14254 * character.c (chars-in-region): Remove obsolete function.
14255 (syms_of_character): Remove its initialization.
14256
14257 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14258
14259 * w32select.c (validate_coding_system)
14260 (setup_windows_coding_system): New functions.
14261 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14262 setup_windows_coding_system.
14263 (setup_config, Fw32_get_clipboard_data): Use
14264 validate_coding_system.
14265 (Fx_selection_exists): Move call to setup_config to a place
14266 where signals are allowed.
14267
14268 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14269 (Fcheck_coding_system): Add declarations.
14270
14271 2008-02-01 Kenichi Handa <handa@m17n.org>
14272
14273 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14274
14275 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14276
14277 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14278 string as the second argument for x_new_fontset.
14279
14280 2008-02-01 Kenichi Handa <handa@m17n.org>
14281
14282 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14283 (encode_coding_object): Use safe_call instead of call2.
14284
14285 2008-02-01 Kenichi Handa <handa@m17n.org>
14286
14287 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14288
14289 * Makefile.in (lisp): Include charprop.el.
14290
14291 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14292
14293 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14294 Not sure if it's unnecessary.
14295
14296 2008-02-01 Steven Tamm <steventamm@mac.com>
14297
14298 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14299 some possibly unnecessary fontset checking code that crashed
14300 when creating a new frame.
14301
14302 2008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14305 lookup_face.
14306
14307 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14308
14309 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14310
14311 2008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14314 (coding_charset_list): New function.
14315
14316 * coding.h (coding_charset_list): Extern it.
14317
14318 2008-02-01 Kenichi Handa <handa@m17n.org>
14319
14320 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14321 concatenation of family and registry.
14322
14323 2008-02-01 Kenichi Handa <handa@m17n.org>
14324
14325 * character.h (BYTE8_STRING): Fix typo.
14326
14327 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14328 string to multibyte (sync to HEAD).
14329
14330 * casefiddle.c (casify_region): Handle changes in byte-length
14331 using replace_range_2 (sync to HEAD).
14332
14333 2008-02-01 Andreas Schwab <schwab@suse.de>
14334
14335 * chartab.c (map_char_table): GCPRO table and arg.
14336
14337 2008-02-01 Kenichi Handa <handa@m17n.org>
14338
14339 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14340 already at limit.
14341
14342 2008-02-01 Kenichi Handa <handa@m17n.org>
14343
14344 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14345 instead of fast_c_string_match_ignore_case.
14346 (find_font_encoding): Change argument to Lisp_Object. Use
14347 fast_string_match_ignore_case instead of
14348 fast_c_string_match_ignore_case. Change caller.
14349
14350 2008-02-01 Kenichi Handa <handa@m17n.org>
14351
14352 * xdisp.c (get_next_display_element): In unibyte case, decide to
14353 display in octal form by checking a character by
14354 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14355
14356 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14357
14358 * character.c (unibyte_has_multibyte_table): New variable.
14359
14360 * character.h (unibyte_has_multibyte_table): Extern it.
14361 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14362
14363 2008-02-01 Kenichi Handa <handa@m17n.org>
14364
14365 * coding.c (encode_coding_iso_2022): Fix handling of charset
14366 annotation.
14367
14368 2008-02-01 Kenichi Handa <handa@m17n.org>
14369
14370 * coding.c (setup_coding_system): If coding_system is nil, use
14371 Qundecided.
14372 (Fterminal_coding_system): Return nil if terminal coding system is
14373 `undecided'.
14374 (syms_of_coding): Define coding-system `undecided' here. Setup
14375 terminal_coding as `undecided'.
14376
14377 2008-02-01 Kenichi Handa <handa@m17n.org>
14378
14379 * xdisp.c (message_dolog, set_message_1): Call
14380 unibyte_char_to_multibyte with arg type int.
14381
14382 * lread.c (read1): Fix reading of a char-table.
14383
14384 * print.c (print_object): Include sub char-table in circularities
14385 detection.
14386
14387 2008-02-01 Kenichi Handa <handa@m17n.org>
14388
14389 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14390 Append the found sequences in car of ARGS instead of prepending.
14391
14392 2008-02-01 Kenichi Handa <handa@m17n.org>
14393
14394 * fileio.c (report_file_error): Make a unibyte string from
14395 strerror (errorno).
14396 (Fsubstitute_in_file_name): Fix the arg to
14397 unibyte_char_to_multibyte. It is evaluated twice.
14398
14399 2008-02-01 Kenichi Handa <handa@m17n.org>
14400
14401 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14402
14403 2008-02-01 Kenichi Handa <handa@m17n.org>
14404
14405 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14406 BOM is not found.
14407 (detect_coding, detect_coding_system): Optimization for ISO-2022
14408 when no 8-bit data is found.
14409
14410 2008-02-01 Jason Rumney <jasonr@gnu.org>
14411
14412 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14413
14414 2008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14417 CHARS.
14418
14419 2008-02-01 Steven Tamm <steventamm@mac.com>
14420
14421 * macterm.c (mac_encode_char): Add charset argument and update
14422 to use encoding_type.
14423 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14424 switch to pure fontset.
14425 (decode_mac_font_name): Temporarily remove decoding.
14426 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14427 (x_load_font): Temporarily remove encoding.
14428
14429 2008-02-01 Kenichi Handa <handa@m17n.org>
14430
14431 * xfaces.c (Fface_font): If frame is not on a window system,
14432 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14433 refer to face->font.
14434 (split_font_name_into_vector, build_font_name_from_vector)
14435 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14436 when HAVE_WINDOW_SYSTEM is defined.
14437
14438 2008-02-01 Kenichi Handa <handa@m17n.org>
14439
14440 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14441 (x_produce_glyphs): Fix setting of members of cmp in case
14442 cmp->glyph_len is zero.
14443
14444 * fontset.c (Fset_fontset_font): Fix docstring.
14445 (Ffontset_info): Make it backward compatible. New arg ALL.
14446
14447 2008-02-01 Kim F. Storm <storm@cua.dk>
14448
14449 * process.c (read_process_output): Grow decoding_buf when needed;
14450 this could cause a crash in allocate_string and compact_small_strings.
14451
14452 2008-02-01 Kenichi Handa <handa@m17n.org>
14453
14454 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14455
14456 2008-02-01 Kenichi Handa <handa@m17n.org>
14457
14458 * coding.c (setup_coding_system): Set coding->common_flags
14459 correctly for raw-text.
14460 (consume_chars): On encoding unibyte text by raw-text, don't check
14461 multibyte form.
14462 (encode_coding): On encoding by raw-text, never use translation tables.
14463
14464 * fileio.c (e_write): Short cut for the case of no encoding.
14465
14466 2008-02-01 Kenichi Handa <handa@m17n.org>
14467
14468 * coding.c (detect_coding, detect_coding_system): Delete unused
14469 variables.
14470
14471 2008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14474 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14475
14476 2008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * coding.c (Ffind_coding_systems_region_internal): Include
14479 raw-text and no-conversion in the result.
14480
14481 2008-02-01 Kenichi Handa <handa@m17n.org>
14482
14483 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14484 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14485 FONT_DEF.
14486 (font_def_arg, add_arg, from_arg, to_arg): New args.
14487 (set_fontset_font): Change argument.
14488 (Fset_fontset_font): Fix for the case that TARGET is a script
14489 name and charset name.
14490 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14491
14492 2008-02-01 Kenichi Handa <handa@m17n.org>
14493
14494 * fontset.c (fontset_font): Rename from fontset_face. Change return
14495 value.
14496 (face_suitable_for_char_p, face_for_char): Adjust for the change
14497 of fontset_font.
14498 (make_fontset_for_ascii_face): Fix setting of the fontset element
14499 for ASCII.
14500 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14501 to get a font name.
14502 (Ffontset_info): Adjust for the change of fontset_font.
14503
14504 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14505
14506 * character.h (LEADING_CODE_LATIN_1_MIN)
14507 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14508
14509 2008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * editfns.c (check_translation): New function.
14512 (Ftranslate_region_internal): Handle M:N mapping.
14513
14514 2008-02-01 Kenichi Handa <handa@m17n.org>
14515
14516 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14517
14518 2008-02-01 Kenichi Handa <handa@m17n.org>
14519
14520 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14521 goto invalid_code.
14522 (decode_coding_iso_2022): Fix handling of invalid designation.
14523
14524 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14525 after calling code_conversion_save.
14526
14527 2008-02-01 Kenichi Handa <handa@m17n.org>
14528
14529 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14530
14531 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14532
14533 * fontset.c: Include "intervals.h".
14534 (fontset_face): Fix comparing of Lisp_Objects.
14535 (free_face_fontset, new_fontset_from_font_name): Fix
14536 Lisp_Object/int mixup.
14537
14538 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14539
14540 * coding.c: Add many prototypes for static functions.
14541 (get_translation_table): Allow max_lookup to be NULL.
14542 (decode_coding, Ffind_coding_systems_region_internal)
14543 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14544 get_translation_table with max_lookup NULL.
14545
14546 2008-02-01 Kenichi Handa <handa@m17n.org>
14547
14548 * coding.c (get_translation_table): Declare it as Lisp_Object.
14549 (LOOKUP_TRANSLATION_TABLE): New macro.
14550 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14551 instead of CHAR_TABLE_REF.
14552
14553 2008-02-01 Kenichi Handa <handa@m17n.org>
14554
14555 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14556 annotation data format.
14557 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14558 Change arguments FROM and TO to single argument NCHARS. Change caller.
14559 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14560 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14561 (decode_coding_ccl, decode_coding_charset): Pay attention to
14562 coding->charbuf_used.
14563 (get_translation): New function.
14564 (produce_chars): New arguments translation_table and last_block.
14565 Translate characters here. Return number of carryover chars.
14566 Change caller.
14567 (produce_composition): New argument pos. Change caller.
14568 Adjust for the change of annotation data format.
14569 (produce_charset, produce_annotation): Likewise.
14570 (decode_coding, encode_coding): Don't call translate_chars.
14571 (consume_chars): New arg translation_table. Change caller.
14572 (translate_chars): Delete.
14573 (syms_of_coding): Make translation-table's number of extra slots 2.
14574
14575 2008-02-01 Kenichi Handa <handa@m17n.org>
14576
14577 * search.c (simple_search): Fix setting this_pos_byte in backward
14578 search.
14579
14580 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14581 byte sequence.
14582 (detect_coding_ccl): Fix setting of the variable valids.
14583
14584 2008-02-01 Kenichi Handa <handa@m17n.org>
14585
14586 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14587
14588 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14589
14590 * editfns.c (Ftranslate_region_internal): Rename from
14591 Ftranslate_region. Accept a char-table in TABLE.
14592 (syms_of_editfns): Defsubr Stranslate_region_internal.
14593
14594 * xfaces.c (set_lface_from_font_name): If a font is specified for
14595 a frame, generate a fontset from the font.
14596 (build_scalable_font_name): If the scalable font is requested for
14597 a specific size, don't change that size.
14598 (try_font_list): Try a scalable font also in the case that a
14599 pattern string is specified.
14600
14601 2008-02-01 Kenichi Handa <handa@m17n.org>
14602
14603 * xfaces.c (Fface_font): New optional arg CHARACTER.
14604
14605 2008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * charset.h (CHARSET_OFFSET): New macro.
14608
14609 2008-02-01 Kenichi Handa <handa@m17n.org>
14610
14611 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14612
14613 * fontset.c (fontset_face): Handle the case that repertory is a
14614 char-table.
14615 (find_font_encoding): Return nil for unknown encoding.
14616 (Fset_fontset_font): Ignore a font of unknown encoding.
14617
14618 2008-02-01 Kenichi Handa <handa@m17n.org>
14619
14620 * keymap.c (describe_vector): Handle default value of a char table.
14621
14622 * fontset.c (fontset_face): Handle fallback fonts correctly.
14623 (Ffontset_info): Return infomation about fallback fonts.
14624
14625 2008-02-01 Kenichi Handa <handa@m17n.org>
14626
14627 * fontset.c (FONTSET_DEFAULT): New macro.
14628 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14629 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14630 the case that it is nil.
14631 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14632 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14633
14634 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14635 subset or superset.
14636
14637 2008-02-01 Kenichi Handa <handa@m17n.org>
14638
14639 * emacs.c (main): Call init_charset after syms_of_XXX.
14640
14641 * charset.c (Vcharset_map_directory): Delete.
14642 (Vcharset_map_path): New variable.
14643 (load_charset_map_from_file): Use Vcharset_map_path instead.
14644 (init_charset): Initialize Vcharset_map_path.
14645 (syms_of_charset): Delete declaration of "charset-map-directory",
14646 add declaration of "charset-map-path".
14647
14648 2008-02-01 Kenichi Handa <handa@m17n.org>
14649
14650 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14651 ASCII only string.
14652
14653 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14654
14655 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14656 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14657
14658 2008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14661
14662 * coding.c (QCmnemonic, QCdefalut_char)
14663 (QCdecode_translation_table, QCencode_translation_table)
14664 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14665 (get_translation_table): Return a list of translation tables if
14666 necessary.
14667 (decode_coding): Call get_translation_table with ENCODEP 0.
14668 (char_encodable_p): If translation_table is non-nil, always call
14669 translate_char.
14670 (Fdefine_coding_system_internal): Accept list of translation
14671 tables as :encode-translation-table and :decode-translation-table.
14672 (Fcoding_system_put): New function.
14673 (syms_of_coding): Declare new symbols. Defsubr
14674 Scoding_system_put.
14675 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14676 typically JISX0212.
14677
14678 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14679 when the charset is superset type.
14680
14681 * character.c (translate_char): Accept list of translation tables.
14682
14683 2008-02-01 Kenichi Handa <handa@m17n.org>
14684
14685 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14686 (CODING_ATTR_TRANS_TBL): New macro.
14687
14688 * coding.c (get_translation_table): New function.
14689 (translate_chars): Fix the bug of skipping annotation data.
14690 (decode_coding, encode_coding): Utilize get_translation_table.
14691 (char_encodable_p, Funencodable_char_position): Translate char if
14692 necessary.
14693 (Ffind_coding_systems_region_internal)
14694 (Fcheck_coding_systems_region): Setup translation table for encode
14695 in a coding system attribute vector in advance.
14696 (Fdefine_coding_system_internal): Allow a symbol as translation
14697 table. For shift-jis type coding system, allow 4th charset.
14698
14699 2008-02-01 Kenichi Handa <handa@m17n.org>
14700
14701 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14702
14703 * xdisp.c (get_next_display_element): Pass -1 as POS to
14704 FACE_FOR_CHAR if displaying a C-string.
14705
14706 2008-02-01 Kenichi Handa <handa@m17n.org>
14707
14708 * composite.c (get_composition_id): Handle xoff and yoff in a
14709 composition rule.
14710
14711 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14712 (struct composition): New member lbearing and rbearing.
14713
14714 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14715 (x_get_glyph_overhangs): Handle a composition glyph.
14716 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14717
14718 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14719 composition glyph.
14720
14721 2008-02-01 Kenichi Handa <handa@m17n.org>
14722
14723 * print.c: Include charset.h.
14724 (Vprint_charset_text_property): New variable.
14725 (Qdefault): Extern it.
14726 (PRINT_STRING_NON_CHARSET_FOUND)
14727 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14728 (print_check_string_result): New variable.
14729 (print_check_string_charset_prop): New function.
14730 (print_prune_charset_plist): New variable.
14731 (print_prune_string_charset): New function.
14732 (print_object): Call print_prune_string_charset if
14733 Vprint_charset_text_property is not t.
14734 (print_interval): Print nothing if interval->plist is nil.
14735 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14736 variable. Init and staticpro print_prune_charset_plist.
14737
14738 2008-02-01 Kenichi Handa <handa@m17n.org>
14739
14740 * fontset.c (new_fontset_from_font_name): Use the specified font
14741 for all characters in the new fontset.
14742
14743 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14744 OBJECT args.
14745
14746 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14747 OBJECT args for composition too.
14748
14749 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14750 OBJECT args.
14751
14752 2008-02-01 Kenichi Handa <handa@m17n.org>
14753
14754 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14755
14756 * fontset.c (reorder_font_vector): Adjust for the change of
14757 FONT_DEF format.
14758 (fontset_face): New arg id. Change caller.
14759 (face_for_char): New args pos and object.
14760 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14761 (fs_query_fontset): Check NAME by Fassoc too.
14762 (Fset_fontset_font): Allow non-XLFD font name.
14763 (Ffontset_info): Adjust for the change of FONT_DEF format.
14764
14765 * fontset.h (face_for_char): Adjust prototype.
14766
14767 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14768 (append_space, extend_face_to_end_of_line)
14769 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14770 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14771
14772 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14773 POS and OBJECT args.
14774
14775 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14776 POS and OBJECT args.
14777
14778 2008-02-01 Jason Rumney <jasonr@gnu.org>
14779
14780 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14781 of GlobalAlloc'ed memory.
14782
14783 2008-02-01 Kenichi Handa <handa@m17n.org>
14784
14785 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14786
14787 * charset.h (charset_table_used): Delete extern.
14788
14789 * charset.c (charset_table_used): Make it static.
14790 (map_charset_chars): Fix args to c_function with.
14791
14792 * chartab.c (map_sub_char_table_for_charset): Fix args to
14793 c_function with.
14794
14795 * coding.h (enum coding_result_code): Delete
14796 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14797
14798 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14799 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14800 (Vlast_code_conversion_error): New variables.
14801 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14802 (ONE_MORE_BYTE): Record error if any instead of signaling an
14803 error. If non-ASCII multibyte char is found, return the negative
14804 value of the code. All callers changed to check it.
14805 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14806 (record_conversion_result): New function. Change all codes setting
14807 coding->result to call this function.
14808 (detect_coding_utf_8, decode_coding_utf_8)
14809 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14810 Don't use the local variable incomplete.
14811 (emacs_mule_char): Change the second arg to `const'.
14812 (decode_coding): Fix of flushing out unprocessed data.
14813 (make_conversion_work_buffer): Fix making of a work buffer.
14814 (decode_coding_object): Return coding->dst_object.
14815
14816 * fontset.c (set_fontset_font): Fix args.
14817
14818 * lisp.h (CHARACTERBITS): Define as 22.
14819
14820 * process.c (send_process): Be sure to set coding->src_multibyte.
14821
14822 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14823
14824 2008-02-01 Kenichi Handa <handa@m17n.org>
14825
14826 * xdisp.c (handle_auto_composed_prop): Give limit to
14827 Fnext_single_char_property_change.
14828
14829 2008-02-01 Kenichi Handa <handa@m17n.org>
14830
14831 * composite.c (syms_of_composite): Don't make the composition hash
14832 table weak.
14833
14834 * fontset.c (Fset_fontset_font): Fix docstring.
14835
14836 * lisp.h (detect_coding_system): Adjust prototype.
14837
14838 * fileio.c (kill_workbuf_unwind): Delete this function.
14839 (Finsert_file_contents): Adjust the call of detect_coding_system.
14840 Get conversion_buffer by code_conversion_save. Use the macro
14841 CODING_MAY_REQUIRE_DECODING. After decoding, update
14842 coding_system.
14843
14844 * coding.h (make_conversion_work_buffer): Delete extern.
14845 (code_conversion_save): Extern it.
14846
14847 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14848 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14849 (decode_coding_utf_8): Don't do eol converion.
14850 (detect_coding_utf_16): Check coding->src_chars, not
14851 coding->src_bytes. Add heuristics for those that have no signature.
14852 (decode_coding_emacs_mule, decode_coding_iso_2022)
14853 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14854 Don't do eol converion.
14855 (adjust_coding_eol_type): Return a new coding system.
14856 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14857 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14858 each change.
14859 (decode_coding): Pay attention to undo_list. Do eol conversion for
14860 all types of coding-systems (if necessary).
14861 (Vcode_conversion_work_buf_list): Delete it.
14862 (Vcode_conversion_reused_workbuf): Rename from
14863 Vcode_conversion_reused_work_buf.
14864 (Vcode_conversion_workbuf_name): New variable.
14865 (reused_workbuf_in_use): New variable.
14866 (make_conversion_work_buffer): Delete the arg DEPTH.
14867 (code_conversion_restore): Change argument to cons.
14868 (code_conversion_save): Delete the argument BUFFER. Change callers.
14869 (detect_coding_system): New argument src_chars. Change callers.
14870 Fix for utf-16 detection.
14871 (init_coding_once): Don't use ISO_carriage_return.
14872 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14873 reused_workbuf_in_use.
14874
14875 2008-02-01 Kenichi Handa <handa@m17n.org>
14876
14877 * keymap.c (store_in_keymap): Pay attention to the case that idx
14878 is a cons specifying a character range.
14879
14880 2008-02-01 Kenichi Handa <handa@m17n.org>
14881
14882 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14883 HANDLED_RECOMPUTE_PROPS.
14884
14885 * coding.c (Fdefine_coding_system_internal): Fix checking of
14886 ascii compatibility.
14887
14888 2008-02-01 Kenichi Handa <handa@m17n.org>
14889
14890 * charset.c (find_charsets_in_text): Delete unused locale variable.
14891 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14892
14893 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14894 Resync charset_list to Vemacs_mule_charset_list.
14895
14896 * keymap.c (store_in_keymap): Pay attention to the case that idx
14897 is a cons specifying a character range.
14898
14899 2008-02-01 Kenichi Handa <handa@m17n.org>
14900
14901 * composite.c (update_compositions): Bind inhibit-read-only, etc
14902 to t before calling remove-list-of-text-properties.
14903
14904 * print.c (print_object): Always print ASCII chars as is.
14905
14906 2008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14909
14910 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14911 is a char table.
14912
14913 2008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14916
14917 2008-02-01 Kenichi Handa <handa@m17n.org>
14918
14919 * xfaces.c (set_lface_from_font_name): Fix for the case that
14920 FONTNAME is not fontset name.
14921
14922 2008-02-01 Kenichi Handa <handa@m17n.org>
14923
14924 * fns.c (base64_encode_1): Fix previous change.
14925
14926 2008-02-01 Kenichi Handa <handa@m17n.org>
14927
14928 * fontset.c (set_fontset_font): New function.
14929 (Fset_fontset_font): If a font is specified for a charset, use
14930 map_charset_chars to store the font spec in a fontset.
14931
14932 2008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * fontset.c (fontset_face): Create a fallback fontset on demand.
14935 (make_fontset): Don't create a fallback fontset here.
14936 (free_face_fontset): Free a fallback fontset (if any) too.
14937 (n_auto_fontsets): Delete this variable.
14938 (auto_fontset_alist): New variable.
14939 (new_fontset_from_font_name): Check auto_fontset_alist.
14940 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14941 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14942 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14943 Defsubr Sfontset_list_all.
14944
14945 2008-02-01 Kenichi Handa <handa@m17n.org>
14946
14947 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14948
14949 2008-02-01 Kenichi Handa <handa@m17n.org>
14950
14951 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14952
14953 2008-02-01 Kenichi Handa <handa@m17n.org>
14954
14955 * editfns.c (Fgoto_char): Fix docstring.
14956
14957 2008-02-01 Kenichi Handa <handa@m17n.org>
14958
14959 * insdel.c (insert_from_gap): Adjust intervals correctly.
14960
14961 2008-02-01 Jason Rumney <jasonr@gnu.org>
14962
14963 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14964 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14965 (w32_initialize): Try to load it.
14966 (x_get_font_repertory): Use it if available.
14967 (w32_encode_char): Add shortcut for unicode output.
14968
14969 * w32fns.c (w32_load_system_font): Default charset to -1.
14970 (x_to_w32_charset): Match all fonts for unicode.
14971 (w32_to_x_charset): New parameter matching. Don't return partial
14972 or wildcard charsets.
14973 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14974 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14975 (w32_to_x_font): Match charset to real charset.
14976 (enum_font_cb2): Always list unicode versions.
14977
14978 * makefile.w32-in (temacs): Increase EMHEAP.
14979
14980 2008-02-01 Jason Rumney <jasonr@gnu.org>
14981
14982 * w32term.c (w32_encode_char): New charset parameter.
14983 font_info.encoding becomes encoding_type.
14984 (x_get_font_repertory): New function. Warning: stub only!
14985 (x_new_font): Return quickly if font already set.
14986 (x_new_fontset): fontsetname parameter is Lisp_Object.
14987 Use new fs_query_fontset. Try new_fontset_from_font_name.
14988 Use fontset_name for return value.
14989
14990 * w32term.h: Declare x_get_font_repertory.
14991
14992 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14993 place of find_charset_in_text. Use encode_coding_object in place
14994 of encode_coding.
14995 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14996 decode_coding.
14997
14998 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14999 of x_new_fontset.
15000 (w32_load_system_font): Initialize charset as unicode.
15001 font_info.encoding becomes encoding_type.
15002 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15003 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15004 (syms_of_w32fns): Set get_font_repertory_func.
15005
15006 * w32console.c: Include character.h. Use terminal_encode_buffer
15007 from term.c.
15008 (write_glyphs): Use new version of encode_terminal_code. Use
15009 encode_coding_object in place of encode_coding.
15010
15011 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15012 encoding becomes encoding_type.
15013
15014 * term.c (terminal_encode_buffer): Make externally visible.
15015
15016 * makefile.w32-in: Add character.h dependancies.
15017 (character.o, chartab.o): New targets.
15018
15019 2008-02-01 Kenichi Handa <handa@m17n.org>
15020
15021 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15022 CODING_ID_EOL_TYPE.
15023
15024 2008-02-01 Andreas Schwab <schwab@suse.de>
15025
15026 * coding.c (produce_chars): Revert last change.
15027
15028 2008-02-01 Kenichi Handa <handa@m17n.org>
15029
15030 * charset.h (charset_unicode): Extern it.
15031
15032 * charset.c (string_xstring_p): Check by (C >= 0x100).
15033 (find_charsets_in_text): Change format of the arc CHARSETS. New
15034 arg MULTIBYTE.
15035 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15036 change of find_charsets_in_text.
15037 (Fsplit_char): Fix doc. Never return unknown.
15038
15039 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15040
15041 * coding.c (Fdefine_coding_system_alias): Update
15042 Vcoding_system_list.
15043
15044 * fontset.c (load_font_get_repertory): Pay attention to the case
15045 that ENCODING of a font is specified by a char-table.
15046
15047 * xterm.c (x_get_font_repertory): Handle the case that the
15048 encoding of font is other than Unicode.
15049
15050 2008-02-01 Kenichi Handa <handa@m17n.org>
15051
15052 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15053 if a character is encodable by the terminal coding system. If
15054 not, produces proper number of `?'s. Update
15055 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15056 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15057
15058 2008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15061 variables.
15062 (encode_terminal_code): Change argument. Encode multiple
15063 characters at once. Store the result of encoding in
15064 terminal_encode_buffer.
15065 (write_glyphs, insert_glyphs): Adjust for the change of
15066 encode_terminal_code.
15067 (term_init): Initialize terminal_encode_buffer and
15068 terminal_encode_buf_size.
15069
15070 * coding.c (consume_chars): If coding->src_object is nil, don't
15071 check annotation.
15072
15073 2008-02-01 Kenichi Handa <handa@m17n.org>
15074
15075 * character.c (char_string): Use ASCII_CHAR_P instead of
15076 SINGLE_BYTE_CHAR_P.
15077
15078 2008-02-01 Kenichi Handa <handa@m17n.org>
15079
15080 * xdisp.c (handle_auto_composed_prop): Check if the last
15081 characters of auto-composed region is newly composed with the
15082 following characters.
15083 (handle_composition_prop): Fix checking of point being inside
15084 composition.
15085
15086 2008-02-01 Kenichi Handa <handa@m17n.org>
15087
15088 * fns.c (concat): Don't change multibyteness of the result by
15089 concatenating an 8-bit character.
15090
15091 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15092 multibyteness of the result when newelt is an 8-bit character.
15093
15094 2008-02-01 Dave Love <fx@gnu.org>
15095
15096 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15097 EMACS_INT.
15098
15099 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15100
15101 * xfaces.c (face_numeric_value): Declare dim size_t.
15102 (Finternal_lisp_face_equal_p): Remove unused f.
15103
15104 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15105 (MATRIX_ROW): Remove unused vars.
15106 (draw_glyphs, x_insert_glyphs, fast_find_position)
15107 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15108 byte/char counts.
15109
15110 * regex.c (regex_compile): Remove unused var.
15111
15112 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15113
15114 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15115 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15116
15117 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15118
15119 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15120
15121 * fileio.c (Fwrite_region): Remove unused var.
15122
15123 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15124 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15125
15126 * composite.c (Fremove_list_of_text_properties): Declare.
15127
15128 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15129 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15130 (coding_inherit_eol_type): Remove unused attrs.
15131 (detect_coding): Cast arg of detect_eol.
15132
15133 * charset.c (syms_of_charset): Remove unused var p.
15134 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15135 byte/char counts.
15136
15137 * casetab.c (set_case_table): Remove unused var.
15138
15139 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15140 unused vars.
15141
15142 2008-02-01 Dave Love <fx@gnu.org>
15143
15144 * xterm.c (x_bitmap_mask): Declare.
15145
15146 2008-02-01 Dave Love <fx@gnu.org>
15147
15148 * xterm.c (x_term_init): Fix type error.
15149
15150 * lisp.h: Add Funibyte_char_to_multibyte.
15151
15152 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15153 (Fset_coding_system_priority): Doc fix.
15154
15155 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15156
15157 * indent.c (check_composition): Make start and end EMACS_INT.
15158
15159 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15160
15161 * xdisp.c (handle_composition_prop, check_point_in_composition):
15162 Make buffer positions EMACS_INT.
15163
15164 * composite.c (find_composition, run_composition_function)
15165 (update_compositions, Ffind_composition_internal): Make buffer
15166 positions EMACS_INT.
15167
15168 * composite.h (find_composition, update_compositions): Make
15169 position args EMACS_INT.
15170
15171 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15172
15173 * intervals.c (get_property_and_range):
15174 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15175
15176 * unexalpha.c: Don't include varargs.h.
15177
15178 2008-02-01 Dave Love <fx@gnu.org>
15179
15180 * coding.h (ENCODE_UTF_8): New.
15181
15182 * Makefile.in (gtkutil.o): Depend on coding.h.
15183
15184 * coding.c (Fset_coding_system_priority): Doc fix.
15185
15186 2008-02-01 Kenichi Handa <handa@m17n.org>
15187
15188 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15189 the case of auto saving.
15190
15191 2008-02-01 Andreas Schwab <schwab@suse.de>
15192
15193 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15194 `range' from GC.
15195
15196 2008-02-01 Kenichi Handa <handa@m17n.org>
15197
15198 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15199
15200 2008-02-01 Kenichi Handa <handa@m17n.org>
15201
15202 * fileio.c (choose_write_coding_system): Return a decided coding system.
15203 (Fwrite_region): Set Vlast_coding_system_used to the return value
15204 of choose_write_coding_system.
15205
15206 2008-02-01 Kenichi Handa <handa@m17n.org>
15207
15208 * charset.c (Fset_charset_priority): Pay attention to duplicated
15209 arguments.
15210
15211 * coding.c (QCcategory): New variable.
15212 (syms_of_coding): Defsym it. Set all elements of
15213 Vcoding_category_table and their symbol values.
15214 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15215 coding-category-XXX, and coding-category-list.
15216 (Fdefine_coding_system_internal): Add category in the plist.
15217
15218 2008-02-01 Kenichi Handa <handa@m17n.org>
15219
15220 * callproc.c (Fcall_process): Handle carryover correctly.
15221
15222 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15223 (raw_text_coding_system): Check NILP (coding_system).
15224 (coding_inherit_eol_type): Check NILP (coding_system) and
15225 NILP (parent).
15226 (consume_chars): Fix for the case of raw-text.
15227
15228 * process.c (read_process_output): Handle carryover correctly.
15229
15230 2008-02-01 Dave Love <fx@gnu.org>
15231
15232 * regex.c (re_search_2): Fix last change.
15233
15234 2008-02-01 Kenichi Handa <handa@m17n.org>
15235
15236 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15237 target_multibyte. Even in a unibyte case, return a converted
15238 multibyte char.
15239 (GET_CHAR_AFTER): New macro.
15240 (PATFETCH): Translate via multibyte char.
15241 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15242 (SETUP_MULTIBYTE_RANGE): New macro.
15243 (regex_compile): Setup compiled code so that its multibyteness
15244 matches that of a target. Fix the handling of "[X-YZ]" using
15245 SETUP_MULTIBYTE_RANGE.
15246 (analyse_first) <charset>: For filling fastmap for all multibyte
15247 characters, don't check by BASE_LEADING_CODE_P.
15248 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15249 the same as RE_MULTIBYTE_P (bufp) now.
15250 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15251 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15252 (TRANSLATE_VIA_MULTIBYTE): New macro.
15253 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15254 It is the same as RE_MULTIBYTE_P (bufp) now.
15255 <exactn>: Translate via multibyte.
15256 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15257 translate it.
15258 <charset, charset_not>: Fetch a character by
15259 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15260 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15261 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15262 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15263 by GET_CHAR_AFTER.
15264 (bcmp_translate): Likewise.
15265
15266 * search.c (compile_pattern): Check the member target_multibyte,
15267 not the member multibyte of buf.
15268
15269 * lread.c (read1): While reading a string, set force_singlebyte
15270 and force_multibyte correctly.
15271
15272 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15273 up of unibyte_to_multibyte_table.
15274
15275 2008-02-01 Kenichi Handa <handa@m17n.org>
15276
15277 * coding.c (setup_coding_system): If coding has
15278 post-read-conversion or pre-write-conversion, set
15279 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15280 respectively.
15281 (decode_coding_gap): Run post-read-conversion if any.
15282
15283 * fileio.c (Finsert_file_contents): Even if we read into a
15284 unibyte buffer, check if we must decode the result or not.
15285
15286 2008-02-01 Kenichi Handa <handa@m17n.org>
15287
15288 * coding.c (make_conversion_work_buffer): Change the work buffer
15289 name to the same one as that of Emacs 21.
15290
15291 2008-02-01 Kenichi Handa <handa@m17n.org>
15292
15293 * coding.h (make_conversion_work_buffer): Adjust prototype.
15294 (code_conversion_restore): Don't extern it.
15295
15296 * coding.c (detected_mask): Delete unused variable.
15297 (decode_coding_iso_2022): Pay attention to the byte sequence of
15298 CTEXT extended segment, and retain those bytes as is.
15299 (decode_coding_ccl): Delete unused variable `valids'.
15300 (setup_coding_system): Delete unused variable `category'.
15301 (consume_chars): Delete unused variable `category'. Make it work
15302 for non-multibyte case.
15303 (make_conversion_work_buffer): Change argument.
15304 (saved_coding): Delete unused variable.
15305 (code_conversion_restore): Don't check saved_coding->destination.
15306 (code_conversion_save): New function.
15307 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15308 instead of record_unwind_protect.
15309 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15310 (detect_coding_system): Delete unused variable `mask'.
15311 (Fdefine_coding_system_internal): Delete unused variable id.
15312
15313 * fileio.c (kill_workbuf_unwind): New function.
15314 (Finsert_file_contents): On replacing, call
15315 make_conversion_work_buffer with correct args, and call
15316 record_unwind_protect with the first arg kill_workbuf_unwind.
15317
15318 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15319
15320 2008-02-01 Kenichi Handa <handa@m17n.org>
15321
15322 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15323 (fontset_add): Fix for the case that TO is less than TO1.
15324 (Ffontset_info): Don't use fallback fontset on checking the
15325 default fontset.
15326 (dump_fontset): New function for debugging.
15327
15328 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15329 coding_type is Qcharset.
15330
15331 2008-02-01 Kenichi Handa <handa@m17n.org>
15332
15333 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15334 (map_char_table): Don't inherit the value from the parent on
15335 initializing VAL. Adjust for the above change.
15336
15337 2008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * coding.c (Qsignature, Qendian): Delete these variables.
15340 (syms_of_coding): Don't initialize them.
15341 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15342 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15343 detect_info->found.
15344 (decode_coding_utf_16): Don't detect BOM here.
15345 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15346 is NOT utf_16_without_bom.
15347 (setup_coding_system): For a coding system of type utf-16, check
15348 if the attribute :endian is Qbig or not (not nil or not), and set
15349 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15350 (detect_coding): If coding type is utf-16 and BOM detection is
15351 required, detect it.
15352 (Fdefine_coding_system_internal): For a coding system of type
15353 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15354
15355 2008-02-01 Kenichi Handa <handa@m17n.org>
15356
15357 * coding.c (coding_set_source): Fix for the case that the current
15358 buffer is different from coding->src_object.
15359 (decode_coding_object): Don't use the conversion work buffer if
15360 DST_OBJECT is a buffer.
15361
15362 2008-02-01 Dave Love <fx@gnu.org>
15363
15364 * lread.c (read_emacs_mule_char) [len==2]: Index
15365 emacs_mule_charset correctly.
15366
15367 2008-02-01 Dave Love <fx@gnu.org>
15368
15369 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15370 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15371 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15372 treated specially.)
15373 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15374 (detected_mask): Remove Big5 bits.
15375
15376 2008-02-01 Kenichi Handa <handa@m17n.org>
15377
15378 The following changes are to make the font rescaling facility
15379 compatible with Emacs 21.
15380
15381 * xfaces.c (Vface_font_rescale_alist): Rename from
15382 Vface_resizing_fonts.
15383 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15384 (font_rescale_ratio): Rename from font_resizing_ratio.
15385 (split_font_name): Set font->rescale_ratio.
15386 (better_font_p): Pay attention to font->rescale_ratio.
15387 (build_scalable_font_name): Likewise. Change RESX, and RESY
15388 fields.
15389 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15390
15391 2008-02-01 Kenichi Handa <handa@m17n.org>
15392
15393 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15394 (Qutf_16_le): Remove these variables.
15395 (syms_of_coding): Don't DEFSYM them.
15396 (decode_coding_utf_16): Fix handling of BOM.
15397 (encode_coding_utf_16): Fix handling of BOM.
15398
15399 2008-02-01 Kenichi Handa <handa@m17n.org>
15400
15401 * fileio.c (Finsert_file_contents): On replacing, before decoding
15402 the file into the work buffer, set point of the work buffer to the end.
15403
15404 2008-02-01 Dave Love <fx@gnu.org>
15405
15406 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15407
15408 2008-02-01 Dave Love <fx@gnu.org>
15409
15410 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15411 and fix C types.
15412
15413 2008-02-01 Kenichi Handa <handa@m17n.org>
15414
15415 * xdisp.c (SKIP_GLYPHS): New macro.
15416 (set_cursor_from_row): Pay attention to string display properties.
15417
15418 * category.c (copy_category_entry): Fix for the case that RANGE
15419 is an integer.
15420
15421 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15422
15423 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15424
15425 2008-02-01 Kenichi Handa <handa@m17n.org>
15426
15427 * charset.c (Fcharset_id_internal): New function.
15428 (syms_of_charset): Defsubr it.
15429
15430 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15431 with the last arg charset_list acquired from coding.
15432 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15433 the attribute coding_attr_ccl_valids.
15434
15435 * coding.h (enum define_coding_ccl_arg_index): Set the first
15436 member coding_arg_ccl_decoder to coding_arg_max.
15437
15438 * ccl.h (ccl_driver): Adjust prototype.
15439
15440 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15441 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
15442 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
15443 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15444 last arg Qnil.
15445
15446 2008-02-01 Kenichi Handa <handa@m17n.org>
15447
15448 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15449 call encode_char.
15450
15451 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15452
15453 2008-02-01 Dave Love <fx@gnu.org>
15454
15455 * composite.c (syms_of_composite): Make composition_hash_table weak.
15456
15457 2008-02-01 Kenichi Handa <handa@m17n.org>
15458
15459 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15460 (font_name_registry): Don't extern them.
15461 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15462
15463 * fontset.h (Qfontset): Don't extern it.
15464 (new_fontset_from_font_name): Extern it.
15465
15466 * fontset.c: Give 8 extra slots to fontset objects.
15467 (Qfontset_info): New variable.
15468 (syms_of_fontset): Defsym it.
15469 (FONTSET_FALLBACK): New macro.
15470 (fontset_face): Try also the default fontset.
15471 (make_fontset): Realize a fallback fontset from the default fontset.
15472 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15473 using split_font_name_into_vector and build_font_name_from_vector.
15474 (Fset_fontset_font): Access the elements of font_spec by enum
15475 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15476 name by using split_font_name_into_vector.
15477 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15478 generate a proper font name from the fontset name. Update
15479 Vfontset_alias_alist.
15480 (n_auto_fontsets): New variable.
15481 (new_fontset_from_font_name): New function.
15482 (Ffont_info): Store the information about fonts generated from the
15483 default fontset in the first extra slot of the returned char-table.
15484
15485 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15486 (font_name_registry): Delete function.
15487 (split_font_name_into_vector): New function.
15488 (build_font_name_from_vector): New function.
15489 (font_list): The argument REGISTRY is now a list of registry names.
15490 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15491 specifies an explicit font name, return the name as is. Make a
15492 list of registy names.
15493
15494 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15495 of x_new_fontset.
15496 (Fx_create_frame): Don't call x_new_fontset here. Just use
15497 x_list_fonts to check the existence of fonts.
15498
15499 * xterm.h (x_new_fontset): Adjust prototype.
15500
15501 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15502 string. Use new_fontset_from_font_name to create a fontset from a
15503 font name.
15504
15505 2008-02-01 Kenichi Handa <handa@m17n.org>
15506
15507 * syntax.c (Vfind_word_boundary_function_table): New name for
15508 Vnext_word_boundary_function_table.
15509 (find-word-boundary-function-table): New name for
15510 next-word-boundary-function-table.
15511
15512 2008-02-01 Dave Love <fx@gnu.org>
15513
15514 * Makefile.in: Fix some dependencies.
15515
15516 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15517 set it to nil before returning.
15518
15519 * composite.c (update_compositions): Fix type error.
15520
15521 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15522
15523 2008-02-01 Kenichi Handa <handa@m17n.org>
15524
15525 * xterm.c (x_new_font): Optimize for the case that the font is
15526 already set for the frame.
15527
15528 2008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * chartab.c (char_table_ascii): Check if the char table contents
15531 is sub-char-table or not.
15532 (char_table_set, char_table_set_range): Fix argument to
15533 char_table_ascii.
15534
15535 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15536 (detect_coding_utf_8, detect_coding_utf_16)
15537 (detect_coding_emacs_mule, detect_coding_iso_2022)
15538 (detect_coding_sjis, detect_coding_big5)
15539 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15540 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15541 sequence is valid in this coding system. Change callers.
15542 (MAX_ANNOTATION_LENGTH): New macro.
15543 (ADD_ANNOTATION_DATA): New macro.
15544 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15545 ADD_ANNOTATION_DATA. Change the format of annotation data.
15546 (ADD_CHARSET_DATA): New macro.
15547 (emacs_mule_char): New argument ID. Change callers.
15548 (decode_coding_emacs_mule, decode_coding_iso_2022)
15549 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15550 Produce charset annotation data in coding->charbuf.
15551 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15552 to charset annotation data in coding->charbuf.
15553 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15554 coding->common_flags if the coding system is iso-2022 based and
15555 uses designation.
15556 (produce_composition): Adjust for the new annotation data format.
15557 (produce_charset): New function.
15558 (produce_annotation): Handle charset annotation.
15559 (handle_composition_annotation, handle_charset_annotation): New
15560 functions.
15561 (consume_chars): Handle charset annotation. Utilize the above two
15562 functions.
15563 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15564 buffer, get the deleted text as a string and set
15565 coding->src_object to that string.
15566 (detect_coding, detect_coding_system): Use the new struct
15567 coding_detection_info.
15568
15569 * coding.h (struct coding_detection_info): New structure.
15570 (struct coding_system): Adjust prototype of the member `detector'.
15571 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15572
15573 2008-02-01 Kenichi Handa <handa@m17n.org>
15574
15575 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15576
15577 2008-02-01 Dave Love <fx@gnu.org>
15578
15579 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15580 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15581 to new local and nullify apropos_accumulate before returning.
15582 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15583
15584 2008-02-01 Kenichi Handa <handa@m17n.org>
15585
15586 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15587 correctly.
15588
15589 2008-02-01 Dave Love <fx@gnu.org>
15590
15591 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15592
15593 2008-02-01 Kenichi Handa <handa@m17n.org>
15594
15595 The following changes are to make character composition happen
15596 automatically on displaying.
15597
15598 * Makefile.in (lisp, shortlisp): Add composite.elc.
15599
15600 * composite.h (Qauto_composed, Vauto_composition_function)
15601 (Qauto_composition_function): Extern them.
15602
15603 * composite.c (Vcomposition_function_table)
15604 (Qcomposition_function_table): Delete variables.
15605 (Qauto_composed, Vauto_composition_function)
15606 (Qauto_composition_function): New variables.
15607 (run_composition_function): Don't call
15608 compose-chars-after-function.
15609 (update_compositions): Clear `auto-composed' text property.
15610 (compose_chars_in_text): Delete this function.
15611 (syms_of_composite): Staticpro Qauto_composed and
15612 Qauto_composition_function. Declare Vauto_composition_function as
15613 a Lisp variable.
15614
15615 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15616
15617 * xdisp.c (it_props): Add an entry for Qauto_composed.
15618 (handle_auto_composed_prop): New function.
15619
15620 * xselect.c (selection_data_to_lisp_data): Don't call
15621 compose_chars_in_text.
15622
15623 2008-02-01 Dave Love <fx@gnu.org>
15624
15625 * keyboard.c (read_char): Modify checking around use of
15626 Vkeyboard_translate_table.
15627
15628 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15629 and fix C types.
15630
15631 2008-02-01 Kenichi Handa <handa@m17n.org>
15632
15633 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15634 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15635 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15636 the case that the last byte is '\r' correctly.
15637 (decode_coding): Flush out the unprocessed data correctly.
15638 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15639
15640 2008-02-01 Dave Love <fx@gnu.org>
15641
15642 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15643 Add XK_ISO... case.
15644 (xaw_scroll_callback): Revert last change.
15645
15646 2008-02-01 Kenichi Handa <handa@m17n.org>
15647
15648 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15649
15650 2008-02-01 Kenichi Handa <handa@m17n.org>
15651
15652 * xfaces.c (Vface_resizing_fonts): New variable.
15653 (struct font_name): New member `resizing_ratio'.
15654 (font_resizing_ratio): New function.
15655 (split_font_name): Set font->resizing_ratio.
15656 (better_font_p): Pay attention to font->resizing_ratio.
15657 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15658 RESX, and RESY fields.
15659 (try_alternative_families): Try scalable fonts if
15660 Vscalable_fonts_allowed is not Qt.
15661 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15662
15663 2008-02-01 Dave Love <fx@gnu.org>
15664
15665 * xterm.c (xaw_scroll_callback): Cast correctly.
15666
15667 2008-02-01 Dave Love <fx@gnu.org>
15668
15669 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15670 (lispy_kana_keys): Comment out.
15671 (make_lispy_event) [XK_kana_A]: Comment out.
15672
15673 * xterm.c (xaw_scroll_callback): Cast call_data.
15674 (XTread_socket): Deal with ASCII keysyms.
15675 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15676
15677 2008-02-01 Dave Love <fx@gnu.org>
15678
15679 * xterm.c (Vx_keysym_table): New.
15680 (syms_of_xterm): Initialize it.
15681 (XTread_socket): Use it.
15682 From head: Eliminate incorrect optimization that tried to avoid
15683 decoding the output of X*LookupString.
15684 (x_get_font_repertory): Delete charset declaration.
15685
15686 2008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15689 return 0.
15690 (Fdefine_coding_system_internal): Setup
15691 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15692
15693 2008-02-01 Dave Love <fx@gnu.org>
15694
15695 * coding.c (Fcheck_coding_system): Doc fix.
15696
15697 * editfns.c (Finsert_byte): Return a proper value.
15698
15699 2008-02-01 Kenichi Handa <handa@m17n.org>
15700
15701 * coding.c (decode_coding): Fix args to translate_chars. Pay
15702 attention to Vstandard_translation_table_for_decode.
15703 (encode_coding): Fix args to translate_chars. Pay attention to
15704 Vstandard_translation_table_for_encode.
15705
15706 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15707 SINGLE_BYTE_CHAR_P.
15708
15709 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15710 not by SINGLE_BYTE_CHAR_P.
15711
15712 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15713 SINGLE_BYTE_CHAR_P.
15714
15715 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15716 SINGLE_BYTE_CHAR_P.
15717
15718 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15719 by SINGLE_BYTE_CHAR_P.
15720
15721 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15722 SINGLE_BYTE_CHAR_P.
15723
15724 2008-02-01 Dave Love <fx@gnu.org>
15725
15726 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15727
15728 2008-02-01 Dave Love <fx@gnu.org>
15729
15730 * fns.c (Flanginfo): Fix typo.
15731
15732 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15733
15734 2008-02-01 Kenichi Handa <handa@m17n.org>
15735
15736 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15737 (detect_coding_emacs_mule, detect_coding_iso_2022)
15738 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15739 incomplete byte sequence. Don't update *mask when correctly detected.
15740 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15741 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15742 (detect_coding, detect_coding_system): Adjust for the changes above.
15743
15744 2008-02-01 Kenichi Handa <handa@m17n.org>
15745
15746 * character.c (char_string): Rename from
15747 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15748 (string_char): Rename from string_char.
15749
15750 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15751 if C is greater than MAX_3_BYTE_CHAR.
15752 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15753 string_char instead of string_char_with_unification.
15754
15755 2008-02-01 Dave Love <fx@gnu.org>
15756
15757 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15758
15759 2008-02-01 Kenichi Handa <handa@m17n.org>
15760
15761 * keymap.c (push_key_description): Pay attention to force_multibyte.
15762
15763 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15764
15765 2008-02-01 Dave Love <fx@gnu.org>
15766
15767 * charset.c (define_charset_internal): Rename `supprementary'.
15768
15769 * Makefile.in (lisp, shortlisp): Remove latin-N.
15770
15771 2008-02-01 Dave Love <fx@gnu.org>
15772
15773 * xfns.c (x_window, x_window): Use use_xim.
15774
15775 * xterm.c (use_xim): Initialize.
15776 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15777 (x_term_init): Maybe set use_xim.
15778
15779 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15780
15781 2008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 * search.c (search_buffer): Fix case-fold-search of multibyte
15784 characters.
15785 (boyer_moore): Rename the last argument to char_high_bits.
15786
15787 2008-02-01 Kenichi Handa <handa@m17n.org>
15788
15789 * xdisp.c (display_string): Fix for the case of zero width glyph.
15790
15791 * xfns.c (x_set_font): Change the error message of the case that
15792 x_new_fontset returns Qt.
15793
15794 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15795 (Finternal_set_lisp_face_attribute): Use signal_error for the
15796 error of invalid fontset.
15797
15798 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15799 fontset, return Qt.
15800
15801 2008-02-01 Dave Love <fx@gnu.org>
15802
15803 * unexelf.c (unexec): Make .got handling not SGI-specific.
15804
15805 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15806
15807 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15808
15809 * keyboard.c (read_key_sequence): Fix type error.
15810
15811 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15812 type error.
15813
15814 * fontset.c (fontset_add): Return Lisp_Object.
15815
15816 2008-02-01 Dave Love <fx@gnu.org>
15817
15818 * charset.h (charset_ordered_list_tick): Declare extern.
15819
15820 2008-02-01 Kenichi Handa <handa@m17n.org>
15821
15822 The following changes (and some of 2008-02-01 changes of mine) are
15823 for handling syntax, category, and case conversion for unibyte
15824 characters by converting them to multibyte on the fly. With these
15825 changes, we don't have to setup syntax and case tables for unibyte
15826 characters in each language environment.
15827
15828 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15829 multibyte if necessary.
15830
15831 * bytecode.c (Fbyte_code): Likewise.
15832
15833 * character.h (LEADING_CODE_LATIN_1_MIN)
15834 (LEADING_CODE_LATIN_1_MAX): New macros.
15835 (unibyte_to_multibyte_table): Extern it.
15836 (unibyte_char_to_multibyte): New macro.
15837 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15838 (CHAR_LEADING_CODE): New macro.
15839 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15840
15841 * character.c (unibyte_to_multibyte_table): New variable.
15842 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15843 (multibyte_char_to_unibyte): If C is an eight-bit character,
15844 convert it to the corresponding byte value.
15845
15846 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15847 not 1, signals an error. Update the elements of
15848 unibyte_to_multibyte_table.
15849 (init_charset_once): Initialize unibyte_to_multibyte_table.
15850 (syms_of_charset): Define the charset `iso-8859-1'.
15851
15852 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15853 as is without converting it to unibyte. In a unibyte buffer,
15854 convert C to multibyte before checking the syntax.
15855
15856 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15857
15858 * minibuf.c (Fminibuffer_complete_word): Use the macro
15859 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15860
15861 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15862
15863 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15864 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15865 that is zero, convert an eight-bit char to multibyte.
15866 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15867 non-emacs case.
15868 (PATFETCH): Convert an eight-bit char to multibyte.
15869 (HANDLE_UNIBYTE_RANGE): New macro.
15870 (regex_compile): Setup the compiled pattern for multibyte chars
15871 even if the given regex string is unibyte. Use PATFETCH_RAW
15872 instead of PATFETCH in many places. To handle `charset'
15873 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15874 only for ASCII chars.
15875 (analyse_first) <exactn>: Simplify because the compiled pattern
15876 is multibyte.
15877 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15878 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15879 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15880 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15881 multibyte always 1.
15882 (re_search_2): In emacs, set the locale variable multibyte to 1,
15883 otherwise to 0. New local variable target_multibyte. Check it
15884 to decide the multibyteness of STR1 and STR2. If
15885 target_multibyte is zero, convert unibyte chars to multibyte
15886 before translating and checking fastmap.
15887 (TARGET_CHAR_AND_LENGTH): New macro.
15888 (re_match_2_internal): In emacs, set the locale variable multibyte
15889 to 1, otherwise to 0. New local variable target_multibyte. Check
15890 it to decide the multibyteness of STR1 and STR2. Use
15891 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15892 <charset, charset_not>: If multibyte is nonzero, check fastmap
15893 only for ASCII chars. Call bcmp_translate with
15894 target_multibyte, not with multibyte.
15895 <begline>: Declare the local variable C as `unsigned'.
15896 (bcmp_translate): Change the last arg name to target_multibyte.
15897
15898 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15899 the regexp pattern and the matching target. Set cp->buf.multibyte
15900 to the multibyteness of the regexp pattern. Set
15901 cp->but.target_multibyte to the multibyteness of the matching target.
15902 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15903 FETCH_STRING_CHAR_ADVANCE.
15904 (Freplace_match): Convert unibyte chars to multibyte.
15905
15906 * syntax.c (char_quoted, back_comment, scan_words)
15907 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15908 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15909 unibyte chars to multibyte.
15910 (skip_chars): Delete the arg syntaxp, and move the code for
15911 handling syntaxes to skip_syntaxes. Change callers.
15912 Fix the case that the multibyteness of STRING and the current
15913 buffer doesn't match.
15914 (skip_syntaxes): New function.
15915 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15916 SINGLE_BYTE_CHAR_P.
15917
15918 2008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * xfaces.c (QCfontset): New variable.
15921 (LFACE_FONTSET): New macro.
15922 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15923 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15924 (Finternal_set_lisp_face_attribute)
15925 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15926 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15927 check also LFACE_FONTSET_INDEX.
15928 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15929 attrs[LFACE_FONT_INDEX].
15930 (syms_of_xfaces): Intern and staticpro QCfontset.
15931
15932 * dispextern.h (enum lface_attribute_index): New member
15933 LFACE_FONTSET_INDEX.
15934
15935 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15936
15937 2008-02-01 Kenichi Handa <handa@m17n.org>
15938
15939 * coding.c (coding_set_destination): Fix coding->destination for
15940 the case converting a region.
15941 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15942 (encode_coding_object): Fix coding->dst_pos and
15943 coding->dst_pos_byte for the case converting a region.
15944
15945 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15946
15947 * character.h (BYTE8_STRING): New macro.
15948
15949 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15950
15951 2008-02-01 Kenichi Handa <handa@m17n.org>
15952
15953 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15954 characters by octal form.
15955
15956 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15957
15958 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15959 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15960 _fetch_multibyte_char_len.
15961 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15962
15963 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15964
15965 * casefiddle.c (casify_object): Simplify. Handle the case that
15966 the case conversion change the byte length.
15967 (casify_region): Likewise.
15968
15969 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15970
15971 * character.c (_fetch_multibyte_char_len): Delete this variable.
15972 (syms_of_character): Setup Vprintable_chars.
15973
15974 * editfns.c (Fchar_equal): Fix for the unibyte case.
15975 (Finsert_byte): New function.
15976 (syms_of_editfns): Defsubr it.
15977
15978 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15979 of direct code 0x3ffff.
15980
15981 * search.c (Freplace_match): Fix for the unibyte case.
15982
15983 2008-02-01 Kenichi Handa <handa@m17n.org>
15984
15985 * lread.c (safe_to_load_p): Fix the logic.
15986
15987 * syntax.c (scan_words): Don't treat characters belonging to
15988 different scripts as constituting a word.
15989
15990 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15991
15992 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15993
15994 * emacs.c (main): In the case of --unibyte, instead of aborting on
15995 finding non-empty buffer, make it unibyte.
15996
15997 2008-02-01 Kenichi Handa <handa@m17n.org>
15998
15999 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16000 to create a fontset.
16001
16002 2008-02-01 Dave Love <fx@gnu.org>
16003
16004 * character.c (Funibyte_char_to_multibyte): Doc fix.
16005
16006 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16007
16008 2008-02-01 Kenichi Handa <handa@m17n.org>
16009
16010 * fontset.c (fontset_add): Make the type `int'.
16011 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16012
16013 * character.c (unibyte_char_to_multibyte)
16014 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16015 charset_unibyte, not charset_primary.
16016
16017 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16018
16019 * charset.c (charset_unibyte): Rename from charset_primary.
16020 (Funibyte_charset): Rename from Fprimary_charset.
16021 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16022 (syms_of_charset): Adjust for the above changes.
16023
16024 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16025 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16026 it->multibyte_p is zero.
16027
16028 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16029 Delete extern.
16030
16031 2008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * coding.c (Fdefine_coding_system_internal): Fix category setting
16034 for a coding system of type iso-2022.
16035
16036 2008-02-01 Kenichi Handa <handa@m17n.org>
16037
16038 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16039
16040 2008-02-01 Kenichi Handa <handa@m17n.org>
16041
16042 * syntax.c (Vnext_word_boundary_function_table): New variable.
16043 (next-word-boundary-function-table): Declare it as a Lisp variable
16044 in syms_of_syntax.
16045 (scan_words): Call functions in Vnext_word_boundary_function_table
16046 if any.
16047
16048 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16049
16050 * fontset.c (fs_load_font): If fontp->charset is not negative,
16051 return fontp without setting its members.
16052
16053 2008-02-01 Dave Love <fx@gnu.org>
16054
16055 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16056
16057 * m/sparc.h (HAVE_ALLOCA): Delete.
16058
16059 * s/irix6-5.h: Don't include strings.h.
16060 (bcopy, bzero, bcmp): Don't undef.
16061
16062 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16063
16064 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16065 (TIOCSIGSEND): Don't test IRIX6.
16066 (bcopy, bzero, bcmp): Define conditionally.
16067
16068 2008-02-01 Kenichi Handa <handa@m17n.org>
16069
16070 * buffer.c (Qas, Qmake, Qto): New variables.
16071 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16072 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16073
16074 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16075 we are inserting a process output into a multibyte buffer.
16076
16077 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16078 multibyte_char_to_unibyte.
16079
16080 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16081 by the primary charset, make it eight-bit char.
16082 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16083
16084 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16085 (charset_8_bit__control, charset_8_bit_graphic)
16086 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16087 (define_charset_internal): New function.
16088 (syms_of_charset): Call define_charset_internal for pre-defined
16089 charsets.
16090
16091 * charset.h (charset_8_bit): Extern it.
16092
16093 * coding.c (make_conversion_work_buffer): Adjust for the change
16094 of Fset_buffer_multibyte.
16095 (encode_coding_raw_text): Increment p0 in the loop.
16096
16097 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16098
16099 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16100 for the change of Fset_buffer_multibyte.
16101
16102 * fns.c (Fstring_to_multibyte): New function.
16103 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16104
16105 2008-02-01 Dave Love <fx@gnu.org>
16106
16107 * xfns.c (x_put_x_image): Declare args.
16108
16109 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16110 (try_font_list): Declare an arg.
16111
16112 * xdisp.c (message2_nolog, set_message): Declare an arg.
16113
16114 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16115
16116 * syntax.c (scan_sexps_forward): Declare an arg.
16117
16118 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16119 Declare an arg.
16120
16121 * lisp.h (Fnew_fontset): Declare.
16122
16123 * keymap.c (push_key_description): Call CHARACTERP correctly.
16124
16125 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16126 (face_for_char): Delete unused vars.
16127 (Fset_fontset_font): Doc fix. Delete unused vars.
16128
16129 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16130
16131 * composite.c (update_compositions): Declare arg.
16132
16133 * cm.c (calccost, cmgoto): Declare args.
16134
16135 * charset.c: Remove `emacs' conditional. Doc fixes.
16136 (map_char_table_for_charset): Declare.
16137
16138 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16139
16140 * ccl.c: Remove `emacs' conditional.
16141
16142 2008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 The following changes are to allow specifying multiple font
16145 patterns for a character range (specified by script or charset).
16146
16147 * Makefile.in (abbrev.o): Depend on syntax.h.
16148 (xfaces.o): Depend on charset.h.
16149
16150 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16151 SINGLE_BYTE_CHAR_P.
16152
16153 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16154
16155 * character.h (Vchar_script_table): Extern it.
16156
16157 * character.c (Vscript_alist): Delete.
16158 (Vchar_script_table, Qchar_script_table): New variable.
16159 (syms_of_character): Declare Vchar_script_table as a lisp variable
16160 and initialize it.
16161
16162 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16163 have property char-table-extra-slots, make no extra slot.
16164
16165 * dispextern.h (struct face): Delete member `charset'.
16166 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16167 SINGLE_BYTE_CHAR_P.
16168 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16169 Add prototypes.
16170 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16171 (generate_ascii_font_name): Rename from generate_ascii_font.
16172
16173 * fontset.h (get_font_repertory_func): New prototype.
16174 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16175 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16176
16177 * fontset.c (Qprepend, Qappend): New variables.
16178 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16179 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16180 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16181 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16182 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16183 (load_font_get_repertory): New functions.
16184 (fontset_set): Delete.
16185 (fontset_face): New arg FACE. Return face ID, not face.
16186 Complete re-write to handle new fontset structure. Change caller.
16187 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16188 (face_for_char): Don't call lookup_face.
16189 (make_fontset_for_ascii_face): New arg FACE.
16190 (fs_load_font): New arg CHARSET_ID. Don't check
16191 Vfont_encoding_alist here.
16192 (find_font_encoding): New function.
16193 (list_fontsets): Use STRINGP, not ! NILP.
16194 (accumulate_script_ranges): New function.
16195 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16196 re-written to handle new fontset structure.
16197 (Ffontset_font): Return a copy of element.
16198 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16199 docstring of font-encoding-alist.
16200
16201 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16202 (Fset_fotset_font): Fix arguments to 5.
16203
16204 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16205
16206 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16207 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16208 (highlight_trailing_whitespace): Adjust for the change of
16209 lookup_named_face.
16210
16211 * xfaces.c: Include charset.h.
16212 (load_face_font): Delete argument C. Change caller.
16213 (generate_ascii_font_name): Rename from generate_ascii_font.
16214 (font_name_registry): New function.
16215 (cache_face): Store ascii faces before non-ascii faces in buckets.
16216 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16217 Lookup only ascii faces.
16218 (lookup_non_ascii_face): New function.
16219 (lookup_named_face): Delete argument C. Change caller.
16220 (lookup_derived_face): Delete argument C. Change caller.
16221 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16222 a string, just call font_list with it.
16223 (choose_face_font): Delete arguments FACE and C. New arg
16224 FONT_SPEC. Change caller.
16225 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16226 Change caller.
16227 (realize_non_ascii_face): New function.
16228 (realize_x_face): Call load_face_font here.
16229 (realize_tty_face): Delete argument C. Change caller.
16230 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16231 get a face ID.
16232 (dump_realized_face): Don't print charset of FACE.
16233
16234 * xfns.c (x_set_font): Always call x_new_fontset and
16235 store_frame_parameter.
16236 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16237 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16238
16239 * xterm.h (x_get_font_repertory): Extern it.
16240
16241 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16242 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16243 it->multibyte_p is zero.
16244 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16245 (x_new_fontset): If FONTSETNAME doesn't match any existing
16246 fontsets, create a new one.
16247 (x_get_font_repertory): New function.
16248
16249 2008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * coding.c (Ffind_coding_systems_region_internal): Detect an
16252 ASCII only string correctly.
16253
16254 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16255 version is 0.
16256
16257 2008-02-01 Kenichi Handa <handa@m17n.org>
16258
16259 * lread.c: Include "coding.h".
16260 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16261 (load_each_byte, unread_char): New variables.
16262 (readchar_backlog): Delete.
16263 (readchar): Return a character unless load_each_byte is nonzero.
16264 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16265 cons. If unread_char is not -1, simply return it.
16266 (unreadchar): Handle the case that readcharfun is
16267 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16268 (read_multibyte): Delete.
16269 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16270 (read_emacs_mule_char): New functions.
16271 (Fload): Even if the file doesn't have the extension ".elc", if
16272 safe_to_load_p returns a positive version number, assume that the
16273 file contains bytecompiled code. If the version is less than 22,
16274 load the file while decoding multibyte sequences by emacs-mule.
16275 (readevalloop): Don't use readchar_backlog.
16276 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16277 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16278 (read_escape): Delete the arg BYTEREP.
16279 (read1): Set load_each_byte to 1 temporarily while handling
16280 #@NUMBER. Don't call read_multibyte.
16281 (read_vector): Call Fread with a cons. If readcharfun is
16282 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16283 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16284 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16285 and Qload_force_doc_strings.
16286
16287 2008-02-01 Kenichi Handa <handa@m17n.org>
16288
16289 * xdisp.c (face_before_or_after_it_pos): Call
16290 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16291
16292 2008-02-01 Kenichi Handa <handa@m17n.org>
16293
16294 * character.h (TRAILING_CODE_P): New macro.
16295 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16296 (string_char_with_unification): Fix prototype.
16297 (Vscript_alist): Extern it.
16298
16299 * character.c (Vscript_alist): New variable.
16300 (string_char_with_unification, str_as_unibyte)
16301 (string_escape_byte8): Add `const' to local variables.
16302 (syms_of_character): Declare script-alist as a Lisp variable.
16303
16304 * charset.h (Vcharset_ordered_list): Extern it.
16305 (charset_ordered_list_tick): Extern it.
16306 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16307 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16308 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16309 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16310 (Funify_charset): Adjust for the change of Funify_charset.
16311
16312 * charset.c (charset_ordered_list_tick): New variable.
16313 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16314 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16315 deunify intead of unify a charset.
16316 (string_xstring_p): Add `const' to local variables.
16317 (find_charsets_in_text): Add `const' to arguments and local variables.
16318 (encode_char): Adjust for the change of Funify_charset. Fix
16319 detecting of invalid code.
16320 (Fset_charset_priority): Increment charset_ordered_list_tick.
16321 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16322 and TO_CODE.
16323
16324 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16325 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16326 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16327 (decode_coding_ccl, consume_chars)
16328 (Ffind_coding_systems_region_internal)
16329 (Fcheck_coding_systems_region): Add `const' to local variables.
16330
16331 * print.c (print_object): Use octal form for printing the
16332 contents of a bool vector.
16333
16334 2008-02-01 Dave Love <fx@gnu.org>
16335
16336 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16337 <version == 20>: Refuse to load.
16338
16339 2008-02-01 Dave Love <fx@gnu.org>
16340
16341 * fns.c: Move coding.h.
16342 (Qcodeset, Qdays, Qmonths): New.
16343 (concat): Use CHARACTERP instead of INTEGERP.
16344 (Flocale_codeset): Delete.
16345 (Flanginfo): New function.
16346 (syms_of_fns): Change accordingly.
16347
16348 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16349
16350 2008-02-01 Dave Love <fx@gnu.org>
16351
16352 * casetab.c (init_casetab_once, init_casetab_once): Fix
16353 CHAR_TABLE_SET call.
16354
16355 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16356
16357 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16358
16359 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16360 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16361 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16362
16363 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16364
16365 * coding.c (ENCODE_DESIGNATION, decode_eol)
16366 (make_conversion_work_buffer, code_conversion_restore)
16367 (Fdefine_coding_system_internal): Convert Lisp types.
16368 (code_conversion_restore): Use EQ, not ==.
16369 (Fencode_coding_string): Fix code_convert_string call.
16370
16371 * coding.h (code_convert_region): Fix prototype.
16372
16373 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16374
16375 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16376 (Ffontset_info): Convert Lisp types.
16377
16378 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16379
16380 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16381
16382 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16383
16384 * chartab.c: Include "...h", not <...h> in some cases.
16385
16386 * callproc.c (Fcall_process): Remove unused variables.
16387
16388 2008-02-01 Dave Love <fx@gnu.org>
16389
16390 * coding.c (Fset_coding_system_priority): Allow null arg list.
16391
16392 2008-02-01 Dave Love <fx@gnu.org>
16393
16394 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16395 (Fself_insert_and_exit): Use CHARACTERP.
16396
16397 * callproc.c (Fcall_process): Remove unused vars.
16398
16399 * xterm.c (XTread_socket): Add extra dead keysyms.
16400
16401 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16402
16403 * dispextern.h: Remove prototypes for redraw_frame,
16404 redraw_garbaged_frames.
16405
16406 * cmds.c (Fself_insert_command): Use CHARACTERP.
16407
16408 * chartab.c (make_sub_char_table): Remove unused var.
16409 (Fset_char_table_default, Fmap_char_table): Doc fix.
16410
16411 * keymap.c (access_keymap): Remove generic char code.
16412 (push_key_description): Use CHARACTERP.
16413
16414 2008-02-01 Dave Love <fx@gnu.org>
16415
16416 * charset.c: Doc fixes.
16417 (Funify_charset): Extra checking.
16418
16419 2008-02-01 Dave Love <fx@gnu.org>
16420
16421 * lread.c: Remove some unused variables.
16422 (safe_to_load_p): If safe, return the magic number version byte.
16423 (Fload): Maybe use load-with-code-conversion.
16424
16425 2008-02-01 Kenichi Handa <handa@m17n.org>
16426
16427 * category.c (Fmodify_category_entry): Don't modify the contents
16428 of category_set for characters out of the range. Avoid
16429 unnecessary modification.
16430
16431 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16432 Vchar_unify_table. The default value of the table is now nil.
16433
16434 * character.c (syms_of_character): Setup Vchar_width_table for
16435 eight-bit-control and raw-byte chars.
16436
16437 * charset.h (enum define_charset_arg_index): Delete
16438 charset_arg_parents and add charset_arg_subset and
16439 charset_arg_superset.
16440 (enum charset_attr_index): Delete charset_parents and add
16441 charset_subset and charset_superset.
16442 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16443 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16444 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16445 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16446 (CHARSET_SUPERSET): New macros.
16447 (charset_work): Extern it.
16448 (ENCODE_CHAR): Use charset_work.
16449 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16450 (map_charset_chars): Extern it.
16451
16452 * charset.c (load_charset_map): Set the default value of encoder
16453 and deunifier char-tables to nil.
16454 (map_charset_chars): Change argument. Change callers. Use
16455 map_char_table_for_charset instead of map_char_table.
16456 (Fmap_charset_chars): New optional args from_code and to_code.
16457 (Fdefine_charset_internal): Adjust for the change of
16458 `define-charset' (:parents -> :subset or :superset).
16459 (charset_work): New variable.
16460 (encode_char, syms_of_charset): Adjust for the change of
16461 Fdefine_charset_internal.
16462 (Ffind_charset_string): Setup the vector `charsets' correctly.
16463
16464 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16465 the previous change.
16466 (char_table_ref_and_range): Adjust for the above change.
16467 (map_sub_char_table_for_charset): New function.
16468 (map_char_table_for_charset): New function.
16469
16470 * keymap.c (describe_vector): Handle a char-table directly here.
16471 (describe_char_table): Delete.
16472
16473 * lisp.h (map_charset_chars): Delete.
16474
16475 2008-02-01 Dave Love <fx@gnu.org>
16476
16477 * fns.c (count_combining): Comment out (unused).
16478 (Flocale_codeset): New.
16479 (syms_of_fns): Defsubr it.
16480
16481 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16482 (size_t): Remove.
16483
16484 2008-02-01 Dave Love <fx@gnu.org>
16485
16486 * Makefile.in (chartab.o): Depend on charset.h.
16487
16488 2008-02-01 Kenichi Handa <handa@m17n.org>
16489
16490 * character.c (syms_of_character): Set the default value of
16491 Vprintable_chars to Qnil.
16492
16493 2008-02-01 Dave Love <fx@gnu.org>
16494
16495 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16496
16497 2008-02-01 Kenichi Handa <handa@m17n.org>
16498
16499 * charset.c (load_charset_map): Handle the case that from < to
16500 correctly.
16501
16502 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16503 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16504 Pay attention to raw-8-bit chars.
16505
16506 2008-02-01 Kenichi Handa <handa@m17n.org>
16507
16508 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16509 It is not bytecompiled now.
16510
16511 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16512 (charset_jisx0208): New variables.
16513 (Fdefine_charset_internal): Setup them if appropriate.
16514 (init_charset_once): Initialize them to -1.
16515
16516 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16517 (charset_jisx0208): Extern them.
16518
16519 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16520 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16521 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16522 (setup_iso_safe_charsets): Fix arguments to Fassq.
16523 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16524 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16525 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16526 (encode_coding_iso_2022): Change the 1st arg to
16527 ENCODE_ISO_CHARACTER to a variable.
16528
16529 2008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * charset.h (enum define_charset_arg_index): New enums
16532 charset_arg_min_code and charset_arg_max_code.
16533 (struct charset): New member char_index_offset.
16534
16535 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16536 Take charset->char_index_offset into account.
16537 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16538 args[charset_arg_max_code]. Setup charset.char_index_offset.
16539 (syms_of_charset): Fix args to Fdefine_charset_internal.
16540
16541 2008-02-01 Dave Love <fx@gnu.org>
16542
16543 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16544
16545 2008-02-01 Dave Love <fx@gnu.org>
16546
16547 * coding.c: Doc fixes.
16548 (Fcoding_system_aliases): Fix return value.
16549 (Qmac): Remove (duplicated) definition.
16550
16551 2008-02-01 Dave Love <fx@gnu.org>
16552
16553 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16554 New functions.
16555
16556 * character.c (Fstring): Doc fix.
16557
16558 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16559
16560 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
16561 (font-encoding-alist): Doc fix.
16562
16563 2008-02-01 Dave Love <fx@gnu.org>
16564
16565 * term.c (costs_set): Declare static, non-initialized for pcc.
16566 (encode_terminal_code): Remove unused var.
16567
16568 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16569 for K&R.
16570
16571 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16572
16573 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16574 (suffixes): Move out of make_subsidiaries for K&R.
16575
16576 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16577
16578 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16579
16580 2008-02-01 Dave Love <fx@gnu.org>
16581
16582 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16583
16584 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16585
16586 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16587
16588 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16589
16590 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16591
16592 2008-02-01 Kenichi Handa <handa@m17n.org>
16593
16594 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16595 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16596
16597 2008-02-01 Kenichi Handa <handa@m17n.org>
16598
16599 * coding.c (decode_coding_charset): Adjust for the change of
16600 Fdefine_coding_system_internal.
16601 (Fdefine_coding_system_internal): For a coding system of
16602 `charset' type, store a list of charset IDs in
16603 `charset_attr_charset_valids' element of coding attributes.
16604
16605 2008-02-01 Kenichi Handa <handa@m17n.org>
16606
16607 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16608 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16609 caller. Handle 2-byte and 3-byte charsets correctly.
16610 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16611 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16612 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16613 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16614 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16615 sequence.
16616 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16617 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16618 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16619 and alt&rule composition.
16620 (decode_coding_iso_2022): Handle composition correctly.
16621 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16622
16623 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16624 re-defining a charset. If the charset has :emacs-mule-id, setup
16625 emacs_mule_bytes.
16626 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16627
16628 2008-02-01 Kenichi Handa <handa@m17n.org>
16629
16630 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16631 (encode_coding_big5, encode_coding_charset): If coding requires safe
16632 encoding, produce a character specified by
16633 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16634
16635 2008-02-01 Dave Love <fx@gnu.org>
16636
16637 * xterm.c (XSetIMValues): Declare.
16638
16639 * process.c: Conditionally include sys/wait.h, pty.h.
16640
16641 * print.c (print_object): Fix print format for 64-bit systems.
16642
16643 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16644
16645 * buffer.c (emacs_strerror): Declare.
16646
16647 * fontset.c (Fclear_face_cache): Declare.
16648 (accumulate_font_info): Comment-out (unused).
16649 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16650 variables.
16651
16652 * character.h (string_escape_byte8): Declare.
16653
16654 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16655 unused vars.
16656 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16657 (Fmap_charset_chars): Doc fix.
16658
16659 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16660 (Fset_coding_system_priority, Fset_coding_system_priority)
16661 (Fdefine_coding_system_internal): Doc fix.
16662
16663 2008-02-01 Dave Love <fx@gnu.org>
16664
16665 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16666
16667 2008-02-01 Kenichi Handa <handa@m17n.org>
16668
16669 * character.c (string_escape_byte8): Make multibyte string with
16670 correct size.
16671
16672 * charset.c (Fmake_char): Delete unnecessary code.
16673
16674 2008-02-01 Kenichi Handa <handa@m17n.org>
16675
16676 * xfns.c (x_encode_text): Allocate coding.destination here, and
16677 call encode_coding_object with dst_object Qnil.
16678
16679 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16680 multibyte form correctly.
16681
16682 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16683 against Vfont_encoding_alist.
16684
16685 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16686 handling of charset list.
16687 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16688 (decode_coding_object): Move point to coding->dst_pos before
16689 calling post-read-conversion function.
16690 (encode_coding_object): Give correct arguments to
16691 pre-write-conversion. Ignore the return value of
16692 pre-write-conversion function. Pay attention to the case that
16693 pre-write-conversion changes the current buffer. If dst_object is
16694 Qt, even if coding->src_bytes is zero, allocate at least one byte
16695 to coding->destination.
16696
16697 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16698
16699 * charset.c (Fmake_char): Make it more backward compatible.
16700 (Fmap_charset_chars): Fix docstring.
16701
16702 2008-02-01 Dave Love <fx@gnu.org>
16703
16704 * coding.c: Doc fixes.
16705 (Fdefine_coding_system_alias): Use names, not symbols, in
16706 coding-system-alist.
16707
16708 2008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16711 of calling free_realized_face.
16712
16713 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16714
16715 * charset.c (read_hex): Don't treat SPC as a comment starter.
16716 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16717 (Fdecode_char): Fix typo.
16718
16719 2008-02-01 Kenichi Handa <handa@m17n.org>
16720
16721 * charset.h (struct charset): New member `code_space_mask'.
16722
16723 * coding.c (coding_set_source): Delete the local variable beg_byte.
16724 (encode_coding_charset, Fdefine_coding_system_internal):
16725 Delete the local variable charset.
16726 (Fdefine_coding_system_internal): Setup
16727 attrs[coding_attr_charset_valids] correctly.
16728
16729 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16730 member to check if CODE is valid or not.
16731 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16732 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16733 is within the range of charset->min_code and carset->max_code.
16734
16735 2008-02-01 Dave Love <fx@gnu.org>
16736
16737 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16738
16739 * dispextern.h (generate_ascii_font): Fix return type.
16740
16741 * xfaces.c (generate_ascii_font): Fix arg declaration.
16742
16743 * coding.c (coding_inherit_eol_type)
16744 (Fset_terminal_coding_system_internal)
16745 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16746
16747 2008-02-01 Kenichi Handa <handa@m17n.org>
16748
16749 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16750 multiple charsets correctly.
16751
16752 2008-02-01 Kenichi Handa <handa@m17n.org>
16753
16754 * search.c (boyer_moore): Fix handling of multibyte character
16755 translation.
16756
16757 * xdisp.c (display_mode_element): When the variable `elt' is
16758 changed, update `this' and `lisp_string'.
16759
16760 2008-02-01 Kenichi Handa <handa@m17n.org>
16761
16762 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16763
16764 * callproc.c (Fcall_process): Be sure to give the current buffer
16765 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16766
16767 * charset.c (struct charset_map_entries): New struct.
16768 (load_charset_map): Rename from parse_charset_map. New args
16769 entries and n_entries. Change caller.
16770 (load_charset_map_from_file): Rename from load_charset_map.
16771 Change caller. New arg control_flag. Call load_charset_map at
16772 the tail.
16773 (load_charset_map_from_vector): New function.
16774 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16775 (encode_char): If the charset is compact, change a character index
16776 to a code point.
16777
16778 * coding.c (coding_alloc_by_making_gap): Check the case that the
16779 source and destination are the same correctly.
16780 (decode_coding_raw_text): Set coding->consumed_char and
16781 coding->consumed to 0.
16782 (produce_chars): If coding->chars_at_source is nonzero, update
16783 coding->consumed_char and coding->consumed before calling
16784 alloc_destination.
16785 (Fdefine_coding_system_alias): Register ALIAS in
16786 Vcoding_system_alist.
16787 (syms_of_coding): Define `no-conversion' coding system at the tail.
16788
16789 * fileio.c (Finsert_file_contents): Set coding_system instead of
16790 val. If the current buffer is multibyte, always call
16791 decode_coding_gap.
16792
16793 * xfaces.c (try_font_list): Give higher priority to fontset's
16794 family than face's family.
16795
16796 2008-02-01 Kenichi Handa <handa@m17n.org>
16797
16798 * callproc.c (Fcall_process): Be sure to give the current buffer
16799 to decode_coding_c_string.
16800
16801 * xfaces.c (try_font_list): Give a family specified in a fontset
16802 higher priority than a family specified in a face.
16803
16804 2008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16807 Fix arguments to insert_from_buffer.
16808
16809 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16810
16811 2008-02-01 Kenichi Handa <handa@m17n.org>
16812
16813 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16814 (decode_coding_gap): Set coding->dst_multibyte correctly.
16815
16816 2008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16819 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16820 (encode_coding_utf_16): Substitute coding->default_char for
16821 non-Unicode characters.
16822 (decode_coding): Don't call record_insert here.
16823 (setup_coding_system): Initialize `surrogate' of
16824 coding->spec.utf_16 to 0.
16825 (EMIT_ONE_BYTE): Fix for multibyte case.
16826
16827 * insdel.c (insert_from_gap): Call record_insert.
16828
16829 2008-02-01 Kenichi Handa <handa@m17n.org>
16830
16831 * casefiddle.c (casify_region): Fix multibyte case.
16832
16833 * character.c (c_string_width): Add return type `int'.
16834 (char_string_with_unification): Delete arg ADVANCED.
16835
16836 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16837 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16838 (CHAR_STRING_ADVANCE): Make it do-while statement.
16839
16840 * chartab.c (sub_char_table_set_range): Optimize for the case
16841 DEPTH == 3. Add workaround code for a GCC optimization bug.
16842
16843 * charset.c (parse_charset_map): Remove an unused variable.
16844
16845 * coding.c: Delete unused variables.
16846
16847 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16848 earlier. If inserted is zero and the coding system doesn't
16849 require flushing, don't call decode_coding_gap.
16850
16851 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16852
16853 2008-02-01 Kenichi Handa <handa@m17n.org>
16854
16855 The following changes are for using Unicode as an internal
16856 character model, and use UTF-8 format for buffer/string
16857 representation.
16858
16859 * .gdbinit (xchartable): Adjust for the change of char table structure.
16860 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16861
16862 * Makefile.in (obj): Add character.o and chartab.o.
16863 (lisp, shortlisp): Remove utf-8.elc.
16864 (*.o): For many files, change dependency on charset.h to
16865 character.h, and add dependency on character.h.
16866 (character.o, chartab.o): New targets.
16867
16868 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16869 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16870 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16871 of "charset.h".
16872
16873 * dired.c, filelock.c: Include "character.h".
16874
16875 * alloc.c: Include "character.h" instead of "charset.h".
16876 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16877 (syms_of_alloc): Remove defsubr for Smake_char_table.
16878
16879 * buffer.c: Include "character.h" instead of "charset.h", don't
16880 include "coding.h".
16881 (Fset_buffer_multibyte): Adjust for UTF-8.
16882
16883 * buffer.h: EXFUN Fbuffer_live_p.
16884
16885 * callproc.c: Include "character.h" instead of "charset.h".
16886 (Fcall_process): Big change for the new code-conversion APIs.
16887
16888 * casetab.c: Include "character.h" instead of "charset.h".
16889 (set_canon, set_identity, shuffle): Adjust for the new
16890 map_char_table spec.
16891 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16892 accessing the char table structure.
16893
16894 * chartab.c: New file that implements char table.
16895
16896 * category.c: Include "character.h".
16897 (copy_category_entry): New function.
16898 (copy_category_table): Call map_char_table and copy_category_entry.
16899 (Fmake_category_table): Initialize all top-level slots.
16900 (char_category_set): New function.
16901 (modify_lower_category_set): Delete.
16902 (Fmodify_category_entry): Call char_table_ref_and_range.
16903
16904 * category.h (CATEGORY_SET): Just call char_category_set.
16905
16906 * ccl.c: Include "character.h".
16907 (Qccl, Qcclp): New variables.
16908 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16909 it's less than 256.
16910 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16911 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16912 and DST type.
16913 (ccl_driver): Change types of argument, adjust code accordingly.
16914 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16915 ccl_driver.
16916 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16917
16918 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16919 New members src_multibyte, dst_multibyte, consumed, and produced.
16920 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16921 (CODING_SPEC_CCL_PROGRAM): New macro.
16922 (ccl_driver): Update prototype.
16923 (Qccl, Qcclp, Fccl_program_p): Extern them.
16924 (CHECK_CCL_PROGRAM): New macro.
16925
16926 * character.c, character.h, chartab.c: New files.
16927
16928 * charset.c: Mostly re-written. Move character and multibyte sequence
16929 handling codes to character.c.
16930
16931 * charset.h: Mostly re-written. Move character and multibyte sequence
16932 handling codes to character.h.
16933
16934 * coding.c, coding.h: Mostly re-written.
16935
16936 * composite.c: Include "character.h" instead of "charset.h".
16937 (CHAR_WIDTH): Move to character.h.
16938 (HASH_KEY, HASH_VALUE): Delete.
16939
16940 * composite.h (enum composition_method): Change order of enumeration
16941 symbols.
16942
16943 * data.c: Include "character.h" instead of "charset.h".
16944 (Faref): Call CHAR_TABLE_REF for a char table.
16945 (Faset): Call CHAR_TABLE_SET for a char table.
16946
16947 * dispextern.h (free_realized_face, check_face_attribytes)
16948 (generate_ascii_font): Extern them.
16949 (free_realized_multibyte_face): Delete extern.
16950
16951 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16952 table structure.
16953
16954 * editfns.c: Include "character.h" instead of "charset.h".
16955 (Fchar_to_string): Always call CHAR_STRING.
16956
16957 * emacs.c (main): Call init_charset_once, init_charset,
16958 syms_of_chartab, and syms_of_character.
16959
16960 * fileio.c: Include "character.h" instead of "charset.h".
16961 (Finsert_file_contents): Big change for the new code-conversion API.
16962 (choose_write_coding_system, Fwrite_region): Likewise.
16963 (build_annotations_2): Delete.
16964 (e_write): Big change for the new code-conversion API.
16965
16966 * fns.c: Include "character.h" instead of "charset.h".
16967 (copy_sub_char_table): Move to chartab.c.
16968 (Fcopy_sequence): Call copy_char_table for a char table.
16969 (concat): Delete codes calling count_multibyte.
16970 (string_char_to_byte, string_byte_to_char): Adjust for the new
16971 multibyte form.
16972 (internal_equal): Adjust for the change of char table structure.
16973 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16974 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16975 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16976 (char_table_translate, optimize_sub_char_table)
16977 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16978 chartab.c.
16979 (char_table_ref_and_index): Delete.
16980 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16981 (Fmd5): Call preferred_coding_system instead of accessing
16982 Vcoding_category_list. Adjust for the new code-conversion API.
16983 (syms_of_fns): Move defsubr for char table related functions to
16984 chartab.c.
16985
16986 * fontset.c: Mostly re-written.
16987
16988 * fontset.h (struct font_info): Change type of the member encoding_type.
16989 (enum FONT_SPEC_INDEX): New enum.
16990 (fontset_font_pattern, fs_load_font): Update prototype.
16991 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16992
16993 * indent.c: Include "character.h" instead of "charset.h".
16994 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16995
16996 * insdel.c: Include "character.h" instead of "charset.h".
16997 (copy_text): Don't refer to Vnonascii_translation_table.
16998 (insert_from_gap): New function.
16999
17000 * keyboard.c: Include "character.h" instead of "charset.h".
17001 (command_loop_1): Never call direct_output_forward_char before
17002 a non-ASCII character.
17003 (read_char): If Vkeyboard_translate_table is a char table, always
17004 translate a character.
17005
17006 * keymap.c: Include "character.h".
17007 (store_in_keymap): Handle the case that IDX is a cons.
17008 (Fdefine_key): Handle the case that KEY is a cons and the car part
17009 is also a cons (range).
17010 (push_key_description): Adjust for the new character code.
17011 (describe_vector): Call describe_char_table for a char table.
17012 (describe_char_table): New function.
17013
17014 * keymap.h (describe_char_table): Extern it.
17015
17016 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17017 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17018 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17019 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17020 Delete.
17021 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17022 structure.
17023 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17024 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17025 (CHARTAB_SIZE_BITS_3): New macros.
17026 (chartab_size): Extern it.
17027 (struct Lisp_Char_Table): Re-design.
17028 (struct Lisp_Sub_Char_Table): New structure.
17029 (HASH_KEY, HASH_VALUE): Move from fns.c.
17030 (CHARACTERBITS): Define as 22.
17031 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17032 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17033 (GC_SUB_CHAR_TABLE_P): New macro.
17034 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17035 (code_convert_string_norecord): Deleted extern.
17036 (init_character_once, syms_of_character, init_charset)
17037 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17038
17039 * lread.c: Include "character.h".
17040 (read_multibyte): New arg NBYTES.
17041 (read_escape): Change the meaning of returned *BYTEREP.
17042 (to_multibyte): Delete.
17043 (read1): Adjust the handling of char table and string.
17044
17045 * print.c: Include "character.h" instead of "charset.h".
17046 (print_string): Convert 8-bit raw bytes to octal form by
17047 string_escape_byte8.
17048 (print_object): Adjust for the new multibyte form. Print 8-bit
17049 raw bytes always in octal form. Handle sub char table correctly.
17050
17051 * process.c: Include "character.h" instead of "charset.h".
17052 (read_process_output, send_process): Adjust for the new
17053 code-conversion API.
17054
17055 * puresize.h (BASE_PURESIZE): Increase.
17056
17057 * regex.c: Include "character.h" instead of "charset.h".
17058 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17059 (regex_compile): Accept a range whose starting and ending
17060 character have different leading bytes.
17061 (analyse_first): Adjust for the above change.
17062
17063 * search.c: Include "character.h" instead of "charset.h".
17064 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17065 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17066
17067 * syntax.c: Include "character.h" instead of "charset.h".
17068 (syntax_parent_lookup): Delete.
17069 (Fmodify_syntax_entry): Accept a cons as CHAR.
17070 (skip_chars): Adjust for the new multibyte form.
17071 (init_syntax_once): Call char_table_set_range instead of directly
17072 accessing the structure of a char table.
17073
17074 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17075 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17076 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17077 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17078
17079 * term.c: Include "buffer.h" and "character.h".
17080 (encode_terminal_code, write_glyphs): Adjust for the new
17081 code-conversion API.
17082 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17083
17084 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17085
17086 * xdisp.c: Include "character.h".
17087 (get_next_display_element): Adjust for the new multibyte form.
17088 (disp_char_vector): Adjust for the new char table structure.
17089 (decode_mode_spec_coding): Adjust for the new structure of
17090 coding system.
17091 (decode_mode_spec): Adjust for the new code-conversion API.
17092
17093 * xfaces.c: Include "character.h" instead of "charset.h".
17094 (load_face_font): Adjust for the change of choose_face_font and
17095 FS_LOAD_FONT.
17096 (generate_ascii_font): New function.
17097 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17098 (set_font_frame_param): Adjust for the change of choose_face_font.
17099 (free_realized_face): Make it public.
17100 (free_realized_faces_for_fontset): Rename from
17101 free_realized_multibyte_face. Free also faces realized for ASCII.
17102 (choose_face_font): Change arguments. Adjust for the change of
17103 fontset_font_pattern and FS_LOAD_FONT.
17104
17105 * xfns.c: Include "character.h".
17106 (x_encode_text): Adjust for the new code-conversion API.
17107
17108 * xselect.c: Don't include "charset.h".
17109 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17110
17111 * xterm.c: Include "character.h".
17112 (x_encode_char): New argument CHARSET. Change caller.
17113 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17114 Call ENCODE_CHAR instead of SPLIT_CHAR.
17115 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17116 CHAR_WIDTH instead of CHARSET_WIDTH.
17117 (XTread_socket): Adjust for the new code-conversion API.
17118 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17119 (x_load_font): Adjust for the change of struct font.
17120
17121 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17122
17123 * xfaces.c (face_at_buffer_position): Remove unused vars.
17124
17125 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17126
17127 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17128 Fix overflow checking.
17129
17130 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17131
17132 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17133 Cancel previous change.
17134
17135 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17136
17137 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17138 ccl->eight_bit_control. Fix check for buffer overflow.
17139 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17140 (ccl_driver): Initialize extra_bytes to 0.
17141
17142 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17143
17144 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17145 return it ORed with ctrl_modifier.
17146
17147 2008-01-29 Miles Bader <miles@gnu.org>
17148
17149 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17150
17151 2008-01-28 Jason Rumney <jasonr@gnu.org>
17152
17153 * w32.c (stat): Don't double check for networked drive.
17154
17155 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17156
17157 * window.c (run_window_configuration_change_hook): New function.
17158 Code extracted from set_window_buffer. Set the selected frame.
17159 (set_window_buffer): Use it.
17160 * window.h (run_window_configuration_change_hook): Declare.
17161 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17162
17163 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17164
17165 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17166
17167 * Makefile.in: Remove references to unused macros.
17168
17169 2008-01-26 Eli Zaretskii <eliz@gnu.org>
17170
17171 * w32.c (g_b_init_get_sid_sub_authority)
17172 (g_b_init_get_sid_sub_authority_count): New static variables.
17173 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17174 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17175 (init_user_info): Use them to retrieve uid and gid.
17176 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17177 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17178 st_uid and st_gid of the file.
17179
17180 2008-01-26 Jason Rumney <jasonr@gnu.org>
17181
17182 * w32.c (logon_network_drive): New function.
17183 (stat): Use it.
17184
17185 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
17186
17187 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17188 invisible text covered with an ellipsis.
17189
17190 2008-01-25 Richard Stallman <rms@gnu.org>
17191
17192 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17193 jump back to beginning. Move some other initializations after that.
17194 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17195 New variables.
17196 (syms_of_xdisp): Init them.
17197
17198 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17199
17200 * buffer.c (reset_buffer_local_variables):
17201 Implement `permanent-local-hook'.
17202 (Qpermanent_local_hook): New variable.
17203 (syms_of_buffer): Init and staticpro it.
17204
17205 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
17206
17207 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17208
17209 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17210
17211 * fns.c (Fclrhash): Return TABLE.
17212
17213 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17214
17215 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17216 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17217 is set even without positional changes.
17218 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17219
17220 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17221
17222 2008-01-23 Jason Rumney <jasonr@gnu.org>
17223
17224 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17225
17226 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17227 the unicode range available in MULE by locale-coding-system.
17228 Improve dbcs lead byte detection. Set event timestamp and modifiers
17229 earlier.
17230
17231 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17232
17233 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17234 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17235 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17236 when used on child processes.
17237
17238 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
17239
17240 * dbusbind.c (Fdbus_method_return_internal): Rename from
17241 Fdbus_method_return.
17242 (Fdbus_unregister_object): Move to dbus.el.
17243 (Fdbus_call_method, Fdbus_method_return_internal)
17244 (Fdbus_send_signal): Improve debug messages.
17245
17246 2008-01-20 Martin Rudalics <rudalics@gmx.at>
17247
17248 * undo.c (undo_inhibit_record_point): New variable.
17249 (syms_of_undo): Initialize it.
17250 (record_point): Don't record point when undo_inhibit_record_point
17251 is set.
17252
17253 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17254
17255 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17256
17257 * xdisp.c (Qauto_hscroll_mode): New var.
17258 (syms_of_xdisp): Initialize it.
17259 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17260 window's buffer.
17261 (hscroll_windows): Don't check automatic_hscrolling_p here.
17262
17263 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17264 vscroll if we're setting window-buffer to the value it already has.
17265
17266 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17267
17268 * m/intel386.h: Remove references to XENIX.
17269
17270 2008-01-17 Andreas Schwab <schwab@suse.de>
17271
17272 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17273 instead of HAVE_X86_64_LIB64_DIR.
17274 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17275
17276 2008-01-17 Glenn Morris <rgm@gnu.org>
17277
17278 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17279 to HAVE_X86_64_LIB64_DIR.
17280
17281 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17282
17283 * s/irix3-3.h:
17284 * s/irix4-0.h:
17285 * s/386-ix.h:
17286 * s/domain.h:
17287 * s/hpux9-x11r4.h:
17288 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17289
17290 * sysdep.c: Remove code containing references to symbols defined
17291 by unsupported systems.
17292
17293 2008-01-16 Glenn Morris <rgm@gnu.org>
17294
17295 * coding.c (select-safe-coding-system-function): Doc fix.
17296
17297 2008-01-15 Glenn Morris <rgm@gnu.org>
17298
17299 * config.in: Revert 2008-01-13 change: this is a generated file.
17300
17301 2008-01-13 Tom Tromey <tromey@redhat.com>
17302
17303 * lisp.h: Fix typo.
17304
17305 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17306
17307 * m/sequent-ptx.h:
17308 * m/sequent.h:
17309 * s/ptx.h:
17310 * s/ptx4-2.h:
17311 * s/ptx4.h: Remove files for systems no longer supported.
17312
17313 * callproc.c (Fcall_process): Fix previous change.
17314
17315 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17316
17317 * unexsunos4.c: Remove file, system not supported anymore.
17318
17319 * m/mips.h:
17320 * m/intel386.h:
17321 * callproc.c:
17322 * config.in:
17323 * ecrt0.c:
17324 * emacs.c:
17325 * fileio.c:
17326 * frame.c:
17327 * getpagesize.h:
17328 * keyboard.c:
17329 * lread.c:
17330 * process.c:
17331 * puresize.h:
17332 * sysdep.c:
17333 * systty.h:
17334 * syswait.h:
17335 * unexec.c:
17336 * xdisp.c:
17337 * alloc.c: Remove code containing references to symbols defined by
17338 unsupported systems.
17339
17340 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17341
17342 * coding.c (detect_coding_mask): Fix previous change.
17343
17344 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17345
17346 * coding.c (detect_coding_iso2022): New arg
17347 latin_extra_code_state. Allow Latin extra codes only
17348 when *latin_extra_code_state is nonzero.
17349 (detect_coding_mask): If there is a NULL byte, detect the encoding
17350 as UTF-16 or binary. If Latin extra codes exist, detect the
17351 encoding as ISO-2022 only when there's no other proper encoding is
17352 found.
17353
17354 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17355
17356 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17357 #ifdef MAC_OS.
17358
17359 2008-01-08 Richard Stallman <rms@gnu.org>
17360
17361 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17362
17363 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
17364
17365 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17366 menu bar in parentheses.
17367
17368 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17369
17370 * m/7300.h:
17371 * m/acorn.h:
17372 * m/alliant-2800.h:
17373 * m/alliant.h:
17374 * m/alliant1.h:
17375 * m/alliant4.h:
17376 * m/altos.h:
17377 * m/amdahl.h:
17378 * m/apollo.h:
17379 * m/att3b.h:
17380 * m/aviion-intel.h:
17381 * m/aviion.h:
17382 * m/celerity.h:
17383 * m/clipper.h:
17384 * m/cnvrgnt.h:
17385 * m/convex.h:
17386 * m/cydra5.h:
17387 * m/delta88k.h:
17388 * m/dpx2.h:
17389 * m/dual.h:
17390 * m/elxsi.h:
17391 * m/f301.h:
17392 * m/gould-np1.h:
17393 * m/gould.h:
17394 * m/i860.h:
17395 * m/ibmps2-aix.h:
17396 * m/ibmrt-aix.h:
17397 * m/ibmrt.h:
17398 * m/irist.h:
17399 * m/is386.h:
17400 * m/isi-ov.h:
17401 * m/mega68.h:
17402 * m/mg1.h:
17403 * m/news-r6.h:
17404 * m/news-risc.h:
17405 * m/news.h:
17406 * m/nh3000.h:
17407 * m/nh4000.h:
17408 * m/ns16000.h:
17409 * m/ns32000.h:
17410 * m/nu.h:
17411 * m/orion.h:
17412 * m/orion105.h:
17413 * m/paragon.h:
17414 * m/pfa50.h:
17415 * m/plexus.h:
17416 * m/pyramid.h:
17417 * m/pyrmips.h:
17418 * m/sh3el.h:
17419 * m/sps7.h:
17420 * m/sr2k.h:
17421 * m/stride.h:
17422 * m/sun1.h:
17423 * m/sun2.h:
17424 * m/sun3-68881.h:
17425 * m/sun3-fpa.h:
17426 * m/sun3-soft.h:
17427 * m/sun3.h:
17428 * m/sun386.h:
17429 * m/symmetry.h:
17430 * m/tad68k.h:
17431 * m/tahoe.h:
17432 * m/targon31.h:
17433 * m/tek4300.h:
17434 * m/tekxd88.h:
17435 * m/tower32.h:
17436 * m/tower32v3.h:
17437 * m/ustation.h:
17438 * m/wicat.h:
17439 * m/xps100.h:
17440 * s/cxux.h:
17441 * s/cxux7.h:
17442 * s/dgux.h:
17443 * s/dgux4.h:
17444 * s/dgux5-4-3.h:
17445 * s/dgux5-4r2.h:
17446 * s/esix.h:
17447 * s/esix5r4.h:
17448 * s/hiuxmpp.h:
17449 * s/hiuxwe2.h:
17450 * s/iris3-5.h:
17451 * s/iris3-6.h:
17452 * s/isc2-2.h:
17453 * s/isc3-0.h:
17454 * s/isc4-0.h:
17455 * s/isc4-1.h:
17456 * s/newsos5.h:
17457 * s/newsos6.h:
17458 * s/osf1.h:
17459 * s/osf5-0.h:
17460 * s/riscix1-1.h:
17461 * s/riscix12.h:
17462 * s/sco4.h:
17463 * s/sco5.h:
17464 * s/sunos4-0.h:
17465 * s/sunos4-1.h:
17466 * s/sunos413.h:
17467 * s/sunos4shr.h:
17468 * s/umax.h:
17469 * s/unipl5-2.h:
17470 * s/xenix.h:
17471 * cxux-crt0.s:
17472 * unexapollo.c:
17473 * unexconvex.c:
17474 * unexenix.c:
17475 * unexsni.c: Remove files for systems no longer supported.
17476
17477 * m/intel386.h: Remove references to unsupported systems.
17478
17479 * w32.c (get_emacs_configuration): Remove reference to i860.
17480
17481 * sysdep.c: Remove dead code.
17482
17483 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17484
17485 * s/rtu.h:
17486 * m/masscomp.h: Remove files. Platform is obsolete.
17487
17488 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
17489
17490 * dbusbind.c (Fdbus_method_return): New function.
17491 (xd_read_message): Add the serial number to the event.
17492 (Fdbus_register_method): Activate the function.
17493
17494 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17495
17496 * keyboard.c (read_key_sequence): Fix typo.
17497
17498 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
17499
17500 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17501 (xd_signature, xd_append_arg): Handle element type detection for
17502 empty arrays.
17503 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17504 SDATA () calls; this must be solved more general.
17505 (Fdbus_register_signal): Use SBYTES instead of strlen.
17506
17507 2008-01-03 Magnus Henoch <magnus@zemdatav>
17508
17509 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17510 unsigned int for byte values (necessary for big-endian platform).
17511 (Fdbus_call_method): Handle the case of no returned arguments.
17512
17513 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17514
17515 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17516
17517 2007-12-31 Magnus Henoch <mange@freemail.hu>
17518
17519 * dbusbind.c (xd_signature): Signature of variant is just "v".
17520
17521 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
17522
17523 * dbusbind.c: Fix several errors and compiler warnings.
17524 Reported by Tom Tromey <tromey@redhat.com>.
17525 (XD_ERROR, XD_DEBUG_MESSAGE)
17526 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17527 (xd_append_arg): Part for basic D-Bus types rewritten.
17528 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17529 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17530 appropriate.
17531 (xd_read_message): Return Qnil. Don't signal an error; it is not
17532 useful during event reading.
17533 (Fdbus_register_signal): Signal an error if the check for
17534 FUNCTIONP fails.
17535 (Fdbus_register_method): New function. The implementation is not
17536 complete, the call of the function signals an error therefore.
17537 (Fdbus_unregister_object): New function, renamed from
17538 Fdbus_unregister_signal. The initial check signals an error, if
17539 the object is not well formed.
17540
17541 2007-12-30 Richard Stallman <rms@gnu.org>
17542
17543 * textprop.c (get_char_property_and_overlay):
17544 Signal error if POSITION is out of range in a buffer.
17545
17546 2007-12-29 Martin Rudalics <rudalics@gmx.at>
17547
17548 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17549 because the original parameters are in pure storage now.
17550
17551 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17552
17553 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17554
17555 2007-12-22 Eli Zaretskii <eliz@gnu.org>
17556
17557 * callint.c (syms_of_callint) <command-history>: Add reference to
17558 history-length in the doc string.
17559
17560 2007-12-17 Jason Rumney <jasonr@gnu.org>
17561
17562 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17563 before passing as wParam.
17564
17565 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
17566
17567 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17568 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17569 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17570 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17571 as number.
17572 (Fdbus_call_method): Fix docstring.
17573
17574 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
17575
17576 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17577 New macros.
17578 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17579 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17580 Simplify.
17581 (xd_signature): New function.
17582 (xd_append_arg): Compute also signatures. Major rewrite.
17583 (xd_retrieve_arg): Make debug messages friendly.
17584 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17585 Check for signatures of arguments.
17586
17587 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
17588
17589 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17590 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17591 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17592 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17593 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17594 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17595 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17596 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17597 (xd_retrieve_value): Remove. Functionality included in ...
17598 (xd_append_arg): New function.
17599 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17600
17601 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
17602
17603 * dbusbind.c (top): Include <stdio.h>.
17604 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17605 dbus_message_new_method_call and dbus_message_new_signal.
17606 (Fdbus_register_signal): Rename unique_name to uname.
17607 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17608 non-existing unique name. Fix typos in matching rule. Return an
17609 object which is useful in Fdbus_unregister_signal.
17610 (Fdbus_unregister_signal): Reimplementation, in order to remove
17611 only the corresponding entry.
17612 (Vdbus_registered_functions_table): Change the order of entries.
17613 Apply these changes in xd_read_message and Fdbus_register_signal.
17614
17615 2007-12-16 Andreas Schwab <schwab@suse.de>
17616
17617 * fileio.c (Finsert_file_contents): Fix overflow check to not
17618 depend on undefined integer overflow.
17619
17620 2007-12-14 Jason Rumney <jasonr@gnu.org>
17621
17622 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17623 for characters above 127.
17624
17625 2007-12-13 Jason Rumney <jasonr@gnu.org>
17626
17627 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17628 before dereferencing array.
17629 (lookup_vk_code): Remove zero comparison.
17630
17631 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
17632
17633 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17634 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17635 Use `unsigned int' instead of `uint'.
17636 (xd_read_message, Fdbus_register_signal): Split expressions into
17637 multiple lines before operators "&&" and "||", according to the
17638 GNU Coding Standards.
17639
17640 2007-12-14 Eli Zaretskii <eliz@gnu.org>
17641
17642 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17643
17644 2007-12-12 Juri Linkov <juri@jurta.org>
17645
17646 * buffer.c (Frename_buffer): In interactive spec replace
17647 `read-buffer' with `read-string' that uses `buffer-name-history'
17648 as history, and the current buffer's name as default.
17649
17650 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17651
17652 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17653 manipulating the backtrace manually.
17654 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17655 (struct backtrace, backtrace_list): Remove.
17656 (command_loop_1): Remove dead var `no_direct'.
17657
17658 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17659 preserve non-built-in buffer-local variables.
17660 (Fkill_all_local_variables): Don't re-create&re-set permanent
17661 buffer-local variables.
17662
17663 2007-12-09 Juri Linkov <juri@jurta.org>
17664
17665 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17666 Lisp code that uses `read-buffer' with current buffer as default.
17667
17668 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
17669
17670 * dbusbind.c (xd_read_message): Generate an event for every
17671 registered handler. There might be several handlers registered
17672 for the same signal.
17673 (Fdbus_register_signal): Don't overwrite a registration for the
17674 same signal. Add a new registration if handlers are different.
17675 (Vdbus_registered_functions_table): Rework doc string.
17676
17677 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
17678
17679 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17680 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17681 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17682 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17683 Unify argument lists.
17684 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17685 arguments and hash table keys. Use unique name for service.
17686 (Fdbus_unregister_signal): Remove checks.
17687 (Vdbus_registered_functions_table): Fix doc string.
17688
17689 2007-12-05 Magnus Henoch <mange@freemail.hu>
17690
17691 * process.c (make_process): Initialize pty_flag to 0.
17692
17693 2007-12-05 Jason Rumney <jasonr@gnu.org>
17694
17695 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17696 specified XBMs.
17697
17698 2007-12-05 Richard Stallman <rms@gnu.org>
17699
17700 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17701
17702 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17703
17704 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17705 New variable.
17706 (mac_try_close_socket) [MAC_OSX]: New function.
17707 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17708 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17709
17710 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17711 Use mac_try_close_socket.
17712
17713 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17714
17715 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17716 reloc_base.
17717 (copy_dysymtab): Compute relocation base here.
17718 (rebase_reloc_address) [__ppc64__]: New function.
17719 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17720 changed.
17721
17722 2007-12-05 Jason Rumney <jasonr@gnu.org>
17723
17724 * w32proc.c (sys_spawnve): Quote args with wildcards.
17725
17726 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17727
17728 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17729 __objc_* sections.
17730 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17731
17732 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
17733
17734 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17735 Move check for Vdbus_registered_functions_table to
17736 xd_read_queued_messages.
17737 (xd_read_queued_messages): Protect xd_read_message calls by
17738 internal_condition_case_1.
17739
17740 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
17741
17742 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17743 Qdbus_system_bus and Qdbus_session_bus, respectively.
17744 (Vdbus_intern_symbols): Remove.
17745 (Vdbus_registered_functions_table): New hash table.
17746 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17747 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17748 Rewrite in order to manage registered functions by hash table
17749 Vdbus_registered_functions_table.
17750
17751 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17752
17753 * xterm.c: Update URL to Window Manager Specification in comment.
17754
17755 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
17756
17757 * config.in (HAVE_DBUS): Add.
17758
17759 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17760 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17761 (obj): Add $(DBUS_OBJ).
17762 (LIBES): Add $(DBUS_LIBS).
17763 (dbusbind.o): New target.
17764
17765 * dbusbind.c: New file.
17766
17767 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17768
17769 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17770 (Qdbus_event): New Lisp symbol.
17771 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17772 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
17773 (keys_of_keyboard): Define dbus-event.
17774
17775 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17776
17777 2007-12-01 Richard Stallman <rms@gnu.org>
17778
17779 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17780
17781 2007-11-30 Jason Rumney <jasonr@gnu.org>
17782
17783 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17784 (w32con_reset_terminal_modes): Clear screen buffer.
17785 (w32_face_attributes): Don't use color indexes that are out of range.
17786 Only reverse the default colors.
17787
17788 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17789 WINDOWSNT.
17790
17791 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17792
17793 2007-11-29 Jason Rumney <jasonr@gnu.org>
17794
17795 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17796 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17797 if the terminal colors are initialized.
17798 (unspecified_fg, unspecified_bg): Remove unused declarations.
17799
17800 2007-11-29 Andreas Schwab <schwab@suse.de>
17801
17802 * keyboard.c (apply_modifiers): Fix typo.
17803
17804 2007-11-29 Richard Stallman <rms@gnu.org>
17805
17806 * keymap.c (Fcurrent_local_map): Doc fix.
17807
17808 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17809
17810 * s/gnu-kfreebsd.h: New file.
17811
17812 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17813
17814 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17815 Don't cast redundantly.
17816
17817 * keyboard.c (KEY_TO_CHAR): New macro.
17818 (parse_modifiers, apply_modifiers): Accept integer arguments.
17819 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17820 for chars and symbol keys.
17821 After doing such remapping, apply function-key-map again.
17822
17823 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17824
17825 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17826 compiled anymore.
17827
17828 2007-11-26 Andreas Schwab <schwab@suse.de>
17829
17830 * process.c (list_processes_1): Fix indentation level of the
17831 command column.
17832
17833 2007-11-23 Andreas Schwab <schwab@suse.de>
17834
17835 * editfns.c (Fformat): Handle %c specially since it requires the
17836 argument to be of type int.
17837
17838 2007-11-23 Markus Triska <markus.triska@gmx.at>
17839
17840 * emacs.c (main): Call init_editfns before init_process, since
17841 init_process sets Vprocess_connection_type depending on OS release.
17842
17843 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17844
17845 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17846 (find_symbol_value): Use do_symval_forwarding.
17847
17848 * data.c (set_internal): Set the value in the `cons-cell' (for
17849 Buffer_Local_values) not only for frame-local variables.
17850
17851 2007-11-22 Andreas Schwab <schwab@suse.de>
17852
17853 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17854 values to sprintf.
17855 * keymap.c (Fsingle_key_description): Likewise.
17856 * print.c (print_object): Likewise.
17857
17858 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17859
17860 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17861 file for image is nil.
17862
17863 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17864
17865 * term.c: Include stdarg.h.
17866 (fatal): Implement using varargs.
17867 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17868
17869 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17870
17871 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17872 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17873 Update call to buffer_slot_type_mismatch.
17874 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17875 (buffer_slot_type_mismatch): Update.
17876 * buffer.c (buffer_local_types): Remove.
17877 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17878 (defvar_per_buffer): Set the type in the buffer_objfwd.
17879
17880 2007-11-21 Jason Rumney <jasonr@gnu.org>
17881
17882 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17883 CreateFileMapping returns NULL on failure.
17884
17885 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17886
17887 * search.c (Fset_match_data): Remove the `evaporate' feature.
17888 (unwind_set_match_data): Don't use the `evaporate' feature.
17889
17890 2007-11-21 Jason Rumney <jasonr@gnu.org>
17891
17892 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17893
17894 * w32console.c (w32con_write_glyphs): Remove unused variables.
17895
17896 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17897
17898 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17899
17900 * s/darwin.h (MULTI_KBOARD): Remove.
17901
17902 * macfns.c (x_create_tip_frame, Fx_create_frame)
17903 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17904
17905 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17906
17907 * buffer.c (Fbuffer_local_value): Remove redundant test.
17908 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17909 than in `current-buffer' to match the comment.
17910 Do the swap using swap_in_global_binding.
17911
17912 * data.c (store_symval_forwarding, set_internal):
17913 * eval.c (specbind): Remove dead code.
17914
17915 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17916 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17917 Since we do not want to see internal Lisp_*fwd objects here.
17918
17919 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17920
17921 * sysdep.c (init_system_name): Use getaddrinfo if available.
17922
17923 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17924 (x_scroll_bar_note_movement): start, end, with, height in struct
17925 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17926
17927 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17928
17929 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17930
17931 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17932
17933 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17934 This undoes Richard's change of 14-Oct-2002.
17935
17936 * alloc.c (allocate_other_vector):
17937 * lisp.h (allocate_other_vector): Remove.
17938
17939 * window.c (struct save_window_data): Move non-lisp data to the end
17940 and make it `int' rather than Lisp_Object.
17941 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17942 Done wrap/unwrap integer values.
17943 (Fset_window_configuration, compare_window_configurations):
17944 Update use of fields to their new types.
17945
17946 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17947 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17948 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17949 (SET_SCROLL_BAR_X_WINDOW): Remove.
17950 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17951 Access the new x_window field directly.
17952 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17953 Don't wrap/unwrap integers into Lisp_Objects.
17954 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17955 (x_scroll_bar_report_motion):
17956 Don't wrap/unwrap integers into Lisp_Objects.
17957 (x_term_init): Use SDATA.
17958 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17959 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17960 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17961 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17962 * xfns.c (x_set_background_color):
17963 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17964 Access the new x_window field directly.
17965
17966 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17967 (allocate_pseudovector): Make non-static.
17968
17969 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17970 (allocate_pseudovector): Declare.
17971 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17972
17973 2007-11-15 Andreas Schwab <schwab@suse.de>
17974
17975 * editfns.c (Fformat): Correctly format EMACS_INT values.
17976 Also take precision into account when formatting an integer.
17977
17978 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17979
17980 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17981
17982 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17983 (syms_of_keyboard): Defsubr it.
17984
17985 * data.c (swap_in_global_binding): Fix longstanding bug where
17986 store_symval_forwarding was not called with the right second argument,
17987 thus causing objfwd-ing from being dropped.
17988
17989 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
17990
17991 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17992 (Fx_display_pixel_height, Fx_display_planes)
17993 (Fx_display_color_cells, Fx_server_max_request_size)
17994 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17995 (Fx_display_visual_class, Fx_display_save_under):
17996 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17997 (Fx_display_pixel_height, Fx_display_planes)
17998 (Fx_display_color_cells, Fx_server_max_request_size)
17999 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18000 (Fx_display_mm_height, Fx_display_mm_width)
18001 (Fx_display_backing_store, Fx_display_visual_class)
18002 (Fw32_select_font, Fx_display_save_under):
18003 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18004 (Fx_display_pixel_height, Fx_display_planes)
18005 (Fx_display_color_cells, Fx_server_max_request_size)
18006 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18007 (Fx_display_save_under): Fix typos in docstrings.
18008
18009 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18010
18011 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18012 corresponding to deleted entries; they are an implementation detail.
18013 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18014 Remove variables.
18015 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18016 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18017 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18018 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18019 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18020 (Fw32_define_rgb_color, Fw32_load_color_file)
18021 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18022 Fix typos in docstrings.
18023 (Fx_server_version): Reflow docstring.
18024 (Fw32_shell_execute): Doc fixes.
18025
18026 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
18027
18028 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18029 if w32_parse_hot_key returned nil.
18030
18031 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18032
18033 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18034
18035 2007-11-09 Jason Rumney <jasonr@gnu.org>
18036
18037 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18038
18039 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18040
18041 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18042 Remove W32_SCROLL_BAR_CLICK_EVENT.
18043
18044 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18045 Add MULTIMEDIA_KEY_EVENT.
18046
18047 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18048 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18049 (make_lispy_event) [WINDOWSNT]: Use it to translate
18050 MULTIMEDIA_KEY_EVENT.
18051
18052 * w32term.h (WM_APPCOMMAND): Define if not already.
18053 (GET_APPCOMMAND_LPARAM): Likewise.
18054
18055 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18056 WM_APPCOMMAND.
18057
18058 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18059 (syms_of_w32fns): Export and initialize it.
18060 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18061
18062 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
18063
18064 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18065 twice.
18066
18067 * xdisp.c (handle_face_prop): Fix last change.
18068
18069 2007-11-09 Richard Stallman <rms@gnu.org>
18070
18071 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18072 not just for after-strings and before-strings.
18073 Call face_for_overlay_string and pass the overlay to it.
18074 (handle_display_prop): Determine whether property came from an overlay.
18075 Pass OVERLAY arg to handle_single_display_spec.
18076 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18077 (load_overlay_strings): Fill in it->string_overlays.
18078 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18079
18080 * xfaces.c (face_for_overlay_string): Function renamed from
18081 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18082
18083 * dispextern.h (struct it): New elt string_overlays.
18084 New elt from_overlay, also in stack.
18085 Rearrange a few elements.
18086 (face_for_overlay_string): Decl renamed from
18087 face_at_buffer_position_no_overlays, and add argument.
18088
18089 2007-11-09 Richard Stallman <rms@gnu.org>
18090
18091 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18092 to get the base face for an overlay string.
18093
18094 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18095
18096 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18097
18098 * xdisp.c (handle_stop): Move some code out of loop.
18099
18100 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18101
18102 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18103 Fix conversion from Lisp object to ATSUFontID.
18104
18105 2007-11-09 Jason Rumney <jasonr@gnu.org>
18106
18107 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18108
18109 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18110
18111 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18112 Don't assume regions are aligned to page boundary.
18113 (print_load_command_name): Add LC_UUID if defined.
18114
18115 2007-11-09 Richard Stallman <rms@gnu.org>
18116
18117 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18118
18119 2007-11-07 Jason Rumney <jasonr@gnu.org>
18120
18121 * s/windows95.h: Remove.
18122
18123 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18124
18125 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18126 abort with a message on unhandled store_type values.
18127
18128 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18129
18130 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18131 Remove HAVE_X11R5 and HAVE_X11R4.
18132
18133 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18134
18135 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18136
18137 2007-11-01 Johan Bockgård <bojohan@gnu.org>
18138
18139 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18140 Don't set s->stippled_p here, since it has already been set by
18141 x_set_glyph_string_gc from x_draw_glyph_string.
18142
18143 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18144
18145 * sunfns.c: Remove file.
18146
18147 * m/sun386.h:
18148 * m/sun2.h:
18149 * m/sparc.h: Remove Sun windows code.
18150
18151 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18152
18153 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18154 (init_keyboard): Set current_kboard's window-system to nil.
18155 (tty_read_avail_input): Typo.
18156 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18157
18158 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18159
18160 * s/usg5-4.h:
18161 * s/usg5-3.h:
18162 * s/ptx.h:
18163 * m/is386.h:
18164 * m/ibmps2-aix.h:
18165 * Makefile.in: Remove all mentions of X10.
18166
18167 * dispnew.c (syms_of_display): Don't mention version 10.
18168
18169 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
18170
18171 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18172 ($(BLD)/abbrev.$(O)): Remove.
18173
18174 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18175
18176 Rewrite abbrev.c in Elisp.
18177 * image.c (Qcount): Don't declare as extern.
18178 (syms_of_image): Initialize and staticpro `Qcount'.
18179 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18180 * emacs.c (main): Don't call syms_of_abbrev.
18181 * Makefile.in (obj): Remove abbrev.o.
18182 (abbrev.o): Remove.
18183 * abbrev.c: Remove.
18184
18185 2007-10-26 Martin Rudalics <rudalics@gmx.at>
18186
18187 * window.c (window_min_size_2): Don't count header-line.
18188
18189 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18190
18191 * frame.h (struct frame): Move all bit fields after the first bit
18192 field to take advantage of the available space. Group all the
18193 chars together to reduce wasted space due to padding.
18194
18195 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
18196
18197 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18198
18199 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18200 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18201 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18202 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18203 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18204 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18205 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18206 (last_marked, mark_object_loop_halt): Make static.
18207
18208 * frame.c (syms_of_frame) <delete-frame-functions>:
18209 Fix typo in docstring.
18210
18211 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
18212
18213 * w32.c (init_environment): Fix tiny memory leak.
18214 (w32_get_resource): Remove unused variable `ok'.
18215
18216 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18217
18218 Make `window-system' into a keyboard-local variable (rather than
18219 frame-local as done originally by multi-tty).
18220
18221 * keyboard.h (struct kboard): Add Vwindow_system.
18222 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18223 (mark_kboards): Mark Vwindow_system.
18224
18225 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18226 (init_display): Don't set the obsolete `window-system' frame-param.
18227
18228 * xterm.c (x_term_init):
18229 * w32term.c (w32_create_terminal):
18230 * term.c (init_tty): Set Vwindow_system.
18231 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18232 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18233
18234 * xfns.c (Fx_create_frame, x_create_tip_frame):
18235 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18236 * macfns.c (Fx_create_frame):
18237 Don't set the obsolete `window-system' frame-param.
18238
18239 * frame.h (Qwindow_system): Remove.
18240 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18241 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18242
18243 2007-10-24 Richard Stallman <rms@gnu.org>
18244
18245 * frame.c (x_figure_window_size): For fullscreen case,
18246 set USPosition | PPosition without clobbering rest of window_prompting.
18247
18248 * keyboard.c (Fcurrent_idle_time): Doc fix.
18249
18250 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18251
18252 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18253
18254 * process.c (unwind_request_sigio): Only define if __ultrix__.
18255
18256 * callproc.c (child_setup): Remove spurious *.
18257
18258 * lisp.h (Fget_text_property): Declare.
18259 (have_menus_p): Declare it here rather than in sys-dep header files.
18260 * macterm.h (have_menus_p):
18261 * msdos.h (have_menus_p):
18262 * xterm.h (have_menus_p): Remove.
18263
18264 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18265 (Fmake_variable_frame_local): Just check the variable's const-ness
18266 rather than checking nil or t.
18267
18268 2007-10-22 Jason Rumney <jasonr@gnu.org>
18269
18270 * w32fns.c: Include math.h.
18271 (w32_abort): Declaration moved to nt/config.nt.
18272
18273 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18274 (abort): Redefinition moved to nt/config.nt.
18275
18276 * m/windowsnt.h: Remove.
18277
18278 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
18279
18280 * emacs.c (Fdump_emacs): Fix typo in message.
18281 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18282 <installation-directory>: Reflow docstring.
18283
18284 2007-10-22 Juri Linkov <juri@jurta.org>
18285
18286 * minibuf.c: Allow minibuffer default to be a list of default values.
18287 With empty input use the first element of this list as returned default.
18288 (string_to_object)
18289 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18290 (read_minibuf): If defalt is cons, set histstring to its car.
18291 (Fread_string): If default_value is cons, set val to its car.
18292 (Fread_buffer): If def is cons, use its car.
18293 (Fcompleting_read): If defalt is cons, set val to its car.
18294
18295 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
18296
18297 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18298
18299 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
18300
18301 * doc.c (Fdocumentation): Check for advice in all cases.
18302
18303 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
18304
18305 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18306
18307 2007-10-19 Richard Stallman <rms@gnu.org>
18308
18309 * doc.c (Fdocumentation): Check for and handle an advised function.
18310
18311 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
18312
18313 * process.c (Fset_process_filter): Doc fix.
18314
18315 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18316
18317 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18318 which caused key-translation-map to applied repeatedly (thus breaking
18319 double-mode).
18320
18321 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18322
18323 * xselect.c (x_own_selection, x_handle_selection_clear)
18324 (x_clear_frame_selections):
18325 * w32menu.c (list_of_panes, list_of_items):
18326 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18327 * textprop.c (validate_plist, interval_has_all_properties)
18328 (interval_has_some_properties, interval_has_some_properties_list)
18329 (add_properties, text_property_list):
18330 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18331 * minibuf.c (Fassoc_string):
18332 * macselect.c (x_own_selection, x_clear_frame_selections)
18333 (Fx_disown_selection_internal):
18334 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18335 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18336
18337 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
18338
18339 * process.c: Link to libs for calling res_init() if available.
18340 (Fmake_network_process): Call res_init() before getaddrinfo or
18341 gethostbyname, if possible.
18342
18343 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18344
18345 * lread.c (read1): Set pvectype for char_tables.
18346
18347 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18348 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18349 Add type checks.
18350 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18351
18352 * alloc.c (free_misc): Use XMISCTYPE.
18353 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18354
18355 2007-10-17 Glenn Morris <rgm@gnu.org>
18356
18357 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18358 (syms_of_minibuf): Add Qcompletion_ignore_case.
18359 * dired.c (Qcompletion_ignore_case): Change to external.
18360 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18361 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18362 (Fread_file_name): Use it rather than intern'ing.
18363
18364 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18365 (Fread_coding_system): Ignore case of user input.
18366
18367 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18368
18369 * xdisp.c (handle_display_prop): Ignore display specs after
18370 replacing one when string text is being replaced.
18371 (handle_single_display_spec): Pretend as if characters with display
18372 property haven't been consumed only when buffer text is being replaced.
18373
18374 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18375
18376 * xfns.c (Fx_create_frame, Fx_display_list):
18377 * window.c (window_fixed_size_p, enlarge_window)
18378 (shrink_window_lowest_first):
18379 * macterm.c (init_font_name_table):
18380 * macfns.c (Fx_create_frame, Fx_display_list):
18381 * lread.c (close_load_descs):
18382 * keyboard.c (read_char_x_menu_prompt):
18383 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18384 * coding.c (code_convert_region_unwind): Test the type of an object
18385 rather than just !NILP before extracting data from it.
18386
18387 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18388
18389 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18390 (XMISCANY): New macro.
18391 (XMISCTYPE): Use it.
18392 (struct Lisp_Misc_Any): New type.
18393 (union Lisp_Misc): Use it.
18394 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18395 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18396 (find_symbol_value, set_internal, default_value, Fset_default)
18397 (Fmake_variable_buffer_local, Fmake_local_variable)
18398 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18399 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18400 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18401 * alloc.c (allocate_buffer): Set the size and tag.
18402 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18403 Use XMISCANY.
18404 (die): Follow the GNU convention for error messages.
18405 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18406 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18407 tag any more.
18408 (set_buffer_internal_1):
18409 * frame.c (store_frame_param):
18410 * eval.c (specbind):
18411 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18412
18413 * doc.c (Fsnarf_documentation): Simplify.
18414
18415 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18416
18417 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18418 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18419
18420 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18421
18422 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18423
18424 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18425
18426 * eval.c (do_autoload): Don't save autoloads.
18427
18428 * data.c (Ffset): Save autoload of the function being set.
18429
18430 2007-10-07 John Paul Wallington <jpw@pobox.com>
18431
18432 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18433 parameter before setting up faces.
18434
18435 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18436
18437 * ccl.c (Fregister_code_conversion_map):
18438 * keyboard.c (append_tool_bar_item): Reformat last change.
18439
18440 * lisp.h (eabs): Rename from `abs'. All callers changed.
18441
18442 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18443
18444 * buffer.c (add_overlay_mod_hooklist):
18445 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18446 * fontset.c (make_fontset):
18447 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18448 (append_tool_bar_item):
18449 * macmenu.c (grow_menu_items):
18450 * w32menu.c (grow_menu_items):
18451 * xmenu.c (grow_menu_items): Use larger_vector.
18452
18453 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18454
18455 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18456 selected frame'' on MSDOS).
18457
18458 2007-10-12 Martin Rudalics <rudalics@gmx.at>
18459
18460 * frame.c (Qexplicit_name): New variable.
18461 (x_report_frame_params): Report it in parameter alist.
18462 (syms_of_frame): Intern and staticpro it.
18463
18464 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18465
18466 * macfns.c (x_create_tip_frame): Set terminal for frame.
18467
18468 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18469
18470 * frame.c (Qenvironment): Remove.
18471 (syms_of_frame) <Qenvironment>: Don't initialize.
18472 (Fdelete_frame): Don't treat the `environment' param specially.
18473 * frame.h (Qenvironment): Don't declare.
18474 * callproc.c (set_initial_environment): Don't set unused frame param.
18475
18476 * frame.c (Fframe_with_environment): Remove.
18477 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18478
18479 * lisp.h (Fframe_with_environment): Don't declare.
18480
18481 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
18482
18483 * indent.c (indent_tabs_mode, last_known_column)
18484 (last_known_column_modified): Make static.
18485 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18486
18487 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18488
18489 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18490
18491 2007-10-09 Jason Rumney <jasonr@gnu.org>
18492
18493 * w32term.c (x_set_window_size): Disable code that attempts to tell
18494 Lisp code about a size change before it actually happens.
18495
18496 2007-10-09 Richard Stallman <rms@gnu.org>
18497
18498 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18499 return HANDLED_RETURN.
18500
18501 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18502
18503 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18504 when there's an unread command event.
18505
18506 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18507 window autoselection act appropriately when leaving selected frame.
18508 (syms_of_frame): Initialize focus_follows_mouse.
18509 * frame.h (focus_follows_mouse): Extern it.
18510 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18511 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18512 * msdos.c (dos_rawgetc): Likewise.
18513 * w32term.c (w32_read_socket): Likewise.
18514 * xterm.c (handle_one_xevent): Likewise.
18515 * xdisp.c (syms_of_xdisp): In doc-string of
18516 mouse-autoselect-window mention focus-follows-mouse.
18517
18518 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18519
18520 * macterm.c (mac_load_query_font): Fix missing return value.
18521 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18522 Add BLOCK_INPUT.
18523
18524 2007-10-08 Richard Stallman <rms@gnu.org>
18525
18526 * xdisp.c (get_window_cursor_type): Implement documented behavior
18527 for cursor-in-non-selected-windows = t.
18528
18529 2007-10-08 Jason Rumney <jasonr@gnu.org>
18530
18531 * w32.c (w32_get_resource): Always close registry keys.
18532
18533 2007-10-08 Jason Rumney <jasonr@gnu.org>
18534
18535 * makefile.w32-in (LIBS): Add COMCTL32.
18536
18537 * w32fns.c (globals_of_w32fns): Init common controls.
18538
18539 2007-10-08 Richard Stallman <rms@gnu.org>
18540
18541 * image.c (our_memory_buffer): Rename from omfib_buffer.
18542
18543 2007-10-08 Richard Stallman <rms@gnu.org>
18544
18545 * buffer.c (Foverlays_at): Doc fix.
18546
18547 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18548
18549 * fns.c (Fplist_put): Preserve uneven tail data.
18550
18551 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18552
18553 * termhooks.h (enum event_kind): Remove trailing comma.
18554
18555 * frame.h (enum): Remove trailing comma.
18556
18557 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18558
18559 * w32proc.c (delete_child): Don't terminate threads of zombies.
18560
18561 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18562
18563 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18564
18565 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18566 last-repeatable-command.
18567 (init_kboard): Initialize Vlast_repeatable_command.
18568 (command_loop_1): Set it to real_this_command unless that was
18569 bound to an input event.
18570 (mark_kboards): Mark it.
18571
18572 2007-10-08 Richard Stallman <rms@gnu.org>
18573
18574 * eval.c (condition-case): Doc fix.
18575
18576 2007-10-08 Masatake YAMATO <jet@gyve.org>
18577
18578 * xfaces.c (tty_supports_face_attributes_p): Fix code
18579 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18580 was copied and not edited.
18581
18582 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18583
18584 Add new `input-decode-map' keymap and use it for terminal
18585 escape sequences.
18586 * keyboard.h (struct kboard): Add Vinput_decode_map.
18587 Remove Vlocal_key_translation_map.
18588 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18589 (init_kboard): Init input-decode-map.
18590 Replace local-key-translation-map back with key-translation-map.
18591 (syms_of_keyboard): Declare input-decode-map.
18592 Remove local-key-translation-map. Update docstrings.
18593 (mark_kboards): Mark Vinput_decode_map.
18594 Don't mark Vlocal_key_translation_map.
18595 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18596 Replace local-key-translation-map back with key-translation-map.
18597 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18598 Bind in input-decode-map rather than function-key-map.
18599
18600 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18601 This was made redundant by the previous introduction of XSETPVECTYPE.
18602
18603 2007-10-09 Richard Stallman <rms@gnu.org>
18604
18605 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18606
18607 2007-09-29 Richard Stallman <rms@gnu.org>
18608
18609 * eval.c (internal_condition_case_2, internal_condition_case_1)
18610 (internal_condition_case): Reenable abort if x_catching_errors ()
18611 to see if that really happens and why.
18612
18613 2007-10-06 Andreas Schwab <schwab@suse.de>
18614
18615 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18616
18617 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
18618
18619 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18620
18621 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18622
18623 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18624
18625 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18626
18627 * window.h (struct window):
18628 * window.c (struct save_window_data, struct saved_window):
18629 * termhooks.h (struct terminal):
18630 * process.h (struct Lisp_Process):
18631 * frame.h (struct frame):
18632 * buffer.h (struct buffer):
18633 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18634 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18635 The size field of (pseudo)vectors is now unsigned.
18636 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18637
18638 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18639 Turn `count' into an integer.
18640
18641 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18642 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18643 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18644 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18645 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18646
18647 * alloc.c (allocate_pseudovector): New fun.
18648 (ALLOCATE_PSEUDOVECTOR): New macro.
18649 (allocate_window, allocate_terminal, allocate_frame)
18650 (allocate_process): Use it.
18651 (mark_vectorlike): New function.
18652 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18653 (mark_terminals): Use it.
18654 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18655 (Fmake_byte_code): Use XSETPVECTYPE.
18656
18657 * frame.c (Fframe_parameters): Minor simplification.
18658
18659 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18660
18661 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18662
18663 * buffer.c (Fget_buffer_create, init_buffer_once):
18664 * lread.c (defsubr):
18665 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18666
18667 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18668 defined differently in the m/*.h files.
18669 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18670 (XSETPVECTYPE): New macro.
18671 (XSETPSEUDOVECTOR): Use it.
18672
18673 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18674 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18675
18676 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18677 * lread.c (defvar_per_buffer):
18678 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18679
18680 * window.c (candidate_window_p): Only consider as visible frames that
18681 are on the same terminal.
18682
18683 * m/ibms390x.h (MARKBIT): Remove unused macro.
18684
18685 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
18686
18687 * lread.c (Fload): Fix typo in docstring.
18688
18689 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18690
18691 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18692 of a non-zero value can't yield zero.
18693
18694 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18695
18696 * term.c (term_clear_mouse_face, term_mouse_highlight)
18697 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18698
18699 * print.c (safe_debug_print): Use XHASH.
18700
18701 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18702 Lisp elements such as tags.
18703 (XHASH): New macro.
18704 (EQ): Use it.
18705 (SREF, SSET, STRING_COPYIN): Use SDATA.
18706 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18707
18708 * alloc.c (mark_terminal): Remove left-over declaration.
18709 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18710 (allocate_vectorlike): Remove type argument. Adjust callers.
18711 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18712 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18713
18714 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18715 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18716 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18717 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18718 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18719 Use them.
18720
18721 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18722 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18723 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18724
18725 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18726
18727 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18728 loaded by default.
18729
18730 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18731
18732 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18733 on this tty.
18734 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18735
18736 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18737 Update all users.
18738 (handle_one_term_event): Use Gpm_DrawPointer.
18739 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18740 Signal errors instead of returning nil. Always return nil.
18741 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18742 Make it a noop if gpm-mouse was not activated.
18743 (syms_of_term): Update names.
18744
18745 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18746
18747 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18748 (init_sys_modes): Check that gpm_tty is the current tty.
18749
18750 * alloc.c (allocate_terminal): Set the vector size to only count the
18751 lisp fields. Initialize those to nil.
18752 (mark_object): Don't treat terminals specially.
18753 (mark_terminal): Remove.
18754 (mark_terminals): Use mark_object instead.
18755
18756 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18757 the GC to the beginning.
18758
18759 * indent.h:
18760 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18761
18762 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18763
18764 2007-09-25 Jason Rumney <jasonr@gnu.org>
18765
18766 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18767
18768 * w32console.c (create_w32cons_output): Remove.
18769
18770 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18771
18772 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18773 (reset_sys_modes): Use reset_terminal_modes_hook.
18774
18775 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18776
18777 * eval.c (do_autoload): Don't output any message.
18778
18779 2007-09-24 Juri Linkov <juri@jurta.org>
18780
18781 * emacs.c (standard_args): Change priority of "--no-splash"
18782 from 40 to 3. Add "--no-desktop" with the same priority.
18783
18784 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18785
18786 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18787 and optimize the case where they are all 1.
18788
18789 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
18790
18791 * lisp.h (abs): Define if not defined.
18792 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18793 Don't define `abs', since it's defined in lisp.h.
18794
18795 2007-09-22 Eli Zaretskii <eliz@gnu.org>
18796
18797 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18798 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18799 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18800 (init_tty): Use DEV_TTY instead of "/dev/tty".
18801 [WINDOWSNT]: No need to protect from NAME arg being null.
18802
18803 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18804
18805 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18806 up the tty state.
18807
18808 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18809
18810 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18811 (gpm_tty): Change its type.
18812 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18813 (gpm_tty): Change its type and initialize it.
18814 (Fterm_open_connection): Check the frame is indeed a tty.
18815 Use the new gpm_tty.
18816 (Fterm_close_connection): Use the new gpm_tty.
18817 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18818 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18819
18820 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
18821
18822 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18823 underline_color, to draw strike-through.
18824
18825 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18826
18827 * lisp.h (allocate_terminal): Declare.
18828
18829 * window.c (candidate_window_p): Consider frames that are being placed
18830 by the user as somewhere between visible and iconified.
18831 (window_loop): Prefer windows on the current frame.
18832 (Fselect_window): Move the use of select-frame to the beginning so we
18833 can just delegate all the work (it'll call us back anyway).
18834
18835 * frame.c (Qdisplay_environment_variable):
18836 * frame.h (Qdisplay_environment_variable): Delete.
18837
18838 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18839 of the first arg, since that value may be a union.
18840
18841 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18842 parameter rather than Qdisplay_environment_variable. If all else
18843 fails, look for DISPLAY in initial-environment.
18844
18845 2007-09-21 Glenn Morris <rgm@gnu.org>
18846
18847 * Makefile.in (emacstool): Remove target.
18848 (lisp, shortlisp): Remove termdev.elc.
18849
18850 2007-09-21 Markus Triska <markus.triska@gmx.at>
18851
18852 * xterm.c (x_delete_display): Compile session management conditionally.
18853
18854 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18855
18856 * callproc.c (getenv_internal_1): New function.
18857 (getenv_internal): Use it.
18858 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18859
18860 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18861 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18862 (Fset_terminal_parameter): Work with dead terminals as well.
18863 (Fmodify_terminal_parameters): Remove.
18864
18865 * terminal.c (get_terminal): Handle terminals.
18866 Make sure the terminal returned is live.
18867 (create_terminal): Use allocate_terminal.
18868 (mark_terminals): Move to alloc.c.
18869 (delete_terminal): Use terminal->name as liveness status.
18870 NULL out fields after freeing their contents.
18871 Don't deallocate the object.
18872 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18873 rather than an int.
18874 (Fterminal_live_p): Accept non-integer arguments.
18875 (Fterminal_list): Return terminal objects rather than an ints.
18876
18877 * alloc.c (enum mem_type): New member for `terminal' objects.
18878 (allocate_terminal): New function.
18879 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18880 Handle terminals.
18881 (mark_terminal): New fun.
18882 (mark_terminals): Move from terminal.c.
18883
18884 * term.c (get_tty_terminal): Don't treat output_initial specially.
18885 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18886 (delete_tty): Use terminal->name as liveness status.
18887
18888 * termhooks.h (struct terminal): Make it into a pseudovector.
18889 Remove `deleted' replaced by checking `name's nullness.
18890
18891 * print.c (print_object): Handle terminals.
18892
18893 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18894 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18895
18896 * frame.c (make_terminal_frame):
18897 * keyboard.c (tty_read_avail_input):
18898 * w32term.c (x_delete_terminal):
18899 * xfns.c (Fx_create_frame, x_create_tip_frame):
18900 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18901
18902 2007-09-20 Glenn Morris <rgm@gnu.org>
18903
18904 * process.c (Fmake_network_process): Doc fix.
18905
18906 2007-09-19 Jason Rumney <jasonr@gnu.org>
18907
18908 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18909
18910 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18911
18912 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18913 Fix a C warning regarding variable constness.
18914
18915 * xterm.c (handle_one_xevent): Fix a C warning.
18916
18917 2007-09-18 Jason Rumney <jasonr@gnu.org>
18918
18919 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18920
18921 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18922
18923 * gtkutil.c (gdpy_def): New variable.
18924 (xg_initialize): Initialize gdpy_def.
18925 (xg_display_close): If no other display exists, set gdpy_def to a
18926 new connection.
18927
18928 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18929
18930 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18931 when we have no file name for the icon.
18932 (xg_tool_bar_expose_callback): Remove.
18933 (xg_create_tool_bar): Don't connect expose signal to
18934 xg_tool_bar_expose_callback.
18935 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18936
18937 2007-09-16 Andreas Schwab <schwab@suse.de>
18938
18939 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18940 values instead of zapping them.
18941
18942 2007-09-14 Glenn Morris <rgm@gnu.org>
18943
18944 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18945 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18946 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18947 scope and rename to omfib_buffer for clarity.
18948 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18949
18950 2007-09-14 Kenichi Handa <handa@m17n.org>
18951
18952 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18953
18954 2007-09-13 Jason Rumney <jasonr@gnu.org>
18955
18956 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18957
18958 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18959
18960 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18961 (mac_term_init): Call here instead, passing rif.
18962
18963 2007-09-13 Glenn Morris <rgm@gnu.org>
18964
18965 * s/hpux.h: No longer define `static' as nothing.
18966
18967 2007-09-13 Johan Bockgård <bojohan@gnu.org>
18968
18969 * callint.c (Fcall_interactively): Remove unused var `fun'.
18970
18971 2007-09-12 Romain Francoise <romain@orebokech.com>
18972
18973 * window.c (prefer_window_split_horizontally, display_buffer):
18974 Revert 2007-09-08 change.
18975
18976 2007-09-12 Glenn Morris <rgm@gnu.org>
18977
18978 * alloca.c: Remove file.
18979 * Makefile.in (alloca): Do not undef.
18980 (allocaobj, alloca.o): Remove.
18981 (otherobj): Remove allocaobj.
18982 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18983 * regex.c (C_ALLOCA): Remove all references and code that was only
18984 used when this was defined.
18985 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18986 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18987 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18988
18989 * Makefile.in (SOURCES, unlock, relock): Delete.
18990
18991 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18992 (menu_grab_callback): All uses changed.
18993
18994 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18995 (x_reply_selection_request): All uses changed.
18996
18997 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18998
18999 * lread.c (load_warn_old_style_backquotes): Change message to look
19000 better when it appears in the middle of byte-compiler messages.
19001
19002 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19003
19004 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19005
19006 * xterm.c (x_create_terminal): Add comment.
19007
19008 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19009
19010 2007-09-10 Richard Stallman <rms@gnu.org>
19011
19012 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19013
19014 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19015
19016 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19017 (DEFUN): Document `intspec', use it instead of `prompt'.
19018
19019 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19020
19021 * data.c (Finteractive_form): If the interactive specification starts
19022 with a `(', use it as a Lisp form.
19023
19024 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19025 name and file modes.
19026
19027 * callint.c (Fcall_interactively): Comment fixes.
19028
19029 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19030
19031 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19032 and compiled functions.
19033
19034 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19035
19036 * window.c (prefer_window_split_horizontally): New variable.
19037 (display_buffer): Consider splitting window horizontally depending
19038 on prefer_window_split_horizontally.
19039
19040 2007-09-08 Eli Zaretskii <eliz@gnu.org>
19041
19042 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19043
19044 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19045
19046 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19047
19048 * frame.c (x_set_frame_parameters): Check number is positive before
19049 using XFASTINT.
19050
19051 * window.c (freeze_window_start): Don't presume selected_window holds
19052 a window object.
19053 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19054
19055 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19056
19057 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19058
19059 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19060
19061 * window.c (Vsplit_window_preferred_function): New var.
19062 (Fdisplay_buffer): Use it.
19063 (syms_of_window): Export, and initialize it.
19064
19065 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19066
19067 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19068
19069 2007-09-06 Glenn Morris <rgm@gnu.org>
19070
19071 * gtkutil.c (menu_grab_callback) <cnt>:
19072 * xselect.c (x_reply_selection_request) <cnt>: Move static
19073 variable to file scope.
19074
19075 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19076
19077 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19078 consistent values of selected_frame and selected_window.
19079
19080 2007-09-04 Jason Rumney <jasonr@gnu.org>
19081
19082 * w32console.c (initialize_w32_display): Zero unused hooks.
19083
19084 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19085
19086 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19087 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19088
19089 2007-09-04 Jason Rumney <jasonr@gnu.org>
19090
19091 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19092 in w32console.c. Set up input. Remove XXX comments that have been
19093 confirmed as correct.
19094
19095 * s/ms-w32.h (MULTI_KBOARD): Define.
19096
19097 * w32console.c (one_and_only_w32cons): Remove.
19098 (initialize_w32_display): Take terminal argument.
19099
19100 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19101 initialize_w32_display.
19102 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19103
19104 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19105
19106 * keyboard.c (discard_mouse_events): Discard it.
19107 (make_lispy_event): Translate it to a lisp event.
19108 (lispy_wheel_names): Add wheel-left and right events.
19109 (syms_of_keyboard): Enlarge wheel_syms.
19110
19111 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19112 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19113
19114 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19115
19116 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19117 from WM_MOUSEHWHEEL.
19118 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19119
19120 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19121 terminal.
19122
19123 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19124 keyboard for the terminal.
19125
19126 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19127
19128 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19129 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19130 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19131 and resume-tty-function to resume-tty-hook.
19132 (Fsuspend_tty, Fresume_tty): Use new names.
19133
19134 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19135
19136 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19137 if it starts with "n:".
19138
19139 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19140
19141 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19142
19143 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19144
19145 * frame.h:
19146 * frame.c (Qterm_environment_variable): Remove.
19147 (syms_of_frame): Don't init and staticpro it.
19148
19149 * callproc.c (getenv_internal): Remove special case for $TERM.
19150
19151 * callproc.c (Vinitial_environment): New variable.
19152 (set_initial_environment): Initialize it.
19153 (syms_of_callproc): Declare it.
19154 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19155 TERM under which a process runs is never related to the TERM in which
19156 Emacs is running.
19157
19158 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19159
19160 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19161 * s/darwin.h: ... do it here.
19162
19163 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19164
19165 * lisp.h (set_initial_environment): Rename from set_global_environment.
19166
19167 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19168 removed by mistake on the multi-tty branch.
19169
19170 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19171 (Fmodify_frame_parameters): Return a value.
19172
19173 * image.c (png_load): Comment-out var only used in commented-out code.
19174
19175 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19176 before passing it to mark_object.
19177
19178 * xfaces.c (internal_resolve_face_name): Return a value.
19179 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19180
19181 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19182 (x_icon): Comment-out var only used in commented-out code.
19183
19184 2007-08-29 Romain Francoise <romain@orebokech.com>
19185
19186 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19187 QUIT hasn't been provided.
19188
19189 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19190
19191 * callproc.c (child_setup, getenv_internal): Use the
19192 display-environment-variable and term-environment-variable frame params.
19193 (set_initial_environment): Initialise Vprocess_environment.
19194
19195 * config.in: Disable multi-keyboard support on a mac.
19196
19197 * frame.c (Qterm_environment_variable)
19198 (Qdisplay_environment_variable): New variables.
19199 (syms_of_frame): Intern and staticpro them.
19200 (Fmake_terminal_frame): Disable output method test.
19201
19202 * frame.h: Declare them here.
19203
19204 * macfns.c (x_set_mouse_color): Get rif from the frame.
19205 (x_set_tool_bar_lines): Don't use updating_frame.
19206 (mac_window): Add 2 new parameters for consistency with other systems.
19207 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19208 frame parameters following what is done in X11 and w32. Don't use
19209 FRAME_MAC_DISPLAY_INFO.
19210 (Fx_open_connection, start_hourglass): Remove window-system check.
19211 (x_create_tip_frame): Get the keyboard from the terminal.
19212
19213 * macmenu.c: Reorder includes.
19214 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19215
19216 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19217 terminal parameter.
19218 (x_clear_frame): Add a frame parameter.
19219 (note_mouse_movement): Get rif from the frame.
19220 (mac_term_init): Initialize the terminal.
19221 (mac_initialize): Make static and move terminal initialization ...
19222 (mac_create_terminal): ... to this new function.
19223
19224 * macterm.h (struct mac_display_info): Add terminal.
19225 (mac_initialize): Delete declaration.
19226
19227 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19228
19229 * sysdep.c: Comment out text after #endif.
19230
19231 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19232 is defined. Better initialize ttys in windows. Use terminal
19233 specific mouse_position_hook.
19234
19235 * termhooks.h (union display_info): Add mac_display_info.
19236
19237 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19238 Set the default minibuffer frame, window_system and the rest of the
19239 frame parameters following what is done in X11.
19240
19241 * w32term.c (w32_initialize): Make static.
19242
19243 * xselect.c (x_handle_selection_clear): Only access
19244 terminal->kboard when MULTI_KBOARD is defined.
19245
19246 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19247 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19248
19249 2007-08-29 Jason Rumney <jasonr@gnu.org>
19250
19251 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19252 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19253
19254 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19255 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19256
19257 * keyboard.c (restore_kboard_configuration): Only define when
19258 MULTI_KBOARD defined.
19259
19260 * makefile.w32-in: Update dependancies from Makefile.in.
19261 (OBJ1): Add terminal.$(O)
19262
19263 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19264 Don't define function body.
19265 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19266
19267 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19268
19269 * w32.c (request_sigio, unrequest_sigio): Remove.
19270
19271 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19272 (w32con_clear_frame, w32con_clear_end_of_line)
19273 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19274 (w32con_delete_glyphs, w32con_set_terminal_window)
19275 (scroll_line, w32_sys_ring_bell): Add frame arg.
19276 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19277 Add terminal arg.
19278 (PICK_FRAME): Remove.
19279 (w32con_write_glyphs): Use frame specific terminal coding.
19280 (one_and_only_w32cons): New global variable.
19281 (initialize_w32_display): Use it for storing hooks.
19282 (create_w32cons_output): New function.
19283
19284 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19285 arg a frame.
19286
19287 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19288 Set window_system.
19289 (x_set_tool_bar_lines): Don't use updating_frame.
19290 (Fx_create_frame): Set terminal and ref count.
19291 (Fx_open_connection): Remove window-system check.
19292
19293 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19294
19295 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19296 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19297 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19298 Add frame arg.
19299 (x_delete_terminal, w32_create_terminal): New functions.
19300 (w32_term_init): Create a terminal.
19301 (w32_initialize): Move terminal specific initialization to
19302 w32_create_terminal.
19303
19304 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19305 (w32_clear_rect, w32_clear_area): Use background from frame.
19306 (w32_display_info): Add terminal.
19307 (w32_sys_ring_bell, x_delete_display): Declare here.
19308
19309 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19310
19311 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19312
19313 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19314
19315 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19316 Fix get_named_tty calls for the controlling tty.
19317
19318 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19319
19320 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19321
19322 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19323
19324 * term.c (tty_insert_glyphs): Add missing first parameter.
19325
19326 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19327
19328 * buffer.c (Fbuffer_list, Fbury_buffer):
19329 Take frame->buried_buffer_list into account.
19330
19331 * cm.c (current_tty): New variable, for cmputc().
19332 (cmputc): Use it.
19333 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19334 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19335 (cmgoto): Add tty parameter. Pass it on to calccost().
19336 Use emacs_tputs() instead of tputs().
19337
19338 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19339 tputs().
19340 (current_tty): New variable, for cmputc().
19341 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19342
19343 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19344 (internal_condition_case, internal_condition_case_1)
19345 (internal_condition_case_2): Don't abort when x_catching_errors.
19346
19347 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19348 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19349 prevent crashes caused by bogus longjmps in read_char.
19350
19351 * keymap.h (Fset_keymap_parent): Add EXFUN.
19352
19353 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19354 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19355 Remove redundant definition.
19356
19357 * macfns.c (x_set_mouse_color, x_make_gc):
19358 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19359
19360 * w32term.c (x_free_frame_resources):
19361 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19362 (w32_initialize): Use the accessor macros for terminal characteristics.
19363
19364 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19365 Use the accessor macros for terminal characteristics.
19366 * msdos.c (internal_terminal_init): Use the accessor macros for
19367 terminal characteristics.
19368 (ScreenVisualBell, internal_terminal_init):
19369 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19370
19371 * termopts.h (no_redraw_on_reenter): Declare.
19372
19373 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19374 (mark_terminals, mark_ttys): Declare.
19375 (Fgarbage_collect): Call them.
19376 (mark_object): Mark buried_buffer_list.
19377
19378 * prefix-args.c: Include stdlib.h for exit.
19379
19380 * syssignal.h: Add comment.
19381
19382 * indent.c: Include stdio.h.
19383
19384 * window.h (Vinitial_window_system): Declare.
19385 (Vwindow_system): Delete declaration.
19386
19387 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19388
19389 * image.c (lookup_image): Don't initialize `c' until the xasserts
19390 have been run.
19391
19392 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19393 FRAME_FOREGROUND_PIXEL.
19394
19395 * print.c (print_preprocess): Don't lose print_depth levels while
19396 iterating.
19397
19398 * widget.c (update_from_various_frame_slots):
19399 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19400
19401 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19402 frames.
19403 (window_internal_height): Remove bogus make_number call.
19404 (init_window_once): Call make_terminal_frame with two zero parameters.
19405
19406 * fileio.c (Fread_file_name): Update comment.
19407
19408 * callint.c (Fcall_interactively):
19409 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19410 Make sure it is correctly unwound.
19411
19412 * xsmfns.c (x_session_close): New function.
19413
19414 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19415 Delete declarations.
19416
19417 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19418 (x_output): Remove background_pixel and foreground_pixel fields.
19419 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19420 (x_delete_device, x_session_close): Declare.
19421
19422 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19423 (read_filtered_event): Call `read_char' with a local
19424 `wrong_kboard_jmpbuf'.
19425
19426 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19427 Don't call single_kboard_state. Use FRAME_RIF.
19428
19429 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19430 systems.
19431
19432 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19433 (Fframe_with_environment, Fset_input_meta_mode)
19434 (Fset_quit_char): EXFUN.
19435 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19436 (init_sys_modes, reset_sys_modes): Update prototypes.
19437 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19438
19439 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19440 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19441 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19442 Delete declarations.
19443 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19444 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19445 New declarations.
19446
19447 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19448 already does that during init_display(). Call syms_of_keymap
19449 before syms_of_keyboard. Call `syms_of_terminal'.
19450 Call set_initial_environment, not set_process_environment.
19451 (shut_down_emacs): Call reset_all_sys_modes() instead of
19452 reset_sys_modes().
19453
19454 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19455 (internal_resolve_face_name, resolve_face_name_error): New functions.
19456 (resolve_face_name): Protect against loops and errors thrown by Fget.
19457 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19458 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19459
19460 * scroll.c: Replace CURTTY() with local variables throughout the
19461 file (where applicable).
19462 (calculate_scrolling, calculate_direct_scrolling)
19463 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19464 characteristics.
19465
19466 * keymap.c (Vfunction_key_map): Remove.
19467 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19468 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19469 (Vkey_translation_map): Remove.
19470 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19471 (Fdescribe_buffer_bindings)
19472 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19473 Update for terminal-local key-translation-map.
19474
19475 * Makefile.in (callproc.o): Update dependencies.
19476 (lisp, shortlisp): Add termdev.elc.
19477 (obj): Add terminal.o.
19478 (terminal.o): Add dependencies.
19479 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19480 (data.o, fns.o): Add termhooks.h dependency.
19481 (SOME_MACHINE_LISP): Add dnd.elc.
19482 (minibuf.o): Fix typo.
19483 Update dependencies.
19484
19485 * data.c (do_symval_forwarding, store_symval_forwarding)
19486 (find_symbol_value): Use the selected frame's keyboard, not
19487 current_kboard.
19488
19489 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19490 Vwindow_system.
19491
19492 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19493 Fmenu_bar_open.
19494 (syms_of_xmenu): Update defsubr.
19495 (mouse_position_for_popup, Fx_popup_menu)
19496 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19497 (set_frame_menubar, free_frame_menubar)
19498 (create_and_show_popup_menu, xmenu_show)
19499 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19500 an X frame.
19501
19502 * xselect.c (x_own_selection): Abort if not an X frame.
19503 (some_frame_on_display): Check if it is an X frame.
19504 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19505
19506 * coding.c: Include frame.h and termhooks.h.
19507 (terminal_coding, keyboard_coding): Delete.
19508 (Fset_terminal_coding_system_internal)
19509 (Fset_keyboard_coding_system_internal)
19510 (Fkeyboard_coding_system)
19511 (Fterminal_coding_system): Add a terminal parameter.
19512 Get terminal_coding from the terminal.
19513 (init_coding_once): Don't call setup_coding_system here.
19514
19515 * dispextern.h (set_scroll_region, turn_off_insert)
19516 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19517 (tty_clear_end_of_line, tty_setup_colors)
19518 (delete_tty, updating_frame)
19519 (produce_special_glyphs, produce_glyphs, write_glyphs)
19520 (insert_glyphs): Remove.
19521 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19522 (tty_turn_off_highlight, get_tty_size): Add declaration.
19523 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19524
19525 * frame.h (enum output_method): Add output_initial.
19526 (struct x_output): Delete.
19527 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19528 Access foreground_pixel and background_pixel directly from the frame.
19529 (tty_display): Delete.
19530 (struct frame): Add buried_buffer_list, foreground_pixel,
19531 background_pixel and terminal. Delete kboard.
19532 (union output_data): Add tty.
19533 (FRAME_KBOARD): Get the kboard from the terminal.
19534 (FRAME_INITIAL_P): New macro.
19535 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19536 (Qterm_environment_variable, Qdisplay_environment_variable)
19537 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19538 New declarations.
19539
19540 * termchar.h (tty_output, tty_display_info): New structures.
19541 (tty_list): Declare.
19542 (FRAME_TTY, CURTTY): New macros.
19543 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19544 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19545 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19546 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19547
19548 * callproc.c: Include frame.h and termhooks.h, for terminal
19549 parameters.
19550 (add_env): New function.
19551 (child_setup): Use it.
19552 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19553 (getenv_internal): Fix get_terminal_param call.
19554 (Fgetenv_internal, egetenv): Update doc.
19555 (syms_of_callproc): Initialize Vprocess_environment to nil.
19556 Register and initialize them. Remove obsolete defvars. Update doc
19557 strings.
19558 (child_setup): Handle Vlocal_environment_variables.
19559 (getenv_internal): Add terminal parameter.
19560 Handle Vlocal_environment_variables.
19561 (Fgetenv_internal): Add terminal parameter.
19562 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19563 environment in a frame (not terminal) parameter. Update doc strings.
19564 (set_initial_environment): Rename from set_global_environment.
19565 Store Emacs environment in initial frame parameter.
19566
19567 * xdisp.c (redisplay_internal): Update references to
19568 `previous_terminal_frame'.
19569 (display_mode_line, Fformat_mode_line): Replace calls to
19570 `push_frame_kboard' with `push_kboard'.
19571 (get_glyph_string_clip_rects): Add extra parentheses and
19572 braces to prevent compiler warnings.
19573 (calc_pixel_width_or_height): Add xassert to check that the
19574 frame is alive. Don't call `lookup_image' on a termcap frame.
19575 (message2_nolog, message3_nolog, redisplay_internal)
19576 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19577 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19578 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19579 (Fx_display_pixel_width, Fx_display_pixel_height)
19580 (Fx_display_planes, Fx_display_color_cells)
19581 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19582 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19583 (Fx_display_backing_store, Fx_display_visual_class)
19584 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19585 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19586
19587 * xfns.c (x_set_foreground_color x_set_background_color)
19588 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19589 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19590 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19591 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19592 terminal that is being deleted.
19593 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19594 frame parameter, and make sure it overrides any user-supplied setting.
19595 (Fx_close_connection, Fx_synchronize): Unify argument names with
19596 the rest of the DEFUNs.
19597
19598 * dispnew.c (Fsend_string_to_terminal): Update call to
19599 `get_tty_terminal'.
19600 (Fredraw_frame, Fsend_string_to_terminal)
19601 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19602 FRAME_TERMCAP_P and FRAME_TTY.
19603 (window_change_signal): Don't believe width/height values that are
19604 impossibly small.
19605 (Vinitial_window_system): Rename from Vwindow_system.
19606 (termscript, Wcm, rif): Delete.
19607
19608 * termhooks.h (struct terminal): New struct containing the
19609 previously global text display hooks and new members NAME,
19610 DELETED and PARAM_ALIST.
19611 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19612 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19613 (FRAME_RIF): New macros.
19614 (get_terminal_param, get_device): New declarations.
19615 (termscript): Delete declaration.
19616
19617 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19618 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19619 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19620 FRAME_FOREGROUND_PIXEL.
19621 (x_fully_uncatch_errors): Disable definition.
19622 (x_scroll_bar_expose): Fix reference to foreground pixel.
19623 (XTread_socket): Disable loop on all X displays.
19624 (x_delete_terminal): Don't set terminal->deleted and let
19625 delete_terminal delete the frames on the terminal.
19626 (x_delete_display): Doc update to reflect changes in
19627 delete_terminal.
19628 (x_display_info) <terminal>: Move member earlier in the struct.
19629 (deleting_tty): Remove old variable.
19630 (Fsuspend_tty): Call clear_tty_hooks.
19631 (Fresume_tty, init_tty): Call set_tty_hooks.
19632 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19633 errors on X frames.
19634 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19635 (handle_one_xevent): Initialize `f' to NULL.
19636 (x_delete_terminal, x_create_terminal): New functions.
19637 (XTset_terminal_modes, XTreset_terminal_modes)
19638 (XTread_socket, x_connection_closed, x_term_init)
19639 (x_term_init, x_delete_display): Add terminal parameter.
19640 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19641 X connections.
19642
19643 * frame.c: Include termchar.h.
19644 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19645 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19646 (Qdisplay_environment_variable): New vars.
19647 (Fframep): Deal with output_initial.
19648 (Fframe-live-p): Doc fix.
19649 (Fwindow-system): New function.
19650 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19651 (make_terminal_frame): Don't create frames on a terminal that is
19652 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19653 (store_frame_param): Check for found_for_frame before calling XFRAME.
19654 (Fmake_terminal_frame): Handle NULL tty names correctly.
19655 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19656 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19657 frames to refer to a deleted frame in their 'environment parameter.
19658 (Fframe_with_environment): New function.
19659 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19660 (get_future_frame_param): New function.
19661 (Fmake_terminal_frame): Use it.
19662 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19663
19664 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19665 * sysdep.c (reset_sys_modes): Update for renames.
19666
19667 * keyboard.c (tty_read_avail_input): New function.
19668 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19669 (syms_of_keyboard): Defsubr them.
19670 (Fset_input_meta_mode, Fset_quit_char): New functions.
19671 (Fset_input_mode): Split to above functions.
19672 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19673 parameter. Use it in call to `read_char'.
19674 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19675 Set wrong_kboard_jmpbuf correctly in recursive calls.
19676 Use current_kboard to access Vkeyboard_translate_table.
19677 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19678 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19679 Update longjmp invocations. Remember the original current_kboard,
19680 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19681 changes it. Comment out unnecessary calls to
19682 `record_single_kboard_state' and `any_kboard_state'.
19683 Update recursive calls.
19684 (wrong_kboard_jmpbuf): Remove global variable.
19685 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19686 Handle deleted interrupted_kboards correctly; that is a legal
19687 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19688 and read_char calls. Abort if interrupted_kboard died in read_char.
19689 (any_kboard_state, single_kboard_state)
19690 (push_frame_kboard): Remove function.
19691 (pop_kboard): Switch out of single_kboard mode if the kboard has
19692 been deleted. Remove unused variable. Help debugging by not
19693 changing current_kboard unnecessarily. Set current_kboard to the
19694 kboard of the selected frame when the stored kboard object has
19695 been deleted before pop_kboard.
19696 (temporarily_switch_to_single_kboard): Change first parameter to a
19697 frame pointer. Throw an error when caller wants to change kboards
19698 while in single_kboard mode. Don't push_kboard if we weren't in
19699 single kboard state. Don't pop_kboard if we popped into any
19700 kboard state.
19701 (restore_kboard_configuration): Abort if pop_kboard changed the
19702 kboard in single_kboard mode. Call pop_kboard only after setting
19703 up single_kboard mode.
19704 (Frecursive_edit): Switch to single_kboard mode only in nested
19705 command loops.
19706 (cmd_error, command_loop, command_loop_1, timer_check):
19707 Comment out unnecessary call to `any_kboard_state' and
19708 `record_single_kboard_state'.
19709 (delete_kboard): Exit single_kboard mode if we have just deleted
19710 that kboard. Use FRAME_KBOARD.
19711 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19712 `fatal_error_signal'.
19713 (record_single_kboard_state): Don't push_kboard if we weren't in
19714 single kboard state. Don't pop_kboard if we popped into any
19715 kboard state.
19716 (push_frame_kboard): Rename to push_kboard.
19717 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19718 (read_avail_input): Read input from all terminals.
19719 (mark_kboards): Also mark Vkeyboard_translate_table.
19720 (kbd_buffer_store_event_hold): Simplify condition.
19721 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19722 (Vkeyboard_translate_table): Move to struct kboard.
19723 (init_kboard): Initialize Vkeyboard_translate_table.
19724 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19725 Vkeyboard_translate_table. Update doc strings. Update docs of
19726 local-function-key-map and function-key-map.
19727
19728 * terminal.c: New file.
19729
19730 * term.c: Include errno.h.
19731 (Vring_bell_function, device_list, initial_device)
19732 (next_device_id, ring_bell, update_begin, update_end)
19733 (set_terminal_window, cursor_to, raw_cursor_to)
19734 (clear_to_end, clear_frame, clear_end_of_line)
19735 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19736 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19737 (syms_of_term): Move their initialization to terminal.c.
19738 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19739 (Ftty_display_color_cells)
19740 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19741 (clear_tty_hooks, set_tty_hooks)
19742 (init_tty, maybe_fatal): New functions.
19743 (Ftty_type): Return nil if terminal is not on a tty instead of
19744 throwing an error. Doc update.
19745 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19746 Doc update. Initialize new subrs and variables.
19747 (delete_tty): Use terminal->deleted.
19748 (tty_set_terminal_modes): Rename from set_terminal_modes.
19749 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19750 (set_scroll_region): Rename to `tty_set_scroll_region'.
19751 (turn_on_insert): Rename to `tty_turn_on_insert'.
19752 (turn_off_insert): Rename to `tty_turn_off_insert'.
19753 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19754 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19755 (toggle_highligh): Rename to `tty_toggle_highlight'.
19756 (background_highlight): Rename to `tty_background_highlight'.
19757 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19758 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19759 (tty_set_scroll_region, tty_background_highlight)
19760 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19761 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19762 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19763 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19764 Add static modifier.
19765 (tty_reset_terminal_modes, tty_set_terminal_window)
19766 (tty_set_scroll_region, tty_background_highlight)
19767 (tty_highlight_if_desired, tty_cursor_to)
19768 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19769 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19770 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19771 renames.
19772
19773 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19774
19775 * keyboard.c: Qrtl is new.
19776 (parse_tool_bar_item): Handle :rtl keyword.
19777 (syms_of_keyboard): Intern :rtl keyword.
19778
19779 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19780
19781 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19782 so no Lisp code is executed.
19783 (file_for_image, find_rtl_image): New functions.
19784 (xg_get_image_for_pixmap): Use file_for_image.
19785 (update_frame_tool_bar): If direction is RTL, use RTL image if
19786 defined. Use Gtk stock images if defined.
19787
19788 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19789
19790 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19791 for nonexistent or zero-width glyph in composition glyph.
19792
19793 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19794
19795 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19796
19797 * xdisp.c (Finvisible_p): New function.
19798 (syms_of_xdisp): defsubr it.
19799
19800 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
19801
19802 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19803 Doc fixes.
19804
19805 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19806
19807 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19808
19809 2007-08-24 Martin Rudalics <rudalics@gmx.at>
19810
19811 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19812 whether decoding has modified buffer contents.
19813
19814 2007-08-24 Jason Rumney <jasonr@gnu.org>
19815
19816 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19817 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19818 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19819 (init_svg_functions) [HAVE_NTGUI]: New function.
19820 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19821 (svg_load_image): Use them.
19822 (svg_load_image) [HAVE_NTGUI]: Implement background.
19823
19824 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19825
19826 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19827 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19828 (LIBX): Remove @RSVG_LIBS@.
19829 (LIBES): Add $(RSVG_LIBS).
19830
19831 * image.c (svg_load_image): Blend with specified background if exists.
19832 Use IMAGE_BACKGROUND. Add Mac OS Support.
19833
19834 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19835 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19836 Remove macros.
19837 [MAC_OSX] (socket_callback): Do nothing.
19838 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19839 ReceiveNextEvent.
19840 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19841 socket_callback.
19842 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19843
19844 2007-08-22 Glenn Morris <rgm@gnu.org>
19845
19846 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19847
19848 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19849
19850 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19851
19852 * image.c: Add support for SVG images. Some additional comments
19853 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19854 (svg_image_p): New function to test for SVG image.
19855 (svg_load): New function to load SVG image.
19856 (svg_load_image): New function, helper for svg_load.
19857 (Qsvg): New Lisp_object.
19858 (svg_keyword_index): New enum.
19859 (svg_format): New static `image_keyword' struct.
19860 (svg_type): New static `image_type' struct.
19861 (librsvg/rsvg.h): Include it.
19862
19863 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19864
19865 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19866
19867 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19868
19869 * lread.c (Qold_style_backquotes): New var.
19870 (syms_of_lread): Init and staticpro it.
19871 (load_warn_old_style_backquotes): New fun.
19872 (Fload): Use them to warn about old style backquotes.
19873 (end_of_file_error, Fload): Remove unused vars.
19874
19875 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19876
19877 * lread.c (Vold_style_backquotes): New var.
19878 (syms_of_lread): Init and export it to Elisp.
19879 (read1): Set it when we find an old-style (back)quote.
19880
19881 2007-08-22 Jason Rumney <jasonr@gnu.org>
19882
19883 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19884
19885 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19886
19887 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19888
19889 2007-08-19 Richard Stallman <rms@gnu.org>
19890
19891 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19892
19893 2007-08-19 Andreas Schwab <schwab@suse.de>
19894
19895 * alloc.c (pure): Round PURESIZE up.
19896
19897 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19898
19899 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19900 active frame.
19901
19902 2007-08-16 Richard Stallman <rms@gnu.org>
19903
19904 * eval.c (Fcommandp): Add parens to clarify.
19905
19906 * minibuf.c (Fall_completions): Use enum for type of table.
19907
19908 * emacs.c (USAGE2): Improve text.
19909
19910 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19911
19912 * term.c (tty_default_color_capabilities): Declare static
19913 variables in file scope, to avoid HPUX compiler problem.
19914
19915 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19916
19917 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19918 to gtk_toolbar_insert.
19919
19920 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19921
19922 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19923
19924 * insdel.c (reset_var_on_error): New fun.
19925 (signal_before_change, signal_after_change):
19926 Use it to reset (after|before)-change-functions to nil in case of error.
19927 Bind inhibit-modification-hooks to t.
19928 Don't bind (after|before)-change-functions to nil while they run.
19929
19930 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19931
19932 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19933 filling pixmap with stippled background.
19934
19935 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19936
19937 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19938 Don't use invisible frame as parent window for repositioning.
19939
19940 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19941
19942 * print.c (new_backquote_output): Rename from old_backquote_output.
19943 (print): Inverse its logic (according to its name) so as to match the
19944 behavior of new_backquote_flag in lread.c.
19945
19946 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19947
19948 * gmalloc.c (posix_memalign): New function.
19949
19950 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19951 ActivateControl/DeactivateControl here.
19952 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19953 frame-notice-user-settings is non-nil.
19954 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19955 for kEventParamFMFontStyle.
19956 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19957 mac_pass_command_to_system and mac_pass_control_to_system here.
19958 (XTread_socket): Call ActivateControl/DeactivateControl here.
19959 (XTread_socket) [TARGET_API_MAC_CARBON]:
19960 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19961 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19962 for window repositioning.
19963
19964 2007-08-08 Glenn Morris <rgm@gnu.org>
19965
19966 * Replace `iff' in doc-strings and comments.
19967
19968 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
19969
19970 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19971
19972 2007-08-07 Martin Rudalics <rudalics@gmx.at>
19973
19974 * fileio.c (Finsert_file_contents): Run format-decode and
19975 after_insert_file_functions on entire buffer when REPLACE is
19976 non-nil and inhibit modification_hooks and point_motion_hooks.
19977 For consistency, run after_insert_file_functions iff something
19978 got inserted. Move signal_after_change and update_compositions
19979 after code running after_insert_file_functions. Make sure that
19980 undo_list doesn't record intermediate steps of the decoding process.
19981
19982 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19983
19984 * emacs.c (main)
19985 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19986 Call malloc_enable_thread on interactive startup.
19987
19988 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19989 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19990 [USE_PTHREAD]: Conditionalize with it.
19991 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19992 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19993 New functions.
19994
19995 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
19996
19997 * xdisp.c (redisplay_window): When restoring original buffer
19998 position, make sure it is still valid.
19999
20000 * image.c (png_load): Ignore png-supplied background color.
20001
20002 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20003
20004 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20005 Use kCFAbsoluteTimeIntervalSince1970.
20006
20007 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20008 New variable.
20009 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20010 event loop should be quit.
20011 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20012 Quit dialog event loop if quit_dialog_event_loop is set.
20013
20014 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20015 (Selection): New typedef. Use instead of ScrapRef.
20016 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20017 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20018 (mac_clear_selection): Rename from clear_scrap.
20019 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20020 scrap_has_target_type. All uses changed.
20021 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20022 (mac_selection_has_target_p): New functions.
20023 (mac_put_selection_value): Rename from put_scrap_string.
20024 (mac_get_selection_value): Rename from get_scrap_string.
20025 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20026 (put_scrap_private_timestamp, scrap_has_target_type)
20027 (get_scrap_private_timestamp): Remove functions.
20028 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20029 (x_own_selection, x_get_local_selection):
20030 Use mac_valid_selection_value_p.
20031 (x_own_selection): Don't use put_scrap_private_timestamp.
20032 Record OWNERSHIP-INFO into Vselection_alist instead.
20033 (x_get_local_selection): Don't check type if request is local.
20034 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20035 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20036
20037 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20038
20039 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20040 add comment explaining why.
20041
20042 2007-08-03 Richard Stallman <rms@gnu.org>
20043
20044 * fileio.c (Fvisited_file_modtime): Use make_time.
20045
20046 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20047
20048 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20049 build.
20050
20051 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20052
20053 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20054
20055 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20056
20057 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20058
20059 2007-07-30 Richard Stallman <rms@gnu.org>
20060
20061 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20062
20063 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20064
20065 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20066
20067 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
20068
20069 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20070 remote default-directory.
20071
20072 * buffer.c (mode-line-format): Update doc string.
20073
20074 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20075
20076 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20077 scroll bar gap.
20078 (x_scroll_bar_create): Set bar->fringe_extended_p.
20079 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20080 on frame edge. Check fringe background extension. Don't clear
20081 extended fringe background area.
20082
20083 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20084 (w32_fill_area): Enclose multiple statements with do ... while (0).
20085
20086 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20087 Extend fringe background to scroll bar gap.
20088 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20089 Set bar->fringe_extended_p.
20090 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20091 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20092 background extension. Don't clear extended fringe background area.
20093
20094 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20095 New member fringe_extended_p.
20096
20097 2007-07-25 Glenn Morris <rgm@gnu.org>
20098
20099 * Relicense all FSF files to GPLv3 or later.
20100
20101 * COPYING: Switch to GPLv3.
20102
20103 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20104
20105 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20106
20107 * data.c (Finteractive_form): Check for the presence of an
20108 `interactive-form' symbol property more thoroughly.
20109
20110 * data.c (Finteractive_form): Use an `interactive-form' property if
20111 present, analogous to the function-documentation property.
20112
20113 2007-07-24 Jason Rumney <jasonr@gnu.org>
20114
20115 * w32fns.c (x_real_positions): Get real position from OS instead of
20116 calculating it.
20117
20118 2007-07-23 Jason Rumney <jasonr@gnu.org>
20119
20120 * filelock.c (current_lock_owner): Allow for @ sign in username.
20121
20122 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
20123
20124 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20125 remote default-directory.
20126
20127 * buffer.c (mode-line-format): Describe above case in doc string.
20128
20129 2007-07-20 Eli Zaretskii <eliz@gnu.org>
20130
20131 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20132 Define if not defined.
20133
20134 2007-07-18 Jason Rumney <jasonr@gnu.org>
20135
20136 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20137
20138 2007-07-18 Richard Stallman <rms@gnu.org>
20139
20140 * data.c (Fsetq_default): Doc fix.
20141
20142 * eval.c (Fsetq): Doc fix.
20143
20144 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
20145
20146 * coding.c (Ffind_operation_coding_system):
20147 * eval.c (For, Fand): Doc fixes.
20148 Reported by Johan Bockgård.
20149
20150 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20151
20152 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20153
20154 * xterm.h: Declare x_ewmh_activate_frame.
20155
20156 * xterm.c (x_ewmh_activate_frame): New function.
20157 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20158
20159 2007-07-17 Martin Rudalics <rudalics@gmx.at>
20160
20161 * window.c (Fdisplay_buffer): If largest or LRU window is the
20162 only window, split it even if it is not eligible for splitting.
20163 This restores the original behavior broken by the 2007-07-15
20164 change.
20165
20166 2007-07-17 Glenn Morris <rgm@gnu.org>
20167
20168 * abbrev.c (abbrev_check_chars): New function.
20169 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20170 Call abbrev_check_chars to check abbrev characters are word
20171 constituents. Doc fix.
20172
20173 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20174
20175 * process.c (Fstart_process, Fmake_network_process)
20176 (read_process_output): Fix up last changes.
20177
20178 2007-07-16 Eli Zaretskii <eliz@gnu.org>
20179
20180 * makefile.w32-in (clean): Don't delete *~.
20181
20182 2007-07-16 Andreas Schwab <schwab@suse.de>
20183
20184 * window.c (Fdisplay_buffer): Use NILP.
20185 (Fset_window_scroll_bars): Likewise.
20186
20187 2007-07-15 Martin Rudalics <rudalics@gmx.at>
20188
20189 * window.c (window_min_size_2): New function.
20190 (window_min_size_1, size_window, Fdisplay_buffer)
20191 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20192 windows without mode- or header-lines when window-min-height is
20193 too small.
20194 (size_window): Reset nodelete_p after testing it, following an
20195 earlier note by Kim F. Storm.
20196 (display_buffer): Do not set split_height_threshold to twice the
20197 value of window_min_height to avoid changing the value of a
20198 customizable variable. Rather explicitly check whether the
20199 height of the window that shall be splitted is at least as large
20200 as split_height_threshold.
20201 (Fwindow_full_width_p): New defun.
20202 (syms_of_window): Defsubr it.
20203
20204 * window.h: Add EXFUN for Fwindow_full_width_p.
20205
20206 2007-07-14 Jason Rumney <jasonr@gnu.org>
20207
20208 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20209
20210 2007-07-14 Richard Stallman <rms@gnu.org>
20211
20212 * eval.c (maybe_call_debugger): New function.
20213 (find_handler_clause): Use maybe_call_debugger.
20214 Call it when the handler says `debug'.
20215 Eliminate DEBUGGER_VALUE_PTR.
20216 (Fsignal): Eliminate debugger_value.
20217 (Qdebug): New variable.
20218 (syms_of_eval): Initialize it.
20219
20220 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
20221
20222 * eval.c (Fprogn):
20223 * keyboard.c (Ftrack_mouse):
20224 * print.c (Fwith_output_to_temp_buffer):
20225 * window.c (Fsave_window_excursion): Doc fix.
20226
20227 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20228
20229 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20230
20231 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20232
20233 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20234 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20235 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20236 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20237 Remove unused encoding_carryover.
20238 * process.c: Adjust all functions accordingly.
20239
20240 2007-07-12 Richard Stallman <rms@gnu.org>
20241
20242 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20243
20244 2007-07-11 Jason Rumney <jasonr@gnu.org>
20245
20246 * makefile.w32-in (LIBS): Include OLE32.
20247
20248 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20249 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20250
20251 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20252
20253 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20254 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20255 from a Lisp_Object into a bare pointer.
20256 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20257 Adjust the code correspondingly.
20258
20259 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20260
20261 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20262 (term_show_mouse_face): Remove unused var `j'.
20263 (handle_one_term_event): Remove unused vars `i' and `j'.
20264 Don't cast return value of ttyname since it's not necessary.
20265
20266 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20267
20268 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20269 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20270
20271 * fns.c (map_char_table): Use an array of int for `indices' rather than
20272 an array of Lisp_Objects (which are only ever integers anyway).
20273 (Fmap_char_table): Update caller.
20274 * lisp.h: Update prototype.
20275 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20276 * fontset.c (Ffontset_info):
20277 * casetab.c (set_case_table): Update callers.
20278
20279 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20280
20281 * keymap.c (struct accessible_keymaps_data)
20282 (struct where_is_internal_data): New structures.
20283 (accessible_keymaps_1, where_is_internal_1): Use them to change
20284 interface to adhere to the one used by map_keymap.
20285 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20286 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20287
20288 * keymap.h (map_keymap_function_t): More informative prototype.
20289
20290 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20291
20292 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20293 (looking_at_1): Don't change search_regs and last_thing_searched
20294 if `inhibit-changing-match-data' is non-nil.
20295 (string_match_1, search_buffer, set_search_regs): Likewise.
20296 (syms_of_search): Add Lisp level definition for
20297 `inhibit-changing-match-data' and set it to nil.
20298 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20299 start and end of the match, instead of using values in search_regs.
20300
20301 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20302
20303 * minibuf.c (Fcompleting_read): New value `confirm-only'
20304 for `require-match'.
20305
20306 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20307
20308 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20309 part of the 2007-06-27 change to syms_of_fileio.
20310
20311 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20312
20313 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20314 Check WINDOWP before using XWINDOW. Consolidate return statements.
20315
20316 2007-06-27 Richard Stallman <rms@gnu.org>
20317
20318 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20319
20320 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
20321
20322 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20323
20324 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20325
20326 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20327 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20328 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20329 (_free_internal, memalign): Use them.
20330 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20331 Initialize to PTHREAD_MUTEX_INITIALIZER.
20332 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20333 (morecore_nolock): Rename from morecore. All uses changed.
20334 Use only nolock versions of internal allocation functions.
20335 (_malloc_internal_nolock, _realloc_internal_nolock)
20336 (_free_internal_nolock): New functions created from
20337 _malloc_internal, _realloc_internal, and _free_internal.
20338 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20339 Copy hook value to automatic variable before its use.
20340 (memalign): Copy hook value to automatic variable before its use.
20341
20342 2007-06-26 Kenichi Handa <handa@m17n.org>
20343
20344 * coding.c (Ffind_operation_coding_system): Docstring improved.
20345 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20346
20347 2007-06-25 David Kastrup <dak@gnu.org>
20348
20349 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20350 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20351 cater for additional parameter.
20352
20353 * keymap.h: Adjust number of parameters to `current-active-maps'.
20354
20355 * doc.c (Fsubstitute_command_keys): Adjust call of
20356 `current-active-maps'.
20357
20358 2007-06-25 David Kastrup <dak@gnu.org>
20359
20360 * callint.c (Fcall_interactively): Make the parsing of interactive
20361 specs somewhat more readable.
20362
20363 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20364
20365 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20366 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20367 if extended background has already been filled.
20368
20369 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20370
20371 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20372 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20373
20374 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20375 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20376 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20377 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20378 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20379 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20380 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20381 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20382 Run timers during dialog popup.
20383 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20384
20385 2007-06-21 Jason Rumney <jasonr@gnu.org>
20386
20387 * image.c (convert_mono_to_color_image): Swap fore and background.
20388
20389 2007-06-20 Jason Rumney <jasonr@gnu.org>
20390
20391 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20392 (w32_free_bdf_font): Unmap memory not handle.
20393
20394 2007-06-20 Sam Steingold <sds@gnu.org>
20395
20396 * gmalloc.c (__morecore): Fix the declaration to comply with the
20397 definition.
20398
20399 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
20400
20401 * w32term.c (w32_delete_display): Remove leftover declaration.
20402 (w32_define_cursor, w32_initialize): Make static.
20403
20404 * w32.c (_wsa_errlist): Fix typo in error message.
20405 (init_environment): Ignore any environment variable from the
20406 registry having a null value.
20407
20408 2007-06-20 Glenn Morris <rgm@gnu.org>
20409
20410 * Makefile.in (LIBGIF): Default to -lgif.
20411
20412 2007-06-17 Jason Rumney <jasonr@gnu.org>
20413
20414 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20415 unicode strings.
20416
20417 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
20418
20419 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20420 Fix typo in docstring.
20421
20422 2007-06-16 Eli Zaretskii <eliz@gnu.org>
20423
20424 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20425 and their keybindings.
20426
20427 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
20428
20429 * composite.c (update_compositions): Fix last fix.
20430
20431 2007-06-14 Jason Rumney <jasonr@gnu.org>
20432
20433 * w32.c (get_process_times_fn): New function pointer.
20434 (globals_of_w32): Intialize it if present in kernel32.dll.
20435 (w32_get_internal_run_time): New function.
20436
20437 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20438
20439 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20440
20441 * composite.c (update_compositions): Check the validness of
20442 compositions.
20443
20444 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20445
20446 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20447 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20448
20449 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20450 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20451
20452 * macgui.h (USE_MAC_TOOLBAR): New define.
20453
20454 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20455 Return immediately unless popup is activated.
20456
20457 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20458 background to scroll bar gap.
20459 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20460 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20461 scroll bars on frame edge. Check fringe background extension.
20462 Don't clear extended fringe background area.
20463 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20464 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20465 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20466 [USE_MAC_TOOLBAR]: New macros.
20467 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20468 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20469 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20470 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20471 [USE_MAC_TOOLBAR]: New functions.
20472 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20473 manually if previous repositioning has failed.
20474 (mac_handle_keyboard_event): Use precomputed event kind.
20475 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20476 as tool bar item click. Handle mouse movement over tool bar items.
20477
20478 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20479 toolbar_win_gravity.
20480 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20481 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20482 Add externs.
20483
20484 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20485 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20486
20487 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
20488
20489 * image.c (search_image_cache): Remove unused variable.
20490
20491 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
20492
20493 * xfns.c, xmenu.c: Link to xaw3d if available.
20494
20495 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20496
20497 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20498 frame_foreground and frame_background.
20499
20500 * image.c (lookup_image): Save frame foreground and background colors.
20501 (search_image_cache): Check if saved and current frame colors match.
20502
20503 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20504
20505 * regex.c (regex_compile): Remove the `regnum' counter.
20506 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20507
20508 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20509
20510 * term.c: Include intervals.h to declare Fget_text_property.
20511
20512 2007-06-10 Jason Rumney <jasonr@gnu.org>
20513
20514 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20515
20516 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
20517
20518 * callint.c (Fcall_interactively):
20519 * editfns.c (Fdelete_and_extract_region):
20520 * fileio.c (Fread_file_name):
20521 * fns.c (Fmapconcat):
20522 * keyboard.c (cmd_error_internal):
20523 * keymap.c (Fkey_description):
20524 * lread.c (openp):
20525 * minibuf.c (read_minibuf):
20526 * search.c (wordify):
20527 * sunfns.c (sel_read):
20528 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20529 * xfns.c (x_default_scroll_bar_color_parameter):
20530 * xmenu.c (menu_help_callback):
20531 * xselect.c (Fx_get_atom_name):
20532 * xterm.c (x_term_init): Use empty_unibyte_string.
20533
20534 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20535
20536 * alloc.c (init_strings): Initialize canonical empty strings.
20537 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20538 canonical empty string when the requested size is 0.
20539
20540 * emacs.c (empty_unibyte_string): Rename from empty_string.
20541 (empty_multibyte_string): New canonical empty string.
20542 (syms_of_emacs): Don't initialize empty_string.
20543
20544 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20545 string, if appropriate.
20546 (empty_unibyte_string, empty_multibyte_string): New externs.
20547 (empty_string): Remove extern.
20548
20549 * lread.c (syms_of_lread): Use empty_unibyte_string.
20550
20551 2007-06-07 Jason Rumney <jasonr@gnu.org>
20552
20553 * s/ms-w32.h: Don't define HAVE_TZNAME.
20554
20555 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20556
20557 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20558
20559 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20560
20561 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20562 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20563
20564 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20565 Don't call next handler.
20566 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20567 Remove argument. Install handler to application.
20568 (set_frame_menubar): Don't change deep_p.
20569 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20570 FRAME_OUTER_TO_INNER_DIFF_Y.
20571 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20572 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20573 [HAVE_DIALOGS]: New macros.
20574 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20575 Use them.
20576 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20577
20578 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20579 init_service_handler. All callers changed. Return OSStatus value.
20580
20581 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20582 All callers changed so as not to call SetPortWindowPort.
20583 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20584 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20585 mac_draw_string_common.
20586 (mac_draw_image_string_qd): Likewise.
20587 (mac_draw_string_common): Use them. Add INLINE.
20588 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20589 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20590 GetGlobalMouse.
20591 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20592 and FRAME_OUTER_TO_INNER_DIFF_Y.
20593 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20594 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20595 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20596 repositioning window to mac_handle_window_event.
20597 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20598 saving window location to mac_handle_window_event
20599 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20600 (install_menu_target_item_handler): Remove argument in extern.
20601 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20602 Also accept command events.
20603 (do_keystroke): New function created from XTread_socket.
20604 (init_command_handler): Remove functions.
20605 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20606 and save window location by kEventWindowShowing and kEventWindowHiding
20607 handlers here. Don't call next handler for window state change and
20608 focus events.
20609 (mac_handle_application_event, mac_handle_keyboard_event)
20610 [TARGET_API_MAC_CARBON]: New functions.
20611 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20612 kEventWindowShowing and kEventWindowHiding events. Move installation
20613 of mouse, font, text input and menu target item handlers to
20614 install_application_handler.
20615 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20616 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20617 New function.
20618 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20619 Register it.
20620 (XTread_socket) [TARGET_API_MAC_CARBON]:
20621 Consolidate SendEventToEventTarget calls.
20622 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20623 Move application activation handler to mac_handle_application_event.
20624 Move keyboard handler to mac_handle_keyboard_event.
20625 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20626 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20627 init_command_handler. Call install_application_handler.
20628
20629 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20630 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20631
20632 2007-06-07 Glenn Morris <rgm@gnu.org>
20633
20634 * emacs.c (main): Use `emacs-copyright' in --version output.
20635
20636 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
20637
20638 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20639
20640 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20641
20642 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20643
20644 * macgui.h: Replace WindowPtr with WindowRef.
20645
20646 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20647 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20648 Replace ControlHandle with ControlRef.
20649 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20650
20651 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20652 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20653 Replace ControlHandle with ControlRef.
20654 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20655 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20656
20657 * macterm.h (struct scroll_bar): Rename member control_handle_low
20658 and control_handle_high to control_ref_low and control_ref_high.
20659 All uses changed.
20660 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20661 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20662 respectively. All uses changed.
20663 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20664 (install_window_handler, remove_window_handler): Replace WindowPtr
20665 with WindowRef in externs.
20666
20667 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
20668
20669 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20670
20671 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
20672
20673 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20674
20675 * frame.c (Fmouse_position, Fmouse_pixel_position):
20676 Condition on HAVE_GPM too.
20677
20678 * term.c (term_mouse_highlight): Remove unused variables.
20679 (Fterm_open_connection): Set gpm_zerobased to 1.
20680 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20681 Use zero based co-ordinates.
20682 (handle_one_term_event): Report a drag as mouse movement too.
20683
20684 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20685
20686 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
20687
20688 * image.c (search_image_cache): New function. Require background
20689 color match if background color is unspecified in the image spec.
20690 (uncache_image, lookup_image): Use it.
20691
20692 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
20693
20694 * window.c (Fshrink_window): Reflow docstring.
20695
20696 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
20697
20698 * Version 22.1 released.
20699
20700 2007-06-01 Richard Stallman <rms@gnu.org>
20701
20702 * xfns.c (x_encode_text): Add GCPRO.
20703
20704 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20705
20706 * xfns.c (x_set_name_internal): Save encoded name before
20707 x_encode_text in case string data is relocated.
20708
20709 2007-05-31 Richard Stallman <rms@gnu.org>
20710
20711 * buffer.c (syms_of_buffer): Doc fix.
20712
20713 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
20714
20715 * sysdep.c (init_sys_modes): Add rather than replace with
20716 O_NONBLOCK.
20717
20718 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20719 term_mouse_moveto.
20720
20721 * termhooks.h (term_mouse_moveto): New extern.
20722
20723 * term.c (mouse_face_window): Rename...
20724 (Qmouse_face_window): ...to this.
20725 (term_show_mouse_face, term_clear_mouse_face)
20726 (term_mouse_highlight): Use Qmouse_face_window.
20727 (term_mouse_moveto): New function.
20728 (term_mouse_position): Make it work.
20729 (syms_of_term): Uncomment assignment to mouse_position_hook.
20730 Staticpro Qmouse_face_window.
20731
20732 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20733
20734 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20735 around current_column call.
20736
20737 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20738
20739 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20740 * xdisp.c (next_element_from_buffer):
20741 * window.c (delete_window):
20742 * term.c (term_mouse_highlight):
20743 * msdos.c (getdefdir):
20744 * macterm.c (mac_create_bitmap_from_bitmap_data)
20745 (init_font_name_table):
20746 * fns.c (Fsxhash):
20747 * data.c (Fmake_local_variable):
20748 * ccl.c (ccl_driver): Likewise.
20749
20750 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20751
20752 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20753 Call mac_wakeup_from_rne on window size change.
20754
20755 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
20756
20757 * image.c (uncache_image): Fix typo.
20758
20759 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20760
20761 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20762
20763 2007-05-22 Richard Stallman <rms@gnu.org>
20764
20765 * xterm.c (x_connection_closed): Remove NO_RETURN.
20766
20767 2007-05-22 Martin Rudalics <rudalics@gmx.at>
20768
20769 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20770
20771 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
20772
20773 * image.c (uncache_image): New function.
20774 (Fimage_refresh): New function.
20775
20776 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20777
20778 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20779
20780 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20781
20782 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20783 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20784
20785 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20786
20787 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20788 conditional on [HAVE_GPM_H].
20789
20790 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20791
20792 * syntax.c (skip_chars): Update syntax-table only after we checked that
20793 the new location is valid.
20794
20795 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20796
20797 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20798 mac_get_window_bounds.
20799
20800 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20801
20802 * Makefile.in (LIBGPM): Allow it to be set from configure.
20803 If set then link Emacs with it.
20804
20805 * config.in: Regenerate.
20806
20807 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20808 New externs.
20809
20810 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20811 Include gpm.h.
20812 (handle_one_term_event, term_gpm): New externs.
20813
20814 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20815 and allow it to be interrupted by SIGIO.
20816
20817 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20818 (wait_reading_process_output): Wait on gpm_fd too.
20819 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20820 (add_gpm_wait_descriptor_called_flag): New variable.
20821 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20822
20823 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20824 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20825 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20826 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20827 (make_lispy_event): Add case GPM_CLICK_EVENT.
20828 (read_avail_input): Handle mouse input.
20829
20830 * term.c (write_glyphs_with_face): New function.
20831 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20832 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20833 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20834 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20835 (last_mouse_x, last_mouse_y): New variables.
20836 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20837 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20838 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20839 (Fterm_close_connection): New functions.
20840 (term_init): Initialise mouse_face_window.
20841
20842 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
20843
20844 * xdisp.c (redisplay_window): If first window line is a
20845 continuation line, recompute the new window start instead of
20846 recentering.
20847
20848 2007-05-18 Glenn Morris <rgm@gnu.org>
20849
20850 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20851 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20852
20853 2007-05-17 Glenn Morris <rgm@gnu.org>
20854
20855 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20856
20857 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20858
20859 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20860 dead key repeat and up events.
20861
20862 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
20863
20864 * image.c (pbm_load): Check image size for monochrome pbm.
20865
20866 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
20867
20868 * xterm.c (XTread_socket): Revert last change.
20869
20870 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
20871
20872 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20873
20874 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20875
20876 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20877
20878 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20879 mixup (YAILOM).
20880
20881 2007-05-07 Andreas Schwab <schwab@suse.de>
20882
20883 * keymap.c (Flookup_key): Fix typo in last change.
20884
20885 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20886
20887 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20888 mapping for unibyte strings.
20889
20890 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20891
20892 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20893 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20894
20895 2007-04-29 Richard Stallman <rms@gnu.org>
20896
20897 * insdel.c (replace_range): For undo, record insertion first.
20898
20899 2007-04-29 Andreas Schwab <schwab@suse.de>
20900
20901 * lisp.h (VECSIZE): Use OFFSETOF.
20902
20903 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20904
20905 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20906 disabled lines.
20907
20908 2007-04-28 Richard Stallman <rms@gnu.org>
20909
20910 * lread.c (read_escape): In a string, \s is always space.
20911
20912 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20913
20914 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20915
20916 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20917 submenu for menu bar items.
20918
20919 See ChangeLog.10 for earlier changes.
20920
20921 ;; Local Variables:
20922 ;; coding: utf-8
20923 ;; add-log-time-zone-rule: t
20924 ;; End:
20925
20926 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
20927
20928 This file is part of GNU Emacs.
20929
20930 GNU Emacs is free software: you can redistribute it and/or modify
20931 it under the terms of the GNU General Public License as published by
20932 the Free Software Foundation, either version 3 of the License, or
20933 (at your option) any later version.
20934
20935 GNU Emacs is distributed in the hope that it will be useful,
20936 but WITHOUT ANY WARRANTY; without even the implied warranty of
20937 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20938 GNU General Public License for more details.
20939
20940 You should have received a copy of the GNU General Public License
20941 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20942
20943 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40