Use a select wrapper around the GLib event loop, thus taking into account GLib
[bpt/emacs.git] / src / ChangeLog
1 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xterm.c: #include xgselect.h.
4 (x_initialize): Call xgselect_initialize.
5
6 * xsettings.c (something_changedCB): C++ comments => C comments.
7 (init_gconf): Do not deal with any GLib file descriptors, xg_select
8 does that now.
9
10 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
12 (scroll_bar_button_cb): Remove.
13 (create_menus): C++ comments => C comments. Don't bind grab-notify
14 event.
15 (xg_create_scroll_bar): Don't bind button-press-event and
16 button-release-event.
17
18 * process.c: Include xgselect.h if defined (USE_GTK) ||
19 defined (HAVE_GCONF).
20 (wait_reading_process_output): Call xg_select for the same condition.
21
22 * xgselect.c (xg_select): New function to better integrate with
23 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
24
25 * xgselect.h: New file, declare xg_select, xgselect_initialize.
26
27 * Makefile.in (XOBJ): Add xgselect.o.
28
29 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
30
31 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
32 ignored second argument. All callers changed.
33 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
34 (RE_STRING_CHAR_AND_LENGTH): Likewise.
35 * xdisp.c (string_char_and_length): Likewise.
36
37 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
38
39 * xterm.c (x_new_font):
40 * print.c (print_object):
41 * cmds.c (Fself_insert_command): Move declarations before statements.
42
43 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
44
45 * s/cygwin.h: Remove unneeded linker flags.
46
47 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
48
49 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
50
51 * xsettings.h: Declare xsettings_get_system_font.
52
53 * xsettings.c (xsettings_get_system_font): New function.
54 (init_gconf): No use initiating gconf unless we have Xft also.
55 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
56 HAVE_GCONF.
57
58 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
59 add a blank entry so it doesn't collapse into nothing.
60
61 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
62
63 * lread.c (Funintern): Comment out last change.
64
65 2009-11-19 Richard Stallman <rms@gnu.org>
66
67 * lread.c (Funintern): Error if symbol is t or nil.
68
69 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
70
71 * insdel.c (make_gap_larger): Don't make as many assumptions about the
72 representation of Lisp integers.
73 Reported by MJ Chan <mjchan.inbox@gmail.com>.
74
75 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
76
77 * lisp.h: Remove declaration of Ffont_get_system_font.
78 * xfns.c: Move include of "xsettings.h".
79 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
80
81 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
82
83 * xsettings.c (something_changedCB, Ffont_get_system_font):
84 Check use_system_font.
85 (syms_of_xsettings): DEFVAR font-use-system-font.
86
87 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
88
89 * xfns.c (x_default_font_parameter): Remove dead assignment.
90
91 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
92
93 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
94
95 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
96 not have FC_LCD_*. #define them if not there.
97
98 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
99
100 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
101
102 * xterm.c (handle_one_xevent): Call xft_settings_event for
103 ClientMessage, PropertyNotify and DestroyNotify.
104 (x_term_init): If we have XFT, get DPI from Xft.dpi.
105 Call xsettings_initialize.
106
107 * xftfont.c (xftfont_fix_match): New function.
108 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
109 Call xftfont_fix_match after XftFontMatch.
110
111 * xfont.c (xfont_driver): Initialize all members.
112
113 * xfns.c (x_default_font_parameter):
114 Try font from Ffont_get_system_font.
115 Do not get font from x_default_parameter if we got one from
116 Ffont_get_system_font.
117 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
118
119 * w32font.c (w32font_driver): Initialize all members.
120
121 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
122
123 * lisp.h: Declare syms_of_xsettings.
124
125 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
126 Handle CONFIG_CHANGED_EVENT.
127
128 * ftfont.c (ftfont_filter_properties): New function.
129
130 * frame.c (x_set_font): Remove unused variable lval.
131
132 * font.h (struct font_driver): Add filter_properties.
133
134 * font.c (font_put_extra): Don't return if val is nil, it means
135 boolean option is off.
136 (font_parse_fcname): Collect all extra properties in extra_props
137 and call filter_properties for all drivers with extra_props and
138 font as parameter.
139 (font_open_entity): Do not use cache, it does not pick up new
140 fontconfig settings like hinting.
141 (font_load_for_lface): If spec had a name in it, store it in entity.
142
143 * emacs.c (main): Call syms_of_xsettings
144
145 * config.in: HAVE_GCONF is new.
146
147 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
148 xsettings.o is new.
149
150 2009-11-17 Kenichi Handa <handa@m17n.org>
151
152 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
153 back to the default font in case that no suitable font is found.
154
155 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
156
157 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
158 Suggested by Chad Brown <yandros@mit.edu>.
159 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
160
161 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
162
163 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
164
165 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
166
167 * Makefile.in: Ignore errors from mkdir when creating deps directory.
168
169 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
170
171 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
172 has a parent.
173
174 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
175 dependency files in deps/. Include those files into Makefile.
176
177 * config.in: Generated (AUTO_DEPEND).
178
179 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
180
181 * dbusbind.c (Vdbus_registered_objects_table): Rename from
182 Vdbus_registered_functions_table, because it contains also
183 properties. Fix docstring.
184 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
185
186 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
187
188 * alloc.c (mark_object): Don't reprocess marked strings.
189 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
190 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
191
192 2009-11-13 Kenichi Handa <handa@m17n.org>
193
194 * category.c (word_boundary_p): Adjust for the change of the
195 semantics of Vword_combining_categories.
196 (Vword_combining_categories): Describe the slight change of the
197 semantics.
198
199 2009-11-13 Eli Zaretskii <eliz@gnu.org>
200
201 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
202
203 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
204
205 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
206
207 * xdisp.c (syms_of_xdisp): Fix typo in last change.
208
209 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
210
211 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
212
213 2009-11-11 David Reitter <david.reitter@gmail.com>
214
215 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
216 variables to fix 2009-11-09 change.
217
218 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
219
220 * process.c (ifflag_def): Make flag_sym constant.
221 (Fnetwork_interface_info): Use a constant pointer.
222 (ifflag_table):
223 * xfns.c (cursor_bits):
224 * xdisp.c (power_letter):
225 * termcap.c (speeds, esctab):
226 * sysdep.c (baud_convert):
227 * keyboard.c (lispy_accent_codes, modifier_names):
228 * image.c (xbm_format, xpm_format, pbm_format, png_format)
229 (jpeg_format, tiff_format, gif_format, svg_format)
230 (interlace_start, interlace_increment, gs_format):
231 * gtkutil.c (separator_names):
232 * fringe.c (swap_nibble):
233 * fns.c (base64_value_to_char, base64_char_to_value):
234 * fileio.c (make_temp_name_tbl):
235 * coding.c (suffixes): Make constant.
236
237 * frame.c (make_initial_frame):
238 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
239 build_string.
240 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
241
242 * s/freebsd.h:
243 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
244
245 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
246 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
247
248 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
249 * xterm.c (syms_of_xterm):
250 * xfaces.c (syms_of_xfaces):
251 * xdisp.c (syms_of_xdisp):
252 * lread.c (syms_of_lread):
253 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
254 build_string.
255
256 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
257
258 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
259
260 * fns.c (Fplist_get): Merge the active and the commented out code.
261
262 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
263
264 * keyboard.h: Declare timer_check.
265
266 * keyboard.c (timer_check_2): New function that does what the old
267 timer_check did.
268 (timer_check): Call timer_check_2 until -1 or a non-zero time is
269 returned, i.e. don't return -1 with timers pending.
270
271 * process.c: Remove extern declaration of timer_check.
272
273 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
274 even if timer_check returned -1.
275
276 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
277 xg_dialog_data.
278 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
279 the event loop.
280 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
281 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
282 Destroy the dialog after xg_dialog_run.
283
284 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
285
286 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
287
288 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
289
290 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
291
292 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
293
294 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
295
296 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
297
298 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
299 w32menu.c, and nsmenu.m.
300 Simplify the obsolete case where position is nil.
301 (cleanup_popup_menu): New function, moved from nsmenu.m.
302 (struct skp): Remove slot `notreal'.
303 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
304 adjust callers.
305 (single_menu_item): Adjust call to parse_menu_item.
306 (syms_of_menu): Defsubr x-popup-menu.
307 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
308 (keymap_panes): Don't export any more.
309 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
310 (xmenu_show): Declare.
311 * keyboard.c (parse_menu_item): Remove arg `notreal'.
312 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
313 * keyboard.h (parse_menu_item): Update declaration.
314 * xmenu.c (Fx_popup_menu): Remove.
315 (syms_of_xmenu): Don't defsubr x-popup-menu.
316 * w32menu.c (Fx_popup_menu): Remove.
317 (syms_of_w32menu): Don't defsubr x-popup-menu.
318 * nsmenu.m (cleanup_popup_menu): Remove.
319 (ns_menu_show): Rename from ns_popup_menu and remove all the code
320 moved to menu.c's Fx_popup_menu.
321 (Fx_popup_menu): Remove.
322 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
323 menu_items (it's done in menu.c already).
324
325 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
326
327 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
328 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
329
330 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
331
332 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
333 xmenu_show. Hide any tooltip before opening a menu.
334 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
335 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
336
337 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
338
339 Let integers use up 2 tags to give them one extra bit and thus double
340 their range.
341 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
342 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
343 New macros.
344 (enum Lisp_Type): Use them. Give explicit values.
345 (Lisp_Type_Limit): Remove.
346 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
347 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
348 Pay attention to USE_2_TAGS_FOR_INTS.
349 (INTEGERP): Use LISP_INT_TAG_P.
350 * fns.c (internal_equal): Simplify the default case.
351 (sxhash): Use case_Lisp_Int.
352 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
353 any more.
354 (Ftype_of): Use case_Lisp_Int.
355 (store_symval_forwarding): Take into account the fact that Ints can
356 now have more than one tag.
357 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
358 buffer_slot_type_mismatch):
359 * xfaces.c (face_attr_equal_p):
360 * print.c (print_object):
361 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
362 Use case_Lisp_Int.
363
364 2009-11-06 Eli Zaretskii <eliz@gnu.org>
365
366 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
367
368 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
369 warning.
370
371 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
372
373 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
374
375 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
376
377 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
378 ButtonPressRelease and MotionNotify (bug#4870).
379
380 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
381
382 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
383
384 * xterm.c (syms_of_xterm):
385 * xselect.c (syms_of_xselect):
386 * xmenu.c (syms_of_xmenu):
387 * xfns.c (syms_of_xfns):
388 * xfaces.c (syms_of_xfaces):
389 * xdisp.c (syms_of_xdisp):
390 * window.c (syms_of_window):
391 * w32fns.c (syms_of_w32fns):
392 * undo.c (syms_of_undo):
393 * textprop.c (syms_of_textprop):
394 * terminal.c (syms_of_terminal):
395 * syntax.c (syms_of_syntax):
396 * sound.c (syms_of_sound):
397 * search.c (syms_of_search):
398 * print.c (syms_of_print):
399 * minibuf.c (syms_of_minibuf):
400 * macros.c (syms_of_macros):
401 * keymap.c (syms_of_keymap, initial_define_key)
402 (initial_define_lispy_key):
403 * keyboard.c (syms_of_keyboard):
404 * insdel.c (syms_of_insdel):
405 * image.c (syms_of_image):
406 * fringe.c (syms_of_fringe):
407 * frame.c (syms_of_frame):
408 * fontset.c (syms_of_fontset):
409 * fns.c (syms_of_fns):
410 * fns.c (syms_of_fns):
411 * fileio.c (syms_of_fileio):
412 * fileio.c (syms_of_fileio):
413 * eval.c (syms_of_eval):
414 * doc.c (syms_of_doc):
415 * dispnew.c (syms_of_display):
416 * dired.c (syms_of_dired):
417 * dbusbind.c (syms_of_dbusbind):
418 * data.c (syms_of_data):
419 * composite.c (syms_of_composite):
420 * coding.c (syms_of_coding):
421 * cmds.c (syms_of_cmds):
422 * charset.c (define_charset_internal, syms_of_character):
423 * ccl.c (syms_of_ccl):
424 * category.c (syms_of_category, init_category_once):
425 * casetab.c (syms_of_casetab):
426 * casefiddle.c (syms_of_casefiddle):
427 * callint.c (syms_of_callint):
428 * bytecode.c (syms_of_bytecode):
429 * buffer.c (keys_of_buffer, syms_of_buffer):
430 * alloc.c (syms_of_alloc):
431 * process.c (syms_of_process, init_process):
432 * lread.c (syms_of_lread, init_obarray):
433 * font.c (build_style_table):
434 * emacs.c (syms_of_emacs, main): Replace calls to intern with
435 intern_c_string, calls to make_pure_string with
436 make_pure_c_string. Use pure_cons instead of Fcons.
437
438 * process.c (socket_options): Make it const.
439 (set_socket_option, init_process): Use a const pointer.
440
441 * lread.c (intern_c_string): New function.
442 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
443 (defvar_int): Uset it. Make the name const char*.
444
445 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
446 (defvar_int): Update prototypes.
447 (DEFUN, EXFUN): Support for prototypes is now required.
448 (intern_c_string): New prototype.
449 (struct Lisp_Subr): Make symbol_name constant.
450
451 * font.c (struct table_entry): Remove unused member. Make NAMES
452 constant.
453 (weight_table, slant_table, width_table): Make constant.
454
455 * emacs.c (struct standard_args): Make name and longname constant.
456
457 * character.h (DEFSYM): Use intern_c_string.
458
459 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
460
461 * alloc.c (make_pure_c_string): New function.
462
463 * eval.c (Fautoload): Purecopy all arguments.
464
465 2009-11-05 Kenichi Handa <handa@m17n.org>
466
467 * fileio.c (Finsert_file_contents): Be sure set coding-system of
468 the buffer in case of replace.
469
470 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
471
472 * puresize.h (BASE_PURESIZE): Increase to 1620000.
473
474 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
475
476 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
477 when applicable (bug#4851).
478
479 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
480 (P_): Support for prototypes is now required.
481
482 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
483
484 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
485 (Bug#4827).
486
487 2009-10-30 Eli Zaretskii <eliz@gnu.org>
488
489 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
490
491 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
492
493 * puresize.h (BASE_PURESIZE): Increase to 1470000.
494
495 * lread.c (Fload): Purecopy the file name when building
496 Vpreloaded_file_list.
497
498 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
499
500 * w32fns.c (syms_of_w32fns): Change default value of
501 w32-scroll-lock-modifier to nil. (Bug#2827)
502
503 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
504
505 * minibuf.c (Fall_completions): Fix typos in docstring.
506
507 2009-10-26 Andreas Schwab <schwab@redhat.com>
508
509 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
510
511 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
512
513 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
514 For delta < 0, skip check that only makes sense when the mini-window
515 is going to be enlarged. (Bug#4534)
516
517 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
518
519 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
520 string in menu maps (Bug#4471).
521
522 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
523
524 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
525 FRAME_NS_VIEW on terminal frames (Bug#4765).
526
527 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
528
529 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
530 DBUS_TYPE_UINTnn separately to get proper sign extension.
531
532 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
533 can properly handle unsigned types.
534 (make_uid, make_gid): Remove.
535
536 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
537 types again.
538
539 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
540 (system_process_attributes): Likewise.
541
542 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
543
544 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
545
546 * eval.c (Fautoload): Purecopy the filename. Simplify.
547
548 * category.c (Fdefine_category): Purecopy docstring.
549
550 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
551
552 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
553
554 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
555
556 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
557
558 * window.c (Fwindow_edges, Fwindow_pixel_edges)
559 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
560 (Bug#4775).
561
562 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
563
564 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
565 (init_fileio_once):
566 * lisp.h (init_fileio_once): Remove.
567 * emacs.c (main): Don't call init_fileio_once.
568
569 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
570
571 * puresize.h (BASE_PURESIZE): Increase to 1430000.
572
573 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
574
575 * doprnt.c (doprnt): Fix overflow check.
576
577 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
578
579 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
580
581 * xterm.h (x_wait_for_event): Declare it.
582
583 * xterm.c (pending_event_wait): New variable.
584 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
585 see pending_event_wait.eventtype.
586 (handle_one_xevent): Don't change gravity when parent changes.
587 (x_new_font): Call change_frame_size with new rows/columns before we
588 try to resize the frame.
589 (x_wait_for_event): New function.
590 (x_set_window_size_1): Don't change gravity unless change_gravity
591 is set.
592 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
593 don't change frame size, instead wait for the ConfigureNotify.
594 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
595 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
596 (x_initialize): Initialize pending_event_wait.
597
598 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
599 size.
600
601 * widget.c (EmacsFrameSetValues): Add comment.
602 (EmacsFrameSetCharSize): Just call x_set_window_size.
603
604 * gtkutil.c (xg_frame_set_char_size): Flush events and call
605 x_wait_for_event.
606 (flush_and_sync): Remove again.
607 (xg_get_font_name): Suggest monospace if no previous font is known.
608
609 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
610
611 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
612 8th bit, since that only made sense in the ASCII world (bug#4751).
613
614 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
615
616 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
617 processing pending events when event is filtered for input method.
618 (Bug#3681)
619
620 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
621
622 * fns.c: Add #endif accidentally removed in previous change.
623
624 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
625
626 * fns.c: Remove code for unsupported system: MAC_OS.
627 * image.c: Likewise. Include setjmp.h.
628
629 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
630
631 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
632 pixel -1 (bug #4742).
633
634 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
635
636 * process.c (create_pty): Remove conditionals for no longer
637 supported systems: UNIPLUS and RTU.
638
639 * xterm.c:
640 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
641
642 * alloc.c: Do not define struct catchtag.
643 * eval.c: Move struct catchtag definition ...
644 * lisp.h: ... here.
645
646 * image.c: Move png.h #include earlier to avoid warnings.
647
648 * xterm.c:
649 * xsmfns.c:
650 * xselect.c:
651 * xrdb.c:
652 * xmenu.c:
653 * xftfont.c:
654 * xfont.c:
655 * xfns.c:
656 * xfaces.c:
657 * xdisp.c:
658 * window.c:
659 * widget.c:
660 * w32xfns.c:
661 * w32uniscribe.c:
662 * w32term.c:
663 * w32select.c:
664 * w32reg.c:
665 * w32proc.c:
666 * w32menu.c:
667 * w32inevt.c:
668 * w32heap.c:
669 * w32font.c:
670 * w32fns.c:
671 * w32console.c:
672 * w32.c:
673 * w16select.c:
674 * vm-limit.c:
675 * unexsol.c:
676 * unexec.c:
677 * unexcw.c:
678 * unexaix.c:
679 * undo.c:
680 * tparam.c:
681 * textprop.c:
682 * terminfo.c:
683 * terminal.c:
684 * termcap.c:
685 * term.c:
686 * syntax.c:
687 * sound.c:
688 * sheap.c:
689 * search.c:
690 * scroll.c:
691 * region-cache.c:
692 * regex.c:
693 * ralloc.c:
694 * process.c:
695 * print.c:
696 * nsterm.m:
697 * nsselect.m:
698 * nsmenu.m:
699 * nsimage.m:
700 * nsfont.m:
701 * nsfns.m:
702 * msdos.c:
703 * minibuf.c:
704 * menu.c:
705 * marker.c:
706 * macros.c:
707 * keymap.c:
708 * keyboard.c:
709 * intervals.c:
710 * insdel.c:
711 * indent.c:
712 * gtkutil.c:
713 * ftxfont.c:
714 * ftfont.c:
715 * fringe.c:
716 * frame.c:
717 * fontset.c:
718 * font.c:
719 * fns.c:
720 * floatfns.c:
721 * filelock.c:
722 * fileio.c:
723 * emacs.c:
724 * editfns.c:
725 * dosfns.c:
726 * doprnt.c:
727 * doc.c:
728 * dispnew.c:
729 * dired.c:
730 * dbusbind.c:
731 * data.c:
732 * composite.c:
733 * coding.c:
734 * cmds.c:
735 * cm.c:
736 * chartab.c:
737 * charset.c:
738 * character.c:
739 * ccl.c:
740 * category.c:
741 * casetab.c:
742 * casefiddle.c:
743 * callproc.c:
744 * callint.c:
745 * bytecode.c:
746 * buffer.c:
747 * atimer.c: Include setjmp.h. (Bug#4643)
748
749 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
750
751 Remove leftover table unibyte_to_multibyte_table.
752 * character.c (unibyte_to_multibyte_table): Remove.
753 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
754 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
755 * character.h (UNIBYTE_TO_CHAR): New macro.
756 (MAKE_CHAR_MULTIBYTE): Use it.
757 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
758 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
759 (message_dolog, set_message_1):
760 * search.c (Freplace_match):
761 * editfns.c (Fcompare_buffer_substrings):
762 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
763 (concat):
764 * insdel.c (copy_text, count_size_as_multibyte):
765 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
766 * term.c (produce_glyphs):
767 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
768 * regex.c (RE_CHAR_TO_MULTIBYTE):
769 * cmds.c (internal_self_insert):
770 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
771
772 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
773
774 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
775
776 * puresize.h (BASE_PURESIZE): Increase to 1310000.
777
778 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
779
780 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
781
782 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
783
784 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
785 still needed under Tiger.
786
787 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
788
789 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
790 __Apple__.
791
792 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
793
794 2009-10-15 Kenichi Handa <handa@m17n.org>
795
796 * print.c (print_object): Escape a symbol like "2E10" too.
797
798 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
799
800 Cleanups and changes for 64-bit compile under Snow Leopard.
801 Based on suggestions by Erik Charlebois.
802
803 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
804
805 * nsfont.m (ns_char_width): Replace deprecated call.
806 (ns_findfonts, nsfont_list_family): Use long format in printf, and
807 cast argument.
808 (nsfont_open): Use ns_char_width() everywhere.
809 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
810
811 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
812
813 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
814 where appropriate.
815
816 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
817 where appropriate.
818 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
819 Use stringWithUTF8String.
820 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
821
822 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
823 Add formal protocol mention to inheritance.
824 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
825
826 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
827 Fix printf format.
828 (ns_query_color): Use CGFloat where appropriate.
829 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
830 (EmacsScroller-mouseDown:) Use long format in printf, and cast
831 argument.
832
833 * config.in (NS_HAVE_NSINTEGER): Drop.
834
835 * dbusbind.c (dbus-method-return-internal)
836 (dbus-method-error-internal): Use long format in printf, and cast
837 argument.
838
839 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
840 in printf, and cast argument.
841
842 * process.c (list_processes_1): Use long format in printf, and
843 cast argument.
844
845 2009-10-11 Glenn Morris <rgm@gnu.org>
846
847 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
848
849 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
850
851 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
852 menu bar with a small width so it doesn't enlarge the frame.
853
854 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
855
856 * fontset.c (Fset_fontset_font): Fix typos in error messages.
857
858 2009-10-06 Glenn Morris <rgm@gnu.org>
859
860 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
861 SOME_MACHINE_LISP (this enters indirectly via DOC).
862
863 2009-10-05 Eli Zaretskii <eliz@gnu.org>
864
865 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
866
867 2009-10-04 Eli Zaretskii <eliz@gnu.org>
868
869 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
870 Doc fix.
871
872 2009-10-03 Martin Rudalics <rudalics@gmx.at>
873
874 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
875
876 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
877
878 * lisp.h (Qdelete_directory_internal): Remove, because it is not
879 used anymore outside fileio.c.
880
881 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
882
883 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
884
885 * lisp.h (Qdelete_directory_internal):
886 Declare, instead of Qdelete_directory.
887
888 * w32fns.c (Fsystem_move_file_to_trash): Use it.
889
890 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
891
892 * eval.c (Fcalled_interactively_p): Add `kind' argument.
893
894 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
895
896 * fileio.c (Fdelete_directory_internal): Rename from
897 Fdelete_directory. It is not a command anymore. It has no file
898 name handler.
899
900 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
901
902 * xdisp.c (get_next_display_element): Use an enum in last change.
903
904 2009-09-28 Kenichi Handa <handa@m17n.org>
905
906 * xdisp.c (get_next_display_element): Pay attention to
907 unibyte_display_via_language_environment in handling
908 Vnobreak_char_display.
909
910 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
911
912 * nsterm.h (ns_app_name): New extern variable.
913
914 * nsterm.m (ns_app_name): New variable.
915 (ns_term_init): Set and use it.
916 (ns_term_shutdown): Use it.
917
918 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
919 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
920
921 * nsfns.m (ns_set_name_iconic, ns_set_name)
922 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
923 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
924
925 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
926 Remove double-casting in client_data comparison.
927
928 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
929
930 * keyboard.c (make_lispy_event): Remember last wheel direction.
931 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
932
933 2009-09-26 Glenn Morris <rgm@gnu.org>
934
935 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
936 internal.elc. Add term/pc-win.elc.
937 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
938 term/x-win.elc.
939 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
940 term/w32-win.elc.
941 (NS_SUPPORT): New.
942 (lisp): Add NS_SUPPORT.
943 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
944
945 2009-09-25 David Reitter <david.reitter@gmail.com>
946
947 * nsmenu.m (EmacsMenu-clear): Recognize application menu
948 on Mac OS X 10.6+ (bug#4513).
949
950 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
951
952 * frame.c (xrdb_get_resource): Return nil for empty string resources;
953 some parts of Emacs code (like font selection) don't grok them.
954 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
955
956 2009-09-24 Andreas Schwab <schwab@redhat.com>
957
958 * coding.c (decode_coding_iso_2022): Fix operator precedence.
959
960 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
961
962 * dired.c (Fdirectory_files): Fix typo in docstring.
963
964 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
965
966 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
967 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
968 (EmacsScroller-setPosition:portion:whole:): Remove -display call
969 under GNUstep.
970 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
971
972 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
973 glyph advancement.
974
975 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
976
977 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
978 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
979
980 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
981 deleted (bug #4492).
982
983 * nsfont.m (Vns_reg_to_script): New lisp variable.
984 (syms_of_nsfont): Declare it.
985 (ns_registry_to_script): New function.
986 (ns_get_req_script): Call it.
987 (ns_findfonts): Don't give up on non-unicode registry.
988
989 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
990
991 2009-09-20 Tom Tromey <tromey@redhat.com>
992
993 * eval.c (find_handler_clause): Make stack-trace-on-error work in
994 batch mode (bug#4228).
995
996 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
997
998 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
999 carefully. (Bug #4339)
1000
1001 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
1002
1003 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
1004
1005 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1006
1007 * emacs.c (inhibit_x_resources): Update doc string for NS.
1008 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
1009 legacy code for -NXHost. Fix error printf in daemon case.
1010
1011 * nsterm.h (ns_no_defaults): Remove.
1012
1013 * nsterm.m (ns_no_defaults): Remove.
1014 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1015 (ns_use_qd_smoothing): Remove legacy variable.
1016 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1017 don't update the NSWindow itself.
1018 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
1019 state detection and store user rect ourselves. (Bug #3581)
1020
1021 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1022 ns_use_qd_smoothing.
1023
1024 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1025 platform versions. Drop support for emacs-20-style face specs.
1026 (x-close-connection): Drop PSFlush() under OS X.
1027 (x-focus-frame): Activate the app first. (Bug #4180)
1028
1029 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
1030
1031 * emacs.c (inhibit_x_resources): New variable.
1032 (main) [HAVE_NS]: Don't process --quick command line option.
1033 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1034
1035 * lisp.h (inhibit_x_resources): Declare it extern.
1036
1037 * w32reg.c (x_get_string_resource):
1038 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1039
1040 2009-09-17 Eli Zaretskii <eliz@gnu.org>
1041
1042 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1043 Add lisp/term/internal.elc.
1044
1045 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1046
1047 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1048 (bug#4461).
1049
1050 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1051
1052 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1053
1054 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1055 (OBJECTS_MACHINE): Remove, unused.
1056
1057 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1058
1059 * frame.c (x_get_resource_string): Remove unused.
1060
1061 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1062
1063 * xterm.c (x_new_font): Call change_frame_size before calling
1064 x_set_window_size, in case frame size won't change.
1065
1066 * frame.c (x_set_font): Remove dead code.
1067
1068 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1069
1070 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1071
1072 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1073
1074 * lread.c (Fload): Don't output a message after loading an obsolete
1075 package any more (done in Lisp now).
1076
1077 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
1078
1079 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1080
1081 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1082
1083 * keymap.c (Fwhere_is_internal): Use nconc2.
1084
1085 2009-09-11 Alan Mackenzie <acm@muc.de>
1086
1087 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1088 batch mode.
1089
1090 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1091
1092 * xdisp.c (display_mode_element): Detect cycles.
1093
1094 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1095
1096 * keymap.c (where_is_internal): Don't erroneously return nil right after
1097 filling the cache.
1098 (where_is_internal_1): Fix up typo.
1099
1100 2009-09-11 Glenn Morris <rgm@gnu.org>
1101
1102 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1103 share a common doc-string.
1104
1105 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1106
1107 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1108 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1109
1110 * keymap.c (QCadvertised_binding): New constant.
1111 (syms_of_keymap): Initialize it.
1112 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1113 if applicable.
1114
1115 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1116
1117 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1118 (parse_menu_item): Streamline since bindings are recomputed all the
1119 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1120 more and don't support lmenu's menu-alias any more either.
1121
1122 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1123 (where_is_internal): Strip it down to only traverse the keymaps.
1124 Move the cache handling from Fwhere_is_internal to here.
1125 (Fwhere_is_internal): Move the handling of remapping and the choice of
1126 the best binding from where_is_internal to here.
1127 Unify the cached/noncached paths, so remapping is also handled
1128 correctly when the cache is used, and so the cache can be used to
1129 speed up remap-handling when applicable.
1130 Give preference to non-remapped bindings.
1131 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1132 non-remapped bindings.
1133 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1134 command remapping.
1135
1136 * xdisp.c (display_mode_element): Move list length limit from 50 to
1137 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1138
1139 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
1140
1141 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1142
1143 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1144
1145 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1146 (Bug#4334)
1147
1148 * keymap.c (where_is_internal): Filter out shadowed remappings.
1149 Assume that where_is_internal returns unshadowed bindings to simplify
1150 the code and get rid of the gotos. Use ASIZE.
1151
1152 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1153
1154 * xterm.c (x_focus_changed): If we get a focusout and pointer
1155 is invisible, make it visible.
1156
1157 * xterm.h: Remove condition for declaration of
1158 x_*_window_to_frame.
1159
1160 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1161
1162 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1163 initial terminal as well.
1164
1165 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1166
1167 * xterm.h: Rename x_non_menubar_window_to_frame to
1168 x_menubar_window_to_frame.
1169
1170 * xterm.c: Remove declarations also in xterm.h
1171 (XTmouse_position): Do not return valid positions
1172 for clicks in the menubar and the toolbar for Gtk+.
1173
1174 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1175 if the widget for the event has the same top level as a frame,
1176 return the frame.
1177 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1178 internal windows, bug #4122.
1179 (x_non_menubar_window_to_frame): Remove.
1180
1181 2009-09-02 Glenn Morris <rgm@gnu.org>
1182
1183 * buffer.c (default-major-mode): Move most of the doc from here...
1184 (major-mode): ... to here.
1185
1186 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
1187
1188 * process.c (wait_reading_process_output): Keep the descriptor
1189 when pty is used by a non-child process, e.g., in I/O buffer of
1190 GDB this allows inferior to be restarted.
1191
1192 2009-08-29 Eli Zaretskii <eliz@gnu.org>
1193
1194 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1195 both branches into one.
1196
1197 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1198
1199 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1200 (main): Use enable-multibyte-characters rather than
1201 default-enable-multibyte-characters. Output a warning message when
1202 running a unibyte session.
1203
1204 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1205
1206 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1207 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1208 (copy_data_segment): Also copy __program_vars section.
1209 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1210 (dump_it) [LC_DYLD_INFO]: Use it.
1211
1212 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1213
1214 2009-08-28 Eli Zaretskii <eliz@gnu.org>
1215
1216 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1217 $(SRC)/buildobj.h.
1218 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1219 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1220 $(SRC)/buildobj.h.
1221 (clean): Add buildobj.h.
1222
1223 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1224
1225 * print.c (print_object): Set escapeflag to 1 when printing
1226 hashtable keys and values.
1227
1228 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1229
1230 * lread.c (read_integer): Use doubles (and potentially return a float
1231 number) as we do in string-to-number.
1232 (read1): Use strtol to read integers, signal errors on strtol's
1233 overflow and use floats if strtol's output is too large for
1234 Elisp integers.
1235
1236 2009-08-27 Eli Zaretskii <eliz@gnu.org>
1237
1238 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1239 (make-buildobj-SH): Fix last change.
1240 (SRC): Move to before where it's first used.
1241
1242 2009-08-27 Kenichi Handa <handa@m17n.org>
1243
1244 * process.c (send_process): Use encode_coding_object instead of
1245 encode_coding_string to perform eol-conversion even if the string
1246 is unibyte.
1247
1248 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1249 character.
1250
1251 * cmds.c (Fself_insert_command): Avoid unnecessay
1252 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
1253
1254 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1255
1256 * callproc.c (Fcall_process): Remove always true #if.
1257
1258 * lisp.h: Replace #if 0 code for checking with text pointing to
1259 the --enable-checking configure flag.
1260
1261 * emacs.c (main): Mention the --enable-profiling configure flag
1262 instead of using CFLAGS.
1263
1264 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
1265
1266 * Makefile.in (buildobj.h): New target.
1267 (doc.o): Depend on it.
1268 (temacs${EXEEXT}): Don't generate buildobj.lst.
1269 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1270 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1271 ($(BLD)/doc.$(O)): Depend on it.
1272 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1273 provided by Eli Zaretskii.)
1274 ($(TEMACS)): Don't generate buildobj.lst.
1275 * doc.c: Include buildobj.h.
1276 (buildobj): New static variable.
1277 (Fsnarf_documentation): Use it, instead of opening and reading
1278 buildobj.lst.
1279
1280 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
1281
1282 * dbusbind.c (Fdbus_call_method)
1283 (Fdbus_call_method_asynchronously): Use English numeric format for
1284 timeout values in doc string.
1285
1286 2009-08-25 Kenichi Handa <handa@m17n.org>
1287
1288 * alloc.c (mark_char_table): New function.
1289 (mark_object): Use mark_char_table for a char-table.
1290
1291 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1292 (CHAR_TABLE_REF): Use it.
1293
1294 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
1295
1296 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1297 before invoking the newly build emacs to check for load-path
1298 shadowing.
1299
1300 2009-08-22 Glenn Morris <rgm@gnu.org>
1301
1302 * Makefile.in (bootstrap_exe): New variable.
1303 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1304 Use ${bootstrap_exe}.
1305
1306 2009-08-22 Eli Zaretskii <eliz@gnu.org>
1307
1308 * coding.h (encode_coding_string): Don't encode unibyte strings.
1309 (Bug#4047)
1310
1311 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
1312
1313 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1314
1315 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1316 intended as hotfix only.
1317 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1318
1319 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1320
1321 * nsterm.m (ns_get_color): Update documentation properly for last
1322 change, and clean up loose ends in the code left by it. Fix
1323 longstanding bug with 16-bit hex parsing, and add support for
1324 yet another X11 format (rgb:r/g/b) for compatibility.
1325 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1326 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1327
1328 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1329
1330 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1331
1332 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
1333
1334 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1335 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1336 (xd_initialize, xd_pending_messages): Check, whether
1337 $DBUS_SESSION_BUS_ADDRESS is set.
1338
1339 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1340
1341 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1342
1343 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1344
1345 2009-08-20 Glenn Morris <rgm@gnu.org>
1346
1347 * emacs.c (system-type): Doc fix.
1348
1349 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1350
1351 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1352 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1353
1354 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
1355
1356 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1357 New functions.
1358 (xd_initialize): Revert change from 2009-08-16.
1359
1360 2009-08-18 Kenichi Handa <handa@m17n.org>
1361
1362 * fontset.c (Ffontset_font): If a nil element is found in a
1363 font-group vector, return nil.
1364
1365 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
1366
1367 * process.c (status_notify): Don't perform redisplay.
1368 (Fdelete_process, list_processes_1, process_send_signal):
1369 Expliticly perform redisplay.
1370 (wait_reading_process_output): Always check process status, but
1371 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1372
1373 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
1374
1375 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
1376 (XFLOAT_INIT): New macro for storing a float value.
1377 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1378 * fns.c (sxhash): Copy out the value of a float in order to
1379 examine its bytes.
1380 * dbusbind.c (xd_append_arg): Likewise.
1381
1382 * emacs.c (main): Don't call syms_of_data twice.
1383
1384 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
1385
1386 * dbusbind.c (xd_initialize): Add connection file descriptor to
1387 input_wait_mask, in order to let select() detect, whether a new
1388 message has been arrived.
1389 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
1390
1391 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
1392
1393 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1394 New functions.
1395
1396 * lisp.h (xd_pending_messages): Declare.
1397
1398 * keyboard.c (readable_events): Call xd_pending_messages.
1399
1400 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
1401
1402 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
1403
1404 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1405
1406 * buffer.c (set_buffer_internal_1)
1407 (swap_out_buffer_local_variables): Check for unbound local
1408 variables (Bug#4138).
1409
1410 2009-08-14 Eli Zaretskii <eliz@gnu.org>
1411
1412 * process.c (create_pty): Fix last change.
1413
1414 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
1415
1416 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1417 (xbm_load_image): Caller changed.
1418 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
1419
1420 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
1421
1422 * process.c (create_pty): New function.
1423 (Fstart_process): Use it to allow Emacs to just associate a pty
1424 with the buffer. See associated change in gdb-mi.el.
1425 (list_processes_1): Deal with no program name.
1426 (start_process_unwind): Use pid == -2 to mean no process.
1427
1428 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1429
1430 * cmds.c (nonundocount): New global variable.
1431 (keys_of_cmds): Initialize it.
1432 (Fself_insert_command): Use it to combine upto 20 sequential chars
1433 into a single undo entry, just like the Qself_insert_command code in
1434 keyboard.c does.
1435 Call frame_make_pointer_invisible, also like the Qself_insert_command
1436 code in keyboard.c does.
1437 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1438 than its own local replacement for it.
1439
1440 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
1441
1442 * fns.c (concat): Don't re-set string length to its current value.
1443
1444 * coding.h (decode_coding_string, encode_coding_string):
1445 Use SBYTES macro.
1446
1447 * doprnt.c (doprnt_lisp): Delete unused function.
1448 (doprnt): Merge with doprnt1, discarding lispstrings code.
1449 * lisp.h (doprnt_lisp): Don't declare.
1450
1451 2009-08-07 Juri Linkov <juri@jurta.org>
1452
1453 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1454
1455 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1456
1457 * print.c (syms_of_print): Undo previous change.
1458
1459 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1460
1461 * lread.c (read1, syms_of_lread): Read hashtables back from the
1462 readable format.
1463
1464 * print.c (print_preprocess, print_object): Print hashtables fully
1465 and readably.
1466 (syms_of_print): Provide 'hashtable-print-readable.
1467
1468 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1469
1470 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1471 no family set.
1472 (nsfont_open): Handle case when entity has no family.
1473
1474 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1475
1476 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1477 element, not a list, for match case.
1478
1479 2009-07-28 Kenichi Handa <handa@m17n.org>
1480
1481 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1482 rigidly.
1483
1484 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1485 font_parse_xlfd. Check font properties more rigidly.
1486
1487 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1488
1489 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1490 bsd-common.h.
1491
1492 2009-07-27 Kenichi Handa <handa@m17n.org>
1493
1494 * xfaces.c (face_with_height): Call font_clear_prop.
1495
1496 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
1497
1498 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1499
1500 * xterm.c (x_term_init): Use Qx.
1501
1502 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1503
1504 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
1505 (ns_get_color): Revert 2009-07-16 change.
1506
1507 2009-07-25 Eli Zaretskii <eliz@gnu.org>
1508
1509 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1510 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
1511
1512 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
1513
1514 * coding.h (decode_coding_string, encode_coding_string):
1515 Use SCHARS macro.
1516
1517 * lread.c: Rewrite 2009-07-21 changes.
1518 (load_depth): Delete.
1519 (Qload_in_progress): New variable.
1520 (load_unwind): Don't reference load_depth or load_in_progress.
1521 (Fload): Likewise; specbind Qload_in_progress instead.
1522 (init_lread): Don't initialize load_depth.
1523 (syms_of_lread): Initialize and protect Qload_in_progress.
1524
1525 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1526
1527 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1528
1529 2009-07-23 Yavor Doganov <yavor@gnu.org>
1530
1531 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1532
1533 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1534
1535 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
1536 Bugs 3792, 3720, 2402.
1537 (ns_lookup_indexed_color): Check for bad index.
1538 (ns_index_color): Init unused slot to 0.
1539 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1540 Bug 3714, possibly 3082.
1541
1542 2009-07-22 Jason Rumney <jasonr@gnu.org>
1543
1544 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1545 Position IME window at cursor (Bug#2570).
1546 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1547 (globals_of_w32fns): Dynamically load functions required above.
1548
1549 * w32term.c (w32_draw_window_cursor): Send message to reposition
1550 any IME window.
1551
1552 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1553
1554 * fileio.c: Revert 2009-07-16 changes.
1555 (Vauto_save_include_big_deletions): New variable.
1556 (Fdo_auto_save): Disable auto-save only if
1557 auto-save-include-big-deletions is nil.
1558
1559 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1560
1561 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1562 the overflowed pixels into account (Bug#3879).
1563
1564 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
1565
1566 * lread.c (load_depth): New variable.
1567 (Fload, load_unwind, init_lread): Set it to the load recursion
1568 depth; set load_in_progress as a simple boolean based on the
1569 current load_depth. (Bug#3892)
1570
1571 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1572
1573 * nsfont.m (ns_has_attribute): Remove.
1574 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1575
1576 2009-07-18 Juri Linkov <juri@jurta.org>
1577
1578 * process.c (Fset_process_query_on_exit_flag): Mention killing
1579 a buffer in docstring.
1580
1581 2009-07-17 Kenichi Handa <handa@m17n.org>
1582
1583 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1584
1585 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1586
1587 * nsfns.m (Fns_set_alpha): Remove function.
1588 (syms_of_nsfns): Don't defsubr it.
1589
1590 * nsterm.m (ns_get_color): Remove incompatible color formats.
1591 (ns_color_to_lisp): Generate #rrggbb color format string.
1592
1593 2009-07-16 Richard Stallman <rms@gnu.org>
1594
1595 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1596 (Fset_buffer_auto_saved): Handle save_length = -2.
1597
1598 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
1599
1600 * xterm.c (Qx_gtk_map_stock): New var.
1601
1602 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1603 of calling intern each time.
1604
1605 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1606
1607 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1608 does tiling.
1609
1610 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1611
1612 2009-07-14 Kenichi Handa <handa@m17n.org>
1613
1614 * font.c (font_vconcat_entity_vectors): New function.
1615 (struct font_sort_data): New member font_driver_preference.
1616 (font_compare): Check font_driver_preference.
1617 (font_sort_entities): The format of the first argument changed.
1618 (font_delete_unmatched): Likewise.
1619 (font_list_entities): The return type changed.
1620 (font_select_entity): The format of the second argument changed.
1621 (font_find_for_lface): Adjuste for the above changes.
1622 Don't suppress the checking of C even if the repertory supports it.
1623 (Flist_fonts): Adjust for the above changes.
1624
1625 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1626 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
1627 Reject a font who has adstyle property that is different from a
1628 langname derived from registry property.
1629 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
1630
1631 2009-07-13 Eli Zaretskii <eliz@gnu.org>
1632
1633 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1634 local copy of dirfilename.
1635
1636 2009-07-13 Kenichi Handa <handa@m17n.org>
1637
1638 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1639 against max_char.
1640
1641 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1642 calling XSYMBOL (sym).
1643
1644 2009-07-11 Eli Zaretskii <eliz@gnu.org>
1645
1646 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1647 New function.
1648 (directory_files_internal) [WINDOWSNT]:
1649 Bind w32-get-true-file-attributes to either t or nil, depending whether
1650 the filesystem of the directory is fast or slow.
1651
1652 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1653 file name.
1654 (is_slow_fs): New function.
1655 (stat): Use it to determine whether to issue more system calls to
1656 get accurate file attributes, when w32-get-true-file-attributes is
1657 `local'.
1658
1659 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1660
1661 * xfns.c (Fx_select_font): Remember last font selected in
1662 x_last_font_name and use that the next time. Also try the frame
1663 parameter font-parameter as default to the font dialog.
1664
1665 2009-07-10 Kenichi Handa <handa@m17n.org>
1666
1667 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1668
1669 2009-07-09 Eli Zaretskii <eliz@gnu.org>
1670
1671 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1672
1673 * w32.c (stat): Treat UNC file names as residing on remote
1674 drives. (Bug#3542)
1675
1676 2009-07-09 Kenichi Handa <handa@m17n.org>
1677
1678 * fontset.c (fontset_find_font): Fix previous change.
1679
1680 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
1681
1682 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1683 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1684 error flag.
1685
1686 2009-07-08 Kenichi Handa <handa@m17n.org>
1687
1688 * fontset.c (fontset_find_font): Fix the logic of handling
1689 charset_matched.
1690 (font_for_char): Delete unused var.
1691 (generate_ascii_font_name): Delete it.
1692
1693 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1694
1695 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1696 (encode_coding_sjis): Fix the code range check.
1697
1698 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
1699
1700 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1701 (Fexpand_file_name): Copy string data properly (Bug#3772).
1702
1703 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1704
1705 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1706 first MapNotify.
1707
1708 2009-07-07 Kenichi Handa <handa@m17n.org>
1709
1710 * character.h (unibyte_has_multibyte_table): Delete extern.
1711 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1712
1713 * charset.c (Fset_charset_priority): Update charset_unibyte.
1714 (syms_of_charset): Initialize charset_unibyte.
1715
1716 * character.c (unibyte_has_multibyte_table): Delete it.
1717 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1718 charset_unibyte.
1719 (multibyte_char_to_unibyte_safe): Likewise.
1720 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1721
1722 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
1723 (x_produce_glyphs): Likewise.
1724
1725 * .gdbinit (xcharset): Fix the treating $arg0.
1726
1727 2009-07-04 Eli Zaretskii <eliz@gnu.org>
1728
1729 Emulation of `getloadavg' on MS-Windows.
1730 * w32.c: Include float.h
1731 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1732 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1733 (get_native_system_info, get_system_times): New functions.
1734 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1735 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1736 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1737 g_b_init_get_system_times, and num_of_processors.
1738
1739 2009-07-03 Jason Rumney <jasonr@gnu.org>
1740
1741 * w32term.c (w32_initialize): Use standard types.
1742
1743 2009-07-03 Eli Zaretskii <eliz@gnu.org>
1744
1745 * dired.c (Ffile_attributes): Decode user and group names by the
1746 locale's encoding. (Bug#3443)
1747
1748 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1749
1750 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1751 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1752
1753 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1754
1755 * term.c (init_tty): Remove spurious #ifdef.
1756
1757 * m/mips.h: Mention this file is also used for netbsd.
1758 * m/pmax.h: Remove file.
1759
1760 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1761
1762 * xterm.h (struct x_display_info): Add invisible_cursor.
1763 (struct x_output): Add current_cursor.
1764
1765 * xterm.c (XTtoggle_invisible_pointer): New function.
1766 (x_define_frame_cursor): Don't define cursor if invisible or the
1767 same as before. Set current_cursor.
1768 (x_create_terminal): Set toggle_invisible_pointer_hook.
1769
1770 * xfns.c (make_invisible_cursor): New function.
1771 (x_set_mouse_color): Call make_invisible_cursor.
1772 Set current_cursor.
1773 (x_window): Set current_cursor.
1774
1775 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1776
1777 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1778 inserting a character.
1779 (read_avail_input): Call frame_make_pointer_visible.
1780
1781 * frame.c (Vmake_pointer_invisible): New variable.
1782 (frame_make_pointer_invisible, frame_make_pointer_visible):
1783 New functions.
1784 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1785
1786 * frame.h: Declare frame_make_pointer_invisible and
1787 frame_make_pointer_visible.
1788 (struct frame): Add pointer_invisible.
1789
1790 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1791
1792 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1793 frame isn't visible.
1794 (xg_frame_resized): If width/height is -1, get size of window
1795 from X server.
1796
1797 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1798 for MapNotify.
1799
1800 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
1801 here or call change_frame_size. Just call flush_and_sync.
1802 (flush_and_sync): Reintroduce.
1803
1804 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
1805
1806 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
1807
1808 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1809 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1810
1811 * frame.h: Declare Qsticky.
1812
1813 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1814
1815 * nsfns.m (ns_frame_parm_handlers): Ditto.
1816
1817 * frame.c: Declare Qsticky.
1818 (frame_parms): Add sticky.
1819
1820 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1821
1822 * xterm.h: Declare x_set_sticky.
1823
1824 * xterm.c (x_set_sticky): New function.
1825
1826 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1827 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1828 xg_tool_bar_proxy_help_callback.
1829
1830 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1831
1832 * frame.c: Qmaximized is new.
1833 (x_set_frame_parameters): Do not handle fullscreen specially.
1834 Only set width and height if explicitly set.
1835 (x_set_fullscreen): Handle Qmaximized.
1836 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1837 (syms_of_frame): Initialize Qmaximized.
1838
1839 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1840 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
1841
1842 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
1843 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1844 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
1845 set gravity to NorthWestGravity when USE_GTK.
1846 (set_wm_state): New function.
1847 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
1848 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1849 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
1850 or the case when no window manager is running. That means remove calls
1851 to x_real_positions and x_fullscreen_adjust.
1852
1853 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1854 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1855 flush_and_sync.
1856 (xg_height_changed): New function.
1857 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1858 and gtk_window_set_policy. Set frame gravity after parsing the
1859 geometry string.
1860 (xg_update_frame_menubar, free_frame_menubar)
1861 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1862 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1863 Remove calls to xg_frame_set_char_size.
1864
1865 2009-07-01 Kenichi Handa <handa@m17n.org>
1866
1867 * keyboard.c (decode_keyboard_code): New function.
1868 (tty_read_avail_input): Decode the input bytes if necessary.
1869
1870 * coding.c (setup_coding_system):
1871 Initialize coding->carryover_bytes to 0.
1872 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1873 use Qno_conversion.
1874
1875 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1876
1877 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1878
1879 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
1880
1881 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
1882
1883 2009-06-30 Jason Rumney <jasonr@gnu.org>
1884
1885 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1886 is already loaded.
1887 Set user model ID if supported (bug#1849).
1888
1889 2009-06-29 Jim Meyering <meyering@redhat.com>
1890
1891 Remove useless if-before-xfree test.
1892 * nsfont.m (nsfont_close): Remove useless test.
1893 * term.c (delete_tty): Likewise.
1894 * w32.c (system_process_attributes): Likewise.
1895 * w32font.c (w32font_close): Likewise.
1896 * xfaces.c (x_free_gc): Likewise.
1897 * xselect.c (buffer): Likewise.
1898
1899 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1900
1901 * process.c (send_process): Keep decoded string in a local
1902 variable and protect it from GC. (Bug#3521)
1903
1904 2009-06-28 Eli Zaretskii <eliz@gnu.org>
1905
1906 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1907 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1908
1909 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
1910
1911 * xdisp.c (start_display, handle_face_prop)
1912 (move_it_vertically_backward, cursor_row_fully_visible_p)
1913 (redisplay_window, try_window_id, produce_image_glyph):
1914 Delete some #ifdef-ed out code chunks that are now obsolete.
1915
1916 * xterm.c (x_update_window_begin, x_new_focus_frame)
1917 (x_scroll_bar_handle_click, handle_one_xevent)
1918 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1919 (x_make_frame_visible, x_make_frame_invisible)
1920 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1921 code chunks that are now obsolete.
1922
1923 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
1924
1925 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1926 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1927 for hours, when optimzation is enabled.
1928 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1929 (xd_read_message): Make them static.
1930
1931 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1932
1933 * term.c (turn_on_face): Allow simultaneously bold and dim
1934 terminal faces (Bug#3530).
1935
1936 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
1937
1938 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1939
1940 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1941 truncation glyphs (Bug#3686).
1942
1943 2009-06-27 Glenn Morris <rgm@gnu.org>
1944
1945 * m/pmax.h: Restore file, with only netbsd portions.
1946
1947 2009-06-26 David Reitter <david.reitter@gmail.com>
1948
1949 * nsterm.m (keydown): Avoid infinite loop.
1950
1951 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1952
1953 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1954 the arg FORCE_SYMBOL.
1955
1956 2009-06-25 Kenichi Handa <handa@m17n.org>
1957
1958 * fontset.c (fontset_find_font): When a usable rfont_def is found
1959 in a fallback font-group, make it the first element of the group.
1960
1961 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
1962
1963 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1964
1965 2009-06-24 Kenichi Handa <handa@m17n.org>
1966
1967 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1968 set for C.
1969 (fontset_font): Record the availability of a font for C both in
1970 the realized fontsets of the current one and the default one.
1971
1972 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1973
1974 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1975 conditional, it is always defined on AIX.
1976
1977 2009-06-23 Miles Bader <miles@gnu.org>
1978
1979 * window.c (Vrecenter_redisplay): New variable.
1980 (syms_of_window): Initialize it.
1981 (Qtty): New extern declaration.
1982 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1983
1984 2009-06-23 Jim Meyering <meyering@redhat.com>
1985
1986 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1987 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
1988 pointer dereferences are guaranteed to be valid.
1989
1990 2009-06-23 Kenichi Handa <handa@m17n.org>
1991
1992 * emacs.c (main): Call init_font ().
1993
1994 * font.h (Vfont_log): Extern it.
1995 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1996
1997 * font.c (font_sort_entities, font_list_entities)
1998 (font_matching_entity, font_open_entity)
1999 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2000 (Vfont_log): Delete static.
2001 (font_log_env_checked): Delete this variable.
2002 (font_add_log): Don't check font_log_env_checked.
2003 (font_deferred_log): Check Vfont_log.
2004 (init_font): New function.
2005
2006 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2007
2008 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2009
2010 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2011
2012 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2013
2014 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2015 (face_for_char): Don't call font_deferred_log here.
2016 (font_for_char): Likewise.
2017
2018 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
2019
2020 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2021 rather than its background_width for drawing the overline and
2022 underline (Bug#489).
2023
2024 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2025 rather than its background_width for drawing the overline and
2026 underline (Bug#489).
2027 (xg_default_icon_file): New variable.
2028 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2029 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
2030
2031 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2032 (load_overlay_strings): Remove externs.
2033 (fast_find_position): Function deleted.
2034 (mouse_face_from_buffer_pos): New function, based on
2035 fast_find_position. Correctly handle before-strings,
2036 display-strings, and after-strings (Bug#1220).
2037 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2038
2039 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2040
2041 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
2042 (move_it_in_display_line_to, move_it_in_display_line_to)
2043 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2044
2045 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2046
2047 * Branch for 23.1.
2048
2049 2009-06-21 Jason Rumney <jasonr@gnu.org>
2050
2051 * w32term.c (keyboard_codepage): New static variable.
2052 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2053 (w32_read_socket) [WM_CHAR]: Use it to decode character
2054 input (bug#3237).
2055 (w32_initialize): Initialize it.
2056 (codepage_for_locale): New function.
2057
2058 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
2059
2060 * process.c (status_message): Pass Faset index argument as a lisp
2061 object, so as to work with USE_LISP_UNION_TYPE.
2062
2063 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2064
2065 * coding.c (Ffind_coding_systems_region_internal):
2066 Cache checked characters.
2067
2068 2009-06-18 Kenichi Handa <handa@m17n.org>
2069
2070 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
2071
2072 2009-06-18 Andreas Schwab <aschwab@redhat.com>
2073
2074 * xdisp.c (redisplay_internal): Check that the frame is still
2075 live after redisplay of its windows.
2076 (redisplay_windows): Check that the window is still live.
2077
2078 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2079
2080 * coding.c (detect_coding_utf_16): Fix previous change.
2081
2082 2009-06-16 Kenichi Handa <handa@m17n.org>
2083
2084 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2085 UTF-16 by checking the dispersion of Eth and Oth bytes.
2086
2087 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2088
2089 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2090
2091 2009-06-15 Kenichi Handa <handa@m17n.org>
2092
2093 * process.c (status_message): Fix previous change. Be sure to
2094 decode a localized string.
2095
2096 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2097
2098 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2099 add comment explaining why.
2100
2101 2009-06-14 Sidney Markowitz <sidney@sidney.com>
2102
2103 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
2104
2105 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2106
2107 * nsfont.m (ns_attribute_value): Remove.
2108 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2109 (ns_has_attribute): Shrink the normal range.
2110 (ns_findfonts): Don't worry about requested spec in determining
2111 need for synthItal.
2112 (ns_get_covering_families): Retain scriptToFamilies.
2113
2114 2009-06-14 Seiji Zenitani <zenitani@mac.com>
2115
2116 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2117
2118 2009-06-11 Kenichi Handa <handa@m17n.org>
2119
2120 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2121 overhang for the static composition case.
2122
2123 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2124
2125 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2126 overhang for the automatic composition case.
2127
2128 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2129 composition case.
2130
2131 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
2132
2133 * xdisp.c (get_next_display_element): When handling wrap-prefix
2134 and line-prefix, treat \n as a control character (bug#3502).
2135
2136 2009-06-10 Kenichi Handa <handa@m17n.org>
2137
2138 * font.c (font_parse_family_registry): Fix for one-char foundry.
2139 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2140
2141 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2142
2143 * process.c (status_message): Fix handling of multibyte signal
2144 string (Bug#3499).
2145
2146 2009-06-09 Jim Meyering <meyering@redhat.com>
2147
2148 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2149 color name is missing.
2150
2151 2009-06-09 Kenichi Handa <handa@m17n.org>
2152
2153 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2154 FROM-CODE and TO-CODE are codepoints of CHARSET.
2155
2156 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2157
2158 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2159
2160 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2161
2162 Changes to support :script/:lang/:otf in NS font driver.
2163 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2164 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2165 indicate not part of font driver interface, and change callers.
2166 (ns_get_family): Remove pointless null check.
2167 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2168 ns_spec_to_descriptor, ns_descriptor_to_entity.
2169 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2170 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2171 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2172 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2173 (ns_get_req_script, ns_accumulate_script_ranges)
2174 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2175 New functions.
2176 (nsfont_list, nsfont_match): Use ns_findfonts.
2177 (nsfont_open): Use font descriptor instead of traits.
2178 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2179 (dump_glyphstring): Rename to ns_dump_glyphstring.
2180
2181 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2182
2183 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2184
2185 * fontset.c (fontset_from_font): Remove NS-specific code.
2186
2187 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
2188
2189 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2190 nonactive windows.
2191
2192 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
2193
2194 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
2195
2196 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2197
2198 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2199
2200 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
2201
2202 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2203 account for the overflowing of newlines into the last glyph on the
2204 display line (Bug#3482).
2205
2206 2009-06-05 David Reitter <david.reitter@gmail.com>
2207
2208 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2209 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
2210 Fns_selection_exists_p, Fns_selection_owner_p.
2211
2212 2009-06-03 Jason Rumney <jasonr@gnu.org>
2213
2214 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2215 available. (Bug#3379)
2216
2217 2009-05-29 Kenichi Handa <handa@m17n.org>
2218
2219 * coding.c (get_translation_table):
2220 Check Venable_character_translation.
2221
2222 2009-05-26 David Reitter <david.reitter@gmail.com>
2223
2224 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2225 (x_make_frame_visible): Move frame to front rather than calling
2226 ns_raise_frame().
2227 (keyDown:): Do not swallow events that aren't re-sent if frame
2228 isn't key window.
2229 (drawRect:): Do not set visibility/iconified flags because
2230 drawRect may be called by NSView even if the frame is hidden.
2231
2232 * nsfns.m (Fx_create_frame): Follow other ports in
2233 determining visibility; default to t. Ensure async_visible is set.
2234
2235 2009-05-23 Eli Zaretskii <eliz@gnu.org>
2236
2237 * dired.c (Ffile_attributes): Doc fix.
2238
2239 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
2240
2241 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2242
2243 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2244
2245 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2246 and xfont_scratch_props.
2247 (syms_of_xfont): Do it here instead.
2248 (xfont_find_ccl_program): Delete, unused.
2249 (xfont_open): Delete unused var `i'.
2250
2251 2009-05-21 Kenichi Handa <handa@m17n.org>
2252
2253 * fontset.c (Qlatin): Don't make it static.
2254
2255 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2256 New functions.
2257 (xfont_scripts_cache, xfont_scratch_props): New variables.
2258 (Qlatin, Vscalable_fonts_allowed): Extern it.
2259 (xfont_list_pattern): Argument changed. Callers changed.
2260 Check Vscalable_fonts_allowed. Check the support of a script.
2261 (xfont_list): Don't reject a font spec with :script property.
2262 (xfont_has_char): Fix setting of encoding.
2263 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2264 xfont_scratch_props.
2265
2266 2009-05-19 Kenichi Handa <handa@m17n.org>
2267
2268 * font.c (font_sort_entities): Rename from font_sort_entites.
2269 Callers changed.
2270
2271 2009-05-18 Kenichi Handa <handa@m17n.org>
2272
2273 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2274
2275 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2276
2277 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2278 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2279
2280 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2281
2282 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2283 (x_delete_terminal): Dissociate resource database from display and
2284 then call XrmDestroyDatabase before closing display.
2285
2286 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2287
2288 * nsterm.m (ns_read_socket): Remove unused variable.
2289 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2290 whether selected frame is viable before raising it (based on patch
2291 by David Reitter), and improve commentary.
2292 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
2293
2294 2009-05-15 Kenichi Handa <handa@m17n.org>
2295
2296 * font.c (Ffont_spec): Check arguments.
2297
2298 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
2299
2300 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2301 weight when testing attributes (Bug#3282).
2302
2303 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2304
2305 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2306 what we expect to get in the next ConfigureNotify event.
2307
2308 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2309 before Xft one (Bug#1696).
2310
2311 2009-05-07 David Reitter <david.reitter@gmail.com>
2312
2313 * nsfns.m (Fx_display_planes): Compute bitplanes using
2314 NSBitsPerPixelFromDepth (Bug#3207).
2315
2316 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
2317
2318 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2319
2320 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
2321
2322 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2323
2324 2009-05-07 David Reitter <david.reitter@gmail.com>
2325
2326 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2327 Respect mouse face background.
2328
2329 2009-05-07 David Reitter <david.reitter@gmail.com>
2330
2331 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2332 Mouse movement/highlight: bracket drawing operations
2333 in ns_update_begin and ns_update_end.
2334
2335 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2336
2337 * nsfns.m (ns_get_screen): Rewrite.
2338 Don't presume selected-frame is of type `ns'.
2339
2340 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2341 all drivers.
2342
2343 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2344
2345 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2346
2347 * keyboard.h (add_user_signal): Fix typo in extern.
2348
2349 * lisp.h (add_user_signal): Remove extern.
2350
2351 * unexelf.c (unexec): Consider a section to precede the .bss section
2352 if its addresses overlap that of .bss.
2353 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2354 instead of dumping process.
2355
2356 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2357
2358 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2359
2360 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2361
2362 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2363
2364 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2365
2366 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2367 any statements.
2368
2369 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2370
2371 * process.c (read_process_output): Make sure the current buffer is
2372 always restored.
2373
2374 * coding.c (record_conversion_result): Don't modify
2375 Vlast_code_conversion_error for successful result.
2376 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2377
2378 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2379
2380 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
2381 (load_charset_map): Remove unnecessary code.
2382
2383 2009-04-30 David Reitter <david.reitter@gmail.com>
2384
2385 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
2386 through f24.
2387
2388 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
2389
2390 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2391
2392 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2393 face_at_buffer_position.
2394 (face_before_or_after_it_pos, get_next_display_element)
2395 (note_mouse_highlight): Update face_at_buffer_position call.
2396
2397 * term.c (term_mouse_highlight):
2398 * msdos.c (IT_note_mouse_highlight):
2399 * fontset.c (Finternal_char_font):
2400 * font.c (font_at, font_range): Update face_at_buffer_position call.
2401
2402 * dispextern.h (face_at_buffer_position): Update prototype.
2403
2404 2009-04-30 Kenichi Handa <handa@m17n.org>
2405
2406 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
2407
2408 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2409
2410 * callproc.c (Fcall_process): Fix GC protection. Make sure
2411 current buffer is always restored.
2412
2413 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2414
2415 * atimer.c (init_atimer): Also clear stopped_atimers.
2416
2417 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2418
2419 * process.c (create_process): Clean up merger residues of
2420 2008-07-17 change.
2421
2422 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
2423
2424 * lread.c (Vread_circle): New variable.
2425 (read1): Disable recursive read if Vread_circle is nil.
2426
2427 2009-04-29 Kenichi Handa <handa@m17n.org>
2428
2429 * fontset.h (set_default_ascii_font): Delete extern.
2430
2431 * fontset.c (set_default_ascii_font): Delete this unused function.
2432
2433 * frame.c (x_set_font): When ARG is a font-object, check if the
2434 font-object matches with the ASCII font-spec of the frame's
2435 fontset. If not, create a new fontset for the frame. (Bug #3075)
2436
2437 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2438
2439 * fns.c (Flocale_info): Protect vector from GC during decoding.
2440
2441 * process.c (Fstart_process): Protect argv strings from GC during
2442 encoding.
2443
2444 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2445
2446 * sysdep.c: Include <ctype.h>.
2447
2448 2009-04-27 David Reitter <david.reitter@gmail.com>
2449
2450 * nsfont.m (nsfont_open): Remove unused variable shrink.
2451 Remove commented-out code.
2452
2453 2009-04-26 Johan Bockgård <bojohan@gnu.org>
2454
2455 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2456
2457 2009-04-25 Jason Rumney <jasonr@gnu.org>
2458
2459 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2460
2461 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2462
2463 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2464 Swap bytes in short integer if fringe bitmap width > 8.
2465
2466 2009-04-23 Kenichi Handa <handa@m17n.org>
2467
2468 * xfaces.c (Fx_list_fonts): If a font size is specified in
2469 PATTERN, set it in returned scalable fonts.
2470
2471 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
2472
2473 * keyboard.c (Fset_input_meta_mode): Doc fix.
2474
2475 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2476
2477 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
2478
2479 * coding.c (Fterminal_coding_system): Doc fix.
2480
2481 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2482 (Fx_display_pixel_height, Fx_display_planes)
2483 (Fx_display_color_cells, Fx_server_max_request_size)
2484 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2485 (Fx_display_mm_height, Fx_display_mm_width)
2486 (Fx_display_backing_store, Fx_display_visual_class)
2487 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2488 Doc fixes, replacing "terminal id" with "terminal object".
2489 (check_x_display_info): Handle terminal objects instead of
2490 terminal ids.
2491
2492 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2493 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
2494 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2495 Doc fixes, replacing "terminal id" with "terminal object".
2496
2497 2009-04-21 Kenichi Handa <handa@m17n.org>
2498
2499 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
2500 (font_score): Check AVGWIDTH too.
2501
2502 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2503 worst case.
2504 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2505 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
2506
2507 2009-04-19 Jason Rumney <jasonr@gnu.org>
2508
2509 The following changes fix Bug#3005 for wide glyphs on each platform,
2510 without reintroducing Bug#1258 for stretch glyphs.
2511
2512 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2513 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2514 get_phys_cursor_geometry.
2515
2516 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
2517 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2518 using get_phys_cursor_geometry.
2519
2520 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2521 correctly calculated.
2522
2523 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2524
2525 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2526 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
2527 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2528 is deprecated.
2529
2530 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2531
2532 * font.c (font_put_frame_data): Use xfree instead of free.
2533
2534 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
2535
2536 * w32font.c (Qja, Qko): Remove declarations.
2537 (syms_of_w32font): Don't DEFSYM them.
2538
2539 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
2540
2541 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2542
2543 * font.h (Qja, Qko): Extern them.
2544
2545 * ftfont.c (Qja, Qko): Remove declarations.
2546
2547 * xfont.c (Qja, Qko): Remove declarations.
2548
2549 2009-04-17 Kenichi Handa <handa@m17n.org>
2550
2551 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2552 string from a vector to handle Latin-1 characters correctly.
2553
2554 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2555 entity even if the cache hits.
2556
2557 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2558
2559 * search.c (boyer_moore): Use zero as marker value for a possible
2560 match instead of depending on overflow behavior. (Bug#2844)
2561
2562 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2563 * lisp.h: Adjust prototypes.
2564
2565 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
2566
2567 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2568 change (Bug#3003).
2569
2570 2009-04-16 Kenichi Handa <handa@m17n.org>
2571
2572 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
2573
2574 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2575 adstyle.
2576
2577 * ftfont.c (Qja, Qko): Don't make them static.
2578 (enum ftfont_cache_for): New enum.
2579 (fc_charset_table): Undo the previous change.
2580 (ftfont_get_latin1_charset): Delete it.
2581 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2582 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
2583 non-scarable font, try to get AVERAGE_WIDTH.
2584 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2585 Change ft_face_cache from a list of a hash-table. Don't check
2586 `ja' and `ko' adstyle here.
2587 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2588 FTFONT_CACHE_FOR_CHARET.
2589 (ftfont_get_charset): Undo the previous change.
2590 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
2591 (ftfont_close): Likewise.
2592 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2593
2594 * font.c (font_sort_entites): Change the meaning of the arg
2595 BEST-ONLY. Don't optimize for VEC of lenght 1.
2596 (font_select_entity): Just return the value of font_sort_entites.
2597
2598 * xfaces.c (merge_face_vectors): Reflect font properties in
2599 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2600 font_clear_prop if a face attribute doesn't change.
2601
2602 * charset.h (charset_ksc5601): Extern it.
2603
2604 * charset.c (charset_ksc5601): New variable.
2605 (Fdefine_charset_internal): Set charset_ksc5601.
2606 (init_charset_once): Initialize charset_ksc5601 to -1.
2607
2608 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2609
2610 * fileio.c (history_delete_duplicates): Remove unused declaration.
2611
2612 * callint.c (history_delete_duplicates): New declaration.
2613 (Fcall_interactively): Remove command history duplicates when
2614 history_delete_duplicates is true.
2615
2616 2009-04-14 Eli Zaretskii <eliz@gnu.org>
2617
2618 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2619
2620 2009-04-14 Kenichi Handa <handa@m17n.org>
2621
2622 * font.c (Ffont_info): Fix docstring. Fix the second element of
2623 the returned value (bug#2949).
2624
2625 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
2626
2627 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2628
2629 2009-04-14 Kenichi Handa <handa@m17n.org>
2630
2631 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2632 encoding charset is ascii_compatible.
2633
2634 * charset.c (Fdefine_charset_internal): Make charset
2635 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2636 code_offset is 0, and covers all ASCII characters.
2637
2638 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2639
2640 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2641 (ns_string_to_pasteboard_internal):
2642 * nsmenu.m (process_dialog):
2643 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2644 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2645 * lisp.h (Fx_load_color_file): Declare.
2646
2647 2009-04-13 Kenichi Handa <handa@m17n.org>
2648
2649 * font.c (font_delete_unmatched): Preserve the order of list elements.
2650 (font_select_entity): Suppress the code to optimize for the same
2651 kind of fonts.
2652 (font_load_for_lface): Get a font that supports at least ASCII
2653 characters.
2654
2655 * ftfont.c (Qja, Qko): New variables.
2656 (fc_charset_table): Delete uniquifier data for iso8859-1.
2657 (ftfont_get_latin1_charset): New function.
2658 (get_adstyle_property): New function.
2659 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2660 bitmap fonts.
2661 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2662 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2663 `ko' or `ja'.
2664 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
2665 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
2666 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2667 property.
2668 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2669 (syms_of_ftfont): DEFSYM Qja and Qko.
2670
2671 2009-04-09 Kenichi Handa <handa@m17n.org>
2672
2673 * charset.c (map_charset_chars): For a charset of `superset'
2674 method, fix calculation of code range.
2675
2676 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2677 from the list of extra properties.
2678 (font_clear_prop): Be sure to delete `:name' font property.
2679
2680 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2681
2682 * dispnew.c (redraw_overlapping_rows): Fix detection of
2683 overlapping for topmost and bottommost rows.
2684
2685 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
2686
2687 2009-04-06 Jason Rumney <jasonr@gnu.org>
2688
2689 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2690
2691 2009-04-06 Kenichi Handa <handa@m17n.org>
2692
2693 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2694
2695 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2696
2697 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2698
2699 * ftfont.c (ftfont_open): Fix checking of the return value of
2700 FT_Load_Char. Fix setting font->underline_thickness.
2701
2702 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
2703
2704 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2705 (Fterminal_parameters, Fterminal_parameter)
2706 (Fset_terminal_parameter): In doc string, refer to terminal
2707 objects rather than terminal ids.
2708
2709 2009-04-04 Eli Zaretskii <eliz@gnu.org>
2710
2711 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2712 ret_lim_data. (Bug#2867)
2713
2714 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
2715
2716 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2717 so they don't get wider than the window, matching 2006-01-23
2718 change to the partner function in xdisp.c (Bug#2800).
2719
2720 2009-04-03 Kenichi Handa <handa@m17n.org>
2721
2722 * print.c (print_object): Make each lowest sub_char_table start a
2723 new line (Bug#2866).
2724
2725 2009-04-02 Kenichi Handa <handa@m17n.org>
2726
2727 * fontset.c (fontset_font): Record no-font when a fontset
2728 explicitly tells not to try another font-specs.
2729
2730 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2731
2732 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2733
2734 2009-03-30 Kenichi Handa <handa@m17n.org>
2735
2736 * fontset.c (fontset_from_font): Specify only registry in a
2737 font-spec for all characters supported by that registry.
2738
2739 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2740 even if HAVE_M17N_FLT is not defined.
2741
2742 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2743
2744 * ftfont.c: Conditionalize prototyping and use of
2745 ftfont_variation_glyphs.
2746
2747 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2748
2749 * frame.c (delete_frame): Work around compiler bug.
2750
2751 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2752 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2753 Some more EMACS_INT.
2754 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2755
2756 * xdisp.c (dump_glyph): Fix typo.
2757
2758 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2759 (adjust_markers_gap_motion, adjust_markers_for_delete)
2760 (adjust_markers_for_insert, adjust_point)
2761 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2762 (make_gap, copy_text, count_size_as_multibyte, insert)
2763 (insert_and_inherit, insert_before_markers)
2764 (insert_before_markers_and_inherit, insert_1)
2765 (count_combining_before, count_combining_after, insert_1_both)
2766 (insert_from_string, insert_from_string_before_markers)
2767 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2768 (insert_from_buffer_1, adjust_after_replace)
2769 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2770 (replace_range_2, del_range, del_range_1, del_range_byte)
2771 (del_range_both, del_range_2, modify_region)
2772 (prepare_to_modify_buffer, signal_before_change)
2773 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2774 for buffer positions and sizes.
2775 * lisp.h: Adjust prototypes accordingly.
2776
2777 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2778 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2779 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2780
2781 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2782
2783 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2784
2785 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2786 lines and columns so we keep the same pixel height and width.
2787
2788 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2789 the property _NET_WM_STATE has changed.
2790 (x_handle_net_wm_state): New function to update frame parameter
2791 fullscreen.
2792 (x_term_init): Initialize atoms for _NET_WM_STATE.
2793
2794 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2795
2796 2009-03-27 Kevin Ryde <user42@zip.com.au>
2797
2798 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2799 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2800 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2801 (Fgpm_mouse_stop): Pass that new parameter.
2802 * termhooks.h (close_gpm): Adjust prototype.
2803
2804 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2805
2806 * lisp.h (Fx_focus_frame): Declare.
2807
2808 * callint.c (Fcall_interactively): For '^' just delegate the work to
2809 handle-shift-selection.
2810 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2811
2812 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
2813
2814 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2815
2816 * data.c (Qinteractive_form): New variable.
2817 (Finteractive_form): Use it.
2818
2819 * eval.c (Fcommandp): Use Qinteractive_form.
2820
2821 2009-03-24 Jason Rumney <jasonr@gnu.org>
2822
2823 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2824 Calculate total size precisely. Decode environment variables
2825 before substituting. (Bug#38)
2826
2827 2009-03-24 Kenichi Handa <handa@m17n.org>
2828
2829 * font.c (find_font_encoding): Return Qnil for unsupported
2830 encoding (Bug#2722).
2831
2832 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2833
2834 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2835 that gdpy is set.
2836
2837 2009-03-22 Alan Mackenzie <acm@muc.de>
2838
2839 * callint.c (Finteractive): Clarify the doc string - even
2840 promptless elements need \n separators.
2841
2842 2009-03-22 Jason Rumney <jasonr@gnu.org>
2843
2844 * w32term.c (syms_of_w32term): Doc fix for
2845 x-use-underline-position-properties.
2846
2847 2009-03-21 Eli Zaretskii <eliz@gnu.org>
2848
2849 * w32.c (getpwuid): Change argument type to unsigned.
2850 (struct w32_id): Change type of `rid' member to unsigned.
2851 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2852 argument ID to unsigned. All callers changed.
2853 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2854
2855 2009-03-20 Eli Zaretskii <eliz@gnu.org>
2856
2857 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2858 negative, produce a float value.
2859
2860 * dired.c (make_uid, make_gid): New functions.
2861 (Ffile_attributes): Use them to avoid negative UID and GID.
2862
2863 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
2864
2865 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2866 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2867 Fix typos in docstrings.
2868
2869 2009-03-19 Kenichi Handa <handa@m17n.org>
2870
2871 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
2872 changed, use font_load_for_lface to get a new font object.
2873 Call free_realized_fontset after handling ASCII font change.
2874
2875 * frame.c (x_set_font): Handle the case that ARG is a cons.
2876
2877 2009-03-19 Glenn Morris <rgm@gnu.org>
2878
2879 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2880
2881 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
2882
2883 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2884
2885 2009-03-19 Kenichi Handa <handa@m17n.org>
2886
2887 * charset.c (load_charset_map_from_file): When a mapfile can't be
2888 loaded, signal an error.
2889
2890 2009-03-18 Eli Zaretskii <eliz@gnu.org>
2891
2892 * dired.c (Ffile_attributes): Make sure UID and GID are always
2893 positive, even if the value is too large for a positive EMACS_INT.
2894 Doc fix.
2895
2896 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2897
2898 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2899
2900 * xmenu.c (xdialog_show): Move Fredisplay call ...
2901 (Fx_popup_dialog): ... here.
2902
2903 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2904
2905 * dired.c (file_name_completion): Disable the first optimization just
2906 installed, since it is not implemented correctly.
2907
2908 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2909
2910 * dired.c (file_name_completion): Check completion-ignored-extensions
2911 only if the entry can affect bestmatch.
2912 Stop the search early, as Ftry_completion already does.
2913
2914 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
2915
2916 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
2917
2918 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
2919
2920 * keyboard.c (parse_menu_item): Don't display remappings as menu
2921 equivalent bindings (Bug#788).
2922
2923 2009-03-15 Jason Rumney <jasonr@gnu.org>
2924
2925 * w32term.h (WM_EMACS_PAINT): New message.
2926 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2927 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2928 before passing to lisp thread. (Bug#950)
2929
2930 2009-03-14 David Reitter <david.reitter@gmail.com>
2931
2932 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2933 variable as it was never reset.
2934 (ns_term_init): Remove initialization of Lisp-settable defaults
2935 and ns_expand_space.
2936 (-setPanelFromDefaultValues): Remove ns_expand_space.
2937 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2938 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
2939 i.e. no additional spacing, similar to Carbon port.
2940
2941 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2942 * nsfns.m (ns-popup-prefs-panel): Remove.
2943
2944 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2945
2946 * sound.c (alsa_configure): Remove call to deprecated
2947 snd_pcm_sw_params_set_xfer_align.
2948
2949 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
2950
2951 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2952 after clicking in a detached tool bar.
2953 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2954
2955 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2956
2957 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2958 int/Lisp_Object mixup).
2959
2960 2009-03-13 Kenichi Handa <handa@m17n.org>
2961
2962 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
2963 Handle NAME nil and t correctly. Callers changed.
2964 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2965 (set_fontset_font): Change ARG to a vector. Handle range_list in
2966 ARG correctly.
2967 (Fset_fontset_font): Fix the case that TARGET is both a script
2968 name and charset name. Adjust the arg to set_fontset_font for
2969 the above change.
2970 (fontset_from_font): Fix previous change.
2971 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
2972 entry. If FONTSET is the default fontset, don't set the extra
2973 slot of the returning char-table.
2974
2975 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
2976
2977 * nsfns.m (Fx_close_connection): Doc fix.
2978 (Fns_do_applescript): Reflow docstring.
2979 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2980 (Fx_display_pixel_width, Fx_display_pixel_height)
2981 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2982 Fix typos in docstrings.
2983 (Fns_set_alpha): Fix typos in error messages.
2984
2985 2009-03-12 David Reitter <david.reitter@gmail.com>
2986
2987 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
2988 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2989 were used for such events.
2990
2991 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2992 (toggleToolbar, performDragOperation, runHelp): Use it.
2993
2994 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
2995 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2996
2997 2009-03-11 Kenichi Handa <handa@m17n.org>
2998
2999 * font.h (font_open_by_spec): Extern it.
3000
3001 * font.c (font_open_by_spec): New function.
3002 (font_open_by_name): Use font_open_by_spec.
3003
3004 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3005 fontset of the frame.
3006
3007 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3008 modify the default font of frames that use this fontset.
3009 (num_auto_fontsets): New variable.
3010 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3011 name. Be sure to set FONTSET_ASCII to the correct font name.
3012 (update_auto_fontset_alist): New function.
3013
3014 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
3015
3016 * makefile.w32-in: Update dependencies.
3017
3018 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3019
3020 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3021
3022 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3023
3024 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3025
3026 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
3027
3028 * lread.c (Feval_buffer): Doc fix.
3029
3030 2009-03-09 Kenichi Handa <handa@m17n.org>
3031
3032 * charset.c (Qfile_name_handler_alist): Extern it.
3033 (load_charset_map_from_file): Temporarily bind
3034 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3035
3036 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
3037
3038 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3039 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
3040
3041 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3042
3043 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3044 (x_set_window_size): Change back to calculated method of setting
3045 toolbar height under Cocoa. (Bug#2546)
3046 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3047 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3048
3049 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3050
3051 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3052 accelerator in parens under GNUstep.
3053
3054 2009-03-06 Kenichi Handa <handa@m17n.org>
3055
3056 These changes are to detect incorrect composition sequence without
3057 looking ahead the source. (Bug#2370)
3058
3059 * coding.h: Include "composite.h".
3060 (enum compisition_state): New enum.
3061 (struct compisition_status): New struct.
3062 (struct iso_2022_spec): New member cmp_status.
3063 (struct emacs_mule_spec): New struct.
3064 (struct coding_system): New members ctext_extended_segment_len and
3065 embedded_utf_8. Change the union member
3066 spec.emacs_mule_full_support to spec.emacs_mule.
3067
3068 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3069 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
3070 (MAX_ANNOTATION_LENGTH): Define to 5.
3071 (ADD_COMPOSITION_DATA): New arg nbytes.
3072 (emacs_mule_char): New arg cmp_status.
3073 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3074 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3075 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3076 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3077 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3078 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3079 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3080 (EMACS_MULE_COMPOSITION_END): New macro.
3081 (emacs_mule_finish_composition): New function.
3082 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3083 (decode_coding_emacs_mule): Avoid long looking ahead while
3084 handling composition.
3085 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3086 (ENCODE_COMPOSITION_RULE): New macro.
3087 (finish_composition): New function.
3088 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3089 (DECODE_COMPOSITION_START): New implementation.
3090 (DECODE_COMPOSITION_END): Likewise.
3091 (STORE_COMPOSITION_RULE): New macro.
3092 (decode_coding_iso_2022): Avoid long looking ahead while handling
3093 composition, CTEXT extended segment, and embedded UTF-8.
3094 (setup_coding_system): For a coding of type iso-2022, reset
3095 CODING_ISO_EXTSEGMENT_LEN (coding) and
3096 CODING_ISO_EMBEDDED_UTF_8 (coding).
3097 (get_translation): Delete arguments last_block, from_nchars,
3098 to_nchars. Callers changed.
3099 (produce_chars): Don't modify charbuf. Adjusted for the change of
3100 get_translation.
3101 (produce_composition): Adjust for the new annotation sequence.
3102 (handle_composition_annotation): Likewise.
3103 (consume_chars): Adjust for the change of get_translation.
3104
3105 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3106
3107 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
3108
3109 2009-03-05 Kenichi Handa <handa@m17n.org>
3110
3111 * font.c (font_select_entity): New function.
3112 (font_find_for_lface): Use font_select_entity to select a font.
3113
3114 * fontset.c (fontset_find_font): If a font found without
3115 restricting to the characters C doesn't support C, try to find a
3116 font with C restriction.
3117
3118 2009-03-04 Nikolaj Schumacher <me@nschum.de>
3119
3120 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
3121
3122 2009-03-04 Jason Rumney <jasonr@gnu.org>
3123
3124 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
3125 characters that have already been read. (Bug#2569)
3126
3127 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3128 Log an error message if check_image_size failed.
3129 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
3130 (gs_load): Mention max-image-size in size error message. (Bug#2560)
3131
3132 2009-03-02 Eli Zaretskii <eliz@gnu.org>
3133
3134 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3135 when decoding process output.
3136
3137 2009-03-01 Richard M Stallman <rms@gnu.org>
3138
3139 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3140
3141 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3142
3143 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3144
3145 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3146 (decode_coding_emacs_mule, decode_coding_iso_2022)
3147 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3148 (decode_coding_raw_text, decode_coding_charset)
3149 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3150 Honor inhibit-eol-conversion. (Bug #2186)
3151
3152 2009-02-28 Jason Rumney <jasonr@gnu.org>
3153
3154 * coding.c (detect_coding_charset): If not checking latin extra,
3155 fail on characters between 0x80 and 0xA0. (Bug#2354)
3156
3157 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3158
3159 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
3160 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
3161
3162 2009-02-27 Glenn Morris <rgm@gnu.org>
3163
3164 * callint.c (Finteractive): Doc fix.
3165
3166 2009-02-27 Kenichi Handa <handa@m17n.org>
3167
3168 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3169
3170 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
3171
3172 * font.c (font_style_to_value): Set value for unknown symbols to
3173 100 instead of 255.
3174 (weight_table, slant_table, width_table): Treat "unspecified" as
3175 the default value.
3176
3177 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
3178
3179 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3180
3181 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
3182
3183 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3184 error as soon as a recursive load is detected.
3185
3186 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3187
3188 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3189 before caching.
3190
3191 2009-02-24 Kenichi Handa <handa@m17n.org>
3192
3193 * fontset.c (fontset_find_font): Fix the condition for checking
3194 unavailable font.
3195
3196 2009-02-24 Glenn Morris <rgm@gnu.org>
3197
3198 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3199 whitespace that confuses documentation.
3200
3201 2009-02-23 Miles Bader <miles@gnu.org>
3202
3203 * process.c (Flist_system_processes, Fprocess_attributes)
3204 (syms_of_process): Rename `system-process-attributes' to
3205 `process-attributes'.
3206
3207 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3208
3209 * coding.h (struct coding_system): Make safe_charsets a pointer to
3210 unsigned char.
3211 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3212 being 255.
3213 (SAFE_CHARSET_P): Likewise.
3214 (setup_iso_safe_charsets): Properly setup safe_charsets.
3215 (Fdefine_coding_system_internal): Likewise.
3216 (setup_coding_system): Likewise. Remove unneeded casts.
3217 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3218 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3219 unneeded casts.
3220
3221 * insdel.c (del_range_2): Don't modify gap contents when called
3222 from decode_coding_object. (Bug#1809)
3223
3224 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
3225
3226 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3227 Qfont_object.
3228 (Ftype_of): Recognize font objects.
3229
3230 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3231
3232 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3233 moved to data.c.
3234
3235 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3236
3237 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3238 async_iconified. Based on a patch by Christian Lynbech
3239 <christian.lynbech@tieto.com>.
3240 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3241
3242 2009-02-20 Glenn Morris <rgm@gnu.org>
3243
3244 * syntax.c (Fskip_chars_forward): Fix doc typo.
3245
3246 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
3247
3248 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3249
3250 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
3251
3252 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3253
3254 2009-02-19 Kenichi Handa <handa@m17n.org>
3255
3256 * coding.c (detect_coding): Preserve coding->mode.
3257 Don't overflow coding->carryover. (Bug#2370)
3258
3259 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3260
3261 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3262
3263 2009-02-18 Kenichi Handa <handa@m17n.org>
3264
3265 * font.c (font_check_otf_features): Fix handling of `nil' element.
3266 (Ffont_spec): Describe :lang and :otf in the docstring.
3267
3268 2009-02-16 Andreas Schwab <schwab@suse.de>
3269
3270 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3271 string.
3272
3273 2009-02-16 Kenichi Handa <handa@m17n.org>
3274
3275 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
3276 (Bug#1723)
3277
3278 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
3279
3280 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
3281
3282 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3283 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3284
3285 2009-02-14 Eli Zaretskii <eliz@gnu.org>
3286
3287 * msdos.c (MAX_SCREEN_BUF): New macro.
3288 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3289 Encode the entire run of glyphs sharing the same face, instead of
3290 doing that one glyph at a time (fixes a bug with displaying
3291 double-size characters).
3292
3293 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3294
3295 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3296
3297 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3298 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
3299 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
3300
3301 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
3302 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
3303
3304 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3305
3306 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3307 invisible areas.
3308
3309 2009-02-12 Jason Rumney <jasonr@gnu.org>
3310
3311 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3312 (add_font_entity_to_list): Call check_face_name even when family
3313 is unspecified.
3314
3315 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3316 Release DC when finished. Use NULL window to refer to desktop.
3317 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
3318
3319 * w32font.c (add_font_entity_to_list): Fix check for substituted
3320 raster fonts. (Bug#2219)
3321
3322 2009-02-12 Kenichi Handa <handa@m17n.org>
3323
3324 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3325 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3326 (autocmp_chars): Use fast_looking_at. Don't compose more
3327 characters than MAX_COMPOSITION_COMPONENTS.
3328 (find_automatic_composition): While looking forward and backward,
3329 check static composition. Fix where to stop looking forward.
3330 (composition_adjust_point): Fix checking of static composition.
3331 (Fcomposition_get_gstring): Pay attention to
3332 MAX_COMPOSITION_COMPONENTS.
3333
3334 * lisp.h (fast_looking_at): Extern it.
3335
3336 * search.c (fast_looking_at): New function.
3337
3338 * term.c (encode_terminal_code): Adjust for the change of
3339 <struct glyph>.u.cmp.to.
3340 (append_composite_glyph): Likewise.
3341
3342 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
3343 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3344 composition.
3345 (append_composite_glyph): Adjust for the change of
3346 <strcut glyph>.u.cmp.to.
3347
3348 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
3349
3350 * casetab.c (init_casetab_once):
3351 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3352 * font.c (font_update_lface):
3353 * fontset.c (Fnew_fontset):
3354 * ftfont.c (ftfont_drive_otf):
3355 * xfont.c (xfont_open):
3356 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3357
3358 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3359
3360 * fileio.c (Fwrite_region): !NILP -> CONSP.
3361
3362 2009-02-10 Andreas Schwab <schwab@suse.de>
3363
3364 * process.c (send_process): Properly relocate pointer into data
3365 when using encoded data. (Bug#2272)
3366
3367 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3368
3369 * coding.c (detect_coding_charset): Fix previous change.
3370
3371 2009-02-08 Jason Rumney <jasonr@gnu.org>
3372
3373 * w32fns.c (w32_hide_hourglass): Handle case where frame
3374 disappeared while hourglass was displayed. (Bug #2193)
3375
3376 2009-02-07 Andreas Schwab <schwab@suse.de>
3377
3378 * unexelf.c (unexec): Fix error message.
3379
3380 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3381
3382 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
3383 when modal window is active. (Bug #2152)
3384 (applicationShouldTerminate:): Remove now-unneeded while loop
3385 around NSRunAlertPanel.
3386
3387 * nsmenu.m (popupSession): New file-global variable.
3388 (pop_down_menu): End the popupSession before closing dialog.
3389 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3390 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3391 don't query NSApp for events (just sleep instead).
3392
3393 2009-02-07 Eli Zaretskii <eliz@gnu.org>
3394
3395 * coding.c (syms_of_coding) <translation-table-for-input>:
3396 Modify doc string to discourage use for character code unification.
3397
3398 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3399
3400 * atimer.c (run_timers): Update pending_atimers.
3401
3402 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
3403
3404 * image.c (svg_load_image): Fix last change.
3405
3406 * xfns.c (Fx_create_frame): Signal an error if no font is
3407 found (Bug#2147).
3408
3409 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
3410
3411 * character.c (syms_of_character) <script-representative-chars>:
3412 Fix typo in docstring.
3413
3414 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3415
3416 * nsmenu.m (pop_down_menu): New function.
3417 (ns_popup_dialog): Call it on unwind.
3418 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3419 call timer_check() (Bug#2154).
3420 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3421 handling_signal is set.
3422 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3423
3424 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
3425
3426 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3427
3428 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3429
3430 * keyboard.c (poll_for_input_1, handle_async_input):
3431 Set handling_signal under HAVE_NS.
3432
3433 2009-02-04 Glenn Morris <rgm@gnu.org>
3434
3435 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3436
3437 2009-02-04 Kenichi Handa <handa@m17n.org>
3438
3439 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3440
3441 * charset.c (Fchar_charset): New optional arg restriction.
3442
3443 * coding.h (coding_system_charset_list): Extern it.
3444
3445 * coding.c (coding_system_charset_list): New function.
3446
3447 * composite.c: Include coding.h and termhooks.h.
3448 (composition_gstring_p): Fix for the terminal case.
3449 (composition_gstring_width): Likewise.
3450 (fill_gstring_body): Likewise.
3451 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3452 the frame.
3453 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3454 is within a composition.
3455 (Fcomposition_get_gstring): Fix the terminal case.
3456
3457 * term.c (encode_terminal_code): Fix handling of composition.
3458 (produce_composite_glyph): For static composition, get pixel_width
3459 from struct composition.
3460
3461 2009-02-02 Andreas Schwab <schwab@suse.de>
3462
3463 * unexelf.c (unexec): Handle unaligned bss offset.
3464
3465 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3466
3467 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3468 XT,w32read_socket changes to ns_read_socket.
3469
3470 * keyboard.c (handle_interrupt): Don't call
3471 quit_throw_to_read_char() under NS.
3472
3473 * blockinput.h: Remove NS-specific code.
3474
3475 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3476
3477 * dispnew.c (window_change_signal): Don't try to get the size of a
3478 suspended tty frame.
3479 * term.c (Fresume_tty): Resize if the size has changed while the
3480 tty was suspended.
3481
3482 * alloc.c (mark_stack): Properly conditionalize previous change.
3483
3484 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3485
3486 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3487 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3488 Remove; this code is not used on Windows.
3489
3490 2009-01-30 Eli Zaretskii <eliz@gnu.org>
3491
3492 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3493 EOLs that also has stray ^M characters.
3494
3495 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3496
3497 * atimer.c (run_timers, alarm_signal_handler):
3498 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3499 * w32inevt.c (w32_console_read_socket):
3500 * w32term.c (w32_read_socket):
3501 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3502
3503 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
3504
3505 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3506 Initialize it as a relative filename pattern.
3507 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3508 (Fcall_process_region): Simplify temp file creation using
3509 temporary-file-directory.
3510
3511 2009-01-29 Eli Zaretskii <eliz@gnu.org>
3512
3513 * msdos.c: Rename pending_signals to msdos_pending_signals.
3514 (sig_suspender, sigprocmask): Adjust.
3515
3516 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
3517
3518 * keyboard.c (pending_signals): New var.
3519 (poll_for_input, input_available_signal, init_keyboard): Set it.
3520 (process_pending_signals): New function.
3521
3522 * lisp.h (QUIT): Check pending_signals instead of
3523 interrupt_input_pending. Use process_pending_signals.
3524
3525 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
3526
3527 * process.c (wait_reading_process_output): Use process_pending_signals.
3528
3529 * sysdep.c (emacs_write): Use process_pending_signals.
3530
3531 * xterm.c (XTread_socket): Update pending_signals.
3532
3533 * w32term.c (w32_read_socket): Update pending_signals.
3534
3535 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3536
3537 2009-01-29 Kenichi Handa <handa@m17n.org>
3538
3539 * xftfont.c (xftfont_has_char): New function.
3540 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3541
3542 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3543
3544 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3545 under GNUstep.
3546 (ns_query_color): New declaration.
3547
3548 * nsterm.m (ns_confirm_quit): New variable.
3549 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3550 (EmacsApp-applicationShouldTerminate:): Use it.
3551 (EmacsPrefsController): Let user set it.
3552 (ns_query_color): New function.
3553 (ns_defined_color): Use it.
3554 (ns_initialize): Drop.
3555 (ns_term_init): Add two lines from ns_initialize(), and set
3556 input_interrupt_mode to nil.
3557
3558 * image.c (svg_load_image): Don't right-shift background RGB when
3559 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
3560
3561 2009-01-28 Kenichi Handa <handa@m17n.org>
3562
3563 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3564 (fontset_get_font_group): Remember that no font-group is specified
3565 for C.
3566
3567 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
3568
3569 * fns.c (concat): Check for string overflow (bug#1787).
3570
3571 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3572 Quadruple undo limits (bug#1501).
3573
3574 2009-01-27 Kenichi Handa <handa@m17n.org>
3575
3576 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3577 directly use GT_Get_Char_index.
3578
3579 * xftfont.c (struct xftfont_info): New member `index'.
3580
3581 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3582 (Ffontset_font): Adjust for the change of fontset entry.
3583
3584 2009-01-26 Kenichi Handa <handa@m17n.org>
3585
3586 * fontset.c (fontset_find_font): Fix handling of non-cons return
3587 value of fontset_get_font_group.
3588 (fontset_font): Revert last change.
3589
3590 2009-01-26 Jason Rumney <jasonr@gnu.org>
3591
3592 * w32font.c (w32font_list_internal): Return quickly if registry is
3593 unknown. Simplify final return.
3594 (add_font_entity_to_list): Break complex logic down into more
3595 manageable chunks. Move unknown registry check to
3596 w32font_list_internal.
3597
3598 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3599
3600 Changes to remove Feval calls from GUI under NS.
3601
3602 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3603 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
3604 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3605
3606 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3607 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3608 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3609 instead of NON_ASCII_KEYSTROKE_EVENT.
3610 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3611 (EmacsApp-applicationShouldTerminate:): Query user.
3612 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3613 instead of Feval.
3614
3615 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3616
3617 * keyboard.c (kbd_buffer_get_event): Check for it.
3618 (keys_of_keyboard): Define lispy keys for
3619 ns-put/unput-working-text.
3620
3621 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3622 versions.
3623 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3624
3625 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
3626
3627 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
3628 setting current_buffer directly. (Bug#2044)
3629
3630 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
3631
3632 * fontset.c (fontset_font): If we know there is no font, don't do
3633 any work. (Bug#1952, bug#1990).
3634
3635 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
3636
3637 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3638
3639 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
3640 (ns_no_defaults): New declaration.
3641 (main): Use it.
3642
3643 * nsterm.h (ns_no_defaults): New declaration.
3644
3645 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
3646
3647 * nsterm.m (ns_no_defaults): New variable.
3648 (ns_initialize): Don't read defaults when ns_no_defaults.
3649 (EmacsView-readSelectionFromPasteboard:)
3650 (writeSelectionToPasteboard:types:): New stubbed-out methods for
3651 NSServicesRequests protocol. (Bug#1435)
3652 (ns_dumpglyphs_stretch): New function.
3653 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
3654 of 2008-11-15 to other terms. (Bug#615)
3655
3656 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3657
3658 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3659
3660 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3661 call for Sparc64.
3662
3663 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3664
3665 * nsfns.m:
3666 * nsgui.h:
3667 * nsmenu.m:
3668 * nsselect.m:
3669 * nsterm.h:
3670 * nsterm.m: Remove '23' comments that indicated code added during
3671 update from emacs-20 -> emacs-23.
3672
3673 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3674
3675 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3676 ns_alternate_modifier. (Bug#1217)
3677
3678 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3679 Display all shortcuts, including those w/o super modifier.
3680
3681 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3682
3683 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
3684
3685 * fileio.c (Vwrite_region_post_annotation_function)
3686 (Vwrite_region_annotation_buffers): New vars.
3687 (build_annotations_unwind): Just reset
3688 Vwrite_region_annotation_buffers.
3689 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3690 Call write-region-post-annotation-function.
3691 (build_annotations): Add to Vwrite_region_annotation_buffers if
3692 buffer changes.
3693
3694 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3695
3696 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3697 Tiger.
3698 * nsfns.m (ns_do_applescript):
3699 Conditionalize typeUTF16ExternalRepresentation on Tiger.
3700
3701 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3702
3703 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3704
3705 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3706
3707 * nsmenu.m (NSMENUPROFILE): Change #if style.
3708
3709 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3710
3711 * nsterm.m (x_set_frame_alpha): Add prototype.
3712 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3713 handle Ctrl-tab. (Bug#1841)
3714 (ns_get_color): Use unsigned long long for scanned hex string value.
3715 (ns_term_shutdown): Abort on non SIGTERM signals.
3716 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
3717 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3718 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
3719 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
3720 (ns_defined_color): Fix settings of the XColor variable fields:
3721 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
3722
3723 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3724 DPI. (Bug#1316)
3725 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3726 values in onTiger section.
3727
3728 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
3729
3730 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3731 Check return value of font_spec_from_name.
3732 (Fx_list_fonts): Doc fix. (Bug#1951)
3733
3734 * font.c (font_spec_from_name): Return Qnil if font name could not
3735 be parsed.
3736 (font_parse_name): Treat a `?' character as part of an XLFD.
3737
3738 * fns.c (Fsubstring): Doc fix.
3739
3740 2009-01-19 Kenichi Handa <handa@m17n.org>
3741
3742 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
3743 (ftfont_list): Likewise.
3744
3745 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
3746
3747 * dbusbind.c (Fdbus_register_signal):
3748 * process.c (conv_sockaddr_to_lisp):
3749 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3750
3751 * callproc.c (Fgetenv_internal): Doc fix.
3752
3753 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
3754
3755 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3756 it is not even used.
3757
3758 2009-01-16 Glenn Morris <rgm@gnu.org>
3759
3760 * font.c (Ffont_variation_glyphs): Silence compiler.
3761
3762 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
3763
3764 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3765 Reported by David Robinow <drobinow@gmail.com>.
3766
3767 2009-01-15 Kenichi Handa <handa@m17n.org>
3768
3769 * coding.c (detect_coding_system): Fix handling of null_byte_found.
3770
3771 2009-01-14 Jason Rumney <jasonr@gnu.org>
3772
3773 * frame.c (x_set_font): Always store a font to the font parameter,
3774 never a fontset. (Bug#1562)
3775
3776 2009-01-14 Kenichi Handa <handa@m17n.org>
3777
3778 * coding.c (TWO_MORE_BYTES): New macro.
3779 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
3780
3781 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
3782
3783 * font.c (font_clear_prop): If clearing the family, clear the font
3784 width index too.
3785
3786 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
3787
3788 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
3789
3790 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3791 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3792 functions, use sizeof.
3793
3794 2009-01-12 Martin Rudalics <rudalics@gmx.at>
3795
3796 * keyboard.c (read_char): Fix case where last_nonmenu_event
3797 returned a bad value with submenus. (Bug#447)
3798
3799 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
3800
3801 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3802 family, clear the font width index too.
3803
3804 2009-01-11 Jason Rumney <jasonr@gnu.org>
3805
3806 * keyboard.c (cmd_error_internal): Exit when errors occur before
3807 frame creation and not in daemon mode. (Bug#1836)
3808
3809 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
3810
3811 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3812 of a display vector, backtrack.
3813 (try_window_reusing_current_matrix): Check glyph type before
3814 referencing charpos member.
3815
3816 2009-01-10 Eli Zaretskii <eliz@gnu.org>
3817
3818 Fix Bug #876:
3819
3820 * coding.c (inhibit_null_byte_detection): New variable.
3821 (detect_coding, detect_coding_system): Don't pay attention to null
3822 bytes if inhibit_null_byte_detection is non-zero.
3823 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
3824 <inhibit-iso-escape-detection>: Doc fix.
3825
3826 2009-01-09 Jason Rumney <jasonr@gnu.org>
3827
3828 * w32font.c (add_font_entity_to_list): Don't report unknown
3829 Windows charset as any unrecognized registry. (Bug#1548)
3830 Only report Unicode Plane 2 fonts as unicode-sip.
3831
3832 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
3833
3834 * xfaces.c (Fx_font_family_list): Delete function.
3835 Move compatibility version to faces.el.
3836
3837 * font.c (Ffont_family_list): Return a list of strings, not symbols.
3838
3839 2009-01-09 Martin Rudalics <rudalics@gmx.at>
3840
3841 * frame.c (x_set_frame_parameters): Remember requested value for
3842 fullscreen before it's reset by the parameter handler.
3843
3844 2009-01-09 Glenn Morris <rgm@gnu.org>
3845
3846 * keyboard.c (last_command_char): For clarity, rename to...
3847 (last_command_event): ... and update all users.
3848 (last_input_char): For clarity, rename to...
3849 (last_input_event): ... and update all users.
3850 (last-command-char, last-input-char): Move to subr.el as aliases.
3851 * cmds.c, commands.h: Update for last_command_char rename.
3852
3853 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
3854
3855 * font.c (font_open_for_lface): Handle unspecified height attribute.
3856
3857 2009-01-08 Jason Rumney <jasonr@gnu.org>
3858
3859 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3860 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3861 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3862 Don't declare.
3863 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
3864 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3865
3866 2009-01-07 Kenichi Handa <handa@m17n.org>
3867
3868 * fileio.c (Finsert_file_contents): In the case of replace,
3869 remember the coding system used for decoding in
3870 coding_system (Bug#1039).
3871
3872 * coding.c (decode_coding_utf_8): Check byte_after_cr before
3873 breaking the loop. (Bug#870)
3874 (decode_coding_utf_16, decode_coding_emacs_mule)
3875 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3876 (decode_coding_charset): Likewise.
3877
3878 2009-01-05 Martin Rudalics <rudalics@gmx.at>
3879
3880 * frame.c (x_set_frame_parameters): Make sure height (width) get
3881 applied when fullwidth (fullheight) is set. (Bug#1522)
3882
3883 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
3884
3885 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3886 (utc_base): Declare as ULONGLONG, not long double.
3887 (convert_time_raw): Delete.
3888 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3889 (initialize_utc_base): New function.
3890 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3891 (convert_from_time_t): Use initialize_utc_base; compute result with
3892 64-bit arithmetic.
3893 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3894
3895 2009-01-03 Eli Zaretskii <eliz@gnu.org>
3896
3897 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
3898 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3899 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3900 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3901 [!subprocesses]: Define.
3902 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3903 (Flist_system_processes, Fsystem_process_attributes)
3904 [!subprocesses]: Call list_system_processes and
3905 system_process_attributes instead of returning Qnil.
3906
3907 * dosfns.c (system_process_attributes, list_system_processes):
3908 New functions.
3909
3910 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3911
3912 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3913 Don't use the default (no-op) implementation.
3914
3915 2009-01-03 Jason Rumney <jasonr@gnu.org>
3916
3917 * keyboard.c (parse_modifiers_uncached): Wheel events are
3918 clicks (bug#687).
3919
3920 * w32term.c (x_query_colors, x_query_color): New functions.
3921
3922 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3923 (svg_load_image): Cast returned pointers from dynamically loaded
3924 functions. Eliminate W32 specific code.
3925
3926 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3927
3928 * nsfns.m (x_set_foreground_color, x_set_background_color)
3929 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3930 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3931 x_ prefix instead of ns_. Update references.
3932 (syms_of_nsfns): Add a FIXME comment.
3933
3934 * nsterm.m (x_set_cursor_type): New prototype.
3935 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3936
3937 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3938 for Solaris instead of incorrectly providing Qutime and Qcutime.
3939
3940 2009-01-02 Eli Zaretskii <eliz@gnu.org>
3941
3942 * w32.c (process_times): Compute sum of utime and stime.
3943 (system_process_attributes): Add Qtime to the alist.
3944
3945 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3946 and add them to the alist.
3947
3948 * process.c (top level) <Qtime, Qctime>: New variables.
3949 (syms_of_process): staticpro them.
3950 (Fsystem_process_attributes): Add their documentation to the doc
3951 string.
3952
3953 * process.h: Declare Qtime and Qctime.
3954
3955 2009-01-02 Jason Rumney <jasonr@gnu.org>
3956
3957 * image.c (Qgobject): New symbol.
3958 (syms_of_image): Initialize it.
3959 (init_svg_functions): Load some functions from gobject library.
3960
3961 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3962
3963 * frame.c (make_terminal_frame): Remove redundant code and useless
3964 block.
3965
3966 2009-01-01 Andreas Schwab <schwab@suse.de>
3967
3968 * process.c (conv_sockaddr_to_lisp): Add workaround for
3969 getsockname bug on BSD.
3970
3971 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
3972
3973 * xfns.c (x_create_tip_frame): Set border width of the X window.
3974
3975 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
3976
3977 2009-01-01 Jason Rumney <jasonr@gnu.org>
3978
3979 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
3980 Don't block input, as per earlier xterm.c changes.
3981
3982 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3983
3984 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3985 (ns_appkit_version_int): New function.
3986 (x-server-version): Use ns_appkit_version_int and follow 21+
3987 convention of returning 3 integers.
3988
3989 2008-12-30 Kenichi Handa <handa@m17n.org>
3990
3991 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3992 (CHAR_SURROGATE_PAIR_P): New macro.
3993
3994 * font.h (struct font_driver): New member get_variation_glyphs.
3995
3996 * font.c (font_range): Don't require a font for a variation selector.
3997 (Ffont_variation_glyphs): New function.
3998 (syms_of_font): Defsubr it.
3999
4000 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4001 ftfont_variation_glyphs.
4002 (setup_otf_gstring): New function.
4003 (ftfont_drive_otf): Use it.
4004 (ftfont_shape_by_flt): Handle variation selector.
4005 (ftfont_variation_glyphs): New function.
4006
4007 2008-12-30 Martin Rudalics <rudalics@gmx.at>
4008
4009 * frame.c (Vemacs_iconified): Remove.
4010
4011 2008-12-30 Jason Rumney <jasonr@gnu.org>
4012
4013 * frame.c (store_frame_param, x_get_arg): Enable newer code on
4014 WINDOWSNT too, as related changes have already been synced. (Bug#117)
4015
4016 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
4017
4018 * indent.c (Fvertical_motion): Don't advance iterator if we have
4019 reseated to the desired position.
4020
4021 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4022 checking for pos match.
4023
4024 2008-12-30 Kenichi Handa <handa@m17n.org>
4025
4026 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4027 just get the low 8-bit of the code.
4028
4029 * font.c (font_intern_prop): Validate str as multibyte.
4030
4031 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4032
4033 * dispextern.h (struct face): Move lface and hash from the middle
4034 of bitfields.
4035
4036 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4037
4038 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4039
4040 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4041 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4042 instead of intervals.h.
4043
4044 2008-12-26 Andreas Schwab <schwab@suse.de>
4045
4046 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4047 cons.
4048
4049 2008-12-26 Martin Rudalics <rudalics@gmx.at>
4050
4051 * textprop.c (Qminibuffer_prompt): New variable.
4052 (syms_of_textprop): Initialize it.
4053 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4054 in minibuffer-prompt face. (Bug#1662)
4055
4056 2008-12-25 Jason Rumney <jasonr@gnu.org>
4057
4058 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4059
4060 2008-12-24 Jason Rumney <jasonr@gnu.org>
4061
4062 * ralloc.c (r_alloc_reset_variable): New function.
4063
4064 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
4065 record of what points where. (Bug#716)
4066
4067 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4068
4069 * minibuf.c (read_minibuf): Follow the non-interactive case when
4070 running as a daemon, before detaching.
4071
4072 2008-12-22 Andreas Schwab <schwab@suse.de>
4073
4074 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4075 * gtkutil.c (free_widget_value): Use xfree instead of free.
4076
4077 2008-12-22 Martin Rudalics <rudalics@gmx.at>
4078
4079 * frame.c (delete_frame): New function derived from
4080 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4081 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4082 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4083 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4084 * frame.h: Extern delete_frame.
4085 * window.c (window_loop):
4086 * terminal.c (delete_terminal):
4087 * xterm.c (x_connection_closed):
4088 * xfns.c (Fx_hide_tip):
4089 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
4090
4091 2008-12-21 Jason Rumney <jasonr@gnu.org>
4092
4093 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4094 when character maps to .notdef character.
4095
4096 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4097
4098 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4099
4100 2008-12-20 Jason Rumney <jasonr@gnu.org>
4101
4102 * frame.c (Fmake_terminal_frame): Raise an error when called from
4103 a graphical frame on Windows. (Bug#1325)
4104
4105 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4106
4107 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4108
4109 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
4110
4111 * minibuf.c (Fread_buffer): Doc fix.
4112
4113 2008-12-20 Jason Rumney <jasonr@gnu.org>
4114
4115 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
4116 server name in UNC paths. (Bug#719)
4117
4118 * coding.c (decode_coding): Clear chars_at_source flag when using
4119 charbuf. (Bug#1035)
4120
4121 2008-12-19 Daniel Engeler <engeler@gmail.com>
4122
4123 * sysdep.c (serial_configure): Fix typo.
4124
4125 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4126
4127 * sysdep.c: Include alloca.h.
4128 (system_process_attributes): Add implementation for Solaris.
4129
4130 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
4131
4132 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4133
4134 Reorganize implementation of Flist_system_processes and
4135 Fsystem_process_attributes. No functional changes.
4136 * process.c: Don't #include pwd.h, grp.h and limits.h.
4137 (Flist_system_processes): Just call list_system_processes.
4138 (Fsystem_process_attributes): Just call system_process_attributes.
4139 (procfs_list_system_processes, time_from_jiffies)
4140 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4141 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4142
4143 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4144 (list_system_processes): Rename from
4145 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4146 Provide a do nothing implementation.
4147 (system_process_attributes): Rename from
4148 procfs_list_system_processes.
4149 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4150 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
4151
4152 * w32.c (list_system_processes): Rename from
4153 w32_list_system_processes.
4154 (system_process_attributes): Rename from
4155 w32_system_process_attributes.
4156
4157 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4158
4159 * process.h (w32_list_system_processes)
4160 (w32_system_process_attributes): Remove.
4161 (list_system_processes, system_process_attributes):
4162 New prototypes.
4163
4164 2008-12-19 Kenichi Handa <handa@m17n.org>
4165
4166 * xfont.c (xfont_decode_coding_xlfd): New function.
4167 (xfont_encode_coding_xlfd): New function.
4168 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4169 (xfont_list): Decode and encode XLFD by iso-8859-1.
4170 (xfont_match): Likewise.
4171 (xfont_list_family): Likewise.
4172 (xfont_open): Likewise.
4173
4174 * ftfont.c (ftfont_open): Generate a multibyte string if given
4175 names are utf-8.
4176
4177 * xftfont.c (xftfont_open): Generate a multibyte string if given
4178 names are utf-8.
4179
4180 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4181
4182 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4183 changed.
4184 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4185 clicked on a detached tool bar button.
4186
4187 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4188
4189 * emacs.c (main): Print and error and exit when no data is read
4190 from the pipe.
4191
4192 2008-12-17 Jason Rumney <jasonr@gnu.org>
4193
4194 * w32font.c (w32font_has_char): Always return -1.
4195
4196 2008-12-16 Kenichi Handa <handa@m17n.org>
4197
4198 * font.c (font_open_entity): Fix previous change.
4199
4200 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4201
4202 * process.c: Include <limits.h>.
4203
4204 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
4205
4206 * font.c (font_update_drivers): Fix mistake in reconstructing the
4207 driver list.
4208
4209 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
4210
4211 * font.c (font_clear_cache): Fix format of font cache data.
4212
4213 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
4214
4215 * xftfont.c (xftfont_open): Free Xft font pattern if
4216 XftFontOpenPattern fails.
4217
4218 * xterm.c (x_free_frame_resources): Remove extraneous call to
4219 free_frame_faces.
4220
4221 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4222
4223 * xterm.c (x_delete_display): Move xim_close_dpy call to
4224 x_delete_terminal.
4225 (x_delete_terminal): Call xim_close_dpy.
4226
4227 2008-12-13 Jason Rumney <jasonr@gnu.org>
4228
4229 * w32font.c (intern_font_name): New function.
4230 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4231 (w32font_open_internal, Fx_select_font): Decode font name.
4232 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4233
4234 * w32font.h (intern_font_name): Declare new function.
4235
4236 * w32uniscribe.c (add_opentype_font_name_to_list):
4237 Use intern_font_name.
4238
4239 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4240
4241 * frame.c (Fdelete_frame): Call free_font_driver_list.
4242
4243 * font.c (free_font_driver_list): Implement missing function.
4244
4245 * w32term.c (w32_term_init): Don't initialize the image cache
4246 here; it will be done in init_frame_faces.
4247
4248 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4249 (struct x_display_info): Remove unused member null_pixel. New
4250 member xim_callback_data.
4251
4252 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4253 (xim_initialize): Save pointer to callback function data.
4254 (xim_close_dpy): Free callback function data. Call XCloseIM,
4255 reverting 2008-11-04 change by David Smith.
4256 (x_term_init): Don't initialize the image cache here; it will be
4257 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4258 (x_delete_display): Free x_dnd_atoms member.
4259
4260 2008-12-13 Kenichi Handa <handa@m17n.org>
4261
4262 * font.c (font_rescale_ratio): Moved from xfaces.c.
4263 Argument type changed. Handle a font-spec too.
4264 (font_score): Check Vface_font_rescale_alist.
4265 (font_open_entity): Likewise. (Bug#1547)
4266
4267 * xfaces.c (font_rescale_ratio): Moved to font.c.
4268
4269 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4270
4271 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4272
4273 2008-12-12 Jason Rumney <jasonr@gnu.org>
4274
4275 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4276 Vwindow_system_version to the real w32 major version.
4277
4278 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4279
4280 * term.c (init_tty): Move setting the terminal name before the
4281 potential user: maybe_fatal.
4282
4283 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
4284
4285 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4286 all callers changed. Call free_frame_faces to free the face cache.
4287
4288 2008-12-11 Jason Rumney <jasonr@gnu.org>
4289
4290 * w32font.c (fill_in_logfont): Don't assume symbol script means
4291 SYMBOL_CHARSET. (Bug#547)
4292
4293 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
4294 size for surrogates. (Bug#1096, bug#872)
4295
4296 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4297
4298 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4299
4300 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4301
4302 * process.c (Fsystem_process_attributes, syms_of_process):
4303 Fix typo in name of Ssystem_process_attributes.
4304 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4305
4306 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4307
4308 * syntax.c (Fmodify_syntax_entry): Doc fix.
4309
4310 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4311
4312 * font.c (Ffont_spec): Move usage to end of docstring.
4313
4314 2008-12-10 Jason Rumney <jasonr@gnu.org>
4315
4316 * w32font.c (Qcham): New symbol.
4317 (font_supported_scripts): Add cham, and comments for other new
4318 scripts in bitfield from OpenType spec.
4319 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4320 contain characters beyond the bmp.
4321
4322 2008-12-10 Kenichi Handa <handa@m17n.org>
4323
4324 * ftfont.c (fc_charset_table): Add "unicode-sip".
4325 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
4326 Qunicode_sip.
4327
4328 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4329
4330 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4331 (Fcoding_system_put): Use QCdefault_char.
4332 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4333
4334 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
4335
4336 * xftfont.c (syms_of_xftfont): Fix typo.
4337
4338 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
4339
4340 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4341
4342 * emacs.c (main): Close daemon_pipe on exec.
4343
4344 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
4345
4346 * termchar.h (struct tty): New members termcap_term_buffer and
4347 termcap_strings_buffer.
4348
4349 * term.c (encode_terminal_code): Free any previous memory blocks
4350 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
4351 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4352 All callers changed.
4353 (init_tty): Store termcap data and string buffers in new struct
4354 tty members termcap_term_buffer and termcap_strings_buffer.
4355 (delete_tty): Free them.
4356 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
4357
4358 2008-12-07 Seiji Zenitani <zenitani@mac.com>
4359
4360 * nsfns.m (ns_set_background_color): Remove code duplication.
4361 It was a substitute for face-transparency on OS X 10.3.
4362
4363 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
4364
4365 * coding.c (make_conversion_work_buffer): Disable buffer
4366 modification hooks in the work buffer.
4367
4368 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4369
4370 * process.c (procfs_system_process_attributes): If `nread' has a
4371 negative value, assign zero to it.
4372
4373 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
4374
4375 * eval.c (Vdebug_on_error): Doc fix.
4376
4377 2008-12-05 Kenichi Handa <handa@m17n.org>
4378
4379 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4380 second character is a combining character.
4381
4382 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4383
4384 * process.c (procfs_system_process_attributes): Don't use cmd,
4385 cmdsize, and q without initializing them first.
4386
4387 2008-12-04 Jason Rumney <jasonr@gnu.org>
4388
4389 * w32font.c (w32font_draw): Initialize orig_clip before getting
4390 it, and delete it when finished.
4391
4392 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4393
4394 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4395 case when running as a daemon before detaching.
4396
4397 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
4398
4399 * w32.c (init_environment): Don't unload library shell32.dll.
4400
4401 2008-12-03 Kenichi Handa <handa@m17n.org>
4402
4403 * font.c (font_at): Set `multibyte' at first.
4404
4405 * coding.c (decode_coding_charset): Check type of an element of
4406 vector VALIDS.
4407 (encode_coding_emacs_mule): Be sure to set `code'.
4408
4409 * fontset.c (face_for_char): Handle invalid charset property correctly.
4410 (font_for_char): Likewise.
4411
4412 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
4413
4414 * font.c (Fopen_font): Compute pixel size correctly.
4415 (font_update_lface): Handle fonts with corrupted size specs,
4416 i.e. non-int and non-float.
4417
4418 * ftfont.c (ftfont_match): Initialize entity variable.
4419 (ftfont_resolve_generic_family): Avoid using uninitialized var.
4420 (ftfont_list_family): Initialize list var earlier.
4421
4422 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4423
4424 * xterm.c (x_draw_glyph_string): Fall back on
4425 underline_minimum_offset for underline position.
4426
4427 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4428
4429 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4430
4431 * character.c (c_string_width): Specify the type for LEN.
4432
4433 2008-12-03 Kenichi Handa <handa@m17n.org>
4434
4435 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
4436 (decode_coding_utf_8): Likewise.
4437 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4438 (produce_chars): Initialize consumed_chars to 0.
4439
4440 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4441
4442 * keyboard.c (make_lispy_position): Only use PT if the selected
4443 window is current.
4444
4445 2008-12-02 Andreas Schwab <schwab@suse.de>
4446
4447 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4448
4449 * doprnt.c (doprnt1): Fix size of charbuf.
4450
4451 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4452
4453 * keyboard.c (timer_check): Revert last change.
4454
4455 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
4456
4457 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4458
4459 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
4460
4461 * makefile.w32-in: Update dependencies.
4462 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4463
4464 2008-12-01 Andreas Schwab <schwab@suse.de>
4465
4466 * font.c (register_font_driver): Use xmalloc.
4467 (font_put_frame_data): Likewise.
4468
4469 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
4470
4471 * xfaces.c (realize_x_face): Make abort condition clearer.
4472
4473 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4474
4475 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
4476
4477 * keyboard.c (timer_check): After a timer runs, ensure that the
4478 selected window's buffer is current.
4479
4480 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
4481
4482 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4483 It was accidentally restored by the Unicode merge.
4484
4485 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4486
4487 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
4488
4489 * w32proc.c: Include "coding.h".
4490 (Fw32_short_file_name): Encode filename passed to Windows API.
4491 (Fw32_long_file_name): Encode filename passed to Windows API and
4492 decode back the result. (Bug#1433)
4493
4494 2008-11-29 Kenichi Handa <handa@m17n.org>
4495
4496 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4497 not before accessing it.
4498
4499 * charset.c (Fdefine_charset_internal): After calculating
4500 min_char, max_char, and fastmap, copy the charset structure again.
4501 (encode_char): Fix the previous change.
4502
4503 2008-11-28 Seiji Zenitani <zenitani@mac.com>
4504
4505 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4506
4507 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4508
4509 * nsterm.m (x_set_frame_alpha): New function.
4510
4511 2008-11-27 Eli Zaretskii <eliz@gnu.org>
4512
4513 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4514
4515 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
4516
4517 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4518 pointer to check_face_name.
4519
4520 2008-11-27 Kenichi Handa <handa@m17n.org>
4521
4522 * category.h (SET_CATEGORY_SET): Call set_category_set.
4523 (set_category_set): Extern it.
4524
4525 * category.c (hash_get_category_set): New function.
4526 (Fmodify_category_entry): Adjusted for the change of
4527 char_table_ref_and_range. Call hash_get_category_set to get a
4528 category set to store in the table.
4529
4530 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4531 Funify_charset.
4532
4533 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
4534 (DECODE_CHAR): Check if the decoder vector is ready.
4535 (ENCODE_CHAR): Check if the encoder char-table is ready.
4536 (maybe_unify_char): Extern it.
4537
4538 * charset.c (Vchar_unified_charset_table): Delete it.
4539 (inhibit_load_charset_map): New variable.
4540 (temp_charset_work): New variable.
4541 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4542 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4543 New macros.
4544 (load_charset_map): Meaning of control_flag changed. If
4545 inhibit_load_charset_map is nonzero, setup a table in
4546 temp_charset_work.
4547 (load_charset): New argument control_flag.
4548 (map_charset_for_dump): New function.
4549 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4550 map_charset_for_dump.
4551 (Fdefine_charset_internal): If the charset method is MAP, load
4552 mapping tables by calling load_charset.
4553 (Funify_charset): Don't load a mapping table but directly set
4554 Vchar_unify_table.
4555 (maybe_unify_char): New function.
4556 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4557 Handle the case of inhibit_load_charset_map being nonzero.
4558 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4559 Handle the case of inhibit_load_charset_map being nonzero.
4560 (Fclear_charset_maps): Just free temp_charset_work.
4561 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4562 variable.
4563
4564 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4565 change of char_table_ref_and_range.
4566 (char_table_ref_and_range): Change the meaning of argument FROM
4567 and TO. Now the caller must provide initial values for *FROM
4568 and *TO.
4569
4570 * fontset.c (fontset_add): Adjusted for the change of
4571 char_table_ref_and_range.
4572 (fontset_get_font_group): Likewise.
4573 (Ffontset_info): Likewise.
4574
4575 * keymap.c (describe_vector): Adjusted for the change of
4576 char_table_ref_and_range. For char-table, put boundary between
4577 non-ASCII and 8-bit characters.
4578
4579 * print.c (print_object): For bool-vector, delete unnecessary
4580 check of ASCII_BYTE_P.
4581
4582 2008-11-26 Jason Rumney <jasonr@gnu.org>
4583
4584 * w32font.c (w32font_open_internal): Don't include external
4585 leading in font height. (Bug#879)
4586
4587 2008-11-26 Glenn Morris <rgm@gnu.org>
4588
4589 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4590 redefinition with ifdef. (Bug#1383)
4591
4592 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4593
4594 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4595
4596 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4597
4598 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4599 New EmacsView methods.
4600 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4601 Fixes bug #1048,1357,1414.
4602
4603 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4604
4605 Fix bug #1362.
4606 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4607 is not an indexed color.
4608 * nsterm.m (free_indexed_color): Add argument checking.
4609 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4610
4611 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
4612
4613 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4614 Document confirm-after-completion value for
4615 minibuffer-completion-confirm.
4616
4617 2008-11-24 Jason Rumney <jasonr@gnu.org>
4618
4619 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4620 warning.
4621
4622 2008-11-23 Jason Rumney <jasonr@gnu.org>
4623
4624 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4625 restored before returning.
4626
4627 * w32font.c (check_face_name): New function.
4628 (add_font_entity_to_list): Use it to filter out common substituted
4629 fonts. (Bug#642)
4630
4631 2008-11-22 Martin Rudalics <rudalics@gmx.at>
4632
4633 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4634 confirm-nonexistent-file-or-buffer in doc-string.
4635
4636 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4637
4638 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4639 Fix copy/paste typo. Add checks.
4640
4641 2008-11-21 Kenichi Handa <handa@m17n.org>
4642
4643 * coding.c (detect_coding_iso_2022): Reject invalid composition
4644 sequence.
4645 (DECODE_COMPOSITION_START): If the current source is the last
4646 block, and the current composition doesn't end, regard this
4647 sequence as invalid.
4648 (decode_coding_iso_2022): Handle invalid composition sequence.
4649
4650 2008-11-20 Martin Rudalics <rudalics@gmx.at>
4651
4652 * window.c (coordinates_in_window): Don't return
4653 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4654 line when the window is not the rightmost one. (Bug#1372)
4655
4656 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4657
4658 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4659
4660 2008-11-15 Eli Zaretskii <eliz@gnu.org>
4661
4662 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4663 and bright_bg if noninteractive is non-zero.
4664
4665 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4666
4667 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4668 x_draw_glyph_string_background.
4669
4670 * w32term.c (x_draw_glyph_string): Likewise.
4671
4672 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
4673
4674 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4675 the next glyph string once past the overhang width.
4676
4677 * nsterm.m (ns_draw_glyph_string): Likewise.
4678
4679 * w32term.c (x_draw_glyph_string): Likewise.
4680
4681 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4682
4683 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4684 double file close.
4685
4686 2008-11-14 Martin Rudalics <rudalics@gmx.at>
4687
4688 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4689 dedicated status of window before attempting to display another
4690 buffer in it.
4691
4692 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
4693
4694 * msdos.c (Fmsdos_long_file_names):
4695 (syms_of_msdos) <dos-unsupported-char-glyph>:
4696 * dosfns.c (Fint86): Fix typos in docstrings.
4697
4698 2008-11-14 Eli Zaretskii <eliz@gnu.org>
4699
4700 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4701
4702 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4703
4704 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4705
4706 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4707
4708 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4709
4710 * frame.h: Negative alpha means "don't touch".
4711
4712 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4713
4714 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4715
4716 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4717
4718 * hftctl.c:
4719 * chpdef.h:
4720 * acldef.h: Remove files used only for systems no longer supported.
4721
4722 * Makefile.in: Fix .o alphabetical ordering.
4723 (hftctl.o): Remove dependency, file removed.
4724 (keymap.o, print.o): Depend on charset.h.
4725
4726 2008-11-10 Kenichi Handa <handa@m17n.org>
4727
4728 * character.c (Fget_byte): Fix and make it faster for unibyte target.
4729
4730 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
4731
4732 * dired.c (file_name_completion): If completion_ignore_case is
4733 enabled, ignore case when checking completion-regexp-list.
4734
4735 2008-11-08 Eli Zaretskii <eliz@gnu.org>
4736
4737 * vm-limit.c (get_lim_data): Fix last change.
4738
4739 2008-11-08 Kenichi Handa <handa@m17n.org>
4740
4741 * character.c (Fget_byte): New function.
4742 (syms_of_character): Defsubr Fget_byte.
4743
4744 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
4745
4746 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4747 cursor position is valid after scrolling.
4748
4749 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
4750
4751 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4752
4753 2008-11-06 Glenn Morris <rgm@gnu.org>
4754
4755 * xterm.c (handle_one_xevent): Don't let popup menus cause
4756 mouse-autoselect-window related window switching. (Bug#1261)
4757
4758 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4759
4760 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4761
4762 2008-11-04 Andreas Schwab <schwab@suse.de>
4763
4764 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4765
4766 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
4767
4768 * xfns.c (Fx_wm_set_size_hint): New function.
4769
4770 2008-11-03 Martin Rudalics <rudalics@gmx.at>
4771
4772 * textprop.c (Fprevious_single_char_property_change): Return 0
4773 when there's no change in a string. (Bug#1301)
4774
4775 2008-11-02 Martin Rudalics <rudalics@gmx.at>
4776
4777 * frame.c (do_switch_frame): New argument NORECORD passed to
4778 Fselect_window.
4779 (Fselect_frame): New argument NORECORD passed to
4780 do_switch_frame.
4781 (Fset_frame_selected_window): New argument NORECORD passed to
4782 Fselect_frame.
4783 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4784 in call of do_switch_frame.
4785 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4786 Handle NORECORD argument in call of Fselect_frame.
4787 * lisp.h (do_switch_frame, Fselect_frame)
4788 (Fset_frame_selected_window): Adjust declarations.
4789 * window.c (select_frame_norecord): New function.
4790 (run_window_configuration_change_hook): Use it and call
4791 Fselect_frame with NORECORD set.
4792 (Fselect_window): Pass NORECORD to Fselect_frame.
4793 (Fset_window_configuration): Handle NORECORD argument in call of
4794 do_switch_frame.
4795 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4796 Fset_frame_selected_window.
4797 * keyboard.c (command_loop_1): Handle NORECORD in call of
4798 Fselect_frame (currently ifdefd).
4799
4800 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4801
4802 * emacs.c (USAGE2): Untabify.
4803
4804 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4805
4806 * composite.c (fill_gstring_header): Fix copy/paste typo.
4807
4808 2008-10-31 Martin Rudalics <rudalics@gmx.at>
4809
4810 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4811 (Fother_window): Rename argument and rewrite doc-string.
4812 (select_window_norecord): Fix return value. (Bug#1276)
4813
4814 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
4815
4816 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4817 new frames overriding foreground for tooltips. Based on similar patch
4818 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4819
4820 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
4821
4822 * emacs.c (Fdaemon_initialized): Initialize nfd.
4823
4824 2008-10-29 Martin Rudalics <rudalics@gmx.at>
4825
4826 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4827 (Fwindow_text_height): Clarify doc-strings.
4828 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4829 doc-string of window-scroll-functions.
4830
4831 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4832
4833 * category.c (syms_of_category): Fix typo in docstring.
4834
4835 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
4836
4837 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4838 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4839 Fix typos in docstrings.
4840
4841 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4842
4843 * emacs.c (daemon_pipe): Make non-static.
4844 (IS_DAEMON): Move definition ...
4845 * lisp.h (IS_DAEMON): ... here.
4846 (daemon_pipe): Declare.
4847 (is_daemon): Remove.
4848 * dispnew.c (init_display): Use IS_DAEMON.
4849
4850 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4851
4852 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4853 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4854
4855 * emacs.c (is_daemon): Remove.
4856 (main): Don't set is_daemon.
4857 (IS_DAEMON): New macro.
4858 (Fdaemonp, Fdaemon_initialized): Use it.
4859 (Fdaemon_initialized): Write a char into the pipe to make sure the
4860 parent exits.
4861 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4862
4863 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
4864
4865 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4866 over-sized glyph, draw it with the default glyph width.
4867
4868 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4869 glyph, draw it with the default glyph width.
4870
4871 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4872 glyph, draw it with the default glyph width.
4873
4874 * xdisp.c (try_scrolling): When computing the distance from the
4875 scroll margin to PT, try moving some distance past the window
4876 bottom before giving up.
4877
4878 2008-10-27 Martin Rudalics <rudalics@gmx.at>
4879
4880 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4881 (Fset_window_buffer): Explain in doc-string that a window can be
4882 "strongly" dedicated to its buffer.
4883
4884 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4885
4886 * emacs.c (daemon_name): New variable.
4887 (main): Deal with --daemon=SERVER_NAME.
4888 (Fdaemonp): Return a name if one was passed to --daemon.
4889
4890 2008-10-26 Romain Francoise <romain@orebokech.com>
4891
4892 * emacs.c (daemon_pipe): New variable.
4893 (main): Create a pipe before forking, make the parent exit only after
4894 the child has closed its end of the pipe. Move closing the
4895 descriptors ...
4896 (Fdaemon_initialized): ... here. New function.
4897
4898 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4899
4900 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4901 the previous unoptimized table.
4902
4903 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4904 the distinction between non-nil and non-t value of `dedicated'.
4905
4906 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
4907
4908 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
4909 read_char_minibuf_menu_text is large enough to hold the menu string.
4910
4911 2008-10-25 Martin Rudalics <rudalics@gmx.at>
4912
4913 * window.c (Fget_buffer_window, Fdelete_windows_on)
4914 (Freplace_buffer_in_windows): Make buffer argument optional and
4915 rename to buffer_or_name.
4916
4917 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
4918
4919 * xdisp.c (handle_single_display_spec, handle_display_prop):
4920 Undo 2005-05-16 change.
4921 (handle_stop): Pop iterator if it's loaded with an empty string.
4922 (get_overlay_strings_1): Don't save iterator if it's loaded with
4923 an empty string (bug#1201).
4924
4925 2008-10-24 Kenichi Handa <handa@m17n.org>
4926
4927 * ftfont.c (ftfont_otf_features): Fix previous change.
4928 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4929 calling ftfont_otf_features.
4930
4931 2008-10-24 Kenichi Handa <handa@m17n.org>
4932
4933 * font.c (font_match_p): Fix for the case that a vector of
4934 characters is in script-representative-chars.
4935
4936 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
4937
4938 * dbusbind.c (xd_in_read_queued_messages): New variable.
4939 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
4940 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4941 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4942 macro. (Bug#1186).
4943
4944 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
4945
4946 * s/sol2-10.h: New file.
4947
4948 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
4949
4950 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4951 poor beast has survived 9+ years and the jump from xterm.c!).
4952
4953 2008-10-23 Martin Rudalics <rudalics@gmx.at>
4954
4955 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4956 Reword doc-string.
4957 (Fbury_buffer): In doc-string say what happens to the buffer's window.
4958
4959 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
4960
4961 * character.c (syms_of_character) <script-representative-chars>:
4962 <unicode-category-table>: Doc fixes.
4963
4964 2008-10-23 Noah Friedman <friedman@splode.com>
4965
4966 * coding.c (make_conversion_work_buffer): Check that
4967 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4968 Fget_buffer_create.
4969
4970 2008-10-23 Kenichi Handa <handa@m17n.org>
4971
4972 * font.c (font_add_log): Check the values of extra properties.
4973
4974 2008-10-22 Martin Rudalics <rudalics@gmx.at>
4975
4976 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4977 Reword doc-string.
4978 (Fset_window_parameter): Use NILP.
4979 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
4980 (Frecenter): Use "selected" instead of "current" window in doc-strings.
4981
4982 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
4983
4984 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4985
4986 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4987
4988 * nsfns.m (ns_appkit_version): New function.
4989 (x-server-version): Use it.
4990 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4991 (x-server-vendor): Don't check_ns().
4992
4993 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4994
4995 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
4996
4997 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4998 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4999
5000 2008-10-22 Kenichi Handa <handa@m17n.org>
5001
5002 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5003 scripts.
5004
5005 * category.c (word_boundary_p): Check scripts instead of charset.
5006 Handle nil value in word-separating-categories and
5007 word-combining-categories.
5008 (syms_of_category): Fix docstrings of word-separating-categories
5009 and word-combining-categories.
5010
5011 2008-10-21 Eli Zaretskii <eliz@gnu.org>
5012
5013 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5014 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5015
5016 2008-10-21 Martin Rudalics <rudalics@gmx.at>
5017
5018 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5019 Rename arg "buffer" to "buffer_or_name".
5020 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5021 it optional.
5022 (no_switch_window): Remove since the return value is not used.
5023 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
5024 Consider window as dedicated when Fwindow_dedicated_p returns a
5025 non-nil value.
5026 * lisp.h: Remove prototype for no_switch_window.
5027
5028 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5029
5030 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
5031 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
5032
5033 2008-10-21 Kenichi Handa <handa@m17n.org>
5034
5035 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5036 check Vlatin_extra_code_table.
5037
5038 2008-10-20 Eli Zaretskii <eliz@gnu.org>
5039
5040 * fileio.c (Fset_file_modes): Doc fix.
5041
5042 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
5043
5044 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5045 in arrays.
5046
5047 2008-10-19 Martin Rudalics <rudalics@gmx.at>
5048
5049 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5050 Mention kill-buffer in doc-string.
5051 (Fset_window_buffer): Reinsert tem check removed in last commit.
5052 (Fenlarge_window, Fshrink_window): Have argument names and
5053 doc-string follow Elisp manual more closely.
5054
5055 2008-10-18 Eli Zaretskii <eliz@gnu.org>
5056
5057 * fileio.c (Fset_file_modes): Doc fix.
5058
5059 2008-10-18 Martin Rudalics <rudalics@gmx.at>
5060
5061 * window.c (Fwindow_width, Fset_window_start)
5062 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
5063 (Fdelete_windows_on, Freplace_buffer_in_windows):
5064 Make doc-strings follow code and Elisp manual more closely.
5065 (Fwindow_dedicated_p): Make window argument optional.
5066 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5067 (Fset_window_buffer): Respect any non-nil dedicated value for
5068 window. Rename "buffer" argument to "buffer_or_name".
5069
5070 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
5071
5072 * m/sh3.h: New file, machine description for SuperH.
5073
5074 2008-10-17 Martin Rudalics <rudalics@gmx.at>
5075
5076 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5077
5078 2008-10-17 Kenichi Handa <handa@m17n.org>
5079
5080 * ftfont.c (ftfont_otf_features): Fix indexing
5081 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5082
5083 2008-10-16 Magnus Henoch <mange@freemail.hu>
5084
5085 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5086 (Fdbus_call_method_asynchronously): Ditto.
5087 This change makes C-h f display the argument list.
5088
5089 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
5090
5091 * fileio.c (Fexpand_file_name): Doc fix.
5092
5093 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5094 of :foreground and :background equivalent to unspecified (20.x
5095 compatibility).
5096
5097 2008-10-15 Eli Zaretskii <eliz@gnu.org>
5098
5099 * buffer.c (syms_of_buffer): Doc fix.
5100
5101 2008-10-14 Kenichi Handa <handa@m17n.org>
5102
5103 * font.c (font_clear_prop): When clearing font width, clear the
5104 average width field too.
5105
5106 2008-10-12 Andreas Schwab <schwab@suse.de>
5107
5108 * ftfont.c (ftfont_shape_by_flt): Make static.
5109 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5110
5111 * font.c: Don't include <m17n-flt.h>.
5112
5113 2008-10-10 Eli Zaretskii <eliz@gnu.org>
5114
5115 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5116
5117 2008-10-09 Eli Zaretskii <eliz@gnu.org>
5118
5119 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5120 away code.
5121
5122 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
5123
5124 * dispnew.c (update_text_area): Avoid looping due to large glyph
5125 overhangs (bug#1070).
5126
5127 2008-10-09 Kenichi Handa <handa@m17n.org>
5128
5129 * fontset.c (face_for_char): If face->fontset is negative, just
5130 return ascii_face.
5131
5132 * font.c (font_delete_unmatched): Fix previous change.
5133 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
5134
5135 2008-10-09 Martin Rudalics <rudalics@gmx.at>
5136
5137 * frame.c (Fraise_frame): On text-only terminals select frame in
5138 order to make it visible. (Bug#1061)
5139
5140 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
5141
5142 * fontset.c (fontset_find_font): Check frame validity.
5143
5144 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
5145
5146 * gtkutil.c (xg_display_open): Reset default display if none exists.
5147 (xg_display_close): Allow Emacs to close all displays (bug#985).
5148
5149 2008-10-06 Andreas Schwab <schwab@suse.de>
5150
5151 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
5152
5153 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
5154
5155 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
5156
5157 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
5158
5159 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5160 during initialization.
5161
5162 2008-10-04 Eli Zaretskii <eliz@gnu.org>
5163
5164 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5165 whole thing on MSDOS frames as well as on a TTY.
5166
5167 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5168 well as for TTY.
5169 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5170 well as on a TTY.
5171
5172 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5173 as well as for TTY.
5174
5175 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5176
5177 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5178 MSDOS frames as well.
5179
5180 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5181
5182 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5183 correct arguments.
5184 * menu.c (find_and_return_menu_selection): Add cast.
5185
5186 2008-10-03 Glenn Morris <rgm@gnu.org>
5187
5188 * emacs.c (USAGE1): Add --daemon.
5189
5190 2008-10-02 Eli Zaretskii <eliz@gnu.org>
5191
5192 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5193 100, so it's in percents as advertised.
5194
5195 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5196
5197 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5198 (ns_output.current_cursor, ns_output.desired_cursor)
5199 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5200 (FRAME_NEW_CURSOR_COLOR): Remove.
5201
5202 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
5203 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
5204 enumeration (HOLLOW_BOX_CURSOR, etc.).
5205
5206 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5207 (draw_window_cursor): Simplify code.
5208 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5209 Don't change cursor type. In latter, call rehighlight instead of doing
5210 updates manually.
5211 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5212 Use core Emacs cursor types.
5213
5214 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
5215
5216 2008-10-02 Martin Rudalics <rudalics@gmx.at>
5217
5218 * process.c (Faccept_process_output): Fix doc-string.
5219
5220 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5221
5222 * gmalloc.c (__sbrk): Also define for uClibc.
5223
5224 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5225 for uClibc.
5226
5227 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5228
5229 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5230 styles.
5231 (nsfont_open): Reenable the cache.
5232
5233 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5234
5235 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5236 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5237
5238 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5239
5240 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5241 a suspended terminal.
5242
5243 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
5244
5245 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5246
5247 2008-09-30 Eli Zaretskii <eliz@gnu.org>
5248
5249 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5250
5251 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
5252
5253 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5254 in a continued line coincides with a line beginning.
5255
5256 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5257
5258 * nsfont.m (nsfont_trait_distance): Fix bug.
5259 (nsfont_list): Return a list rather than a vector (syncs with Handa
5260 changes of 2008-05-14).
5261 (nsfont_open): Improve logging.
5262
5263 2008-09-29 Andreas Schwab <schwab@suse.de>
5264
5265 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5266
5267 2008-09-28 Martin Rudalics <rudalics@gmx.at>
5268
5269 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5270 name as char-resolve-modifiers.
5271 Reported by: Markus Triska <markus.triska@gmx.at>
5272
5273 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5274
5275 * dispnew.c (init_display): Return earlier when running as a daemon.
5276
5277 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5278
5279 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5280
5281 2008-09-27 Eli Zaretskii <eliz@gnu.org>
5282
5283 * composite.c (Fcomposition_get_gstring)
5284 (Fcompose_region_internal, Fcompose_string_internal)
5285 (Ffind_composition_internal): Doc fix.
5286 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5287 (syms_of_composite) <auto-composition-function>: Doc fix.
5288 (syms_of_composite) <composition-function-table>: Doc fix.
5289
5290 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
5291
5292 * search.c (wordify): New argument for lax word-ends.
5293 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5294
5295 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5296
5297 * lisp.h (is_daemon): Declare.
5298 * dispnew.c (init_display): Do not try to initialize the terminal
5299 when running as a daemon.
5300
5301 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
5302
5303 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5304 x_display_pixel_height.
5305
5306 2008-09-22 Martin Rudalics <rudalics@gmx.at>
5307
5308 * undo.c (record_point): Don't call Fundo_boundary for first
5309 change. (Bug#731)
5310
5311 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
5312
5313 * emacs.c (Fdaemonp): Doc fix.
5314
5315 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5316
5317 * emacs.c (main): Place #ifdef in the proper place.
5318
5319 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5320
5321 * emacs.c (standard_args): Add --daemon.
5322 (main): Disconnect from the terminal when --daemon is passed.
5323 (is_daemon): New variable.
5324 (Fdaemonp): New function.
5325 (syms_of_emacs): Defsubr it.
5326
5327 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
5328
5329 * xdisp.c (get_next_display_element): Handle string display
5330 correctly when checking for the end of a box run.
5331
5332 2008-09-20 Glenn Morris <rgm@gnu.org>
5333
5334 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5335 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5336 (Frename_file): Avoid copying to trash if a rename involves
5337 a delete. (Bug#964).
5338
5339 2008-09-20 Eli Zaretskii <eliz@gnu.org>
5340
5341 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5342 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5343 frames as well as termcap frames.
5344 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5345 get_named_tty.
5346
5347 2008-09-19 Eli Zaretskii <eliz@gnu.org>
5348
5349 * process.c (procfs_system_process_attributes): Fix cmdline in
5350 case /proc/PID/cmdline is empty.
5351
5352 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5353 x_display_pixel_height.
5354
5355 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
5356
5357 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5358
5359 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5360 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5361
5362 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5363
5364 * dispextern.h (struct it): Move line_wrap away from the middle of
5365 bitfields. Move voffset in struct iterator_stack_entry after the
5366 bitfields. Move tab_width near after another short.
5367
5368 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5369
5370 * frame.h (struct frame): Move alpha from the middle of bitfields.
5371
5372 * window.h (struct window): Move frozen_window_start_p after the
5373 rest of the bitfields to reduce padding.
5374
5375 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
5376
5377 * xterm.h (x_display_info): Remove `height' and `width' members.
5378
5379 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5380
5381 * w32term.h (w32_display_info): Remove `height', `width',
5382 `height_in', and `width_in' members.
5383
5384 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5385 New functions.
5386 (x_calc_absolute_position): Use them.
5387 (x_term_init): Omit removed `height' and `width' members.
5388
5389 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5390 New functions.
5391 (w32_read_socket, x_calc_absolute_position): Use them.
5392 (w32_initialize_display_info, w32_term_init): Omit removed members
5393 of w32_display_info.
5394
5395 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5396 New functions.
5397 (ns_initialize_display_info): Omit removed members of ns_display_info.
5398
5399 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5400 New functions.
5401 (x_calc_absolute_position): Use them.
5402 (x_term_init): Omit removed `height' and `width' members.
5403
5404 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5405 (compute_tip_xy):
5406 * frame.c (x_fullscreen_adjust):
5407 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5408 x_display_pixel_width.
5409
5410 2008-09-18 Kenichi Handa <handa@m17n.org>
5411
5412 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5413 (composition_compute_stop_pos): Fix handling of static composition.
5414 (Fcomposition_get_gstring): Check FROM and TO at first.
5415
5416 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5417
5418 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
5419 mixup (YAILOM).
5420
5421 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
5422
5423 * indent.c (Fvertical_motion): Use position reported by iterator
5424 instead of PT for determining screen motion (bug#943).
5425
5426 2008-09-17 Romain Francoise <romain@orebokech.com>
5427
5428 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5429
5430 2008-09-17 Kenichi Handa <handa@m17n.org>
5431
5432 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5433
5434 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5435 if necessary.
5436
5437 2008-09-16 Kenichi Handa <handa@m17n.org>
5438
5439 * coding.c (make_conversion_work_buffer): Avoid calling
5440 Fget_buffer_create if it is not necessary.
5441
5442 2008-09-15 Martin Rudalics <rudalics@gmx.at>
5443
5444 * window.c (Fselect_window): Don't update window_select_count and
5445 use_time when norecord is not nil.
5446
5447 2008-09-14 Kenichi Handa <handa@m17n.org>
5448
5449 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5450 specpdl_ptr.
5451
5452 2008-09-12 Kenichi Handa <handa@m17n.org>
5453
5454 * indent.c (scan_for_column): Don't handle automatic composition
5455 if the current buffer is not associated with a window.
5456
5457 * composite.c (composition_reseat_it): If the current buffer is
5458 not associated with a window, ignore the automatic composition.
5459 (find_automatic_composition): Likewise.
5460
5461 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5462
5463 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5464 (Fgpm_mouse_stop): Use it.
5465 * termhooks.h (close_gpm): Declare.
5466 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5467 connection if Gpm_GetEvent fails.
5468
5469 * window.c (set_window_buffer): Always preserve current-buffer.
5470
5471 2008-09-12 Glenn Morris <rgm@gnu.org>
5472
5473 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5474
5475 2008-09-11 Glenn Morris <rgm@gnu.org>
5476
5477 * charset.c (charset-map-path): Doc fix.
5478
5479 2008-09-10 Kenichi Handa <handa@m17n.org>
5480
5481 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5482
5483 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5484 compose a grapheme cluster with the preceding base glyph.
5485
5486 * composite.c (composition_compute_stop_pos): Fix previous change.
5487 Reset cmp_it->id to -1 at first.
5488
5489 2008-09-10 Glenn Morris <rgm@gnu.org>
5490
5491 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5492
5493 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
5494
5495 * keyboard.c (read_key_sequence): Reapply translation maps when
5496 switching keyboards.
5497
5498 2008-09-09 Kenichi Handa <handa@m17n.org>
5499
5500 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5501 characters.
5502
5503 * composite.c (FORWARD_CHAR): Fix calculation
5504 of (POSITION).pos_byte.
5505 (composition_compute_stop_pos): Limit the search of composition to
5506 at most 500 characters ahead. If we reach the limit or find a
5507 newline, set cmp_it->ch to -2 and return 0.
5508 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5509
5510 2008-09-08 Kenichi Handa <handa@m17n.org>
5511
5512 * indent.c (Fvertical_motion): Be sure to set
5513 it_overshoot_expected if it.cmp_it.id is non-negative.
5514
5515 2008-09-07 Andreas Schwab <schwab@suse.de>
5516
5517 * callproc.c (Fcall_process): Don't hold references to string data
5518 across garbage collection. Move initialisation of new_argv down
5519 to avoid compiler bug.
5520
5521 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5522
5523 * process.c (Fsystem_process_attributes): Doc fix.
5524
5525 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
5526
5527 * callproc.c (Fcall_process): Canonicalize current directory name.
5528
5529 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5530 iterator advances to the next line if the current line ends in a
5531 continued tab.
5532
5533 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5534
5535 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5536 member to point to cmp_from.
5537
5538 * xdisp.c: Doc fix for references to gidx data member.
5539
5540 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5541
5542 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5543
5544 2008-09-07 Kenichi Handa <handa@m17n.org>
5545
5546 * composite.c (FORWARD_CHAR): Check STOP after
5547 incrementing (POSITION).pos.
5548
5549 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5550
5551 * process.c (Fsystem_process_attributes): Doc fix.
5552
5553 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
5554
5555 * keyboard.c (Ftop_level): Doc fix.
5556
5557 2008-09-06 Eli Zaretskii <eliz@gnu.org>
5558
5559 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5560 minibuffer, don't let lower part of menu invade the echo area.
5561
5562 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5563 "char *q" to access menu text and advance through it. Revert the
5564 change that displayed ">" instead of ASCII character 0x10.
5565
5566 2008-09-05 Eli Zaretskii <eliz@gnu.org>
5567
5568 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5569 toggle boxes and radio buttons on MS-DOS as well.
5570
5571 2008-09-05 Kenichi Handa <handa@m17n.org>
5572
5573 * composite.c (autocmp_chars): Check lookback count.
5574 (composition_compute_stop_pos): Set cmp_it->lookback.
5575 (composition_reseat_it): Check lookback count.
5576 (struct position_record): New struct.
5577 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5578 (find_automatic_composition): New function.
5579 (composition_adjust_point): Use find_automatic_composition.
5580
5581 * dispextern.h (struct composition_it): New member lookback.
5582
5583 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
5584
5585 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5586 if moving by a single line.
5587
5588 2008-09-02 Andreas Schwab <schwab@suse.de>
5589
5590 * xterm.c (x_delete_display): Fix merge error.
5591
5592 * fileio.c (Fexpand_file_name): Remove unused variables.
5593
5594 2008-09-02 Eli Zaretskii <eliz@gnu.org>
5595
5596 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5597 storage on all platforms, not just on DOS_NT.
5598
5599 2008-09-02 Jason Rumney <jasonr@gnu.org>
5600
5601 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5602 Ensure mouse is not grabbed after menu is finished.
5603
5604 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
5605
5606 * xfaces.c (Finternal_set_alternative_font_family_alist)
5607 (Finternal_set_alternative_font_registry_alist): Properly copy
5608 entire alist structure.
5609
5610 2008-09-01 Kenichi Handa <handa@m17n.org>
5611
5612 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
5613 representative chars of the script is a vector.
5614 (ftfont_list): Handle the case where the representative chars of
5615 the script is a vector.
5616
5617 * character.c (syms_of_character): Docstring of
5618 script-representative-chars fixed.
5619
5620 2008-08-31 Eli Zaretskii <eliz@gnu.org>
5621
5622 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5623 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5624 the menu. Allocate larger buffer for `text', to account for
5625 possible ^C characters.
5626
5627 2008-08-31 Martin Rudalics <rudalics@gmx.at>
5628
5629 * xdisp.c (prepare_menu_bars): Don't call
5630 Vwindow_size_change_functions with arg Qt.
5631
5632 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5633
5634 * font.h (font_range):
5635 * fileio.c (report_file_error):
5636 * composite.c (composition_update_it): Yet another int/Lisp_Object
5637 mixup (YAILOM).
5638
5639 2008-08-30 Glenn Morris <rgm@gnu.org>
5640
5641 * data.c (Fmake_variable_frame_local): Doc fix.
5642
5643 * frame.c (Fmodify_frame_parameters): Doc fix.
5644
5645 2008-08-30 Eli Zaretskii <eliz@gnu.org>
5646
5647 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5648 needed by GetTokenInformation.
5649 (w32_system_process_attributes): Check return values of all system
5650 APIs.
5651
5652 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5653 only when the state changes.
5654 (IT_update_begin, IT_update_end): Add termscript trace.
5655
5656 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5657 clipboard is unavailable. Set dst to NULL if it doesn't point to
5658 malloc'ed data.
5659 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5660 passing random values to xfree.
5661
5662 * dispnew.c (init_display): Set `tty's association in frame's
5663 parameters alist to the name of the terminal device, if that is known.
5664
5665 2008-08-29 Jason Rumney <jasonr@gnu.org>
5666
5667 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5668
5669 2008-08-29 Eli Zaretskii <eliz@gnu.org>
5670
5671 * composite.c (fill_gstring_body): Avoid compiler warnings.
5672
5673 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5674 LGLYPH_SET_CODE to avoid compiler warnings.
5675
5676 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
5677
5678 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5679
5680 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5681 LGLYPH_SET_CODE.
5682
5683 2008-08-29 Kenichi Handa <handa@m17n.org>
5684
5685 * fileio.c (report_file_error): Don't downcase the first character
5686 of errstring if it is still unibyte.
5687
5688 2008-08-29 Kenichi Handa <handa@m17n.org>
5689
5690 These changes are to re-implement the automatic composition so
5691 that it doesn't use text properties.
5692
5693 * Makefile.in (ftfont.o): Depend on composite.h.
5694 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5695
5696 * character.h (Vunicode_category_table): Extern it.
5697
5698 * character.c (Vunicode_category_table): New variable.
5699 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5700
5701 * chartab.c (optimize_sub_char_table): Perform more greedy
5702 optimization.
5703
5704 * composite.h (enum composition_method):
5705 Delete COMPOSITION_WITH_GLYPH_STRING.
5706 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5707 (Vcomposition_function_table): Extern it.
5708 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5709 (composition_gstring_put_cache, composition_gstring_from_id)
5710 (composition_gstring_p, composition_gstring_width)
5711 (composition_compute_stop_pos, composition_reseat_it)
5712 (composition_update_it, composition_adjust_point): Extern them.
5713 (Fcomposition_get_gstring): EXFUN it.
5714
5715 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
5716 (Vcomposition_function_table)
5717 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
5718 (gstring_hash_table, gstring_work, gstring_work_headers):
5719 New variables.
5720 (gstring_lookup_cache, composition_gstring_put_cache)
5721 (composition_gstring_from_id, composition_gstring_p)
5722 (composition_gstring_width, fill_gstring_header)
5723 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5724 (composition_reseat_it, composition_update_it)
5725 (composition_adjust_point, Fcomposition_get_gstring): New functions.
5726 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5727 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5728 Defsubr compostion_get_gstring.
5729
5730 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5731 cmp_id.
5732 (struct glyph_string): Delete the member gidx. New members
5733 cmp_id, cmp_from, and cmp_to.
5734 (enum it_method): Delete GET_FROM_COMPOSITION.
5735 (struct composition_it): New struct.
5736 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5737 Delete c, len, cmp_id, cmp_len in u.comp.
5738
5739 * font.h (enum lgstring_indices): Delete it.
5740 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
5741 (enum lglyph_indices): Likewise.
5742 (font_range): Adjust extern.
5743 (font_fill_lglyph_metrics): Extern it.
5744
5745 * font.c (QCf): New variable.
5746 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5747 (font_prepare_composition): Delete this function.
5748 (font_range): Type and arguments changed.
5749 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5750 (font_fill_lglyph_metrics): New function.
5751 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
5752 (syms_of_font): DEFSYM QCf. Delete defsubr for
5753 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5754 Defsubr Sfont_shape_gstring.
5755
5756 * fontset.h (font_for_char): Extern it.
5757
5758 * fontset.c (font_for_char): New function.
5759
5760 * ftfont.c: Include composite.h.
5761 (ftfont_resolve_generic_family): Add langset "en" to pattern.
5762 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5763
5764 * indent.c: Include composite.h and dispextern.h.
5765 (check_composition): Delete this function.
5766 (scan_for_column): Handle composition by
5767 composition_compute_stop_pos, composition_reseat_it, and
5768 composition_update_it.
5769 (compute_motion): Likewise.
5770 (Fvertical_motion): Fix checking of composition.
5771
5772 * keyboard.c (adjust_point_for_property): Check composition by
5773 composition_adjust_point.
5774
5775 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
5776 struct glyph_string.
5777
5778 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5779 (append_composite_glyph): Adjust for the change of struct it and
5780 struct glyph.
5781 (produce_composite_glyph): Likewise.
5782
5783 * w32term.c (x_draw_composite_glyph_string_foreground):
5784 Adjust for the change of struct glyph_string.
5785 (x_draw_glyph_string): Likewise.
5786
5787 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5788 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5789
5790 * xdisp.c: Include font.h.
5791 (it_props): Delete the entry for Qauto_composed.
5792 (init_iterator): Initialize it->cmp_it.id to -1.
5793 (compute_stop_pos): Call composition_compute_stop_pos.
5794 (face_before_or_after_it_pos): Adjust for the change of struct it.
5795 (handle_auto_composed_prop): Delete it.
5796 (handle_composition_prop): Handle only static composition.
5797 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5798 from xassert. Initialize it->cmp_it.stop_pos.
5799 (push_it): Adjust for the change of struct it.
5800 (pop_it): Likewise.
5801 (get_next_element): Delete next_element_from_composition.
5802 (CHAR_COMPOSED_P): New macro.
5803 (get_next_display_element): For automatic composition, get a face
5804 from the font in the glyph-string.
5805 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
5806 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
5807 (next_element_from_string): Check if the character at the current
5808 position is composed by CHAR_COMPOSED_P.
5809 (next_element_from_buffer): Likewise.
5810 (next_element_from_composition): Adjust for the change of struct it.
5811 Update it->cmp_it.
5812 (dump_glyph): Adjust for the change of struct glyph.
5813 (fill_composite_glyph_string): Adjust for the change of struct
5814 it and struct glyph. Don't handle automatic composition here.
5815 (fill_gstring_glyph_string): New function.
5816 (x_get_glyph_overhangs): Handle automatic composition.
5817 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
5818 (BUILD_GSTRING_GLYPH_STRING): New macro.
5819 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5820 automatic composition.
5821 (append_composite_glyph): Adjust for the change of struct it and
5822 struct glyph.
5823 (x_produce_glyphs): Adjust for the change of struct it.
5824
5825 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5826 the change of struct glyph_string.
5827 (x_draw_glyph_string): Likewise.
5828
5829 2008-08-29 Glenn Morris <rgm@gnu.org>
5830
5831 * buffer.c (word-wrap): Doc fix.
5832 * xdisp.c (truncate-partial-width-windows): Doc fix.
5833 Increase default to 50.
5834
5835 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
5836
5837 * xdisp.c (update_tool_bar_unwind): New function.
5838 (update_tool_bar): Temporarily set selected frame before building
5839 tool-bar items.
5840
5841 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
5842
5843 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5844 snprintf, respectively.
5845 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5846
5847 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
5848
5849 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5850 LDFLAGS to GNUstep CC invocation.
5851
5852 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
5853
5854 * indent.c (Fvertical_motion): Revert last change. Handle the
5855 general case where we are moving forward, and PT spans multiple
5856 screen lines.
5857
5858 * eval.c (find_handler_clause): Temporarily increase
5859 max-lisp-eval-depth while printing the backtrace buffer, to
5860 guarantee that help-mode code can run.
5861
5862 2008-08-27 Eli Zaretskii <eliz@gnu.org>
5863
5864 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5865 colors under -rv.
5866 (IT_set_frame_parameters): Don't swap foreground and background
5867 colors if `(reverse . t)' is present in the frame properties.
5868 (internal_terminal_init): Call init_frame_faces only for the
5869 initial frame.
5870
5871 2008-08-27 Andreas Schwab <schwab@suse.de>
5872
5873 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5874
5875 2008-08-27 Andreas Schwab <schwab@suse.de>
5876
5877 * search.c (search_buffer): Set char_base to zero only at the end.
5878
5879 2008-08-27 Kenichi Handa <handa@m17n.org>
5880
5881 * fileio.c (report_file_error): Fix handling of multibyte error string.
5882
5883 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5884
5885 * xterm.c (x_term_init): Temporarily hide the partially
5886 initialized terminal while calling vendor-specific-keysyms.
5887
5888 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5889
5890 * msdos.c (internal_terminal_init): Most initializations done only
5891 once, especially initial_screen_colors[] and termscript open.
5892
5893 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5894
5895 * eval.c (Fcondition_case): Doc fix.
5896
5897 * widgetprv.h (EmacsFramePart): Change font member to the new font
5898 struct.
5899
5900 * widget.c: Include character.h and font.h for XSETFONT.
5901 (setup_frame_gcs): Compute X font id from font struct, just once.
5902
5903 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5904
5905 * term.c (get_named_tty): Fix last change.
5906
5907 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5908
5909 * indent.c (Fvertical_motion): If moving forward starting from a
5910 multi-line string, move the iterator to the last line of that string.
5911
5912 2008-08-25 Eli Zaretskii <eliz@gnu.org>
5913
5914 * frame.c (do_switch_frame): Mark previously displayed frame as
5915 obscured for FRAME_MSDOS_P frames as well.
5916
5917 2008-08-24 Eli Zaretskii <eliz@gnu.org>
5918
5919 * frame.c (make_terminal_frame): Initialize f->terminal,
5920 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5921 Set the top frame to newly created frame.
5922 (Fmake_terminal_frame): Reuse the_only_display_info.
5923
5924 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5925 estimating available memory.
5926
5927 2008-08-23 David Reitter <david.reitter@gmail.com>
5928
5929 * nsterm.m (ns_draw_window_cursor): Don't call
5930 NSDisableScreenUpdates and NSEnableScreenUpdates on
5931 non-NS_IMPL_COCOA systems.
5932
5933 2008-08-23 Andreas Schwab <schwab@suse.de>
5934
5935 * process.c (procfs_system_process_attributes): Fix use of
5936 uninitialized variables.
5937
5938 2008-08-23 Eli Zaretskii <eliz@gnu.org>
5939
5940 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5941
5942 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5943 calling tty-set-up-initial-frame-faces.
5944
5945 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5946 Allow MSDOS frames along with X frames.
5947
5948 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5949 addition to output_termcap.
5950
5951 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5952
5953 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5954 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5955 highlight.
5956
5957 * process.c [!subprocesses]: Define QCname.
5958 (syms_of_process): Intern and staticpro it.
5959
5960 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5961 Adjust for changes in encoding/decoding routines.
5962 Use encode_coding_object and decode_coding_object instead of
5963 encode_coding and decode_coding.
5964
5965 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
5966
5967 * dosfns.c: Include frame.h before termhooks.h.
5968 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5969 variable termscript.
5970
5971 * s/msdos.h (USER_FULL_NAME): Define.
5972 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5973
5974 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5975 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5976 pw->pw_gecos.
5977
5978 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5979 SELECTED_FRAME as additional (1st) argument.
5980 (tty_read_avail_input): Handle output_msdos_raw in
5981 addition to output_termcap.
5982
5983 * msdos.c: Include frame.h before termhooks.h.
5984 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5985 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5986 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5987 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5988 (IT_set_terminal_modes, IT_reset_terminal_modes)
5989 (IT_set_frame_parameters): Use tty->termscript instead of a global
5990 variable termscript.
5991 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5992 global variable terminal_coding. Don't refer to
5993 Vnonascii_translation_table.
5994 (internal_terminal_init): Set Vwindow_system in current_kboard.
5995 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5996 Announce date and time of session start, if termscript is open.
5997 Don't zero out the_only_display_info (it is done in
5998 term.c:init_tty). Open termscript only of not already open.
5999 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
6000 here instead of dos_ttraw. Don't initialize display if this is an
6001 initial tty. Don't set FRAME_FONT.
6002 (Vwindow_system_version): Bump to 23.
6003 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6004 is available, set up mouse_position_hook.
6005 (dos_ttraw, IT_set_terminal_modes): If called with initial
6006 terminal, do nothing.
6007 (IT_set_frame_parameters): Handle the Qtty_type frame
6008 parameter by calling internal_terminal_init.
6009 (dos_set_window_size, show_mouse_face)
6010 (clear_mouse_face, IT_note_mode_line_highlight)
6011 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6012 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6013 (initialize_msdos_display): New function.
6014 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6015 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6016 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6017 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
6018 Accept additional argument: a pointer to a frame. Update all callers.
6019 (request_sigio, unrequest_sigio): Don't define, now defined on
6020 sysdep.c.
6021 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6022
6023 * term.c [MSDOS]: Include msdos.h.
6024 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6025 conditional to DOS_NT. Allow only one call to this function in a
6026 session. Don't allocate a new struct tty_display_info; instead,
6027 reuse the_only_display_info. Call get_tty_size to get screen
6028 dimensions. Call init_baud_rate to set bad_rate.
6029 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6030 (Fsuspend_tty) [MSDOS]: Don't close input and output.
6031 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
6032 (get_tty_terminal, get_named_tty, Ftty_type)
6033 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6034 output_termcap.
6035 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6036 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
6037 only when subprocesses are supported.
6038
6039 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6040 f->output_data.x.
6041 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6042 terminal devices.
6043
6044 * msdos.h: Remove definition of struct x_display_info and struct
6045 x_output.
6046 (FRAME_FONT): Use output_data.tty.
6047 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
6048 (struct x_display_info): Rename from display_info. Update all users in
6049 msdos.c.
6050 (struct x_output): Remove background_pixel and foreground_pixel.
6051 (the_only_display_info): Rename from the_only_x_display.
6052 (dos_ttraw): Update prototype.
6053
6054 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6055 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6056
6057 2008-08-23 Jason Rumney <jasonr@gnu.org>
6058
6059 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6060 (fn_TIFFSetDirectory): New library function used.
6061 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6062 (tiff_load): Use :index to select among multiple images. Set count
6063 property when multiple images exist.
6064 (gif_format): Use :index, not :image.
6065
6066 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
6067
6068 * xdisp.c (try_scrolling): Check INT_MAX instead of
6069 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6070 to obtain INT_MAX.
6071
6072 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6073
6074 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6075
6076 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6077
6078 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6079 GNUstep library location.
6080
6081 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
6082
6083 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6084 before using it.
6085
6086 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6087
6088 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6089
6090 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6091 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6092 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6093 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6094 (EmacsApp-cursor_blink_handler): Remove declaration.
6095 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6096 match 01 Feb 2008 changes in xterm.c.
6097 (ns_read_socket): Add cast to avoid warning.
6098 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6099 GNUstep.
6100
6101 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
6102
6103 * xselect.c (x_get_foreign_selection): Return nil if desired
6104 selection could not be obtained, instead of signalling an error.
6105
6106 2008-08-20 David Reitter <david.reitter@gmail.com>
6107
6108 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6109 * nsterm.m: Remove ns-specific code for cursor blinking.
6110 (ns_draw_window_cursor): Clear cursor properly rather than
6111 redrawing the area. Respect width of bar cursors.
6112 These changes enable the use of generic blink-cursor-mode and
6113 generic cursor types in NS and support smooth cursor movements (do
6114 not blink off after command).
6115 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6116 Nextstep, too.
6117
6118 2008-08-19 Kenichi Handa <handa@m17n.org>
6119
6120 * font.c (Vfont_log_deferred): New variable.
6121 (font_add_log): Check Vfont_log_deferred.
6122 (font_deferred_log): New function.
6123
6124 * font.h (font_deferred_log): Extern it.
6125
6126 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6127 for sorting.
6128 (face_for_char): Use deferred log.
6129
6130 2008-08-18 Kenichi Handa <handa@m17n.org>
6131
6132 * fontset.c (face_for_char): Add font log.
6133
6134 * font.c (font_add_log): Add the font properties :script, :lang,
6135 and :otf in the log.
6136
6137 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
6138
6139 * xdisp.c: Remove dead code.
6140 (handle_invisible_prop, next_overlay_string): Defer call to
6141 setup_for_ellipsis.
6142 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6143
6144 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
6145
6146 * xfaces.c (lookup_derived_face): Properly handle possible zero
6147 return value of get_lface_attributes.
6148 (merge_faces): Don't tell lookup_derived_face to signal an error
6149 if face is not found.
6150
6151 * dired.c (Fdirectory_files): Doc fix.
6152
6153 * process.c (make_process): Initialize kill_without_query struct
6154 member.
6155
6156 2008-08-15 Eli Zaretskii <eliz@gnu.org>
6157
6158 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6159 Alternative calculation of totphys for Visual Studio 6.
6160
6161 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6162
6163 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6164 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6165 All users changed.
6166 (stat): Only root directory passed to GetDriveType. Allow RAM
6167 disk as well as local fixed disk when w32-get-true-file-attributes
6168 is set to `local'.
6169 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6170 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6171 (w32_cached_id, w32_add_to_cache): New functions.
6172 (get_name_and_id): Look account names in the cache before calling
6173 lookup_account_sid.
6174 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6175 New initialization flags.
6176 (globals_of_w32): Initialize them to zero.
6177 (w32_system_process_attributes): Use w32_cached_id and
6178 w32_add_to_cache.
6179
6180 2008-08-14 Lawrence Mitchell <wence@gmx.li>
6181
6182 * lread.c (Fread_char, Fread_char_exclusive): If no character
6183 event is read before timeout is reached, return nil, rather than
6184 converting to a number.
6185
6186 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
6187
6188 * fns.c (use_dialog_box): Doc fix.
6189
6190 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6191 on OS X.
6192
6193 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
6194
6195 * frame.c (Qns_parse_geometry): New var.
6196 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6197
6198 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
6199
6200 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6201 space character in calculating tabs.
6202
6203 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6204
6205 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6206
6207 2008-08-10 Glenn Morris <rgm@gnu.org>
6208
6209 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6210 silence gcc "limited range of data type" warnings in some
6211 make_fixnum_or_float calls.
6212
6213 2008-08-09 Eli Zaretskii <eliz@gnu.org>
6214
6215 * w32.c (w32_system_process_attributes): If the process does not
6216 exist, return nil.
6217
6218 * w32.c: Include thelp32.h, psapi.h and coding.h.
6219 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6220 declarations.
6221 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6222 (Process32Next_Proc): New typedefs.
6223 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6224 (g_b_init_process32_next, g_b_init_open_thread_token)
6225 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6226 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6227 (g_b_init_get_process_working_set_size)
6228 (g_b_init_global_memory_status_ex): New static variables.
6229 (globals_of_w32): Initialize them.
6230 (create_toolhelp32_snapshot, process32_first, process32_next)
6231 (open_thread_token, impersonate_self, revert_to_self)
6232 (get_process_memory_info, get_process_working_set_size)
6233 (global_memory_status, global_memory_status_ex): New wrapper
6234 functions.
6235 (w32_list_system_processes, w32_system_process_attributes)
6236 (enable_privilege, restore_privilege, ltime, process_times):
6237 New functions.
6238 (convert_time_raw): New function.
6239 (convert_time): Remove conversion of FILETIME into time in 100
6240 nsec units, call convert_time_raw instead.
6241
6242 * process.h (w32_list_system_processes, w32_system_process_attributes):
6243 Add prototypes.
6244 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6245 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6246 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6247 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6248
6249 * process.c (Fsystem_process_attributes): Doc fix.
6250
6251 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
6252
6253 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6254 a continued multi-char glyph; if so, advance to the actual glyph.
6255
6256 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6257
6258 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6259
6260 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6261 (.m.o): Use it.
6262 * config.in: Regenerate.
6263
6264 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
6265
6266 * xdisp.c (redisplay_window): Revert last change.
6267 (try_window): Check bottom scroll margin too.
6268
6269 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6270
6271 * config.in: Regenerate.
6272
6273 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6274 -list-load-path-shadows'.
6275 (nsgui.h): Reduce number of things depending on it.
6276
6277 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
6278
6279 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6280 instead of window-end which does the wrong thing at eob.
6281 (try_cursor_movement): Minor optimization.
6282 (redisplay_window): If scroll margin is defined, don't assume
6283 window doesn't need scrolling.
6284
6285 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6286
6287 * config.in: Regenerate.
6288
6289 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6290 (mostlyclean): Don't delete *.d under NS.
6291
6292 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6293
6294 2008-08-06 Kenichi Handa <handa@m17n.org>
6295
6296 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6297
6298 2008-08-06 Andreas Schwab <schwab@suse.de>
6299
6300 * config.in: Regenerate.
6301
6302 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
6303
6304 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6305 forcing a window start.
6306
6307 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6308 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6309
6310 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6311
6312 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6313 argument.
6314
6315 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
6316
6317 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6318 <scroll-down-aggressively, before-change-functions>:
6319 <after-change-functions>: Reflow docstrings.
6320
6321 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6322 Ken Raeburn <raeburn@gnu.org>
6323
6324 Dock menu customization, based on a patch by Ken Raeburn, plus some
6325 other fixes.
6326 * nsmenu.m (dockMenu): New variable.
6327 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6328
6329 * nsterm.h (dockMenu): Declare.
6330
6331 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6332 (ns_term_init): Initialize dockMenu.
6333 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6334 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6335 left.
6336
6337 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6338
6339 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6340
6341 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6342
6343 * config.in: Regenerate.
6344
6345 2008-08-04 Seiji Zenitani <zenitani@mac.com>
6346
6347 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6348
6349 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6350
6351 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6352
6353 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6354
6355 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6356
6357 * keyboard.h: Comment an #endif.
6358
6359 * lisp.h (have_menus_p): Adjust comment.
6360
6361 * menu.c (find_and_return_menu_selection): Fix comparison with
6362 client_data.
6363
6364 * nsmenu.m (popup_activated_flag): New variable.
6365 (popup_activated): New function.
6366 (menu-or-popup-active-p): New exported lisp definition.
6367 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6368 when popup done.
6369 (ns_popup_dialog): Set popup_activated_flag.
6370
6371 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6372 version for GNUstep (handled by conditional typedef in nsterm.m).
6373 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6374 in rgb.txt).
6375
6376 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6377
6378 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6379
6380 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6381
6382 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6383 shortcircuit if popup_activated like GTK and X toolkit.
6384
6385 * m/inter386.h: Change DARWIN to DARWIN_OS.
6386
6387 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6388 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6389 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6390 comment on NO_SOCK_SIGIO.
6391
6392 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
6393
6394 * nsterm.m (windowDidResize): Remove stopModal call.
6395
6396 2008-08-03 Andreas Schwab <schwab@suse.de>
6397
6398 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6399 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6400
6401 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
6402
6403 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6404 Don't use uninitialized pointer variable when using getrlimit.
6405
6406 2008-08-02 Jason Rumney <jasonr@gnu.org>
6407
6408 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6409
6410 2008-08-02 Eli Zaretskii <eliz@gnu.org>
6411
6412 * alloc.c (NSTATICS): Bump to 0x640.
6413
6414 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6415
6416 * lisp.h: Add prototype for directory_files_internal.
6417
6418 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6419 New functions.
6420 (syms_of_process): Defsubr them. Add initializations for various
6421 Q* symbols used in procfs_system_process_attributes.
6422 (procfs_list_system_processes, procfs_system_process_attributes)
6423 [HAVE_PROCFS]: New functions.
6424 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6425 (procfs_get_total_memory): New functions.
6426
6427 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6428
6429 * xfaces.c (Fx_load_color_file): Fix previous change;
6430 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6431
6432 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
6433
6434 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6435
6436 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6437
6438 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6439
6440 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
6441
6442 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6443
6444 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6445 define NSApplicationDelegateReplySuccess.
6446 (EmacsView -converstationIdentifier): Use long instead of
6447 NSInteger for GNUstep, since it doesn't have NSInteger.
6448
6449 * xmenu.c: Revert last change.
6450
6451 * keyboard.h: Fix last change.
6452
6453 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6454
6455 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6456 on Windows.
6457
6458 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6459
6460 Warning clearing and clean-up in NS port.
6461 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6462 Add prototypes.
6463 * nsgui.h (FACE_DEFAULT): Remove, unused.
6464 (XGCValues): Change colors to unsigned long.
6465 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6466 nsterm.m.
6467 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6468 (ns_list_fonts): Remove, unused.
6469 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6470 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6471 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6472 (nsfont_draw): Compare face colors to 0, not nil.
6473 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6474 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6475 (-addSubmenuWithTitle:): Use NSMenuItem class.
6476 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6477 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6478 (ns_clip_to_row): Make gc arg a BOOL.
6479 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6480 ns_clip_to_row() call.
6481 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6482 used). Cast FRAME_FONT assignments.
6483 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6484 (ns_string_to_lispmod): Change arg to const char.
6485 (ns_term_init): Use NSMenuItem class.
6486 (EmacsApp -openFile:): Move to different section of file.
6487 (EmacsApp -application:openFiles:): Don't return a value, call
6488 -replyToOpenOrPrint:.
6489 (EmacsView -keyDown:): Fix up cast.
6490 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6491 (EmacsView -menuDown:): Cast tag in call to
6492 find_and_call_menu_selection().
6493 (ns_list_fonts): Remove, unused.
6494 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6495 (ns_fontname_to_xlfd): Make static.
6496 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6497 Remove prototypes (now in keyboard.h).
6498 (next_menubar_widget_id): Remove, unused.
6499 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6500 Remove prototypes (now in keyboard.h).
6501 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6502
6503 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6504
6505 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6506 (floatfns.o): Depend on syssignal.h.
6507 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6508
6509 * systty.h: Fix previous change that removed BSD_TERMIOS.
6510 Add comments to #ifdefs.
6511
6512 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6513
6514 * w32fns.c (w32-load-color-file): Remove.
6515 (x-open-connection): Use renamed Fx_load_color_file.
6516 * xfaces.c (x-load-color-file): Add.
6517 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6518 Emacs.clr.
6519 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6520
6521 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
6522
6523 * dbusbind.c (Fdbus_call_method_asynchronously)
6524 (Fdbus_method_error_internal): New defuns.
6525 (xd_read_message): Handle also reply messages.
6526 (Vdbus_registered_functions_table): Extend docstring.
6527
6528 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
6529
6530 * keyboard.c (gobble_input): Fix previous change.
6531
6532 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6533
6534 * bitmaps/README:
6535 * xfns.c:
6536 * termcap.c:
6537 * term.c:
6538 * syswait.h:
6539 * systty.h:
6540 * systime.h:
6541 * syssignal.h:
6542 * sysdep.c:
6543 * process.h:
6544 * process.c:
6545 * print.c:
6546 * ndir.h:
6547 * lread.c:
6548 * keyboard.c:
6549 * getpagesize.h:
6550 * floatfns.c:
6551 * fileio.c:
6552 * emacs.c:
6553 * doc.c:
6554 * dispnew.c:
6555 * dired.c:
6556 * data.c:
6557 * callproc.c:
6558 * buffer.c:
6559 * README:
6560 * Makefile.in:
6561 * s/template.h:
6562 * s/msdos.h:
6563 * m/vax.h: Remove VMS support.
6564 * s/vms.h:
6565 * vlimit.h:
6566 * uaf.h:
6567 * temacs.opt:
6568 * param.h:
6569 * ioctl.h: Remove file.
6570
6571 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6572
6573 * s/ms-w32.h (MULTI_KBOARD): Remove.
6574 * xterm.c:
6575 * xselect.c:
6576 * xfns.c:
6577 * window.c:
6578 * w32term.c:
6579 * w32fns.c:
6580 * terminal.c:
6581 * termhooks.h:
6582 * term.c:
6583 * sysdep.c:
6584 * keyboard.h:
6585 * keyboard.c:
6586 * frame.h:
6587 * frame.c:
6588 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6589 * config.in: Regenerate.
6590
6591 2008-07-30 Jason Rumney <jasonr@gnu.org>
6592
6593 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6594
6595 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6596 (w32font_open_internal): Get unicode version of textmetrics.
6597 Don't enable or disable glyph indices here.
6598 (w32font_open): Disable use of glyph indices.
6599
6600 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6601
6602 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
6603
6604 * minibuf.c (Vread_buffer_function): Doc fix.
6605
6606 2008-07-30 John Paul Wallington <jpw@pobox.com>
6607
6608 * minibuf.c (read_buffer_completion_ignore_case): New var.
6609 (Fread_buffer): Use it.
6610
6611 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6612
6613 * systty.h (sensemode): Remove empty #if. Remove reference to
6614 BSD_TERMIOS, unused.
6615
6616 * sysdep.c: Remove reference to DGUX.
6617 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6618
6619 * config.in: Regenerate.
6620
6621 2008-07-30 Jason Rumney <jasonr@gnu.org>
6622
6623 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6624
6625 2008-07-29 Jason Rumney <jasonr@gnu.org>
6626
6627 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6628 is populated.
6629 (uniscribe_encode_char): Always use uniscribe.
6630 Avoid using context if cache is populated.
6631
6632 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6633
6634 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6635 open menu.
6636
6637 * gtkutil.c (menu_nav_ended): Remove.
6638 (create_menus): Remove signal connect for menu_nav_ended.
6639
6640 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
6641
6642 * xdisp.c (redisplay_window): Check return value of
6643 compute_window_start_on_continuation_line before forcing a window
6644 start.
6645
6646 2008-07-28 Jason Rumney <jasonr@gnu.org>
6647
6648 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6649
6650 * w32term.c (w32_enable_unicode_output, cleartype_active):
6651 Remove obsolete display options.
6652 (x_draw_glyph_string_background): Don't use old cleartype_active
6653 workaround.
6654 (w32_initialize): Remove cleartype_active initialization.
6655 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6656
6657 2008-07-28 Andreas Schwab <schwab@suse.de>
6658
6659 * lisp.h (init_weak_hash_tables, syms_of_font)
6660 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6661 (remove_hash_entry): Don't declare.
6662 * eval.c (maybe_call_debugger): Make static and move before use.
6663 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6664 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6665 * xterm.h (x_set_frame_alpha): Declare.
6666
6667 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6668
6669 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6670 (create_menus): Connect selection-done to menu_nav_ended.
6671
6672 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6673
6674 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6675 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6676 parameter with read of 'alpha' one.
6677 (Qns_frame_parameter): Remove.
6678 * nsselect.m (selection-coding-system)
6679 (next-selection-coding-system, Vselection_coding_system)
6680 (Vnext_selection_coding_system): Drop.
6681
6682 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6683
6684 * nsfns.m (do-applescript, do_applescript): Rename to
6685 ns-do-applescript, ns_do_applescript, and move within file.
6686
6687 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6688
6689 Remove support for Mac Carbon.
6690 * mactoolbox.c:
6691 * macterm.h:
6692 * macterm.c:
6693 * macselect.c:
6694 * macmenu.c:
6695 * macgui.h:
6696 * macfns.c:
6697 * mac.c: Remove file.
6698 * s/darwin.h:
6699 * m/intel386.h:
6700 * xfaces.c:
6701 * xdisp.c:
6702 * window.c:
6703 * tparam.c:
6704 * termhooks.h:
6705 * termcap.c:
6706 * term.c:
6707 * syssignal.h:
6708 * sysselect.h:
6709 * sysdep.c:
6710 * process.c:
6711 * lread.c:
6712 * lisp.h:
6713 * keyboard.c:
6714 * image.c:
6715 * fringe.c:
6716 * frame.h:
6717 * frame.c:
6718 * fontset.c:
6719 * font.h:
6720 * font.c:
6721 * fns.c:
6722 * fileio.c:
6723 * emacs.c:
6724 * dispnew.c:
6725 * dispextern.h:
6726 * config.in:
6727 * atimer.c:
6728 * Makefile.in: Remove code for Carbon.
6729
6730 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6731
6732 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6733
6734 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6735
6736 * macterm.h (kCGBitmapByteOrder32Host): New define for
6737 non-universal SDKs.
6738
6739 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6740 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6741
6742 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6743 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6744
6745 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6746
6747 * w32inevt.c: Include dispextern.h.
6748
6749 2008-07-26 Andreas Schwab <schwab@suse.de>
6750
6751 * print.c (print_object): Fix off-by-one in last change.
6752
6753 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
6754
6755 * term.c (syms_of_term): Don't initialize default_orig_pair,
6756 default_set_foreground and default_set_background on Windows.
6757
6758 2008-07-25 Jason Rumney <jasonr@gnu.org>
6759
6760 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6761 ScriptItemize. Clean up return value checking. Remove unused
6762 variables.
6763 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6764 shaping engine.
6765
6766 * w32font.c (w32font_has_char): Handle the case where we can't
6767 determine the script for a character.
6768
6769 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6770
6771 * term.c (syms_of_term): Initialize default_orig_pair,
6772 default_set_foreground, and default_set_background.
6773
6774 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6775 clash (bug#86).
6776 (getloadavg): Callers changed.
6777
6778 * image.c (svg_load_image): Fix last change.
6779 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6780 image size is valid. Use g_object_unref instead of deprecated
6781 rsvg_handle_free to free rsvg handle.
6782 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6783
6784 2008-07-25 Jason Rumney <jasonr@gnu.org>
6785
6786 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6787 surrogates before looking up glyph index.
6788 (w32font_text_extents): Encode as surrogates if falling back to
6789 functions that need UTF-16 wide chars.
6790
6791 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6792 BMP as surrogates before looking up glyph index.
6793
6794 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6795
6796 * image.c (svg_load_image): Check for failure in return value of
6797 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6798
6799 2008-07-25 Jason Rumney <jasonr@gnu.org>
6800
6801 * w32font.c (Fx_select_font): Reverse sense of second arg.
6802
6803 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6804
6805 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6806 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6807
6808 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6809 (PURESIZE): Use it.
6810
6811 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6812
6813 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6814 * m/alpha.h (TEXT_END):
6815 * m/ibmrs6000.h (TEXT_END):
6816 * m/macppc.h (TEXT_END):
6817 * s/darwin.h (TEXT_END):
6818 * s/msdos.h (TEXT_END): Remove, unused.
6819 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6820 * s/cygwin.h: Remove comment.
6821
6822 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6823 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6824 * m/intel386.h (DOT_GLOBAL_START):
6825 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6826 (USG): Remove, file not used on USG platforms.
6827
6828 * Makefile.in (HAVE_X11): Remove empty #else.
6829
6830 2008-07-24 Andreas Schwab <schwab@suse.de>
6831
6832 * fileio.c (Finsert_file_contents): Properly adjust undo list
6833 after format conversion.
6834
6835 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6836
6837 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6838 (menu_nav_ended): Remove.
6839 (create_menus): Remove signal connect for menu_nav_ended.
6840 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6841 create_menus.
6842 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6843
6844 2008-07-23 Jason Rumney <jasonr@gnu.org>
6845
6846 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6847 with opened font.
6848 (w32font_open): Set font type to gdi.
6849
6850 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6851
6852 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6853
6854 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6855 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6856 defines it.
6857 * unexec.c (ADDR_CORRECT): Define unconditionally.
6858
6859 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6860
6861 * unexec.c: Remove code depending on !COFF and USG, the file is
6862 not used for such systems.
6863
6864 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6865 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6866 (LD_SWITCH_SYSTEM_1): Remove, update users.
6867
6868 * s/darwin.h (DATA_END):
6869 * m/intel386.h (DATA_END):
6870 * m/ibmrs6000.h (DATA_END):
6871 * m/alpha.h (DATA_END): Remove, unused.
6872
6873 * config.in: Regenerate.
6874 * s/ms-w32.h (subprocesses): Define unconditionally.
6875 * s/template.h (subprocesses): Update comment.
6876 * s/vms.h (subprocesses):
6877 * s/usg5-4.h (subprocesses):
6878 * s/hpux10-20.h (subprocesses):
6879 * s/gnu-linux.h (subprocesses):
6880 * s/cygwin.h (subprocesses):
6881 * s/bsd-common.h (subprocesses):
6882 * s/aix4-2.h (subprocesses):
6883 * s/darwin.h (subprocesses): Do not define, defined by default now.
6884
6885 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6886 Remove all references.
6887 (temacs): Add GNUstep specific ld flags.
6888
6889 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6890 similarly to what X does.
6891
6892 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6893
6894 * nsfns.m (x-list-fonts): Remove.
6895 (syms_of_nsfns): Drop the x-list-fonts declaration.
6896 * nsterm.m: Get rid of remaining "//" comments.
6897
6898 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
6899
6900 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6901
6902 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6903 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6904 (Fns_own_selection_internal, Fx_disown_selection_internal)
6905 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6906
6907 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6908 ... */' style of docstrings. Doc fixes.
6909
6910 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6911
6912 * terminfo.c (UP, BC, PC): Undo previous change.
6913
6914 * nsfns.m: Rename ns prefixed functions/variables to the
6915 corresponding x versions. Update references.
6916
6917 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6918
6919 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6920
6921 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6922
6923 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6924 Remove forwarding functions.
6925 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6926 non-static.
6927 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6928 non-static.
6929 (ns_frame_parm_handlers): Use the new names.
6930 (syms_of_nsfns): Move to the end of file.
6931
6932 * nsterm.m (syms_of_nsterm): Move to the end of file.
6933
6934 * dispnew.c (init_display): Remove code for X10.
6935
6936 2008-07-22 Jason Rumney <jasonr@gnu.org>
6937
6938 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6939 bare drive.
6940
6941 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6942
6943 * nsterm.m (syms_of_nsterm): Remove debugging println.
6944
6945 2008-07-22 David Reitter <david.reitter@gmail.com>
6946
6947 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6948 Carbon implementation of the same functionality: execute arbitrary
6949 AppleScript code.
6950
6951 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6952
6953 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6954 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6955 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6956 (Fx_display_mm_height, Fx_display_mm_width)
6957 (Fx_display_backing_store, Fx_display_visual_class)
6958 (Fx_display_save_under, Fx_open_connection)
6959 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6960 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6961 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6962 (Fx_display_pixel_width, Fx_display_pixel_height)
6963 (Fx_display_usable_bounds, Fx_display_planes)
6964 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6965 ... */' style of docstrings.
6966
6967 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6968
6969 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6970 on this platform.
6971 (mips):
6972 * m/iris4d.h (mips): Do not define.
6973 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6974
6975 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6976
6977 * image.c:
6978 * nsfns.m:
6979 * nsselect.m:
6980 * nsterm.h:
6981 * nsterm.m: Rename ns prefixed functions/variables to the
6982 corresponding x versions. Update references.
6983
6984 * m/ibms390x.h (NO_REMAP): Do not undefine.
6985
6986 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6987
6988 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
6989
6990 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6991 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6992 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6993 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6994 (Fns_display_mm_height, Fns_display_mm_width)
6995 (Fns_display_backing_store, Fns_display_visual_class)
6996 (Fns_display_save_under, Fns_open_connection)
6997 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6998 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6999 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7000 (Fns_display_pixel_width, Fns_display_pixel_height)
7001 (Fns_display_usable_bounds, Fx_display_planes)
7002 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7003
7004 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7005
7006 * print.c (print_object): Check print_depth before searching for
7007 circularities.
7008
7009 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
7010
7011 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7012 only sprintf.
7013
7014 2008-07-21 Kenichi Handa <handa@m17n.org>
7015
7016 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7017
7018 2008-07-20 Andreas Schwab <schwab@suse.de>
7019
7020 * syntax.c (find_start_pos, find_start_value)
7021 (find_start_value_byte, find_start_begv, find_defun_start)
7022 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7023
7024 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7025
7026 * s/sol2-3.h: Insert contents of s/sol2.h.
7027 (LD_SWITCH_SYSTEM): Remove redundant definition.
7028 * s/sol2.h: Remove, unused.
7029
7030 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7031
7032 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7033
7034 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7035
7036 * Makefile.in (ns_appdir): Fix typo in find command.
7037
7038 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7039
7040 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7041
7042 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7043 added not supported anymore.
7044
7045 * s/usg5-4-2.h (LIBS_SYSTEM):
7046 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7047
7048 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7049 * s/lynxos.h (GETPGRP_NO_ARG):
7050 * s/hpux10-20.h (NO_SIOCTL_H):
7051 * s/gnu.h (GETPGRP_NO_ARG):
7052 * s/gnu-linux.h (NO_SIOCTL_H):
7053 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7054 * s/cygwin.h (GETPGRP_NO_ARG):
7055 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7056 (C_DEBUG_SWITCH): Remove duplicate definition.
7057
7058 * m/ibms390.h: Remove boilerplate comments.
7059
7060 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7061
7062 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7063 (wait_reading_process_output): Remove code for SunOS, platform not
7064 supported anymore. Use SOLARIS2 instead of sun.
7065
7066 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7067
7068 * font.c (font_open_by_name): Under NS, default lface height to zero.
7069 (font_open_for_lface): Under NS, set size based on frame fontsize.
7070 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7071 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7072
7073 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7074
7075 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7076 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7077 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7078 YES/NO.
7079 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7080 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7081 * Makefile.in (clean): Clear out build destination dir.
7082
7083 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7084
7085 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7086 xterm, xselect.
7087 * lisp.h: Remove declaration of hash_remove.
7088 * nsgui.h: Remove redefinitions of hash_remove.
7089 * fns.c (hash_remove): Rename to hash_remove_from_table.
7090
7091 2008-07-19 Seiji Zenitani <zenitani@mac.com>
7092
7093 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7094 strdup() the family UTF8String before modifying it.
7095
7096 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7097
7098 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7099 NS_FACE_BACKGROUND with 0 instead of nil.
7100 * nsfont.m (nsfont_draw): Same.
7101
7102 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
7103
7104 * nsfns.m (ns_set_background_color): Fix crash.
7105
7106 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
7107
7108 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7109
7110 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7111
7112 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7113
7114 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7115
7116 * gtkutil.c: Include <config.h> instead of "config.h".
7117
7118 * lisp.h (Foverlay_buffer): Add EXFUN.
7119
7120 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7121 child process to complete child_setup. Undo 2005-09-21 change.
7122
7123 * s/darwin.h: Mention setsid after vfork.
7124
7125 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7126
7127 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7128 Depend on macgui.h.
7129
7130 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7131 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7132
7133 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7134 and f19.
7135 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7136
7137 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7138 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7139 Remove enumerators.
7140
7141 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7142 Check if FACE_FROM_ID returns NULL.
7143
7144 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7145
7146 * w32inevt.c (change_frame_size): Remove extern declaration.
7147 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7148 change_frame_size.
7149
7150 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7151
7152 * getloadavg.c: Revert last change (2008-07-15).
7153
7154 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7155
7156 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
7157 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
7158 from configure.
7159
7160 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7161
7162 * s/sol2.h:
7163 * s/sol2-4.h: Reorganize conditionals.
7164
7165 * ecrt0.c: Remove code depending on m68000, not used anymore.
7166
7167 * fns.c (hash_remove): Make static.
7168 * lisp.h (hash_remove): Don't prototype.
7169
7170 * m/ibmrs6000.h:
7171 * m/ibms390x.h:
7172 * m/macppc.h: Remove boilerplate comments.
7173
7174 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7175 Solaris, which does not need them.
7176
7177 * m/vax.h: Remove comments about unsupported systems.
7178
7179 * s/darwin.h: Reorganize ifdefs.
7180
7181 2008-07-17 Andreas Schwab <schwab@suse.de>
7182
7183 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7184
7185 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7186
7187 Use SDATA. Follow coding convention of placing operators at
7188 beginning of next line rather than end of previous line, and placing
7189 spaces around infix operators.
7190
7191 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7192 in case it was defined already.
7193 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7194 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7195 ns_default.
7196 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7197 Lisp_Objects.
7198 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7199 (ns_defined_color, ns_color_to_lisp): Declare.
7200 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7201 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7202 it's accepted even with USE_LISP_UNION_TYPE.
7203 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7204 (update_frame_tool_bar): Remove apparently obsolete tests for
7205 non-integerness of f->tool_bar_lines.
7206 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7207 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7208 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7209 (nsfont_open): Don't confuse NULL for Qnil.
7210 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7211 * menu.h (find_and_call_menu_selection):
7212 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7213 (find_and_return_menu_selection): Always return something.
7214 * frame.h: Include dispextern.h for Display_Info.
7215 (display_x_get_resource): Declare.
7216
7217 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7218
7219 * syntax.c: Remove stdio.h include accidentally introduced in
7220 Emacs.app commit.
7221 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7222 NS_IMPL_COCOA.
7223 * keyboard.c (handle_async_input, input_available_signal): Remove
7224 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7225
7226 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7227
7228 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7229 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7230 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7231 Use SDATA.
7232
7233 * keymap.c: Remove all NS-specific code.
7234 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7235 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7236 where_is_preferred_modifier, return a different value depending on how
7237 preferred is the binding.
7238 (where_is_internal): Adjust accordingly.
7239 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7240 Adjust to new preferred_sequence_p.
7241 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7242 * keyboard.c (parse_solitary_modifier): Not static any more.
7243 * keyboard.h (parse_solitary_modifier): Declare.
7244
7245 2008-07-16 Andreas Schwab <schwab@suse.de>
7246
7247 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7248 of easymenu.
7249
7250 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
7251
7252 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7253 that we don't move off the line.
7254
7255 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7256
7257 * keyboard.c (Qsuper): Remove.
7258 (parse_menu_item): Don't call where_is_internal specially for NS.
7259
7260 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7261
7262 * s/gnu-linux.h: Remove boilerplate comments.
7263
7264 * m/alpha.h (__ELF__): Consolidate conditions.
7265
7266 * m/m68k.h (linux): Use GNU_LINUX instead.
7267 Remove boilerplate comments.
7268
7269 * m/intel386.h: Undo refactoring from previous change.
7270 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7271 too, remove dead code.
7272 (linux): Use GNU_LINUX instead.
7273
7274 2008-07-16 Jason Rumney <jasonr@gnu.org>
7275
7276 * w32gui.h: Repeat 26 June changes lost by last change.
7277
7278 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7279
7280 * systty.h: Remove code for Aix on 386, unsupported platform.
7281
7282 * s/ms-w32.h: Remove boilerplate comments.
7283 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7284
7285 * s/gnu-linux.h (TERM): Remove support.
7286 (HAVE_SYSVIPC): Remove, unused.
7287 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7288 for this system.
7289
7290 * process.c: Remove support for IRIS, unused.
7291 Remove support for TERM, not relevant anymore.
7292
7293 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7294 used with the definition.
7295
7296 * s/aix4-2.h (static): Do not undef.
7297
7298 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7299 only used on Aix.
7300 (HAVE_SYSVIPC): Remove, unused.
7301
7302 * m/hp800.h (CANNOT_DUMP): Do not undef.
7303
7304 * m/alpha.h: Fix comment.
7305
7306 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7307 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7308 used by this configuration.
7309 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7310 * unexec.c: Remove code depending on HPUX and
7311 USG_SHARED_LIBRARIES, not used with this file. Remove code
7312 depending on IRIS, unused. Remove if 0-ed code.
7313
7314 * s/template.h: Remove comments about static.
7315
7316 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7317 Remove if 0-ed code.
7318 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7319 were the same as the default.
7320 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7321 Remove boilerplate comments.
7322 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7323 (HAVE_SYSVIPC): Remove, unused.
7324 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7325
7326 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7327 Remove boilerplate comments.
7328 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7329 Remove boilerplate comments.
7330 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7331 Remove boilerplate comments.
7332 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7333
7334 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7335 USG systems which do not use DATA_SEG_BITS.
7336 Refactor code. Remove boilerplate comments.
7337
7338 * m/ibms390.h:
7339 * m/m68k.h:
7340 * s/bsd-common.h:
7341 * s/cygwin.h:
7342 * s/darwin.h:
7343 * s/freebsd.h:
7344 * s/gnu.h:
7345 * s/msdos.h: Remove boilerplate comments.
7346
7347 * m/iris4d.h: Remove boilerplate comments and code for systems that
7348 do not use this file.
7349 (IRIS_4D): Remove, unused.
7350
7351 * m/mips.h: Remove boilerplate comments and code for systems that
7352 do not use this file.
7353 (SIGN_EXTEND_CHAR):
7354 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7355 * unexmips.c: Remove file, unused.
7356
7357 * editfns.c (Fuser_full_name): Replace the only use of
7358 USER_FULL_NAME with its value.
7359 * config.in: Regenerate.
7360
7361 2008-07-16 David Reitter <david.reitter@gmail.com>
7362
7363 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7364 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7365
7366 2008-07-16 Glenn Morris <rgm@gnu.org>
7367
7368 * emacs.c (system-type): Doc fix.
7369
7370 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7371
7372 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7373 If the cache doesn't work, let's fix it, rather than work around it.
7374
7375 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7376
7377 * Makefile.in: Correct additions for nsfont.o in last commit.
7378 * nsfont.m: New file (forgot last commit).
7379
7380 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7381
7382 * callproc.c (set_initial_environment): Initialize
7383 Vprocess_environment under CANNOT_DUMP (fixes crash when
7384 batch-compiling for bootstrap).
7385
7386 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7387 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7388
7389 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7390 fix crash due to different init order.
7391
7392 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7393
7394 Changes and additions for NeXTstep windowing system (Cocoa and
7395 GNUstep) support.
7396
7397 * Makefile.in:
7398 * config.in: Support defines and build commands for NS port.
7399 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7400 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7401 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7402 windowing.
7403 (struct face): Add synth_ital field.
7404 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7405 (init_display): Initialize Vinitial_window_system to "ns" when so
7406 compiled.
7407 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7408 (display_arg): Use under NS.
7409 (main): Under NS, allocate autorelease pool and handle command line
7410 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7411 (standard_args): Add NS-specific args.
7412 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7413 * font.c (DEFAULT_ENCODING): New variable.
7414 (font_find_for_lface): Use it.
7415 (syms_of_font): Load syms_of_nsfont under NS.
7416 * font.h: Declare nsfont_driver when compiled under NS.
7417 * fontset.c: When compiling under NS, include nsterm.h.
7418 (fontset_from_font): Autoconstruct fontset under NS.
7419 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7420 symbol, document and use it.
7421 (do_switch_frame): When for_deletion under Cocoa, add
7422 Fraise_frame(Qnil).
7423 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7424 (x_get_arg): Allow "yes" and "no" as boolean values.
7425 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7426 Qright under Cocoa.
7427 (focus-follows-mouse): Default to 0 under NS.
7428 * frame.h (enum output_method): Add output_ns.
7429 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7430 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7431 (FRAME_WINDOW_P): NS-specific definition.
7432 * fringe.c (max_used_fringe_bitmap): Make public.
7433 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7434 (getloadavg): Use NeXT code under descendant OS's.
7435 * image.c (includes and header section, x_create_bitmap_from_data)
7436 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7437 (image_background_transparent, x_clear_image_1)
7438 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7439 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7440 (x_to_xcolors, x_from_xcolors, x_disable_image)
7441 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7442 other GUIs, including XPM support using code originally written for
7443 Carbon GUI.
7444 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7445 using NS API.
7446 (image_ascent): Use font metrics macros instead of direct struct field
7447 access.
7448 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7449 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7450 Also, handle NS as GTK for menu bar purposes.
7451 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7452 toolkit where they differ.
7453 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7454 use cachelist, still needed under NS.
7455 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7456 (struct widget_value): Define it here for menu.c.
7457 * keymap.c (includes): Include modifier internals.
7458 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7459 NS.
7460 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7461 support for preferring sequences using certain modifiers, specified by
7462 the FIRSTONLY argument.
7463 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7464 under NS GNUstep implementation.
7465 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7466 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7467 * menu.c: Include nsterm.h under NS.
7468 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7469 (free_menubar_widget_tree_value, update_submenu_strings)
7470 (find_and_call_menu_selection): Treat NS as X and NT.
7471 (find_and_return_menu_selection): New function, used for popup menus.
7472 * nsgui.h:
7473 * nsterm.h:
7474 * nsfns.m:
7475 * nsimage.m:
7476 * nsmenu.m:
7477 * nsselect.m:
7478 * nsterm.m: New files.
7479 * process.c (wait_reading_process_output): Under NS, call ns_select()
7480 instead of plain select().
7481 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7482 beginning of buffer.
7483 * sysselect.h (init_process): Rename when compiling under Cocoa to
7484 avoid name conflict.
7485 * termhooks.h (display_info): Add ns_display_info to union.
7486 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7487 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7488 COCOA environment.
7489 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7490 unexec() signature. (Note, this will dump, but the resulting file
7491 crashes; unexosx is used instead; keeping around for reference and
7492 possible aid in getting dump working under GNUstep.)
7493 * w32gui.h (button_type, widget_value): Remove definitions (now in
7494 keyboard.h).
7495 * window.c: Include nsterm.h when compiling under NS.
7496 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7497 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7498 other GUI windowing systems.
7499 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7500 GTK.
7501 (x_consider_frame_title): Under NS, set icon type and frame
7502 modified-state indicator; use ns_set_name_as_filename() when using
7503 formatted title.
7504 (update_window_cursor): Make public when compiling under NS.
7505 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7506 (hourglass_atimer, Vhourglass_delay
7507 * xfaces.c (header section, init_frame_faces, clear_font_table)
7508 (defined_color, unload_color, x_face_list_fonts)
7509 (prepare_face_for_display): Add NS support parallel to other GUIs.
7510 Emulate GCs like other non-X GUIs.
7511 (split_font_name): Don't lowercase font name under NS.
7512 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7513 under NS.
7514 * s/darwin.h: Add support for compilation under NS.
7515
7516 2008-07-15 Jason Rumney <jasonr@gnu.org>
7517
7518 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7519 (w32_show_hourglass): Rename from show_hourglass.
7520 (w32_hide_hourglass): Rename from hide_hourglass.
7521 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7522 (Vhourglass_delay): Declare extern.
7523 (hourglass_started): Remove.
7524
7525 * xdisp.c (Vhourglass_delay): Remove static.
7526 (hourglass_started, start_hourglass, cancel_hourglass):
7527 Don't include these versions on WINDOWSNT.
7528
7529 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7530
7531 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7532 variables (formerly in xfns.c).
7533 (show_hourglass, hide_hourglass): New prototypes (same).
7534 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7535 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7536 in xfns.c).
7537 (syms_of_xdisp): Declare/initialize display-hourglass,
7538 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7539 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7540 formerly in xfns.c.
7541 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7542 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7543 (start_hourglass, cancel_hourglass): Remove.
7544 (show_hourglass, hide_hourglass): Remove prototypes and static
7545 modifiers.
7546 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7547 hourglass_atimer, hourglass_shown_p declaration/initialization.
7548 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7549 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7550 (start_hourglass, cancel_hourglass): Remove.
7551 (show_hourglass, hide_hourglass): Remove prototypes and static
7552 modifiers.
7553 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7554 hourglass_atimer, hourglass_shown_p declaration/initialization.
7555 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7556 (DEFAULT_HOURGLASS_DELAY): Remove.
7557 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7558 hourglass_shown_p declaration/initialization.
7559
7560 2008-07-14 Jason Rumney <jasonr@gnu.org>
7561
7562 * w32fns.c (w32_get_arg): Remove wrapper function.
7563 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7564 directly.
7565 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7566
7567 2008-07-14 Kenichi Handa <handa@m17n.org>
7568
7569 * xfont.c (xfont_open): Add workaround for X's bug.
7570
7571 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7572
7573 * fontset.c: Include <stdio.h> unconditionally.
7574
7575 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
7576
7577 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7578 for filtering.
7579
7580 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7581
7582 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7583
7584 * m/macppc.h:
7585 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7586
7587 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7588 (SPECIAL_EMACS_INT):
7589 * m/ia64.h (SPECIAL_EMACS_INT):
7590 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7591 * s/gnu.h (NLIST_STRUCT):
7592 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7593 * s/gnu-linux.h (LINUX):
7594 * s/msdos.h (HAVE_FACES):
7595 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7596
7597 * systty.h:
7598 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7599 anymore.
7600
7601 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7602
7603 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7604 always defined as int.
7605
7606 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7607 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7608 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7609 * s/freebsd.h (HAVE_WAIT_HEADER):
7610 * s/bsd-common.h (HAVE_UNION_WAIT):
7611 * s/aix4-2.h (HAVE_WAIT_HEADER):
7612 * m/mips.h (HAVE_UNION_WAIT):
7613 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7614 (COFF, static): Do not define, they are undefined later in the file.
7615
7616 * process.c (update_status): Don't use a union.
7617 (status_convert):
7618 (sigchld_handler): Use int instead of WAITTYPE.
7619
7620 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
7621
7622 * indent.c (Fvertical_motion): Restore hscroll before moving to
7623 goal column.
7624
7625 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7626
7627 * lisp.h: Remove left over code.
7628
7629 2008-07-11 Andreas Schwab <schwab@suse.de>
7630
7631 * lisp.h: Fix logic in last change.
7632
7633 * menu.h: New file.
7634 * menu.c: Include it.
7635 * xmenu.c: Likewise.
7636 * Makefile.in: Update dependencies.
7637
7638 2008-07-11 Kenichi Handa <handa@m17n.org>
7639
7640 * fontset.c (fontset_from_font): Cancel the previous change.
7641
7642 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7643
7644 * lisp.h:
7645 * w32heap.c:
7646 * emacs.c:
7647 * alloc.c: Replace all references of NO_UNION_TYPE with
7648 USE_LISP_UNION_TYPE.
7649
7650 * m/xtensa.h (NO_UNION_TYPE):
7651 * m/vax.h (NO_UNION_TYPE):
7652 * m/template.h (NO_UNION_TYPE):
7653 * m/sparc.h (NO_UNION_TYPE):
7654 * m/mips.h (NO_UNION_TYPE):
7655 * m/macppc.h (NO_UNION_TYPE):
7656 * m/m68k.h (NO_UNION_TYPE):
7657 * m/iris4d.h (NO_UNION_TYPE):
7658 * m/intel386.h (NO_UNION_TYPE):
7659 * m/ibms390x.h (NO_UNION_TYPE):
7660 * m/ibms390.h (NO_UNION_TYPE):
7661 * m/ibmrs6000.h (NO_UNION_TYPE):
7662 * m/ia64.h (NO_UNION_TYPE):
7663 * m/hp800.h (NO_UNION_TYPE):
7664 * m/arm.h (NO_UNION_TYPE):
7665 * m/amdx86-64.h (NO_UNION_TYPE):
7666 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7667 defining it the same.
7668
7669 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
7670
7671 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7672
7673 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7674
7675 * fileio.c:
7676 * sysdep.c
7677 * systty.h:
7678 * m/ibmrs6000.h:
7679 * m/iris4d.h:
7680 * s/aix4-2.h:
7681 * s/freebsd.h:
7682 * s/gnu-linux.h:
7683 * s/hpux10-20.h:
7684 * s/hpux11.h:
7685 * s/netbsd.h:
7686 * s/sol2-3.h:
7687 * s/sol2-4.h:
7688 * s/sol2.h:
7689 * s/usg5-4.h:
7690 * s/vms.h: Remove references to unused variables.
7691
7692 2008-07-10 Andreas Schwab <schwab@suse.de>
7693
7694 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7695 pattern before matching the generic family.
7696
7697 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7698
7699 * unexec.c:
7700 * s/vms.h:
7701 * s/usg5-4-2.h:
7702 * s/sol2-5.h:
7703 * s/freebsd.h:
7704 * s/darwin.h: Remove dead code.
7705
7706 * m/template.h:
7707 * m/sparc.h:
7708 * m/mips.h:
7709 * m/m68k.h:
7710 * m/iris4d.h:
7711 * m/intel386.h:
7712 * m/ibms390x.h:
7713 * m/ibms390.h:
7714 * m/ia64.h:
7715 * m/hp800.h:
7716 * m/arm.h:
7717 * m/amdx86-64.h: Remove dead code and references to unused
7718 and compiler defined symbols.
7719
7720 * unexmips.c:
7721 * unexelf.c: Remove references to desupported systems.
7722
7723 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7724
7725 * m/powermac.h: Remove boilerplate comments.
7726 (NO_REMAP): Remove unused definition.
7727
7728 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7729 define them.
7730
7731 2008-07-10 Kenichi Handa <handa@m17n.org>
7732
7733 * xfont.c (xfont_open): Log the reason of failure.
7734
7735 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7736
7737 * fontset.c (fontset_get_font_group):
7738 * font.c (font_check_otf): Specify argument types.
7739
7740 2008-07-09 Kenichi Handa <handa@m17n.org>
7741
7742 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7743 non-ASCII char is found.
7744
7745 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7746 (reorder_font_vector): Change the arg preferred_family to font.
7747 Prefer the spec matching with font.
7748 (fontset_get_font_group): New function.
7749 (fontset_find_font): Change the format of an element of a realized
7750 fontset. Use fontset_get_font_group.
7751 (fontset_font): Try the current fontset, the default fontset, the
7752 fallbacks of the current fontset, and the fallbacks of the default
7753 fontset in this order.
7754 (face_for_char): Delete the shortcut to use the current font.
7755 (fontset_from_font): Don't set fonts for Latin in the fontset.
7756
7757 * font.h (font_make_object, font_match_p): Adjust prototypes.
7758
7759 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7760
7761 * font.c (font_make_object): New arg entity and pixelsize.
7762 (font_check_otf_features, font_check_otf): New functions.
7763 (font_match_p): Check :lang, :script, and :otf properties.
7764
7765 * xfont.c (xfont_open): Adjust it for the change of
7766 font_make_object.
7767 (xfont_text_extents): Fix initial setting of metrics.
7768
7769 * ftfont.c (struct ftfont_info): New member index, delete member
7770 fc_charset_idx. Make the member order compatible with struct
7771 xftfont_info.
7772 (fc_charset_table): Change charset names to registry names.
7773 (ftfont_pattern_entity): Delete the args registry and
7774 fc_charset_idx. Change the value of :font-entity property
7775 to (FONTNAME . INDEX). Always set :registry property to
7776 `iso10646-1'.
7777 (struct ftfont_cache_data): New struct.
7778 (ftfont_lookup_cache): New arg for_face.
7779 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7780 (ftfont_driver): Set the member otf_capability.
7781 (ftfont_get_charset): Adjust it for the change of
7782 fc_charset_table.
7783 (OTF_TAG_SYM): New macro.
7784 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7785 for the change of fc_charset_table.
7786 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7787 ftfont_pattern_entity. Add FC_INDEX to objset.
7788 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7789 and ftfont_pattern_entity.
7790 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7791 font_make_object, struct ftfont_info.
7792 (ftfont_has_char): Use ftfont_get_fc_charset.
7793 (ftfont_otf_features, ftfont_otf_capability): New functions.
7794 (ftfont_shape): Use ftfont_get_otf.
7795 (ftfont_text_extents): Fix initial setting of metrics.
7796
7797 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7798 member order compatible with struct ftfont_info.
7799 (xftfont_open): Add FC_CHARSET to the pattern. Set
7800 xftfont_info->ft_size. Don't unlock the face. Check BDF
7801 properties if appropriate.
7802 (xftfont_close): Unlock the face.
7803 (xftfont_anchor_point, xftfont_shape): Deleted.
7804 (syms_of_xftfont): Don't set members anchor_point and shape of
7805 xftfont_driver.
7806
7807 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7808 font_make_object.
7809
7810 * w32font.c (w32font_open): Adjust it for the change of
7811 font_make_object.
7812 (w32font_open_internal): Don't set properties of font_object here.
7813
7814 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
7815
7816 * macfns.c (x_create_tip_frame):
7817 * w32fns.c (x_create_tip_frame):
7818 * xfns.c (x_create_tip_frame): Pass parameter argument to
7819 face-set-after-frame-default.
7820
7821 * xfaces.c (Finternal_merge_in_global_face): Save merged
7822 attributes for the default face back into the face vector.
7823
7824 2008-07-08 Andreas Schwab <schwab@suse.de>
7825
7826 * fontset.h: Declare fontset_from_font. Don't declare
7827 new_fontset_from_font and fontset_from_font_name.
7828 * xterm.c: Include "fontset.h".
7829 * Makefile.in (xterm.o): Update dependencies.
7830
7831 2008-07-08 Glenn Morris <rgm@gnu.org>
7832
7833 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7834 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7835
7836 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
7837
7838 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7839 (x_set_frame_parameters): Don't bind it.
7840
7841 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
7842
7843 * w32fns.c (map_w32_filename): Declare extern.
7844
7845 2008-07-07 Jason Rumney <jasonr@gnu.org>
7846
7847 * w32term.c (WS_EX_LAYERED): Define if not already.
7848
7849 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
7850
7851 * xfaces.c (set_font_frame_param): Don't try to set the font
7852 parameter if it is still unspecified in the lface.
7853
7854 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7855
7856 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7857 face if it didn't already exist.
7858
7859 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7860
7861 2008-07-05 Andreas Schwab <schwab@suse.de>
7862
7863 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7864
7865 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7866
7867 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7868 word-wrapping.
7869 (IT_DISPLAYING_WHITESPACE): New macro.
7870 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7871 when word-wrapping. Simplify word-wrapping logic. Use correct
7872 pixel positions when saving copies of the iterator.
7873 (display_line): Use proper wrap point if the last character on a
7874 line was preceded by whitespace.
7875
7876 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7877
7878 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7879
7880 2008-07-04 Kenichi Handa <handa@m17n.org>
7881
7882 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7883
7884 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7885
7886 2008-07-02 Jason Rumney <jasonr@gnu.org>
7887
7888 * xfns.c (syms_of_xfns): Only define x-select-font when both
7889 HAVE_FREETYPE and USE_GTK.
7890
7891 * xdisp.c (next_element_from_display_vector): Move assignment out
7892 of if statement.
7893
7894 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7895
7896 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7897
7898 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7899 (syms_of_fileio): Initialize and export them.
7900 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7901
7902 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7903 (Fsystem_move_file_to_trash): New function.
7904 (syms_of_w32fns): Export it to lisp.
7905
7906 2008-07-01 Jason Rumney <jasonr@gnu.org>
7907
7908 * w32font.c (w32font_text_extents): Don't count overhang as part
7909 of width.
7910
7911 2008-06-30 Miles Bader <miles@gnu.org>
7912
7913 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7914 Add `avoid_cursor_p' field.
7915
7916 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7917 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7918 (append_glyph, append_composite_glyph, produce_image_glyph)
7919 (append_stretch_glyph): Initialize avoid_cursor_p.
7920 (get_it_property): Rename from `get_line_height_property'.
7921 (x_produce_glyphs): Use get_it_property.
7922 (handle_line_prefix, push_display_prop): New functions.
7923 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7924 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7925 New variables.
7926 (syms_of_xdisp): Initialize them.
7927
7928 2008-06-30 Kenichi Handa <handa@m17n.org>
7929
7930 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7931 XftDefaultSubstitute (they are called in XftFontMatch).
7932 (xftfont_open): Fix args to ftfont_font_format.
7933
7934 * ftfont.c (fc_charset_table): New member lang.
7935 (ftfont_resolve_generic_family): New arg pattern.
7936 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
7937 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7938 (ftfont_open): Fix args to ftfont_font_format.
7939 (ftfont_font_format): New arg filename.
7940
7941 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
7942
7943 * xfaces.c (Finternal_merge_in_global_face): If default face was
7944 modified, realize it again. Update the font face attribute.
7945
7946 2008-06-29 Jason Rumney <jasonr@gnu.org>
7947
7948 * w32term.c (x_set_frame_alpha): Fix logic.
7949
7950 2008-06-29 Kenichi Handa <handa@m17n.org>
7951
7952 * fontset.c (Finternal_char_font): Return font-object instead of
7953 font-name.
7954
7955 * composite.c (get_composition_id): Fix the width calculation for TAB.
7956
7957 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7958
7959 * indent.c (Fvertical_motion): Properly handle float column arg.
7960
7961 2008-06-28 Jason Rumney <jasonr@gnu.org>
7962
7963 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7964 (pfnSetLayeredWindowAttributes): New function pointer.
7965 (w32_initialize): Initialize it when supported.
7966 (x_set_frame_alpha): New function.
7967
7968 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7969 (w32_frame_parm_handlers): Set alpha handler.
7970
7971 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7972
7973 2008-06-27 Jason Rumney <jasonr@gnu.org>
7974
7975 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7976 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7977 (w32_to_x_charset, x_to_w32_charset)
7978 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7979 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7980 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7981 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7982 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7983 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7984 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7985 (Qw32_charset_unicode): Remove.
7986 (syms_of_w32fns): Update for above changes.
7987
7988 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7989 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7990 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7991 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7992 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7993 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7994 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7995 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7996 (syms_of_w32font): Update for above changes.
7997
7998 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7999
8000 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8001 removed #if.
8002 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8003
8004 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8005 Eli Zaretskii <eliz@gnu.org>
8006
8007 * makefile.w32-in (LOCAL_FLAGS):
8008 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8009
8010 * sysdep.c (_spawnlp, _getpid):
8011 Declare with explicit _cdecl instead of _CRTAPI1.
8012
8013 * editfns.c (Fget_internal_run_time):
8014 Check for WINDOWSNT with #ifdef, not #if.
8015
8016 2008-06-26 Jason Rumney <jasonr@gnu.org>
8017
8018 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8019
8020 * w32term.c (x_draw_glyph_string_foreground)
8021 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8022 Use FONT_HANDLE macro.
8023 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8024
8025 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8026 (uniscribe_encode_char): Use FONT_HANDLE macro.
8027
8028 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8029 (w32font_text_extents): Use precast w32_font.
8030 (w32font_close): Free cached metrics.
8031 (w32font_open_internal): Allocate space for name on stack.
8032
8033 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
8034
8035 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8036
8037 2008-06-26 Jason Rumney <jasonr@gnu.org>
8038
8039 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8040 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8041
8042 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8043
8044 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8045
8046 2008-06-26 Jason Rumney <jasonr@gnu.org>
8047
8048 * w32bdf.c, w32bdf.h: Remove obsolete files.
8049
8050 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8051
8052 * w32gui.h: Don't include w32bdf.h.
8053 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8054 Remove obsolete font support.
8055
8056 * w32font.h (struct w32font_info): Remove compat_w32_font.
8057 Add hfont member.
8058 (FONT_COMPAT): Remove obsolete macro.
8059
8060 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8061 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8062 (w32font_open_internal): Remove compat code. Set new hfont member.
8063 (Fx_select_font): Use new hfont member.
8064
8065 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8066 (uniscribe_encode_char): Use new hfont member.
8067
8068 * w32term.c (x_draw_glyph_string_foreground)
8069 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8070 (x_draw_glyph_string): Use metrics in w32font_info.
8071
8072 2008-06-26 Kenichi Handa <handa@m17n.org>
8073
8074 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8075
8076 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8077
8078 * unexnext.c:
8079 * m/ews4800.h:
8080 * m/hp9000s300.h:
8081 * m/ibm370aix.h:
8082 * m/mips-siemens.h:
8083 * m/ncr386.h:
8084 * m/next.h:
8085 * m/pmax.h:
8086 * m/powerpcle.h:
8087 * m/tandem-s2.h:
8088 * s/386bsd.h:
8089 * s/bsd386.h:
8090 * s/bsd4-1.h:
8091 * s/bsd4-2.h:
8092 * s/bsdos2-1.h:
8093 * s/bsdos2.h:
8094 * s/bsdos3.h:
8095 * s/bsdos4.h:
8096 * s/nextstep.h:
8097 * s/ultrix4-3.h:
8098 * s/usg5-0.h:
8099 * s/usg5-2-2.h:
8100 * s/usg5-2.h:
8101 * s/usg5-4-3.h:
8102 * s/ux4800.h:
8103 * s/uxpds.h:
8104 * s/uxpv.h: Remove support for obsolete systems.
8105 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8106 Remove, insert contents in s/hpux10-20.h.
8107 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8108 Remove, insert contents in s/aix4-2.h.
8109 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8110 * s/bsd4-3.h: Rename to ...
8111 * s/bsd-common.h: ... this.
8112 * data.c:
8113 * doc.c:
8114 * ecrt0.c:
8115 * emacs.c:
8116 * fileio.c:
8117 * floatfns.c:
8118 * keyboard.c:
8119 * mem-limits.h:
8120 * print.c:
8121 * process.c:
8122 * sysdep.c:
8123 * syssignal.h:
8124 * systty.h:
8125 * syswait.h:
8126 * term.c:
8127 * unexec.c:
8128 * unexelf.c:
8129 * unexhp9k800.c:
8130 * m/hp800.h:
8131 * m/ibmrs6000.h:
8132 * m/mips.h:
8133 * m/vax.h:
8134 * s/darwin.h:
8135 * s/freebsd.h:
8136 * s/gnu.h:
8137 * s/ms-w32.h:
8138 * s/msdos.h:
8139 * s/netbsd.h:
8140 * s/template.h: Remove references to obsolete variables.
8141
8142 * Makefile.in: Add dependencies for all unexec files.
8143 (admindir): Remove unused variable.
8144 (UNEXEC_SRC): Remove references.
8145
8146 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
8147
8148 * xfns.c (x_default_font_parameter): If Xft is available, first
8149 try Monospace-12 for the default font.
8150
8151 2008-06-25 Jason Rumney <jasonr@gnu.org>
8152
8153 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8154
8155 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8156
8157 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8158
8159 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8160
8161 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
8162
8163 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8164 <scroll-conservatively>: Fix typo in docstring.
8165
8166 * xselect.c (Fx_send_client_event): Doc fix.
8167
8168 2008-06-25 Kenichi Handa <handa@m17n.org>
8169
8170 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8171
8172 * font.c (font_parse_fcname): Remove unused variables.
8173 (font_sort_entites): Delete the arg SPEC. Caller changed.
8174 Fix for the case of ! best_only.
8175 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8176
8177 * lisp.h (Fstring_to_unibyte): EXFUN it.
8178
8179 * character.h (str_to_unibyte): Extern it.
8180
8181 * character.c (str_to_unibyte): New function.
8182
8183 * fns.c (Fstring_to_unibyte): New function.
8184 (syms_of_fns): Defsubr it.
8185
8186 2008-06-24 Kenichi Handa <handa@m17n.org>
8187
8188 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8189 DPI too.
8190 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8191
8192 2008-06-24 Andreas Schwab <schwab@suse.de>
8193
8194 * Makefile.in (${lispsource}loaddefs.el): Rename from
8195 ../lisp/loaddefs.el.
8196 (bootstrap-clean): Do what distclean does but don't remove
8197 Makefile.
8198 (distclean): Depend on bootstrap-clean and remove Makefile.
8199
8200 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
8201
8202 * buffer.h (struct buffer): New member word_wrap.
8203
8204 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8205 word-wrap.
8206 (init_buffer_once): Initialize them.
8207
8208 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8209 line_wrap enum possessing three possible values.
8210
8211 * termopts.h: Replace truncate_partial_width_windows with
8212 Vtruncate_partial_width_windows.
8213
8214 * dispnew.c (direct_output_for_insert): Avoid direct output when
8215 inserting a space with word wrap on.
8216
8217 * indent.c (compute_motion): Obey integer values of
8218 truncate-partial-width-windows.
8219
8220 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8221 replacing truncate_partial_width_windows.
8222 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8223 truncate only if the window width is below that integer.
8224 (start_display, resize_mini_window, produce_stretch_glyph)
8225 (display_string, move_it_in_display_line_to): Use line_wrap.
8226 (back_to_previous_visible_line_start, reseat_1): Reset
8227 string_from_display_prop_p.
8228 (display_line): Extend default face to end of line when wrapping.
8229
8230 2008-06-24 Kim F. Storm <storm@cua.dk>
8231
8232 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8233 to wrap continued lines at word boundaries.
8234
8235 2008-06-24 Jason Rumney <jasonr@gnu.org>
8236
8237 * font.c (Ffont_face_attributes): Multiply pixel size before point
8238 conversion to avoid multiplying rounding error.
8239
8240 2008-06-23 Jason Rumney <jasonr@gnu.org>
8241
8242 * w32term.c (x_draw_glyph_string_background)
8243 (x_draw_glyph_string): Remove old bdf font code.
8244
8245 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8246
8247 2008-06-22 Kenichi Handa <handa@m17n.org>
8248
8249 * font.c (font_find_for_lface): Try the adstyle specified in
8250 the property of LFACE_FONT of LFACE (if any).
8251
8252 2008-06-21 Seiji Zenitani <zenitani@mac.com>
8253 Ryo Yoshitake <ryo@shiftmode.net>
8254
8255 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8256
8257 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8258
8259 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8260 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8261 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8262 (witness-emacs): Remove.
8263 (lisp, shortlisp): Move loaddefs.el earlier.
8264 (mostlyclean): Forget about witness-emacs.
8265
8266 2008-06-22 Glenn Morris <rgm@gnu.org>
8267
8268 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8269 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8270
8271 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8272
8273 * Makefile.in (PRECOMP): Remove.
8274 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8275 (witness-emacs): Run `compile-first'.
8276 (.el.elc): Use the new compile-onefile target.
8277
8278 2008-06-21 Kenichi Handa <handa@m17n.org>
8279
8280 * xftfont.c (xftfont_open): Handle QCembolden only when
8281 FC_EMBOLDEN is defined.
8282
8283 2008-06-21 Andreas Schwab <schwab@suse.de>
8284
8285 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8286 (.el.elc): Likewise.
8287
8288 2008-06-21 Miles Bader <miles@gnu.org>
8289
8290 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8291 build dir, not the lisp source dir.
8292
8293 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8294
8295 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8296 (bootstrapclean): Remove.
8297 (.el.elc): New rule.
8298 (PRECOMP): New var.
8299 (../lisp/subdirs.el): Remove.
8300 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8301 (witness-emacs): New target.
8302 (mostlyclean): Remove witness-emacs as well.
8303 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8304 Add witness-emacs dependency.
8305
8306 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
8307
8308 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8309 defined by the font.
8310
8311 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8312
8313 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8314 (bootstrap-clean): New target that keeps TAGS around.
8315 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8316 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8317
8318 2008-06-20 Jason Rumney <jasonr@gnu.org>
8319
8320 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8321 Remove obsolete font code.
8322
8323 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8324 to determine language support.
8325
8326 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8327
8328 * sysdep.c (cfsetspeed): New fun extracted from the code.
8329 (cfmakeraw): Move before first use.
8330
8331 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8332
8333 * sysdep.c (cfmakeraw): Provide fallback implementation.
8334 (serial_configure): Provide fallback implementation of cfsetspeed.
8335
8336 2008-06-20 Kenichi Handa <handa@m17n.org>
8337
8338 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8339 the pattern.
8340
8341 * fontset.c (fontset_from_font): Copy font_spec before changing
8342 the elements.
8343
8344 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8345
8346 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8347
8348 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8349 for explicit `font' parameters.
8350
8351 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8352
8353 2008-06-19 Kenichi Handa <handa@m17n.org>
8354
8355 * frame.c: Include <ctype.h>.
8356 (x_set_font_backend): Allow spacing characters in the X resource
8357 for FontBackend.
8358
8359 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8360
8361 * w32fns.c, xfns.c (Qfont_param): New var.
8362 (syms_of_w32fns): Initialize it.
8363 (x_default_font_parameter): Record explicit `font' into
8364 `font-parameter'.
8365
8366 2008-06-18 Kenichi Handa <handa@m17n.org>
8367
8368 * font.c (font_parse_xlfd): Fix previous change.
8369 (font_parse_fcname): Don't use :fc-unknown-spec.
8370 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8371 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8372 (font_add_log): Prepend the driver name to the resulting fonts.
8373
8374 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8375 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8376 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8377
8378 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8379 (QCembolden): New variables.
8380 (syms_of_xftfont): DEFSYM them.
8381 (xftfont_open): Call XftFontMatch. Don't trust the result of
8382 XftTextExtents8 if the pixel_size is less than 5.
8383
8384 2008-06-18 Andreas Schwab <schwab@suse.de>
8385
8386 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8387 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8388
8389 2008-06-18 Jason Rumney <jasonr@gnu.org>
8390
8391 * w32font.c (w32font_list, w32font_match): Add logging.
8392
8393 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8394
8395 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
8396
8397 * font.c (font_parse_fcname): Store divider characters for
8398 unknown-spec list. For known key symbols, intern using correct
8399 symbol name.
8400
8401 2008-06-17 Kenichi Handa <handa@m17n.org>
8402
8403 * xfaces.c (realize_default_face): If the frame is not on window
8404 system, set the fontset of face to nil.
8405
8406 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8407
8408 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8409
8410 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8411
8412 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8413 (build_font_name_from_vector): Delete externs.
8414
8415 * xfaces.c (struct font_name): Don't declare.
8416
8417 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8418
8419 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8420
8421 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8422
8423 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8424
8425 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8426
8427 * font.c (Ffont_spec): Fix usage in docstring.
8428 (Ffont_face_attributes): Doc fix.
8429
8430 2008-06-16 Andreas Schwab <schwab@suse.de>
8431
8432 * font.c (Ffont_face_attributes): Fix definition.
8433
8434 2008-06-16 Jason Rumney <jasonr@gnu.org>
8435
8436 * font.h (font_style_symbolic_from_value): Remove.
8437
8438 * font.c (font_style_symbolic_from_value): Remove.
8439 (font_style_symbolic): Revert to pre 2008-06-13 version.
8440
8441 * w32font.c (w32_to_fc_weight): New function.
8442 (w32font_full_name, logfont_to_fcname): Use it.
8443
8444 2008-06-16 Kenichi Handa <handa@m17n.org>
8445
8446 * font.c (font_check_object): Delete it.
8447 (font_clear_cache): Check if a font-object is alive.
8448 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8449 font-object to nil.
8450 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8451 (font_at): Don't call font_check_object.
8452 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8453
8454 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8455
8456 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8457
8458 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8459
8460 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8461
8462 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
8463
8464 * font.c (font_parse_fcname): Only one decimal point.
8465 (font_unparse_fcname): Handle data in family and foundry indices
8466 as symbols, not strings.
8467 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8468
8469 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8470
8471 * font.h (font_unparse_gtkname): Add prototype.
8472
8473 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8474
8475 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8476
8477 2008-06-15 Andreas Schwab <schwab@suse.de>
8478
8479 * font.c (font_update_drivers): Fix crash when no drivers match.
8480
8481 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8482
8483 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8484 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8485
8486 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8487
8488 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8489
8490 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8491
8492 * process.c (Fserial_process_configure, Fprocess_send_eof):
8493 Use EQ to compare Lisp_Objects.
8494
8495 2008-06-13 Jason Rumney <jasonr@gnu.org>
8496
8497 * w32fns.c (Fw32_select_font): Remove old font API function.
8498
8499 * w32font.c (logfont_to_fcname): New function.
8500 (Fx_select_font): New font dialog function compatible with
8501 GTK/fontconfig version.
8502
8503 * font.c (font_style_symbolic_from_value): New function.
8504 (font_style_symbolic): Use it.
8505
8506 * font.h (font_style_symbolic_from_value): Declare new function.
8507
8508 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
8509
8510 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8511 <font-width-table>: Fix typos in docstrings.
8512
8513 2008-06-13 Daniel Engeler <engeler@gmail.com>
8514
8515 These changes add serial port access.
8516 * process.c: Add HAVE_SERIAL.
8517 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8518 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8519 (list_processes_1, select_wrapper, Fstop_process)
8520 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8521 (status_notify): Modify to handle serial processes.
8522 [HAVE_SERIAL] (Fserial_process_configure)
8523 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8524 New functions.
8525 * process.h (struct Lisp_Process): Add `type'.
8526 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8527 New functions.
8528 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8529 serial ports.
8530 (serial_open, serial_configure): New functions.
8531 * w32.h: Add FILE_SERIAL.
8532 (struct _child_process): Add ovl_read, ovl_write.
8533
8534 2008-06-13 Kenichi Handa <handa@m17n.org>
8535
8536 * dispextern.h (enum lface_attribute_index): New member
8537 LFACE_FOUNDRY_INDEX.
8538
8539 * font.c (font_score): Delete arg alternate_families. Check only
8540 weight, slant, width, and size. Ignore the difference of alias
8541 style symbols.
8542 (font_sort_entites): Adjust for the above change. Reflect the
8543 order of font-driver to scores.
8544 (font_list_entities): Don't check alternate_familes here.
8545 (font_clear_prop): Handle foundry.
8546 (font_update_lface): Don't parse "foundry-family" form here.
8547 Handle FONT_FOUNDRY_INDEX.
8548 (font_find_for_lface): Likewise. Handle alternate families here.
8549 If registry is nil, try iso8859-1 and ascii-0.
8550 (font_open_for_lface): Pay attention to size in ENTITY.
8551 (font_open_by_name): Simplify by calling font_load_for_lface.
8552 (free_font_driver_list): Delete it.
8553 (font_update_drivers): Preserve the order of backends.
8554 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8555 of font_score and font_sort_entites.
8556 (font_update_sort_order): Likewise.
8557
8558 * xfaces.c (LFACE_FOUNDRY): New macro.
8559 (check_lface_attrs): Check foundry.
8560 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8561 (merge_face_vectors): Check foundry.
8562 (merge_face_ref): Likewise.
8563 (Finternal_set_lisp_face_attribute): Likewise.
8564 (x_update_menu_appearance): Likewise.
8565 (Finternal_get_lisp_face_attribute): Likewise.
8566 (lface_hash): Likewise.
8567 (lface_same_font_attributes_p): Likewise.
8568 (x_supports_face_attributes_p): Likewise.
8569 (tty_supports_face_attributes_p): Likewise.
8570 (Finternal_set_alternative_font_family_alist): Intern strings.
8571 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8572 (realize_default_face): Set LFACE_FOUNDRY (lface).
8573
8574 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8575 font-driver at first.
8576
8577 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8578
8579 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8580
8581 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8582
8583 2008-06-12 Jim Meyering <meyering@redhat.com>
8584
8585 Make unexec_free handle NULL the same way free does.
8586 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8587
8588 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8589
8590 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8591 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8592 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8593 (WEAK_ALIAS): Simplify.
8594 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8595 when searching a unibyte buffer.
8596
8597 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
8598
8599 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8600
8601 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
8602
8603 * w32font.c: Include ctype.h.
8604
8605 2008-06-11 Jason Rumney <jasonr@gnu.org>
8606
8607 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8608 misreported as space.
8609 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8610 as aliases for registry iso10646-1.
8611
8612 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8613
8614 * buffer.c (clone_per_buffer_values): Skip `name'.
8615
8616 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
8617
8618 * font.c (font_parse_fcname): Fix last change; accept decimal
8619 points in font size.
8620
8621 2008-06-10 Jason Rumney <jasonr@gnu.org>
8622
8623 * w32uniscribe.c (add_opentype_font_name_to_list):
8624 Skip non unicode fonts.
8625
8626 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8627
8628 * xfns.c (Fx_font_dialog): New function.
8629
8630 * gtkutil.c (xg_dialog_response_cb): Rename from
8631 xg_file_response_callback.
8632 (pop_down_dialog): Rename from pop_down_file_dialog.
8633 (xg_get_file_name): Callers changed.
8634 (xg_get_font_name): New function.
8635
8636 * gtkutil.h (xg_get_font_name): Insert prototype.
8637
8638 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8639
8640 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8641 x_underline_minimum_display_offset.
8642 (syms_of_xdisp): Declare it here rather than in xterm.c.
8643 * dispextern.h (underline_minimum_offset): Declare it.
8644 * w32term.c (x_draw_glyph_string): Use it.
8645 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8646 (syms_of_xterm): Don't declare it any more.
8647 (x_draw_glyph_string): Adjust to the new name.
8648
8649 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8650
8651 * xterm.c (x_underline_minimum_display_offset): New var.
8652 (x_draw_glyph_string): Use it.
8653 (syms_of_xterm): Declare it.
8654
8655 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8656
8657 * font.c (font_parse_fcname): Accept GTK-style font names too.
8658
8659 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8660
8661 * dired.c (file_name_completion): Don't return t if the match is exact
8662 but with different capitalization.
8663 * minibuf.c (Ftry_completion): Simplify.
8664
8665 * window.c (Vwindow_point_insertion_type): New var.
8666 (set_window_buffer): Use it.
8667 (syms_of_window): Init and export it to Lisp.
8668
8669 2008-06-10 Kenichi Handa <handa@m17n.org>
8670
8671 * font.h (font_intern_prop): Prototype adjusted.
8672
8673 * font.c (font_intern_prop): New arg force_symbol.
8674 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8675 Adjust for the change of font_intern_prop.
8676
8677 * ftfont.c (ftfont_pattern_entity):
8678 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8679 (w32_registry):
8680 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8681 the change of font_intern_prop.
8682
8683 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
8684
8685 * w32menu.c (digest_single_submenu): Declare extern.
8686
8687 2008-06-09 Jason Rumney <jasonr@gnu.org>
8688
8689 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8690
8691 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8692 (parse_single_submenu): Remove.
8693 (digest_single_submenu): Remove.
8694 (syms_of_w32menu): Don't initialise variables that have moved
8695 to menu.c.
8696 (set_frame_menubar): Sync with version in xmenu.c.
8697 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8698
8699 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8700 Make static again.
8701
8702 2008-06-09 Jason Rumney <jasonr@gnu.org>
8703
8704 Changes to w32 files related to the move of common menu code
8705 to menu.c on 2008-06-08 by Chong Yidong.
8706
8707 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8708 defs to w32gui.h.
8709 (single_keymap_panes, push_menu_item, push_menu_pane):
8710 Make globally visible.
8711
8712 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8713 (local_free, malloc_widget_value, free_widget_value)
8714 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8715 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8716 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8717 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8718 (menu_items, menu_items_allocated, menu_items_used)
8719 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8720 (init_menu_items, finish_menu_items, discard_menu_items)
8721 (grow_menu_items, push_submenu_start, push_submenu_end)
8722 (push_left_right_boundary, push_menu_pane, push_menu_item)
8723 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8724 (free_menubar_widget_tree_value, parse_single_submenu)
8725 (update_submenu_strings): Remove functions.
8726 (xmalloc_widget_value): Remove and declare extern.
8727
8728 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8729 (OBJ1): Build it.
8730
8731 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8732 (local_heap, local_alloc, local_free, malloc_widget_value)
8733 (free_widget_value): Define here.
8734
8735 2008-06-09 Kenichi Handa <handa@m17n.org>
8736
8737 * font.h (Qascii_0): Extern it.
8738
8739 * font.c (Qascii_0): New variable.
8740 (syms_of_font): DEFSYM it.
8741 (font_open_by_name): If the registry "iso8859-1" fails, try also
8742 "ascii-0".
8743
8744 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8745
8746 2008-06-08 Kenichi Handa <handa@m17n.org>
8747
8748 * .gdbinit (xfont): New command.
8749
8750 2008-06-08 Andreas Schwab <schwab@suse.de>
8751
8752 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8753 * Makefile.in (menu.o): Update dependencies.
8754
8755 * Makefile.in (obj): Always add menu.o.
8756 * emacs.c (main): Always call syms_of_menu.
8757 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8758
8759 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
8760
8761 * Makefile.in: Compile menu.c.
8762
8763 * lisp.h: Declare syms_of_menu.
8764
8765 * emacs.c (main): Call syms_of_menu.
8766
8767 * keyboard.h: Relocate platform-independent menu definitions from
8768 xmenu.c.
8769
8770 * menu.c: New file. Relocate platform-independent menu
8771 definitions from xmenu.c. Suggested by Adrian Robert.
8772
8773 * xmenu.c: Remove platform-independent menu definitions.
8774 (menu_items menu_items_inuse, menu_items_allocated)
8775 (menu_items_used, menu_items_n_panes)
8776 (menu_items_submenu_depth): Move to keyboard.h.
8777 (init_menu_items, finish_menu_items, unuse_menu_items)
8778 (discard_menu_items, restore_menu_items, save_menu_items)
8779 (grow_menu_items, push_submenu_start, push_submenu_end)
8780 (push_left_right_boundary, push_menu_pane, push_menu_item)
8781 (keymap_panes, single_keymap_panes, single_menu_item)
8782 (list_of_panes, list_of_items, find_and_call_menu_selection)
8783 (xmalloc_widget_value, free_menubar_widget_value_tree)
8784 (parse_single_submenu, digest_single_submenu)
8785 (update_submenu_strings): Move to menu.c.
8786
8787 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8788
8789 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8790
8791 2008-06-06 Miles Bader <miles@gnu.org>
8792
8793 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8794 face, not frame default.
8795
8796 2008-06-05 Martin Rudalics <rudalics@gmx.at>
8797
8798 * window.c (pop_up_windows, pop_up_frames)
8799 (display_buffer_reuse_frames, Vpop_up_frame_function)
8800 (Vdisplay_buffer_function, Veven_window_heights)
8801 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8802 (Vspecial_display_function, Vsame_window_buffer_names)
8803 (Vsame_window_regexps, split_height_threshold)
8804 (Vsplit_window_preferred_function): Move those vars to window.el.
8805 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8806 (Fdisplay_buffer): Move those functions to window.el.
8807 (syms_of_window): Remove corresponding declarations.
8808 (display_buffer): New function.
8809 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8810 * dispnew.c (Flast_nonminibuf_frame): New function.
8811 * buffer.c (Fpop_to_buffer): Move to window.el.
8812
8813 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8814
8815 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8816
8817 2008-06-05 Kenichi Handa <handa@m17n.org>
8818
8819 * coding.c (detect_coding): Fix previous change.
8820 (detect_coding_system): Likewise.
8821
8822 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8823
8824 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8825
8826 * keymap.c (Vminibuffer_local_filename_must_match_map):
8827 Rename from Vminibuffer_local_must_match_filename_map.
8828 (syms_of_keymap):
8829 * minibuf.c (Fcompleting_read): Adjust accordingly.
8830 * commands.h: Rename declaration as well.
8831
8832 2008-06-05 Kenichi Handa <handa@m17n.org>
8833
8834 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8835 family name.
8836 (Ffont_put): Likewise.
8837
8838 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8839 current font-spec.
8840
8841 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8842 is unspecified.
8843
8844 * xfaces.c (realize_x_face): If the font-related face attributes
8845 are the same as those of default face, realize a new fontset from
8846 default->fontset.
8847 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8848
8849 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8850
8851 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8852 (move_it_in_display_line): New wrapper.
8853
8854 * window.c (window_scroll_pixel_based_preserve_x)
8855 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8856 (window_scroll_pixel_based, window_scroll_line_based):
8857 Use them to preserve column positions.
8858 (syms_of_window): Initialize them.
8859
8860 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8861 (HPOS . VPOS) pair.
8862
8863 * dispextern.h (move_it_in_display_line): Declare.
8864
8865 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
8866
8867 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8868 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8869 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8870
8871 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
8872
8873 * window.c (Fset_window_parameter): Doc fix.
8874 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8875
8876 2008-06-04 Joakim Verona <joakim@verona.se>
8877
8878 * window.h (struct window): Add new member window_parameters.
8879
8880 * window.c (Fwindow_parameters, Fwindow_parameter)
8881 (Fset_window_parameter): New defuns.
8882 (syms_of_window): Defsubr the new defuns.
8883 (make_window): Initialize window_parameters to nil.
8884
8885 2008-06-04 John Paul Wallington <jpw@pobox.com>
8886
8887 * eval.c (Fdefmacro): Doc fix.
8888
8889 2008-06-04 Kenichi Handa <handa@m17n.org>
8890
8891 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8892 Be sure to call setup_coding_system when we find a proper coding system.
8893 (detect_coding_system): Fix handling of coding->head_ascii.
8894
8895 2008-06-03 Andreas Schwab <schwab@suse.de>
8896
8897 * font.c (font_prop_validate_spacing): Fix last change.
8898
8899 2008-06-03 Kenichi Handa <handa@m17n.org>
8900
8901 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8902 (font_parse_fcname): Fix handling of unknown key.
8903
8904 * xfont.c (xfont_list): Try an alias.
8905
8906 * charset.c (char_charset): Return NULL if the arg charset_list is
8907 specified and C doesn't belong to any of them.
8908
8909 2008-06-02 Chip Coldwell <coldwell@redhat.com>
8910
8911 * font.c (font_pixel_size): Don't take cdr of an integer.
8912
8913 2008-06-02 Jim Meyering <meyering@redhat.com>
8914
8915 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8916 * alloc.c (xfree): Return right away for a NULL arg.
8917 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8918 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8919 * mac.c (create_apple_event_from_event_ref): Likewise.
8920 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8921 Likewise.
8922 * doprnt.c (doprnt1): Likewise.
8923 * frame.c (frame): Likewise.
8924 * keyboard.c (wipe_kboard): Likewise.
8925 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8926 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8927 * term.c (tty_default_color_capabilities, maybe_fatal)
8928 (delete_tty): Likewise.
8929 * w16select.c (string): Likewise.
8930 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8931 * w32bdf.c (w32_free_bdf_font): Likewise.
8932 * w32fns.c (w32_unload_font): Likewise.
8933 * w32font.c (w32font_close): Likewise.
8934 * window.c (size_window): Likewise.
8935 * xselect.c (receive_incremental_selection): Likewise.
8936 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8937 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8938 * w32.c (stat): Likewise.
8939
8940 Remove useless if-before-free tests.
8941 * editfns.c (Fset_time_zone_rule): Likewise.
8942 * lread.c (nosuffix): Likewise.
8943 * ralloc.c (get_bloc): Likewise.
8944 * regex.c (reg_free): Likewise.
8945 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8946 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8947 * xsmfns.c (smc_save_yourself_CB): Likewise.
8948
8949 2008-06-02 Kenichi Handa <handa@m17n.org>
8950
8951 * font.c (font_find_for_lface): Handle float font size.
8952 (font_open_for_lface): Likewise.
8953
8954 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8955 comparing the properties.
8956
8957 2008-06-01 Jason Rumney <jasonr@gnu.org>
8958
8959 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8960 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8961 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8962 Don't add empty script list.
8963 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8964
8965 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8966
8967 * Makefile.in (dot, dotdot): Remove, update users.
8968 ".." has been used elsewhere in the file for a long time.
8969 (LIBXT_STATIC): Remove conditional based on unused variable.
8970
8971 2008-06-01 Miles Bader <miles@gnu.org>
8972
8973 * xfaces.c (Vface_remapping_alist): New variable.
8974 (syms_of_xfaces): Initialize it.
8975 (enum named_merge_point_kind): New type.
8976 (struct named_merge_point): Add `named_merge_point_kind' field.
8977 (push_named_merge_point): Make cycle detection respect different
8978 named-merge-point kinds.
8979 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8980 Remove face-name alias resolution.
8981 (lface_from_face_name): New definition using
8982 `lface_from_face_name_no_resolve'.
8983 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8984 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8985 (get_lface_attributes): New definition that layers face-remapping on
8986 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8987 (lookup_basic_face): New function.
8988 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8989 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8990 `get_lface_attributes'.
8991 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8992 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8993 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8994
8995 * xdisp.c (init_iterator): Pass base_face_id through
8996 `lookup_basic_face' when we actually use it as a face-id.
8997 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8998 DEFAULT_FACE_ID.
8999
9000 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9001 lookup the initial face-id.
9002
9003 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9004
9005 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
9006
9007 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9008 (Fremove_text_properties): Fix typos in docstrings.
9009
9010 2008-05-31 Kenichi Handa <handa@m17n.org>
9011
9012 * font.c (font_list_entities): Fix the car part of data to be
9013 stored in the cache.
9014
9015 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9016
9017 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9018
9019 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9020 Add a `test' argument so another predicate than `equal' can be used.
9021 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9022 (map_char_table): Remove unused vars `c' and `i'.
9023 * lisp.h (Foptimize_char_table): Adjust declaration.
9024 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9025
9026 2008-05-30 Kenichi Handa <handa@m17n.org>
9027
9028 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9029 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9030 defined.
9031
9032 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9033
9034 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9035 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9036 frame-local settings for the same variable.
9037
9038 2008-05-30 Kenichi Handa <handa@m17n.org>
9039
9040 * fontset.c (Ffont_info): Move to font.c.
9041 (syms_of_fontset): Delete defsubr of Sfont_info.
9042
9043 * font.c (font_style_to_value, font_score): Delete casting of the
9044 args to xstcasecmp.
9045 (register_font_driver): Increment num_font_drivers only when
9046 registering the driver globally.
9047 (Ffont_info): Move from fontset.c. Handle a font object too.
9048 (syms_of_font): Defsubr Sfont_info.
9049
9050 2008-05-29 Kenichi Handa <handa@m17n.org>
9051
9052 * coding.h (enum define_coding_utf8_arg_index): New enum.
9053 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9054 coding_attr_utf_bom.
9055 (enum utf_bom_type): Rename from utf_16_bom_type.
9056 (struct utf_16_spec): Adjust for the above change.
9057 (struct coding_system): Add utf_8_bom in `spec' union.
9058
9059 * coding.c (CODING_UTF_8_BOM): New macro.
9060 (enum coding_category): Delete coding_category_utf_8, add
9061 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9062 coding_category_utf_8_sig.
9063 (CATEGORY_MASK_UTF_8): Delete it.
9064 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9065 (CATEGORY_MASK_UTF_8_SIG): New macros.
9066 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9067 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9068 CATEGORY_MASK_UTF_8_SIG.
9069 (CATEGORY_MASK_UTF_8): New macro.
9070 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9071 (detect_coding_utf_8): Check BOM.
9072 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9073 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9074 (encode_coding_utf_16): Likewise.
9075 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9076 (detect_coding, detect_coding_system): Handle utf-8-auto.
9077 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9078 (syms_of_coding): Fix setting up of Vcoding_category_table.
9079
9080 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9081
9082 * process.c (Faccept_process_output): If `millisec' is non-nil,
9083 `seconds' default to 0.
9084 (wait_reading_process_output): Also return non-nil if we read output
9085 from a non-running process.
9086
9087 2008-05-29 Jason Rumney <jasonr@gnu.org>
9088
9089 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9090 `raster' specified.
9091 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9092 in the uniscribe backend, but disallow any font that has no
9093 unicode subrange support.
9094
9095 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
9096
9097 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9098 Fix typos in docstrings.
9099
9100 2008-05-29 Kenichi Handa <handa@m17n.org>
9101
9102 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9103 (Fx_family_fonts): Set frame correctly.
9104
9105 2008-05-28 Jason Rumney <jasonr@gnu.org>
9106
9107 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9108
9109 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9110
9111 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9112 calling build_annotations.
9113
9114 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
9115
9116 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9117 (Fencode_coding_string):
9118 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9119 <latin-extra-code-table>: Fix typos in docstrings.
9120 (syms_of_coding) <coding-system-alist>: Doc fix.
9121 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9122
9123 2008-05-28 Kenichi Handa <handa@m17n.org>
9124
9125 * fontset.c (Ffont_info): Don't call font_close_object.
9126
9127 * font.c (font_parse_family_registry): Use Ffont_put to validate
9128 foundry and family.
9129 (font_delete_unmatched): Don't check spacing.
9130 (font_list_entities): Add spacing to the spec to list fonts.
9131
9132 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9133 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9134
9135 * coding.c (encode_coding_raw_text): Fix previous change.
9136 (encode_coding_object): When the dst_object is a buffer and is
9137 different from src_object, move gap to PT.
9138
9139 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9140
9141 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9142
9143 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9144
9145 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9146 all branches. Compute it differently.
9147
9148 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9149
9150 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
9151
9152 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9153 into "else if () ... else ...".
9154
9155 2008-05-27 Jason Rumney <jasonr@gnu.org>
9156
9157 * w32font.c (w32font_open_internal): Determine if glyph indices
9158 are likely to work here.
9159
9160 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9161
9162 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9163 draw overlap glyphs with appropriate highlighting.
9164
9165 2008-05-27 Kenichi Handa <handa@m17n.org>
9166
9167 * xfont.c (xfont_open): Fix calculation of font->average_width.
9168
9169 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9170
9171 * casefiddle.c (casify_object): Try to guess better whether the
9172 argument is a byte or a char.
9173
9174 2008-05-26 Andreas Schwab <schwab@suse.de>
9175
9176 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9177 Always send multiples of format size.
9178
9179 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9180
9181 2008-05-26 Jason Rumney <jasonr@gnu.org>
9182
9183 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9184 (compute_metrics): Don't set failure if we just cleared the cache.
9185 (w32_weight_table): Remove unused variable.
9186 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9187 backwards compatibility.
9188
9189 2008-05-25 Kenichi Handa <handa@m17n.org>
9190
9191 * w32term.c (x_draw_glyph_string):
9192 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9193
9194 * xfaces.c: Delete unused function prototypes.
9195 (xstrlwr, font_frame): Delete them.
9196 (clear_face_cache): Delete unused variable.
9197
9198 * xftfont.c (xftfont_open): Delete unused variable.
9199 If underline_thickness is not 1, adjust underline_position.
9200
9201 * ftxfont.c (ftxfont_open): Delete unused variable.
9202
9203 * fontset.c (face_for_char): Optimize for the case of no charset
9204 property.
9205
9206 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9207 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9208 (otf_open, font_otf_capability, generate_otf_features)
9209 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9210 Comment out by surrounding "#if 0" and "#endif" for the moment.
9211 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9212 (syms_of_font): Codes for accessing above commented out.
9213
9214 2008-05-24 Eli Zaretskii <eliz@gnu.org>
9215
9216 * w32proc.c: Include dispextern.h.
9217
9218 * w32.c: Include dispextern.h.
9219
9220 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
9221
9222 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9223 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9224 Fix typos in docstrings.
9225
9226 2008-05-23 Jason Rumney <jasonr@gnu.org>
9227
9228 * xsmfns.c: Remove includes that are already included by config.h.
9229
9230 2008-05-23 Kenichi Handa <handa@m17n.org>
9231
9232 * charset.c (Qemacs, charset_emacs): New variables.
9233 (char_charset): Fix for non-Unicode characters.
9234 (syms_of_charset): Define charset_emacs.
9235
9236 * w32term.c (x_draw_glyph_string): Be sure to update
9237 s->underline_thickness and s->underline_position. Be sure to draw
9238 underline within the current line area.
9239
9240 * xterm.c (x_draw_glyph_string): Be sure to update
9241 s->underline_thickness and s->underline_position. Be sure to draw
9242 underline within the current line area.
9243
9244 * fontset.c: Delete unused variables and add casting for char *
9245 throughout the file.
9246 (fontset_font): Try the fallback fonts of the current fontset
9247 before consulting the default fontset.
9248
9249 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9250
9251 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9252
9253 2008-05-22 Jason Rumney <jasonr@gnu.org>
9254
9255 * font.c: Don't include strings.h.
9256
9257 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9258
9259 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9260 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9261 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9262 to call xstrcasecmp.
9263
9264 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9265
9266 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9267
9268 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9269
9270 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9271
9272 2008-05-22 Kenichi Handa <handa@m17n.org>
9273
9274 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9275
9276 * font.c (font_prop_validate_style): Adjust for the format
9277 change of font_style_table.
9278
9279 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9280 two args.
9281
9282 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9283 two args.
9284
9285 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9286
9287 * minibuf.c (keys_of_minibuf): Delete.
9288 * lisp.h (keys_of_minibuf): Delete.
9289 * emacs.c (main): Don't call keys_of_minibuf.
9290
9291 2008-05-22 Kenichi Handa <handa@m17n.org>
9292
9293 * ftfont.c (ftfont_resolve_generic_family): Rename from
9294 ftfont_list_generic_family. Return a single family for each
9295 generic family.
9296 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9297 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9298 Call font_add_log.
9299 (ftfont_match): Call font_add_log.
9300
9301 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9302 (FONT_DEBUG): Define it.
9303 (font_add_log): Extern it.
9304 (font_assert): Rename from xassert.
9305
9306 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9307 (xfont_list_family): Call font_add_log.
9308 (xfont_match): Likewise.
9309 (memq_no_quit): Delete.
9310
9311 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9312 call of Ffont_xlfd_name.
9313
9314 * xfaces.c (struct table_entry, slant_table, weight_table)
9315 (swidth_table): Move to font.c.
9316
9317 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9318 xassert are changed to font_assert. Delete many unused variables.
9319 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9320 New variables.
9321 (struct table_entry): Move from xfaces.c and modified.
9322 (weight_table, slant_table, width_table): Move from xfaces.c and
9323 contents adjusted for the change of struct table_entry.
9324 (font_style_to_value, font_style_symbolic): Adjust for the
9325 format change of font_style_table.
9326 (font_parse_family_registry): Don't overwrite existing foundry and
9327 family of font_spec.
9328 (font_score): Fix calculation of diff for sizes.
9329 (font_sort_entites): Call font_add_log.
9330 (font_delete_unmatched): Return a newly created list.
9331 (font_list_entities): Fix previous change. Call font_add_log.
9332 (font_matching_entity, font_open_entity, font_close_entity):
9333 Call font_add_log.
9334 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9335 (Finternal_set_font_style_table): Delete.
9336 (BUILD_STYLE_TABLE): New macro.
9337 (build_style_table): New function.
9338 (Vfont_log, font_log_env_checked): New variables.
9339 (font_add_log): New function.
9340 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9341 Declare Lisp variables "font-weight-table", "font-slant-table",
9342 "font-width-table", and "font-log". Initialize font_style_table.
9343
9344 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9345
9346 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9347
9348 2008-05-21 Seiji Zenitani <zenitani@mac.com>
9349 Ryo Yoshitake <ryo@shiftmode.net>
9350
9351 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9352 (Vframe_alpha_lower_limit): New variable.
9353 (x_set_alpha): New function.
9354
9355 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9356
9357 * xfns.c (x-create-frame, Qalpha):
9358 Initialize the frame parameter `alpha'.
9359 * xterm.c (OPAQUE, OPACITY): New.
9360 (x_set_frame_alpha): New function.
9361 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9362
9363 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9364 * w32fns.c (w32_frame_parm_handlers): Likewise.
9365
9366 2008-05-20 Jason Rumney <jasonr@gnu.org>
9367
9368 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9369 truetype fonts to opentype list.
9370
9371 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
9372
9373 * fontset.c (Ffontset_info): Doc fix.
9374 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9375 <ignore-relative-composition>: Fix typos in docstrings.
9376
9377 * font.c (syms-of-font) <font-encoding-alist>:
9378 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9379 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9380 (Ffont_otf_alternates): Doc fixes.
9381
9382 2008-05-20 Kenichi Handa <handa@m17n.org>
9383
9384 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9385 font.h through out the file.
9386 (FONT_DRIVERS): Rename from FONTOBJ.
9387 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9388 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9389
9390 * emacs.c (main): Call syms_of_font unconditionally.
9391
9392 * font.h (find_font_encoding): Extern it.
9393
9394 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9395 fontset.c.
9396 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9397 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9398 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9399 only when HAVE_WINDOW_SYSTEM is defined.
9400 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9401 when HAVE_WINDOW_SYSTEM is defined.
9402
9403 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9404 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9405
9406 * xfaces.c: Include font.h unconditionally.
9407 (merge_face_ref, merge_face_vectors)
9408 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9409
9410 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9411
9412 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9413 indirect_variable.
9414 * eval.c (lisp_indirect_variable): New fun.
9415 (Fuser_variable_p): Use it.
9416
9417 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9418
9419 * lisp.h (indirect_variable):
9420 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9421 Use Lisp_Symbol pointers rather than Lisp_Object.
9422 Adjust callers.
9423 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9424 To this end, change calling-convention.
9425
9426 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9427 if some non-hidden buffers are selected by string&pred.
9428
9429 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
9430
9431 * process.c (wait_reading_process_output): Always check status
9432 when in batch mode.
9433
9434 2008-05-19 Kenichi Handa <handa@m17n.org>
9435
9436 * font.c (font_list_entities): Fix handling of cache.
9437 (font_matching_entity): Likewise.
9438
9439 * ftfont.c (cs_iso8859_1): Delete.
9440 (ft_face_cache): New variable.
9441 (struct ftfont_info): New member fc_charset_idx.
9442 (ftfont_build_basic_charsets): Delete.
9443 (fc_charset_table): New variable.
9444 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9445 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9446 Callers changed.
9447 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9448 (ftfont_spec_pattern): New argument fc_charset_idx.
9449 Check registry more rigidly. Change callers.
9450 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9451 change of :font-entity property of the font.
9452
9453 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9454 property of the font.
9455
9456 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
9457
9458 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9459 (Funencodable_char_position, Fcheck_coding_systems_region)
9460 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9461 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9462 (Ffind_operation_coding_system, Fset_coding_system_priority)
9463 (Fcoding_system_eol_type): Doc fixes.
9464
9465 2008-05-17 Glenn Morris <rgm@gnu.org>
9466
9467 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9468
9469 2008-05-16 Eli Zaretskii <eliz@gnu.org>
9470
9471 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9472 and st_gid.
9473
9474 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9475 HAVE_WINDOW_SYSTEM is not defined.
9476
9477 * xfaces.c (merge_face_ref, merge_face_vectors)
9478 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9479 HAVE_WINDOW_SYSTEM is defined.
9480 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9481
9482 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9483
9484 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9485
9486 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9487
9488 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9489
9490 2008-05-15 Kenichi Handa <handa@m17n.org>
9491
9492 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9493 preference.
9494
9495 2008-05-15 Glenn Morris <rgm@gnu.org>
9496
9497 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9498
9499 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
9500
9501 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9502 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9503
9504 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9505
9506 2008-05-15 Kenichi Handa <handa@m17n.org>
9507
9508 * ftfont.c (ftfont_list): Downcase family name to check generic
9509 families.
9510
9511 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9512 font-spec for QCfont value.
9513
9514 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9515 buffer. Check the return value of it.
9516
9517 2008-05-14 Jason Rumney <jasonr@gnu.org>
9518
9519 * w32term.c (w32_get_glyph_overhangs): Remove.
9520 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9521
9522 2008-05-14 Kenichi Handa <handa@m17n.org>
9523
9524 * font.c (font_prop_validate): Make nil a valid value.
9525 (font_clear_cache): Check if the cached vector of entities is nil
9526 or not.
9527
9528 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9529
9530 * emacs.c (main_thread): Conditionalize on
9531 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9532 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9533
9534 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9535 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9536 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9537
9538 2008-05-14 Kenichi Handa <handa@m17n.org>
9539
9540 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9541 has no corresponding coding system.
9542
9543 2008-05-14 Jason Rumney <jasonr@gnu.org>
9544
9545 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9546
9547 * w32font.h (w32font_open_internal): Update declaration.
9548
9549 * w32font.c (w32font_open_internal): Change last argument from
9550 w32font_info struct to font object. Fill in font object from
9551 font_entity. Get Outline metrics if possible. Use them to
9552 calculate underline position and thickness. Use xlfd name as name
9553 property. Don't set codepage.
9554 (w32font_open): Pass font_object to w32font_open_internal. Don't
9555 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9556 (w32font_draw): Use s->font.
9557 (clear_cached_metrics): Don't clear non-existent blocks.
9558
9559 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9560 font was not found.
9561 (x_draw_glyph_string): Use underline position and thickness from font.
9562
9563 * w32uniscribe.c (uniscribe_open): Pass font_object to
9564 w32font_open_internal.
9565
9566 2008-05-14 Kenichi Handa <handa@m17n.org>
9567
9568 These changes are to delete all legacy font-handling codes, and
9569 make Emacs use only font-backends.
9570
9571 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9572 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9573
9574 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9575
9576 * charset.h (Vcharset_non_preferred_head)
9577 (Vcurrent_iso639_language): Extern them.
9578
9579 * charset.c (Vcharset_non_preferred_head): New variable.
9580 (Vcurrent_iso639_language): New variable.
9581 (syms_of_charset): Declare it as a Lisp variable.
9582 (char_charset): Don't check non preferred charsets. As a last
9583 resort, return charset_unicode.
9584 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9585
9586 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9587 conditionals. Don't check enable_font_backend. Delete all codes
9588 used only when USE_FONT_BACKEND is not defined.
9589
9590 * dispextern.h (struct glyph_string): Change type of `font' to
9591 `struct font *'.
9592 (struct glyph_string): New member underline_position and
9593 underline_thickness.
9594 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9595 (struct face): Change type of `font' to `struct font *'. Remove
9596 members `font_name', `font_info_id'.
9597 (per_char_metric, encode_char): Delete externs.
9598 (calc_pixel_width_or_height): Adjust the prototype.
9599
9600 * emacs.c (enable_font_backend): Delete extern.
9601 (main): Don't set enable_font_backend. Don't check the command
9602 line argument "-disable-font-backend".
9603
9604 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9605 (enum font_property_index): New members FONT_DPI_INDEX,
9606 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9607 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9608 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9609 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9610 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9611 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9612 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9613 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9614 (struct font_spec, struct font_entity): New structs.
9615 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9616 (struct font): Many members from old "struct font_info" moved to
9617 here. Members font and entity deleted.
9618 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9619 the new font-related objects.
9620 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9621 (CHECK_FONT_GET_OBJECT): Likewise.
9622 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9623 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9624 (struct font_driver): New members case_sensitive anc check. Type
9625 of the member list and open changed.
9626 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9627 (font_symbolic_width, font_find_object, font_get_spec)
9628 (font_set_lface_from_name): Delete extern.
9629 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9630
9631 * font.c: Include <strings.h>.
9632 (enable_font_backend): Delete it.
9633 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9634 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9635 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9636 (null_string): Delete it.
9637 (null_vector): Make it static.
9638 (font_family_alist): Delete it.
9639 (Qnormal): Extern it.
9640 (QCextra, QClanguage): Delete it.
9641 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9642 (font_make_spec, font_make_entity, font_make_object)
9643 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9644 the string. Callers changed.
9645 (font_pixel_size): Adjusted for the format change of font-related
9646 objects.
9647 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9648 (font_style_to_value, font_style_symbolic): New function.
9649 (build_font_family_alist): Delete it.
9650 (font_registry_charsets): Use Fassoc_string instead of
9651 assq_no_quit.
9652 (font_prop_validate_symbol): Don't return null_string.
9653 (font_prop_validate_style): Adjusted for the change of
9654 style-related values in a font vector.
9655 (font_property_table): Delete entries for QClanguage and
9656 QCantialias, add entries for QCavgwidth.
9657 (get_font_prop_index): Delete the 2nd argument FROM.
9658 (font_prop_validate): Arguments changed.
9659 (font_put_extra): Adjusted for the change of font-related objects.
9660 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9661 (font_parse_fcname, font_unparse_fcname)
9662 (font_prepare_composition): Likewise.
9663 (font_parse_family_registry): Renamed from font_merge_old_spec.
9664 (otf_open): Delete the 1st arg entity.
9665 (font_otf_capability): Adjusted for the above change.
9666 (font_score): New arg alternate_families. Adjusted for the change
9667 of font-related objects.
9668 (font_sort_entites): New arg best_only.
9669 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9670 Delete them.
9671 (font_match_p): Check alternate families.
9672 (font_find_object): Delete it.
9673 (font_check_object): New function.
9674 (font_clear_cache): Adjusted for the change of font-related objects.
9675 (font_delete_unmatched): New arg.
9676 (font_list_entities): Call font_driver->list with a spec that
9677 doesn't specify style-related properties.
9678 (font_matching_entity): Arguments changed. Caller changed.
9679 (font_open_entity): Adjusted for the change of font-related objects.
9680 (font_close_object, font_has_char, font_encode_char)
9681 (font_get_name, font_get_spec): Likewise.
9682 (font_spec_from_name, font_clear_prop, font_update_lface):
9683 New functions.
9684 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9685 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9686 (font_at): Adjusted for the change of font-related objects.
9687 (font_range): New function.
9688 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9689 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9690 (Fcopy_font_spec, Fmerge_font_spec): New function.
9691 (Ffont_family_list): Renamed from list-families.
9692 (Finternal_set_font_style_table): Arguments changed.
9693 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9694 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9695 change of font-related objects.
9696 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9697
9698 * fontset.h (struct font_info): Delete it. Most members go to
9699 struct font.
9700 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9701 (enum FONT_SPEC_INDEX): Delete it.
9702 (font_info, list_fonts_func, load_font_func, query_font_func)
9703 (set_frame_fontset_func, find_ccl_program_func)
9704 (get_font_repertory_func, new_fontset_from_font_name): Delete
9705 externs.
9706 (fontset_from_font_name): Extern it.
9707 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9708 (FONT_INFO_FROM_FACE): Deleted.
9709 (face_for_font): Adjust prototype.
9710
9711 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9712 conditionals. Don't check enable_font_backend. Delete all codes
9713 used only when USE_FONT_BACKEND is not defined.
9714 (get_font_info_func, list_font_func, load_font_func)
9715 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9716 (get_font_repertory_func): Delete them.
9717 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9718 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9719 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9720 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9721 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9722 (fontset_compare_rfontdef): New function.
9723 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9724 rfont-defs by qsort. Adjusted for the change of font-group vector.
9725 (load_font_get_repertory): Deleted.
9726 (fontset_find_font): Use new macros to ref/set elements of
9727 font-def and rfont-def.
9728 (fontset_font): Fix the timing of remembering that no font for C.
9729 (free_face_fontset): Do nothing if the face has no fontset.
9730 (face_suitable_for_char_p): Use new macros to ref/set elements of
9731 rfont-def.
9732 (face_for_char): Likewise. Call face_for_char with font_object.
9733 (fs_load_font): Delete. Delete #pragma surrounding it.
9734 (fs_query_fontset): Use strcasecmp instead of strcmp.
9735 (generate_ascii_font_name): Adjusted for the format change of
9736 font-spec.
9737 (Fset_fontset_font): Likewise. Use new macros to set elements of
9738 font-def.
9739 (Fnew_fontset): Use font_unparse_xlfd to generate
9740 FONTSET_ASCII (fontset).
9741 (new_fontset_from_font_name): Deleted.
9742 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9743 a fontset is already created for the font. FIx updating of
9744 Vfontset_alias_alist.
9745 (fontset_ascii_font): Deleted.
9746 (Ffont_info): Adjusted for the format change of font-spec.
9747 (Finternal_char_font): Likewise.
9748 (Ffontset_info): Likewise.
9749 (syms_of_fontset): Don't check load_font_func.
9750
9751 * fns.c (internal_equal): Handle PREV_FONT.
9752
9753 * frame.h: Delete USE_FONT_BACKEND conditional.
9754
9755 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9756 conditionals. Don't check enable_font_backend. Delete all codes
9757 used only when USE_FONT_BACKEND is not defined.
9758 (x_set_font): Call x_new_font, not x_new_fontset2.
9759 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9760 already set for the frame.
9761
9762 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9763 a font-entity by font_make_entity. Use font_intern_prop instead
9764 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9765 font property. If a font is scalable, set avgwidth property to 0.
9766 Set font-entity property by font_put_extra.
9767 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9768 (ffont_driver): Adjusted for the change of struct font_driver.
9769 (ftfont_spec_pattern): New function.
9770 (ftfont_list): Return a list, not vector.
9771 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9772 (ftfont_list_family): Don't downcase names.
9773 (ftfont_free_entity): Deleted.
9774 (ftfont_open): Return a font-object. Adjusted for the change of
9775 struct font. Get underline_thickness and underline_position from
9776 font property. Don't update dpyinfo->smallest_font_height and
9777 dpyinfo->smallest_char_width.
9778 (ftfont_close): Don't free `struct font'.
9779 (ftfont_has_char): Adjusted for the format change of font-entity.
9780 (ftfont_encode_char, ftfont_text_extents): Likewise.
9781
9782 * ftxfont.c (ftxfont_list): Return a list, not vector.
9783 (ftxfont_open): Return a font-object. Adjusted for the change of
9784 struct font. Get underline_thickness and underline_position from
9785 font property. Don't update dpyinfo->smallest_font_height and
9786 dpyinfo->smallest_char_width.
9787 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9788 (ftxfont_draw): Adjusted for the change of struct font.
9789
9790 * image.c (image_ascent): Don't include "charset.h". Include
9791 "character.h" and "font.h".
9792
9793 * lisp.h (enum pvec_type): New member PREV_FONT.
9794 (Fassoc_string): EXFUN it.
9795
9796 * print.c: Include font.h.
9797 (print_object): Handle font-related objects.
9798
9799 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9800 conditionals. Don't check enable_font_backend. Delete all codes
9801 used only when USE_FONT_BACKEND is not defined.
9802 (handle_auto_composed_prop): Do nothing if it->f is not on a
9803 window system. Check how many following characters can be
9804 displayed by the same font.
9805 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9806 'struct font *'.
9807 (get_char_face_and_encoding): Assign the whole encoding task to
9808 the `encode-char' method of a font driver.
9809 (fill_composite_glyph_string): Adjusted for the change of `struct
9810 face' and `struct glyph_string'.
9811 (fill_glyph_string): Likewise.
9812 (get_per_char_metric): Arguments changed.
9813 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9814 and `struct glyph_string'.
9815 (produce_stretch_glyph, calc_line_height_property)
9816 (x_produce_glyphs): Likewise.
9817
9818 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9819 conditionals. Don't check enable_font_backend. Delete all codes
9820 used only when USE_FONT_BACKEND is not defined. Use
9821 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9822 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9823 (Qp): Extern them.
9824 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9825 Deleted.
9826 (struct font_name): Deleted.
9827 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9828 (compare_fonts_by_sort_order): New function.
9829 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9830 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9831 Deleted.
9832 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9833 compare_fonts_by_sort_order.
9834 (Fx_font_family_list): Call Ffont_family_list.
9835 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9836 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9837 (face_symbolic_slant, face_symbolic_swidth)
9838 (split_font_name_into_vector, build_font_name_from_vector)
9839 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9840 (font_rescale_ratio, split_font_name, build_font_name)
9841 (free_font_names, sort_fonts, x_face_list_fonts)
9842 (face_font_available_p, sorted_font_list, cmp_font_names)
9843 (font_list_1, concat_font_list, font_list, remove_duplicates):
9844 Deleted.
9845 (Fx_list_fonts): Use Ffont_list.
9846 (LFACE_AVGWIDTH): Deleted.
9847 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9848 by FONTP.
9849 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9850 (set_lface_from_font_name): Delete it.
9851 (set_lface_from_font): Renamed from
9852 set_lface_from_font_and_fontset. Caller changed. Don't set
9853 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9854 for face.
9855 (merge_face_vectors): Copy font-spec if necessary.
9856 Clear properties of the font-spec if necessary.
9857 (merge_face_ref): Clear properties of the font-spec if necessary.
9858 (Finternal_set_lisp_face_attribute): Likewise.
9859 (set_font_frame_param): Use font_load_for_lface to load a
9860 font-object, and call Fmodify_frame_parameters with it.
9861 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9862 font name by Ffont_xlfd_name.
9863 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9864 QCslant, and QCwidth.
9865 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9866 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9867 Compare fonts by EQ.
9868 (lookup_non_ascii_face): Deleted.
9869 (face_for_font): The 2nd argument changed.
9870 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9871 Check atomic font properties by case insensitive.
9872 (realize_non_ascii_face): Set face->overstrike correctly.
9873 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9874 (dump_realized_face): Get font name from
9875 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9876
9877 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9878 conditionals. Don't check enable_font_backend. Delete all codes
9879 used only when USE_FONT_BACKEND is not defined.
9880 (xic_create_xfontset): Original code deleted and renamed from
9881 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9882 (x_make_gc): Don't set GCFont in GCs.
9883 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9884 opened by "fixed".
9885 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9886 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9887 get_font_repertory_func.
9888
9889 * xfont.c: Include <stdlib.h> and "ccl.h".
9890 (struct xfont_info): New structure.
9891 (xfont_query_font): Deleted.
9892 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9893 moved from xterm.c.
9894 (xfont_driver): Adjusted for the change of struct font_driver.
9895 (compare_font_names): New function.
9896 (xfont_list_pattern): Sort font names case insensitively. Make
9897 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9898 (xfont_list): Return a list, not vector.
9899 (xfont_match): If the font doesn't have QCname property, generate
9900 a name from the other font properties.
9901 (xfont_open): Return a font-object. Adjusted for the change of
9902 struct font. Get underline_thickness and underline_position from
9903 font property. Don't update dpyinfo->smallest_font_height and
9904 dpyinfo->smallest_char_width.
9905 (xfont_close): Don't free struct font.
9906 (xfont_prepare_face): Adjusted for the change of struct font.
9907 (xfont_done_face): Deleted.
9908 (xfont_has_char): Adjusted for the change of struct font.
9909 (xfont_encode_char, xfont_draw): Likewise.
9910 (xfont_check): New function.
9911
9912 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9913 callback function.
9914 (xftfont_match): Adjusted for the format change of font-entity.
9915 (xftfont_open): Adjusted for the format change of font-entity and
9916 font-object. Adjusted for the change of struct font. Return a
9917 font-object. Don't update dpyinfo->smallest_font_height and
9918 dpyinfo->smallest_char_width.
9919 (xftfont_close): Block input while calling XftFontClose.
9920 (xftfont_prepare_face): Don't block input while calling
9921 xftfont_get_colors. Adjusted for the change of struct font.
9922 (xftfont_shape): Return value of error case fixed.
9923
9924 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9925
9926 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9927 conditionals.
9928 (FONT_WIDTH): Return (f)->max_width.
9929 (struct x_display_info): Delete member `font'.
9930 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9931 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9932 (struct x_output): Change type of `font' to `struct font *'.
9933
9934 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9935 conditionals. Don't check enable_font_backend. Delete all codes
9936 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9937 (x_per_char_metric, x_encode_char): Deleted.
9938 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9939 (x_compute_glyph_string_overhangs): Adjusted for the change of
9940 `struct face'.
9941 (x_draw_glyph_string_foreground)
9942 (x_draw_composite_glyph_string_foreground): Likewise.
9943 (x_draw_glyph_string): Likewise. Use font->underline_position and
9944 font->underline_thickness.
9945 (x_new_font): Renamed from x_new_fontset2.
9946 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9947 (x_check_font): Call `check' method of a font driver.
9948 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9949 (x_query_font, x_get_font_repertory): Deleted.
9950 (x_find_ccl_program): Renamed and moved to xfont.c.
9951 (x_redisplay_interface): Adjusted for the change of `struct
9952 redisplay_interface'.
9953
9954 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9955 conditionals. Don't check enable_font_backend. Delete all codes
9956 used only when USE_FONT_BACKEND is not defined. Surround non-used
9957 code by "#ifdef OLD_FONT" and "endif".
9958 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9959
9960 * w32font.h (struct w32font_info): New member.
9961 (FONT_COMPAT): New macro.
9962 (w32font_open_internal): Prototype adjusted.
9963
9964 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9965 OLD_FONT" and "endif".
9966
9967 * w32font.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 (w32font_open): Return a font-object. Make a font-object by
9971 font_make_object. Adjusted for the change of struct w32font_info.
9972 (w32font_close): Don't free struct font. Adjusted for the change
9973 of struct w32font_info.
9974 (w32font_encode_char, w32font_text_extents, w32font_draw):
9975 Adjusted for the change of struct w32font_info.
9976 (w32font_draw): Likewise.
9977 (w32font_list_internal): Return a list, not vector.
9978 (w32font_open_internal): Change the 4th arg to font-object.
9979 Adjusted for the change of struct w32font_info and font-object format.
9980 (add_font_name_to_list): Don't downcase names.
9981 (w32_enumfont_pattern_entity): Make a font-entity by
9982 font_make_entity. Adjusted for the format change of font-entity.
9983 Use FONT_SET_STYLE to set a style-related font property. If a
9984 font is scalable, set avgwidth property to 0. Set font-entity
9985 property by font_put_extra.
9986 (font_matches_spec): Adjusted for the format change of font-entity.
9987 (w32_weight_table, w32_decode_weight): New variables.
9988 (w32_encode_weight): New function.
9989 (fill_in_logfont): Adjusted for the format change of font-spec.
9990 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9991 weight value.
9992 (w32font_driver): Adjusted for the change of struct font_driver.
9993
9994 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9995 conditionals. Don't check enable_font_backend. Surround non-used
9996 code by "#ifdef OLD_FONT" and "endif".
9997 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9998 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9999
10000 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10001 conditionals. Don't check enable_font_backend. Delete all codes
10002 used only when USE_FONT_BACKEND is not defined. Surround non-used
10003 code by "#ifdef OLD_FONT" and "endif".
10004
10005 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10006 (uniscribe_open): Return value changed to font-object.
10007 Adjusted for the format change of font-object.
10008 (uniscribe_otf_capability): Adjusted for the change of struct font.
10009 (add_opentype_font_name_to_list): Don't downcase names.
10010 (uniscribe_font_driver): Adjusted for the change of struct
10011 font_driver.
10012
10013 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
10014
10015 * dispnew.c (update_frame_1): Check if tty output is still valid
10016 before flushing it.
10017
10018 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10019
10020 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10021 to Gtk+ menus.
10022
10023 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10024
10025 * dired.c (file_name_completion): Tweak the code so as to always do it
10026 in a single pass. Tighten the scope of some variables.
10027
10028 * dired.c (Qdefault_directory): New var.
10029 (file_name_completion): Use it instead of Fexpand_file_name.
10030 (syms_of_dired): Initialize it.
10031
10032 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10033
10034 * fileio.c (double_dollars): Remove dead code.
10035
10036 2008-05-10 Eli Zaretskii <eliz@gnu.org>
10037
10038 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10039 Mention w32-get-true-file-attributes in doc string.
10040
10041 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10042
10043 2008-05-09 Glenn Morris <rgm@gnu.org>
10044
10045 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10046 2008-04-23.
10047
10048 2008-05-09 Eli Zaretskii <eliz@gnu.org>
10049
10050 Support for reporting owner and group of each file on MS-Windows:
10051 * dired.c (stat_uname, stat_gname): New functions, with special
10052 implementation for w32.
10053 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10054
10055 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10056 (dflt_group_name): New static variable.
10057 (dflt_group): Rename from the_group.
10058 (init_user_info): Init dflt_group fields. Get user's group name
10059 from LookupAccountSid.
10060 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10061 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10062 New initialization states.
10063 (globals_of_w32): Initialize them to zero. Initialize the default
10064 group name to "None".
10065 (GetFileSecurity_Name): New global var, the name of the function
10066 to call for GetFileSecurity.
10067 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10068 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10069 (get_file_security, get_security_descriptor_owner)
10070 (get_security_descriptor_group, is_valid_sid)
10071 (get_file_security_desc, get_rid, get_name_and_id)
10072 (get_file_owner_and_group): New functions.
10073 (stat): Use get_file_security_desc and get_file_owner_and_group to
10074 report the owner and primary group of each file. Don't ignore the
10075 high 32 bits of file's size, now that st_size is 64-bit wide.
10076 Fix test when to get true file attributes.
10077 (init_user_info): Use get_rid instead of equivalent inline code.
10078 (fstat): Don't ignore the high 32 bits of file's size.
10079
10080 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
10081
10082 * image.c (png_load): Use correct bit-depth for setting background
10083 color.
10084
10085 2008-05-08 Eli Zaretskii <eliz@gnu.org>
10086
10087 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10088 epa-hook.elc.
10089
10090 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
10091
10092 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10093
10094 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10095
10096 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10097 because the original parameters are in pure storage now.
10098 (mac_window): Remove unused params. Update callers.
10099
10100 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10101
10102 * lread.c (substitute_object_recurse): Use lower-level primitives.
10103 Don't signal errors when traversing sub-char-tables.
10104 Don't loop over all the possible characters when traversing char-tables.
10105
10106 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10107 just like we do in print.c.
10108
10109 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10110
10111 * minibuf.c (Ftry_completion): Remove code left over from when we used
10112 scmp instead of Fcompare_strings.
10113
10114 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
10115
10116 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10117
10118 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10119
10120 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10121 Create bitmap context in native byte order.
10122
10123 * macterm.c (XDrawLine)
10124 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10125 context in native byte order.
10126
10127 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10128
10129 * config.in: Regenerate.
10130
10131 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10132 New definitions for Image I/O support.
10133 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10134 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10135 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10136 (mac_data_provider_release_data, image_load_image_io)
10137 [USE_MAC_IMAGE_IO]: New functions.
10138 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10139 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10140 (init_image_func_pointer) [MAC_OSX]: Remove function.
10141 (image_load_quartz2d) [MAC_OSX]: Check availability of
10142 CGImageCreateWithPNGDataProvider at compile time.
10143 Use lowercase `false' for boolean constant.
10144 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10145 Use image_load_image_io.
10146 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10147 Don't check MyCGImageCreateWithPNGDataProvider.
10148 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10149 Don't call init_image_func_pointer.
10150
10151 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10152
10153 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10154 Make variable non-static.
10155 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10156 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10157
10158 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10159 (RED_FROM_ULONG): Mask off higher bits.
10160 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10161
10162 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10163 Include AvailabilityMacros.h.
10164 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10165 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10166
10167 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10168
10169 * chartab.c (Fset_char_table_range): If range is t, really set all
10170 chars to that value.
10171
10172 2008-05-03 Eli Zaretskii <eliz@gnu.org>
10173
10174 * dired.c (Ffile_attributes): Don't allow the device number become
10175 negative.
10176
10177 2008-05-02 Daiki Ueno <ueno@unixuser.org>
10178
10179 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10180
10181 2008-05-02 Juri Linkov <juri@jurta.org>
10182
10183 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10184 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10185 DEFAULT argument as a list of default values in docstrings.
10186
10187 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
10188
10189 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10190
10191 2008-05-01 Martin Rudalics <rudalics@gmx.at>
10192
10193 * dispnew.c (change_frame_size_1): Preserve small windows when
10194 shrinking frames by calling set_window_height|width with third
10195 arg 2.
10196
10197 * window.h (struct window): Replace field too_small_ok by field
10198 resize_proportionally.
10199
10200 * window.c (make_window): Initialize resize_proportionally.
10201 (enlarge_window): Temporarily set resize_proportionally to make
10202 sure that shrink_windows does scale the window proportionally.
10203 (shrink_windows): When window has resize_proportionally set try
10204 to shrink it proportionally by stealing from other windows.
10205 (struct saved_window, Fset_window_configuration)
10206 (compare_window_configurations): Handle resize_proportionally.
10207 (WINDOW_TOTAL_SIZE): New macro.
10208 (window_min_size, shrink_windows, size_window): Use it.
10209 (check_min_window_sizes): Remove. Invalid values of
10210 window-min-height|width are handled by window_min_size_2 now.
10211 (size_window, Fsplit_window, enlarge_window)
10212 (adjust_window_trailing_edge, grow_mini_window): Don't call
10213 check_min_window_sizes.
10214 (window_min_size_2, window_min_size_1, window_min_size):
10215 New argument safe_p for retrieving "safe" minimum sizes.
10216 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10217 (adjust_window_trailing_edge, grow_mini_window):
10218 Adjust arguments of window_min_size... functions.
10219 (shrink_windows): Argument min_size removed. New argument
10220 safe_p allows shrinking windows to their safe minimum sizes.
10221 Calculate minimum size and decide whether a window shall be
10222 deleted for each window individually.
10223 (size_window): When nodelete_p equals 2, tell shrink_windows to
10224 delete windows only if their new minimum size is no more safe.
10225 (shrink_window_lowest_first): Call window_min_size_1 to make
10226 sure to preserve modeline of bottom-most window when resizing
10227 the minibuffer.
10228 (Fset_window_configuration, Fcurrent_window_configuration)
10229 (compare_window_configurations): Do not handle
10230 window-min-height|width any more.
10231 (syms_of_window): Clarify window-min-height|width doc-strings.
10232
10233 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10234
10235 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10236 some more. Copy some of the code from Ftry_completions.
10237 Remove special case code that dates back to initial revision when the
10238 slash was only added when necessary and that can't trigger nowadays.
10239
10240 2008-04-27 Kenichi Handa <handa@m17n.org>
10241
10242 * font.c (font_prop_validate): Signal `error' instead of `font'.
10243
10244 2008-04-29 Jason Rumney <jasonr@gnu.org>
10245
10246 * w32fns.c (Fw32_battery_status): New defun.
10247 (syms_of_w32fns): Defsubr it.
10248
10249 2008-04-28 Andreas Schwab <schwab@suse.de>
10250
10251 * dired.c (file_name_completion): Fix another mixing of encoded
10252 and decoded names.
10253
10254 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
10255
10256 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10257
10258 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
10259
10260 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10261
10262 2008-04-27 Andreas Schwab <schwab@suse.de>
10263
10264 * dired.c (file_name_completion): Fix inappropriate mixing of
10265 encoded and decoded names.
10266
10267 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10268
10269 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10270
10271 2008-04-26 Eli Zaretskii <eliz@gnu.org>
10272
10273 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10274 2008-03-31, it's not needed anymore with `struct stat' definition
10275 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10276 for the same reasons.
10277
10278 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10279
10280 * m/sparc.h: Additional redefinitions for GNU/Linux.
10281
10282 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10283
10284 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10285 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10286 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10287 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10288 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10289 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10290 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10291 Likewise.
10292
10293 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10294 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10295 (mac_ax_number_of_characters): Add externs.
10296 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10297 [USE_MAC_TSM]: Likewise.
10298 (mac_handle_text_input_event) [MAC_OSX]:
10299 Handle kEventTextInputOffsetToPos for no active input area case.
10300 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10301 (mac_handle_document_access_event)
10302 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10303 (install_application_handler) [MAC_OSX]: Register handlers for
10304 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10305 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10306 Register mac_handle_document_access_event.
10307
10308 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10309 Make functions non-static.
10310
10311 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10312
10313 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10314 (read_file_name_completion_ignore_case, insert_default_directory)
10315 (Qdefault_directory): Move to minibuffer.el.
10316 (Fread_file_name): Call the new `read-file-name' instead.
10317
10318 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10319
10320 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10321 Make function non-static.
10322 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10323 Remove function.
10324 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10325 Move to mactoolbox.c.
10326 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10327
10328 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10329 (mac_rect_make): New macro.
10330
10331 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10332 instead of float.
10333 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10334 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10335 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10336 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10337 CGRectMake.
10338 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10339 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10340 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10341 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10342 instead of WindowRef in argument type.
10343 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10344 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10345 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10346 instead of DISPLAY. All uses changed.
10347 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10348 (x_calc_absolute_position): Simplify so as not to use
10349 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10350
10351 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10352 instead of WindowRef in argument type.
10353 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10354 [TARGET_API_MAC_CARBON]: Remove externs.
10355 (create_apple_event, mac_event_parameters_to_lisp)
10356 [TARGET_API_MAC_CARBON]: Add externs.
10357
10358 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10359 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10360 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10361 is clicked.
10362 (x_activate_menubar): Remove extern for saved_menu_event_location.
10363 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10364 Move from mac.c.
10365
10366 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10367
10368 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10369 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10370
10371 2008-04-23 Jason Rumney <jasonr@gnu.org>
10372
10373 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10374 attributes only for local files.
10375
10376 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10377 default to Qlocal.
10378
10379 2008-04-22 Juri Linkov <juri@jurta.org>
10380
10381 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10382 read-buffer-to-switch instead of using the letter "B".
10383
10384 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10385
10386 * fileio.c (Qdefault_directory): New variable.
10387 (Fread_file_name): Use it to pass `dir' to the completion functions.
10388
10389 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
10390
10391 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10392
10393 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10394
10395 * keyboard.c (Vpre_help_message): Remove.
10396 (show_help_echo): Remove default C code.
10397
10398 * dired.c (directory_files_internal, file_name_completion):
10399 Only call ENCODE_FILE if the string is indeed decoded.
10400
10401 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10402
10403 * Makefile.in (TOOLKIT_DEFINES): Remove.
10404 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10405
10406 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10407
10408 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10409 (mactoolbox.o): New target.
10410
10411 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10412 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10413
10414 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10415 Use mac_set_frame_window_background instead of XSetWindowBackground.
10416 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10417 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10418 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10419 instead of SetWindowTitleWithCFString.
10420 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10421 Move function to mactoolbox.c.
10422 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10423 Use mac_set_window_modified instead of SetWindowModified.
10424 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10425 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10426 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10427 FrontNonFloatingWindow. Use mac_activate_window instead of
10428 ActivateWindow. Use mac_active_non_floating_window instead of
10429 ActiveNonFloatingWindow.
10430 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10431 Use mac_show_hourglass and mac_hide_hourglass.
10432 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10433 instead of GetGlobalMouse.
10434 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10435 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10436 Use mac_bring_window_to_front instead of BringToFront.
10437 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10438 mactoolbox.c.
10439 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10440 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10441 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10442 mactoolbox.c.
10443
10444 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10445 (XtPointer): Move typedef from macmenu.c.
10446 (enum button_type): Move enum from macmenu.c.
10447 (widget_value): Move typedef from macmenu.c.
10448 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10449 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10450 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10451 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10452 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10453 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10454 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10455 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10456 (Selection): Move typedef from macselect.c.
10457 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10458 macterm.c.
10459 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10460 (mac_is_window_collapsed, mac_bring_window_to_front)
10461 (mac_send_window_behind, mac_hide_window, mac_show_window)
10462 (mac_collapse_window, mac_front_non_floating_window)
10463 (mac_active_non_floating_window, mac_activate_window)
10464 (mac_move_window_structure, mac_move_window, mac_size_window)
10465 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10466
10467 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10468 (enum mac_menu_kind): Move enum to mactoolbox.c.
10469 (min_menu_id): Move variable to mactoolbox.c.
10470 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10471 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10472 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10473 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10474 [TARGET_API_MAC_CARBON]: Likewise.
10475 (XtPointer): Move typedef to macgui.h.
10476 (enum button_type): Move enum to macgui.h.
10477 (widget_value): Move typedef to macgui.h.
10478 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10479 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10480 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10481 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10482 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10483 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10484 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10485 (popup_activated_flag): Make variable non-static.
10486 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10487 (add_menu_item, fill_menu, dispose_menus):
10488 Move functions to mactoolbox.c.
10489 (restore_show_help_function, menu_target_item_handler)
10490 (install_menu_target_item_handler, mac_handle_dialog_event)
10491 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10492 [TARGET_API_MAC_CARBON]: Likewise.
10493 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10494 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10495 (find_and_call_menu_selection, name_is_separator): Make function
10496 non-static.
10497 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10498 to mactoolbox.c.
10499 (set_frame_menubar): Don't call install_menu_quit_handler.
10500 (menu_item_selection): New variable.
10501 (mac_menu_show): Use create_and_show_popup_menu.
10502 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10503 selection but set variable menu_item_selection. All uses changed.
10504 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10505 Call install_menu_quit_handler. Move to mactoolbox.c.
10506
10507 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10508 (Selection): Move typedef to macgui.h.
10509 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10510 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10511 Make variables non-static.
10512 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10513 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10514 Make functions non-static.
10515 (Vmac_service_selection) [MAC_OSX]: Likewise.
10516 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10517 (mac_valid_selection_target_p, mac_clear_selection)
10518 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10519 (mac_put_selection_value, mac_selection_has_target_p)
10520 (mac_get_selection_value, mac_get_selection_target_list)
10521 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10522 Move functions to mactoolbox.c.
10523 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10524 Likewise.
10525 (copy_scrap_flavor_data, mac_handle_service_event)
10526 (install_service_handler) [MAC_OSX]: Likewise.
10527 (syms_of_macselect) <Vmac_dnd_known_types>:
10528 Use mac_dnd_default_known_types.
10529
10530 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10531 Move to mactoolbox.c.
10532 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10533 (Fx_selection_owner_p): Add EXFUN.
10534 (install_window_handler, remove_window_handler, XSetWindowBackground):
10535 Remove externs.
10536 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10537 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10538 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10539 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10540 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10541 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10542 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10543 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10544 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10545 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10546 (mac_valid_selection_target_p, mac_clear_selection)
10547 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10548 (mac_put_selection_value, mac_selection_has_target_p)
10549 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10550 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10551 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10552 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10553 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10554 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10555 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10556 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10557 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10558
10559 * mactoolbox.c: New file.
10560
10561 2008-04-18 Jason Rumney <jasonr@gnu.org>
10562
10563 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10564
10565 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10566
10567 * character.c (Fmultibyte_char_to_unibyte):
10568 Return latin1 chars unchanged.
10569
10570 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10571 relocated if it points to `name'.
10572
10573 2008-04-17 Kenichi Handa <handa@m17n.org>
10574
10575 * data.c (Faset): Allow setting a multibyte character in an
10576 ASCII-only unibyte string.
10577
10578 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10579
10580 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10581
10582 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10583 done in config.h.
10584
10585 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
10586
10587 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10588 (Fchar_direction): Add usage in the docstring.
10589
10590 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
10591
10592 * keyboard.c (read_key_sequence): Remove always-true checks.
10593
10594 2008-04-14 Jason Rumney <jasonr@gnu.org>
10595
10596 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10597 compatibility struct, for better underline positioning.
10598
10599 2008-04-13 David Hansen <david.hansen@gmx.net>
10600
10601 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10602 string.
10603
10604 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10605
10606 * m/hp800.h (XUINT, XSET): Remove.
10607
10608 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
10609
10610 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10611 previous change.
10612
10613 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10614
10615 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10616 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10617
10618 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10619
10620 * keymap.h (map_keymap_canonical): Declare.
10621 * xmenu.c (single_keymap_panes): Use it.
10622
10623 2008-04-11 Glenn Morris <rgm@gnu.org>
10624
10625 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10626 set the target's value to that of the alias.
10627
10628 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10629
10630 * term.c (set_tty_color_mode): Left over typo.
10631
10632 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
10633
10634 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10635 only after check for file name handler functions. Signal, when
10636 native functionality is not supported.
10637 (syms_of_fileio): Declare it unconditionally.
10638
10639 2008-04-10 Jason Rumney <jasonr@gnu.org>
10640
10641 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10642 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10643
10644 * w32.c (logon_network_drive): Also logon to remote drives that
10645 are mapped to drive letters.
10646
10647 2008-04-10 Glenn Morris <rgm@gnu.org>
10648
10649 * xdisp.c (truncate-partial-width-windows): Doc fix.
10650
10651 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10652
10653 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10654 Move functions to minibuffer.el.
10655 (syms_of_fileio): Don't declare them.
10656
10657 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10658
10659 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10660 (syms_of_minibuf): Remove its initialization.
10661
10662 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10663
10664 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
10665
10666 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10667
10668 2008-04-09 Jason Rumney <jasonr@gnu.org>
10669
10670 * makefile.w32-in (distclean): Delete makefile too.
10671 (maintainer-clean): New target.
10672
10673 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10674
10675 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10676 for new font backend and composite cases.
10677
10678 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10679
10680 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10681 Most of the code moved to run_timers.
10682 (do_pending_atimers): Call run_timers.
10683 (run_timers): New function.
10684
10685 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10686 run atimers.
10687
10688 * process.c (wait_reading_process_output): The same as above.
10689
10690 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10691
10692 * minibuf.c (last_exact_completion): Remove variable.
10693 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10694 (complete_and_exit_1, complete_and_exit_2)
10695 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10696 (Fdisplay_completion_list, display_completion_list_1)
10697 (Fminibuffer_completion_help, Fself_insert_and_exit)
10698 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10699 minibuffer.el.
10700 (syms_of_minibuf): Remove corresponding initializations.
10701
10702 * keyboard.c (Qdeactivate_mark): New var.
10703 (command_loop_1): Use it to call `deactivate-mark'.
10704 (syms_of_keyboard): Initialize it.
10705
10706 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10707 to another frame.
10708 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10709 Don't call set_tty_color_mode.
10710 (store_frame_param): Reset previous_frame rather than call
10711 set_tty_color_mode.
10712 * term.c (set_tty_color_mode): Rewrite.
10713 * dispextern.h (set_tty_color_mode): New type.
10714 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10715
10716 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10717
10718 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10719 for generic chars, which do not exist any more in emacs-unicode.
10720
10721 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
10722
10723 * coding.c (detect_coding_emacs_mule)
10724 (Ffind_operation_coding_system): Fix typo.
10725
10726 2008-04-08 Jason Rumney <jasonr@gnu.org>
10727
10728 * w32uniscribe.c (SNAME): Extract only symbol name.
10729
10730 * w32font.h (struct w32_metric_cache): New struct.
10731 (w32font_info): Use it.
10732 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10733 (CACHE_BLOCKSIZE): New constants.
10734
10735 * w32font.c (Qja, Qko, Qzh): New symbols.
10736 (syms_of_w32font): Initialise them.
10737 (font_matches_spec): Use them to filter by language.
10738 (recompute_cached_metrics): Remove function.
10739 (compute_metrics, clear_cached_metrics): New functions.
10740 (w32font_encode_char): Use them to manage metric cache.
10741 (w32font_text_extents): Cache metrics for all glyphs on demand.
10742 Delay converting glyph indices to WORD until needed.
10743 (w32font_open_internal): Initialize metric cache to empty.
10744 (registry_to_w32_charset): Charset should always be a symbol.
10745 (fill_in_logfont, list_all_matching_fonts): Family should
10746 always be a symbol.
10747
10748 2008-04-06 Jason Rumney <jasonr@gnu.org>
10749
10750 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10751 Give up if glyph indices not supported. Use uniscribe obtained
10752 ABC widths for individual metrics. Map glyph clusters back to
10753 characters using fClusterStart flag. Return number of glyphs
10754 produced, not chars processed.
10755 (uniscribe_shape): Map char at FROM to current glyph.
10756
10757 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10758
10759 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10760 Use SetMenuItemHierarchicalMenu.
10761
10762 2008-04-05 Jason Rumney <jasonr@gnu.org>
10763
10764 * image.c (pbm_load): Allow color values up to 65535.
10765 Throw an error if max_color_idx is outside the supported range.
10766 Report an error when image size is invalid.
10767 Read two bytes at a time when raw images have max_color_idx above 255.
10768
10769 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10770
10771 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10772 cFileName a file name that includes `?' characters, use the 8+3
10773 alias in cAlternateFileName instead.
10774
10775 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10776
10777 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10778 append "CCL: Quitted" when the CCL program is quitted.
10779 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10780
10781 * ccl.h (struct ccl_program): New member quit_silently.
10782
10783 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
10784
10785 * search.c (compile_pattern_1): Treat non-nil and non-string of
10786 search-spaces-regexp as nil.
10787
10788 * minibuf.c (Fassoc_string): Tweak docstring.
10789
10790 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10791
10792 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10793 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10794 2008-03-14 to force inode be positive.
10795
10796 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10797 _S_* ones, since we now use our own sys/stat.h.
10798 (stat, fstat): Don't mangle the inode number.
10799 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10800
10801 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10802
10803 * frame.h (struct frame): Give one more bit to `visible' since we use
10804 values larger than 1 to indicate obscured frames on ttys.
10805
10806 * keymap.c (Qkeymap_canonicalize): New var.
10807 (Fmap_keymap_internal): New fun.
10808 (describe_map): Use keymap-canonicalize.
10809
10810 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10811 (Fundo_boundary): Set them.
10812 (syms_of_undo): Initialize them.
10813 (record_point): Use them instead of last_point_position*.
10814 (last_undo_buffer): Change type.
10815
10816 2008-04-04 Jason Rumney <jasonr@gnu.org>
10817
10818 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10819 (recompute_cached_metrics): Don't set ascent and descent per char.
10820
10821 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10822 (uniscribe_check_otf): Add GC protection before consing.
10823 Rearrange loop for counting features.
10824
10825 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10826
10827 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10828 buffer with byte-size of source buffer.
10829
10830 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
10831
10832 * callint.c (Fcall_interactively): Handle temporary region even
10833 when shift-select-mode is off.
10834
10835 2008-04-03 Jason Rumney <jasonr@gnu.org>
10836
10837 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10838
10839 2008-04-03 Kenichi Handa <handa@m17n.org>
10840
10841 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10842 (CATEGORY_MASK_UTF_16): Likewise.
10843 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10844 binary file.
10845 (detect_coding): Add null-byte detection for a binary file.
10846 (detect_coding_system): Likewise.
10847
10848 2008-04-03 Jason Rumney <jasonr@gnu.org>
10849
10850 * w32uniscribe.c: New file.
10851
10852 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10853
10854 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10855
10856 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10857 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10858 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10859 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10860 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10861 (Qphonetic): New symbols.
10862 (syms_of_w32font): Initialize them.
10863 (font_supported_scripts): Use them.
10864 (w32font_list_family): List all charsets.
10865 (w32font_text_extents, recompute_cached_metrics): Fix metric
10866 calculations.
10867 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10868 Give opentype fonts their own format.
10869 (font_matches_spec): New arguments backend and logfont.
10870 Handle :otf spec for uniscribe backend.
10871 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10872 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10873
10874 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10875 font backend.
10876 (globals_of_w32fns): Initialize uniscribe font backend.
10877
10878 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10879 dependencies.
10880 (w32uniscribe.$(O)): New file to build.
10881 (FONT_OBJ): Include w32uniscribe.$(O).
10882 (LIBS): Add uniscribe libraries.
10883
10884 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10885
10886 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
10887
10888 * callint.c (Vshift_select_mode): New var.
10889 (Finteractive): Document new ^ spec.
10890 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10891 is present.
10892
10893 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10894 (command_loop_1): Avoid running the direct display versions of
10895 forward-char and backward-char if shift-selection may occur.
10896 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10897 shift-translation takes place.
10898
10899 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10900 avoid clobbering by define-minor-mode.
10901
10902 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10903 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10904
10905 * syntax.c (Fforward_word): Add ^ interactive spec.
10906
10907 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10908 (Fscroll_right): Add ^ interactive spec.
10909
10910 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10911
10912 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10913
10914 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10915
10916 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10917
10918 2008-03-31 Juri Linkov <juri@jurta.org>
10919
10920 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10921
10922 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10923
10924 * gtkutil.c (xg_set_geometry): Fix indentation.
10925 (xg_resize_outer_widget): Remove.
10926 (x_wm_size_hint_off): Fix indentation.
10927 (xg_frame_set_char_size): Call flush_and_sync after
10928 gtk_window_resize.
10929 (x_wm_set_size_hint): Pass NULL as geometry window to
10930 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10931 Add menu bar and tool bar height to base height.
10932 (xg_update_frame_menubar, free_frame_menubar)
10933 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10934 (update_frame_tool_bar, free_frame_tool_bar):
10935 Change xg_resize_outer_widget to xg_frame_set_char_size.
10936
10937 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
10938
10939 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10940 (Fdbus_call_method): New parameter TIMEOUT.
10941 (dbus-send-signal): Optimize UNGCPRO call.
10942
10943 2008-03-29 Juri Linkov <juri@jurta.org>
10944
10945 * window.c (Fdisplay_buffer): Move call to
10946 Vsplit_window_preferred_function out of conditions that check
10947 if window is eligible for vertical splitting.
10948 When Vsplit_window_preferred_function is non-nil, call it and use
10949 its non-nil return value as window. Otherwise, continue doing
10950 vertical splitting using Fsplit_window with arg horflag=nil.
10951 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10952 default value from `split-window' to nil.
10953
10954 2008-03-29 Juri Linkov <juri@jurta.org>
10955
10956 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10957 for interactive code letters 'b' and 'B'.
10958
10959 2008-03-29 Eli Zaretskii <eliz@gnu.org>
10960
10961 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10962 multibyte string.
10963
10964 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10965
10966 * keyboard.c (pending_funcalls): New var.
10967 (timer_check): Run it.
10968 (syms_of_keyboard): Initialize it.
10969 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10970 (Vdelete_terminal_functions): New vars.
10971 (syms_of_terminal): Initialize them.
10972 (Fdelete_terminal): Run delete-terminal-functions.
10973 * xdisp.c (safe_eval): Rewrite.
10974 (safe_call2): New fun.
10975 * frame.c (Qdelete_frame_functions): New var.
10976 (syms_of_frame): Initialize it.
10977 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10978 * lisp.h (safe_call2, pending_funcalls): Declare.
10979
10980 2008-03-28 Andreas Schwab <schwab@suse.de>
10981
10982 * indent.c (Fmove_to_column): Move declaration before statements.
10983
10984 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10985
10986 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10987 (struct frame): Use bit fields for boolean vars.
10988
10989 * process.c (server_accept_connection): Simplify naming.
10990 (emacs_get_tty_pgrp): Use SDATA.
10991
10992 * coding.c (decode_coding_object): Fix last change.
10993
10994 2008-03-27 Jason Rumney <jasonr@gnu.org>
10995
10996 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10997
10998 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10999
11000 * charset.c (Fdefine_charset_internal): Change the way of
11001 registering charsets in Vcharset_order_list.
11002 (syms_of_charset): Make the charset `eight-bit' supplementary.
11003
11004 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11005
11006 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11007 operations, to avoid having the difference between pointers
11008 overflow.
11009
11010 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11011
11012 * indent.c (check_display_width): New fun.
11013 (scan_for_column): Use it.
11014
11015 * data.c (syms_of_data): Mark most-positive-fixnum and
11016 most-negative-fixnum as constants.
11017
11018 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11019
11020 * indent.c (scan_for_column): Extract from current_column_1.
11021 Merge with the same code from Fmove_to_column.
11022 (current_column_1, Fmove_to_column): Use it.
11023
11024 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11025
11026 * keymap.c (map_keymap_internal): New fun.
11027 (map_keymap): Use it.
11028 (Fmap_keymap_internal): New fun.
11029 (Fmap_keymap): Remove left-out test from before make_save_value.
11030
11031 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11032
11033 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11034 Use XCAR/XCDR.
11035
11036 * process.h (struct Lisp_Process): Remove filter_multibyte.
11037 * process.c (QCfilter_multibyte): Remove.
11038 (setup_process_coding_systems): Don't use filter_multibyte.
11039 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11040 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11041 (Fset_process_filter_multibyte): Change the coding-system to
11042 approximate the previous behavior.
11043 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11044 coding-system.
11045
11046 * coding.c (decode_coding_object): When not decoding into a buffer,
11047 obey the coding system's preference of (uni|multi)byte.
11048
11049 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11050
11051 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11052 every char is changed and has a different byte-length.
11053 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11054 Fix int -> EMACS_INT.
11055
11056 2008-03-23 David Hansen <david.hansen@gmx.net>
11057
11058 * dbusbind.c (xd_read_message): Remove extra copying of message
11059 strings. Check for NULL `interface' or `member'.
11060
11061 2008-03-22 Eli Zaretskii <eliz@gnu.org>
11062
11063 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11064 cFileName a file name that includes `?' characters, use the 8+3
11065 alias in cAlternateFileName instead.
11066
11067 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11068
11069 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11070
11071 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11072
11073 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11074 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11075 work on current_buffer only instead (that was already the case
11076 for some of the code anyway).
11077 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11078 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11079 (SET_PT, SET_PT_BOTH): Adjust.
11080 * intervals.h (set_point, temp_set_point, set_point_both)
11081 (temp_set_point_both): Remove redundant declarations.
11082
11083 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11084
11085 * fileio.c (Finsert_file_contents):
11086 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11087 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11088 when buffer != current_buffer anyway.
11089
11090 2008-03-20 Andreas Schwab <schwab@suse.de>
11091
11092 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11093 as default.
11094
11095 2008-03-19 Jason Rumney <jasonr@gnu.org>
11096
11097 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11098 (syms_of_w32fns): Initialize them.
11099 (HOURGLASS_ID): New constant.
11100 (x_window_to_frame): Don't check hourglass_window.
11101 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11102 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11103 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11104 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11105 Only change the cursor if hourglass is not active.
11106 (Fx_create_frame): Initialize frame's current_cursor.
11107 (hourglass_atimer): Remove.
11108 (hourglass_started): New function.
11109 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11110 (show_hourglass): Adapt to w32, changing argument to frame.
11111
11112 * w32term.h (struct w32_output): Remove hourglass_window.
11113 Add current_cursor.
11114
11115 * eval.c (call_debugger, Fsignal):
11116 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11117 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11118 (Fexecute_extended_command, cancel_hourglass_unwind):
11119 * minibuf.c (read_minibuf):
11120 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11121
11122 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11123
11124 * window.c (run_funs): New fun.
11125 (run_window_configuration_change_hook): Use it to run the buffer-local
11126 and the global part of the hook.
11127
11128 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11129 (unwind_format_mode_line): Restore selected window.
11130 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11131
11132 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11133
11134 * editfns.c (Fchar_equal): Check they are valid characters.
11135
11136 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11137
11138 2008-03-17 Andreas Schwab <schwab@suse.de>
11139
11140 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11141 against a charset.
11142
11143 * lisp.h (Fbuffer_list): Declare.
11144
11145 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
11146
11147 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11148 handlebox_widget is != 0.
11149
11150 2008-03-16 Juri Linkov <juri@jurta.org>
11151
11152 * callint.c (Fcall_interactively): For interactive code letters
11153 'b' and 'B' put the buffer list into the list of default "future"
11154 values of the minibuffer.
11155
11156 2008-03-16 Andreas Schwab <schwab@suse.de>
11157
11158 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11159 modifiers.
11160
11161 * regex.c (re_match_2_internal): Correct matching of a charset
11162 against latin-1 characters.
11163
11164 2008-03-16 Kenichi Handa <handa@m17n.org>
11165
11166 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11167 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11168 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11169 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11170 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11171 CHAR_STRING_ADVANCE.
11172 (produce_chars): Fix for the case that the source and the
11173 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11174 instead of CHAR_STRING_ADVANCE.
11175 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11176 STRING_CHAR_ADVANCE.
11177
11178 2008-03-15 Andreas Schwab <schwab@suse.de>
11179
11180 * regex.c (re_match_2_internal): Correct matching of eight bit
11181 characters in unibyte strings.
11182
11183 2008-03-15 Martin Rudalics <rudalics@gmx.at>
11184
11185 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11186 at end of range when it coincides with the end of the buffer.
11187
11188 2008-03-14 Eli Zaretskii <eliz@gnu.org>
11189
11190 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11191
11192 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11193
11194 2008-03-14 Jason Rumney <jasonr@gnu.org>
11195
11196 * editfns.c (initial_tz): New variable.
11197 (syms_of_editfns): Initialize it.
11198 (Fset_time_zone_rule): Set it when first called.
11199 Use it when TZSTRING is nil.
11200
11201 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11202 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11203 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11204 (globals_of_w32fns): Initialize them.
11205 (compute_tip_xy): Use them to position tooltips.
11206
11207 2008-03-14 Glenn Morris <rgm@gnu.org>
11208
11209 * emacs.c (main): Revert previous change.
11210 (standard_args): Revert -internal-script back to -scriptload,
11211 and remove the long-option form.
11212
11213 2008-03-13 Glenn Morris <rgm@gnu.org>
11214
11215 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11216 Remove option -enable-font-backend.
11217
11218 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11219
11220 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11221
11222 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11223
11224 * xterm.c (x_connection_closed): For GTK: If this is the last
11225 terminal just exit without closing the display.
11226
11227 2008-03-11 Jason Rumney <jasonr@gnu.org>
11228
11229 * w32font.c (w32font_full_name): Use floor to round.
11230
11231 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11232
11233 * sound.c (alsa_configure): Declare vol at beginning of block.
11234
11235 * fontset.c (Ffontset_info): Remove extra semicolon.
11236
11237 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11238
11239 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11240 size of resulting string.
11241
11242 2008-03-10 Jason Rumney <jasonr@gnu.org>
11243
11244 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11245
11246 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11247
11248 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11249 Don't pretend as if characters with display property haven't been
11250 consumed for string-replacing-string case.
11251
11252 2008-03-08 Kim F. Storm <storm@cua.dk>
11253
11254 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11255 (get_next_display_element, next_element_from_string)
11256 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11257
11258 2008-03-08 Andreas Schwab <schwab@suse.de>
11259
11260 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11261
11262 2008-03-06 Jason Rumney <jasonr@gnu.org>
11263
11264 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11265 when charset not specified. Only translate ANSI to unicode when
11266 font_type is truetype.
11267 (w32font_coverage_ok): New function.
11268 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11269
11270 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11271
11272 * lread.c (Fread_char): Resolve modifiers.
11273 (Fread_char_exclusive): Likewise.
11274
11275 * character.c (char_resolve_modifier_mask): New function.
11276 (char_string): Use char_resolve_modifier_mask.
11277 (Fchar_resolve_modifiers): New function.
11278 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11279 function.
11280
11281 2008-03-04 Jason Rumney <jasonr@gnu.org>
11282
11283 * makefile.w32-in: Always include w32font.c in the build.
11284 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11285
11286 2008-03-04 Andreas Schwab <schwab@suse.de>
11287
11288 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11289 (versionclean): Likewise.
11290
11291 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
11292
11293 * .cvsignore: Add oo.
11294
11295 2008-03-03 Andreas Schwab <schwab@suse.de>
11296
11297 * coding.c (decode_coding_object): Inhibit gap shrinking while
11298 decoding in place.
11299
11300 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11301
11302 * w32term.c: Remove unused include "gnu.h".
11303 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11304
11305 * gnu.h: Rename to ...
11306 * emacs-icon.h: ... this.
11307 * xterm.c: Use emacs-icon.h instead of gnu.h.
11308 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11309
11310 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
11311
11312 * w32font.c: Include math.h.
11313
11314 2008-03-03 Jason Rumney <jasonr@gnu.org>
11315
11316 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11317 Compute options separately.
11318 (w32font_open_internal): Set glyph_idx before caching metrics.
11319
11320 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11321 Define if system headers don't.
11322 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11323 (w32font_encode_char): Don't declare here.
11324
11325 * w32font.c (Quniscribe, QCformat): New symbols.
11326 (syms_of_w32font): Define them.
11327 (w32font_has_char): Indicate uncertainty.
11328 (w32font_encode_char): Encode as glyph point. Make static.
11329 (recompute_cached_metrics): New function.
11330 (w32font_open_internal): Use it. Set font to use glyph points
11331 initially. Set format based on type of font.
11332 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11333 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11334 on it. Set format based on information available here.
11335 (add_font_entity_to_list): Identify backend based on opentype_only.
11336
11337 2008-03-02 Andreas Schwab <schwab@suse.de>
11338
11339 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11340
11341 * coding.c (decode_coding_big5, produce_chars):
11342 Fix typos in last change.
11343
11344 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11345
11346 * gnu.h: New icon.
11347
11348 2008-03-02 Kenichi Handa <handa@m17n.org>
11349
11350 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11351 `dos', don't decode '\r' if that is the last in the source.
11352 (decode_coding_utf_16, decode_coding_emacs_mule)
11353 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11354 (decode_coding_raw_text, decode_coding_charset): Likewise.
11355 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11356
11357 2008-03-01 Jason Rumney <jasonr@gnu.org>
11358
11359 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11360
11361 2008-03-01 Kim F. Storm <storm@cua.dk>
11362
11363 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11364
11365 2008-03-01 Jason Rumney <jasonr@gnu.org>
11366
11367 * w32font.c (w32font_full_name): New function.
11368 (w32font_open_internal): Use it.
11369
11370 2008-03-01 Kim F. Storm <storm@cua.dk>
11371
11372 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11373
11374 2008-03-01 Jason Rumney <jasonr@gnu.org>
11375
11376 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11377
11378 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11379
11380 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11381 xg_frame_resized when the event is for the edit widget.
11382
11383 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11384
11385 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11386 set_char_size.
11387 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11388 operations on widgets here. Just set frame size if needed.
11389 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11390 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11391 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11392 the whole frame.
11393 (xg_create_tool_bar): Move attachment of the tool bar to
11394 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11395 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11396
11397 2008-03-01 Jason Rumney <jasonr@gnu.org>
11398
11399 * w32fns.c (w32_msg_pump): Disable debug code.
11400
11401 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11402
11403 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11404
11405 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11406
11407 * xdisp.c (next_overlay_string): Don't set
11408 overlay_strings_at_end_processed_p if we're currently reading from
11409 a display string.
11410
11411 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11412
11413 * xdisp.c (get_overlay_strings_1): Fix typo.
11414
11415 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11416
11417 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11418
11419 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11420
11421 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11422
11423 * xdisp.c (display_mode_element): Cancel the previous change.
11424 (decode_mode_spec): Likewise.
11425 (handle_auto_composed_prop): Don't make composition if it->string
11426 is a string.
11427
11428 2008-02-27 Kim F. Storm <storm@cua.dk>
11429
11430 * lisp.h (GLYPH): Change type from int to struct with separate char
11431 and face_id members.
11432 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11433 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11434 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11435 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11436 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11437 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11438 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11439 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11440 handle new Lisp glyph code encoding, either an integer or a cons.
11441
11442 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11443 (GLYPH_ALIAS): Delete.
11444 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11445 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11446 (GLYPH_FROM_CHAR): Replace macro by ...
11447 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11448
11449 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11450 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11451 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11452 (GLYPH_INVALID_P): New macro.
11453 (spec_glyph_lookup_face): Update prototype.
11454
11455 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11456 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11457 new glyph code encoding.
11458 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11459 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11460
11461 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11462 Adapt to new glyph type and new glyph code encoding.
11463
11464 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11465
11466 * indent.c (current_column, current_column_1, Fmove_to_column)
11467 (compute_motion): Adapt to new glyph code encoding.
11468
11469 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11470
11471 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
11472
11473 * process.c (wait_reading_process_output): Check for window
11474 changes caused by timers.
11475 Suggested by Johan Bockgård.
11476
11477 2008-02-27 Glenn Morris <rgm@gnu.org>
11478
11479 * emacs.c (USAGE1): Add `--disable-font-backend'.
11480
11481 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11482
11483 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11484 is made to the buffer.
11485
11486 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11487
11488 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11489 (face_at_string_position):
11490 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11491 (face_at_string_position):
11492 * xdisp.c (display_string, next_overlay_change):
11493 * buffer.h (overlays_at):
11494 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11495 Update callers.
11496
11497 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
11498
11499 * editfns.c (Fformat): Doc fix.
11500
11501 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
11502
11503 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11504 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11505 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11506
11507 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11508
11509 * buffer.c (Fbuffer_swap_text): New function.
11510 (syms_of_buffer): Defsubr it.
11511
11512 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
11513
11514 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11515
11516 2008-02-25 Jason Rumney <jasonr@gnu.org>
11517
11518 * w32font.c (w32font_draw): Draw one character at a time when padding.
11519
11520 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11521
11522 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11523 Handle a nil arg. Use run_window_configuration_change_hook.
11524 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11525 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11526 Use run_window_configuration_change_hook.
11527
11528 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11529
11530 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11531 1-pixel width.
11532
11533 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11534
11535 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11536 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11537 if the glyph in the font is zero pixel with.
11538
11539 * dispextern.h (struct glyph_string): New member padding_p.
11540
11541 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11542
11543 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11544
11545 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11546
11547 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11548
11549 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11550
11551 2008-02-25 Jason Rumney <jasonr@gnu.org>
11552
11553 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11554
11555 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11556
11557 Allow fine-grained image-cache flushing.
11558 * dispextern.h (struct image): Add `dependencies' field.
11559 (clear_image_caches): Change arg to Lisp_Object.
11560 * image.c (make_image): Initialize `dependencies' field.
11561 (clear_image_cache): Change arg to allow fine-grained flushing.
11562 Perform the flush even if image-cache-eviction-delay is nil.
11563 (clear_image_caches): Change arg to Lisp_Object.
11564 (Fclear_image_cache): Expand meaning of the argument.
11565 (mark_image): Mark `dependencies' field.
11566 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11567 (lface_hash): Use XHASH rather than XFASTINT.
11568 (face_at_buffer_position): Fix int -> EMACS_INT position.
11569 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11570 (select_frame_for_redisplay): Remove code duplication.
11571 (redisplay_internal): Adapt arg to call to clear_image_caches.
11572
11573 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11574
11575 * s/vms4-0.h:
11576 * s/vms4-2.h:
11577 * s/vms4-4.h:
11578 * s/vms5-5.h: Remove, unused.
11579
11580 * s/irix5-2.h:
11581 * s/irix6-0.h:
11582 * s/riscos5.h:
11583 * s/mach-bsd4-3.h:
11584 * m/mips4.h: Remove files for obsolete systems.
11585
11586 * Makefile.in:
11587 * filelock.c:
11588 * unexmips.c:
11589 * m/hp9000s300.h:
11590 * m/iris4d.h:
11591 * s/aix3-1.h:
11592 * s/hpux.h:
11593 * s/msdos.h:
11594 * s/usg5-0.h:
11595 * s/usg5-2-2.h:
11596 * s/usg5-2.h:
11597 * s/usg5-3.h: Remove references to obsolete variables.
11598
11599 * s/irix5-0.h: Remove, move all the contents ...
11600 * s/irix6-5.h: ... here. Simplify.
11601 * config.in: Regenerate.
11602
11603 2008-02-24 Jason Rumney <jasonr@gnu.org>
11604
11605 * w32term.c (x_draw_glyph_string_background): Clear the background
11606 manually when cleartype is in use.
11607 (x_draw_glyph_string_foreground): Draw text transparently when
11608 cleartype is in use.
11609
11610 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11611 a font into it unless we have to.
11612
11613 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11614
11615 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11616 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
11617
11618 2008-02-18 Jason Rumney <jasonr@gnu.org>
11619
11620 * w32fns.c (Fw32_shell_execute): Encode parameters.
11621
11622 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11623
11624 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11625
11626 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
11627
11628 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11629
11630 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11631
11632 * xterm.c (x_set_offset): Don't change the gravity if
11633 CHANGE_GRAVITY is -1.
11634
11635 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
11636
11637 * fileio.c (auto_save_error_occurred): New var.
11638 (auto_save_error): Set it.
11639 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11640 error occurred.
11641
11642 2008-02-23 Eli Zaretskii <eliz@gnu.org>
11643
11644 * w32.c (globals_of_w32): Add initializations for
11645 g_b_init_get_sid_sub_authority and
11646 g_b_init_get_sid_sub_authority_count.
11647
11648 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11649
11650 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11651 (font_parse_xlfd): Use them for sanity check.
11652 (Finternal_set_font_style_table): Make sure the table is bijective.
11653
11654 Consolidate the image_cache to the terminal struct.
11655 * termhooks.h (P_): Remove redundant def.
11656 (struct terminal): New field `image_cache'.
11657 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11658 of FRAME_X_IMAGE_CACHE.
11659 * xterm.h (struct x_display_info): Remove image_cache field.
11660 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11661 * w32term.h (struct w32_display_info): Remove image_cache field.
11662 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11663 * macterm.h (struct mac_display_info): Remove image_cache field.
11664 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11665 * xterm.c (x_term_init):
11666 * w32term.c (w32_term_init):
11667 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11668 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11669 Remove declarations.
11670 (clear_image_caches, mark_image_cache): New declarations.
11671 * xfaces.c (clear_face_cache):
11672 * xdisp.c (redisplay_internal): Use clear_image_caches.
11673 * image.c (clear_image_cache): Don't check that a frame is on
11674 a window-system before checking if it shares the same cache.
11675 (clear_image_caches): New function.
11676 (Fclear_image_cache): Use it.
11677 (mark_image): Move from allo.c.
11678 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11679 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11680 (mark_object): Don't call mark_image_cache for frames.
11681 (mark_terminals): Call mark_image_cache.
11682
11683 * lisp.h (Fdelete_terminal): Declare.
11684
11685 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11686 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11687 wrong_type_argument.
11688
11689 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11690
11691 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11692 malayalam.el, and tamil.el. Add sinhala.el.
11693
11694 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11695
11696 * xterm.c (x_connection_closed): Consolidate identical tests.
11697 (x_delete_terminal): Don't crash if called via x_connection_closed.
11698
11699 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11700
11701 * xdisp.c (decode_mode_spec): New arg string.
11702 (display_mode_element): Adjust for the above change.
11703
11704 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11705
11706 * callint.c (Fcall_interactively): Use AREF.
11707
11708 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11709
11710 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11711
11712 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11713
11714 * xfns.c (Fx_show_tip): Set string to " " if empty.
11715
11716 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11717
11718 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11719 with Qt.
11720
11721 2008-02-17 Kenichi Handa <handa@m17n.org>
11722
11723 * ftfont.c (ftfont_shape): Return Lispy number.
11724
11725 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11726 for GCs.
11727 (Finternal_set_font_selection_order): Call font_update_sort_order
11728 only when enable_font_backend is set.
11729 (realize_x_face): Set face->font_info to that of default face only
11730 when enable_font_backend is set.
11731
11732 * xdisp.c (handle_composition_prop): Set it->c to the fist
11733 character of the composed region.
11734 (fill_composite_glyph_string): Set base_face->font_info to
11735 s->font_info. Get a face for ascii from base_face->ascii_face.
11736 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11737 with a face already decided.
11738 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11739 non-negative.
11740 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11741 call font_prepare_composition unconditionally.
11742
11743 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11744
11745 * xterm.h (struct x_display_info): New member font.
11746
11747 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11748 (x_set_mouse_face_gc, x_new_font): Likewise.
11749 (x_term_init): Setup display_info->font.
11750 (x_delete_terminal): Free display_info->font.
11751
11752 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11753
11754 * ftxfont.c (ftxfont_default_fid): Delete it.
11755 (ftxfont_open): Set xfont->fid to 0.
11756 (ftxfont_end_for_frame): Clear data specific to the frame and the
11757 font-driver.
11758
11759 * xftfont.c (xftfont_default_fid): Delete it.
11760 (xftfont_open): Set xfont->fid to 0.
11761
11762 * fontset.c (FONTSET_OBJLIST): New macro.
11763 (fontset_find_font): Update font-object list of the fontset.
11764 (free_realized_fontset): New function.
11765 (free_face_fontset): Call free_realized_fontset.
11766 (Ffont_info): Call font_close_object only when enable_font_backend
11767 is set.
11768
11769 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11770 [HAVE_NTGUI]: Include w32term.h.
11771 [MAC_OS]: Include macterm.ch.
11772 (font_otf_ValueRecord): Use make_number.
11773 (font_finish_cache): Fix handling of reference count.
11774 (font_clear_cache): Update num_fonts.
11775 (font_open_entity): Update smallest_char_width and
11776 smallest_font_height of the frame.
11777 (font_close_object): Update num_fonts.
11778 (Fclear_font_cache): Fix finding the target cache data.
11779
11780 2008-02-16 Glenn Morris <rgm@gnu.org>
11781
11782 * fontset.c (Finternal_char_font): Fix compilation warning.
11783
11784 2008-02-16 Eli Zaretskii <eliz@gnu.org>
11785
11786 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11787 instead of char arrays. Enlarge the size of array passed to
11788 get_token_information.
11789
11790 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11791 warnings.
11792
11793 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11794
11795 * .gdbinit: Don't set `args', it breaks gdb --args.
11796
11797 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11798
11799 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11800 within a narrowed buffer.
11801
11802 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11803
11804 * coding.c (decode_coding_object, encode_coding_object):
11805 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11806
11807 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11808
11809 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11810 hardcoding 1.
11811 (detect_coding_system):
11812 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11813 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11814 * insdel.c (insert_from_gap):
11815 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11816 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11817 (string_to_multibyte):
11818 * character.c (chars_in_text, multibyte_chars_in_text):
11819 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11820
11821 * character.h (FETCH_STRING_CHAR_ADVANCE)
11822 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11823 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11824 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11825
11826 * casefiddle.c (casify_region): Only call after-change and composition
11827 functions on the part of the region that was changed.
11828
11829 * keyboard.c (read_avail_input):
11830 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11831
11832 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11833
11834 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11835 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11836
11837 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
11838
11839 * w32menu.c (push_submenu_start, push_submenu_end)
11840 (push_left_right_boundary, push_menu_pane, push_menu_item):
11841 * keyboard.c (read_key_sequence): Don't pass args with side effects
11842 to AREF, it fails when compiling with -DENABLE_CHECKING.
11843
11844 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11845
11846 * Makefile.in (${lispsource}international/charprop.el):
11847 Delete this target.
11848
11849 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11850 emacs-unicode-2.
11851
11852 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11853
11854 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11855
11856 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11857
11858 * frame.c (Qnoelisp): New symbol.
11859 (syms_of_frame): Initialize it.
11860 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11861 harmless Elisp code, from a strong `force' from x_connection_closed.
11862 * frame.h (Qnoelisp): Declare.
11863 * xterm.c (x_connection_closed): Pass `noelisp'.
11864
11865 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11866 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11867 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11868 rather than `int' for the type of `type'.
11869
11870 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11871
11872 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11873
11874 * Makefile.in (GNUC): Remove support for gcc-1.x.
11875
11876 2008-02-10 Richard Stallman <rms@gnu.org>
11877
11878 * lisp.h (ASET): Use AREF, not ASLOT.
11879
11880 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11881
11882 * lisp.h (ASET): Check bounds.
11883
11884 2008-02-10 Glenn Morris <rgm@gnu.org>
11885
11886 * buffer.c (mode-name): Doc fix.
11887
11888 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11889
11890 * Makefile.in:
11891 * emacs.c:
11892 * gmalloc.c:
11893 * keyboard.c:
11894 * lisp.h:
11895 * m/ibm370aix.h:
11896 * process.c:
11897 * regex.c:
11898 * s/hpux.h:
11899 * sysdep.c:
11900 * sysselect.h:
11901 * systty.h:
11902 * unexec.c:
11903 * w32term.c:
11904 * xsmfns.c:
11905 * xterm.c: Remove code that deals with obsolete variables.
11906
11907 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11908
11909 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11910 nothing else needs it anymore.
11911
11912 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11913
11914 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11915 instead of unibyte_char_to_multibyte.
11916
11917 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11918
11919 * s/gnu-linux.h: Remove commented out code.
11920
11921 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11922
11923 * Makefile.in: Update what RMS says about using autoconf.
11924 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11925 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11926 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11927 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11928
11929 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * keymap.c (Fkey_description): Move side effect outside of macro call.
11932
11933 * xfaces.c (Finternal_make_lisp_face):
11934 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11935
11936 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11937 (syms_of_fontset): Use ASET.
11938
11939 * fns.c (concat): Move side effect outside of macro call.
11940 (hash_clear): Use ASET.
11941
11942 2008-02-08 Richard Stallman <rms@gnu.org>
11943
11944 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11945 If FORCE, and frame has a surrogate minibuffer for another frame,
11946 delete the other frame first.
11947
11948 2008-02-07 Timo Savola <timo.savola@iki.fi>
11949
11950 * xterm.c (x_detect_focus_change): Handle embed client message.
11951 (handle_one_xevent): Ditto.
11952 (handle_one_xevent): If embedded and we get a button press/release,
11953 request focus.
11954 (xembed_set_info, xembed_send_message): New functions.
11955 (x_make_frame_visible): Call xembed_set_info if embedded.
11956 (x_make_frame_invisible): Call xembed_set_info if embedded.
11957 (x_term_init): Initialize Xatom_XEMBED.
11958 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11959 (x_iconify_frame): Ditto.
11960
11961 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11962 (enum xembed_info, enum xembed_message, enum xembed_focus)
11963 (enum xembed_modifier, enum xembed_accelerator): New.
11964 (xembed_set_info, xembed_send_message): Declare.
11965 (FRAME_X_EMBEDDED_P): New.
11966
11967 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11968 gtk_plug_new.
11969
11970 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11971 window ID of a frame.
11972 (x_window): Reparent frame if embedded.
11973 (Fx_create_frame): Don't set border width if embedded.
11974
11975 * emacs.c (USAGE3): Add --parent-id.
11976 (standard_args): Ditto.
11977
11978 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11979
11980 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11981
11982 2008-02-07 Jim Meyering <meyering@redhat.com>
11983
11984 Use "do...while (0)", not "if (1)...else" in macro definitions.
11985 The latter provokes a warning from gcc about the empty else, when
11986 followed by ";". Also, without that trailing semicolon, it would
11987 silently swallow up any following statement.
11988 * syntax.h (SETUP_SYNTAX_TABLE)
11989 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11990 * buffer.h (DECODE_POSITION): Likewise.
11991 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11992 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11993 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11994 (FETCH_CHAR_ADVANCE): Likewise.
11995 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11996
11997 2008-02-07 Jim Meyering <meyering@redhat.com>
11998
11999 * lread.c [lint]: Don't include <sys/inode.h>.
12000
12001 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12002
12003 * xselect.c (x_handle_dnd_message):
12004 * xmenu.c (digest_single_submenu, xmenu_show):
12005 * xdisp.c (with_echo_area_buffer_unwind_data)
12006 (format_mode_line_unwind_data, unwind_format_mode_line)
12007 (display_menu_bar):
12008 * eval.c (Ffetch_bytecode):
12009 * doc.c (store_function_docstring):
12010 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12011 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12012 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12013
12014 2008-02-07 Kenichi Handa <handa@m17n.org>
12015
12016 * ftxfont.c (ftxfont_open): Don't set
12017 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12018
12019 * ftfont.c (ftfont_open): Fix previous change.
12020
12021 2008-02-06 Jason Rumney <jasonr@gnu.org>
12022
12023 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12024 Use cached metrics for ASCII characters.
12025 (w32font_open_internal): Don't set font's owning_frame.
12026 Cache metrics for ASCII characters.
12027
12028 * w32font.h (struct w32font_info): Add ascii_metrics.
12029 Remove owning_frame.
12030
12031 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12032
12033 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12034 to negative value.
12035
12036 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12037
12038 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12039
12040 * charset.c (syms_of_charset): Set QCtest and Qeq.
12041
12042 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12043
12044 * process.c (Fstart_process):
12045 * callproc.c (Fcall_process): Handle the case where
12046 Funhandled_file_name_directory returns nil.
12047
12048 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12049 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12050 * font.c (check_gstring): Use them and AREF to access the vector before
12051 we know it's really a gstring.
12052 (Ffont_shape_text): Fix typo.
12053 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
12054
12055 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12056 Declare.
12057
12058 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12059
12060 2008-02-05 Jason Rumney <jasonr@gnu.org>
12061
12062 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12063 Set smallest_font_height and smallest_char_width in display info.
12064
12065 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12066
12067 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12068
12069 2008-02-05 Miles Bader <miles@gnu.org>
12070
12071 * xfaces.c (get_lface_attributes, merge_named_face)
12072 (lookup_named_face, lookup_derived_face, realize_named_face):
12073 Revert 2008-02-01 change by cyd@stupidchicken.com.
12074
12075 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12076
12077 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12078 fallback fonts.
12079 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12080
12081 2008-02-04 Jason Rumney <jasonr@gnu.org>
12082
12083 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12084 set full_name.
12085 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12086
12087 2008-02-03 Jason Rumney <jasonr@gnu.org>
12088
12089 * makefile.w32-in (OBJ1): Include font.o here.
12090 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12091
12092 2008-02-02 Jason Rumney <jasonr@gnu.org>
12093
12094 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12095
12096 2008-02-01 Jason Rumney <jasonr@gnu.org>
12097
12098 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12099
12100 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12101
12102 2008-02-01 Andreas Schwab <schwab@suse.de>
12103
12104 * Makefile.in (shortlisp, lisp): Update for rename of
12105 ../lisp/language/myanmar.el.
12106
12107 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
12108
12109 * xfaces.c (get_lface_attributes): Delete function.
12110 (merge_named_face, lookup_named_face, lookup_derived_face)
12111 (realize_named_face): Call lface_from_face_name directly, and use
12112 the fact that merge_face_vectors does not alter its FROM argument.
12113
12114 2008-02-01 Jason Rumney <jasonr@gnu.org>
12115
12116 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12117 input in the default locale. Handle non-Unicode multibyte input.
12118
12119 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12120
12121 * fontset.c (reorder_font_vector): Exclude nil elements from the
12122 font group. Don't try multiple fonts.
12123 (fontset_font): Adjust for the above change.
12124 (Finternal_char_font): Return nil if the found font doesn't
12125 contain the character ch.
12126
12127 * Makefile.in (lisp, shortlisp): Add cham.el.
12128
12129 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12130
12131 * font.h (FONTP): Make it return 1 also for a font-object.
12132
12133 * .gdbinit (xfontset): New function.
12134
12135 * font.c (font_find_for_lface): Check if the character C is
12136 supported or not only for the first font.
12137
12138 * fontset.c (reorder_font_vector): Fix typo.
12139 (fontset_find_font): Don't add a font-spec specifying a script.
12140 Use 0 (not Qt) for the indication of empty font-group. Change the
12141 format of RFONT-DEF. Return Qt if no font in the font-group
12142 support the character.
12143 (fontset_font): Adjust for the above change. If no font was
12144 found the character, remember that.
12145 (face_for_char): Adjust for the change of RFONT-DEF.
12146 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12147 no font for the target.
12148 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12149
12150 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12151
12152 * font.c (font_load_for_face): Handle the case that the font in
12153 face->lface is a string.
12154
12155 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12156
12157 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12158
12159 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12160
12161 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12162 Fix previous change. If the frame is not on a window system,
12163 signal an error.
12164
12165 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12166
12167 * coding.c (decode_coding_object, encode_coding_object): Adjust
12168 marker positions after conversion.
12169
12170 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12171
12172 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12173
12174 * font.c (font_find_for_lface): Fix the handling of the return
12175 value of font_has_char.
12176 (Ffont_shape_text): Fix previous change.
12177
12178 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12179 (fontset_ref_and_range): Delete it.
12180 (fontset_find_font): Call char_table_ref_and_range instead of
12181 FONTSET_REF_AND_RANGE.
12182 (make_fontset): Don't setup font groups of Latin here.
12183 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12184 (new_fontset_from_font): Make the specified font the default for
12185 all Latin characters.
12186
12187 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12188
12189 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12190 is on a window system before accessing the fontset of the frame.
12191
12192 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12193
12194 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12195
12196 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12197 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12198
12199 * font.c (Ffont_shape_text): If the font driver doesn't have a
12200 shaper function, make zero-width glyphs to have at least one-pixel
12201 width. Fix setting of `to' field of glyphs.
12202
12203 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12204
12205 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12206 glyphs.
12207
12208 * font.h (struct font_driver): Improve docstring of member `shape'.
12209
12210 2008-02-01 Kenichi Handa <handa@m17n.org>
12211
12212 * composite.c (syms_of_composite): Fix docstring of
12213 auto-composition-function.
12214
12215 * font.h (LGLYPH_SIZE): New macro.
12216
12217 * font.c (Ffont_fill_gstring): Stop filling when a character not
12218 supported by the font is found.
12219 (Ffont_shape_text): When a shape callback function returns nil,
12220 try at most two more times with larger gstring.
12221 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12222
12223 * xdisp.c (handle_auto_composed_prop): Change the argument to
12224 auto-composition-function.
12225
12226 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12227 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12228 Lispy glyph and store it in the lgstring.
12229
12230 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12231
12232 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12233
12234 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12235
12236 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12237
12238 * fontset.c (Vfont_encoding_charset_alist): New variable.
12239 (syms_of_fontset): DEFVAR it.
12240 (reorder_font_vector, fontset_find_font): Optimize for the case of
12241 no need of reordering.
12242 (face_for_char): Map the charset property by
12243 Vfont_encoding_charset_alist.
12244
12245 2008-02-01 Jason Rumney <jasonr@gnu.org>
12246
12247 * w32font.c (logfonts_match): Don't check adstyle here.
12248 (font_matches_spec): Check here against physical font instead.
12249 (add_font_entity_to_list): Avoid some substitutions.
12250
12251 * font.c (font_parse_fcname): Default weight and slant to normal.
12252 (font_score): Prefer normal fonts if weight or slant unspecified.
12253 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12254 match freetype scores.
12255
12256 2008-02-01 Jason Rumney <jasonr@gnu.org>
12257
12258 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12259 font, as it may have been deleted.
12260 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12261 most common hyphenless variation.
12262 (logfonts_match): Check generic family.
12263 (font_matches_spec): Don't check generic family here.
12264 (fill_in_logfont): Set generic family based on adstyle.
12265
12266 * w32font.h (w32font_get_cache): Update declaration.
12267
12268 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12269
12270 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12271
12272 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12273 If none of the new drivers are available, call font_update_drivers
12274 with the old drivers.
12275
12276 * w32font.c (w32font_get_cache): Adjust the argument type.
12277
12278 * xfont.c (xfont_get_cache): Adjust the argument type.
12279
12280 * font.h (struct font_driver): Change argument type of get_cache.
12281
12282 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12283
12284 * font.c (Ffont_get): Fix arguments to Fassoc.
12285 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12286 (font_clear_cache): New function.
12287 (font_list_entities, font_matching_entity): Use font_get_cache.
12288 (font_update_drivers): Call font_clear_cache when finishing a driver.
12289
12290 * fontset.c (fontset_find_font): Fix previous change.
12291
12292 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12293
12294 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12295 dpyinfo->font_table.
12296 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12297 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12298
12299 * font.c (font_at): Handle the case that the arg C is negative.
12300 Handle the unibyte case.
12301 (Ffont_at): Call font_at with the arg C -1.
12302
12303 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12304 the position here, and call font_at with the arg C -1.
12305 Don't check the range of the existing composition at the point.
12306
12307 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12308
12309 * fontset.c (fontset_add): New args charset_id and family.
12310 Change caller.
12311 (load_font_get_repertory, fontset_find_font): Assume that
12312 font_spec is always a font-spec object.
12313 (Fset_fontset_font): Always store a font-spec object in a fontset.
12314
12315 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12316 instead of get_property_and_range.
12317
12318 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12319
12320 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12321 (xftfont_open): Don't keep locking face.
12322 (xftfont_close): Don't unlock face.
12323 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12324
12325 * fontset.c (fontset_find_font): Don't prefer a font of
12326 supplementary charset.
12327
12328 2008-02-01 Kenichi Handa <handa@m17n.org>
12329
12330 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12331 script, langsys_tag to langsys, new member script.
12332 (OTF_TAG_STR): Terminate by '\0'.
12333 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
12334 listing to the script specified in that property. Fix arg to
12335 OTF_check_features.
12336
12337 2008-02-01 Jason Rumney <jasonr@gnu.org>
12338
12339 * w32font.h: New file.
12340
12341 * w32font.c: Include it.
12342 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12343 (w32font_open): Set owning_frame.
12344 (w32font_text_extents): Use owning_frame.
12345 (struct font_callback_data): Add opentype_only field.
12346 (add_font_entity_to_list): Use it to filter fonts.
12347 Don't check against full name.
12348 (w32font_list_internal): New function.
12349 (w32font_list): Use it.
12350 (w32font_match_internal): New function.
12351 (w32font_match): Use it.
12352 (w32font_open_internal): New function.
12353 (w32font_open): Use it.
12354 (w32font_get_cache, w32font_close, w32font_has_char)
12355 (w32font_encode_char, w32font_text_extents, w32font_draw):
12356 Make non-static.
12357
12358 * makefile.w32-in (w32font.o): Depend on w32font.h.
12359
12360 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12361
12362 * charset.c (Fdefine_charset_internal): Record a supplementary
12363 charset at the tail of Vcharset_order_list.
12364
12365 * font.c (Ffont_shape_text): Fix the return value.
12366
12367 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12368
12369 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12370
12371 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12372
12373 * ftfont.c (struct OpenTypeSpec): New struct.
12374 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12375 (ftfont_get_open_type_spec): New function.
12376 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12377
12378 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12379
12380 2008-02-01 Jason Rumney <jasonr@gnu.org>
12381
12382 * w32font.c (add_font_entity_to_list): Compare only the beginning
12383 of full name.
12384
12385 2008-02-01 Kenichi Handa <handa@m17n.org>
12386
12387 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12388 Never return HANDLED_RECOMPUTE_PROPS.
12389
12390 2008-02-01 Kenichi Handa <handa@m17n.org>
12391
12392 * font.c (font_gstring_produce): Delete it.
12393
12394 * composite.h (COMPOSITION_METHOD):
12395 Handle COMPOSITION_WITH_GLYPH_STRING.
12396
12397 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12398
12399 * xfont.c (Qx): Delete.
12400 (syms_of_xfont): Don't initialize Qx.
12401
12402 * composite.h (enum composition_method):
12403 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12404
12405 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12406
12407 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12408 (choose_face_font): Accept new form of font-spec.
12409
12410 * frame.h (font_driver_list): Declare it unconditionally.
12411 (struct frame): Define members font_driver_list and font_data_list
12412 unconditionally.
12413
12414 * fontset.c: Include "font.h" unconditionally.
12415 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12416 (Fset_fontset_font): Accept a font-spec object.
12417
12418 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12419 PIXEL_SIZE part a wild card.
12420
12421 * dispextern.h (struct glyph_string): Define members clip and
12422 num_clips unconditionally.
12423 (struct face): Define members font_info and extra unconditionally.
12424
12425 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12426 ftfont_info only when HAVE_LIBOTF is defined.
12427
12428 2008-02-01 Andreas Schwab <schwab@suse.de>
12429
12430 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12431 and end.
12432
12433 2008-02-01 Jason Rumney <jasonr@gnu.org>
12434
12435 * w32font.c (w32font_driver): Add new fields.
12436
12437 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12438
12439 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12440 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12441 (LIBES): Add @M17N_FLT_CFLAGS@.
12442
12443 * composite.c (compose_text): Don't treat the new style
12444 composition specially.
12445
12446 * emacs.c (main): Call syms_of_font unconditionally.
12447
12448 * font.h (FONT_ENTITY_NOT_LOADABLE)
12449 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12450 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12451 (struct font_driver): New member shape.
12452 (font_registry_charsets): Extern it.
12453 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12454 (font_otf_capability, font_drive_otf): Delete their externs.
12455
12456 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12457 (font_charset_alist, font_registry_charsets): Move from xfont.c
12458 and rename.
12459 (font_prop_validate_otf): New function.
12460 (font_property_table): Register it for QCotf.
12461 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12462 (font_drive_otf): Delete.
12463 (font_prepare_composition): New arg F. Adjust for the change of
12464 lispy gstring.
12465 (font_find_for_lface): New arg C.
12466 (font_load_for_face): Adjust for the change of font_find_for_lface.
12467 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12468 lispy gstring.
12469 (Ffont_shape_text): New function.
12470 (Fopen_font): If the font size is not given, use 12-pixel.
12471 (Ffont_at): New arg STRING.
12472 (syms_of_font): Initalize font_charset_alist.
12473 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12474 conditionally.
12475
12476 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12477 fonts of the same font-spec. Change the format of RFONT-DEF.
12478 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12479 Adjust for the change of RFONT-DEF.
12480 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12481
12482 * ftfont.h: New file.
12483
12484 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12485 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12486 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12487 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12488 font_otf_capability and font_drive_otf, set ftfont_shape.
12489 (ftfont_list): Adjust for the change of :otf property value.
12490 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12491 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12492 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12493 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12494 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12495 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12496
12497 * w32term.c (x_draw_composite_glyph_string_foreground):
12498 Adjust for the change of lispy gstring.
12499
12500 * xdisp.c (handle_composition_prop): Adjust for the change of
12501 lispy gstring. Call a function for auto-composition with the
12502 third arg it->window.
12503 (fill_composite_glyph_string): Adjust for the change of lispy string.
12504 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12505
12506 * xfaces.c (set_font_frame_param): Adjust for the change of
12507 font_find_for_lface.
12508
12509 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12510 (xfont_registry_charsets): Likewise. Change caller.
12511 (syms_of_xfont): Don't handle x_font_charset_alist.
12512
12513 * xftfont.c: Include "ftfont.h".
12514 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12515 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12516 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12517 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12518 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12519 Set xftfont_driver.shape to xftfont_shape.
12520
12521 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12522 the change of lispy gstring.
12523
12524 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12525
12526 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12527
12528 2008-02-01 Jason Rumney <jasonr@gnu.org>
12529
12530 * w32font.c (w32font_draw): Fill background manually.
12531
12532 2008-02-01 Jason Rumney <jasonr@gnu.org>
12533
12534 * font.c (Qfontp): Remove unused symbol.
12535 (QCantialias): New symbol.
12536 (syms_of_font): Define it.
12537 (font_property_table): Set a validator for QCantialias.
12538
12539 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12540 Define if not already.
12541 (QCfamily): Share with xfaces.c.
12542 (Qstandard, Qsubpixel, Qnatural): New symbols.
12543 (syms_of_w32font): Define them. Don't define QCfamily here.
12544 (w32_antialias_type, lispy_antialias_type): New functions.
12545 (w32_enumfont_pattern_entity): New arg requested_font.
12546 Set antialias parameter if non-default was requested.
12547 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12548
12549 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12550
12551 * lread.c (read1): Undo the previous change.
12552
12553 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12554
12555 * frame.c (Fdelete_frame): Call font_update_drivers only when
12556 USE_FONT_BACKEND is defined.
12557
12558 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12559
12560 * font.h (struct font_bitmap): New member bits_per_pixel.
12561 (struct font_driver): New members start_for_frame and end_for_frame.
12562 (struct font_data_list): New struct.
12563 (font_put_frame_data, font_get_frame_data): Extern them.
12564
12565 * frame.h (struct frame): New member font_data_list.
12566
12567 * font.c (font_update_drivers): Call driver->start_for_frame and
12568 driver->end_for_frame at proper timings.
12569 (font_put_frame_data, font_get_frame_data): New functions.
12570 (Ffont_spec): Add usage in the docstring.
12571
12572 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12573 (Fdelete_frame): Call font_update_drivers.
12574
12575 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12576 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12577 (xftfont_get_xft_draw): New function.
12578 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12579 (xftfont_end_for_frame): New function.
12580 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12581
12582 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12583 Change argument. Cache GCs in the per-frame data.
12584 (struct ftxfont_frame_data): New struct.
12585 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12586 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12587 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12588 (ftxfont_end_for_frame): New function.
12589 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12590
12591 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12592
12593 2008-02-01 Kenichi Handa <handa@m17n.org>
12594
12595 * xselect.c (Vselection_coding_system)
12596 (Vnext_selection_coding_system): Delete them.
12597 (syms_of_xselect): Don't declare selection-coding-system and
12598 next-selection-coding-system. They are declared in select.el.
12599
12600 2008-02-01 Jason Rumney <jasonr@gnu.org>
12601
12602 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12603
12604 * w32fns.c: Include imm.h.
12605 (get_composition_string_fn, get_ime_context_fn): New optional
12606 system functions.
12607 (globals_of_w32fns): Load them from imm32.dll.
12608 (ignore_ime_char): New flag.
12609 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12610 WM_IME_ENDCOMPOSITION messages.
12611
12612 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12613 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12614
12615 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12616
12617 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12618 (READCHAR_REPORT_MULTIBYTE): New macro.
12619 (readchar): New 2nd arg MULTIBYTE.
12620 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12621 Make symbol's name multibyte according to the multibyteness of the
12622 source.
12623
12624 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12625
12626 * xfaces.c (face_for_overlay_string): Call lookup_face with
12627 correct arguments (fix of synching with the trunk).
12628
12629 2008-02-01 Kenichi Handa <handa@m17n.org>
12630
12631 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12632 (font_prop_validate_non_neg, font_prop_validate_spacing):
12633 Delete argument prop_index.
12634 (font_property_table): Change arguments to validater. Change Callers.
12635 (font_lispy_object): Delete.
12636 (font_at): Use font_find_object instead fo font_lispy_object.
12637
12638 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12639
12640 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12641 and file names.
12642
12643 2008-02-01 Jason Rumney <jasonr@gnu.org>
12644
12645 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12646 (font_matches_spec): Remove debug output.
12647 (add_font_entity_to_list): Avoid using substituted fonts.
12648
12649 2008-02-01 Jason Rumney <jasonr@gnu.org>
12650
12651 * doc.c (Fsnarf_documentation):
12652 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12653
12654 2008-02-01 Miles Bader <miles@gnu.org>
12655
12656 * dispextern.h (struct glyph_row): Only define "clip" field if
12657 HAVE_WINDOW_SYSTEM is defined.
12658
12659 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12660
12661 Fix up multi-tty merge.
12662
12663 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12664 and indentation.
12665
12666 * xfaces.c (free_realized_face, clear_face_gcs):
12667 Include font_done_for_face in the input_blocked section, just in case.
12668
12669 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12670 (get_char_face_and_encoding): Undo last change and remove the *other*
12671 duplicate definition (i.e. keep the one that's better scoped and that
12672 includes code for the font-backend).
12673
12674 * terminal.c (create_terminal): Default keyboard_coding to
12675 `no-conversion' and terminal_coding to `undecided'.
12676
12677 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12678
12679 * fontset.c (free_realized_fontsets): Check that the table entry does
12680 contain a fontset before trying to compare it to `base'.
12681
12682 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12683 syms_of_charset, and syms_of_coding earlier because init_window_once
12684 now needs Vcoding_system_hash_table to be setup.
12685
12686 * coding.h (default_buffer_file_coding): Remove.
12687
12688 * coding.c (default_buffer_file_coding): Remove.
12689 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12690 than ->symbol, and use the terminal-local coding system.
12691 (syms_of_coding): Don't setup the coding-systems that are not
12692 terminal-local.
12693 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12694
12695 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12696 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12697
12698 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12699 in chartab.c and were re-added here by mistake.
12700 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12701
12702 * doc.c (Fsnarf_documentation):
12703 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12704 src to etc.
12705
12706 * ChangeLog.10: Add mistakenly removed entry.
12707
12708 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12709
12710 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12711
12712 2008-02-01 Miles Bader <miles@gnu.org>
12713
12714 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12715 Add extra args to FACE_FOR_CHAR.
12716
12717 2008-02-01 Kenichi Handa <handa@m17n.org>
12718
12719 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12720 in sequence.
12721
12722 * chartab.c (map_sub_char_table, map_char_table): If the range
12723 contains just one character, call the function with that character
12724 even if the depth is not 3.
12725
12726 2008-02-01 Jason Rumney <jasonr@gnu.org>
12727
12728 * w32font.c (w32font_text_extents): Calculate metrics for the
12729 whole string.
12730
12731 2008-02-01 Jason Rumney <jasonr@gnu.org>
12732
12733 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12734
12735 2008-02-01 Jason Rumney <jasonr@gnu.org>
12736
12737 * w32term.c (x_set_glyph_string_clipping): Use
12738 get_glyph_string_clip_rects.
12739 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12740 Adjust for the change of struct glyph_string.
12741
12742 * w32font.c (w32font_draw): Do clipping here.
12743
12744 2008-02-01 Kenichi Handa <handa@m17n.org>
12745
12746 * xftfont.c (xftfont_draw): Adjust for the change of struct
12747 glyph_string.
12748
12749 * xterm.c (x_set_glyph_string_clipping): Use
12750 get_glyph_string_clip_rects.
12751 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12752 Adjust for the change of struct glyph_string.
12753
12754 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12755 the resulting clip(s}.
12756 (expose_overlaps): Add arg r. Change callers. Set it to
12757 row->clip temporarily.
12758 (expose_window): Redraw rows overlapping the exposed area.
12759
12760 * dispextern.h (struct glyph_row): New member clip.
12761 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12762 clip_height, new member clip, and num_clips.
12763
12764 2008-02-01 Kenichi Handa <handa@m17n.org>
12765
12766 * data.c (Fchar_or_string_p): Fix docstring.
12767
12768 2008-02-01 Kenichi Handa <handa@m17n.org>
12769
12770 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12771 create a temporary XftDraw object.
12772
12773 2008-02-01 Kenichi Handa <handa@m17n.org>
12774
12775 * font.c (Ffontp): Fix docstring.
12776
12777 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12778 strong evidence of ISO-2022.
12779
12780 2008-02-01 Kenichi Handa <handa@m17n.org>
12781
12782 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12783 SYNTAX_ENTRY_FOLLOW_PARENT.
12784
12785 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12786
12787 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12788 its type.
12789 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12790 Update to the new type of weak_hash_tables and next_weak.
12791
12792 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12793 a plain C pointer to Lisp_Hash_Table.
12794
12795 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12796 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12797 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12798 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12799 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12800 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12801 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12802 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12803 (GC_EQ): Remove since they've been identical to their non-GC_
12804 alter-egos ever since the markbit was eradicated.
12805
12806 * alloc.c:
12807 * buffer.c:
12808 * buffer.h:
12809 * data.c:
12810 * fileio.c:
12811 * filelock.c:
12812 * fns.c:
12813 * frame.h:
12814 * lisp.h:
12815 * macterm.c:
12816 * print.c:
12817 * process.c:
12818 * w32fns.c:
12819 * w32menu.c:
12820 * w32term.c:
12821 * xfns.c:
12822 * xmenu.c:
12823 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12824
12825 2008-02-01 Kenichi Handa <handa@m17n.org>
12826
12827 * chartab.c (map_sub_char_table): Make it work for the top-level
12828 char-table. Fix handling of parent char-table.
12829 (map_char_table): Adjust for the above change.
12830
12831 2008-02-01 Jason Rumney <jasonr@gnu.org>
12832
12833 * w32font.c (Qgdi): Rename from Qw32.
12834
12835 2008-02-01 Jason Rumney <jasonr@gnu.org>
12836
12837 * w32bdf.c (get_quoted_string): Make function static.
12838
12839 2008-02-01 Kenichi Handa <handa@m17n.org>
12840
12841 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12842 bigger ascent and descent than those of the font, use them as
12843 font's ascent and descent.
12844
12845 2008-02-01 Kenichi Handa <handa@m17n.org>
12846
12847 * Makefile.in (${lispsource}international/charprop.el): Move this
12848 target within "#ifdef HAVE_UNIDATA" and "#endif".
12849
12850 2008-02-01 Kenichi Handa <handa@m17n.org>
12851
12852 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12853 (shortlisp): Add ../lisp/language/tai-viet.el.
12854
12855 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
12856
12857 * Makefile.in (${lispsource}international/charprop.el): Depend on
12858 temacs${EXEEXT}.
12859
12860 2008-02-01 Jason Rumney <jasonr@gnu.org>
12861
12862 * w32font.c (w32font_close): Delete the GDI font object.
12863
12864 * w32menu.c: Include character.h.
12865
12866 * w32proc.c: Likewise.
12867
12868 * w32select.c: Likewise.
12869
12870 * makefile.w32-in (w32proc.o): Depend on character.h.
12871
12872 2008-02-01 Jason Rumney <jasonr@gnu.org>
12873
12874 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12875
12876 * w32menu.c (syms_of_w32menu): Likewise.
12877
12878 * w32proc.c (syms_of_ntproc): Likewise.
12879
12880 * w32select.c (syms_of_w32select): Likewise.
12881
12882 * w32term.c (syms_of_w32term): Likewise.
12883
12884 2008-02-01 Jason Rumney <jasonr@gnu.org>
12885
12886 * w32font.c (w32font_draw): Delete brush after using it.
12887
12888 2008-02-01 Jason Rumney <jasonr@gnu.org>
12889
12890 * w32font.c (w32font_open): Don't set font_idx.
12891 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12892 to font settings.
12893 (w32font_draw): Fill background explicitly.
12894
12895 2008-02-01 Jason Rumney <jasonr@gnu.org>
12896
12897 * w32term.c (w32_initialize): Don't call w32font_initialize.
12898
12899 * w32font.c (w32font_info): Remove subranges.
12900 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12901 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12902 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12903 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12904 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12905 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12906 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12907 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12908 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12909 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12910 New symbols.
12911 (font_callback_data): New struct.
12912 (w32font_list, w32font_match): Use it.
12913 (w32font_open): Don't populate subranges.
12914 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12915 (w32font_encode_char): Always return unicode code-point as-is.
12916 (w32font_text_extents): Supply a transformation matrix to
12917 GetGlyphOutline. Never look up by glyph index. Avoid looping
12918 twice. Use unicode version of GetTexExtentPoint32 instead of
12919 glyph index version.
12920 (set_fonts_frame): Remove.
12921 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12922 set frame parameter. Use backward compatible fake foundries.
12923 Save generic family in extra slot under QCfamily. Make width slot
12924 constant. Save QCspacing value. Save list of scripts instead of
12925 binary subranges.
12926 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12927 (add_font_entity_to_list): Use font_callback_data struct. Filter
12928 unwanted fonts.
12929 (add_one_font_entity_to_list): Use font_callback_data struct.
12930 (w32_registry): Default to iso10646_1.
12931 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12932 string font registries. Don't fill in font name if it is a generic
12933 family name, fill family instead. Use spacing, family and script
12934 extra info to fill pitch, family and charset fields.
12935 (list_all_matching_fonts): Use font_callback_data struct.
12936 (unicode_range_for_char): Remove.
12937 (font_supported_scripts): New function.
12938 (w32font_initialize): Remove.
12939 (syms_of_w32font): Update which symbols are defined.
12940
12941 2008-02-01 Jason Rumney <jasonr@gnu.org>
12942
12943 * font.c (font_pixel_size): Reverse assq_no_quit args.
12944
12945 * w32term.h (FONT_WIDTH): Report max width, not average.
12946 (FONT_MAX_WIDTH): Remove.
12947 (FONT_AVG_WIDTH): New macro.
12948
12949 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12950 redefinition of FONT_WIDTH.
12951
12952 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12953 (w32_cache_char_metrics): Use FONT_WIDTH.
12954
12955 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12956
12957 2008-02-01 Jason Rumney <jasonr@gnu.org>
12958
12959 * w32font.c (w32font_open): Make lfHeight negative.
12960
12961 * w32fns.c (x_default_font_parameter): Use new style font name.
12962 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12963
12964 2008-02-01 Jason Rumney <jasonr@gnu.org>
12965
12966 * w32font.c (QCsubranges): New symbol.
12967 (w32font_open, w32font_has_char): Get subranges from subproperty
12968 of extra.
12969 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12970 (syms_of_w32font): Define :subranges symbol.
12971
12972 * font.c (font_put_extra): Expose externally.
12973
12974 * font.h (font_put_extra): Move declaration from font.c.
12975
12976 * font.c (Ffont_get): Use font driver to determine otf capability.
12977 (adjust_anchor): Check if driver defines anchor_point before using.
12978
12979 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12980 (w32font_draw): Use options.
12981 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12982 Fix detection of truetype fonts.
12983 (registry_to_w32_charset): Handle charsets other than iso8859-1
12984 expressed as lisp symbols.
12985 (w32_registry): Express charset as lisp symbol.
12986 (fill_in_logfont): Reverse pixel and point height logic.
12987 Don't set width here. Set quality to default.
12988
12989 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12990 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12991
12992 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12993 Remove redundant loop and allocation.
12994
12995 * makefile.w32-in (font.o, w32font.o): New objects.
12996 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12997 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12998
12999 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13000 STORE_XCHARB a valid l-value.
13001
13002 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13003 calculations for non-Truetype fonts.
13004 (x_draw_glyph_string): Sync with xterm.c.
13005 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13006 Remove redundant code.
13007 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13008
13009 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13010 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13011
13012 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13013 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13014
13015 * w32font.c: New file for w32 font backend.
13016
13017 2008-02-01 Kenichi Handa <handa@m17n.org>
13018
13019 * term.c: Don't include "buffer.h" twice.
13020
13021 2008-02-01 Kenichi Handa <handa@m17n.org>
13022
13023 * character.c (Funibyte_string): New function.
13024 (syms_of_character): Defsubr it.
13025
13026 2008-02-01 Jason Rumney <jasonr@gnu.org>
13027
13028 * w32term.c [USE_FONT_BACKEND]:
13029 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13030 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13031 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13032 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13033 (x_free_frame_resources): Sync with xterm.c.
13034
13035 2008-02-01 Andreas Schwab <schwab@suse.de>
13036
13037 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13038 char-table size.
13039
13040 2008-02-01 Kenichi Handa <handa@m17n.org>
13041
13042 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13043
13044 2008-02-01 Kenichi Handa <handa@m17n.org>
13045
13046 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13047 font_otf_gpos, add font_drive_otf.
13048
13049 * fontset.c (fontset_find_font): Pay attention to font size
13050 specified for a font.
13051 (reorder_font_vector): Check contents of font_def.
13052
13053 * font.c (struct otf_list): Delete it.
13054 (otf_list): Make it a lisp variable.
13055 (otf_open): Use lispy otf_list.
13056 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13057 (check_otf_features): New function.
13058 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13059 New functions.
13060 (font_drive_otf): New function merging font_otf_gsub and
13061 font_otf_gpos.
13062 (font_open_for_lface): New arg spec. Change argument order.
13063 (font_load_for_face): Adjust for the change of font_open_for_lface.
13064 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13065 Ffont_otf_gpos.
13066 (syms_of_font): Staticpro otf_list. Delete defsubr of
13067 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13068
13069 * xfaces.c (set_font_frame_param): Adjust for the change of
13070 font_open_for_lface.
13071
13072 * font.h (font_open_for_lface): Adjust prototype.
13073 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13074 member otf_drive.
13075 (font_otf_gsub, font_otf_gpos): Delete externs.
13076 (font_drive_otf): Extern it.
13077
13078 2008-02-01 Kenichi Handa <handa@m17n.org>
13079
13080 * font.c (font_at): If the window W is not on a window system,
13081 return Qnil.
13082
13083 * coding.c (produce_chars, encode_coding): Don't call
13084 insert_from_gap if no characters to produce.
13085
13086 2008-02-01 Kenichi Handa <handa@m17n.org>
13087
13088 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13089 Fclear_face_cache.
13090
13091 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13092
13093 2008-02-01 Miles Bader <miles@gnu.org>
13094
13095 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13096 Parse "--disable-font-backend" option.
13097 (standard_args): Add "--disable-font-backend" option.
13098
13099 2008-02-01 Kenichi Handa <handa@m17n.org>
13100
13101 * fontset.c (fontset_find_font): New function.
13102 (fontset_font): Use fontset_find_font.
13103 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13104 Register the specified font for all Latin characters.
13105 (new_fontset_from_font): Register the specified font for all Latin
13106 characters.
13107 (dump_fontset): For a realized fontset, include the base fontset
13108 name in the returned vector.
13109
13110 2008-02-01 Kenichi Handa <handa@m17n.org>
13111
13112 * character.h (CHAR_STRING): Cast C to unsigned on calling
13113 char_string.
13114
13115 * character.c (char_string): Type of arg C changed to unsigned.
13116 Signal an error if C is an invalid character code.
13117
13118 * editfns.c (general_insert_function, Fchar_to_string):
13119 Use CHARACTERP, not INTEGERP.
13120
13121 2008-02-01 Kenichi Handa <handa@m17n.org>
13122
13123 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13124 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13125
13126 * regex.c (analyse_first): Fix for multibyte characters in "case
13127 charset:" and "case categoryspec:".
13128
13129 2008-02-01 Andreas Schwab <schwab@suse.de>
13130
13131 * Makefile.in (LIBES): Move standard libraries to the end.
13132
13133 2008-02-01 Kenichi Handa <handa@m17n.org>
13134
13135 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13136 nonzero, don't shrink the buffer nextb.
13137
13138 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13139
13140 * coding.c (coding_alloc_by_making_gap): New arg offset.
13141 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13142 offset.
13143 (decode_coding_iso_2022): Update coding->safe_charsets.
13144 (decode_coding_gap): Temporarily set
13145 current_buffer->text->inhibit_shrinking to 1.
13146
13147 2008-02-01 Kenichi Handa <handa@m17n.org>
13148
13149 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13150 indexing into elements of s->cmp and s->char2b.
13151
13152 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
13153
13154 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13155
13156 2008-02-01 Kenichi Handa <handa@m17n.org>
13157
13158 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13159 target_multibyte instead of multibyte.
13160 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13161 (bcmp_translate): Change the argument name from multibyte to
13162 target_multibyte.
13163
13164 2008-02-01 Kenichi Handa <handa@m17n.org>
13165
13166 These changes are to compile a regexp into a pattern that can be
13167 used both for multibyte and unibyte targets.
13168
13169 * Makefile.in (search.o): Depend on charset.h.
13170
13171 * character.c (multibyte_char_to_unibyte_safe): New function.
13172
13173 * search.c: Include "charset.h".
13174 (compile_pattern_1): Delete argument multibyte. Don't set
13175 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13176 (compile_pattern): Don't compare cp->buf.target_multibyte.
13177 Compare cp->buf.charset_unibyte.
13178 (compile_pattern): Set cp->buf.target_multibyte.
13179
13180 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13181
13182 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13183
13184 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13185 multibyte. Change callers.
13186 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13187 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13188 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13189 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13190 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13191 (regex_compile): Make the compiled pattern usable both for
13192 multibyte and unibyte targets.
13193 (analyse_first): Make the fastmap usable both for multibyte and
13194 unibyte targets.
13195 (TRANSLATE_VIA_MULTIBYTE): Delete.
13196 (re_match_2_internal): Pay attention to the case that the
13197 multibyteness of bufp and target may be different.
13198
13199 2008-02-01 Kenichi Handa <handa@m17n.org>
13200
13201 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13202 empty box occupy at least one column width.
13203
13204 2008-02-01 Miles Bader <miles@gnu.org>
13205
13206 * Makefile.in: Remove redundant HAVE_XFT clause.
13207
13208 2008-02-01 Kenichi Handa <handa@m17n.org>
13209
13210 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13211
13212 2008-02-01 Kenichi Handa <handa@m17n.org>
13213
13214 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13215 being nil.
13216
13217 2008-02-01 Kenichi Handa <handa@m17n.org>
13218
13219 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13220
13221 2008-02-01 Kenichi Handa <handa@m17n.org>
13222
13223 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13224
13225 2008-02-01 Kenichi Handa <handa@m17n.org>
13226
13227 * search.c (simple_search): Fix previous change.
13228
13229 2008-02-01 Kenichi Handa <handa@m17n.org>
13230
13231 * xftfont.c (ftfont_font_format): Extern declaration.
13232
13233 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13234
13235 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13236 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13237
13238 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13239 (ftfont_font_format): Fix previous change.
13240
13241 * font.h (Ffont_xlfd_name): EXFUN it.
13242
13243 * font.c (font_parse_xlfd): Fix the array size of `f'.
13244 (register_font_driver): Use EQ to compare driver->type.
13245
13246 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13247 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13248 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13249
13250 2008-02-01 Kenichi Handa <handa@m17n.org>
13251
13252 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13253 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13254
13255 2008-02-01 Kenichi Handa <handa@m17n.org>
13256
13257 * xfont.c (xfont_open): Set font->format.
13258
13259 * xftfont.c (xftfont_open): Set font->format.
13260
13261 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13262 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13263 (ftfont_open): Set font->format.
13264 (ftfont_font_format): New function.
13265
13266 * font.h (struct font): New member format.
13267
13268 * font.c (Qopentype): New variable.
13269 (syms_of_font): Defsym it.
13270 (Fquery_font): Change the format of the last element of the return
13271 value.
13272
13273 2008-02-01 Kenichi Handa <handa@m17n.org>
13274
13275 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13276 last resort.
13277
13278 2008-02-01 Kenichi Handa <handa@m17n.org>
13279
13280 * coding.c (detect_coding_charset): Fix detection of multi-byte
13281 charset.
13282
13283 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13284
13285 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13286
13287 2008-02-01 Kenichi Handa <handa@m17n.org>
13288
13289 * xdisp.c (get_next_display_element): Set it->face_id for the
13290 first component of a composition.
13291 (x_produce_glyphs): Check if the font is changed or not for composition.
13292
13293 2008-02-01 Kenichi Handa <handa@m17n.org>
13294
13295 * fontset.c (Qlatin): New variable.
13296 (syms_of_fontset): Define it as a lisp symbol.
13297 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13298
13299 2008-02-01 Kenichi Handa <handa@m17n.org>
13300
13301 * font.c (font_unparse_fcname): Pay attention to the case that
13302 some of font property is a null string.
13303
13304 2008-02-01 Kenichi Handa <handa@m17n.org>
13305
13306 * term.c: Include "composite.h".
13307 (encode_terminal_code): Output all components of composition.
13308 Check the size of encode_terminal_src.
13309 (produce_glyphs): For composition, call produce_composite_glyph.
13310 (append_composite_glyph, produce_composite_glyph): New functions.
13311
13312 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13313 is not found, get font_info from the current ascii face.
13314
13315 2008-02-01 Kenichi Handa <handa@m17n.org>
13316
13317 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13318 buffer-file-name to Qnil before calling insert_from_buffer.
13319
13320 * font.c (font_unparse_fcname): Pay attention to the case that
13321 foundry is a null string.
13322
13323 2008-02-01 Kenichi Handa <handa@m17n.org>
13324
13325 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13326
13327 * font.c (Qunicode_sip): New variable.
13328 (syms_of_font): Declare it as a Lisp symbol.
13329
13330 * font.h (Qunicode_sip): Extern it.
13331
13332 2008-02-01 Kenichi Handa <handa@m17n.org>
13333
13334 * composite.c (get_composition_id): Pay attention to TAB component.
13335
13336 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13337 TAB. Adjust for the change of s->char2b which always points to
13338 the first element of allocated memory.
13339
13340 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13341
13342 * xdisp.c (handle_composition_prop): Set it->c to the first
13343 non-TAB component.
13344 (fill_composite_glyph_string): Change argument.
13345 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13346 (x_produce_glyphs): Fix handling of left/right padding.
13347
13348 2008-02-01 Kenichi Handa <handa@m17n.org>
13349
13350 * coding.c (detect_coding_system): Fix for handling off
13351 inhibit_iso_escape_detection. Fix for the case that no coding
13352 system is defined for a specific coding category.
13353
13354 2008-02-01 Kenichi Handa <handa@m17n.org>
13355
13356 * font.c (font_matching_entity): Delete unused local var.
13357
13358 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13359 opening a font.
13360
13361 * fileio.c (Finsert_file_contents): On recovering a file, assume
13362 Unix-like eol.
13363 (choose_write_coding_system): On auto-saving a file, force
13364 Unix-like eol.
13365
13366 * coding.c (setup_coding_system): Fix setting of
13367 coding->common_flags based on eol_type.
13368 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13369 inherit from it.
13370
13371 2008-02-01 Kenichi Handa <handa@m17n.org>
13372
13373 * alloc.c (NSTATICS): Increas to 0x600.
13374
13375 2008-02-01 Kenichi Handa <handa@m17n.org>
13376
13377 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13378 (ftfont_list): Don't check :name property.
13379 (ftfont_match): New function.
13380 (ftfont_pattern_entity): If the pattern doesn't contain
13381 FC_SPACING, don't assume FC_MONO.
13382
13383 * font.h (struct font_driver): New member `match'.
13384 (font_update_drivers): Adjust prototype.
13385
13386 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13387 property of FONT.
13388 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13389 them unconditionally.
13390 (font_matching_entity): New function.
13391 (font_open_by_name): Try font_matching_entity if exact match is
13392 not found.
13393 (font_update_drivers): Delete the arg FONT. Return a list of
13394 actually used backends. Don't free faces, font caches here.
13395 Don't store data in frame parameters. Don't call x_set_font.
13396 (Ffont_spec): Store :name property as is.
13397 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13398 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13399 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13400 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13401 Call font->driver->otf_gsub instead of font_otf_gsub.
13402
13403 * frame.c (x_set_font_backend): Do more works that were done in
13404 font_update_drivers before.
13405
13406 * xfont.c (xfont_match): New function.
13407 (xfont_driver): Set xfont_driver.match to xfont_match.
13408 (xfont_draw): Set font in GC if necessary.
13409
13410 * ftxfont.c (ftxfont_match): New function.
13411 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13412
13413 * xftfont.c (xftfont_match): New function.
13414 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13415
13416 2008-02-01 Kenichi Handa <handa@m17n.org>
13417
13418 * font.h (struct font): New member scalable.
13419 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13420 (font_otf_gsub): Adjust prototype.
13421
13422 * font.c (font_otf_capability): Fix handling of the default langsys.
13423 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13424 Check the contents of SPEC.
13425 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13426 (check_gstring): New function.
13427 (REPLACEMENT_CHARACTER): New macro.
13428 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13429 glyph codes of GSTRING.
13430 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13431 (font_prepare_composition): Set cmp->glyph_len.
13432 (font_open_entity): Set font->scalable.
13433 (Ffont_get): Handle :otf property.
13434 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13435 functions.
13436 (Fquery_font): Use font->font.full_name.
13437 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13438 Sfont_otf_alternates.
13439
13440 * ftfont.c (ftfont_open): Set font->font.full_name and
13441 font->font.name properly. Fix calculation of font->font.height
13442 and font->min_width.
13443
13444 * ftxfont.c (ftxfont_create_gcs): New function.
13445 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13446 (ftxfont_draw_backgrond): Fix filling region.
13447 (ftxfont_default_fid): New function.
13448 (ftxfont_open): Set xfont->fid to the return value of
13449 ftxfont_default_fid.
13450 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13451 (ftxfont_done_face): Free only GCs that are created by
13452 ftxfont_create_gcs.
13453 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13454
13455 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13456 Clip to src->width, etc (not src->clip_XXX).
13457
13458 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13459 FontBackend frame parameter.
13460
13461 2008-02-01 Kenichi Handa <handa@m17n.org>
13462
13463 * font.h (struct font_driver_list): New member `on'.
13464 (Fclear_font_cache): EXFUN it.
13465 (font_update_drivers): Extern it.
13466
13467 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13468 (font_list_entities): Check driver_list->on.
13469 (register_font_driver): Initalize `on' member to 0.
13470 (font_update_drivers): New function.
13471 (Fclear_font_cache): Check driver_list->on.
13472
13473 * frame.h (Qfont_backend): Extern it.
13474 (x_set_font_backend): Extern it.
13475
13476 * frame.c (Qfont_backend): New variable.
13477 (frame_parms): New element for font-backend.
13478 (x_set_font_backend): New function.
13479
13480 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13481 FontBackend frame parameter.
13482 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13483 x_set_font_backend.
13484
13485 * xfont.c (xfont_list): Don't try listing by :name property if the
13486 name is not for XLFD.
13487
13488 2008-02-01 Kenichi Handa <handa@m17n.org>
13489
13490 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13491 (LGLYPH_SET_TO): New macros.
13492 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13493 element of G is vector or not.
13494 (font_at): Extern it.
13495
13496 * font.c: Include window.h.
13497 (font_lispy_object): New function.
13498 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13499 end of valid glyph.
13500 (font_close_object): Fix getting (struct font *).
13501 (font_at): New function.
13502 (Ffont_get): If FONT is a font-object, get entity from it.
13503 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13504 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13505 range check.
13506 (Ffont_at): New function.
13507 (syms_of_font): Defsubr Sfont_at.
13508
13509 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13510 before the entry for Qcomposition.
13511 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13512 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13513 the font in gstring.
13514 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13515 LGLYPH_FORM (g) to detect the end of valid glyph.
13516 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13517 we are composing with gstring.
13518
13519 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13520 Check if adjustment is vector or not.
13521
13522 * Makefile.in (font.o): Make it depends on window.h.
13523
13524 2008-02-01 Kenichi Handa <handa@m17n.org>
13525
13526 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13527 adjustment is vector or not.
13528
13529 2008-02-01 Miles Bader <miles@gnu.org>
13530
13531 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13532
13533 2008-02-01 Kenichi Handa <handa@m17n.org>
13534
13535 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13536 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13537 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13538
13539 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13540 (DEVICE_DELTA): Fix typo.
13541 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13542 LGLYPH format.
13543
13544 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13545 the change of LGLYPH format.
13546
13547 2008-02-01 Kenichi Handa <handa@m17n.org>
13548
13549 * ftfont.c (ftfont_list): Fix typo.
13550 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13551
13552 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13553
13554 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13555
13556 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13557 xftface_info is non-NULL.
13558
13559 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13560
13561 * ftfont.c (ftfont_list): Move misplaced #endif.
13562
13563 2008-02-01 Kenichi Handa <handa@m17n.org>
13564
13565 * ftfont.c (ftfont_list): Pay attention to the case that
13566 FC_CAPABILITY is not defined.
13567
13568 2008-02-01 Kenichi Handa <handa@m17n.org>
13569
13570 * xftfont.c (xftfont_open): Set charset related members to -1.
13571
13572 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13573 QCname.
13574 (ftfont_open): Set charset related members to -1.
13575
13576 * fontset.c (Votf_script_alist): New variable.
13577 (syms_of_fontset): Initialize it.
13578 (fontset_font): Delete unused variable.
13579
13580 * fontset.h (Votf_script_alist): Extern it.
13581
13582 * font.c (font_find_for_lface): Optimize code.
13583
13584 * font.h (font_close_object, font_merge_old_spec): Extern them.
13585
13586 2008-02-01 Kenichi Handa <handa@m17n.org>
13587
13588 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13589 (syms_of_font): Initialize them.
13590 (font_pixel_size): Allow float value in dpi.
13591 (font_prop_validate_type): Delete.
13592 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13593 Change caller.
13594 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13595 (font_prop_validate_extra): Delete.
13596 (font_prop_validate_spacing): New function.
13597 (font_property_table): Add elements for all known properties.
13598 (get_font_prop_index): Rename from check_font_prop_name. New
13599 argument FROM. Change caller.
13600 (font_prop_validate): Validate all known properties.
13601 (font_put_extra): Delete argument force. Change caller.
13602 (font_expand_wildcards): Make it static. Fix the way of shrinking
13603 the possible range.
13604 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13605 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13606 Change caller.
13607 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13608 (font_parse_fcname): Delete argument merge. Fix parsing of point
13609 size. Don't validate properties values here. Change caller.
13610 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13611 (font_open_by_name): Delete unused variable.
13612 (Ffont_spec): Likewise. Validate property values.
13613 (Ffont_match_p): New function.
13614
13615 * font.h (QCscalable): Extern it.
13616 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13617
13618 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13619
13620 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13621 (xfont_list_pattern): New function.
13622 (xfont_list): Use xfont_list_pattern.
13623
13624 2008-02-01 Kenichi Handa <handa@m17n.org>
13625
13626 * font.h (Flist_fonts): EXFUN it.
13627
13628 2008-02-01 Jason Rumney <jasonr@gnu.org>
13629
13630 * w32term.c (w32_initialize): Add back smoothing_type and
13631 smoothing_enabled definitions.
13632
13633 2008-02-01 Kenichi Handa <handa@m17n.org>
13634
13635 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13636 s->face->font on determining underline position.
13637
13638 2008-02-01 Kenichi Handa <handa@m17n.org>
13639
13640 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13641 (font_has_char): Accept font-object too.
13642 (font_find_for_lface): Try at first with a size specified in face.
13643
13644 2008-02-01 Kenichi Handa <handa@m17n.org>
13645
13646 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13647 font_open_by_name.
13648
13649 2008-02-01 Kenichi Handa <handa@m17n.org>
13650
13651 * font.h (QCspacing, QCdpi): Extern them.
13652 (enum font_spacing): New enum.
13653 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13654
13655 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13656 (QCspacing, QCdpi): New variables.
13657 (syms_of_font): Initialize them.
13658 (font_pixel_size): New function.
13659 (font_put_extra): New function.
13660 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13661 in FONT_EXTRA.
13662 (font_parse_fcname): Handle enumerated values (e.g. bold).
13663 Fix handling font size. Add QCname property that contains only
13664 unknown properties.
13665 (font_score): Change argument. Change caller. Pay attention to
13666 FONT_PIXEL_SIZE_QUANTUM.
13667 (font_sort_entites, font_list_entities, font_find_for_lface)
13668 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13669 (Ffont_spec): Add QCname property that contains only unknown properties.
13670
13671 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13672 include weight in listing pattern, instead check weight of each
13673 listed font. Don't include scalable in pattern. Pay attention to
13674 FONT_PIXEL_SIZE_QUANTUM.
13675
13676 2008-02-01 Kenichi Handa <handa@m17n.org>
13677
13678 * font.c (font_parse_fcname): Fix parsing of point-size.
13679 (font_unparse_fcname): Produce symbolic names for style properties.
13680 (font_list_entities): Handle float size correctly.
13681 (font_open_by_name): Prefer `normal' property values if the name
13682 doesn't specify them.
13683
13684 * fontset.c (Finternal_char_font): Use font_get_name, not
13685 Ffont_xlfd_name.
13686
13687 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13688 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13689 pattern. Don't force scalable.
13690
13691 * xftfont.c (xftfont_open): For generating a name, start from
13692 96-byte buffer.
13693
13694 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13695
13696 * frame.h (x_new_fontset2): Fix prototype.
13697
13698 2008-02-01 Kenichi Handa <handa@m17n.org>
13699
13700 * font.h (struct font_driver): Delete member parse_name.
13701 (font_match_p, font_get_spec, font_parse_fcname)
13702 (font_unparse_fcname): Extern them.
13703 (font_get_name): Adjust prototype.
13704
13705 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13706 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13707 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13708 unnecessary checks for weight, slant, and swidth.
13709 (font_parse_fcname): New function.
13710 (font_unparse_fcname): New function.
13711 (font_parse_name): New function.
13712 (font_match_p): New function.
13713 (font_get_name): Change return value to Lisp string.
13714 (font_get_spec): New function.
13715 (Qunspecified, Qignore_defface): Don't extern them.
13716 (font_find_for_lface): Assume that LFACE is fully specified.
13717 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13718 object, use it for FACE.
13719 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13720 driver->parse_name.
13721 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13722
13723 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13724 prototype.
13725
13726 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13727 argument F. Don't call Fnew_fontset. Instead, directly call
13728 make_fontset.
13729
13730 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13731
13732 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13733 of x_new_fontset2.
13734
13735 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13736 (Qsans__serif): New variables.
13737 (ftfont_generic_family_list): New variable.
13738 (syms_of_ftfont): Initialize the above variables.
13739 (ftfont_pattern_entity): Delete argument NAME.
13740 (ftfont_list_generic_family): New function.
13741 (ftfont_parse_name): Delete this function.
13742 (ftfont_list): Try generic family only when FcFontList found no font.
13743 (ftfont_list_family): Fix args to FcObjectSetBuild.
13744
13745 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13746 object in attrs[LFACE_FONT_INDEX].
13747 (set_lface_from_font_name): Cancel all changes for font-backend.
13748 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13749 function.
13750 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13751 font object in QCfont attribute.
13752 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13753 (realize_default_face) [USE_FONT_BACKEND]: Call
13754 set_lface_from_font_and_fontset.
13755
13756 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13757 "fixed", and signal error here if no suitable font was found.
13758
13759 * xfont.c (xfont_parse_name): Delete this function.
13760
13761 * xftfont.c (xftfont_open): Change coding style of error
13762 handling. Generate fontconfig's fontname pattern.
13763
13764 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13765 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13766
13767 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13768 Both args FONTSET and FONT_OBJECT must be existing ones.
13769
13770 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13771
13772 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13773
13774 2008-02-01 Kenichi Handa <handa@m17n.org>
13775
13776 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13777
13778 * font.h (struct font): Fix typo.
13779
13780 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13781 XLFD_XXX_INDEX.
13782 (enum xlfd_field_mask): New enum.
13783 (intern_font_field): Changed argument. Change caller. If digits
13784 are followed by non-digits, return a symbol.
13785 (font_expand_wildcards): New function.
13786 (font_parse_xlfd): Fix wildcard handling.
13787 (Ffont_spec): If :name is specified, reflect the info in the other
13788 properties.
13789
13790 * ftfont.c (ftfont_pattern_entity): Fix typo.
13791 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13792 locale.
13793
13794 2008-02-01 Kenichi Handa <handa@m17n.org>
13795
13796 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13797
13798 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13799 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13800 registry doesn't specify encoding part.
13801 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13802 (font_open_by_name): At first try parsing the name.
13803 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13804 as Lisp symbols.
13805
13806 * fontset.c (reorder_font_vector): Pay attention to the case that
13807 the 3rd element of font_def is nil.
13808 (fontset_font): For the default fontset, append one more fontset
13809 elements for a script-based font specification. Don't add script
13810 attribute on finding a font.
13811 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13812 font name.
13813 (fontset_ascii_font): If a font can't be opened, return nil.
13814
13815 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13816 (ftfont_pattern_entity): New function.
13817 (ftfont_get_cache): Assume that freetype_font_cache is already
13818 initialized.
13819 (ftfont_list): Handle the case that a file is specified in font
13820 name. Use ftfont_pattern_entity to generate entities.
13821 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13822 (syms_of_ftfont): Initialize freetype_font_cache.
13823
13824 * xftfont.c (xftfont_open): Make the font name fontconfig's
13825 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13826 (xftfont_close): Free font->font.name if not NULL.
13827
13828 * xfont.c (xfont_list): If script is specified for a font, return
13829 null_vector.
13830 (xfont_list_family): Declare argument type.
13831
13832 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13833 name, set LFACE_FONT (lface) to nil.
13834
13835 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13836 return Qnil.
13837
13838 2008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13841 (standard_args): Add "-enable-font-backend".
13842
13843 2008-02-01 Kenichi Handa <handa@m17n.org>
13844
13845 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13846 (struct xftdraw_list, xftdraw_list): Delete them.
13847 (register_xftdraw, check_xftdraw): Delete them.
13848 (xftfont_prepare_face): Don't call register_xftdraw.
13849 (xftfont_done_face): Don't call check_xftdraw.
13850 (xftfont_draw): Get background color only when with_background is
13851 nonzero.
13852
13853 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13854
13855 2008-02-01 Kenichi Handa <handa@m17n.org>
13856
13857 These changes are for the new font handling codes.
13858
13859 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13860 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13861 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13862 (FONTSRC, FONTOBJ): New variables.
13863 (obj): Add $(FONTOBJ).
13864 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13865 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13866 @LIBOTF_LIBS@.
13867 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13868 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13869
13870 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13871
13872 * character.h (Vscript_representative_chars): Extern it.
13873
13874 * character.c (Vscript_representative_chars): New variable.
13875 (syms_of_character): Declare it as a Lisp variable.
13876
13877 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13878 enable_font_backend is nonzero, accept the composition method
13879 COMPOSITION_WITH_GLYPH_STRING.
13880
13881 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13882 enumeration COMPOSITION_WITH_GLYPH_STRING.
13883
13884 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13885 members clip_x, clip_y, clip_width, and clip_height.
13886 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13887
13888 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13889 --enable-font-backend. Call syms_of_font.
13890
13891 * fns.c (assoc_no_quit): New function.
13892
13893 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13894 (face_for_font, new_fontset_from_font)
13895 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13896
13897 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13898 (fontset_font, fontset_ascii, face_for_char)
13899 (make_fontset_for_ascii_face, Ffont_info)
13900 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13901 is nonzero, use font-backend mechanism.
13902 (find_font_encoding): Make it non-static.
13903 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13904 New functions.
13905
13906 * frame.h (struct frame): New members resx and resy.
13907 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13908 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13909
13910 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13911 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13912
13913 * lisp.h (assoc_no_quit): Extern it.
13914
13915 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13916 Through out the file, use FONT_INFO_FROM_FACE instead of
13917 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13918 rif->per_char_metric.
13919 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13920 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13921 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13922 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13923 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13924 nonzero, use font-backend mechanism.
13925 (get_per_char_metric): New function.
13926
13927 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13928 (set_lface_from_font_name)
13929 (set_font_frame_param, free_realized_face)
13930 (prepare_face_for_display, clear_face_gcs)
13931 (Finternal_set_font_selection_order, realize_x_face)
13932 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13933 font-backend mechanism.
13934 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13935 (load_face_font) [USE_FONT_BACKEND]: Abort.
13936 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13937 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13938
13939 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13940 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13941 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13942 nonzero, register all available font drivers. Call
13943 x_default_font_parameter for deciding a font.
13944 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13945
13946 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13947 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13948 (x_set_glyph_string_clipping_exactly)
13949 (x_compute_glyph_string_overhangs)
13950 (x_draw_glyph_string_foreground)
13951 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13952 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13953 enable_font_backend is nonzero, use font-backend mechanism.
13954 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13955
13956 2008-02-01 Kenichi Handa <handa@m17n.org>
13957
13958 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13959 system_eol_type.
13960 (syms_of_coding): Initialize system_eol_type.
13961
13962 * process.c (Fset_process_coding_system): Inherit system's eol
13963 format if necessary.
13964
13965 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13966
13967 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13968
13969 2008-02-01 Kenichi Handa <handa@m17n.org>
13970
13971 * coding.c (decode_eol): Pay attention to buffer relocation in
13972 del_range_2.
13973 (decode_coding): Call decode_eol before restoring undo_list.
13974
13975 2008-02-01 Kenichi Handa <handa@m17n.org>
13976
13977 * charset.c (Fdefine_charset_internal): Fix setting of
13978 emacs_mule_bytes.
13979
13980 2008-02-01 Kenichi Handa <handa@m17n.org>
13981
13982 * keyboard.c (read_char): Check if C is a character or not before
13983 looking up Vkeyboard_translate_table.
13984
13985 2008-02-01 Kenichi Handa <handa@m17n.org>
13986
13987 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13988 condition to terminate the loop.
13989
13990 2008-02-01 Kenichi Handa <handa@m17n.org>
13991
13992 * coding.c (produce_composition): Compare charbuf[i] instead of
13993 args[i] against 0.
13994 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13995
13996 2008-02-01 Kenichi Handa <handa@m17n.org>
13997
13998 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13999 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14000 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14001 detect_coding.
14002 (emacs_mule_char): Handle old style (Emacs 20) component character
14003 of a composition.
14004 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14005 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14006 composition rule.
14007 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14008
14009 2008-02-01 Kenichi Handa <handa@m17n.org>
14010
14011 * coding.c (encode_coding_ccl): Allocate destination dynamically
14012 when necessary.
14013
14014 2008-02-01 Kenichi Handa <handa@m17n.org>
14015
14016 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14017 the loop. When quitted, show a proper error message.
14018
14019 2008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14022 src->clip_head and src->clip_tail temporarily instead of src->hl.
14023
14024 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14025 character sequence.
14026 (Fccl_execute_on_string): Use ASET, not XSET.
14027
14028 2008-02-01 Kenichi Handa <handa@m17n.org>
14029
14030 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14031
14032 2008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * coding.c (decode_coding): Fix the condition of terminating the
14035 decoding loop.
14036
14037 2008-02-01 Kenichi Handa <handa@m17n.org>
14038
14039 * data.c (Faset): On setting a character bigger than 255 in a
14040 unibyte string, signal an error instead of make the string multibyte.
14041
14042 2008-02-01 Kenichi Handa <handa@m17n.org>
14043
14044 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14045 made by a mapping table.
14046
14047 2008-02-01 Kenichi Handa <handa@m17n.org>
14048
14049 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14050 not.
14051 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14052 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14053
14054 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14055 s->face is NULL or not.
14056
14057 2008-02-01 Kenichi Handa <handa@m17n.org>
14058
14059 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14060 (x_draw_glyph_string): Fix drawing of right_overhang and
14061 left_overhang around/on cursor.
14062
14063 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14064
14065 2008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14068
14069 2008-02-01 Kenichi Handa <handa@m17n.org>
14070
14071 * coding.c (Fdefine_coding_system_internal)
14072 (Fdefine_coding_system_alias): Avoid a duplicated element in
14073 Vcoding_system_alist.
14074
14075 2008-02-01 Kenichi Handa <handa@m17n.org>
14076
14077 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14078
14079 * coding.c (Qcoding_system_define_form): New variable.
14080 (syms_of_coding): Intern and staticpro it.
14081 (Fcoding_system_p): Check Qcoding_system_define_form.
14082 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14083
14084 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14085 Fcoding_system_p.
14086 (CHECK_CODING_SYSTEM): If ID is not available, call
14087 Fcheck_coding_system.
14088 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14089 Try also Fcheck_coding_system.
14090
14091 2008-02-01 Kenichi Handa <handa@m17n.org>
14092
14093 * coding.c (code_conversion_restore): GCPRO arg.
14094
14095 2008-02-01 Kenichi Handa <handa@m17n.org>
14096
14097 * character.c (lisp_string_width): Check multibyteness of STRING.
14098
14099 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14100
14101 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14102 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14103 (decode_mac_font_name): Use decode_coding_c_string instead of
14104 decode_coding.
14105 (x_load_font): Initialize fontp->fontset to -1. Set
14106 fontp->encoding_type.
14107
14108 2008-02-01 Kenichi Handa <handa@m17n.org>
14109
14110 * search.c (search_buffer): Give up BM search on case-fold-search
14111 if one of a target character has a case-equivalence of different
14112 byte length even if that target charcter is an ASCII.
14113 (simple_search): Fix calculation of byte length of matched text.
14114 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14115
14116 2008-02-01 Kenichi Handa <handa@m17n.org>
14117
14118 * coding.c (decode_coding): Fix handling of invalid bytes.
14119
14120 2008-02-01 Kenichi Handa <handa@m17n.org>
14121
14122 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14123 Unicode characters.
14124
14125 2008-02-01 Kenichi Handa <handa@m17n.org>
14126
14127 * coding.c (encode_coding_object): If a pre-write-conversion
14128 function makes a new buffer, kill it.
14129
14130 2008-02-01 Kenichi Handa <handa@m17n.org>
14131
14132 * coding.c (QCascii_compatible_p): New variable.
14133 (syms_of_coding): Initialize it.
14134 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14135 calling string_char.
14136 (record_conversion_result): Add `default:' case.
14137 (coding_charset_list): Delete unused variable `coding_type'.
14138 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14139 property in the plist of the coding system.
14140 (Fcoding_system_put): Check QCascii_compatible_p.
14141
14142 2008-02-01 Miles Bader <miles@gnu.org>
14143
14144 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14145 removed calculation of frame `f', as it's now used.
14146
14147 2008-02-01 Kenichi Handa <handa@m17n.org>
14148
14149 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14150 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14151 (UNIDATA): New variable.
14152 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14153 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14154 $(RUN_TEMACS) unconditionally.
14155
14156 2008-02-01 Kenichi Handa <handa@m17n.org>
14157
14158 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14159 (admindir): New variable.
14160 ($(lispsource)international/charprop.el): New target.
14161
14162 2008-02-01 Miles Bader <miles@gnu.org>
14163
14164 * character.c (chars-in-region): Remove obsolete function.
14165 (syms_of_character): Remove its initialization.
14166
14167 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14168
14169 * w32select.c (validate_coding_system)
14170 (setup_windows_coding_system): New functions.
14171 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14172 setup_windows_coding_system.
14173 (setup_config, Fw32_get_clipboard_data): Use
14174 validate_coding_system.
14175 (Fx_selection_exists): Move call to setup_config to a place
14176 where signals are allowed.
14177
14178 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14179 (Fcheck_coding_system): Add declarations.
14180
14181 2008-02-01 Kenichi Handa <handa@m17n.org>
14182
14183 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14184
14185 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14186
14187 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14188 string as the second argument for x_new_fontset.
14189
14190 2008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14193 (encode_coding_object): Use safe_call instead of call2.
14194
14195 2008-02-01 Kenichi Handa <handa@m17n.org>
14196
14197 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14198
14199 * Makefile.in (lisp): Include charprop.el.
14200
14201 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14202
14203 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14204 Not sure if it's unnecessary.
14205
14206 2008-02-01 Steven Tamm <steventamm@mac.com>
14207
14208 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14209 some possibly unnecessary fontset checking code that crashed
14210 when creating a new frame.
14211
14212 2008-02-01 Kenichi Handa <handa@m17n.org>
14213
14214 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14215 lookup_face.
14216
14217 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14218
14219 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14220
14221 2008-02-01 Kenichi Handa <handa@m17n.org>
14222
14223 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14224 (coding_charset_list): New function.
14225
14226 * coding.h (coding_charset_list): Extern it.
14227
14228 2008-02-01 Kenichi Handa <handa@m17n.org>
14229
14230 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14231 concatenation of family and registry.
14232
14233 2008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * character.h (BYTE8_STRING): Fix typo.
14236
14237 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14238 string to multibyte (sync to HEAD).
14239
14240 * casefiddle.c (casify_region): Handle changes in byte-length
14241 using replace_range_2 (sync to HEAD).
14242
14243 2008-02-01 Andreas Schwab <schwab@suse.de>
14244
14245 * chartab.c (map_char_table): GCPRO table and arg.
14246
14247 2008-02-01 Kenichi Handa <handa@m17n.org>
14248
14249 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14250 already at limit.
14251
14252 2008-02-01 Kenichi Handa <handa@m17n.org>
14253
14254 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14255 instead of fast_c_string_match_ignore_case.
14256 (find_font_encoding): Change argument to Lisp_Object. Use
14257 fast_string_match_ignore_case instead of
14258 fast_c_string_match_ignore_case. Change caller.
14259
14260 2008-02-01 Kenichi Handa <handa@m17n.org>
14261
14262 * xdisp.c (get_next_display_element): In unibyte case, decide to
14263 display in octal form by checking a character by
14264 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14265
14266 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14267
14268 * character.c (unibyte_has_multibyte_table): New variable.
14269
14270 * character.h (unibyte_has_multibyte_table): Extern it.
14271 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14272
14273 2008-02-01 Kenichi Handa <handa@m17n.org>
14274
14275 * coding.c (encode_coding_iso_2022): Fix handling of charset
14276 annotation.
14277
14278 2008-02-01 Kenichi Handa <handa@m17n.org>
14279
14280 * coding.c (setup_coding_system): If coding_system is nil, use
14281 Qundecided.
14282 (Fterminal_coding_system): Return nil if terminal coding system is
14283 `undecided'.
14284 (syms_of_coding): Define coding-system `undecided' here. Setup
14285 terminal_coding as `undecided'.
14286
14287 2008-02-01 Kenichi Handa <handa@m17n.org>
14288
14289 * xdisp.c (message_dolog, set_message_1): Call
14290 unibyte_char_to_multibyte with arg type int.
14291
14292 * lread.c (read1): Fix reading of a char-table.
14293
14294 * print.c (print_object): Include sub char-table in circularities
14295 detection.
14296
14297 2008-02-01 Kenichi Handa <handa@m17n.org>
14298
14299 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14300 Append the found sequences in car of ARGS instead of prepending.
14301
14302 2008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * fileio.c (report_file_error): Make a unibyte string from
14305 strerror (errorno).
14306 (Fsubstitute_in_file_name): Fix the arg to
14307 unibyte_char_to_multibyte. It is evaluated twice.
14308
14309 2008-02-01 Kenichi Handa <handa@m17n.org>
14310
14311 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14312
14313 2008-02-01 Kenichi Handa <handa@m17n.org>
14314
14315 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14316 BOM is not found.
14317 (detect_coding, detect_coding_system): Optimization for ISO-2022
14318 when no 8-bit data is found.
14319
14320 2008-02-01 Jason Rumney <jasonr@gnu.org>
14321
14322 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14323
14324 2008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14327 CHARS.
14328
14329 2008-02-01 Steven Tamm <steventamm@mac.com>
14330
14331 * macterm.c (mac_encode_char): Add charset argument and update
14332 to use encoding_type.
14333 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14334 switch to pure fontset.
14335 (decode_mac_font_name): Temporarily remove decoding.
14336 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14337 (x_load_font): Temporarily remove encoding.
14338
14339 2008-02-01 Kenichi Handa <handa@m17n.org>
14340
14341 * xfaces.c (Fface_font): If frame is not on a window system,
14342 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14343 refer to face->font.
14344 (split_font_name_into_vector, build_font_name_from_vector)
14345 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14346 when HAVE_WINDOW_SYSTEM is defined.
14347
14348 2008-02-01 Kenichi Handa <handa@m17n.org>
14349
14350 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14351 (x_produce_glyphs): Fix setting of members of cmp in case
14352 cmp->glyph_len is zero.
14353
14354 * fontset.c (Fset_fontset_font): Fix docstring.
14355 (Ffontset_info): Make it backward compatible. New arg ALL.
14356
14357 2008-02-01 Kim F. Storm <storm@cua.dk>
14358
14359 * process.c (read_process_output): Grow decoding_buf when needed;
14360 this could cause a crash in allocate_string and compact_small_strings.
14361
14362 2008-02-01 Kenichi Handa <handa@m17n.org>
14363
14364 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14365
14366 2008-02-01 Kenichi Handa <handa@m17n.org>
14367
14368 * coding.c (setup_coding_system): Set coding->common_flags
14369 correctly for raw-text.
14370 (consume_chars): On encoding unibyte text by raw-text, don't check
14371 multibyte form.
14372 (encode_coding): On encoding by raw-text, never use translation tables.
14373
14374 * fileio.c (e_write): Short cut for the case of no encoding.
14375
14376 2008-02-01 Kenichi Handa <handa@m17n.org>
14377
14378 * coding.c (detect_coding, detect_coding_system): Delete unused
14379 variables.
14380
14381 2008-02-01 Kenichi Handa <handa@m17n.org>
14382
14383 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14384 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14385
14386 2008-02-01 Kenichi Handa <handa@m17n.org>
14387
14388 * coding.c (Ffind_coding_systems_region_internal): Include
14389 raw-text and no-conversion in the result.
14390
14391 2008-02-01 Kenichi Handa <handa@m17n.org>
14392
14393 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14394 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14395 FONT_DEF.
14396 (font_def_arg, add_arg, from_arg, to_arg): New args.
14397 (set_fontset_font): Change argument.
14398 (Fset_fontset_font): Fix for the case that TARGET is a script
14399 name and charset name.
14400 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14401
14402 2008-02-01 Kenichi Handa <handa@m17n.org>
14403
14404 * fontset.c (fontset_font): Rename from fontset_face. Change return
14405 value.
14406 (face_suitable_for_char_p, face_for_char): Adjust for the change
14407 of fontset_font.
14408 (make_fontset_for_ascii_face): Fix setting of the fontset element
14409 for ASCII.
14410 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14411 to get a font name.
14412 (Ffontset_info): Adjust for the change of fontset_font.
14413
14414 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14415
14416 * character.h (LEADING_CODE_LATIN_1_MIN)
14417 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14418
14419 2008-02-01 Kenichi Handa <handa@m17n.org>
14420
14421 * editfns.c (check_translation): New function.
14422 (Ftranslate_region_internal): Handle M:N mapping.
14423
14424 2008-02-01 Kenichi Handa <handa@m17n.org>
14425
14426 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14427
14428 2008-02-01 Kenichi Handa <handa@m17n.org>
14429
14430 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14431 goto invalid_code.
14432 (decode_coding_iso_2022): Fix handling of invalid designation.
14433
14434 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14435 after calling code_conversion_save.
14436
14437 2008-02-01 Kenichi Handa <handa@m17n.org>
14438
14439 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14440
14441 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14442
14443 * fontset.c: Include "intervals.h".
14444 (fontset_face): Fix comparing of Lisp_Objects.
14445 (free_face_fontset, new_fontset_from_font_name): Fix
14446 Lisp_Object/int mixup.
14447
14448 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14449
14450 * coding.c: Add many prototypes for static functions.
14451 (get_translation_table): Allow max_lookup to be NULL.
14452 (decode_coding, Ffind_coding_systems_region_internal)
14453 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14454 get_translation_table with max_lookup NULL.
14455
14456 2008-02-01 Kenichi Handa <handa@m17n.org>
14457
14458 * coding.c (get_translation_table): Declare it as Lisp_Object.
14459 (LOOKUP_TRANSLATION_TABLE): New macro.
14460 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14461 instead of CHAR_TABLE_REF.
14462
14463 2008-02-01 Kenichi Handa <handa@m17n.org>
14464
14465 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14466 annotation data format.
14467 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14468 Change arguments FROM and TO to single argument NCHARS. Change caller.
14469 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14470 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14471 (decode_coding_ccl, decode_coding_charset): Pay attention to
14472 coding->charbuf_used.
14473 (get_translation): New function.
14474 (produce_chars): New arguments translation_table and last_block.
14475 Translate characters here. Return number of carryover chars.
14476 Change caller.
14477 (produce_composition): New argument pos. Change caller.
14478 Adjust for the change of annotation data format.
14479 (produce_charset, produce_annotation): Likewise.
14480 (decode_coding, encode_coding): Don't call translate_chars.
14481 (consume_chars): New arg translation_table. Change caller.
14482 (translate_chars): Delete.
14483 (syms_of_coding): Make translation-table's number of extra slots 2.
14484
14485 2008-02-01 Kenichi Handa <handa@m17n.org>
14486
14487 * search.c (simple_search): Fix setting this_pos_byte in backward
14488 search.
14489
14490 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14491 byte sequence.
14492 (detect_coding_ccl): Fix setting of the variable valids.
14493
14494 2008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14497
14498 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14499
14500 * editfns.c (Ftranslate_region_internal): Rename from
14501 Ftranslate_region. Accept a char-table in TABLE.
14502 (syms_of_editfns): Defsubr Stranslate_region_internal.
14503
14504 * xfaces.c (set_lface_from_font_name): If a font is specified for
14505 a frame, generate a fontset from the font.
14506 (build_scalable_font_name): If the scalable font is requested for
14507 a specific size, don't change that size.
14508 (try_font_list): Try a scalable font also in the case that a
14509 pattern string is specified.
14510
14511 2008-02-01 Kenichi Handa <handa@m17n.org>
14512
14513 * xfaces.c (Fface_font): New optional arg CHARACTER.
14514
14515 2008-02-01 Kenichi Handa <handa@m17n.org>
14516
14517 * charset.h (CHARSET_OFFSET): New macro.
14518
14519 2008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14522
14523 * fontset.c (fontset_face): Handle the case that repertory is a
14524 char-table.
14525 (find_font_encoding): Return nil for unknown encoding.
14526 (Fset_fontset_font): Ignore a font of unknown encoding.
14527
14528 2008-02-01 Kenichi Handa <handa@m17n.org>
14529
14530 * keymap.c (describe_vector): Handle default value of a char table.
14531
14532 * fontset.c (fontset_face): Handle fallback fonts correctly.
14533 (Ffontset_info): Return infomation about fallback fonts.
14534
14535 2008-02-01 Kenichi Handa <handa@m17n.org>
14536
14537 * fontset.c (FONTSET_DEFAULT): New macro.
14538 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14539 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14540 the case that it is nil.
14541 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14542 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14543
14544 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14545 subset or superset.
14546
14547 2008-02-01 Kenichi Handa <handa@m17n.org>
14548
14549 * emacs.c (main): Call init_charset after syms_of_XXX.
14550
14551 * charset.c (Vcharset_map_directory): Delete.
14552 (Vcharset_map_path): New variable.
14553 (load_charset_map_from_file): Use Vcharset_map_path instead.
14554 (init_charset): Initialize Vcharset_map_path.
14555 (syms_of_charset): Delete declaration of "charset-map-directory",
14556 add declaration of "charset-map-path".
14557
14558 2008-02-01 Kenichi Handa <handa@m17n.org>
14559
14560 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14561 ASCII only string.
14562
14563 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14564
14565 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14566 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14567
14568 2008-02-01 Kenichi Handa <handa@m17n.org>
14569
14570 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14571
14572 * coding.c (QCmnemonic, QCdefalut_char)
14573 (QCdecode_translation_table, QCencode_translation_table)
14574 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14575 (get_translation_table): Return a list of translation tables if
14576 necessary.
14577 (decode_coding): Call get_translation_table with ENCODEP 0.
14578 (char_encodable_p): If translation_table is non-nil, always call
14579 translate_char.
14580 (Fdefine_coding_system_internal): Accept list of translation
14581 tables as :encode-translation-table and :decode-translation-table.
14582 (Fcoding_system_put): New function.
14583 (syms_of_coding): Declare new symbols. Defsubr
14584 Scoding_system_put.
14585 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14586 typically JISX0212.
14587
14588 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14589 when the charset is superset type.
14590
14591 * character.c (translate_char): Accept list of translation tables.
14592
14593 2008-02-01 Kenichi Handa <handa@m17n.org>
14594
14595 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14596 (CODING_ATTR_TRANS_TBL): New macro.
14597
14598 * coding.c (get_translation_table): New function.
14599 (translate_chars): Fix the bug of skipping annotation data.
14600 (decode_coding, encode_coding): Utilize get_translation_table.
14601 (char_encodable_p, Funencodable_char_position): Translate char if
14602 necessary.
14603 (Ffind_coding_systems_region_internal)
14604 (Fcheck_coding_systems_region): Setup translation table for encode
14605 in a coding system attribute vector in advance.
14606 (Fdefine_coding_system_internal): Allow a symbol as translation
14607 table. For shift-jis type coding system, allow 4th charset.
14608
14609 2008-02-01 Kenichi Handa <handa@m17n.org>
14610
14611 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14612
14613 * xdisp.c (get_next_display_element): Pass -1 as POS to
14614 FACE_FOR_CHAR if displaying a C-string.
14615
14616 2008-02-01 Kenichi Handa <handa@m17n.org>
14617
14618 * composite.c (get_composition_id): Handle xoff and yoff in a
14619 composition rule.
14620
14621 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14622 (struct composition): New member lbearing and rbearing.
14623
14624 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14625 (x_get_glyph_overhangs): Handle a composition glyph.
14626 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14627
14628 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14629 composition glyph.
14630
14631 2008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * print.c: Include charset.h.
14634 (Vprint_charset_text_property): New variable.
14635 (Qdefault): Extern it.
14636 (PRINT_STRING_NON_CHARSET_FOUND)
14637 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14638 (print_check_string_result): New variable.
14639 (print_check_string_charset_prop): New function.
14640 (print_prune_charset_plist): New variable.
14641 (print_prune_string_charset): New function.
14642 (print_object): Call print_prune_string_charset if
14643 Vprint_charset_text_property is not t.
14644 (print_interval): Print nothing if interval->plist is nil.
14645 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14646 variable. Init and staticpro print_prune_charset_plist.
14647
14648 2008-02-01 Kenichi Handa <handa@m17n.org>
14649
14650 * fontset.c (new_fontset_from_font_name): Use the specified font
14651 for all characters in the new fontset.
14652
14653 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14654 OBJECT args.
14655
14656 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14657 OBJECT args for composition too.
14658
14659 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14660 OBJECT args.
14661
14662 2008-02-01 Kenichi Handa <handa@m17n.org>
14663
14664 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14665
14666 * fontset.c (reorder_font_vector): Adjust for the change of
14667 FONT_DEF format.
14668 (fontset_face): New arg id. Change caller.
14669 (face_for_char): New args pos and object.
14670 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14671 (fs_query_fontset): Check NAME by Fassoc too.
14672 (Fset_fontset_font): Allow non-XLFD font name.
14673 (Ffontset_info): Adjust for the change of FONT_DEF format.
14674
14675 * fontset.h (face_for_char): Adjust prototype.
14676
14677 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14678 (append_space, extend_face_to_end_of_line)
14679 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14680 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14681
14682 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14683 POS and OBJECT args.
14684
14685 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14686 POS and OBJECT args.
14687
14688 2008-02-01 Jason Rumney <jasonr@gnu.org>
14689
14690 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14691 of GlobalAlloc'ed memory.
14692
14693 2008-02-01 Kenichi Handa <handa@m17n.org>
14694
14695 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14696
14697 * charset.h (charset_table_used): Delete extern.
14698
14699 * charset.c (charset_table_used): Make it static.
14700 (map_charset_chars): Fix args to c_function with.
14701
14702 * chartab.c (map_sub_char_table_for_charset): Fix args to
14703 c_function with.
14704
14705 * coding.h (enum coding_result_code): Delete
14706 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14707
14708 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14709 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14710 (Vlast_code_conversion_error): New variables.
14711 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14712 (ONE_MORE_BYTE): Record error if any instead of signaling an
14713 error. If non-ASCII multibyte char is found, return the negative
14714 value of the code. All callers changed to check it.
14715 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14716 (record_conversion_result): New function. Change all codes setting
14717 coding->result to call this function.
14718 (detect_coding_utf_8, decode_coding_utf_8)
14719 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14720 Don't use the local variable incomplete.
14721 (emacs_mule_char): Change the second arg to `const'.
14722 (decode_coding): Fix of flushing out unprocessed data.
14723 (make_conversion_work_buffer): Fix making of a work buffer.
14724 (decode_coding_object): Return coding->dst_object.
14725
14726 * fontset.c (set_fontset_font): Fix args.
14727
14728 * lisp.h (CHARACTERBITS): Define as 22.
14729
14730 * process.c (send_process): Be sure to set coding->src_multibyte.
14731
14732 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14733
14734 2008-02-01 Kenichi Handa <handa@m17n.org>
14735
14736 * xdisp.c (handle_auto_composed_prop): Give limit to
14737 Fnext_single_char_property_change.
14738
14739 2008-02-01 Kenichi Handa <handa@m17n.org>
14740
14741 * composite.c (syms_of_composite): Don't make the composition hash
14742 table weak.
14743
14744 * fontset.c (Fset_fontset_font): Fix docstring.
14745
14746 * lisp.h (detect_coding_system): Adjust prototype.
14747
14748 * fileio.c (kill_workbuf_unwind): Delete this function.
14749 (Finsert_file_contents): Adjust the call of detect_coding_system.
14750 Get conversion_buffer by code_conversion_save. Use the macro
14751 CODING_MAY_REQUIRE_DECODING. After decoding, update
14752 coding_system.
14753
14754 * coding.h (make_conversion_work_buffer): Delete extern.
14755 (code_conversion_save): Extern it.
14756
14757 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14758 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14759 (decode_coding_utf_8): Don't do eol converion.
14760 (detect_coding_utf_16): Check coding->src_chars, not
14761 coding->src_bytes. Add heuristics for those that have no signature.
14762 (decode_coding_emacs_mule, decode_coding_iso_2022)
14763 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14764 Don't do eol converion.
14765 (adjust_coding_eol_type): Return a new coding system.
14766 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14767 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14768 each change.
14769 (decode_coding): Pay attention to undo_list. Do eol conversion for
14770 all types of coding-systems (if necessary).
14771 (Vcode_conversion_work_buf_list): Delete it.
14772 (Vcode_conversion_reused_workbuf): Rename from
14773 Vcode_conversion_reused_work_buf.
14774 (Vcode_conversion_workbuf_name): New variable.
14775 (reused_workbuf_in_use): New variable.
14776 (make_conversion_work_buffer): Delete the arg DEPTH.
14777 (code_conversion_restore): Change argument to cons.
14778 (code_conversion_save): Delete the argument BUFFER. Change callers.
14779 (detect_coding_system): New argument src_chars. Change callers.
14780 Fix for utf-16 detection.
14781 (init_coding_once): Don't use ISO_carriage_return.
14782 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14783 reused_workbuf_in_use.
14784
14785 2008-02-01 Kenichi Handa <handa@m17n.org>
14786
14787 * keymap.c (store_in_keymap): Pay attention to the case that idx
14788 is a cons specifying a character range.
14789
14790 2008-02-01 Kenichi Handa <handa@m17n.org>
14791
14792 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14793 HANDLED_RECOMPUTE_PROPS.
14794
14795 * coding.c (Fdefine_coding_system_internal): Fix checking of
14796 ascii compatibility.
14797
14798 2008-02-01 Kenichi Handa <handa@m17n.org>
14799
14800 * charset.c (find_charsets_in_text): Delete unused locale variable.
14801 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14802
14803 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14804 Resync charset_list to Vemacs_mule_charset_list.
14805
14806 * keymap.c (store_in_keymap): Pay attention to the case that idx
14807 is a cons specifying a character range.
14808
14809 2008-02-01 Kenichi Handa <handa@m17n.org>
14810
14811 * composite.c (update_compositions): Bind inhibit-read-only, etc
14812 to t before calling remove-list-of-text-properties.
14813
14814 * print.c (print_object): Always print ASCII chars as is.
14815
14816 2008-02-01 Kenichi Handa <handa@m17n.org>
14817
14818 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14819
14820 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14821 is a char table.
14822
14823 2008-02-01 Kenichi Handa <handa@m17n.org>
14824
14825 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14826
14827 2008-02-01 Kenichi Handa <handa@m17n.org>
14828
14829 * xfaces.c (set_lface_from_font_name): Fix for the case that
14830 FONTNAME is not fontset name.
14831
14832 2008-02-01 Kenichi Handa <handa@m17n.org>
14833
14834 * fns.c (base64_encode_1): Fix previous change.
14835
14836 2008-02-01 Kenichi Handa <handa@m17n.org>
14837
14838 * fontset.c (set_fontset_font): New function.
14839 (Fset_fontset_font): If a font is specified for a charset, use
14840 map_charset_chars to store the font spec in a fontset.
14841
14842 2008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * fontset.c (fontset_face): Create a fallback fontset on demand.
14845 (make_fontset): Don't create a fallback fontset here.
14846 (free_face_fontset): Free a fallback fontset (if any) too.
14847 (n_auto_fontsets): Delete this variable.
14848 (auto_fontset_alist): New variable.
14849 (new_fontset_from_font_name): Check auto_fontset_alist.
14850 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14851 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14852 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14853 Defsubr Sfontset_list_all.
14854
14855 2008-02-01 Kenichi Handa <handa@m17n.org>
14856
14857 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14858
14859 2008-02-01 Kenichi Handa <handa@m17n.org>
14860
14861 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14862
14863 2008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * editfns.c (Fgoto_char): Fix docstring.
14866
14867 2008-02-01 Kenichi Handa <handa@m17n.org>
14868
14869 * insdel.c (insert_from_gap): Adjust intervals correctly.
14870
14871 2008-02-01 Jason Rumney <jasonr@gnu.org>
14872
14873 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14874 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14875 (w32_initialize): Try to load it.
14876 (x_get_font_repertory): Use it if available.
14877 (w32_encode_char): Add shortcut for unicode output.
14878
14879 * w32fns.c (w32_load_system_font): Default charset to -1.
14880 (x_to_w32_charset): Match all fonts for unicode.
14881 (w32_to_x_charset): New parameter matching. Don't return partial
14882 or wildcard charsets.
14883 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14884 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14885 (w32_to_x_font): Match charset to real charset.
14886 (enum_font_cb2): Always list unicode versions.
14887
14888 * makefile.w32-in (temacs): Increase EMHEAP.
14889
14890 2008-02-01 Jason Rumney <jasonr@gnu.org>
14891
14892 * w32term.c (w32_encode_char): New charset parameter.
14893 font_info.encoding becomes encoding_type.
14894 (x_get_font_repertory): New function. Warning: stub only!
14895 (x_new_font): Return quickly if font already set.
14896 (x_new_fontset): fontsetname parameter is Lisp_Object.
14897 Use new fs_query_fontset. Try new_fontset_from_font_name.
14898 Use fontset_name for return value.
14899
14900 * w32term.h: Declare x_get_font_repertory.
14901
14902 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14903 place of find_charset_in_text. Use encode_coding_object in place
14904 of encode_coding.
14905 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14906 decode_coding.
14907
14908 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14909 of x_new_fontset.
14910 (w32_load_system_font): Initialize charset as unicode.
14911 font_info.encoding becomes encoding_type.
14912 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14913 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14914 (syms_of_w32fns): Set get_font_repertory_func.
14915
14916 * w32console.c: Include character.h. Use terminal_encode_buffer
14917 from term.c.
14918 (write_glyphs): Use new version of encode_terminal_code. Use
14919 encode_coding_object in place of encode_coding.
14920
14921 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14922 encoding becomes encoding_type.
14923
14924 * term.c (terminal_encode_buffer): Make externally visible.
14925
14926 * makefile.w32-in: Add character.h dependancies.
14927 (character.o, chartab.o): New targets.
14928
14929 2008-02-01 Kenichi Handa <handa@m17n.org>
14930
14931 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14932 CODING_ID_EOL_TYPE.
14933
14934 2008-02-01 Andreas Schwab <schwab@suse.de>
14935
14936 * coding.c (produce_chars): Revert last change.
14937
14938 2008-02-01 Kenichi Handa <handa@m17n.org>
14939
14940 * charset.h (charset_unicode): Extern it.
14941
14942 * charset.c (string_xstring_p): Check by (C >= 0x100).
14943 (find_charsets_in_text): Change format of the arc CHARSETS. New
14944 arg MULTIBYTE.
14945 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14946 change of find_charsets_in_text.
14947 (Fsplit_char): Fix doc. Never return unknown.
14948
14949 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14950
14951 * coding.c (Fdefine_coding_system_alias): Update
14952 Vcoding_system_list.
14953
14954 * fontset.c (load_font_get_repertory): Pay attention to the case
14955 that ENCODING of a font is specified by a char-table.
14956
14957 * xterm.c (x_get_font_repertory): Handle the case that the
14958 encoding of font is other than Unicode.
14959
14960 2008-02-01 Kenichi Handa <handa@m17n.org>
14961
14962 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14963 if a character is encodable by the terminal coding system. If
14964 not, produces proper number of `?'s. Update
14965 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14966 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14967
14968 2008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14971 variables.
14972 (encode_terminal_code): Change argument. Encode multiple
14973 characters at once. Store the result of encoding in
14974 terminal_encode_buffer.
14975 (write_glyphs, insert_glyphs): Adjust for the change of
14976 encode_terminal_code.
14977 (term_init): Initialize terminal_encode_buffer and
14978 terminal_encode_buf_size.
14979
14980 * coding.c (consume_chars): If coding->src_object is nil, don't
14981 check annotation.
14982
14983 2008-02-01 Kenichi Handa <handa@m17n.org>
14984
14985 * character.c (char_string): Use ASCII_CHAR_P instead of
14986 SINGLE_BYTE_CHAR_P.
14987
14988 2008-02-01 Kenichi Handa <handa@m17n.org>
14989
14990 * xdisp.c (handle_auto_composed_prop): Check if the last
14991 characters of auto-composed region is newly composed with the
14992 following characters.
14993 (handle_composition_prop): Fix checking of point being inside
14994 composition.
14995
14996 2008-02-01 Kenichi Handa <handa@m17n.org>
14997
14998 * fns.c (concat): Don't change multibyteness of the result by
14999 concatenating an 8-bit character.
15000
15001 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15002 multibyteness of the result when newelt is an 8-bit character.
15003
15004 2008-02-01 Dave Love <fx@gnu.org>
15005
15006 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15007 EMACS_INT.
15008
15009 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15010
15011 * xfaces.c (face_numeric_value): Declare dim size_t.
15012 (Finternal_lisp_face_equal_p): Remove unused f.
15013
15014 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15015 (MATRIX_ROW): Remove unused vars.
15016 (draw_glyphs, x_insert_glyphs, fast_find_position)
15017 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15018 byte/char counts.
15019
15020 * regex.c (regex_compile): Remove unused var.
15021
15022 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15023
15024 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15025 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15026
15027 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15028
15029 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15030
15031 * fileio.c (Fwrite_region): Remove unused var.
15032
15033 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15034 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15035
15036 * composite.c (Fremove_list_of_text_properties): Declare.
15037
15038 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15039 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15040 (coding_inherit_eol_type): Remove unused attrs.
15041 (detect_coding): Cast arg of detect_eol.
15042
15043 * charset.c (syms_of_charset): Remove unused var p.
15044 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15045 byte/char counts.
15046
15047 * casetab.c (set_case_table): Remove unused var.
15048
15049 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15050 unused vars.
15051
15052 2008-02-01 Dave Love <fx@gnu.org>
15053
15054 * xterm.c (x_bitmap_mask): Declare.
15055
15056 2008-02-01 Dave Love <fx@gnu.org>
15057
15058 * xterm.c (x_term_init): Fix type error.
15059
15060 * lisp.h: Add Funibyte_char_to_multibyte.
15061
15062 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15063 (Fset_coding_system_priority): Doc fix.
15064
15065 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15066
15067 * indent.c (check_composition): Make start and end EMACS_INT.
15068
15069 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15070
15071 * xdisp.c (handle_composition_prop, check_point_in_composition):
15072 Make buffer positions EMACS_INT.
15073
15074 * composite.c (find_composition, run_composition_function)
15075 (update_compositions, Ffind_composition_internal): Make buffer
15076 positions EMACS_INT.
15077
15078 * composite.h (find_composition, update_compositions): Make
15079 position args EMACS_INT.
15080
15081 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15082
15083 * intervals.c (get_property_and_range):
15084 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15085
15086 * unexalpha.c: Don't include varargs.h.
15087
15088 2008-02-01 Dave Love <fx@gnu.org>
15089
15090 * coding.h (ENCODE_UTF_8): New.
15091
15092 * Makefile.in (gtkutil.o): Depend on coding.h.
15093
15094 * coding.c (Fset_coding_system_priority): Doc fix.
15095
15096 2008-02-01 Kenichi Handa <handa@m17n.org>
15097
15098 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15099 the case of auto saving.
15100
15101 2008-02-01 Andreas Schwab <schwab@suse.de>
15102
15103 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15104 `range' from GC.
15105
15106 2008-02-01 Kenichi Handa <handa@m17n.org>
15107
15108 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15109
15110 2008-02-01 Kenichi Handa <handa@m17n.org>
15111
15112 * fileio.c (choose_write_coding_system): Return a decided coding system.
15113 (Fwrite_region): Set Vlast_coding_system_used to the return value
15114 of choose_write_coding_system.
15115
15116 2008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * charset.c (Fset_charset_priority): Pay attention to duplicated
15119 arguments.
15120
15121 * coding.c (QCcategory): New variable.
15122 (syms_of_coding): Defsym it. Set all elements of
15123 Vcoding_category_table and their symbol values.
15124 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15125 coding-category-XXX, and coding-category-list.
15126 (Fdefine_coding_system_internal): Add category in the plist.
15127
15128 2008-02-01 Kenichi Handa <handa@m17n.org>
15129
15130 * callproc.c (Fcall_process): Handle carryover correctly.
15131
15132 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15133 (raw_text_coding_system): Check NILP (coding_system).
15134 (coding_inherit_eol_type): Check NILP (coding_system) and
15135 NILP (parent).
15136 (consume_chars): Fix for the case of raw-text.
15137
15138 * process.c (read_process_output): Handle carryover correctly.
15139
15140 2008-02-01 Dave Love <fx@gnu.org>
15141
15142 * regex.c (re_search_2): Fix last change.
15143
15144 2008-02-01 Kenichi Handa <handa@m17n.org>
15145
15146 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15147 target_multibyte. Even in a unibyte case, return a converted
15148 multibyte char.
15149 (GET_CHAR_AFTER): New macro.
15150 (PATFETCH): Translate via multibyte char.
15151 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15152 (SETUP_MULTIBYTE_RANGE): New macro.
15153 (regex_compile): Setup compiled code so that its multibyteness
15154 matches that of a target. Fix the handling of "[X-YZ]" using
15155 SETUP_MULTIBYTE_RANGE.
15156 (analyse_first) <charset>: For filling fastmap for all multibyte
15157 characters, don't check by BASE_LEADING_CODE_P.
15158 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15159 the same as RE_MULTIBYTE_P (bufp) now.
15160 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15161 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15162 (TRANSLATE_VIA_MULTIBYTE): New macro.
15163 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15164 It is the same as RE_MULTIBYTE_P (bufp) now.
15165 <exactn>: Translate via multibyte.
15166 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15167 translate it.
15168 <charset, charset_not>: Fetch a character by
15169 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15170 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15171 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15172 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15173 by GET_CHAR_AFTER.
15174 (bcmp_translate): Likewise.
15175
15176 * search.c (compile_pattern): Check the member target_multibyte,
15177 not the member multibyte of buf.
15178
15179 * lread.c (read1): While reading a string, set force_singlebyte
15180 and force_multibyte correctly.
15181
15182 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15183 up of unibyte_to_multibyte_table.
15184
15185 2008-02-01 Kenichi Handa <handa@m17n.org>
15186
15187 * coding.c (setup_coding_system): If coding has
15188 post-read-conversion or pre-write-conversion, set
15189 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15190 respectively.
15191 (decode_coding_gap): Run post-read-conversion if any.
15192
15193 * fileio.c (Finsert_file_contents): Even if we read into a
15194 unibyte buffer, check if we must decode the result or not.
15195
15196 2008-02-01 Kenichi Handa <handa@m17n.org>
15197
15198 * coding.c (make_conversion_work_buffer): Change the work buffer
15199 name to the same one as that of Emacs 21.
15200
15201 2008-02-01 Kenichi Handa <handa@m17n.org>
15202
15203 * coding.h (make_conversion_work_buffer): Adjust prototype.
15204 (code_conversion_restore): Don't extern it.
15205
15206 * coding.c (detected_mask): Delete unused variable.
15207 (decode_coding_iso_2022): Pay attention to the byte sequence of
15208 CTEXT extended segment, and retain those bytes as is.
15209 (decode_coding_ccl): Delete unused variable `valids'.
15210 (setup_coding_system): Delete unused variable `category'.
15211 (consume_chars): Delete unused variable `category'. Make it work
15212 for non-multibyte case.
15213 (make_conversion_work_buffer): Change argument.
15214 (saved_coding): Delete unused variable.
15215 (code_conversion_restore): Don't check saved_coding->destination.
15216 (code_conversion_save): New function.
15217 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15218 instead of record_unwind_protect.
15219 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15220 (detect_coding_system): Delete unused variable `mask'.
15221 (Fdefine_coding_system_internal): Delete unused variable id.
15222
15223 * fileio.c (kill_workbuf_unwind): New function.
15224 (Finsert_file_contents): On replacing, call
15225 make_conversion_work_buffer with correct args, and call
15226 record_unwind_protect with the first arg kill_workbuf_unwind.
15227
15228 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15229
15230 2008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15233 (fontset_add): Fix for the case that TO is less than TO1.
15234 (Ffontset_info): Don't use fallback fontset on checking the
15235 default fontset.
15236 (dump_fontset): New function for debugging.
15237
15238 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15239 coding_type is Qcharset.
15240
15241 2008-02-01 Kenichi Handa <handa@m17n.org>
15242
15243 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15244 (map_char_table): Don't inherit the value from the parent on
15245 initializing VAL. Adjust for the above change.
15246
15247 2008-02-01 Kenichi Handa <handa@m17n.org>
15248
15249 * coding.c (Qsignature, Qendian): Delete these variables.
15250 (syms_of_coding): Don't initialize them.
15251 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15252 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15253 detect_info->found.
15254 (decode_coding_utf_16): Don't detect BOM here.
15255 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15256 is NOT utf_16_without_bom.
15257 (setup_coding_system): For a coding system of type utf-16, check
15258 if the attribute :endian is Qbig or not (not nil or not), and set
15259 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15260 (detect_coding): If coding type is utf-16 and BOM detection is
15261 required, detect it.
15262 (Fdefine_coding_system_internal): For a coding system of type
15263 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15264
15265 2008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * coding.c (coding_set_source): Fix for the case that the current
15268 buffer is different from coding->src_object.
15269 (decode_coding_object): Don't use the conversion work buffer if
15270 DST_OBJECT is a buffer.
15271
15272 2008-02-01 Dave Love <fx@gnu.org>
15273
15274 * lread.c (read_emacs_mule_char) [len==2]: Index
15275 emacs_mule_charset correctly.
15276
15277 2008-02-01 Dave Love <fx@gnu.org>
15278
15279 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15280 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15281 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15282 treated specially.)
15283 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15284 (detected_mask): Remove Big5 bits.
15285
15286 2008-02-01 Kenichi Handa <handa@m17n.org>
15287
15288 The following changes are to make the font rescaling facility
15289 compatible with Emacs 21.
15290
15291 * xfaces.c (Vface_font_rescale_alist): Rename from
15292 Vface_resizing_fonts.
15293 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15294 (font_rescale_ratio): Rename from font_resizing_ratio.
15295 (split_font_name): Set font->rescale_ratio.
15296 (better_font_p): Pay attention to font->rescale_ratio.
15297 (build_scalable_font_name): Likewise. Change RESX, and RESY
15298 fields.
15299 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15300
15301 2008-02-01 Kenichi Handa <handa@m17n.org>
15302
15303 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15304 (Qutf_16_le): Remove these variables.
15305 (syms_of_coding): Don't DEFSYM them.
15306 (decode_coding_utf_16): Fix handling of BOM.
15307 (encode_coding_utf_16): Fix handling of BOM.
15308
15309 2008-02-01 Kenichi Handa <handa@m17n.org>
15310
15311 * fileio.c (Finsert_file_contents): On replacing, before decoding
15312 the file into the work buffer, set point of the work buffer to the end.
15313
15314 2008-02-01 Dave Love <fx@gnu.org>
15315
15316 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15317
15318 2008-02-01 Dave Love <fx@gnu.org>
15319
15320 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15321 and fix C types.
15322
15323 2008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * xdisp.c (SKIP_GLYPHS): New macro.
15326 (set_cursor_from_row): Pay attention to string display properties.
15327
15328 * category.c (copy_category_entry): Fix for the case that RANGE
15329 is an integer.
15330
15331 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15332
15333 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15334
15335 2008-02-01 Kenichi Handa <handa@m17n.org>
15336
15337 * charset.c (Fcharset_id_internal): New function.
15338 (syms_of_charset): Defsubr it.
15339
15340 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15341 with the last arg charset_list acquired from coding.
15342 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15343 the attribute coding_attr_ccl_valids.
15344
15345 * coding.h (enum define_coding_ccl_arg_index): Set the first
15346 member coding_arg_ccl_decoder to coding_arg_max.
15347
15348 * ccl.h (ccl_driver): Adjust prototype.
15349
15350 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15351 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
15352 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
15353 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15354 last arg Qnil.
15355
15356 2008-02-01 Kenichi Handa <handa@m17n.org>
15357
15358 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15359 call encode_char.
15360
15361 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15362
15363 2008-02-01 Dave Love <fx@gnu.org>
15364
15365 * composite.c (syms_of_composite): Make composition_hash_table weak.
15366
15367 2008-02-01 Kenichi Handa <handa@m17n.org>
15368
15369 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15370 (font_name_registry): Don't extern them.
15371 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15372
15373 * fontset.h (Qfontset): Don't extern it.
15374 (new_fontset_from_font_name): Extern it.
15375
15376 * fontset.c: Give 8 extra slots to fontset objects.
15377 (Qfontset_info): New variable.
15378 (syms_of_fontset): Defsym it.
15379 (FONTSET_FALLBACK): New macro.
15380 (fontset_face): Try also the default fontset.
15381 (make_fontset): Realize a fallback fontset from the default fontset.
15382 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15383 using split_font_name_into_vector and build_font_name_from_vector.
15384 (Fset_fontset_font): Access the elements of font_spec by enum
15385 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15386 name by using split_font_name_into_vector.
15387 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15388 generate a proper font name from the fontset name. Update
15389 Vfontset_alias_alist.
15390 (n_auto_fontsets): New variable.
15391 (new_fontset_from_font_name): New function.
15392 (Ffont_info): Store the information about fonts generated from the
15393 default fontset in the first extra slot of the returned char-table.
15394
15395 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15396 (font_name_registry): Delete function.
15397 (split_font_name_into_vector): New function.
15398 (build_font_name_from_vector): New function.
15399 (font_list): The argument REGISTRY is now a list of registry names.
15400 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15401 specifies an explicit font name, return the name as is. Make a
15402 list of registy names.
15403
15404 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15405 of x_new_fontset.
15406 (Fx_create_frame): Don't call x_new_fontset here. Just use
15407 x_list_fonts to check the existence of fonts.
15408
15409 * xterm.h (x_new_fontset): Adjust prototype.
15410
15411 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15412 string. Use new_fontset_from_font_name to create a fontset from a
15413 font name.
15414
15415 2008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * syntax.c (Vfind_word_boundary_function_table): New name for
15418 Vnext_word_boundary_function_table.
15419 (find-word-boundary-function-table): New name for
15420 next-word-boundary-function-table.
15421
15422 2008-02-01 Dave Love <fx@gnu.org>
15423
15424 * Makefile.in: Fix some dependencies.
15425
15426 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15427 set it to nil before returning.
15428
15429 * composite.c (update_compositions): Fix type error.
15430
15431 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15432
15433 2008-02-01 Kenichi Handa <handa@m17n.org>
15434
15435 * xterm.c (x_new_font): Optimize for the case that the font is
15436 already set for the frame.
15437
15438 2008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * chartab.c (char_table_ascii): Check if the char table contents
15441 is sub-char-table or not.
15442 (char_table_set, char_table_set_range): Fix argument to
15443 char_table_ascii.
15444
15445 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15446 (detect_coding_utf_8, detect_coding_utf_16)
15447 (detect_coding_emacs_mule, detect_coding_iso_2022)
15448 (detect_coding_sjis, detect_coding_big5)
15449 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15450 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15451 sequence is valid in this coding system. Change callers.
15452 (MAX_ANNOTATION_LENGTH): New macro.
15453 (ADD_ANNOTATION_DATA): New macro.
15454 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15455 ADD_ANNOTATION_DATA. Change the format of annotation data.
15456 (ADD_CHARSET_DATA): New macro.
15457 (emacs_mule_char): New argument ID. Change callers.
15458 (decode_coding_emacs_mule, decode_coding_iso_2022)
15459 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15460 Produce charset annotation data in coding->charbuf.
15461 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15462 to charset annotation data in coding->charbuf.
15463 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15464 coding->common_flags if the coding system is iso-2022 based and
15465 uses designation.
15466 (produce_composition): Adjust for the new annotation data format.
15467 (produce_charset): New function.
15468 (produce_annotation): Handle charset annotation.
15469 (handle_composition_annotation, handle_charset_annotation): New
15470 functions.
15471 (consume_chars): Handle charset annotation. Utilize the above two
15472 functions.
15473 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15474 buffer, get the deleted text as a string and set
15475 coding->src_object to that string.
15476 (detect_coding, detect_coding_system): Use the new struct
15477 coding_detection_info.
15478
15479 * coding.h (struct coding_detection_info): New structure.
15480 (struct coding_system): Adjust prototype of the member `detector'.
15481 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15482
15483 2008-02-01 Kenichi Handa <handa@m17n.org>
15484
15485 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15486
15487 2008-02-01 Dave Love <fx@gnu.org>
15488
15489 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15490 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15491 to new local and nullify apropos_accumulate before returning.
15492 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15493
15494 2008-02-01 Kenichi Handa <handa@m17n.org>
15495
15496 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15497 correctly.
15498
15499 2008-02-01 Dave Love <fx@gnu.org>
15500
15501 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15502
15503 2008-02-01 Kenichi Handa <handa@m17n.org>
15504
15505 The following changes are to make character composition happen
15506 automatically on displaying.
15507
15508 * Makefile.in (lisp, shortlisp): Add composite.elc.
15509
15510 * composite.h (Qauto_composed, Vauto_composition_function)
15511 (Qauto_composition_function): Extern them.
15512
15513 * composite.c (Vcomposition_function_table)
15514 (Qcomposition_function_table): Delete variables.
15515 (Qauto_composed, Vauto_composition_function)
15516 (Qauto_composition_function): New variables.
15517 (run_composition_function): Don't call
15518 compose-chars-after-function.
15519 (update_compositions): Clear `auto-composed' text property.
15520 (compose_chars_in_text): Delete this function.
15521 (syms_of_composite): Staticpro Qauto_composed and
15522 Qauto_composition_function. Declare Vauto_composition_function as
15523 a Lisp variable.
15524
15525 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15526
15527 * xdisp.c (it_props): Add an entry for Qauto_composed.
15528 (handle_auto_composed_prop): New function.
15529
15530 * xselect.c (selection_data_to_lisp_data): Don't call
15531 compose_chars_in_text.
15532
15533 2008-02-01 Dave Love <fx@gnu.org>
15534
15535 * keyboard.c (read_char): Modify checking around use of
15536 Vkeyboard_translate_table.
15537
15538 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15539 and fix C types.
15540
15541 2008-02-01 Kenichi Handa <handa@m17n.org>
15542
15543 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15544 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15545 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15546 the case that the last byte is '\r' correctly.
15547 (decode_coding): Flush out the unprocessed data correctly.
15548 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15549
15550 2008-02-01 Dave Love <fx@gnu.org>
15551
15552 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15553 Add XK_ISO... case.
15554 (xaw_scroll_callback): Revert last change.
15555
15556 2008-02-01 Kenichi Handa <handa@m17n.org>
15557
15558 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15559
15560 2008-02-01 Kenichi Handa <handa@m17n.org>
15561
15562 * xfaces.c (Vface_resizing_fonts): New variable.
15563 (struct font_name): New member `resizing_ratio'.
15564 (font_resizing_ratio): New function.
15565 (split_font_name): Set font->resizing_ratio.
15566 (better_font_p): Pay attention to font->resizing_ratio.
15567 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15568 RESX, and RESY fields.
15569 (try_alternative_families): Try scalable fonts if
15570 Vscalable_fonts_allowed is not Qt.
15571 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15572
15573 2008-02-01 Dave Love <fx@gnu.org>
15574
15575 * xterm.c (xaw_scroll_callback): Cast correctly.
15576
15577 2008-02-01 Dave Love <fx@gnu.org>
15578
15579 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15580 (lispy_kana_keys): Comment out.
15581 (make_lispy_event) [XK_kana_A]: Comment out.
15582
15583 * xterm.c (xaw_scroll_callback): Cast call_data.
15584 (XTread_socket): Deal with ASCII keysyms.
15585 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15586
15587 2008-02-01 Dave Love <fx@gnu.org>
15588
15589 * xterm.c (Vx_keysym_table): New.
15590 (syms_of_xterm): Initialize it.
15591 (XTread_socket): Use it.
15592 From head: Eliminate incorrect optimization that tried to avoid
15593 decoding the output of X*LookupString.
15594 (x_get_font_repertory): Delete charset declaration.
15595
15596 2008-02-01 Kenichi Handa <handa@m17n.org>
15597
15598 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15599 return 0.
15600 (Fdefine_coding_system_internal): Setup
15601 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15602
15603 2008-02-01 Dave Love <fx@gnu.org>
15604
15605 * coding.c (Fcheck_coding_system): Doc fix.
15606
15607 * editfns.c (Finsert_byte): Return a proper value.
15608
15609 2008-02-01 Kenichi Handa <handa@m17n.org>
15610
15611 * coding.c (decode_coding): Fix args to translate_chars. Pay
15612 attention to Vstandard_translation_table_for_decode.
15613 (encode_coding): Fix args to translate_chars. Pay attention to
15614 Vstandard_translation_table_for_encode.
15615
15616 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15617 SINGLE_BYTE_CHAR_P.
15618
15619 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15620 not by SINGLE_BYTE_CHAR_P.
15621
15622 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15623 SINGLE_BYTE_CHAR_P.
15624
15625 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15626 SINGLE_BYTE_CHAR_P.
15627
15628 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15629 by SINGLE_BYTE_CHAR_P.
15630
15631 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15632 SINGLE_BYTE_CHAR_P.
15633
15634 2008-02-01 Dave Love <fx@gnu.org>
15635
15636 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15637
15638 2008-02-01 Dave Love <fx@gnu.org>
15639
15640 * fns.c (Flanginfo): Fix typo.
15641
15642 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15643
15644 2008-02-01 Kenichi Handa <handa@m17n.org>
15645
15646 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15647 (detect_coding_emacs_mule, detect_coding_iso_2022)
15648 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15649 incomplete byte sequence. Don't update *mask when correctly detected.
15650 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15651 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15652 (detect_coding, detect_coding_system): Adjust for the changes above.
15653
15654 2008-02-01 Kenichi Handa <handa@m17n.org>
15655
15656 * character.c (char_string): Rename from
15657 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15658 (string_char): Rename from string_char.
15659
15660 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15661 if C is greater than MAX_3_BYTE_CHAR.
15662 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15663 string_char instead of string_char_with_unification.
15664
15665 2008-02-01 Dave Love <fx@gnu.org>
15666
15667 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15668
15669 2008-02-01 Kenichi Handa <handa@m17n.org>
15670
15671 * keymap.c (push_key_description): Pay attention to force_multibyte.
15672
15673 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15674
15675 2008-02-01 Dave Love <fx@gnu.org>
15676
15677 * charset.c (define_charset_internal): Rename `supprementary'.
15678
15679 * Makefile.in (lisp, shortlisp): Remove latin-N.
15680
15681 2008-02-01 Dave Love <fx@gnu.org>
15682
15683 * xfns.c (x_window, x_window): Use use_xim.
15684
15685 * xterm.c (use_xim): Initialize.
15686 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15687 (x_term_init): Maybe set use_xim.
15688
15689 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15690
15691 2008-02-01 Kenichi Handa <handa@m17n.org>
15692
15693 * search.c (search_buffer): Fix case-fold-search of multibyte
15694 characters.
15695 (boyer_moore): Rename the last argument to char_high_bits.
15696
15697 2008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 * xdisp.c (display_string): Fix for the case of zero width glyph.
15700
15701 * xfns.c (x_set_font): Change the error message of the case that
15702 x_new_fontset returns Qt.
15703
15704 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15705 (Finternal_set_lisp_face_attribute): Use signal_error for the
15706 error of invalid fontset.
15707
15708 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15709 fontset, return Qt.
15710
15711 2008-02-01 Dave Love <fx@gnu.org>
15712
15713 * unexelf.c (unexec): Make .got handling not SGI-specific.
15714
15715 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15716
15717 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15718
15719 * keyboard.c (read_key_sequence): Fix type error.
15720
15721 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15722 type error.
15723
15724 * fontset.c (fontset_add): Return Lisp_Object.
15725
15726 2008-02-01 Dave Love <fx@gnu.org>
15727
15728 * charset.h (charset_ordered_list_tick): Declare extern.
15729
15730 2008-02-01 Kenichi Handa <handa@m17n.org>
15731
15732 The following changes (and some of 2008-02-01 changes of mine) are
15733 for handling syntax, category, and case conversion for unibyte
15734 characters by converting them to multibyte on the fly. With these
15735 changes, we don't have to setup syntax and case tables for unibyte
15736 characters in each language environment.
15737
15738 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15739 multibyte if necessary.
15740
15741 * bytecode.c (Fbyte_code): Likewise.
15742
15743 * character.h (LEADING_CODE_LATIN_1_MIN)
15744 (LEADING_CODE_LATIN_1_MAX): New macros.
15745 (unibyte_to_multibyte_table): Extern it.
15746 (unibyte_char_to_multibyte): New macro.
15747 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15748 (CHAR_LEADING_CODE): New macro.
15749 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15750
15751 * character.c (unibyte_to_multibyte_table): New variable.
15752 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15753 (multibyte_char_to_unibyte): If C is an eight-bit character,
15754 convert it to the corresponding byte value.
15755
15756 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15757 not 1, signals an error. Update the elements of
15758 unibyte_to_multibyte_table.
15759 (init_charset_once): Initialize unibyte_to_multibyte_table.
15760 (syms_of_charset): Define the charset `iso-8859-1'.
15761
15762 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15763 as is without converting it to unibyte. In a unibyte buffer,
15764 convert C to multibyte before checking the syntax.
15765
15766 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15767
15768 * minibuf.c (Fminibuffer_complete_word): Use the macro
15769 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15770
15771 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15772
15773 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15774 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15775 that is zero, convert an eight-bit char to multibyte.
15776 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15777 non-emacs case.
15778 (PATFETCH): Convert an eight-bit char to multibyte.
15779 (HANDLE_UNIBYTE_RANGE): New macro.
15780 (regex_compile): Setup the compiled pattern for multibyte chars
15781 even if the given regex string is unibyte. Use PATFETCH_RAW
15782 instead of PATFETCH in many places. To handle `charset'
15783 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15784 only for ASCII chars.
15785 (analyse_first) <exactn>: Simplify because the compiled pattern
15786 is multibyte.
15787 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15788 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15789 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15790 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15791 multibyte always 1.
15792 (re_search_2): In emacs, set the locale variable multibyte to 1,
15793 otherwise to 0. New local variable target_multibyte. Check it
15794 to decide the multibyteness of STR1 and STR2. If
15795 target_multibyte is zero, convert unibyte chars to multibyte
15796 before translating and checking fastmap.
15797 (TARGET_CHAR_AND_LENGTH): New macro.
15798 (re_match_2_internal): In emacs, set the locale variable multibyte
15799 to 1, otherwise to 0. New local variable target_multibyte. Check
15800 it to decide the multibyteness of STR1 and STR2. Use
15801 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15802 <charset, charset_not>: If multibyte is nonzero, check fastmap
15803 only for ASCII chars. Call bcmp_translate with
15804 target_multibyte, not with multibyte.
15805 <begline>: Declare the local variable C as `unsigned'.
15806 (bcmp_translate): Change the last arg name to target_multibyte.
15807
15808 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15809 the regexp pattern and the matching target. Set cp->buf.multibyte
15810 to the multibyteness of the regexp pattern. Set
15811 cp->but.target_multibyte to the multibyteness of the matching target.
15812 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15813 FETCH_STRING_CHAR_ADVANCE.
15814 (Freplace_match): Convert unibyte chars to multibyte.
15815
15816 * syntax.c (char_quoted, back_comment, scan_words)
15817 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15818 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15819 unibyte chars to multibyte.
15820 (skip_chars): Delete the arg syntaxp, and move the code for
15821 handling syntaxes to skip_syntaxes. Change callers.
15822 Fix the case that the multibyteness of STRING and the current
15823 buffer doesn't match.
15824 (skip_syntaxes): New function.
15825 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15826 SINGLE_BYTE_CHAR_P.
15827
15828 2008-02-01 Kenichi Handa <handa@m17n.org>
15829
15830 * xfaces.c (QCfontset): New variable.
15831 (LFACE_FONTSET): New macro.
15832 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15833 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15834 (Finternal_set_lisp_face_attribute)
15835 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15836 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15837 check also LFACE_FONTSET_INDEX.
15838 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15839 attrs[LFACE_FONT_INDEX].
15840 (syms_of_xfaces): Intern and staticpro QCfontset.
15841
15842 * dispextern.h (enum lface_attribute_index): New member
15843 LFACE_FONTSET_INDEX.
15844
15845 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15846
15847 2008-02-01 Kenichi Handa <handa@m17n.org>
15848
15849 * coding.c (coding_set_destination): Fix coding->destination for
15850 the case converting a region.
15851 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15852 (encode_coding_object): Fix coding->dst_pos and
15853 coding->dst_pos_byte for the case converting a region.
15854
15855 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15856
15857 * character.h (BYTE8_STRING): New macro.
15858
15859 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15860
15861 2008-02-01 Kenichi Handa <handa@m17n.org>
15862
15863 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15864 characters by octal form.
15865
15866 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15867
15868 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15869 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15870 _fetch_multibyte_char_len.
15871 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15872
15873 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15874
15875 * casefiddle.c (casify_object): Simplify. Handle the case that
15876 the case conversion change the byte length.
15877 (casify_region): Likewise.
15878
15879 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15880
15881 * character.c (_fetch_multibyte_char_len): Delete this variable.
15882 (syms_of_character): Setup Vprintable_chars.
15883
15884 * editfns.c (Fchar_equal): Fix for the unibyte case.
15885 (Finsert_byte): New function.
15886 (syms_of_editfns): Defsubr it.
15887
15888 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15889 of direct code 0x3ffff.
15890
15891 * search.c (Freplace_match): Fix for the unibyte case.
15892
15893 2008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * lread.c (safe_to_load_p): Fix the logic.
15896
15897 * syntax.c (scan_words): Don't treat characters belonging to
15898 different scripts as constituting a word.
15899
15900 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15901
15902 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15903
15904 * emacs.c (main): In the case of --unibyte, instead of aborting on
15905 finding non-empty buffer, make it unibyte.
15906
15907 2008-02-01 Kenichi Handa <handa@m17n.org>
15908
15909 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15910 to create a fontset.
15911
15912 2008-02-01 Dave Love <fx@gnu.org>
15913
15914 * character.c (Funibyte_char_to_multibyte): Doc fix.
15915
15916 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15917
15918 2008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * fontset.c (fontset_add): Make the type `int'.
15921 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15922
15923 * character.c (unibyte_char_to_multibyte)
15924 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15925 charset_unibyte, not charset_primary.
15926
15927 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15928
15929 * charset.c (charset_unibyte): Rename from charset_primary.
15930 (Funibyte_charset): Rename from Fprimary_charset.
15931 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15932 (syms_of_charset): Adjust for the above changes.
15933
15934 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15935 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15936 it->multibyte_p is zero.
15937
15938 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15939 Delete extern.
15940
15941 2008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * coding.c (Fdefine_coding_system_internal): Fix category setting
15944 for a coding system of type iso-2022.
15945
15946 2008-02-01 Kenichi Handa <handa@m17n.org>
15947
15948 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15949
15950 2008-02-01 Kenichi Handa <handa@m17n.org>
15951
15952 * syntax.c (Vnext_word_boundary_function_table): New variable.
15953 (next-word-boundary-function-table): Declare it as a Lisp variable
15954 in syms_of_syntax.
15955 (scan_words): Call functions in Vnext_word_boundary_function_table
15956 if any.
15957
15958 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15959
15960 * fontset.c (fs_load_font): If fontp->charset is not negative,
15961 return fontp without setting its members.
15962
15963 2008-02-01 Dave Love <fx@gnu.org>
15964
15965 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15966
15967 * m/sparc.h (HAVE_ALLOCA): Delete.
15968
15969 * s/irix6-5.h: Don't include strings.h.
15970 (bcopy, bzero, bcmp): Don't undef.
15971
15972 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15973
15974 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15975 (TIOCSIGSEND): Don't test IRIX6.
15976 (bcopy, bzero, bcmp): Define conditionally.
15977
15978 2008-02-01 Kenichi Handa <handa@m17n.org>
15979
15980 * buffer.c (Qas, Qmake, Qto): New variables.
15981 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15982 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15983
15984 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15985 we are inserting a process output into a multibyte buffer.
15986
15987 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15988 multibyte_char_to_unibyte.
15989
15990 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15991 by the primary charset, make it eight-bit char.
15992 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15993
15994 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15995 (charset_8_bit__control, charset_8_bit_graphic)
15996 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15997 (define_charset_internal): New function.
15998 (syms_of_charset): Call define_charset_internal for pre-defined
15999 charsets.
16000
16001 * charset.h (charset_8_bit): Extern it.
16002
16003 * coding.c (make_conversion_work_buffer): Adjust for the change
16004 of Fset_buffer_multibyte.
16005 (encode_coding_raw_text): Increment p0 in the loop.
16006
16007 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16008
16009 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16010 for the change of Fset_buffer_multibyte.
16011
16012 * fns.c (Fstring_to_multibyte): New function.
16013 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16014
16015 2008-02-01 Dave Love <fx@gnu.org>
16016
16017 * xfns.c (x_put_x_image): Declare args.
16018
16019 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16020 (try_font_list): Declare an arg.
16021
16022 * xdisp.c (message2_nolog, set_message): Declare an arg.
16023
16024 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16025
16026 * syntax.c (scan_sexps_forward): Declare an arg.
16027
16028 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16029 Declare an arg.
16030
16031 * lisp.h (Fnew_fontset): Declare.
16032
16033 * keymap.c (push_key_description): Call CHARACTERP correctly.
16034
16035 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16036 (face_for_char): Delete unused vars.
16037 (Fset_fontset_font): Doc fix. Delete unused vars.
16038
16039 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16040
16041 * composite.c (update_compositions): Declare arg.
16042
16043 * cm.c (calccost, cmgoto): Declare args.
16044
16045 * charset.c: Remove `emacs' conditional. Doc fixes.
16046 (map_char_table_for_charset): Declare.
16047
16048 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16049
16050 * ccl.c: Remove `emacs' conditional.
16051
16052 2008-02-01 Kenichi Handa <handa@m17n.org>
16053
16054 The following changes are to allow specifying multiple font
16055 patterns for a character range (specified by script or charset).
16056
16057 * Makefile.in (abbrev.o): Depend on syntax.h.
16058 (xfaces.o): Depend on charset.h.
16059
16060 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16061 SINGLE_BYTE_CHAR_P.
16062
16063 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16064
16065 * character.h (Vchar_script_table): Extern it.
16066
16067 * character.c (Vscript_alist): Delete.
16068 (Vchar_script_table, Qchar_script_table): New variable.
16069 (syms_of_character): Declare Vchar_script_table as a lisp variable
16070 and initialize it.
16071
16072 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16073 have property char-table-extra-slots, make no extra slot.
16074
16075 * dispextern.h (struct face): Delete member `charset'.
16076 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16077 SINGLE_BYTE_CHAR_P.
16078 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16079 Add prototypes.
16080 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16081 (generate_ascii_font_name): Rename from generate_ascii_font.
16082
16083 * fontset.h (get_font_repertory_func): New prototype.
16084 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16085 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16086
16087 * fontset.c (Qprepend, Qappend): New variables.
16088 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16089 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16090 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16091 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16092 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16093 (load_font_get_repertory): New functions.
16094 (fontset_set): Delete.
16095 (fontset_face): New arg FACE. Return face ID, not face.
16096 Complete re-write to handle new fontset structure. Change caller.
16097 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16098 (face_for_char): Don't call lookup_face.
16099 (make_fontset_for_ascii_face): New arg FACE.
16100 (fs_load_font): New arg CHARSET_ID. Don't check
16101 Vfont_encoding_alist here.
16102 (find_font_encoding): New function.
16103 (list_fontsets): Use STRINGP, not ! NILP.
16104 (accumulate_script_ranges): New function.
16105 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16106 re-written to handle new fontset structure.
16107 (Ffontset_font): Return a copy of element.
16108 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16109 docstring of font-encoding-alist.
16110
16111 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16112 (Fset_fotset_font): Fix arguments to 5.
16113
16114 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16115
16116 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16117 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16118 (highlight_trailing_whitespace): Adjust for the change of
16119 lookup_named_face.
16120
16121 * xfaces.c: Include charset.h.
16122 (load_face_font): Delete argument C. Change caller.
16123 (generate_ascii_font_name): Rename from generate_ascii_font.
16124 (font_name_registry): New function.
16125 (cache_face): Store ascii faces before non-ascii faces in buckets.
16126 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16127 Lookup only ascii faces.
16128 (lookup_non_ascii_face): New function.
16129 (lookup_named_face): Delete argument C. Change caller.
16130 (lookup_derived_face): Delete argument C. Change caller.
16131 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16132 a string, just call font_list with it.
16133 (choose_face_font): Delete arguments FACE and C. New arg
16134 FONT_SPEC. Change caller.
16135 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16136 Change caller.
16137 (realize_non_ascii_face): New function.
16138 (realize_x_face): Call load_face_font here.
16139 (realize_tty_face): Delete argument C. Change caller.
16140 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16141 get a face ID.
16142 (dump_realized_face): Don't print charset of FACE.
16143
16144 * xfns.c (x_set_font): Always call x_new_fontset and
16145 store_frame_parameter.
16146 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16147 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16148
16149 * xterm.h (x_get_font_repertory): Extern it.
16150
16151 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16152 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16153 it->multibyte_p is zero.
16154 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16155 (x_new_fontset): If FONTSETNAME doesn't match any existing
16156 fontsets, create a new one.
16157 (x_get_font_repertory): New function.
16158
16159 2008-02-01 Kenichi Handa <handa@m17n.org>
16160
16161 * coding.c (Ffind_coding_systems_region_internal): Detect an
16162 ASCII only string correctly.
16163
16164 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16165 version is 0.
16166
16167 2008-02-01 Kenichi Handa <handa@m17n.org>
16168
16169 * lread.c: Include "coding.h".
16170 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16171 (load_each_byte, unread_char): New variables.
16172 (readchar_backlog): Delete.
16173 (readchar): Return a character unless load_each_byte is nonzero.
16174 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16175 cons. If unread_char is not -1, simply return it.
16176 (unreadchar): Handle the case that readcharfun is
16177 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16178 (read_multibyte): Delete.
16179 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16180 (read_emacs_mule_char): New functions.
16181 (Fload): Even if the file doesn't have the extension ".elc", if
16182 safe_to_load_p returns a positive version number, assume that the
16183 file contains bytecompiled code. If the version is less than 22,
16184 load the file while decoding multibyte sequences by emacs-mule.
16185 (readevalloop): Don't use readchar_backlog.
16186 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16187 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16188 (read_escape): Delete the arg BYTEREP.
16189 (read1): Set load_each_byte to 1 temporarily while handling
16190 #@NUMBER. Don't call read_multibyte.
16191 (read_vector): Call Fread with a cons. If readcharfun is
16192 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16193 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16194 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16195 and Qload_force_doc_strings.
16196
16197 2008-02-01 Kenichi Handa <handa@m17n.org>
16198
16199 * xdisp.c (face_before_or_after_it_pos): Call
16200 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16201
16202 2008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * character.h (TRAILING_CODE_P): New macro.
16205 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16206 (string_char_with_unification): Fix prototype.
16207 (Vscript_alist): Extern it.
16208
16209 * character.c (Vscript_alist): New variable.
16210 (string_char_with_unification, str_as_unibyte)
16211 (string_escape_byte8): Add `const' to local variables.
16212 (syms_of_character): Declare script-alist as a Lisp variable.
16213
16214 * charset.h (Vcharset_ordered_list): Extern it.
16215 (charset_ordered_list_tick): Extern it.
16216 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16217 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16218 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16219 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16220 (Funify_charset): Adjust for the change of Funify_charset.
16221
16222 * charset.c (charset_ordered_list_tick): New variable.
16223 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16224 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16225 deunify intead of unify a charset.
16226 (string_xstring_p): Add `const' to local variables.
16227 (find_charsets_in_text): Add `const' to arguments and local variables.
16228 (encode_char): Adjust for the change of Funify_charset. Fix
16229 detecting of invalid code.
16230 (Fset_charset_priority): Increment charset_ordered_list_tick.
16231 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16232 and TO_CODE.
16233
16234 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16235 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16236 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16237 (decode_coding_ccl, consume_chars)
16238 (Ffind_coding_systems_region_internal)
16239 (Fcheck_coding_systems_region): Add `const' to local variables.
16240
16241 * print.c (print_object): Use octal form for printing the
16242 contents of a bool vector.
16243
16244 2008-02-01 Dave Love <fx@gnu.org>
16245
16246 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16247 <version == 20>: Refuse to load.
16248
16249 2008-02-01 Dave Love <fx@gnu.org>
16250
16251 * fns.c: Move coding.h.
16252 (Qcodeset, Qdays, Qmonths): New.
16253 (concat): Use CHARACTERP instead of INTEGERP.
16254 (Flocale_codeset): Delete.
16255 (Flanginfo): New function.
16256 (syms_of_fns): Change accordingly.
16257
16258 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16259
16260 2008-02-01 Dave Love <fx@gnu.org>
16261
16262 * casetab.c (init_casetab_once, init_casetab_once): Fix
16263 CHAR_TABLE_SET call.
16264
16265 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16266
16267 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16268
16269 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16270 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16271 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16272
16273 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16274
16275 * coding.c (ENCODE_DESIGNATION, decode_eol)
16276 (make_conversion_work_buffer, code_conversion_restore)
16277 (Fdefine_coding_system_internal): Convert Lisp types.
16278 (code_conversion_restore): Use EQ, not ==.
16279 (Fencode_coding_string): Fix code_convert_string call.
16280
16281 * coding.h (code_convert_region): Fix prototype.
16282
16283 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16284
16285 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16286 (Ffontset_info): Convert Lisp types.
16287
16288 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16289
16290 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16291
16292 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16293
16294 * chartab.c: Include "...h", not <...h> in some cases.
16295
16296 * callproc.c (Fcall_process): Remove unused variables.
16297
16298 2008-02-01 Dave Love <fx@gnu.org>
16299
16300 * coding.c (Fset_coding_system_priority): Allow null arg list.
16301
16302 2008-02-01 Dave Love <fx@gnu.org>
16303
16304 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16305 (Fself_insert_and_exit): Use CHARACTERP.
16306
16307 * callproc.c (Fcall_process): Remove unused vars.
16308
16309 * xterm.c (XTread_socket): Add extra dead keysyms.
16310
16311 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16312
16313 * dispextern.h: Remove prototypes for redraw_frame,
16314 redraw_garbaged_frames.
16315
16316 * cmds.c (Fself_insert_command): Use CHARACTERP.
16317
16318 * chartab.c (make_sub_char_table): Remove unused var.
16319 (Fset_char_table_default, Fmap_char_table): Doc fix.
16320
16321 * keymap.c (access_keymap): Remove generic char code.
16322 (push_key_description): Use CHARACTERP.
16323
16324 2008-02-01 Dave Love <fx@gnu.org>
16325
16326 * charset.c: Doc fixes.
16327 (Funify_charset): Extra checking.
16328
16329 2008-02-01 Dave Love <fx@gnu.org>
16330
16331 * lread.c: Remove some unused variables.
16332 (safe_to_load_p): If safe, return the magic number version byte.
16333 (Fload): Maybe use load-with-code-conversion.
16334
16335 2008-02-01 Kenichi Handa <handa@m17n.org>
16336
16337 * category.c (Fmodify_category_entry): Don't modify the contents
16338 of category_set for characters out of the range. Avoid
16339 unnecessary modification.
16340
16341 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16342 Vchar_unify_table. The default value of the table is now nil.
16343
16344 * character.c (syms_of_character): Setup Vchar_width_table for
16345 eight-bit-control and raw-byte chars.
16346
16347 * charset.h (enum define_charset_arg_index): Delete
16348 charset_arg_parents and add charset_arg_subset and
16349 charset_arg_superset.
16350 (enum charset_attr_index): Delete charset_parents and add
16351 charset_subset and charset_superset.
16352 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16353 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16354 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16355 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16356 (CHARSET_SUPERSET): New macros.
16357 (charset_work): Extern it.
16358 (ENCODE_CHAR): Use charset_work.
16359 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16360 (map_charset_chars): Extern it.
16361
16362 * charset.c (load_charset_map): Set the default value of encoder
16363 and deunifier char-tables to nil.
16364 (map_charset_chars): Change argument. Change callers. Use
16365 map_char_table_for_charset instead of map_char_table.
16366 (Fmap_charset_chars): New optional args from_code and to_code.
16367 (Fdefine_charset_internal): Adjust for the change of
16368 `define-charset' (:parents -> :subset or :superset).
16369 (charset_work): New variable.
16370 (encode_char, syms_of_charset): Adjust for the change of
16371 Fdefine_charset_internal.
16372 (Ffind_charset_string): Setup the vector `charsets' correctly.
16373
16374 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16375 the previous change.
16376 (char_table_ref_and_range): Adjust for the above change.
16377 (map_sub_char_table_for_charset): New function.
16378 (map_char_table_for_charset): New function.
16379
16380 * keymap.c (describe_vector): Handle a char-table directly here.
16381 (describe_char_table): Delete.
16382
16383 * lisp.h (map_charset_chars): Delete.
16384
16385 2008-02-01 Dave Love <fx@gnu.org>
16386
16387 * fns.c (count_combining): Comment out (unused).
16388 (Flocale_codeset): New.
16389 (syms_of_fns): Defsubr it.
16390
16391 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16392 (size_t): Remove.
16393
16394 2008-02-01 Dave Love <fx@gnu.org>
16395
16396 * Makefile.in (chartab.o): Depend on charset.h.
16397
16398 2008-02-01 Kenichi Handa <handa@m17n.org>
16399
16400 * character.c (syms_of_character): Set the default value of
16401 Vprintable_chars to Qnil.
16402
16403 2008-02-01 Dave Love <fx@gnu.org>
16404
16405 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16406
16407 2008-02-01 Kenichi Handa <handa@m17n.org>
16408
16409 * charset.c (load_charset_map): Handle the case that from < to
16410 correctly.
16411
16412 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16413 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16414 Pay attention to raw-8-bit chars.
16415
16416 2008-02-01 Kenichi Handa <handa@m17n.org>
16417
16418 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16419 It is not bytecompiled now.
16420
16421 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16422 (charset_jisx0208): New variables.
16423 (Fdefine_charset_internal): Setup them if appropriate.
16424 (init_charset_once): Initialize them to -1.
16425
16426 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16427 (charset_jisx0208): Extern them.
16428
16429 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16430 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16431 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16432 (setup_iso_safe_charsets): Fix arguments to Fassq.
16433 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16434 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16435 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16436 (encode_coding_iso_2022): Change the 1st arg to
16437 ENCODE_ISO_CHARACTER to a variable.
16438
16439 2008-02-01 Kenichi Handa <handa@m17n.org>
16440
16441 * charset.h (enum define_charset_arg_index): New enums
16442 charset_arg_min_code and charset_arg_max_code.
16443 (struct charset): New member char_index_offset.
16444
16445 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16446 Take charset->char_index_offset into account.
16447 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16448 args[charset_arg_max_code]. Setup charset.char_index_offset.
16449 (syms_of_charset): Fix args to Fdefine_charset_internal.
16450
16451 2008-02-01 Dave Love <fx@gnu.org>
16452
16453 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16454
16455 2008-02-01 Dave Love <fx@gnu.org>
16456
16457 * coding.c: Doc fixes.
16458 (Fcoding_system_aliases): Fix return value.
16459 (Qmac): Remove (duplicated) definition.
16460
16461 2008-02-01 Dave Love <fx@gnu.org>
16462
16463 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16464 New functions.
16465
16466 * character.c (Fstring): Doc fix.
16467
16468 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16469
16470 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
16471 (font-encoding-alist): Doc fix.
16472
16473 2008-02-01 Dave Love <fx@gnu.org>
16474
16475 * term.c (costs_set): Declare static, non-initialized for pcc.
16476 (encode_terminal_code): Remove unused var.
16477
16478 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16479 for K&R.
16480
16481 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16482
16483 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16484 (suffixes): Move out of make_subsidiaries for K&R.
16485
16486 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16487
16488 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16489
16490 2008-02-01 Dave Love <fx@gnu.org>
16491
16492 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16493
16494 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16495
16496 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16497
16498 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16499
16500 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16501
16502 2008-02-01 Kenichi Handa <handa@m17n.org>
16503
16504 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16505 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16506
16507 2008-02-01 Kenichi Handa <handa@m17n.org>
16508
16509 * coding.c (decode_coding_charset): Adjust for the change of
16510 Fdefine_coding_system_internal.
16511 (Fdefine_coding_system_internal): For a coding system of
16512 `charset' type, store a list of charset IDs in
16513 `charset_attr_charset_valids' element of coding attributes.
16514
16515 2008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16518 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16519 caller. Handle 2-byte and 3-byte charsets correctly.
16520 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16521 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16522 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16523 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16524 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16525 sequence.
16526 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16527 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16528 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16529 and alt&rule composition.
16530 (decode_coding_iso_2022): Handle composition correctly.
16531 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16532
16533 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16534 re-defining a charset. If the charset has :emacs-mule-id, setup
16535 emacs_mule_bytes.
16536 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16537
16538 2008-02-01 Kenichi Handa <handa@m17n.org>
16539
16540 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16541 (encode_coding_big5, encode_coding_charset): If coding requires safe
16542 encoding, produce a character specified by
16543 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16544
16545 2008-02-01 Dave Love <fx@gnu.org>
16546
16547 * xterm.c (XSetIMValues): Declare.
16548
16549 * process.c: Conditionally include sys/wait.h, pty.h.
16550
16551 * print.c (print_object): Fix print format for 64-bit systems.
16552
16553 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16554
16555 * buffer.c (emacs_strerror): Declare.
16556
16557 * fontset.c (Fclear_face_cache): Declare.
16558 (accumulate_font_info): Comment-out (unused).
16559 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16560 variables.
16561
16562 * character.h (string_escape_byte8): Declare.
16563
16564 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16565 unused vars.
16566 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16567 (Fmap_charset_chars): Doc fix.
16568
16569 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16570 (Fset_coding_system_priority, Fset_coding_system_priority)
16571 (Fdefine_coding_system_internal): Doc fix.
16572
16573 2008-02-01 Dave Love <fx@gnu.org>
16574
16575 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16576
16577 2008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * character.c (string_escape_byte8): Make multibyte string with
16580 correct size.
16581
16582 * charset.c (Fmake_char): Delete unnecessary code.
16583
16584 2008-02-01 Kenichi Handa <handa@m17n.org>
16585
16586 * xfns.c (x_encode_text): Allocate coding.destination here, and
16587 call encode_coding_object with dst_object Qnil.
16588
16589 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16590 multibyte form correctly.
16591
16592 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16593 against Vfont_encoding_alist.
16594
16595 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16596 handling of charset list.
16597 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16598 (decode_coding_object): Move point to coding->dst_pos before
16599 calling post-read-conversion function.
16600 (encode_coding_object): Give correct arguments to
16601 pre-write-conversion. Ignore the return value of
16602 pre-write-conversion function. Pay attention to the case that
16603 pre-write-conversion changes the current buffer. If dst_object is
16604 Qt, even if coding->src_bytes is zero, allocate at least one byte
16605 to coding->destination.
16606
16607 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16608
16609 * charset.c (Fmake_char): Make it more backward compatible.
16610 (Fmap_charset_chars): Fix docstring.
16611
16612 2008-02-01 Dave Love <fx@gnu.org>
16613
16614 * coding.c: Doc fixes.
16615 (Fdefine_coding_system_alias): Use names, not symbols, in
16616 coding-system-alist.
16617
16618 2008-02-01 Kenichi Handa <handa@m17n.org>
16619
16620 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16621 of calling free_realized_face.
16622
16623 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16624
16625 * charset.c (read_hex): Don't treat SPC as a comment starter.
16626 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16627 (Fdecode_char): Fix typo.
16628
16629 2008-02-01 Kenichi Handa <handa@m17n.org>
16630
16631 * charset.h (struct charset): New member `code_space_mask'.
16632
16633 * coding.c (coding_set_source): Delete the local variable beg_byte.
16634 (encode_coding_charset, Fdefine_coding_system_internal):
16635 Delete the local variable charset.
16636 (Fdefine_coding_system_internal): Setup
16637 attrs[coding_attr_charset_valids] correctly.
16638
16639 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16640 member to check if CODE is valid or not.
16641 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16642 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16643 is within the range of charset->min_code and carset->max_code.
16644
16645 2008-02-01 Dave Love <fx@gnu.org>
16646
16647 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16648
16649 * dispextern.h (generate_ascii_font): Fix return type.
16650
16651 * xfaces.c (generate_ascii_font): Fix arg declaration.
16652
16653 * coding.c (coding_inherit_eol_type)
16654 (Fset_terminal_coding_system_internal)
16655 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16656
16657 2008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16660 multiple charsets correctly.
16661
16662 2008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * search.c (boyer_moore): Fix handling of multibyte character
16665 translation.
16666
16667 * xdisp.c (display_mode_element): When the variable `elt' is
16668 changed, update `this' and `lisp_string'.
16669
16670 2008-02-01 Kenichi Handa <handa@m17n.org>
16671
16672 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16673
16674 * callproc.c (Fcall_process): Be sure to give the current buffer
16675 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16676
16677 * charset.c (struct charset_map_entries): New struct.
16678 (load_charset_map): Rename from parse_charset_map. New args
16679 entries and n_entries. Change caller.
16680 (load_charset_map_from_file): Rename from load_charset_map.
16681 Change caller. New arg control_flag. Call load_charset_map at
16682 the tail.
16683 (load_charset_map_from_vector): New function.
16684 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16685 (encode_char): If the charset is compact, change a character index
16686 to a code point.
16687
16688 * coding.c (coding_alloc_by_making_gap): Check the case that the
16689 source and destination are the same correctly.
16690 (decode_coding_raw_text): Set coding->consumed_char and
16691 coding->consumed to 0.
16692 (produce_chars): If coding->chars_at_source is nonzero, update
16693 coding->consumed_char and coding->consumed before calling
16694 alloc_destination.
16695 (Fdefine_coding_system_alias): Register ALIAS in
16696 Vcoding_system_alist.
16697 (syms_of_coding): Define `no-conversion' coding system at the tail.
16698
16699 * fileio.c (Finsert_file_contents): Set coding_system instead of
16700 val. If the current buffer is multibyte, always call
16701 decode_coding_gap.
16702
16703 * xfaces.c (try_font_list): Give higher priority to fontset's
16704 family than face's family.
16705
16706 2008-02-01 Kenichi Handa <handa@m17n.org>
16707
16708 * callproc.c (Fcall_process): Be sure to give the current buffer
16709 to decode_coding_c_string.
16710
16711 * xfaces.c (try_font_list): Give a family specified in a fontset
16712 higher priority than a family specified in a face.
16713
16714 2008-02-01 Kenichi Handa <handa@m17n.org>
16715
16716 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16717 Fix arguments to insert_from_buffer.
16718
16719 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16720
16721 2008-02-01 Kenichi Handa <handa@m17n.org>
16722
16723 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16724 (decode_coding_gap): Set coding->dst_multibyte correctly.
16725
16726 2008-02-01 Kenichi Handa <handa@m17n.org>
16727
16728 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16729 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16730 (encode_coding_utf_16): Substitute coding->default_char for
16731 non-Unicode characters.
16732 (decode_coding): Don't call record_insert here.
16733 (setup_coding_system): Initialize `surrogate' of
16734 coding->spec.utf_16 to 0.
16735 (EMIT_ONE_BYTE): Fix for multibyte case.
16736
16737 * insdel.c (insert_from_gap): Call record_insert.
16738
16739 2008-02-01 Kenichi Handa <handa@m17n.org>
16740
16741 * casefiddle.c (casify_region): Fix multibyte case.
16742
16743 * character.c (c_string_width): Add return type `int'.
16744 (char_string_with_unification): Delete arg ADVANCED.
16745
16746 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16747 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16748 (CHAR_STRING_ADVANCE): Make it do-while statement.
16749
16750 * chartab.c (sub_char_table_set_range): Optimize for the case
16751 DEPTH == 3. Add workaround code for a GCC optimization bug.
16752
16753 * charset.c (parse_charset_map): Remove an unused variable.
16754
16755 * coding.c: Delete unused variables.
16756
16757 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16758 earlier. If inserted is zero and the coding system doesn't
16759 require flushing, don't call decode_coding_gap.
16760
16761 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16762
16763 2008-02-01 Kenichi Handa <handa@m17n.org>
16764
16765 The following changes are for using Unicode as an internal
16766 character model, and use UTF-8 format for buffer/string
16767 representation.
16768
16769 * .gdbinit (xchartable): Adjust for the change of char table structure.
16770 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16771
16772 * Makefile.in (obj): Add character.o and chartab.o.
16773 (lisp, shortlisp): Remove utf-8.elc.
16774 (*.o): For many files, change dependency on charset.h to
16775 character.h, and add dependency on character.h.
16776 (character.o, chartab.o): New targets.
16777
16778 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16779 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16780 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16781 of "charset.h".
16782
16783 * dired.c, filelock.c: Include "character.h".
16784
16785 * alloc.c: Include "character.h" instead of "charset.h".
16786 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16787 (syms_of_alloc): Remove defsubr for Smake_char_table.
16788
16789 * buffer.c: Include "character.h" instead of "charset.h", don't
16790 include "coding.h".
16791 (Fset_buffer_multibyte): Adjust for UTF-8.
16792
16793 * buffer.h: EXFUN Fbuffer_live_p.
16794
16795 * callproc.c: Include "character.h" instead of "charset.h".
16796 (Fcall_process): Big change for the new code-conversion APIs.
16797
16798 * casetab.c: Include "character.h" instead of "charset.h".
16799 (set_canon, set_identity, shuffle): Adjust for the new
16800 map_char_table spec.
16801 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16802 accessing the char table structure.
16803
16804 * chartab.c: New file that implements char table.
16805
16806 * category.c: Include "character.h".
16807 (copy_category_entry): New function.
16808 (copy_category_table): Call map_char_table and copy_category_entry.
16809 (Fmake_category_table): Initialize all top-level slots.
16810 (char_category_set): New function.
16811 (modify_lower_category_set): Delete.
16812 (Fmodify_category_entry): Call char_table_ref_and_range.
16813
16814 * category.h (CATEGORY_SET): Just call char_category_set.
16815
16816 * ccl.c: Include "character.h".
16817 (Qccl, Qcclp): New variables.
16818 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16819 it's less than 256.
16820 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16821 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16822 and DST type.
16823 (ccl_driver): Change types of argument, adjust code accordingly.
16824 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16825 ccl_driver.
16826 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16827
16828 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16829 New members src_multibyte, dst_multibyte, consumed, and produced.
16830 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16831 (CODING_SPEC_CCL_PROGRAM): New macro.
16832 (ccl_driver): Update prototype.
16833 (Qccl, Qcclp, Fccl_program_p): Extern them.
16834 (CHECK_CCL_PROGRAM): New macro.
16835
16836 * character.c, character.h, chartab.c: New files.
16837
16838 * charset.c: Mostly re-written. Move character and multibyte sequence
16839 handling codes to character.c.
16840
16841 * charset.h: Mostly re-written. Move character and multibyte sequence
16842 handling codes to character.h.
16843
16844 * coding.c, coding.h: Mostly re-written.
16845
16846 * composite.c: Include "character.h" instead of "charset.h".
16847 (CHAR_WIDTH): Move to character.h.
16848 (HASH_KEY, HASH_VALUE): Delete.
16849
16850 * composite.h (enum composition_method): Change order of enumeration
16851 symbols.
16852
16853 * data.c: Include "character.h" instead of "charset.h".
16854 (Faref): Call CHAR_TABLE_REF for a char table.
16855 (Faset): Call CHAR_TABLE_SET for a char table.
16856
16857 * dispextern.h (free_realized_face, check_face_attribytes)
16858 (generate_ascii_font): Extern them.
16859 (free_realized_multibyte_face): Delete extern.
16860
16861 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16862 table structure.
16863
16864 * editfns.c: Include "character.h" instead of "charset.h".
16865 (Fchar_to_string): Always call CHAR_STRING.
16866
16867 * emacs.c (main): Call init_charset_once, init_charset,
16868 syms_of_chartab, and syms_of_character.
16869
16870 * fileio.c: Include "character.h" instead of "charset.h".
16871 (Finsert_file_contents): Big change for the new code-conversion API.
16872 (choose_write_coding_system, Fwrite_region): Likewise.
16873 (build_annotations_2): Delete.
16874 (e_write): Big change for the new code-conversion API.
16875
16876 * fns.c: Include "character.h" instead of "charset.h".
16877 (copy_sub_char_table): Move to chartab.c.
16878 (Fcopy_sequence): Call copy_char_table for a char table.
16879 (concat): Delete codes calling count_multibyte.
16880 (string_char_to_byte, string_byte_to_char): Adjust for the new
16881 multibyte form.
16882 (internal_equal): Adjust for the change of char table structure.
16883 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16884 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16885 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16886 (char_table_translate, optimize_sub_char_table)
16887 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16888 chartab.c.
16889 (char_table_ref_and_index): Delete.
16890 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16891 (Fmd5): Call preferred_coding_system instead of accessing
16892 Vcoding_category_list. Adjust for the new code-conversion API.
16893 (syms_of_fns): Move defsubr for char table related functions to
16894 chartab.c.
16895
16896 * fontset.c: Mostly re-written.
16897
16898 * fontset.h (struct font_info): Change type of the member encoding_type.
16899 (enum FONT_SPEC_INDEX): New enum.
16900 (fontset_font_pattern, fs_load_font): Update prototype.
16901 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16902
16903 * indent.c: Include "character.h" instead of "charset.h".
16904 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16905
16906 * insdel.c: Include "character.h" instead of "charset.h".
16907 (copy_text): Don't refer to Vnonascii_translation_table.
16908 (insert_from_gap): New function.
16909
16910 * keyboard.c: Include "character.h" instead of "charset.h".
16911 (command_loop_1): Never call direct_output_forward_char before
16912 a non-ASCII character.
16913 (read_char): If Vkeyboard_translate_table is a char table, always
16914 translate a character.
16915
16916 * keymap.c: Include "character.h".
16917 (store_in_keymap): Handle the case that IDX is a cons.
16918 (Fdefine_key): Handle the case that KEY is a cons and the car part
16919 is also a cons (range).
16920 (push_key_description): Adjust for the new character code.
16921 (describe_vector): Call describe_char_table for a char table.
16922 (describe_char_table): New function.
16923
16924 * keymap.h (describe_char_table): Extern it.
16925
16926 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16927 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16928 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16929 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16930 Delete.
16931 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16932 structure.
16933 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16934 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16935 (CHARTAB_SIZE_BITS_3): New macros.
16936 (chartab_size): Extern it.
16937 (struct Lisp_Char_Table): Re-design.
16938 (struct Lisp_Sub_Char_Table): New structure.
16939 (HASH_KEY, HASH_VALUE): Move from fns.c.
16940 (CHARACTERBITS): Define as 22.
16941 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16942 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16943 (GC_SUB_CHAR_TABLE_P): New macro.
16944 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16945 (code_convert_string_norecord): Deleted extern.
16946 (init_character_once, syms_of_character, init_charset)
16947 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16948
16949 * lread.c: Include "character.h".
16950 (read_multibyte): New arg NBYTES.
16951 (read_escape): Change the meaning of returned *BYTEREP.
16952 (to_multibyte): Delete.
16953 (read1): Adjust the handling of char table and string.
16954
16955 * print.c: Include "character.h" instead of "charset.h".
16956 (print_string): Convert 8-bit raw bytes to octal form by
16957 string_escape_byte8.
16958 (print_object): Adjust for the new multibyte form. Print 8-bit
16959 raw bytes always in octal form. Handle sub char table correctly.
16960
16961 * process.c: Include "character.h" instead of "charset.h".
16962 (read_process_output, send_process): Adjust for the new
16963 code-conversion API.
16964
16965 * puresize.h (BASE_PURESIZE): Increase.
16966
16967 * regex.c: Include "character.h" instead of "charset.h".
16968 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16969 (regex_compile): Accept a range whose starting and ending
16970 character have different leading bytes.
16971 (analyse_first): Adjust for the above change.
16972
16973 * search.c: Include "character.h" instead of "charset.h".
16974 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16975 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16976
16977 * syntax.c: Include "character.h" instead of "charset.h".
16978 (syntax_parent_lookup): Delete.
16979 (Fmodify_syntax_entry): Accept a cons as CHAR.
16980 (skip_chars): Adjust for the new multibyte form.
16981 (init_syntax_once): Call char_table_set_range instead of directly
16982 accessing the structure of a char table.
16983
16984 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16985 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16986 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16987 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16988
16989 * term.c: Include "buffer.h" and "character.h".
16990 (encode_terminal_code, write_glyphs): Adjust for the new
16991 code-conversion API.
16992 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16993
16994 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16995
16996 * xdisp.c: Include "character.h".
16997 (get_next_display_element): Adjust for the new multibyte form.
16998 (disp_char_vector): Adjust for the new char table structure.
16999 (decode_mode_spec_coding): Adjust for the new structure of
17000 coding system.
17001 (decode_mode_spec): Adjust for the new code-conversion API.
17002
17003 * xfaces.c: Include "character.h" instead of "charset.h".
17004 (load_face_font): Adjust for the change of choose_face_font and
17005 FS_LOAD_FONT.
17006 (generate_ascii_font): New function.
17007 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17008 (set_font_frame_param): Adjust for the change of choose_face_font.
17009 (free_realized_face): Make it public.
17010 (free_realized_faces_for_fontset): Rename from
17011 free_realized_multibyte_face. Free also faces realized for ASCII.
17012 (choose_face_font): Change arguments. Adjust for the change of
17013 fontset_font_pattern and FS_LOAD_FONT.
17014
17015 * xfns.c: Include "character.h".
17016 (x_encode_text): Adjust for the new code-conversion API.
17017
17018 * xselect.c: Don't include "charset.h".
17019 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17020
17021 * xterm.c: Include "character.h".
17022 (x_encode_char): New argument CHARSET. Change caller.
17023 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17024 Call ENCODE_CHAR instead of SPLIT_CHAR.
17025 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17026 CHAR_WIDTH instead of CHARSET_WIDTH.
17027 (XTread_socket): Adjust for the new code-conversion API.
17028 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17029 (x_load_font): Adjust for the change of struct font.
17030
17031 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17032
17033 * xfaces.c (face_at_buffer_position): Remove unused vars.
17034
17035 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17036
17037 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17038 Fix overflow checking.
17039
17040 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17041
17042 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17043 Cancel previous change.
17044
17045 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17046
17047 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17048 ccl->eight_bit_control. Fix check for buffer overflow.
17049 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17050 (ccl_driver): Initialize extra_bytes to 0.
17051
17052 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17053
17054 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17055 return it ORed with ctrl_modifier.
17056
17057 2008-01-29 Miles Bader <miles@gnu.org>
17058
17059 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17060
17061 2008-01-28 Jason Rumney <jasonr@gnu.org>
17062
17063 * w32.c (stat): Don't double check for networked drive.
17064
17065 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17066
17067 * window.c (run_window_configuration_change_hook): New function.
17068 Code extracted from set_window_buffer. Set the selected frame.
17069 (set_window_buffer): Use it.
17070 * window.h (run_window_configuration_change_hook): Declare.
17071 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17072
17073 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17074
17075 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17076
17077 * Makefile.in: Remove references to unused macros.
17078
17079 2008-01-26 Eli Zaretskii <eliz@gnu.org>
17080
17081 * w32.c (g_b_init_get_sid_sub_authority)
17082 (g_b_init_get_sid_sub_authority_count): New static variables.
17083 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17084 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17085 (init_user_info): Use them to retrieve uid and gid.
17086 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17087 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17088 st_uid and st_gid of the file.
17089
17090 2008-01-26 Jason Rumney <jasonr@gnu.org>
17091
17092 * w32.c (logon_network_drive): New function.
17093 (stat): Use it.
17094
17095 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
17096
17097 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17098 invisible text covered with an ellipsis.
17099
17100 2008-01-25 Richard Stallman <rms@gnu.org>
17101
17102 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17103 jump back to beginning. Move some other initializations after that.
17104 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17105 New variables.
17106 (syms_of_xdisp): Init them.
17107
17108 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17109
17110 * buffer.c (reset_buffer_local_variables):
17111 Implement `permanent-local-hook'.
17112 (Qpermanent_local_hook): New variable.
17113 (syms_of_buffer): Init and staticpro it.
17114
17115 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
17116
17117 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17118
17119 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17120
17121 * fns.c (Fclrhash): Return TABLE.
17122
17123 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17124
17125 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17126 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17127 is set even without positional changes.
17128 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17129
17130 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17131
17132 2008-01-23 Jason Rumney <jasonr@gnu.org>
17133
17134 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17135
17136 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17137 the unicode range available in MULE by locale-coding-system.
17138 Improve dbcs lead byte detection. Set event timestamp and modifiers
17139 earlier.
17140
17141 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17142
17143 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17144 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17145 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17146 when used on child processes.
17147
17148 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
17149
17150 * dbusbind.c (Fdbus_method_return_internal): Rename from
17151 Fdbus_method_return.
17152 (Fdbus_unregister_object): Move to dbus.el.
17153 (Fdbus_call_method, Fdbus_method_return_internal)
17154 (Fdbus_send_signal): Improve debug messages.
17155
17156 2008-01-20 Martin Rudalics <rudalics@gmx.at>
17157
17158 * undo.c (undo_inhibit_record_point): New variable.
17159 (syms_of_undo): Initialize it.
17160 (record_point): Don't record point when undo_inhibit_record_point
17161 is set.
17162
17163 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17164
17165 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17166
17167 * xdisp.c (Qauto_hscroll_mode): New var.
17168 (syms_of_xdisp): Initialize it.
17169 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17170 window's buffer.
17171 (hscroll_windows): Don't check automatic_hscrolling_p here.
17172
17173 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17174 vscroll if we're setting window-buffer to the value it already has.
17175
17176 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17177
17178 * m/intel386.h: Remove references to XENIX.
17179
17180 2008-01-17 Andreas Schwab <schwab@suse.de>
17181
17182 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17183 instead of HAVE_X86_64_LIB64_DIR.
17184 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17185
17186 2008-01-17 Glenn Morris <rgm@gnu.org>
17187
17188 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17189 to HAVE_X86_64_LIB64_DIR.
17190
17191 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17192
17193 * s/irix3-3.h:
17194 * s/irix4-0.h:
17195 * s/386-ix.h:
17196 * s/domain.h:
17197 * s/hpux9-x11r4.h:
17198 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17199
17200 * sysdep.c: Remove code containing references to symbols defined
17201 by unsupported systems.
17202
17203 2008-01-16 Glenn Morris <rgm@gnu.org>
17204
17205 * coding.c (select-safe-coding-system-function): Doc fix.
17206
17207 2008-01-15 Glenn Morris <rgm@gnu.org>
17208
17209 * config.in: Revert 2008-01-13 change: this is a generated file.
17210
17211 2008-01-13 Tom Tromey <tromey@redhat.com>
17212
17213 * lisp.h: Fix typo.
17214
17215 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17216
17217 * m/sequent-ptx.h:
17218 * m/sequent.h:
17219 * s/ptx.h:
17220 * s/ptx4-2.h:
17221 * s/ptx4.h: Remove files for systems no longer supported.
17222
17223 * callproc.c (Fcall_process): Fix previous change.
17224
17225 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17226
17227 * unexsunos4.c: Remove file, system not supported anymore.
17228
17229 * m/mips.h:
17230 * m/intel386.h:
17231 * callproc.c:
17232 * config.in:
17233 * ecrt0.c:
17234 * emacs.c:
17235 * fileio.c:
17236 * frame.c:
17237 * getpagesize.h:
17238 * keyboard.c:
17239 * lread.c:
17240 * process.c:
17241 * puresize.h:
17242 * sysdep.c:
17243 * systty.h:
17244 * syswait.h:
17245 * unexec.c:
17246 * xdisp.c:
17247 * alloc.c: Remove code containing references to symbols defined by
17248 unsupported systems.
17249
17250 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17251
17252 * coding.c (detect_coding_mask): Fix previous change.
17253
17254 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17255
17256 * coding.c (detect_coding_iso2022): New arg
17257 latin_extra_code_state. Allow Latin extra codes only
17258 when *latin_extra_code_state is nonzero.
17259 (detect_coding_mask): If there is a NULL byte, detect the encoding
17260 as UTF-16 or binary. If Latin extra codes exist, detect the
17261 encoding as ISO-2022 only when there's no other proper encoding is
17262 found.
17263
17264 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17265
17266 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17267 #ifdef MAC_OS.
17268
17269 2008-01-08 Richard Stallman <rms@gnu.org>
17270
17271 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17272
17273 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
17274
17275 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17276 menu bar in parentheses.
17277
17278 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17279
17280 * m/7300.h:
17281 * m/acorn.h:
17282 * m/alliant-2800.h:
17283 * m/alliant.h:
17284 * m/alliant1.h:
17285 * m/alliant4.h:
17286 * m/altos.h:
17287 * m/amdahl.h:
17288 * m/apollo.h:
17289 * m/att3b.h:
17290 * m/aviion-intel.h:
17291 * m/aviion.h:
17292 * m/celerity.h:
17293 * m/clipper.h:
17294 * m/cnvrgnt.h:
17295 * m/convex.h:
17296 * m/cydra5.h:
17297 * m/delta88k.h:
17298 * m/dpx2.h:
17299 * m/dual.h:
17300 * m/elxsi.h:
17301 * m/f301.h:
17302 * m/gould-np1.h:
17303 * m/gould.h:
17304 * m/i860.h:
17305 * m/ibmps2-aix.h:
17306 * m/ibmrt-aix.h:
17307 * m/ibmrt.h:
17308 * m/irist.h:
17309 * m/is386.h:
17310 * m/isi-ov.h:
17311 * m/mega68.h:
17312 * m/mg1.h:
17313 * m/news-r6.h:
17314 * m/news-risc.h:
17315 * m/news.h:
17316 * m/nh3000.h:
17317 * m/nh4000.h:
17318 * m/ns16000.h:
17319 * m/ns32000.h:
17320 * m/nu.h:
17321 * m/orion.h:
17322 * m/orion105.h:
17323 * m/paragon.h:
17324 * m/pfa50.h:
17325 * m/plexus.h:
17326 * m/pyramid.h:
17327 * m/pyrmips.h:
17328 * m/sh3el.h:
17329 * m/sps7.h:
17330 * m/sr2k.h:
17331 * m/stride.h:
17332 * m/sun1.h:
17333 * m/sun2.h:
17334 * m/sun3-68881.h:
17335 * m/sun3-fpa.h:
17336 * m/sun3-soft.h:
17337 * m/sun3.h:
17338 * m/sun386.h:
17339 * m/symmetry.h:
17340 * m/tad68k.h:
17341 * m/tahoe.h:
17342 * m/targon31.h:
17343 * m/tek4300.h:
17344 * m/tekxd88.h:
17345 * m/tower32.h:
17346 * m/tower32v3.h:
17347 * m/ustation.h:
17348 * m/wicat.h:
17349 * m/xps100.h:
17350 * s/cxux.h:
17351 * s/cxux7.h:
17352 * s/dgux.h:
17353 * s/dgux4.h:
17354 * s/dgux5-4-3.h:
17355 * s/dgux5-4r2.h:
17356 * s/esix.h:
17357 * s/esix5r4.h:
17358 * s/hiuxmpp.h:
17359 * s/hiuxwe2.h:
17360 * s/iris3-5.h:
17361 * s/iris3-6.h:
17362 * s/isc2-2.h:
17363 * s/isc3-0.h:
17364 * s/isc4-0.h:
17365 * s/isc4-1.h:
17366 * s/newsos5.h:
17367 * s/newsos6.h:
17368 * s/osf1.h:
17369 * s/osf5-0.h:
17370 * s/riscix1-1.h:
17371 * s/riscix12.h:
17372 * s/sco4.h:
17373 * s/sco5.h:
17374 * s/sunos4-0.h:
17375 * s/sunos4-1.h:
17376 * s/sunos413.h:
17377 * s/sunos4shr.h:
17378 * s/umax.h:
17379 * s/unipl5-2.h:
17380 * s/xenix.h:
17381 * cxux-crt0.s:
17382 * unexapollo.c:
17383 * unexconvex.c:
17384 * unexenix.c:
17385 * unexsni.c: Remove files for systems no longer supported.
17386
17387 * m/intel386.h: Remove references to unsupported systems.
17388
17389 * w32.c (get_emacs_configuration): Remove reference to i860.
17390
17391 * sysdep.c: Remove dead code.
17392
17393 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17394
17395 * s/rtu.h:
17396 * m/masscomp.h: Remove files. Platform is obsolete.
17397
17398 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
17399
17400 * dbusbind.c (Fdbus_method_return): New function.
17401 (xd_read_message): Add the serial number to the event.
17402 (Fdbus_register_method): Activate the function.
17403
17404 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17405
17406 * keyboard.c (read_key_sequence): Fix typo.
17407
17408 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
17409
17410 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17411 (xd_signature, xd_append_arg): Handle element type detection for
17412 empty arrays.
17413 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17414 SDATA () calls; this must be solved more general.
17415 (Fdbus_register_signal): Use SBYTES instead of strlen.
17416
17417 2008-01-03 Magnus Henoch <magnus@zemdatav>
17418
17419 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17420 unsigned int for byte values (necessary for big-endian platform).
17421 (Fdbus_call_method): Handle the case of no returned arguments.
17422
17423 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17424
17425 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17426
17427 2007-12-31 Magnus Henoch <mange@freemail.hu>
17428
17429 * dbusbind.c (xd_signature): Signature of variant is just "v".
17430
17431 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
17432
17433 * dbusbind.c: Fix several errors and compiler warnings.
17434 Reported by Tom Tromey <tromey@redhat.com>.
17435 (XD_ERROR, XD_DEBUG_MESSAGE)
17436 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17437 (xd_append_arg): Part for basic D-Bus types rewritten.
17438 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17439 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17440 appropriate.
17441 (xd_read_message): Return Qnil. Don't signal an error; it is not
17442 useful during event reading.
17443 (Fdbus_register_signal): Signal an error if the check for
17444 FUNCTIONP fails.
17445 (Fdbus_register_method): New function. The implementation is not
17446 complete, the call of the function signals an error therefore.
17447 (Fdbus_unregister_object): New function, renamed from
17448 Fdbus_unregister_signal. The initial check signals an error, if
17449 the object is not well formed.
17450
17451 2007-12-30 Richard Stallman <rms@gnu.org>
17452
17453 * textprop.c (get_char_property_and_overlay):
17454 Signal error if POSITION is out of range in a buffer.
17455
17456 2007-12-29 Martin Rudalics <rudalics@gmx.at>
17457
17458 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17459 because the original parameters are in pure storage now.
17460
17461 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17462
17463 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17464
17465 2007-12-22 Eli Zaretskii <eliz@gnu.org>
17466
17467 * callint.c (syms_of_callint) <command-history>: Add reference to
17468 history-length in the doc string.
17469
17470 2007-12-17 Jason Rumney <jasonr@gnu.org>
17471
17472 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17473 before passing as wParam.
17474
17475 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
17476
17477 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17478 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17479 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17480 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17481 as number.
17482 (Fdbus_call_method): Fix docstring.
17483
17484 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
17485
17486 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17487 New macros.
17488 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17489 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17490 Simplify.
17491 (xd_signature): New function.
17492 (xd_append_arg): Compute also signatures. Major rewrite.
17493 (xd_retrieve_arg): Make debug messages friendly.
17494 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17495 Check for signatures of arguments.
17496
17497 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
17498
17499 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17500 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17501 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17502 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17503 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17504 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17505 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17506 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17507 (xd_retrieve_value): Remove. Functionality included in ...
17508 (xd_append_arg): New function.
17509 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17510
17511 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
17512
17513 * dbusbind.c (top): Include <stdio.h>.
17514 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17515 dbus_message_new_method_call and dbus_message_new_signal.
17516 (Fdbus_register_signal): Rename unique_name to uname.
17517 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17518 non-existing unique name. Fix typos in matching rule. Return an
17519 object which is useful in Fdbus_unregister_signal.
17520 (Fdbus_unregister_signal): Reimplementation, in order to remove
17521 only the corresponding entry.
17522 (Vdbus_registered_functions_table): Change the order of entries.
17523 Apply these changes in xd_read_message and Fdbus_register_signal.
17524
17525 2007-12-16 Andreas Schwab <schwab@suse.de>
17526
17527 * fileio.c (Finsert_file_contents): Fix overflow check to not
17528 depend on undefined integer overflow.
17529
17530 2007-12-14 Jason Rumney <jasonr@gnu.org>
17531
17532 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17533 for characters above 127.
17534
17535 2007-12-13 Jason Rumney <jasonr@gnu.org>
17536
17537 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17538 before dereferencing array.
17539 (lookup_vk_code): Remove zero comparison.
17540
17541 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
17542
17543 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17544 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17545 Use `unsigned int' instead of `uint'.
17546 (xd_read_message, Fdbus_register_signal): Split expressions into
17547 multiple lines before operators "&&" and "||", according to the
17548 GNU Coding Standards.
17549
17550 2007-12-14 Eli Zaretskii <eliz@gnu.org>
17551
17552 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17553
17554 2007-12-12 Juri Linkov <juri@jurta.org>
17555
17556 * buffer.c (Frename_buffer): In interactive spec replace
17557 `read-buffer' with `read-string' that uses `buffer-name-history'
17558 as history, and the current buffer's name as default.
17559
17560 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17561
17562 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17563 manipulating the backtrace manually.
17564 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17565 (struct backtrace, backtrace_list): Remove.
17566 (command_loop_1): Remove dead var `no_direct'.
17567
17568 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17569 preserve non-built-in buffer-local variables.
17570 (Fkill_all_local_variables): Don't re-create&re-set permanent
17571 buffer-local variables.
17572
17573 2007-12-09 Juri Linkov <juri@jurta.org>
17574
17575 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17576 Lisp code that uses `read-buffer' with current buffer as default.
17577
17578 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
17579
17580 * dbusbind.c (xd_read_message): Generate an event for every
17581 registered handler. There might be several handlers registered
17582 for the same signal.
17583 (Fdbus_register_signal): Don't overwrite a registration for the
17584 same signal. Add a new registration if handlers are different.
17585 (Vdbus_registered_functions_table): Rework doc string.
17586
17587 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
17588
17589 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17590 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17591 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17592 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17593 Unify argument lists.
17594 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17595 arguments and hash table keys. Use unique name for service.
17596 (Fdbus_unregister_signal): Remove checks.
17597 (Vdbus_registered_functions_table): Fix doc string.
17598
17599 2007-12-05 Magnus Henoch <mange@freemail.hu>
17600
17601 * process.c (make_process): Initialize pty_flag to 0.
17602
17603 2007-12-05 Jason Rumney <jasonr@gnu.org>
17604
17605 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17606 specified XBMs.
17607
17608 2007-12-05 Richard Stallman <rms@gnu.org>
17609
17610 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17611
17612 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17613
17614 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17615 New variable.
17616 (mac_try_close_socket) [MAC_OSX]: New function.
17617 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17618 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17619
17620 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17621 Use mac_try_close_socket.
17622
17623 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17624
17625 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17626 reloc_base.
17627 (copy_dysymtab): Compute relocation base here.
17628 (rebase_reloc_address) [__ppc64__]: New function.
17629 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17630 changed.
17631
17632 2007-12-05 Jason Rumney <jasonr@gnu.org>
17633
17634 * w32proc.c (sys_spawnve): Quote args with wildcards.
17635
17636 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17637
17638 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17639 __objc_* sections.
17640 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17641
17642 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
17643
17644 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17645 Move check for Vdbus_registered_functions_table to
17646 xd_read_queued_messages.
17647 (xd_read_queued_messages): Protect xd_read_message calls by
17648 internal_condition_case_1.
17649
17650 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
17651
17652 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17653 Qdbus_system_bus and Qdbus_session_bus, respectively.
17654 (Vdbus_intern_symbols): Remove.
17655 (Vdbus_registered_functions_table): New hash table.
17656 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17657 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17658 Rewrite in order to manage registered functions by hash table
17659 Vdbus_registered_functions_table.
17660
17661 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17662
17663 * xterm.c: Update URL to Window Manager Specification in comment.
17664
17665 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
17666
17667 * config.in (HAVE_DBUS): Add.
17668
17669 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17670 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17671 (obj): Add $(DBUS_OBJ).
17672 (LIBES): Add $(DBUS_LIBS).
17673 (dbusbind.o): New target.
17674
17675 * dbusbind.c: New file.
17676
17677 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17678
17679 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17680 (Qdbus_event): New Lisp symbol.
17681 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17682 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
17683 (keys_of_keyboard): Define dbus-event.
17684
17685 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17686
17687 2007-12-01 Richard Stallman <rms@gnu.org>
17688
17689 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17690
17691 2007-11-30 Jason Rumney <jasonr@gnu.org>
17692
17693 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17694 (w32con_reset_terminal_modes): Clear screen buffer.
17695 (w32_face_attributes): Don't use color indexes that are out of range.
17696 Only reverse the default colors.
17697
17698 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17699 WINDOWSNT.
17700
17701 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17702
17703 2007-11-29 Jason Rumney <jasonr@gnu.org>
17704
17705 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17706 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17707 if the terminal colors are initialized.
17708 (unspecified_fg, unspecified_bg): Remove unused declarations.
17709
17710 2007-11-29 Andreas Schwab <schwab@suse.de>
17711
17712 * keyboard.c (apply_modifiers): Fix typo.
17713
17714 2007-11-29 Richard Stallman <rms@gnu.org>
17715
17716 * keymap.c (Fcurrent_local_map): Doc fix.
17717
17718 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17719
17720 * s/gnu-kfreebsd.h: New file.
17721
17722 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17723
17724 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17725 Don't cast redundantly.
17726
17727 * keyboard.c (KEY_TO_CHAR): New macro.
17728 (parse_modifiers, apply_modifiers): Accept integer arguments.
17729 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17730 for chars and symbol keys.
17731 After doing such remapping, apply function-key-map again.
17732
17733 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17734
17735 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17736 compiled anymore.
17737
17738 2007-11-26 Andreas Schwab <schwab@suse.de>
17739
17740 * process.c (list_processes_1): Fix indentation level of the
17741 command column.
17742
17743 2007-11-23 Andreas Schwab <schwab@suse.de>
17744
17745 * editfns.c (Fformat): Handle %c specially since it requires the
17746 argument to be of type int.
17747
17748 2007-11-23 Markus Triska <markus.triska@gmx.at>
17749
17750 * emacs.c (main): Call init_editfns before init_process, since
17751 init_process sets Vprocess_connection_type depending on OS release.
17752
17753 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17754
17755 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17756 (find_symbol_value): Use do_symval_forwarding.
17757
17758 * data.c (set_internal): Set the value in the `cons-cell' (for
17759 Buffer_Local_values) not only for frame-local variables.
17760
17761 2007-11-22 Andreas Schwab <schwab@suse.de>
17762
17763 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17764 values to sprintf.
17765 * keymap.c (Fsingle_key_description): Likewise.
17766 * print.c (print_object): Likewise.
17767
17768 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17769
17770 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17771 file for image is nil.
17772
17773 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17774
17775 * term.c: Include stdarg.h.
17776 (fatal): Implement using varargs.
17777 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17778
17779 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17780
17781 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17782 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17783 Update call to buffer_slot_type_mismatch.
17784 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17785 (buffer_slot_type_mismatch): Update.
17786 * buffer.c (buffer_local_types): Remove.
17787 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17788 (defvar_per_buffer): Set the type in the buffer_objfwd.
17789
17790 2007-11-21 Jason Rumney <jasonr@gnu.org>
17791
17792 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17793 CreateFileMapping returns NULL on failure.
17794
17795 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17796
17797 * search.c (Fset_match_data): Remove the `evaporate' feature.
17798 (unwind_set_match_data): Don't use the `evaporate' feature.
17799
17800 2007-11-21 Jason Rumney <jasonr@gnu.org>
17801
17802 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17803
17804 * w32console.c (w32con_write_glyphs): Remove unused variables.
17805
17806 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17807
17808 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17809
17810 * s/darwin.h (MULTI_KBOARD): Remove.
17811
17812 * macfns.c (x_create_tip_frame, Fx_create_frame)
17813 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17814
17815 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17816
17817 * buffer.c (Fbuffer_local_value): Remove redundant test.
17818 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17819 than in `current-buffer' to match the comment.
17820 Do the swap using swap_in_global_binding.
17821
17822 * data.c (store_symval_forwarding, set_internal):
17823 * eval.c (specbind): Remove dead code.
17824
17825 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17826 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17827 Since we do not want to see internal Lisp_*fwd objects here.
17828
17829 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17830
17831 * sysdep.c (init_system_name): Use getaddrinfo if available.
17832
17833 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17834 (x_scroll_bar_note_movement): start, end, with, height in struct
17835 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17836
17837 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17838
17839 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17840
17841 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17842
17843 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17844 This undoes Richard's change of 14-Oct-2002.
17845
17846 * alloc.c (allocate_other_vector):
17847 * lisp.h (allocate_other_vector): Remove.
17848
17849 * window.c (struct save_window_data): Move non-lisp data to the end
17850 and make it `int' rather than Lisp_Object.
17851 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17852 Done wrap/unwrap integer values.
17853 (Fset_window_configuration, compare_window_configurations):
17854 Update use of fields to their new types.
17855
17856 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17857 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17858 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17859 (SET_SCROLL_BAR_X_WINDOW): Remove.
17860 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17861 Access the new x_window field directly.
17862 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17863 Don't wrap/unwrap integers into Lisp_Objects.
17864 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17865 (x_scroll_bar_report_motion):
17866 Don't wrap/unwrap integers into Lisp_Objects.
17867 (x_term_init): Use SDATA.
17868 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17869 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17870 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17871 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17872 * xfns.c (x_set_background_color):
17873 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17874 Access the new x_window field directly.
17875
17876 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17877 (allocate_pseudovector): Make non-static.
17878
17879 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17880 (allocate_pseudovector): Declare.
17881 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17882
17883 2007-11-15 Andreas Schwab <schwab@suse.de>
17884
17885 * editfns.c (Fformat): Correctly format EMACS_INT values.
17886 Also take precision into account when formatting an integer.
17887
17888 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17889
17890 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17891
17892 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17893 (syms_of_keyboard): Defsubr it.
17894
17895 * data.c (swap_in_global_binding): Fix longstanding bug where
17896 store_symval_forwarding was not called with the right second argument,
17897 thus causing objfwd-ing from being dropped.
17898
17899 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
17900
17901 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17902 (Fx_display_pixel_height, Fx_display_planes)
17903 (Fx_display_color_cells, Fx_server_max_request_size)
17904 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17905 (Fx_display_visual_class, Fx_display_save_under):
17906 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17907 (Fx_display_pixel_height, Fx_display_planes)
17908 (Fx_display_color_cells, Fx_server_max_request_size)
17909 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17910 (Fx_display_mm_height, Fx_display_mm_width)
17911 (Fx_display_backing_store, Fx_display_visual_class)
17912 (Fw32_select_font, Fx_display_save_under):
17913 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17914 (Fx_display_pixel_height, Fx_display_planes)
17915 (Fx_display_color_cells, Fx_server_max_request_size)
17916 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17917 (Fx_display_save_under): Fix typos in docstrings.
17918
17919 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
17920
17921 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17922 corresponding to deleted entries; they are an implementation detail.
17923 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17924 Remove variables.
17925 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17926 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17927 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17928 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17929 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17930 (Fw32_define_rgb_color, Fw32_load_color_file)
17931 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17932 Fix typos in docstrings.
17933 (Fx_server_version): Reflow docstring.
17934 (Fw32_shell_execute): Doc fixes.
17935
17936 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
17937
17938 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17939 if w32_parse_hot_key returned nil.
17940
17941 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17942
17943 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17944
17945 2007-11-09 Jason Rumney <jasonr@gnu.org>
17946
17947 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17948
17949 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17950
17951 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17952 Remove W32_SCROLL_BAR_CLICK_EVENT.
17953
17954 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17955 Add MULTIMEDIA_KEY_EVENT.
17956
17957 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17958 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17959 (make_lispy_event) [WINDOWSNT]: Use it to translate
17960 MULTIMEDIA_KEY_EVENT.
17961
17962 * w32term.h (WM_APPCOMMAND): Define if not already.
17963 (GET_APPCOMMAND_LPARAM): Likewise.
17964
17965 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17966 WM_APPCOMMAND.
17967
17968 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17969 (syms_of_w32fns): Export and initialize it.
17970 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17971
17972 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
17973
17974 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17975 twice.
17976
17977 * xdisp.c (handle_face_prop): Fix last change.
17978
17979 2007-11-09 Richard Stallman <rms@gnu.org>
17980
17981 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17982 not just for after-strings and before-strings.
17983 Call face_for_overlay_string and pass the overlay to it.
17984 (handle_display_prop): Determine whether property came from an overlay.
17985 Pass OVERLAY arg to handle_single_display_spec.
17986 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17987 (load_overlay_strings): Fill in it->string_overlays.
17988 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17989
17990 * xfaces.c (face_for_overlay_string): Function renamed from
17991 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17992
17993 * dispextern.h (struct it): New elt string_overlays.
17994 New elt from_overlay, also in stack.
17995 Rearrange a few elements.
17996 (face_for_overlay_string): Decl renamed from
17997 face_at_buffer_position_no_overlays, and add argument.
17998
17999 2007-11-09 Richard Stallman <rms@gnu.org>
18000
18001 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18002 to get the base face for an overlay string.
18003
18004 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18005
18006 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18007
18008 * xdisp.c (handle_stop): Move some code out of loop.
18009
18010 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18011
18012 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18013 Fix conversion from Lisp object to ATSUFontID.
18014
18015 2007-11-09 Jason Rumney <jasonr@gnu.org>
18016
18017 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18018
18019 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18020
18021 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18022 Don't assume regions are aligned to page boundary.
18023 (print_load_command_name): Add LC_UUID if defined.
18024
18025 2007-11-09 Richard Stallman <rms@gnu.org>
18026
18027 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18028
18029 2007-11-07 Jason Rumney <jasonr@gnu.org>
18030
18031 * s/windows95.h: Remove.
18032
18033 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18034
18035 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18036 abort with a message on unhandled store_type values.
18037
18038 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18039
18040 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18041 Remove HAVE_X11R5 and HAVE_X11R4.
18042
18043 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18044
18045 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18046
18047 2007-11-01 Johan Bockgård <bojohan@gnu.org>
18048
18049 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18050 Don't set s->stippled_p here, since it has already been set by
18051 x_set_glyph_string_gc from x_draw_glyph_string.
18052
18053 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18054
18055 * sunfns.c: Remove file.
18056
18057 * m/sun386.h:
18058 * m/sun2.h:
18059 * m/sparc.h: Remove Sun windows code.
18060
18061 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18062
18063 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18064 (init_keyboard): Set current_kboard's window-system to nil.
18065 (tty_read_avail_input): Typo.
18066 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18067
18068 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18069
18070 * s/usg5-4.h:
18071 * s/usg5-3.h:
18072 * s/ptx.h:
18073 * m/is386.h:
18074 * m/ibmps2-aix.h:
18075 * Makefile.in: Remove all mentions of X10.
18076
18077 * dispnew.c (syms_of_display): Don't mention version 10.
18078
18079 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
18080
18081 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18082 ($(BLD)/abbrev.$(O)): Remove.
18083
18084 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18085
18086 Rewrite abbrev.c in Elisp.
18087 * image.c (Qcount): Don't declare as extern.
18088 (syms_of_image): Initialize and staticpro `Qcount'.
18089 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18090 * emacs.c (main): Don't call syms_of_abbrev.
18091 * Makefile.in (obj): Remove abbrev.o.
18092 (abbrev.o): Remove.
18093 * abbrev.c: Remove.
18094
18095 2007-10-26 Martin Rudalics <rudalics@gmx.at>
18096
18097 * window.c (window_min_size_2): Don't count header-line.
18098
18099 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18100
18101 * frame.h (struct frame): Move all bit fields after the first bit
18102 field to take advantage of the available space. Group all the
18103 chars together to reduce wasted space due to padding.
18104
18105 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
18106
18107 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18108
18109 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18110 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18111 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18112 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18113 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18114 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18115 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18116 (last_marked, mark_object_loop_halt): Make static.
18117
18118 * frame.c (syms_of_frame) <delete-frame-functions>:
18119 Fix typo in docstring.
18120
18121 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
18122
18123 * w32.c (init_environment): Fix tiny memory leak.
18124 (w32_get_resource): Remove unused variable `ok'.
18125
18126 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18127
18128 Make `window-system' into a keyboard-local variable (rather than
18129 frame-local as done originally by multi-tty).
18130
18131 * keyboard.h (struct kboard): Add Vwindow_system.
18132 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18133 (mark_kboards): Mark Vwindow_system.
18134
18135 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18136 (init_display): Don't set the obsolete `window-system' frame-param.
18137
18138 * xterm.c (x_term_init):
18139 * w32term.c (w32_create_terminal):
18140 * term.c (init_tty): Set Vwindow_system.
18141 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18142 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18143
18144 * xfns.c (Fx_create_frame, x_create_tip_frame):
18145 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18146 * macfns.c (Fx_create_frame):
18147 Don't set the obsolete `window-system' frame-param.
18148
18149 * frame.h (Qwindow_system): Remove.
18150 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18151 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18152
18153 2007-10-24 Richard Stallman <rms@gnu.org>
18154
18155 * frame.c (x_figure_window_size): For fullscreen case,
18156 set USPosition | PPosition without clobbering rest of window_prompting.
18157
18158 * keyboard.c (Fcurrent_idle_time): Doc fix.
18159
18160 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18161
18162 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18163
18164 * process.c (unwind_request_sigio): Only define if __ultrix__.
18165
18166 * callproc.c (child_setup): Remove spurious *.
18167
18168 * lisp.h (Fget_text_property): Declare.
18169 (have_menus_p): Declare it here rather than in sys-dep header files.
18170 * macterm.h (have_menus_p):
18171 * msdos.h (have_menus_p):
18172 * xterm.h (have_menus_p): Remove.
18173
18174 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18175 (Fmake_variable_frame_local): Just check the variable's const-ness
18176 rather than checking nil or t.
18177
18178 2007-10-22 Jason Rumney <jasonr@gnu.org>
18179
18180 * w32fns.c: Include math.h.
18181 (w32_abort): Declaration moved to nt/config.nt.
18182
18183 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18184 (abort): Redefinition moved to nt/config.nt.
18185
18186 * m/windowsnt.h: Remove.
18187
18188 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
18189
18190 * emacs.c (Fdump_emacs): Fix typo in message.
18191 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18192 <installation-directory>: Reflow docstring.
18193
18194 2007-10-22 Juri Linkov <juri@jurta.org>
18195
18196 * minibuf.c: Allow minibuffer default to be a list of default values.
18197 With empty input use the first element of this list as returned default.
18198 (string_to_object)
18199 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18200 (read_minibuf): If defalt is cons, set histstring to its car.
18201 (Fread_string): If default_value is cons, set val to its car.
18202 (Fread_buffer): If def is cons, use its car.
18203 (Fcompleting_read): If defalt is cons, set val to its car.
18204
18205 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
18206
18207 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18208
18209 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
18210
18211 * doc.c (Fdocumentation): Check for advice in all cases.
18212
18213 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
18214
18215 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18216
18217 2007-10-19 Richard Stallman <rms@gnu.org>
18218
18219 * doc.c (Fdocumentation): Check for and handle an advised function.
18220
18221 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
18222
18223 * process.c (Fset_process_filter): Doc fix.
18224
18225 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18226
18227 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18228 which caused key-translation-map to applied repeatedly (thus breaking
18229 double-mode).
18230
18231 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18232
18233 * xselect.c (x_own_selection, x_handle_selection_clear)
18234 (x_clear_frame_selections):
18235 * w32menu.c (list_of_panes, list_of_items):
18236 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18237 * textprop.c (validate_plist, interval_has_all_properties)
18238 (interval_has_some_properties, interval_has_some_properties_list)
18239 (add_properties, text_property_list):
18240 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18241 * minibuf.c (Fassoc_string):
18242 * macselect.c (x_own_selection, x_clear_frame_selections)
18243 (Fx_disown_selection_internal):
18244 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18245 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18246
18247 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
18248
18249 * process.c: Link to libs for calling res_init() if available.
18250 (Fmake_network_process): Call res_init() before getaddrinfo or
18251 gethostbyname, if possible.
18252
18253 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18254
18255 * lread.c (read1): Set pvectype for char_tables.
18256
18257 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18258 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18259 Add type checks.
18260 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18261
18262 * alloc.c (free_misc): Use XMISCTYPE.
18263 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18264
18265 2007-10-17 Glenn Morris <rgm@gnu.org>
18266
18267 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18268 (syms_of_minibuf): Add Qcompletion_ignore_case.
18269 * dired.c (Qcompletion_ignore_case): Change to external.
18270 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18271 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18272 (Fread_file_name): Use it rather than intern'ing.
18273
18274 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18275 (Fread_coding_system): Ignore case of user input.
18276
18277 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18278
18279 * xdisp.c (handle_display_prop): Ignore display specs after
18280 replacing one when string text is being replaced.
18281 (handle_single_display_spec): Pretend as if characters with display
18282 property haven't been consumed only when buffer text is being replaced.
18283
18284 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18285
18286 * xfns.c (Fx_create_frame, Fx_display_list):
18287 * window.c (window_fixed_size_p, enlarge_window)
18288 (shrink_window_lowest_first):
18289 * macterm.c (init_font_name_table):
18290 * macfns.c (Fx_create_frame, Fx_display_list):
18291 * lread.c (close_load_descs):
18292 * keyboard.c (read_char_x_menu_prompt):
18293 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18294 * coding.c (code_convert_region_unwind): Test the type of an object
18295 rather than just !NILP before extracting data from it.
18296
18297 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18298
18299 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18300 (XMISCANY): New macro.
18301 (XMISCTYPE): Use it.
18302 (struct Lisp_Misc_Any): New type.
18303 (union Lisp_Misc): Use it.
18304 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18305 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18306 (find_symbol_value, set_internal, default_value, Fset_default)
18307 (Fmake_variable_buffer_local, Fmake_local_variable)
18308 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18309 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18310 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18311 * alloc.c (allocate_buffer): Set the size and tag.
18312 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18313 Use XMISCANY.
18314 (die): Follow the GNU convention for error messages.
18315 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18316 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18317 tag any more.
18318 (set_buffer_internal_1):
18319 * frame.c (store_frame_param):
18320 * eval.c (specbind):
18321 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18322
18323 * doc.c (Fsnarf_documentation): Simplify.
18324
18325 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18326
18327 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18328 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18329
18330 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18331
18332 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18333
18334 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18335
18336 * eval.c (do_autoload): Don't save autoloads.
18337
18338 * data.c (Ffset): Save autoload of the function being set.
18339
18340 2007-10-07 John Paul Wallington <jpw@pobox.com>
18341
18342 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18343 parameter before setting up faces.
18344
18345 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18346
18347 * ccl.c (Fregister_code_conversion_map):
18348 * keyboard.c (append_tool_bar_item): Reformat last change.
18349
18350 * lisp.h (eabs): Rename from `abs'. All callers changed.
18351
18352 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18353
18354 * buffer.c (add_overlay_mod_hooklist):
18355 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18356 * fontset.c (make_fontset):
18357 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18358 (append_tool_bar_item):
18359 * macmenu.c (grow_menu_items):
18360 * w32menu.c (grow_menu_items):
18361 * xmenu.c (grow_menu_items): Use larger_vector.
18362
18363 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18364
18365 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18366 selected frame'' on MSDOS).
18367
18368 2007-10-12 Martin Rudalics <rudalics@gmx.at>
18369
18370 * frame.c (Qexplicit_name): New variable.
18371 (x_report_frame_params): Report it in parameter alist.
18372 (syms_of_frame): Intern and staticpro it.
18373
18374 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18375
18376 * macfns.c (x_create_tip_frame): Set terminal for frame.
18377
18378 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18379
18380 * frame.c (Qenvironment): Remove.
18381 (syms_of_frame) <Qenvironment>: Don't initialize.
18382 (Fdelete_frame): Don't treat the `environment' param specially.
18383 * frame.h (Qenvironment): Don't declare.
18384 * callproc.c (set_initial_environment): Don't set unused frame param.
18385
18386 * frame.c (Fframe_with_environment): Remove.
18387 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18388
18389 * lisp.h (Fframe_with_environment): Don't declare.
18390
18391 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
18392
18393 * indent.c (indent_tabs_mode, last_known_column)
18394 (last_known_column_modified): Make static.
18395 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18396
18397 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18398
18399 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18400
18401 2007-10-09 Jason Rumney <jasonr@gnu.org>
18402
18403 * w32term.c (x_set_window_size): Disable code that attempts to tell
18404 Lisp code about a size change before it actually happens.
18405
18406 2007-10-09 Richard Stallman <rms@gnu.org>
18407
18408 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18409 return HANDLED_RETURN.
18410
18411 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18412
18413 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18414 when there's an unread command event.
18415
18416 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18417 window autoselection act appropriately when leaving selected frame.
18418 (syms_of_frame): Initialize focus_follows_mouse.
18419 * frame.h (focus_follows_mouse): Extern it.
18420 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18421 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18422 * msdos.c (dos_rawgetc): Likewise.
18423 * w32term.c (w32_read_socket): Likewise.
18424 * xterm.c (handle_one_xevent): Likewise.
18425 * xdisp.c (syms_of_xdisp): In doc-string of
18426 mouse-autoselect-window mention focus-follows-mouse.
18427
18428 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18429
18430 * macterm.c (mac_load_query_font): Fix missing return value.
18431 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18432 Add BLOCK_INPUT.
18433
18434 2007-10-08 Richard Stallman <rms@gnu.org>
18435
18436 * xdisp.c (get_window_cursor_type): Implement documented behavior
18437 for cursor-in-non-selected-windows = t.
18438
18439 2007-10-08 Jason Rumney <jasonr@gnu.org>
18440
18441 * w32.c (w32_get_resource): Always close registry keys.
18442
18443 2007-10-08 Jason Rumney <jasonr@gnu.org>
18444
18445 * makefile.w32-in (LIBS): Add COMCTL32.
18446
18447 * w32fns.c (globals_of_w32fns): Init common controls.
18448
18449 2007-10-08 Richard Stallman <rms@gnu.org>
18450
18451 * image.c (our_memory_buffer): Rename from omfib_buffer.
18452
18453 2007-10-08 Richard Stallman <rms@gnu.org>
18454
18455 * buffer.c (Foverlays_at): Doc fix.
18456
18457 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18458
18459 * fns.c (Fplist_put): Preserve uneven tail data.
18460
18461 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18462
18463 * termhooks.h (enum event_kind): Remove trailing comma.
18464
18465 * frame.h (enum): Remove trailing comma.
18466
18467 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18468
18469 * w32proc.c (delete_child): Don't terminate threads of zombies.
18470
18471 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18472
18473 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18474
18475 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18476 last-repeatable-command.
18477 (init_kboard): Initialize Vlast_repeatable_command.
18478 (command_loop_1): Set it to real_this_command unless that was
18479 bound to an input event.
18480 (mark_kboards): Mark it.
18481
18482 2007-10-08 Richard Stallman <rms@gnu.org>
18483
18484 * eval.c (condition-case): Doc fix.
18485
18486 2007-10-08 Masatake YAMATO <jet@gyve.org>
18487
18488 * xfaces.c (tty_supports_face_attributes_p): Fix code
18489 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18490 was copied and not edited.
18491
18492 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18493
18494 Add new `input-decode-map' keymap and use it for terminal
18495 escape sequences.
18496 * keyboard.h (struct kboard): Add Vinput_decode_map.
18497 Remove Vlocal_key_translation_map.
18498 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18499 (init_kboard): Init input-decode-map.
18500 Replace local-key-translation-map back with key-translation-map.
18501 (syms_of_keyboard): Declare input-decode-map.
18502 Remove local-key-translation-map. Update docstrings.
18503 (mark_kboards): Mark Vinput_decode_map.
18504 Don't mark Vlocal_key_translation_map.
18505 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18506 Replace local-key-translation-map back with key-translation-map.
18507 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18508 Bind in input-decode-map rather than function-key-map.
18509
18510 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18511 This was made redundant by the previous introduction of XSETPVECTYPE.
18512
18513 2007-10-09 Richard Stallman <rms@gnu.org>
18514
18515 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18516
18517 2007-09-29 Richard Stallman <rms@gnu.org>
18518
18519 * eval.c (internal_condition_case_2, internal_condition_case_1)
18520 (internal_condition_case): Reenable abort if x_catching_errors ()
18521 to see if that really happens and why.
18522
18523 2007-10-06 Andreas Schwab <schwab@suse.de>
18524
18525 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18526
18527 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
18528
18529 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18530
18531 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18532
18533 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18534
18535 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18536
18537 * window.h (struct window):
18538 * window.c (struct save_window_data, struct saved_window):
18539 * termhooks.h (struct terminal):
18540 * process.h (struct Lisp_Process):
18541 * frame.h (struct frame):
18542 * buffer.h (struct buffer):
18543 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18544 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18545 The size field of (pseudo)vectors is now unsigned.
18546 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18547
18548 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18549 Turn `count' into an integer.
18550
18551 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18552 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18553 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18554 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18555 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18556
18557 * alloc.c (allocate_pseudovector): New fun.
18558 (ALLOCATE_PSEUDOVECTOR): New macro.
18559 (allocate_window, allocate_terminal, allocate_frame)
18560 (allocate_process): Use it.
18561 (mark_vectorlike): New function.
18562 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18563 (mark_terminals): Use it.
18564 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18565 (Fmake_byte_code): Use XSETPVECTYPE.
18566
18567 * frame.c (Fframe_parameters): Minor simplification.
18568
18569 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18570
18571 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18572
18573 * buffer.c (Fget_buffer_create, init_buffer_once):
18574 * lread.c (defsubr):
18575 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18576
18577 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18578 defined differently in the m/*.h files.
18579 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18580 (XSETPVECTYPE): New macro.
18581 (XSETPSEUDOVECTOR): Use it.
18582
18583 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18584 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18585
18586 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18587 * lread.c (defvar_per_buffer):
18588 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18589
18590 * window.c (candidate_window_p): Only consider as visible frames that
18591 are on the same terminal.
18592
18593 * m/ibms390x.h (MARKBIT): Remove unused macro.
18594
18595 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
18596
18597 * lread.c (Fload): Fix typo in docstring.
18598
18599 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18600
18601 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18602 of a non-zero value can't yield zero.
18603
18604 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18605
18606 * term.c (term_clear_mouse_face, term_mouse_highlight)
18607 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18608
18609 * print.c (safe_debug_print): Use XHASH.
18610
18611 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18612 Lisp elements such as tags.
18613 (XHASH): New macro.
18614 (EQ): Use it.
18615 (SREF, SSET, STRING_COPYIN): Use SDATA.
18616 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18617
18618 * alloc.c (mark_terminal): Remove left-over declaration.
18619 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18620 (allocate_vectorlike): Remove type argument. Adjust callers.
18621 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18622 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18623
18624 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18625 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18626 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18627 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18628 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18629 Use them.
18630
18631 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18632 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18633 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18634
18635 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18636
18637 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18638 loaded by default.
18639
18640 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18641
18642 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18643 on this tty.
18644 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18645
18646 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18647 Update all users.
18648 (handle_one_term_event): Use Gpm_DrawPointer.
18649 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18650 Signal errors instead of returning nil. Always return nil.
18651 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18652 Make it a noop if gpm-mouse was not activated.
18653 (syms_of_term): Update names.
18654
18655 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18656
18657 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18658 (init_sys_modes): Check that gpm_tty is the current tty.
18659
18660 * alloc.c (allocate_terminal): Set the vector size to only count the
18661 lisp fields. Initialize those to nil.
18662 (mark_object): Don't treat terminals specially.
18663 (mark_terminal): Remove.
18664 (mark_terminals): Use mark_object instead.
18665
18666 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18667 the GC to the beginning.
18668
18669 * indent.h:
18670 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18671
18672 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18673
18674 2007-09-25 Jason Rumney <jasonr@gnu.org>
18675
18676 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18677
18678 * w32console.c (create_w32cons_output): Remove.
18679
18680 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18681
18682 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18683 (reset_sys_modes): Use reset_terminal_modes_hook.
18684
18685 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18686
18687 * eval.c (do_autoload): Don't output any message.
18688
18689 2007-09-24 Juri Linkov <juri@jurta.org>
18690
18691 * emacs.c (standard_args): Change priority of "--no-splash"
18692 from 40 to 3. Add "--no-desktop" with the same priority.
18693
18694 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18695
18696 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18697 and optimize the case where they are all 1.
18698
18699 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
18700
18701 * lisp.h (abs): Define if not defined.
18702 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18703 Don't define `abs', since it's defined in lisp.h.
18704
18705 2007-09-22 Eli Zaretskii <eliz@gnu.org>
18706
18707 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18708 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18709 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18710 (init_tty): Use DEV_TTY instead of "/dev/tty".
18711 [WINDOWSNT]: No need to protect from NAME arg being null.
18712
18713 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18714
18715 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18716 up the tty state.
18717
18718 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18719
18720 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18721 (gpm_tty): Change its type.
18722 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18723 (gpm_tty): Change its type and initialize it.
18724 (Fterm_open_connection): Check the frame is indeed a tty.
18725 Use the new gpm_tty.
18726 (Fterm_close_connection): Use the new gpm_tty.
18727 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18728 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18729
18730 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
18731
18732 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18733 underline_color, to draw strike-through.
18734
18735 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18736
18737 * lisp.h (allocate_terminal): Declare.
18738
18739 * window.c (candidate_window_p): Consider frames that are being placed
18740 by the user as somewhere between visible and iconified.
18741 (window_loop): Prefer windows on the current frame.
18742 (Fselect_window): Move the use of select-frame to the beginning so we
18743 can just delegate all the work (it'll call us back anyway).
18744
18745 * frame.c (Qdisplay_environment_variable):
18746 * frame.h (Qdisplay_environment_variable): Delete.
18747
18748 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18749 of the first arg, since that value may be a union.
18750
18751 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18752 parameter rather than Qdisplay_environment_variable. If all else
18753 fails, look for DISPLAY in initial-environment.
18754
18755 2007-09-21 Glenn Morris <rgm@gnu.org>
18756
18757 * Makefile.in (emacstool): Remove target.
18758 (lisp, shortlisp): Remove termdev.elc.
18759
18760 2007-09-21 Markus Triska <markus.triska@gmx.at>
18761
18762 * xterm.c (x_delete_display): Compile session management conditionally.
18763
18764 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18765
18766 * callproc.c (getenv_internal_1): New function.
18767 (getenv_internal): Use it.
18768 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18769
18770 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18771 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18772 (Fset_terminal_parameter): Work with dead terminals as well.
18773 (Fmodify_terminal_parameters): Remove.
18774
18775 * terminal.c (get_terminal): Handle terminals.
18776 Make sure the terminal returned is live.
18777 (create_terminal): Use allocate_terminal.
18778 (mark_terminals): Move to alloc.c.
18779 (delete_terminal): Use terminal->name as liveness status.
18780 NULL out fields after freeing their contents.
18781 Don't deallocate the object.
18782 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18783 rather than an int.
18784 (Fterminal_live_p): Accept non-integer arguments.
18785 (Fterminal_list): Return terminal objects rather than an ints.
18786
18787 * alloc.c (enum mem_type): New member for `terminal' objects.
18788 (allocate_terminal): New function.
18789 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18790 Handle terminals.
18791 (mark_terminal): New fun.
18792 (mark_terminals): Move from terminal.c.
18793
18794 * term.c (get_tty_terminal): Don't treat output_initial specially.
18795 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18796 (delete_tty): Use terminal->name as liveness status.
18797
18798 * termhooks.h (struct terminal): Make it into a pseudovector.
18799 Remove `deleted' replaced by checking `name's nullness.
18800
18801 * print.c (print_object): Handle terminals.
18802
18803 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18804 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18805
18806 * frame.c (make_terminal_frame):
18807 * keyboard.c (tty_read_avail_input):
18808 * w32term.c (x_delete_terminal):
18809 * xfns.c (Fx_create_frame, x_create_tip_frame):
18810 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18811
18812 2007-09-20 Glenn Morris <rgm@gnu.org>
18813
18814 * process.c (Fmake_network_process): Doc fix.
18815
18816 2007-09-19 Jason Rumney <jasonr@gnu.org>
18817
18818 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18819
18820 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18821
18822 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18823 Fix a C warning regarding variable constness.
18824
18825 * xterm.c (handle_one_xevent): Fix a C warning.
18826
18827 2007-09-18 Jason Rumney <jasonr@gnu.org>
18828
18829 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18830
18831 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18832
18833 * gtkutil.c (gdpy_def): New variable.
18834 (xg_initialize): Initialize gdpy_def.
18835 (xg_display_close): If no other display exists, set gdpy_def to a
18836 new connection.
18837
18838 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18839
18840 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18841 when we have no file name for the icon.
18842 (xg_tool_bar_expose_callback): Remove.
18843 (xg_create_tool_bar): Don't connect expose signal to
18844 xg_tool_bar_expose_callback.
18845 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18846
18847 2007-09-16 Andreas Schwab <schwab@suse.de>
18848
18849 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18850 values instead of zapping them.
18851
18852 2007-09-14 Glenn Morris <rgm@gnu.org>
18853
18854 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18855 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18856 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18857 scope and rename to omfib_buffer for clarity.
18858 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18859
18860 2007-09-14 Kenichi Handa <handa@m17n.org>
18861
18862 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18863
18864 2007-09-13 Jason Rumney <jasonr@gnu.org>
18865
18866 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18867
18868 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18869
18870 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18871 (mac_term_init): Call here instead, passing rif.
18872
18873 2007-09-13 Glenn Morris <rgm@gnu.org>
18874
18875 * s/hpux.h: No longer define `static' as nothing.
18876
18877 2007-09-13 Johan Bockgård <bojohan@gnu.org>
18878
18879 * callint.c (Fcall_interactively): Remove unused var `fun'.
18880
18881 2007-09-12 Romain Francoise <romain@orebokech.com>
18882
18883 * window.c (prefer_window_split_horizontally, display_buffer):
18884 Revert 2007-09-08 change.
18885
18886 2007-09-12 Glenn Morris <rgm@gnu.org>
18887
18888 * alloca.c: Remove file.
18889 * Makefile.in (alloca): Do not undef.
18890 (allocaobj, alloca.o): Remove.
18891 (otherobj): Remove allocaobj.
18892 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18893 * regex.c (C_ALLOCA): Remove all references and code that was only
18894 used when this was defined.
18895 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18896 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18897 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18898
18899 * Makefile.in (SOURCES, unlock, relock): Delete.
18900
18901 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18902 (menu_grab_callback): All uses changed.
18903
18904 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18905 (x_reply_selection_request): All uses changed.
18906
18907 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18908
18909 * lread.c (load_warn_old_style_backquotes): Change message to look
18910 better when it appears in the middle of byte-compiler messages.
18911
18912 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18913
18914 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18915
18916 * xterm.c (x_create_terminal): Add comment.
18917
18918 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18919
18920 2007-09-10 Richard Stallman <rms@gnu.org>
18921
18922 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18923
18924 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18925
18926 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18927 (DEFUN): Document `intspec', use it instead of `prompt'.
18928
18929 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18930
18931 * data.c (Finteractive_form): If the interactive specification starts
18932 with a `(', use it as a Lisp form.
18933
18934 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18935 name and file modes.
18936
18937 * callint.c (Fcall_interactively): Comment fixes.
18938
18939 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18940
18941 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18942 and compiled functions.
18943
18944 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18945
18946 * window.c (prefer_window_split_horizontally): New variable.
18947 (display_buffer): Consider splitting window horizontally depending
18948 on prefer_window_split_horizontally.
18949
18950 2007-09-08 Eli Zaretskii <eliz@gnu.org>
18951
18952 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18953
18954 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18955
18956 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18957
18958 * frame.c (x_set_frame_parameters): Check number is positive before
18959 using XFASTINT.
18960
18961 * window.c (freeze_window_start): Don't presume selected_window holds
18962 a window object.
18963 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18964
18965 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18966
18967 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18968
18969 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18970
18971 * window.c (Vsplit_window_preferred_function): New var.
18972 (Fdisplay_buffer): Use it.
18973 (syms_of_window): Export, and initialize it.
18974
18975 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18976
18977 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18978
18979 2007-09-06 Glenn Morris <rgm@gnu.org>
18980
18981 * gtkutil.c (menu_grab_callback) <cnt>:
18982 * xselect.c (x_reply_selection_request) <cnt>: Move static
18983 variable to file scope.
18984
18985 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18986
18987 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18988 consistent values of selected_frame and selected_window.
18989
18990 2007-09-04 Jason Rumney <jasonr@gnu.org>
18991
18992 * w32console.c (initialize_w32_display): Zero unused hooks.
18993
18994 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18995
18996 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18997 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18998
18999 2007-09-04 Jason Rumney <jasonr@gnu.org>
19000
19001 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19002 in w32console.c. Set up input. Remove XXX comments that have been
19003 confirmed as correct.
19004
19005 * s/ms-w32.h (MULTI_KBOARD): Define.
19006
19007 * w32console.c (one_and_only_w32cons): Remove.
19008 (initialize_w32_display): Take terminal argument.
19009
19010 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19011 initialize_w32_display.
19012 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19013
19014 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19015
19016 * keyboard.c (discard_mouse_events): Discard it.
19017 (make_lispy_event): Translate it to a lisp event.
19018 (lispy_wheel_names): Add wheel-left and right events.
19019 (syms_of_keyboard): Enlarge wheel_syms.
19020
19021 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19022 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19023
19024 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19025
19026 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19027 from WM_MOUSEHWHEEL.
19028 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19029
19030 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19031 terminal.
19032
19033 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19034 keyboard for the terminal.
19035
19036 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19037
19038 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19039 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19040 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19041 and resume-tty-function to resume-tty-hook.
19042 (Fsuspend_tty, Fresume_tty): Use new names.
19043
19044 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19045
19046 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19047 if it starts with "n:".
19048
19049 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19050
19051 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19052
19053 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19054
19055 * frame.h:
19056 * frame.c (Qterm_environment_variable): Remove.
19057 (syms_of_frame): Don't init and staticpro it.
19058
19059 * callproc.c (getenv_internal): Remove special case for $TERM.
19060
19061 * callproc.c (Vinitial_environment): New variable.
19062 (set_initial_environment): Initialize it.
19063 (syms_of_callproc): Declare it.
19064 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19065 TERM under which a process runs is never related to the TERM in which
19066 Emacs is running.
19067
19068 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19069
19070 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19071 * s/darwin.h: ... do it here.
19072
19073 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19074
19075 * lisp.h (set_initial_environment): Rename from set_global_environment.
19076
19077 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19078 removed by mistake on the multi-tty branch.
19079
19080 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19081 (Fmodify_frame_parameters): Return a value.
19082
19083 * image.c (png_load): Comment-out var only used in commented-out code.
19084
19085 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19086 before passing it to mark_object.
19087
19088 * xfaces.c (internal_resolve_face_name): Return a value.
19089 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19090
19091 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19092 (x_icon): Comment-out var only used in commented-out code.
19093
19094 2007-08-29 Romain Francoise <romain@orebokech.com>
19095
19096 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19097 QUIT hasn't been provided.
19098
19099 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19100
19101 * callproc.c (child_setup, getenv_internal): Use the
19102 display-environment-variable and term-environment-variable frame params.
19103 (set_initial_environment): Initialise Vprocess_environment.
19104
19105 * config.in: Disable multi-keyboard support on a mac.
19106
19107 * frame.c (Qterm_environment_variable)
19108 (Qdisplay_environment_variable): New variables.
19109 (syms_of_frame): Intern and staticpro them.
19110 (Fmake_terminal_frame): Disable output method test.
19111
19112 * frame.h: Declare them here.
19113
19114 * macfns.c (x_set_mouse_color): Get rif from the frame.
19115 (x_set_tool_bar_lines): Don't use updating_frame.
19116 (mac_window): Add 2 new parameters for consistency with other systems.
19117 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19118 frame parameters following what is done in X11 and w32. Don't use
19119 FRAME_MAC_DISPLAY_INFO.
19120 (Fx_open_connection, start_hourglass): Remove window-system check.
19121 (x_create_tip_frame): Get the keyboard from the terminal.
19122
19123 * macmenu.c: Reorder includes.
19124 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19125
19126 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19127 terminal parameter.
19128 (x_clear_frame): Add a frame parameter.
19129 (note_mouse_movement): Get rif from the frame.
19130 (mac_term_init): Initialize the terminal.
19131 (mac_initialize): Make static and move terminal initialization ...
19132 (mac_create_terminal): ... to this new function.
19133
19134 * macterm.h (struct mac_display_info): Add terminal.
19135 (mac_initialize): Delete declaration.
19136
19137 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19138
19139 * sysdep.c: Comment out text after #endif.
19140
19141 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19142 is defined. Better initialize ttys in windows. Use terminal
19143 specific mouse_position_hook.
19144
19145 * termhooks.h (union display_info): Add mac_display_info.
19146
19147 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19148 Set the default minibuffer frame, window_system and the rest of the
19149 frame parameters following what is done in X11.
19150
19151 * w32term.c (w32_initialize): Make static.
19152
19153 * xselect.c (x_handle_selection_clear): Only access
19154 terminal->kboard when MULTI_KBOARD is defined.
19155
19156 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19157 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19158
19159 2007-08-29 Jason Rumney <jasonr@gnu.org>
19160
19161 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19162 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19163
19164 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19165 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19166
19167 * keyboard.c (restore_kboard_configuration): Only define when
19168 MULTI_KBOARD defined.
19169
19170 * makefile.w32-in: Update dependancies from Makefile.in.
19171 (OBJ1): Add terminal.$(O)
19172
19173 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19174 Don't define function body.
19175 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19176
19177 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19178
19179 * w32.c (request_sigio, unrequest_sigio): Remove.
19180
19181 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19182 (w32con_clear_frame, w32con_clear_end_of_line)
19183 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19184 (w32con_delete_glyphs, w32con_set_terminal_window)
19185 (scroll_line, w32_sys_ring_bell): Add frame arg.
19186 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19187 Add terminal arg.
19188 (PICK_FRAME): Remove.
19189 (w32con_write_glyphs): Use frame specific terminal coding.
19190 (one_and_only_w32cons): New global variable.
19191 (initialize_w32_display): Use it for storing hooks.
19192 (create_w32cons_output): New function.
19193
19194 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19195 arg a frame.
19196
19197 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19198 Set window_system.
19199 (x_set_tool_bar_lines): Don't use updating_frame.
19200 (Fx_create_frame): Set terminal and ref count.
19201 (Fx_open_connection): Remove window-system check.
19202
19203 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19204
19205 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19206 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19207 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19208 Add frame arg.
19209 (x_delete_terminal, w32_create_terminal): New functions.
19210 (w32_term_init): Create a terminal.
19211 (w32_initialize): Move terminal specific initialization to
19212 w32_create_terminal.
19213
19214 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19215 (w32_clear_rect, w32_clear_area): Use background from frame.
19216 (w32_display_info): Add terminal.
19217 (w32_sys_ring_bell, x_delete_display): Declare here.
19218
19219 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19220
19221 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19222
19223 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19224
19225 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19226 Fix get_named_tty calls for the controlling tty.
19227
19228 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19229
19230 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19231
19232 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19233
19234 * term.c (tty_insert_glyphs): Add missing first parameter.
19235
19236 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19237
19238 * buffer.c (Fbuffer_list, Fbury_buffer):
19239 Take frame->buried_buffer_list into account.
19240
19241 * cm.c (current_tty): New variable, for cmputc().
19242 (cmputc): Use it.
19243 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19244 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19245 (cmgoto): Add tty parameter. Pass it on to calccost().
19246 Use emacs_tputs() instead of tputs().
19247
19248 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19249 tputs().
19250 (current_tty): New variable, for cmputc().
19251 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19252
19253 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19254 (internal_condition_case, internal_condition_case_1)
19255 (internal_condition_case_2): Don't abort when x_catching_errors.
19256
19257 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19258 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19259 prevent crashes caused by bogus longjmps in read_char.
19260
19261 * keymap.h (Fset_keymap_parent): Add EXFUN.
19262
19263 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19264 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19265 Remove redundant definition.
19266
19267 * macfns.c (x_set_mouse_color, x_make_gc):
19268 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19269
19270 * w32term.c (x_free_frame_resources):
19271 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19272 (w32_initialize): Use the accessor macros for terminal characteristics.
19273
19274 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19275 Use the accessor macros for terminal characteristics.
19276 * msdos.c (internal_terminal_init): Use the accessor macros for
19277 terminal characteristics.
19278 (ScreenVisualBell, internal_terminal_init):
19279 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19280
19281 * termopts.h (no_redraw_on_reenter): Declare.
19282
19283 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19284 (mark_terminals, mark_ttys): Declare.
19285 (Fgarbage_collect): Call them.
19286 (mark_object): Mark buried_buffer_list.
19287
19288 * prefix-args.c: Include stdlib.h for exit.
19289
19290 * syssignal.h: Add comment.
19291
19292 * indent.c: Include stdio.h.
19293
19294 * window.h (Vinitial_window_system): Declare.
19295 (Vwindow_system): Delete declaration.
19296
19297 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19298
19299 * image.c (lookup_image): Don't initialize `c' until the xasserts
19300 have been run.
19301
19302 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19303 FRAME_FOREGROUND_PIXEL.
19304
19305 * print.c (print_preprocess): Don't lose print_depth levels while
19306 iterating.
19307
19308 * widget.c (update_from_various_frame_slots):
19309 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19310
19311 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19312 frames.
19313 (window_internal_height): Remove bogus make_number call.
19314 (init_window_once): Call make_terminal_frame with two zero parameters.
19315
19316 * fileio.c (Fread_file_name): Update comment.
19317
19318 * callint.c (Fcall_interactively):
19319 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19320 Make sure it is correctly unwound.
19321
19322 * xsmfns.c (x_session_close): New function.
19323
19324 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19325 Delete declarations.
19326
19327 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19328 (x_output): Remove background_pixel and foreground_pixel fields.
19329 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19330 (x_delete_device, x_session_close): Declare.
19331
19332 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19333 (read_filtered_event): Call `read_char' with a local
19334 `wrong_kboard_jmpbuf'.
19335
19336 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19337 Don't call single_kboard_state. Use FRAME_RIF.
19338
19339 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19340 systems.
19341
19342 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19343 (Fframe_with_environment, Fset_input_meta_mode)
19344 (Fset_quit_char): EXFUN.
19345 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19346 (init_sys_modes, reset_sys_modes): Update prototypes.
19347 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19348
19349 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19350 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19351 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19352 Delete declarations.
19353 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19354 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19355 New declarations.
19356
19357 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19358 already does that during init_display(). Call syms_of_keymap
19359 before syms_of_keyboard. Call `syms_of_terminal'.
19360 Call set_initial_environment, not set_process_environment.
19361 (shut_down_emacs): Call reset_all_sys_modes() instead of
19362 reset_sys_modes().
19363
19364 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19365 (internal_resolve_face_name, resolve_face_name_error): New functions.
19366 (resolve_face_name): Protect against loops and errors thrown by Fget.
19367 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19368 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19369
19370 * scroll.c: Replace CURTTY() with local variables throughout the
19371 file (where applicable).
19372 (calculate_scrolling, calculate_direct_scrolling)
19373 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19374 characteristics.
19375
19376 * keymap.c (Vfunction_key_map): Remove.
19377 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19378 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19379 (Vkey_translation_map): Remove.
19380 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19381 (Fdescribe_buffer_bindings)
19382 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19383 Update for terminal-local key-translation-map.
19384
19385 * Makefile.in (callproc.o): Update dependencies.
19386 (lisp, shortlisp): Add termdev.elc.
19387 (obj): Add terminal.o.
19388 (terminal.o): Add dependencies.
19389 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19390 (data.o, fns.o): Add termhooks.h dependency.
19391 (SOME_MACHINE_LISP): Add dnd.elc.
19392 (minibuf.o): Fix typo.
19393 Update dependencies.
19394
19395 * data.c (do_symval_forwarding, store_symval_forwarding)
19396 (find_symbol_value): Use the selected frame's keyboard, not
19397 current_kboard.
19398
19399 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19400 Vwindow_system.
19401
19402 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19403 Fmenu_bar_open.
19404 (syms_of_xmenu): Update defsubr.
19405 (mouse_position_for_popup, Fx_popup_menu)
19406 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19407 (set_frame_menubar, free_frame_menubar)
19408 (create_and_show_popup_menu, xmenu_show)
19409 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19410 an X frame.
19411
19412 * xselect.c (x_own_selection): Abort if not an X frame.
19413 (some_frame_on_display): Check if it is an X frame.
19414 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19415
19416 * coding.c: Include frame.h and termhooks.h.
19417 (terminal_coding, keyboard_coding): Delete.
19418 (Fset_terminal_coding_system_internal)
19419 (Fset_keyboard_coding_system_internal)
19420 (Fkeyboard_coding_system)
19421 (Fterminal_coding_system): Add a terminal parameter.
19422 Get terminal_coding from the terminal.
19423 (init_coding_once): Don't call setup_coding_system here.
19424
19425 * dispextern.h (set_scroll_region, turn_off_insert)
19426 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19427 (tty_clear_end_of_line, tty_setup_colors)
19428 (delete_tty, updating_frame)
19429 (produce_special_glyphs, produce_glyphs, write_glyphs)
19430 (insert_glyphs): Remove.
19431 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19432 (tty_turn_off_highlight, get_tty_size): Add declaration.
19433 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19434
19435 * frame.h (enum output_method): Add output_initial.
19436 (struct x_output): Delete.
19437 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19438 Access foreground_pixel and background_pixel directly from the frame.
19439 (tty_display): Delete.
19440 (struct frame): Add buried_buffer_list, foreground_pixel,
19441 background_pixel and terminal. Delete kboard.
19442 (union output_data): Add tty.
19443 (FRAME_KBOARD): Get the kboard from the terminal.
19444 (FRAME_INITIAL_P): New macro.
19445 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19446 (Qterm_environment_variable, Qdisplay_environment_variable)
19447 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19448 New declarations.
19449
19450 * termchar.h (tty_output, tty_display_info): New structures.
19451 (tty_list): Declare.
19452 (FRAME_TTY, CURTTY): New macros.
19453 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19454 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19455 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19456 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19457
19458 * callproc.c: Include frame.h and termhooks.h, for terminal
19459 parameters.
19460 (add_env): New function.
19461 (child_setup): Use it.
19462 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19463 (getenv_internal): Fix get_terminal_param call.
19464 (Fgetenv_internal, egetenv): Update doc.
19465 (syms_of_callproc): Initialize Vprocess_environment to nil.
19466 Register and initialize them. Remove obsolete defvars. Update doc
19467 strings.
19468 (child_setup): Handle Vlocal_environment_variables.
19469 (getenv_internal): Add terminal parameter.
19470 Handle Vlocal_environment_variables.
19471 (Fgetenv_internal): Add terminal parameter.
19472 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19473 environment in a frame (not terminal) parameter. Update doc strings.
19474 (set_initial_environment): Rename from set_global_environment.
19475 Store Emacs environment in initial frame parameter.
19476
19477 * xdisp.c (redisplay_internal): Update references to
19478 `previous_terminal_frame'.
19479 (display_mode_line, Fformat_mode_line): Replace calls to
19480 `push_frame_kboard' with `push_kboard'.
19481 (get_glyph_string_clip_rects): Add extra parentheses and
19482 braces to prevent compiler warnings.
19483 (calc_pixel_width_or_height): Add xassert to check that the
19484 frame is alive. Don't call `lookup_image' on a termcap frame.
19485 (message2_nolog, message3_nolog, redisplay_internal)
19486 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19487 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19488 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19489 (Fx_display_pixel_width, Fx_display_pixel_height)
19490 (Fx_display_planes, Fx_display_color_cells)
19491 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19492 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19493 (Fx_display_backing_store, Fx_display_visual_class)
19494 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19495 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19496
19497 * xfns.c (x_set_foreground_color x_set_background_color)
19498 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19499 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19500 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19501 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19502 terminal that is being deleted.
19503 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19504 frame parameter, and make sure it overrides any user-supplied setting.
19505 (Fx_close_connection, Fx_synchronize): Unify argument names with
19506 the rest of the DEFUNs.
19507
19508 * dispnew.c (Fsend_string_to_terminal): Update call to
19509 `get_tty_terminal'.
19510 (Fredraw_frame, Fsend_string_to_terminal)
19511 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19512 FRAME_TERMCAP_P and FRAME_TTY.
19513 (window_change_signal): Don't believe width/height values that are
19514 impossibly small.
19515 (Vinitial_window_system): Rename from Vwindow_system.
19516 (termscript, Wcm, rif): Delete.
19517
19518 * termhooks.h (struct terminal): New struct containing the
19519 previously global text display hooks and new members NAME,
19520 DELETED and PARAM_ALIST.
19521 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19522 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19523 (FRAME_RIF): New macros.
19524 (get_terminal_param, get_device): New declarations.
19525 (termscript): Delete declaration.
19526
19527 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19528 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19529 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19530 FRAME_FOREGROUND_PIXEL.
19531 (x_fully_uncatch_errors): Disable definition.
19532 (x_scroll_bar_expose): Fix reference to foreground pixel.
19533 (XTread_socket): Disable loop on all X displays.
19534 (x_delete_terminal): Don't set terminal->deleted and let
19535 delete_terminal delete the frames on the terminal.
19536 (x_delete_display): Doc update to reflect changes in
19537 delete_terminal.
19538 (x_display_info) <terminal>: Move member earlier in the struct.
19539 (deleting_tty): Remove old variable.
19540 (Fsuspend_tty): Call clear_tty_hooks.
19541 (Fresume_tty, init_tty): Call set_tty_hooks.
19542 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19543 errors on X frames.
19544 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19545 (handle_one_xevent): Initialize `f' to NULL.
19546 (x_delete_terminal, x_create_terminal): New functions.
19547 (XTset_terminal_modes, XTreset_terminal_modes)
19548 (XTread_socket, x_connection_closed, x_term_init)
19549 (x_term_init, x_delete_display): Add terminal parameter.
19550 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19551 X connections.
19552
19553 * frame.c: Include termchar.h.
19554 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19555 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19556 (Qdisplay_environment_variable): New vars.
19557 (Fframep): Deal with output_initial.
19558 (Fframe-live-p): Doc fix.
19559 (Fwindow-system): New function.
19560 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19561 (make_terminal_frame): Don't create frames on a terminal that is
19562 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19563 (store_frame_param): Check for found_for_frame before calling XFRAME.
19564 (Fmake_terminal_frame): Handle NULL tty names correctly.
19565 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19566 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19567 frames to refer to a deleted frame in their 'environment parameter.
19568 (Fframe_with_environment): New function.
19569 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19570 (get_future_frame_param): New function.
19571 (Fmake_terminal_frame): Use it.
19572 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19573
19574 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19575 * sysdep.c (reset_sys_modes): Update for renames.
19576
19577 * keyboard.c (tty_read_avail_input): New function.
19578 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19579 (syms_of_keyboard): Defsubr them.
19580 (Fset_input_meta_mode, Fset_quit_char): New functions.
19581 (Fset_input_mode): Split to above functions.
19582 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19583 parameter. Use it in call to `read_char'.
19584 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19585 Set wrong_kboard_jmpbuf correctly in recursive calls.
19586 Use current_kboard to access Vkeyboard_translate_table.
19587 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19588 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19589 Update longjmp invocations. Remember the original current_kboard,
19590 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19591 changes it. Comment out unnecessary calls to
19592 `record_single_kboard_state' and `any_kboard_state'.
19593 Update recursive calls.
19594 (wrong_kboard_jmpbuf): Remove global variable.
19595 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19596 Handle deleted interrupted_kboards correctly; that is a legal
19597 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19598 and read_char calls. Abort if interrupted_kboard died in read_char.
19599 (any_kboard_state, single_kboard_state)
19600 (push_frame_kboard): Remove function.
19601 (pop_kboard): Switch out of single_kboard mode if the kboard has
19602 been deleted. Remove unused variable. Help debugging by not
19603 changing current_kboard unnecessarily. Set current_kboard to the
19604 kboard of the selected frame when the stored kboard object has
19605 been deleted before pop_kboard.
19606 (temporarily_switch_to_single_kboard): Change first parameter to a
19607 frame pointer. Throw an error when caller wants to change kboards
19608 while in single_kboard mode. Don't push_kboard if we weren't in
19609 single kboard state. Don't pop_kboard if we popped into any
19610 kboard state.
19611 (restore_kboard_configuration): Abort if pop_kboard changed the
19612 kboard in single_kboard mode. Call pop_kboard only after setting
19613 up single_kboard mode.
19614 (Frecursive_edit): Switch to single_kboard mode only in nested
19615 command loops.
19616 (cmd_error, command_loop, command_loop_1, timer_check):
19617 Comment out unnecessary call to `any_kboard_state' and
19618 `record_single_kboard_state'.
19619 (delete_kboard): Exit single_kboard mode if we have just deleted
19620 that kboard. Use FRAME_KBOARD.
19621 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19622 `fatal_error_signal'.
19623 (record_single_kboard_state): Don't push_kboard if we weren't in
19624 single kboard state. Don't pop_kboard if we popped into any
19625 kboard state.
19626 (push_frame_kboard): Rename to push_kboard.
19627 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19628 (read_avail_input): Read input from all terminals.
19629 (mark_kboards): Also mark Vkeyboard_translate_table.
19630 (kbd_buffer_store_event_hold): Simplify condition.
19631 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19632 (Vkeyboard_translate_table): Move to struct kboard.
19633 (init_kboard): Initialize Vkeyboard_translate_table.
19634 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19635 Vkeyboard_translate_table. Update doc strings. Update docs of
19636 local-function-key-map and function-key-map.
19637
19638 * terminal.c: New file.
19639
19640 * term.c: Include errno.h.
19641 (Vring_bell_function, device_list, initial_device)
19642 (next_device_id, ring_bell, update_begin, update_end)
19643 (set_terminal_window, cursor_to, raw_cursor_to)
19644 (clear_to_end, clear_frame, clear_end_of_line)
19645 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19646 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19647 (syms_of_term): Move their initialization to terminal.c.
19648 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19649 (Ftty_display_color_cells)
19650 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19651 (clear_tty_hooks, set_tty_hooks)
19652 (init_tty, maybe_fatal): New functions.
19653 (Ftty_type): Return nil if terminal is not on a tty instead of
19654 throwing an error. Doc update.
19655 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19656 Doc update. Initialize new subrs and variables.
19657 (delete_tty): Use terminal->deleted.
19658 (tty_set_terminal_modes): Rename from set_terminal_modes.
19659 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19660 (set_scroll_region): Rename to `tty_set_scroll_region'.
19661 (turn_on_insert): Rename to `tty_turn_on_insert'.
19662 (turn_off_insert): Rename to `tty_turn_off_insert'.
19663 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19664 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19665 (toggle_highligh): Rename to `tty_toggle_highlight'.
19666 (background_highlight): Rename to `tty_background_highlight'.
19667 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19668 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19669 (tty_set_scroll_region, tty_background_highlight)
19670 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19671 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19672 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19673 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19674 Add static modifier.
19675 (tty_reset_terminal_modes, tty_set_terminal_window)
19676 (tty_set_scroll_region, tty_background_highlight)
19677 (tty_highlight_if_desired, tty_cursor_to)
19678 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19679 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19680 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19681 renames.
19682
19683 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19684
19685 * keyboard.c: Qrtl is new.
19686 (parse_tool_bar_item): Handle :rtl keyword.
19687 (syms_of_keyboard): Intern :rtl keyword.
19688
19689 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19690
19691 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19692 so no Lisp code is executed.
19693 (file_for_image, find_rtl_image): New functions.
19694 (xg_get_image_for_pixmap): Use file_for_image.
19695 (update_frame_tool_bar): If direction is RTL, use RTL image if
19696 defined. Use Gtk stock images if defined.
19697
19698 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19699
19700 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19701 for nonexistent or zero-width glyph in composition glyph.
19702
19703 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19704
19705 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19706
19707 * xdisp.c (Finvisible_p): New function.
19708 (syms_of_xdisp): defsubr it.
19709
19710 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
19711
19712 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19713 Doc fixes.
19714
19715 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19716
19717 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19718
19719 2007-08-24 Martin Rudalics <rudalics@gmx.at>
19720
19721 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19722 whether decoding has modified buffer contents.
19723
19724 2007-08-24 Jason Rumney <jasonr@gnu.org>
19725
19726 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19727 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19728 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19729 (init_svg_functions) [HAVE_NTGUI]: New function.
19730 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19731 (svg_load_image): Use them.
19732 (svg_load_image) [HAVE_NTGUI]: Implement background.
19733
19734 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19735
19736 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19737 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19738 (LIBX): Remove @RSVG_LIBS@.
19739 (LIBES): Add $(RSVG_LIBS).
19740
19741 * image.c (svg_load_image): Blend with specified background if exists.
19742 Use IMAGE_BACKGROUND. Add Mac OS Support.
19743
19744 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19745 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19746 Remove macros.
19747 [MAC_OSX] (socket_callback): Do nothing.
19748 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19749 ReceiveNextEvent.
19750 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19751 socket_callback.
19752 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19753
19754 2007-08-22 Glenn Morris <rgm@gnu.org>
19755
19756 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19757
19758 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19759
19760 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19761
19762 * image.c: Add support for SVG images. Some additional comments
19763 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19764 (svg_image_p): New function to test for SVG image.
19765 (svg_load): New function to load SVG image.
19766 (svg_load_image): New function, helper for svg_load.
19767 (Qsvg): New Lisp_object.
19768 (svg_keyword_index): New enum.
19769 (svg_format): New static `image_keyword' struct.
19770 (svg_type): New static `image_type' struct.
19771 (librsvg/rsvg.h): Include it.
19772
19773 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19774
19775 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19776
19777 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19778
19779 * lread.c (Qold_style_backquotes): New var.
19780 (syms_of_lread): Init and staticpro it.
19781 (load_warn_old_style_backquotes): New fun.
19782 (Fload): Use them to warn about old style backquotes.
19783 (end_of_file_error, Fload): Remove unused vars.
19784
19785 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19786
19787 * lread.c (Vold_style_backquotes): New var.
19788 (syms_of_lread): Init and export it to Elisp.
19789 (read1): Set it when we find an old-style (back)quote.
19790
19791 2007-08-22 Jason Rumney <jasonr@gnu.org>
19792
19793 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19794
19795 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19796
19797 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19798
19799 2007-08-19 Richard Stallman <rms@gnu.org>
19800
19801 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19802
19803 2007-08-19 Andreas Schwab <schwab@suse.de>
19804
19805 * alloc.c (pure): Round PURESIZE up.
19806
19807 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19808
19809 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19810 active frame.
19811
19812 2007-08-16 Richard Stallman <rms@gnu.org>
19813
19814 * eval.c (Fcommandp): Add parens to clarify.
19815
19816 * minibuf.c (Fall_completions): Use enum for type of table.
19817
19818 * emacs.c (USAGE2): Improve text.
19819
19820 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19821
19822 * term.c (tty_default_color_capabilities): Declare static
19823 variables in file scope, to avoid HPUX compiler problem.
19824
19825 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19826
19827 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19828 to gtk_toolbar_insert.
19829
19830 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19831
19832 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19833
19834 * insdel.c (reset_var_on_error): New fun.
19835 (signal_before_change, signal_after_change):
19836 Use it to reset (after|before)-change-functions to nil in case of error.
19837 Bind inhibit-modification-hooks to t.
19838 Don't bind (after|before)-change-functions to nil while they run.
19839
19840 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19841
19842 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19843 filling pixmap with stippled background.
19844
19845 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19846
19847 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19848 Don't use invisible frame as parent window for repositioning.
19849
19850 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19851
19852 * print.c (new_backquote_output): Rename from old_backquote_output.
19853 (print): Inverse its logic (according to its name) so as to match the
19854 behavior of new_backquote_flag in lread.c.
19855
19856 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19857
19858 * gmalloc.c (posix_memalign): New function.
19859
19860 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19861 ActivateControl/DeactivateControl here.
19862 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19863 frame-notice-user-settings is non-nil.
19864 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19865 for kEventParamFMFontStyle.
19866 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19867 mac_pass_command_to_system and mac_pass_control_to_system here.
19868 (XTread_socket): Call ActivateControl/DeactivateControl here.
19869 (XTread_socket) [TARGET_API_MAC_CARBON]:
19870 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19871 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19872 for window repositioning.
19873
19874 2007-08-08 Glenn Morris <rgm@gnu.org>
19875
19876 * Replace `iff' in doc-strings and comments.
19877
19878 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
19879
19880 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19881
19882 2007-08-07 Martin Rudalics <rudalics@gmx.at>
19883
19884 * fileio.c (Finsert_file_contents): Run format-decode and
19885 after_insert_file_functions on entire buffer when REPLACE is
19886 non-nil and inhibit modification_hooks and point_motion_hooks.
19887 For consistency, run after_insert_file_functions iff something
19888 got inserted. Move signal_after_change and update_compositions
19889 after code running after_insert_file_functions. Make sure that
19890 undo_list doesn't record intermediate steps of the decoding process.
19891
19892 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19893
19894 * emacs.c (main)
19895 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19896 Call malloc_enable_thread on interactive startup.
19897
19898 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19899 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19900 [USE_PTHREAD]: Conditionalize with it.
19901 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19902 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19903 New functions.
19904
19905 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
19906
19907 * xdisp.c (redisplay_window): When restoring original buffer
19908 position, make sure it is still valid.
19909
19910 * image.c (png_load): Ignore png-supplied background color.
19911
19912 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19913
19914 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19915 Use kCFAbsoluteTimeIntervalSince1970.
19916
19917 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19918 New variable.
19919 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19920 event loop should be quit.
19921 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19922 Quit dialog event loop if quit_dialog_event_loop is set.
19923
19924 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19925 (Selection): New typedef. Use instead of ScrapRef.
19926 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19927 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19928 (mac_clear_selection): Rename from clear_scrap.
19929 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19930 scrap_has_target_type. All uses changed.
19931 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19932 (mac_selection_has_target_p): New functions.
19933 (mac_put_selection_value): Rename from put_scrap_string.
19934 (mac_get_selection_value): Rename from get_scrap_string.
19935 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19936 (put_scrap_private_timestamp, scrap_has_target_type)
19937 (get_scrap_private_timestamp): Remove functions.
19938 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19939 (x_own_selection, x_get_local_selection):
19940 Use mac_valid_selection_value_p.
19941 (x_own_selection): Don't use put_scrap_private_timestamp.
19942 Record OWNERSHIP-INFO into Vselection_alist instead.
19943 (x_get_local_selection): Don't check type if request is local.
19944 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19945 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19946
19947 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19948
19949 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19950 add comment explaining why.
19951
19952 2007-08-03 Richard Stallman <rms@gnu.org>
19953
19954 * fileio.c (Fvisited_file_modtime): Use make_time.
19955
19956 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19957
19958 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19959 build.
19960
19961 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19962
19963 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19964
19965 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19966
19967 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19968
19969 2007-07-30 Richard Stallman <rms@gnu.org>
19970
19971 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19972
19973 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19974
19975 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19976
19977 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
19978
19979 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19980 remote default-directory.
19981
19982 * buffer.c (mode-line-format): Update doc string.
19983
19984 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19985
19986 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19987 scroll bar gap.
19988 (x_scroll_bar_create): Set bar->fringe_extended_p.
19989 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19990 on frame edge. Check fringe background extension. Don't clear
19991 extended fringe background area.
19992
19993 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19994 (w32_fill_area): Enclose multiple statements with do ... while (0).
19995
19996 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19997 Extend fringe background to scroll bar gap.
19998 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19999 Set bar->fringe_extended_p.
20000 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20001 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20002 background extension. Don't clear extended fringe background area.
20003
20004 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20005 New member fringe_extended_p.
20006
20007 2007-07-25 Glenn Morris <rgm@gnu.org>
20008
20009 * Relicense all FSF files to GPLv3 or later.
20010
20011 * COPYING: Switch to GPLv3.
20012
20013 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20014
20015 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20016
20017 * data.c (Finteractive_form): Check for the presence of an
20018 `interactive-form' symbol property more thoroughly.
20019
20020 * data.c (Finteractive_form): Use an `interactive-form' property if
20021 present, analogous to the function-documentation property.
20022
20023 2007-07-24 Jason Rumney <jasonr@gnu.org>
20024
20025 * w32fns.c (x_real_positions): Get real position from OS instead of
20026 calculating it.
20027
20028 2007-07-23 Jason Rumney <jasonr@gnu.org>
20029
20030 * filelock.c (current_lock_owner): Allow for @ sign in username.
20031
20032 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
20033
20034 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20035 remote default-directory.
20036
20037 * buffer.c (mode-line-format): Describe above case in doc string.
20038
20039 2007-07-20 Eli Zaretskii <eliz@gnu.org>
20040
20041 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20042 Define if not defined.
20043
20044 2007-07-18 Jason Rumney <jasonr@gnu.org>
20045
20046 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20047
20048 2007-07-18 Richard Stallman <rms@gnu.org>
20049
20050 * data.c (Fsetq_default): Doc fix.
20051
20052 * eval.c (Fsetq): Doc fix.
20053
20054 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
20055
20056 * coding.c (Ffind_operation_coding_system):
20057 * eval.c (For, Fand): Doc fixes.
20058 Reported by Johan Bockgård.
20059
20060 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20061
20062 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20063
20064 * xterm.h: Declare x_ewmh_activate_frame.
20065
20066 * xterm.c (x_ewmh_activate_frame): New function.
20067 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20068
20069 2007-07-17 Martin Rudalics <rudalics@gmx.at>
20070
20071 * window.c (Fdisplay_buffer): If largest or LRU window is the
20072 only window, split it even if it is not eligible for splitting.
20073 This restores the original behavior broken by the 2007-07-15
20074 change.
20075
20076 2007-07-17 Glenn Morris <rgm@gnu.org>
20077
20078 * abbrev.c (abbrev_check_chars): New function.
20079 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20080 Call abbrev_check_chars to check abbrev characters are word
20081 constituents. Doc fix.
20082
20083 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20084
20085 * process.c (Fstart_process, Fmake_network_process)
20086 (read_process_output): Fix up last changes.
20087
20088 2007-07-16 Eli Zaretskii <eliz@gnu.org>
20089
20090 * makefile.w32-in (clean): Don't delete *~.
20091
20092 2007-07-16 Andreas Schwab <schwab@suse.de>
20093
20094 * window.c (Fdisplay_buffer): Use NILP.
20095 (Fset_window_scroll_bars): Likewise.
20096
20097 2007-07-15 Martin Rudalics <rudalics@gmx.at>
20098
20099 * window.c (window_min_size_2): New function.
20100 (window_min_size_1, size_window, Fdisplay_buffer)
20101 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20102 windows without mode- or header-lines when window-min-height is
20103 too small.
20104 (size_window): Reset nodelete_p after testing it, following an
20105 earlier note by Kim F. Storm.
20106 (display_buffer): Do not set split_height_threshold to twice the
20107 value of window_min_height to avoid changing the value of a
20108 customizable variable. Rather explicitly check whether the
20109 height of the window that shall be splitted is at least as large
20110 as split_height_threshold.
20111 (Fwindow_full_width_p): New defun.
20112 (syms_of_window): Defsubr it.
20113
20114 * window.h: Add EXFUN for Fwindow_full_width_p.
20115
20116 2007-07-14 Jason Rumney <jasonr@gnu.org>
20117
20118 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20119
20120 2007-07-14 Richard Stallman <rms@gnu.org>
20121
20122 * eval.c (maybe_call_debugger): New function.
20123 (find_handler_clause): Use maybe_call_debugger.
20124 Call it when the handler says `debug'.
20125 Eliminate DEBUGGER_VALUE_PTR.
20126 (Fsignal): Eliminate debugger_value.
20127 (Qdebug): New variable.
20128 (syms_of_eval): Initialize it.
20129
20130 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
20131
20132 * eval.c (Fprogn):
20133 * keyboard.c (Ftrack_mouse):
20134 * print.c (Fwith_output_to_temp_buffer):
20135 * window.c (Fsave_window_excursion): Doc fix.
20136
20137 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20138
20139 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20140
20141 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20142
20143 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20144 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20145 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20146 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20147 Remove unused encoding_carryover.
20148 * process.c: Adjust all functions accordingly.
20149
20150 2007-07-12 Richard Stallman <rms@gnu.org>
20151
20152 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20153
20154 2007-07-11 Jason Rumney <jasonr@gnu.org>
20155
20156 * makefile.w32-in (LIBS): Include OLE32.
20157
20158 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20159 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20160
20161 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20162
20163 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20164 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20165 from a Lisp_Object into a bare pointer.
20166 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20167 Adjust the code correspondingly.
20168
20169 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20170
20171 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20172 (term_show_mouse_face): Remove unused var `j'.
20173 (handle_one_term_event): Remove unused vars `i' and `j'.
20174 Don't cast return value of ttyname since it's not necessary.
20175
20176 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20177
20178 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20179 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20180
20181 * fns.c (map_char_table): Use an array of int for `indices' rather than
20182 an array of Lisp_Objects (which are only ever integers anyway).
20183 (Fmap_char_table): Update caller.
20184 * lisp.h: Update prototype.
20185 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20186 * fontset.c (Ffontset_info):
20187 * casetab.c (set_case_table): Update callers.
20188
20189 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20190
20191 * keymap.c (struct accessible_keymaps_data)
20192 (struct where_is_internal_data): New structures.
20193 (accessible_keymaps_1, where_is_internal_1): Use them to change
20194 interface to adhere to the one used by map_keymap.
20195 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20196 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20197
20198 * keymap.h (map_keymap_function_t): More informative prototype.
20199
20200 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20201
20202 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20203 (looking_at_1): Don't change search_regs and last_thing_searched
20204 if `inhibit-changing-match-data' is non-nil.
20205 (string_match_1, search_buffer, set_search_regs): Likewise.
20206 (syms_of_search): Add Lisp level definition for
20207 `inhibit-changing-match-data' and set it to nil.
20208 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20209 start and end of the match, instead of using values in search_regs.
20210
20211 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20212
20213 * minibuf.c (Fcompleting_read): New value `confirm-only'
20214 for `require-match'.
20215
20216 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20217
20218 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20219 part of the 2007-06-27 change to syms_of_fileio.
20220
20221 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20222
20223 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20224 Check WINDOWP before using XWINDOW. Consolidate return statements.
20225
20226 2007-06-27 Richard Stallman <rms@gnu.org>
20227
20228 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20229
20230 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
20231
20232 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20233
20234 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20235
20236 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20237 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20238 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20239 (_free_internal, memalign): Use them.
20240 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20241 Initialize to PTHREAD_MUTEX_INITIALIZER.
20242 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20243 (morecore_nolock): Rename from morecore. All uses changed.
20244 Use only nolock versions of internal allocation functions.
20245 (_malloc_internal_nolock, _realloc_internal_nolock)
20246 (_free_internal_nolock): New functions created from
20247 _malloc_internal, _realloc_internal, and _free_internal.
20248 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20249 Copy hook value to automatic variable before its use.
20250 (memalign): Copy hook value to automatic variable before its use.
20251
20252 2007-06-26 Kenichi Handa <handa@m17n.org>
20253
20254 * coding.c (Ffind_operation_coding_system): Docstring improved.
20255 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20256
20257 2007-06-25 David Kastrup <dak@gnu.org>
20258
20259 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20260 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20261 cater for additional parameter.
20262
20263 * keymap.h: Adjust number of parameters to `current-active-maps'.
20264
20265 * doc.c (Fsubstitute_command_keys): Adjust call of
20266 `current-active-maps'.
20267
20268 2007-06-25 David Kastrup <dak@gnu.org>
20269
20270 * callint.c (Fcall_interactively): Make the parsing of interactive
20271 specs somewhat more readable.
20272
20273 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20274
20275 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20276 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20277 if extended background has already been filled.
20278
20279 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20280
20281 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20282 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20283
20284 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20285 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20286 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20287 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20288 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20289 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20290 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20291 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20292 Run timers during dialog popup.
20293 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20294
20295 2007-06-21 Jason Rumney <jasonr@gnu.org>
20296
20297 * image.c (convert_mono_to_color_image): Swap fore and background.
20298
20299 2007-06-20 Jason Rumney <jasonr@gnu.org>
20300
20301 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20302 (w32_free_bdf_font): Unmap memory not handle.
20303
20304 2007-06-20 Sam Steingold <sds@gnu.org>
20305
20306 * gmalloc.c (__morecore): Fix the declaration to comply with the
20307 definition.
20308
20309 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
20310
20311 * w32term.c (w32_delete_display): Remove leftover declaration.
20312 (w32_define_cursor, w32_initialize): Make static.
20313
20314 * w32.c (_wsa_errlist): Fix typo in error message.
20315 (init_environment): Ignore any environment variable from the
20316 registry having a null value.
20317
20318 2007-06-20 Glenn Morris <rgm@gnu.org>
20319
20320 * Makefile.in (LIBGIF): Default to -lgif.
20321
20322 2007-06-17 Jason Rumney <jasonr@gnu.org>
20323
20324 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20325 unicode strings.
20326
20327 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
20328
20329 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20330 Fix typo in docstring.
20331
20332 2007-06-16 Eli Zaretskii <eliz@gnu.org>
20333
20334 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20335 and their keybindings.
20336
20337 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
20338
20339 * composite.c (update_compositions): Fix last fix.
20340
20341 2007-06-14 Jason Rumney <jasonr@gnu.org>
20342
20343 * w32.c (get_process_times_fn): New function pointer.
20344 (globals_of_w32): Intialize it if present in kernel32.dll.
20345 (w32_get_internal_run_time): New function.
20346
20347 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20348
20349 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20350
20351 * composite.c (update_compositions): Check the validness of
20352 compositions.
20353
20354 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20355
20356 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20357 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20358
20359 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20360 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20361
20362 * macgui.h (USE_MAC_TOOLBAR): New define.
20363
20364 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20365 Return immediately unless popup is activated.
20366
20367 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20368 background to scroll bar gap.
20369 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20370 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20371 scroll bars on frame edge. Check fringe background extension.
20372 Don't clear extended fringe background area.
20373 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20374 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20375 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20376 [USE_MAC_TOOLBAR]: New macros.
20377 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20378 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20379 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20380 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20381 [USE_MAC_TOOLBAR]: New functions.
20382 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20383 manually if previous repositioning has failed.
20384 (mac_handle_keyboard_event): Use precomputed event kind.
20385 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20386 as tool bar item click. Handle mouse movement over tool bar items.
20387
20388 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20389 toolbar_win_gravity.
20390 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20391 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20392 Add externs.
20393
20394 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20395 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20396
20397 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
20398
20399 * image.c (search_image_cache): Remove unused variable.
20400
20401 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
20402
20403 * xfns.c, xmenu.c: Link to xaw3d if available.
20404
20405 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20406
20407 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20408 frame_foreground and frame_background.
20409
20410 * image.c (lookup_image): Save frame foreground and background colors.
20411 (search_image_cache): Check if saved and current frame colors match.
20412
20413 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20414
20415 * regex.c (regex_compile): Remove the `regnum' counter.
20416 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20417
20418 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20419
20420 * term.c: Include intervals.h to declare Fget_text_property.
20421
20422 2007-06-10 Jason Rumney <jasonr@gnu.org>
20423
20424 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20425
20426 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
20427
20428 * callint.c (Fcall_interactively):
20429 * editfns.c (Fdelete_and_extract_region):
20430 * fileio.c (Fread_file_name):
20431 * fns.c (Fmapconcat):
20432 * keyboard.c (cmd_error_internal):
20433 * keymap.c (Fkey_description):
20434 * lread.c (openp):
20435 * minibuf.c (read_minibuf):
20436 * search.c (wordify):
20437 * sunfns.c (sel_read):
20438 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20439 * xfns.c (x_default_scroll_bar_color_parameter):
20440 * xmenu.c (menu_help_callback):
20441 * xselect.c (Fx_get_atom_name):
20442 * xterm.c (x_term_init): Use empty_unibyte_string.
20443
20444 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20445
20446 * alloc.c (init_strings): Initialize canonical empty strings.
20447 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20448 canonical empty string when the requested size is 0.
20449
20450 * emacs.c (empty_unibyte_string): Rename from empty_string.
20451 (empty_multibyte_string): New canonical empty string.
20452 (syms_of_emacs): Don't initialize empty_string.
20453
20454 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20455 string, if appropriate.
20456 (empty_unibyte_string, empty_multibyte_string): New externs.
20457 (empty_string): Remove extern.
20458
20459 * lread.c (syms_of_lread): Use empty_unibyte_string.
20460
20461 2007-06-07 Jason Rumney <jasonr@gnu.org>
20462
20463 * s/ms-w32.h: Don't define HAVE_TZNAME.
20464
20465 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20466
20467 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20468
20469 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20470
20471 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20472 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20473
20474 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20475 Don't call next handler.
20476 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20477 Remove argument. Install handler to application.
20478 (set_frame_menubar): Don't change deep_p.
20479 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20480 FRAME_OUTER_TO_INNER_DIFF_Y.
20481 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20482 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20483 [HAVE_DIALOGS]: New macros.
20484 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20485 Use them.
20486 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20487
20488 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20489 init_service_handler. All callers changed. Return OSStatus value.
20490
20491 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20492 All callers changed so as not to call SetPortWindowPort.
20493 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20494 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20495 mac_draw_string_common.
20496 (mac_draw_image_string_qd): Likewise.
20497 (mac_draw_string_common): Use them. Add INLINE.
20498 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20499 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20500 GetGlobalMouse.
20501 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20502 and FRAME_OUTER_TO_INNER_DIFF_Y.
20503 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20504 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20505 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20506 repositioning window to mac_handle_window_event.
20507 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20508 saving window location to mac_handle_window_event
20509 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20510 (install_menu_target_item_handler): Remove argument in extern.
20511 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20512 Also accept command events.
20513 (do_keystroke): New function created from XTread_socket.
20514 (init_command_handler): Remove functions.
20515 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20516 and save window location by kEventWindowShowing and kEventWindowHiding
20517 handlers here. Don't call next handler for window state change and
20518 focus events.
20519 (mac_handle_application_event, mac_handle_keyboard_event)
20520 [TARGET_API_MAC_CARBON]: New functions.
20521 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20522 kEventWindowShowing and kEventWindowHiding events. Move installation
20523 of mouse, font, text input and menu target item handlers to
20524 install_application_handler.
20525 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20526 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20527 New function.
20528 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20529 Register it.
20530 (XTread_socket) [TARGET_API_MAC_CARBON]:
20531 Consolidate SendEventToEventTarget calls.
20532 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20533 Move application activation handler to mac_handle_application_event.
20534 Move keyboard handler to mac_handle_keyboard_event.
20535 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20536 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20537 init_command_handler. Call install_application_handler.
20538
20539 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20540 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20541
20542 2007-06-07 Glenn Morris <rgm@gnu.org>
20543
20544 * emacs.c (main): Use `emacs-copyright' in --version output.
20545
20546 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
20547
20548 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20549
20550 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20551
20552 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20553
20554 * macgui.h: Replace WindowPtr with WindowRef.
20555
20556 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20557 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20558 Replace ControlHandle with ControlRef.
20559 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20560
20561 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20562 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20563 Replace ControlHandle with ControlRef.
20564 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20565 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20566
20567 * macterm.h (struct scroll_bar): Rename member control_handle_low
20568 and control_handle_high to control_ref_low and control_ref_high.
20569 All uses changed.
20570 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20571 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20572 respectively. All uses changed.
20573 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20574 (install_window_handler, remove_window_handler): Replace WindowPtr
20575 with WindowRef in externs.
20576
20577 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
20578
20579 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20580
20581 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
20582
20583 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20584
20585 * frame.c (Fmouse_position, Fmouse_pixel_position):
20586 Condition on HAVE_GPM too.
20587
20588 * term.c (term_mouse_highlight): Remove unused variables.
20589 (Fterm_open_connection): Set gpm_zerobased to 1.
20590 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20591 Use zero based co-ordinates.
20592 (handle_one_term_event): Report a drag as mouse movement too.
20593
20594 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20595
20596 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
20597
20598 * image.c (search_image_cache): New function. Require background
20599 color match if background color is unspecified in the image spec.
20600 (uncache_image, lookup_image): Use it.
20601
20602 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
20603
20604 * window.c (Fshrink_window): Reflow docstring.
20605
20606 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
20607
20608 * Version 22.1 released.
20609
20610 2007-06-01 Richard Stallman <rms@gnu.org>
20611
20612 * xfns.c (x_encode_text): Add GCPRO.
20613
20614 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20615
20616 * xfns.c (x_set_name_internal): Save encoded name before
20617 x_encode_text in case string data is relocated.
20618
20619 2007-05-31 Richard Stallman <rms@gnu.org>
20620
20621 * buffer.c (syms_of_buffer): Doc fix.
20622
20623 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
20624
20625 * sysdep.c (init_sys_modes): Add rather than replace with
20626 O_NONBLOCK.
20627
20628 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20629 term_mouse_moveto.
20630
20631 * termhooks.h (term_mouse_moveto): New extern.
20632
20633 * term.c (mouse_face_window): Rename...
20634 (Qmouse_face_window): ...to this.
20635 (term_show_mouse_face, term_clear_mouse_face)
20636 (term_mouse_highlight): Use Qmouse_face_window.
20637 (term_mouse_moveto): New function.
20638 (term_mouse_position): Make it work.
20639 (syms_of_term): Uncomment assignment to mouse_position_hook.
20640 Staticpro Qmouse_face_window.
20641
20642 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20643
20644 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20645 around current_column call.
20646
20647 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20648
20649 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20650 * xdisp.c (next_element_from_buffer):
20651 * window.c (delete_window):
20652 * term.c (term_mouse_highlight):
20653 * msdos.c (getdefdir):
20654 * macterm.c (mac_create_bitmap_from_bitmap_data)
20655 (init_font_name_table):
20656 * fns.c (Fsxhash):
20657 * data.c (Fmake_local_variable):
20658 * ccl.c (ccl_driver): Likewise.
20659
20660 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20661
20662 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20663 Call mac_wakeup_from_rne on window size change.
20664
20665 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
20666
20667 * image.c (uncache_image): Fix typo.
20668
20669 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20670
20671 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20672
20673 2007-05-22 Richard Stallman <rms@gnu.org>
20674
20675 * xterm.c (x_connection_closed): Remove NO_RETURN.
20676
20677 2007-05-22 Martin Rudalics <rudalics@gmx.at>
20678
20679 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20680
20681 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
20682
20683 * image.c (uncache_image): New function.
20684 (Fimage_refresh): New function.
20685
20686 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20687
20688 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20689
20690 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20691
20692 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20693 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20694
20695 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20696
20697 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20698 conditional on [HAVE_GPM_H].
20699
20700 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20701
20702 * syntax.c (skip_chars): Update syntax-table only after we checked that
20703 the new location is valid.
20704
20705 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20706
20707 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20708 mac_get_window_bounds.
20709
20710 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20711
20712 * Makefile.in (LIBGPM): Allow it to be set from configure.
20713 If set then link Emacs with it.
20714
20715 * config.in: Regenerate.
20716
20717 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20718 New externs.
20719
20720 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20721 Include gpm.h.
20722 (handle_one_term_event, term_gpm): New externs.
20723
20724 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20725 and allow it to be interrupted by SIGIO.
20726
20727 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20728 (wait_reading_process_output): Wait on gpm_fd too.
20729 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20730 (add_gpm_wait_descriptor_called_flag): New variable.
20731 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20732
20733 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20734 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20735 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20736 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20737 (make_lispy_event): Add case GPM_CLICK_EVENT.
20738 (read_avail_input): Handle mouse input.
20739
20740 * term.c (write_glyphs_with_face): New function.
20741 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20742 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20743 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20744 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20745 (last_mouse_x, last_mouse_y): New variables.
20746 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20747 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20748 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20749 (Fterm_close_connection): New functions.
20750 (term_init): Initialise mouse_face_window.
20751
20752 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
20753
20754 * xdisp.c (redisplay_window): If first window line is a
20755 continuation line, recompute the new window start instead of
20756 recentering.
20757
20758 2007-05-18 Glenn Morris <rgm@gnu.org>
20759
20760 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20761 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20762
20763 2007-05-17 Glenn Morris <rgm@gnu.org>
20764
20765 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20766
20767 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20768
20769 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20770 dead key repeat and up events.
20771
20772 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
20773
20774 * image.c (pbm_load): Check image size for monochrome pbm.
20775
20776 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
20777
20778 * xterm.c (XTread_socket): Revert last change.
20779
20780 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
20781
20782 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20783
20784 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20785
20786 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20787
20788 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20789 mixup (YAILOM).
20790
20791 2007-05-07 Andreas Schwab <schwab@suse.de>
20792
20793 * keymap.c (Flookup_key): Fix typo in last change.
20794
20795 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20796
20797 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20798 mapping for unibyte strings.
20799
20800 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20801
20802 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20803 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20804
20805 2007-04-29 Richard Stallman <rms@gnu.org>
20806
20807 * insdel.c (replace_range): For undo, record insertion first.
20808
20809 2007-04-29 Andreas Schwab <schwab@suse.de>
20810
20811 * lisp.h (VECSIZE): Use OFFSETOF.
20812
20813 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20814
20815 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20816 disabled lines.
20817
20818 2007-04-28 Richard Stallman <rms@gnu.org>
20819
20820 * lread.c (read_escape): In a string, \s is always space.
20821
20822 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20823
20824 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20825
20826 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20827 submenu for menu bar items.
20828
20829 See ChangeLog.10 for earlier changes.
20830
20831 ;; Local Variables:
20832 ;; coding: utf-8
20833 ;; add-log-time-zone-rule: t
20834 ;; End:
20835
20836 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
20837
20838 This file is part of GNU Emacs.
20839
20840 GNU Emacs is free software: you can redistribute it and/or modify
20841 it under the terms of the GNU General Public License as published by
20842 the Free Software Foundation, either version 3 of the License, or
20843 (at your option) any later version.
20844
20845 GNU Emacs is distributed in the hope that it will be useful,
20846 but WITHOUT ANY WARRANTY; without even the implied warranty of
20847 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20848 GNU General Public License for more details.
20849
20850 You should have received a copy of the GNU General Public License
20851 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20852
20853 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40