(global-semantic-idle-scheduler-mode): Move after definition of
[bpt/emacs.git] / src / ChangeLog
CommitLineData
581e51e8
JD
12009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2
cfc86c7a
JD
3 * Makefile.in: Must create deps for ecrt0.o in its rule.
4
581e51e8
JD
5 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6 because that is what Gtk+ font dialog understands.
7
8 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
9 of Fcopy_sequence.
10 (font_open_by_name): Put name given into QCname for font-object returned.
11
12 * frame.c (x_set_font): Save original font name as frame parameter
13 font-parameter.
14
15 * xsettings.c (set_default_xft_settings): New function.
16 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
17 is found.
18
8b264ecb
AS
192009-11-22 Andreas Schwab <schwab@linux-m68k.org>
20
21 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
22 searching backwards through multibyte buffer.
23
872870b2
JD
242009-11-21 Jan Djärv <jan.h.d@swipnet.se>
25
26 * xterm.c: #include xgselect.h.
27 (x_initialize): Call xgselect_initialize.
28
29 * xsettings.c (something_changedCB): C++ comments => C comments.
30 (init_gconf): Do not deal with any GLib file descriptors, xg_select
31 does that now.
32
33 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
34 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
35 (scroll_bar_button_cb): Remove.
36 (create_menus): C++ comments => C comments. Don't bind grab-notify
37 event.
38 (xg_create_scroll_bar): Don't bind button-press-event and
39 button-release-event.
40
41 * process.c: Include xgselect.h if defined (USE_GTK) ||
42 defined (HAVE_GCONF).
43 (wait_reading_process_output): Call xg_select for the same condition.
44
45 * xgselect.c (xg_select): New function to better integrate with
46 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
47
48 * xgselect.h: New file, declare xg_select, xgselect_initialize.
49
50 * Makefile.in (XOBJ): Add xgselect.o.
51
62a6e103
AS
522009-11-21 Andreas Schwab <schwab@linux-m68k.org>
53
54 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
55 ignored second argument. All callers changed.
56 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
57 (RE_STRING_CHAR_AND_LENGTH): Likewise.
58 * xdisp.c (string_char_and_length): Likewise.
59
b0ca0f33
DN
602009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
61
62 * xterm.c (x_new_font):
63 * print.c (print_object):
64 * cmds.c (Fself_insert_command): Move declarations before statements.
65
dd5a6279
CY
662009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
67
68 * s/cygwin.h: Remove unneeded linker flags.
69
4a8e097d
JD
702009-11-20 Jan Djärv <jan.h.d@swipnet.se>
71
0d1d0d26
JD
72 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
73
74 * xsettings.h: Declare xsettings_get_system_font.
75
76 * xsettings.c (xsettings_get_system_font): New function.
77 (init_gconf): No use initiating gconf unless we have Xft also.
78 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
79 HAVE_GCONF.
80
4a8e097d
JD
81 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
82 add a blank entry so it doesn't collapse into nothing.
83
8ab1650e
SM
842009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
85
86 * lread.c (Funintern): Comment out last change.
87
82c602f0
RS
882009-11-19 Richard Stallman <rms@gnu.org>
89
90 * lread.c (Funintern): Error if symbol is t or nil.
91
87e32266
SM
922009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
93
94 * insdel.c (make_gap_larger): Don't make as many assumptions about the
95 representation of Lisp integers.
96 Reported by MJ Chan <mjchan.inbox@gmail.com>.
97
1b9ac145
AS
982009-11-17 Andreas Schwab <schwab@linux-m68k.org>
99
100 * lisp.h: Remove declaration of Ffont_get_system_font.
101 * xfns.c: Move include of "xsettings.h".
102 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
103
dfb3c4c6
JD
1042009-11-17 Jan Djärv <jan.h.d@swipnet.se>
105
87e32266
SM
106 * xsettings.c (something_changedCB, Ffont_get_system_font):
107 Check use_system_font.
dfb3c4c6
JD
108 (syms_of_xsettings): DEFVAR font-use-system-font.
109
9370c1d8
AS
1102009-11-17 Andreas Schwab <schwab@linux-m68k.org>
111
25fe851a
AS
112 * xfns.c (x_default_font_parameter): Remove dead assignment.
113
9370c1d8
AS
114 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
115
637fa988
JD
1162009-11-17 Jan Djärv <jan.h.d@swipnet.se>
117
87e32266 118 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 119 not have FC_LCD_*. #define them if not there.
a6eb20d8 120
87e32266 121 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 122
637fa988
JD
123 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
124
125 * xterm.c (handle_one_xevent): Call xft_settings_event for
126 ClientMessage, PropertyNotify and DestroyNotify.
127 (x_term_init): If we have XFT, get DPI from Xft.dpi.
128 Call xsettings_initialize.
129
130 * xftfont.c (xftfont_fix_match): New function.
131 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
132 Call xftfont_fix_match after XftFontMatch.
133
134 * xfont.c (xfont_driver): Initialize all members.
135
87e32266
SM
136 * xfns.c (x_default_font_parameter):
137 Try font from Ffont_get_system_font.
637fa988
JD
138 Do not get font from x_default_parameter if we got one from
139 Ffont_get_system_font.
87e32266 140 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
141
142 * w32font.c (w32font_driver): Initialize all members.
143
144 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
145
146 * lisp.h: Declare syms_of_xsettings.
147
87e32266
SM
148 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
149 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
150
151 * ftfont.c (ftfont_filter_properties): New function.
152
153 * frame.c (x_set_font): Remove unused variable lval.
154
87e32266 155 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
156
157 * font.c (font_put_extra): Don't return if val is nil, it means
158 boolean option is off.
159 (font_parse_fcname): Collect all extra properties in extra_props
160 and call filter_properties for all drivers with extra_props and
161 font as parameter.
87e32266
SM
162 (font_open_entity): Do not use cache, it does not pick up new
163 fontconfig settings like hinting.
637fa988
JD
164 (font_load_for_lface): If spec had a name in it, store it in entity.
165
166 * emacs.c (main): Call syms_of_xsettings
167
168 * config.in: HAVE_GCONF is new.
169
170 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
171 xsettings.o is new.
172
5a942932
KH
1732009-11-17 Kenichi Handa <handa@m17n.org>
174
175 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
176 back to the default font in case that no suitable font is found.
177
b7c7a4d1
SM
1782009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
179
180 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
181 Suggested by Chad Brown <yandros@mit.edu>.
182 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
183
072f1e39
JD
1842009-11-16 Jan Djärv <jan.h.d@swipnet.se>
185
186 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
187
5d1e70a2
AS
1882009-11-14 Andreas Schwab <schwab@linux-m68k.org>
189
87e32266 190 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 191
a53cfbe5
JD
1922009-11-14 Jan Djärv <jan.h.d@swipnet.se>
193
473a99b7
JD
194 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
195 has a parent.
196
a53cfbe5
JD
197 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
198 dependency files in deps/. Include those files into Makefile.
199
200 * config.in: Generated (AUTO_DEPEND).
201
f04bb9b2
MA
2022009-11-13 Michael Albinus <michael.albinus@gmx.de>
203
b7c7a4d1 204 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
205 Vdbus_registered_functions_table, because it contains also
206 properties. Fix docstring.
b7c7a4d1 207 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 208
8f11f7ec
SM
2092009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
210
211 * alloc.c (mark_object): Don't reprocess marked strings.
212 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
213 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
214
8a605fe8
KH
2152009-11-13 Kenichi Handa <handa@m17n.org>
216
8f11f7ec 217 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
218 semantics of Vword_combining_categories.
219 (Vword_combining_categories): Describe the slight change of the
220 semantics.
221
241c4680
EZ
2222009-11-13 Eli Zaretskii <eliz@gnu.org>
223
224 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
225
226 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
227
5d58e44c
SM
2282009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
229
230 * xdisp.c (syms_of_xdisp): Fix typo in last change.
231
5e13f9d3
JB
2322009-11-12 Juanma Barranquero <lekktu@gmail.com>
233
234 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
235
cf54c754
DR
2362009-11-11 David Reitter <david.reitter@gmail.com>
237
238 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
239 variables to fix 2009-11-09 change.
240
a4ada374
DN
2412009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
242
91433552
DN
243 * process.c (ifflag_def): Make flag_sym constant.
244 (Fnetwork_interface_info): Use a constant pointer.
245 (ifflag_table):
246 * xfns.c (cursor_bits):
247 * xdisp.c (power_letter):
248 * termcap.c (speeds, esctab):
249 * sysdep.c (baud_convert):
250 * keyboard.c (lispy_accent_codes, modifier_names):
251 * image.c (xbm_format, xpm_format, pbm_format, png_format)
252 (jpeg_format, tiff_format, gif_format, svg_format)
253 (interlace_start, interlace_increment, gs_format):
254 * gtkutil.c (separator_names):
255 * fringe.c (swap_nibble):
256 * fns.c (base64_value_to_char, base64_char_to_value):
257 * fileio.c (make_temp_name_tbl):
258 * coding.c (suffixes): Make constant.
259
f4265f6c
DN
260 * frame.c (make_initial_frame):
261 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
262 build_string.
263 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
264
04420943
DN
265 * s/freebsd.h:
266 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
267
0a5d24ae
DN
268 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
269 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
270
a4ada374
DN
271 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
272 * xterm.c (syms_of_xterm):
273 * xfaces.c (syms_of_xfaces):
274 * xdisp.c (syms_of_xdisp):
275 * lread.c (syms_of_lread):
276 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
277 build_string.
91433552 278
a4ada374
DN
279 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
280
af98fc7f
SM
2812009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
282
8ab1650e 283 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 284
e90292a9
JD
2852009-11-10 Jan Djärv <jan.h.d@swipnet.se>
286
287 * keyboard.h: Declare timer_check.
288
289 * keyboard.c (timer_check_2): New function that does what the old
290 timer_check did.
291 (timer_check): Call timer_check_2 until -1 or a non-zero time is
292 returned, i.e. don't return -1 with timers pending.
293
294 * process.c: Remove extern declaration of timer_check.
295
296 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
297 even if timer_check returned -1.
298
af98fc7f
SM
299 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
300 xg_dialog_data.
e90292a9
JD
301 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
302 the event loop.
303 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
304 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
305 Destroy the dialog after xg_dialog_run.
306
045b83c0
SM
3072009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
308
309 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
310
1fb99a3a
JD
3112009-11-10 Jan Djärv <jan.h.d@swipnet.se>
312
313 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
314
04e452cb
JB
3152009-11-09 Juanma Barranquero <lekktu@gmail.com>
316
317 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
318
ef7417fd
SM
3192009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
320
321 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
322 w32menu.c, and nsmenu.m.
323 Simplify the obsolete case where position is nil.
324 (cleanup_popup_menu): New function, moved from nsmenu.m.
325 (struct skp): Remove slot `notreal'.
326 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
327 adjust callers.
328 (single_menu_item): Adjust call to parse_menu_item.
329 (syms_of_menu): Defsubr x-popup-menu.
330 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
331 (keymap_panes): Don't export any more.
332 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
333 (xmenu_show): Declare.
334 * keyboard.c (parse_menu_item): Remove arg `notreal'.
335 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
336 * keyboard.h (parse_menu_item): Update declaration.
337 * xmenu.c (Fx_popup_menu): Remove.
338 (syms_of_xmenu): Don't defsubr x-popup-menu.
339 * w32menu.c (Fx_popup_menu): Remove.
340 (syms_of_w32menu): Don't defsubr x-popup-menu.
341 * nsmenu.m (cleanup_popup_menu): Remove.
342 (ns_menu_show): Rename from ns_popup_menu and remove all the code
343 moved to menu.c's Fx_popup_menu.
344 (Fx_popup_menu): Remove.
345 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
346 menu_items (it's done in menu.c already).
347
424d6179
SM
3482009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
349
350 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
351 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
352
c0df13a6 3532009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
354
355 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 356 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
357 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
358 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
359
2de9f71c
SM
3602009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
361
362 Let integers use up 2 tags to give them one extra bit and thus double
363 their range.
364 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
365 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
366 New macros.
367 (enum Lisp_Type): Use them. Give explicit values.
368 (Lisp_Type_Limit): Remove.
369 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
370 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
371 Pay attention to USE_2_TAGS_FOR_INTS.
372 (INTEGERP): Use LISP_INT_TAG_P.
373 * fns.c (internal_equal): Simplify the default case.
374 (sxhash): Use case_Lisp_Int.
375 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
376 any more.
377 (Ftype_of): Use case_Lisp_Int.
378 (store_symval_forwarding): Take into account the fact that Ints can
379 now have more than one tag.
380 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
381 buffer_slot_type_mismatch):
382 * xfaces.c (face_attr_equal_p):
383 * print.c (print_object):
384 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
385 Use case_Lisp_Int.
386
323637a2
EZ
3872009-11-06 Eli Zaretskii <eliz@gnu.org>
388
7ac65b38
EZ
389 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
390
323637a2
EZ
391 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
392 warning.
393
e511451f
JD
3942009-11-06 Jan Djärv <jan.h.d@swipnet.se>
395
396 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
397
398 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
399
400 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
401 ButtonPressRelease and MotionNotify (bug#4870).
402
5e2327cf
DN
4032009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
404
5adc433e
DN
405 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
406
d67b4f80
DN
407 * xterm.c (syms_of_xterm):
408 * xselect.c (syms_of_xselect):
409 * xmenu.c (syms_of_xmenu):
410 * xfns.c (syms_of_xfns):
411 * xfaces.c (syms_of_xfaces):
412 * xdisp.c (syms_of_xdisp):
413 * window.c (syms_of_window):
414 * w32fns.c (syms_of_w32fns):
415 * undo.c (syms_of_undo):
416 * textprop.c (syms_of_textprop):
417 * terminal.c (syms_of_terminal):
418 * syntax.c (syms_of_syntax):
419 * sound.c (syms_of_sound):
420 * search.c (syms_of_search):
421 * print.c (syms_of_print):
422 * minibuf.c (syms_of_minibuf):
423 * macros.c (syms_of_macros):
424 * keymap.c (syms_of_keymap, initial_define_key)
425 (initial_define_lispy_key):
426 * keyboard.c (syms_of_keyboard):
427 * insdel.c (syms_of_insdel):
428 * image.c (syms_of_image):
429 * fringe.c (syms_of_fringe):
430 * frame.c (syms_of_frame):
431 * fontset.c (syms_of_fontset):
432 * fns.c (syms_of_fns):
433 * fns.c (syms_of_fns):
434 * fileio.c (syms_of_fileio):
435 * fileio.c (syms_of_fileio):
436 * eval.c (syms_of_eval):
437 * doc.c (syms_of_doc):
438 * dispnew.c (syms_of_display):
439 * dired.c (syms_of_dired):
440 * dbusbind.c (syms_of_dbusbind):
441 * data.c (syms_of_data):
442 * composite.c (syms_of_composite):
443 * coding.c (syms_of_coding):
444 * cmds.c (syms_of_cmds):
445 * charset.c (define_charset_internal, syms_of_character):
446 * ccl.c (syms_of_ccl):
447 * category.c (syms_of_category, init_category_once):
448 * casetab.c (syms_of_casetab):
449 * casefiddle.c (syms_of_casefiddle):
450 * callint.c (syms_of_callint):
451 * bytecode.c (syms_of_bytecode):
452 * buffer.c (keys_of_buffer, syms_of_buffer):
453 * alloc.c (syms_of_alloc):
454 * process.c (syms_of_process, init_process):
455 * lread.c (syms_of_lread, init_obarray):
456 * font.c (build_style_table):
457 * emacs.c (syms_of_emacs, main): Replace calls to intern with
458 intern_c_string, calls to make_pure_string with
459 make_pure_c_string. Use pure_cons instead of Fcons.
460
5e2327cf
DN
461 * process.c (socket_options): Make it const.
462 (set_socket_option, init_process): Use a const pointer.
463
464 * lread.c (intern_c_string): New function.
465 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
466 (defvar_int): Uset it. Make the name const char*.
467
468 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
469 (defvar_int): Update prototypes.
470 (DEFUN, EXFUN): Support for prototypes is now required.
471 (intern_c_string): New prototype.
472 (struct Lisp_Subr): Make symbol_name constant.
473
474 * font.c (struct table_entry): Remove unused member. Make NAMES
475 constant.
476 (weight_table, slant_table, width_table): Make constant.
477
478 * emacs.c (struct standard_args): Make name and longname constant.
479
480 * character.h (DEFSYM): Use intern_c_string.
481
a56eaaef
DN
4822009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
483
484 * alloc.c (make_pure_c_string): New function.
485
486 * eval.c (Fautoload): Purecopy all arguments.
487
f6a07420
KH
4882009-11-05 Kenichi Handa <handa@m17n.org>
489
490 * fileio.c (Finsert_file_contents): Be sure set coding-system of
491 the buffer in case of replace.
492
5d28d4b1
DN
4932009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
494
495 * puresize.h (BASE_PURESIZE): Increase to 1620000.
496
b349d111
SM
4972009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
498
d528b1ce
SM
499 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
500 when applicable (bug#4851).
501
b349d111
SM
502 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
503 (P_): Support for prototypes is now required.
504
c38eb027
CY
5052009-10-31 Chong Yidong <cyd@stupidchicken.com>
506
507 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
508 (Bug#4827).
509
0405f8d9
EZ
5102009-10-30 Eli Zaretskii <eliz@gnu.org>
511
d528b1ce 512 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 513
ca0a881a
DN
5142009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
515
516 * puresize.h (BASE_PURESIZE): Increase to 1470000.
517
d528b1ce
SM
518 * lread.c (Fload): Purecopy the file name when building
519 Vpreloaded_file_list.
ca0a881a 520
47e0e0e4
JR
5212009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
522
523 * w32fns.c (syms_of_w32fns): Change default value of
524 w32-scroll-lock-modifier to nil. (Bug#2827)
525
057bce6f
JB
5262009-10-26 Juanma Barranquero <lekktu@gmail.com>
527
782a943e 528 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 529
242bc74c
AS
5302009-10-26 Andreas Schwab <schwab@redhat.com>
531
532 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
533
522d013a
JB
5342009-10-26 Juanma Barranquero <lekktu@gmail.com>
535
536 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
537 For delta < 0, skip check that only makes sense when the mini-window
538 is going to be enlarged. (Bug#4534)
539
18060980
CY
5402009-10-25 Chong Yidong <cyd@stupidchicken.com>
541
542 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
543 string in menu maps (Bug#4471).
544
fec8f0fe
CY
5452009-10-24 Chong Yidong <cyd@stupidchicken.com>
546
547 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
548 FRAME_NS_VIEW on terminal frames (Bug#4765).
549
10d66ec0
AS
5502009-10-24 Andreas Schwab <schwab@linux-m68k.org>
551
1cae01f7
AS
552 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
553 DBUS_TYPE_UINTnn separately to get proper sign extension.
554
58a12889
AS
555 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
556 can properly handle unsigned types.
d528b1ce 557 (make_uid, make_gid): Remove.
58a12889 558
987c9327
AS
559 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
560 types again.
561
522d013a 562 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
563 (system_process_attributes): Likewise.
564
905a9ed3
DN
5652009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
566
567 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
568
569 * eval.c (Fautoload): Purecopy the filename. Simplify.
570
571 * category.c (Fdefine_category): Purecopy docstring.
572
a599b3e8
AS
5732009-10-23 Andreas Schwab <schwab@linux-m68k.org>
574
7b792fc9
AS
575 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
576
a599b3e8
AS
577 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
578
b35ac83e
CY
5792009-10-23 Chong Yidong <cyd@stupidchicken.com>
580
581 * window.c (Fwindow_edges, Fwindow_pixel_edges)
582 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
583 (Bug#4775).
584
e8903e00
SM
5852009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
586
587 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
588 (init_fileio_once):
589 * lisp.h (init_fileio_once): Remove.
590 * emacs.c (main): Don't call init_fileio_once.
591
8f43cbf3
DN
5922009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
593
594 * puresize.h (BASE_PURESIZE): Increase to 1430000.
595
26898943
AS
5962009-10-21 Andreas Schwab <schwab@linux-m68k.org>
597
598 * doprnt.c (doprnt): Fix overflow check.
599
5c646d5a
JD
6002009-10-21 Jan Djärv <jan.h.d@swipnet.se>
601
3132a7ea
JD
602 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
603
5c646d5a
JD
604 * xterm.h (x_wait_for_event): Declare it.
605
606 * xterm.c (pending_event_wait): New variable.
607 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
608 see pending_event_wait.eventtype.
609 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
610 (x_new_font): Call change_frame_size with new rows/columns before we
611 try to resize the frame.
5c646d5a 612 (x_wait_for_event): New function.
d528b1ce
SM
613 (x_set_window_size_1): Don't change gravity unless change_gravity
614 is set.
5c646d5a
JD
615 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
616 don't change frame size, instead wait for the ConfigureNotify.
617 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
618 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
619 (x_initialize): Initialize pending_event_wait.
620
621 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
622 size.
623
624 * widget.c (EmacsFrameSetValues): Add comment.
625 (EmacsFrameSetCharSize): Just call x_set_window_size.
626
627 * gtkutil.c (xg_frame_set_char_size): Flush events and call
628 x_wait_for_event.
d528b1ce 629 (flush_and_sync): Remove again.
5c646d5a
JD
630 (xg_get_font_name): Suggest monospace if no previous font is known.
631
e9c1637d
SM
6322009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
633
634 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 635 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 636
5a72cccb
YM
6372009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
638
639 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
640 processing pending events when event is filtered for input method.
ab04798f 641 (Bug#3681)
5a72cccb 642
2629aa37
JB
6432009-10-20 Juanma Barranquero <lekktu@gmail.com>
644
645 * fns.c: Add #endif accidentally removed in previous change.
646
c3417a74
DN
6472009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
648
649 * fns.c: Remove code for unsupported system: MAC_OS.
650 * image.c: Likewise. Include setjmp.h.
651
9685cef2
JD
6522009-10-19 Jan Djärv <jan.h.d@swipnet.se>
653
654 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
655 pixel -1 (bug #4742).
656
d7306fe6
DN
6572009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
658
019d2c4c
DN
659 * process.c (create_pty): Remove conditionals for no longer
660 supported systems: UNIPLUS and RTU.
661
ee6bacd4
DN
662 * xterm.c:
663 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
664
d7306fe6
DN
665 * alloc.c: Do not define struct catchtag.
666 * eval.c: Move struct catchtag definition ...
667 * lisp.h: ... here.
668
669 * image.c: Move png.h #include earlier to avoid warnings.
670
671 * xterm.c:
672 * xsmfns.c:
673 * xselect.c:
674 * xrdb.c:
675 * xmenu.c:
676 * xftfont.c:
677 * xfont.c:
678 * xfns.c:
679 * xfaces.c:
680 * xdisp.c:
681 * window.c:
682 * widget.c:
683 * w32xfns.c:
684 * w32uniscribe.c:
685 * w32term.c:
686 * w32select.c:
687 * w32reg.c:
688 * w32proc.c:
689 * w32menu.c:
690 * w32inevt.c:
691 * w32heap.c:
692 * w32font.c:
693 * w32fns.c:
694 * w32console.c:
695 * w32.c:
696 * w16select.c:
697 * vm-limit.c:
698 * unexsol.c:
699 * unexec.c:
700 * unexcw.c:
701 * unexaix.c:
702 * undo.c:
703 * tparam.c:
704 * textprop.c:
705 * terminfo.c:
706 * terminal.c:
707 * termcap.c:
708 * term.c:
709 * syntax.c:
710 * sound.c:
711 * sheap.c:
712 * search.c:
713 * scroll.c:
714 * region-cache.c:
715 * regex.c:
716 * ralloc.c:
717 * process.c:
718 * print.c:
b024548b
DN
719 * nsterm.m:
720 * nsselect.m:
721 * nsmenu.m:
722 * nsimage.m:
723 * nsfont.m:
724 * nsfns.m:
d7306fe6
DN
725 * msdos.c:
726 * minibuf.c:
727 * menu.c:
728 * marker.c:
729 * macros.c:
730 * keymap.c:
731 * keyboard.c:
732 * intervals.c:
733 * insdel.c:
734 * indent.c:
735 * gtkutil.c:
736 * ftxfont.c:
737 * ftfont.c:
738 * fringe.c:
739 * frame.c:
740 * fontset.c:
741 * font.c:
742 * fns.c:
743 * floatfns.c:
744 * filelock.c:
745 * fileio.c:
746 * emacs.c:
747 * editfns.c:
748 * dosfns.c:
749 * doprnt.c:
750 * doc.c:
751 * dispnew.c:
752 * dired.c:
753 * dbusbind.c:
754 * data.c:
755 * composite.c:
756 * coding.c:
757 * cmds.c:
758 * cm.c:
759 * chartab.c:
760 * charset.c:
761 * character.c:
762 * ccl.c:
763 * category.c:
764 * casetab.c:
765 * casefiddle.c:
766 * callproc.c:
767 * callint.c:
768 * bytecode.c:
769 * buffer.c:
770 * atimer.c: Include setjmp.h. (Bug#4643)
771
fd5f21e6
SM
7722009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
773
4c0354d7
SM
774 Remove leftover table unibyte_to_multibyte_table.
775 * character.c (unibyte_to_multibyte_table): Remove.
776 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
777 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
778 * character.h (UNIBYTE_TO_CHAR): New macro.
779 (MAKE_CHAR_MULTIBYTE): Use it.
780 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
781 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
782 (message_dolog, set_message_1):
783 * search.c (Freplace_match):
784 * editfns.c (Fcompare_buffer_substrings):
785 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
786 (concat):
787 * insdel.c (copy_text, count_size_as_multibyte):
788 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
789 * term.c (produce_glyphs):
790 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
791 * regex.c (RE_CHAR_TO_MULTIBYTE):
792 * cmds.c (internal_self_insert):
793 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
794
fd5f21e6
SM
795 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
796
4418646e
DN
7972009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
798
799 * puresize.h (BASE_PURESIZE): Increase to 1310000.
800
35f5c1d2
JB
8012009-10-16 Juanma Barranquero <lekktu@gmail.com>
802
803 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
804
a0cd8f6b
AR
8052009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
806
807 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
808 still needed under Tiger.
809
810 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
811
812 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
813 __Apple__.
814
815 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
816
01a8d3fa
KH
8172009-10-15 Kenichi Handa <handa@m17n.org>
818
819 * print.c (print_object): Escape a symbol like "2E10" too.
820
bf6c75c9 8212009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
822
823 Cleanups and changes for 64-bit compile under Snow Leopard.
824 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
825
826 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
827
c5959062 828 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
829 (ns_findfonts, nsfont_list_family): Use long format in printf, and
830 cast argument.
831 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 832 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
833
834 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
835
836 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
837 where appropriate.
838
839 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
840 where appropriate.
6e4780c5
JB
841 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
842 Use stringWithUTF8String.
bf6c75c9
AR
843 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
844
6e4780c5
JB
845 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
846 Add formal protocol mention to inheritance.
bf6c75c9
AR
847 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
848
6e4780c5
JB
849 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
850 Fix printf format.
bf6c75c9
AR
851 (ns_query_color): Use CGFloat where appropriate.
852 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
853 (EmacsScroller-mouseDown:) Use long format in printf, and cast
854 argument.
855
3d87f118
AR
856 * config.in (NS_HAVE_NSINTEGER): Drop.
857
a95c8102
AR
858 * dbusbind.c (dbus-method-return-internal)
859 (dbus-method-error-internal): Use long format in printf, and cast
860 argument.
861
862 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
863 in printf, and cast argument.
864
6873acca 865 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
866 cast argument.
867
9ec6f100
GM
8682009-10-11 Glenn Morris <rgm@gnu.org>
869
870 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
871
5be883cd
JD
8722009-10-08 Jan Djärv <jan.h.d@swipnet.se>
873
874 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
875 menu bar with a small width so it doesn't enlarge the frame.
876
d7a39b51
JB
8772009-10-08 Juanma Barranquero <lekktu@gmail.com>
878
879 * fontset.c (Fset_fontset_font): Fix typos in error messages.
880
0c2b6f8e
GM
8812009-10-06 Glenn Morris <rgm@gnu.org>
882
883 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
884 SOME_MACHINE_LISP (this enters indirectly via DOC).
885
e02131a2
EZ
8862009-10-05 Eli Zaretskii <eliz@gnu.org>
887
888 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
889
b4744254
EZ
8902009-10-04 Eli Zaretskii <eliz@gnu.org>
891
892 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
893 Doc fix.
894
dbf64827
JB
8952009-10-03 Martin Rudalics <rudalics@gmx.at>
896
897 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
898
e9a0aef8
MA
8992009-10-02 Michael Albinus <michael.albinus@gmx.de>
900
d528b1ce 901 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
902 used anymore outside fileio.c.
903
904 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
905
64eb2b56
JB
9062009-10-01 Juanma Barranquero <lekktu@gmail.com>
907
908 * lisp.h (Qdelete_directory_internal):
909 Declare, instead of Qdelete_directory.
910
911 * w32fns.c (Fsystem_move_file_to_trash): Use it.
912
9d28c33e
SM
9132009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
914
915 * eval.c (Fcalled_interactively_p): Add `kind' argument.
916
9d8f3bd9
MA
9172009-10-01 Michael Albinus <michael.albinus@gmx.de>
918
9d28c33e 919 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
920 Fdelete_directory. It is not a command anymore. It has no file
921 name handler.
922
9694740b
SM
9232009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
924
925 * xdisp.c (get_next_display_element): Use an enum in last change.
926
748e162f
KH
9272009-09-28 Kenichi Handa <handa@m17n.org>
928
9694740b 929 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
930 unibyte_display_via_language_environment in handling
931 Vnobreak_char_display.
932
17efd58d
AR
9332009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
934
935 * nsterm.h (ns_app_name): New extern variable.
936
937 * nsterm.m (ns_app_name): New variable.
938 (ns_term_init): Set and use it.
939 (ns_term_shutdown): Use it.
940
941 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
942 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
943
944 * nsfns.m (ns_set_name_iconic, ns_set_name)
945 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
946 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
947
9694740b
SM
948 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
949 Remove double-casting in client_data comparison.
31c2d412 950
3208cb35
YM
9512009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
952
953 * keyboard.c (make_lispy_event): Remember last wheel direction.
954 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
955
b7d552d6
GM
9562009-09-26 Glenn Morris <rgm@gnu.org>
957
958 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
959 internal.elc. Add term/pc-win.elc.
960 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
961 term/x-win.elc.
962 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
963 term/w32-win.elc.
964 (NS_SUPPORT): New.
965 (lisp): Add NS_SUPPORT.
966 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
967
4ff670a8
DR
9682009-09-25 David Reitter <david.reitter@gmail.com>
969
970 * nsmenu.m (EmacsMenu-clear): Recognize application menu
971 on Mac OS X 10.6+ (bug#4513).
972
feabfb6c
JB
9732009-09-24 Juanma Barranquero <lekktu@gmail.com>
974
975 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
976 some parts of Emacs code (like font selection) don't grok them.
977 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 978
de59072a
AS
9792009-09-24 Andreas Schwab <schwab@redhat.com>
980
981 * coding.c (decode_coding_iso_2022): Fix operator precedence.
982
a489517b
JB
9832009-09-24 Juanma Barranquero <lekktu@gmail.com>
984
985 * dired.c (Fdirectory_files): Fix typo in docstring.
986
0592970c
AR
9872009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
988
989 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
990 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
991 (EmacsScroller-setPosition:portion:whole:): Remove -display call
992 under GNUstep.
993 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
994
995 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
996 glyph advancement.
997
48e8a88b
AR
9982009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
999
1000 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1001 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1002
1003 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1004 deleted (bug #4492).
1005
e14f0a78
AR
1006 * nsfont.m (Vns_reg_to_script): New lisp variable.
1007 (syms_of_nsfont): Declare it.
1008 (ns_registry_to_script): New function.
1009 (ns_get_req_script): Call it.
1010 (ns_findfonts): Don't give up on non-unicode registry.
1011
1012 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1013
5b650faa
SM
10142009-09-20 Tom Tromey <tromey@redhat.com>
1015
1016 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1017 batch mode (bug#4228).
1018
a489517b 10192009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1020
1021 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1022 carefully. (Bug #4339)
0bae4e09 1023
fcfe06f3
CY
10242009-09-18 Chong Yidong <cyd@stupidchicken.com>
1025
d798ba87 1026 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1027
31642728
AR
10282009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1029
1030 * emacs.c (inhibit_x_resources): Update doc string for NS.
1031 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1032 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1033
1034 * nsterm.h (ns_no_defaults): Remove.
1035
1036 * nsterm.m (ns_no_defaults): Remove.
1037 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1038 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1039 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1040 don't update the NSWindow itself.
1041 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1042 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1043
1044 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1045 ns_use_qd_smoothing.
1046
1047 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1048 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1049 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1050 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1051
8686ac71
JB
10522009-09-17 Juanma Barranquero <lekktu@gmail.com>
1053
1054 * emacs.c (inhibit_x_resources): New variable.
1055 (main) [HAVE_NS]: Don't process --quick command line option.
1056 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1057
1058 * lisp.h (inhibit_x_resources): Declare it extern.
1059
1060 * w32reg.c (x_get_string_resource):
1061 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1062
e227ba05
EZ
10632009-09-17 Eli Zaretskii <eliz@gnu.org>
1064
362654a6
JB
1065 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1066 Add lisp/term/internal.elc.
e227ba05 1067
742d40e8
SM
10682009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1069
1070 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1071 (bug#4461).
1072
005bd5a2
DN
10732009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1074
1075 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1076
1077 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1078 (OBJECTS_MACHINE): Remove, unused.
1079
f9af9719
SM
10802009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1081
1082 * frame.c (x_get_resource_string): Remove unused.
1083
0307c7d2
JD
10842009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1085
1086 * xterm.c (x_new_font): Call change_frame_size before calling
1087 x_set_window_size, in case frame size won't change.
1088
1089 * frame.c (x_set_font): Remove dead code.
1090
428b13d6
SM
10912009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1092
1093 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1094
5766c380
SM
10952009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1096
1097 * lread.c (Fload): Don't output a message after loading an obsolete
1098 package any more (done in Lisp now).
1099
2fd0161b
CY
11002009-09-12 Chong Yidong <cyd@stupidchicken.com>
1101
1102 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1103
bc5e75b6
SM
11042009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1105
1106 * keymap.c (Fwhere_is_internal): Use nconc2.
1107
c31c985e
AM
11082009-09-11 Alan Mackenzie <acm@muc.de>
1109
1110 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1111 batch mode.
1112
78012bd2
AS
11132009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1114
1115 * xdisp.c (display_mode_element): Detect cycles.
1116
9d889332
SM
11172009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1118
1119 * keymap.c (where_is_internal): Don't erroneously return nil right after
1120 filling the cache.
1121 (where_is_internal_1): Fix up typo.
1122
7ab5d780
GM
11232009-09-11 Glenn Morris <rgm@gnu.org>
1124
1125 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1126 share a common doc-string.
1127
5238a749
SM
11282009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1129
66d77eda
SM
1130 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1131 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1132
5238a749
SM
1133 * keymap.c (QCadvertised_binding): New constant.
1134 (syms_of_keymap): Initialize it.
1135 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1136 if applicable.
1137
19f48442
SM
11382009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1139
50d4ba39
SM
1140 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1141 (parse_menu_item): Streamline since bindings are recomputed all the
1142 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1143 more and don't support lmenu's menu-alias any more either.
1144
a88a5372
SM
1145 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1146 (where_is_internal): Strip it down to only traverse the keymaps.
1147 Move the cache handling from Fwhere_is_internal to here.
1148 (Fwhere_is_internal): Move the handling of remapping and the choice of
1149 the best binding from where_is_internal to here.
1150 Unify the cached/noncached paths, so remapping is also handled
1151 correctly when the cache is used, and so the cache can be used to
1152 speed up remap-handling when applicable.
1153 Give preference to non-remapped bindings.
1154 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1155 non-remapped bindings.
1156 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1157 command remapping.
1158
19f48442
SM
1159 * xdisp.c (display_mode_element): Move list length limit from 50 to
1160 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1161
599498c3 11622009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1163
1164 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1165
f9b7b5ac
SM
11662009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1167
a53af587
JB
1168 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1169 (Bug#4334)
1170
f9b7b5ac
SM
1171 * keymap.c (where_is_internal): Filter out shadowed remappings.
1172 Assume that where_is_internal returns unshadowed bindings to simplify
1173 the code and get rid of the gotos. Use ASIZE.
1174
04f4b72d
JD
11752009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1176
4da146f2
JD
1177 * xterm.c (x_focus_changed): If we get a focusout and pointer
1178 is invisible, make it visible.
1179
04f4b72d
JD
1180 * xterm.h: Remove condition for declaration of
1181 x_*_window_to_frame.
1182
7cef7ce3
SM
11832009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1184
1185 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1186 initial terminal as well.
1187
a54fa5b7
JD
11882009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1189
1190 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1191 x_menubar_window_to_frame.
a54fa5b7
JD
1192
1193 * xterm.c: Remove declarations also in xterm.h
1194 (XTmouse_position): Do not return valid positions
1195 for clicks in the menubar and the toolbar for Gtk+.
1196
1197 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1198 if the widget for the event has the same top level as a frame,
1199 return the frame.
1200 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1201 internal windows, bug #4122.
1202 (x_non_menubar_window_to_frame): Remove.
1203
5a021dd0
GM
12042009-09-02 Glenn Morris <rgm@gnu.org>
1205
1206 * buffer.c (default-major-mode): Move most of the doc from here...
1207 (major-mode): ... to here.
1208
548fe2f3
NR
12092009-08-30 Nick Roberts <nickrob@snap.net.nz>
1210
1211 * process.c (wait_reading_process_output): Keep the descriptor
1212 when pty is used by a non-child process, e.g., in I/O buffer of
1213 GDB this allows inferior to be restarted.
1214
e0840eef
EZ
12152009-08-29 Eli Zaretskii <eliz@gnu.org>
1216
1217 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1218 both branches into one.
1219
82e98df4
SM
12202009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1221
1222 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1223 (main): Use enable-multibyte-characters rather than
1224 default-enable-multibyte-characters. Output a warning message when
1225 running a unibyte session.
1226
890617cb
YM
12272009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1228
1229 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1230 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1231 (copy_data_segment): Also copy __program_vars section.
1232 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1233 (dump_it) [LC_DYLD_INFO]: Use it.
1234
1235 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1236
e7adeadc
EZ
12372009-08-28 Eli Zaretskii <eliz@gnu.org>
1238
1239 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1240 $(SRC)/buildobj.h.
1241 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1242 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1243 $(SRC)/buildobj.h.
1244 (clean): Add buildobj.h.
1245
3ed8bbdc
TZ
12462009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1247
1248 * print.c (print_object): Set escapeflag to 1 when printing
1249 hashtable keys and values.
1250
155a6764
SM
12512009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1252
1253 * lread.c (read_integer): Use doubles (and potentially return a float
1254 number) as we do in string-to-number.
1255 (read1): Use strtol to read integers, signal errors on strtol's
1256 overflow and use floats if strtol's output is too large for
1257 Elisp integers.
1258
877610de
EZ
12592009-08-27 Eli Zaretskii <eliz@gnu.org>
1260
1261 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1262 (make-buildobj-SH): Fix last change.
1263 (SRC): Move to before where it's first used.
1264
ef73e7be
KH
12652009-08-27 Kenichi Handa <handa@m17n.org>
1266
550c8289
KH
1267 * process.c (send_process): Use encode_coding_object instead of
1268 encode_coding_string to perform eol-conversion even if the string
1269 is unibyte.
1270
60afa08d
KH
1271 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1272 character.
1273
ef73e7be 1274 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1275 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1276
7b3a82d7
DN
12772009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1278
5654bf63
DN
1279 * callproc.c (Fcall_process): Remove always true #if.
1280
7b3a82d7
DN
1281 * lisp.h: Replace #if 0 code for checking with text pointing to
1282 the --enable-checking configure flag.
1283
1284 * emacs.c (main): Mention the --enable-profiling configure flag
1285 instead of using CFLAGS.
1286
878bde49
KR
12872009-08-26 Ken Raeburn <raeburn@raeburn.org>
1288
1289 * Makefile.in (buildobj.h): New target.
1290 (doc.o): Depend on it.
1291 (temacs${EXEEXT}): Don't generate buildobj.lst.
1292 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1293 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1294 ($(BLD)/doc.$(O)): Depend on it.
1295 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1296 provided by Eli Zaretskii.)
1297 ($(TEMACS)): Don't generate buildobj.lst.
1298 * doc.c: Include buildobj.h.
1299 (buildobj): New static variable.
1300 (Fsnarf_documentation): Use it, instead of opening and reading
1301 buildobj.lst.
1302
1574224c
MA
13032009-08-25 Michael Albinus <michael.albinus@gmx.de>
1304
1305 * dbusbind.c (Fdbus_call_method)
1306 (Fdbus_call_method_asynchronously): Use English numeric format for
1307 timeout values in doc string.
1308
d9da2f45
KH
13092009-08-25 Kenichi Handa <handa@m17n.org>
1310
ef73e7be
KH
1311 * alloc.c (mark_char_table): New function.
1312 (mark_object): Use mark_char_table for a char-table.
1313
d9da2f45
KH
1314 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1315 (CHAR_TABLE_REF): Use it.
1316
c8edcc01
KR
13172009-08-23 Ken Raeburn <raeburn@raeburn.org>
1318
1319 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1320 before invoking the newly build emacs to check for load-path
1321 shadowing.
1322
7763401b
GM
13232009-08-22 Glenn Morris <rgm@gnu.org>
1324
1325 * Makefile.in (bootstrap_exe): New variable.
1326 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1327 Use ${bootstrap_exe}.
1328
729eadda
EZ
13292009-08-22 Eli Zaretskii <eliz@gnu.org>
1330
1331 * coding.h (encode_coding_string): Don't encode unibyte strings.
1332 (Bug#4047)
1333
eb4c6ace
MA
13342009-08-22 Michael Albinus <michael.albinus@gmx.de>
1335
1336 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1337
1338 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1339 intended as hotfix only.
1340 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1341
36e34d1b
AR
13422009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1343
1344 * nsterm.m (ns_get_color): Update documentation properly for last
1345 change, and clean up loose ends in the code left by it. Fix
1346 longstanding bug with 16-bit hex parsing, and add support for
1347 yet another X11 format (rgb:r/g/b) for compatibility.
1348 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1349 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1350
f983eb8a
SM
13512009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1352
1353 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1354
3f56d3c6
MA
13552009-08-20 Michael Albinus <michael.albinus@gmx.de>
1356
1357 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1358 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1359 (xd_initialize, xd_pending_messages): Check, whether
1360 $DBUS_SESSION_BUS_ADDRESS is set.
1361
fb641d68
YM
13622009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1363
1364 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1365
1366 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1367
cf59a374
GM
13682009-08-20 Glenn Morris <rgm@gnu.org>
1369
1370 * emacs.c (system-type): Doc fix.
1371
1373f3be
SM
13722009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1373
1374 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1375 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1376
058ed861
MA
13772009-08-18 Michael Albinus <michael.albinus@gmx.de>
1378
1373f3be
SM
1379 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1380 New functions.
058ed861
MA
1381 (xd_initialize): Revert change from 2009-08-16.
1382
563a866e 13832009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1384
1385 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1386 font-group vector, return nil.
5fc05db0 1387
e42bdf01
CY
13882009-08-17 Chong Yidong <cyd@stupidchicken.com>
1389
1390 * process.c (status_notify): Don't perform redisplay.
1391 (Fdelete_process, list_processes_1, process_send_signal):
1392 Expliticly perform redisplay.
1393 (wait_reading_process_output): Always check process status, but
1394 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1395
4230ab74
KR
13962009-08-17 Ken Raeburn <raeburn@raeburn.org>
1397
1373f3be 1398 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1399 (XFLOAT_INIT): New macro for storing a float value.
1400 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1401 * fns.c (sxhash): Copy out the value of a float in order to
1402 examine its bytes.
1403 * dbusbind.c (xd_append_arg): Likewise.
1404
4230ab74
KR
1405 * emacs.c (main): Don't call syms_of_data twice.
1406
a0645cdd
MA
14072009-08-16 Michael Albinus <michael.albinus@gmx.de>
1408
1409 * dbusbind.c (xd_initialize): Add connection file descriptor to
1410 input_wait_mask, in order to let select() detect, whether a new
1411 message has been arrived.
ca4f31ea 1412 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1413
485db0ba
MA
14142009-08-15 Michael Albinus <michael.albinus@gmx.de>
1415
1373f3be
SM
1416 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1417 New functions.
485db0ba
MA
1418
1419 * lisp.h (xd_pending_messages): Declare.
1420
1421 * keyboard.c (readable_events): Call xd_pending_messages.
1422
b5b98ff4
CY
14232009-08-15 Chong Yidong <cyd@stupidchicken.com>
1424
1373f3be 1425 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1426
f8354c6e
CY
1427 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1428
b5b98ff4
CY
1429 * buffer.c (set_buffer_internal_1)
1430 (swap_out_buffer_local_variables): Check for unbound local
1431 variables (Bug#4138).
1432
8b9fc636
EZ
14332009-08-14 Eli Zaretskii <eliz@gnu.org>
1434
1435 * process.c (create_pty): Fix last change.
1436
ce959360
CY
14372009-08-13 Chong Yidong <cyd@stupidchicken.com>
1438
1439 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1440 (xbm_load_image): Caller changed.
64b807c9 1441 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1442
c7baf7e9
NR
14432009-08-13 Nick Roberts <nickrob@snap.net.nz>
1444
1445 * process.c (create_pty): New function.
1446 (Fstart_process): Use it to allow Emacs to just associate a pty
1447 with the buffer. See associated change in gdb-mi.el.
1448 (list_processes_1): Deal with no program name.
1449 (start_process_unwind): Use pid == -2 to mean no process.
1450
1ac9108a
SM
14512009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1452
1453 * cmds.c (nonundocount): New global variable.
1454 (keys_of_cmds): Initialize it.
1455 (Fself_insert_command): Use it to combine upto 20 sequential chars
1456 into a single undo entry, just like the Qself_insert_command code in
1457 keyboard.c does.
1458 Call frame_make_pointer_invisible, also like the Qself_insert_command
1459 code in keyboard.c does.
1460 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1461 than its own local replacement for it.
1462
e267324c
KR
14632009-08-10 Ken Raeburn <raeburn@raeburn.org>
1464
1ac9108a 1465 * fns.c (concat): Don't re-set string length to its current value.
77437343 1466
1ac9108a
SM
1467 * coding.h (decode_coding_string, encode_coding_string):
1468 Use SBYTES macro.
f0bed503 1469
1ac9108a 1470 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1471 (doprnt): Merge with doprnt1, discarding lispstrings code.
1472 * lisp.h (doprnt_lisp): Don't declare.
1473
416e006d
JL
14742009-08-07 Juri Linkov <juri@jurta.org>
1475
1476 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1477
6f7d5780
DN
14782009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1479
1480 * print.c (syms_of_print): Undo previous change.
1481
f19a0f5b
TZ
14822009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1483
1484 * lread.c (read1, syms_of_lread): Read hashtables back from the
1485 readable format.
1486
1487 * print.c (print_preprocess, print_object): Print hashtables fully
1488 and readably.
1489 (syms_of_print): Provide 'hashtable-print-readable.
1490
b9173dc2
AR
14912009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1492
1493 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1494 no family set.
1495 (nsfont_open): Handle case when entity has no family.
1496
1586503c
AR
14972009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1498
1499 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1500 element, not a list, for match case.
1501
087048cd
KH
15022009-07-28 Kenichi Handa <handa@m17n.org>
1503
1504 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1505 rigidly.
1506
1507 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1508 font_parse_xlfd. Check font properties more rigidly.
1509
780c2506
DN
15102009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1511
31fd7c5c
JB
1512 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1513 bsd-common.h.
780c2506 1514
a8c0cc18
KH
15152009-07-27 Kenichi Handa <handa@m17n.org>
1516
1517 * xfaces.c (face_with_height): Call font_clear_prop.
1518
4fbe2306
CY
15192009-07-26 Chong Yidong <cyd@stupidchicken.com>
1520
111d9af3
CY
1521 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1522
1523 * xterm.c (x_term_init): Use Qx.
1524
4fbe2306
CY
1525 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1526
1ac9108a 1527 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1528 (ns_get_color): Revert 2009-07-16 change.
1529
beb0b7f9
EZ
15302009-07-25 Eli Zaretskii <eliz@gnu.org>
1531
1532 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1533 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1534
2baf5e76
KR
15352009-07-25 Ken Raeburn <raeburn@raeburn.org>
1536
1ac9108a
SM
1537 * coding.h (decode_coding_string, encode_coding_string):
1538 Use SCHARS macro.
8890e5f5 1539
2baf5e76 1540 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1541 (load_depth): Delete.
2baf5e76
KR
1542 (Qload_in_progress): New variable.
1543 (load_unwind): Don't reference load_depth or load_in_progress.
1544 (Fload): Likewise; specbind Qload_in_progress instead.
1545 (init_lread): Don't initialize load_depth.
1546 (syms_of_lread): Initialize and protect Qload_in_progress.
1547
1395c6f5
AR
15482009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1549
1550 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1551
4e2f36cf
AR
15522009-07-23 Yavor Doganov <yavor@gnu.org>
1553
1554 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1555
5dd9a6f7
AR
15562009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1557
1558 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1559 Bugs 3792, 3720, 2402.
1560 (ns_lookup_indexed_color): Check for bad index.
1561 (ns_index_color): Init unused slot to 0.
1562 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1563 Bug 3714, possibly 3082.
5dd9a6f7 1564
c902b920
JR
15652009-07-22 Jason Rumney <jasonr@gnu.org>
1566
1ac9108a
SM
1567 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1568 Position IME window at cursor (Bug#2570).
c902b920
JR
1569 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1570 (globals_of_w32fns): Dynamically load functions required above.
1571
1572 * w32term.c (w32_draw_window_cursor): Send message to reposition
1573 any IME window.
1574
090101cf
CY
15752009-07-21 Chong Yidong <cyd@stupidchicken.com>
1576
1577 * fileio.c: Revert 2009-07-16 changes.
1578 (Vauto_save_include_big_deletions): New variable.
1579 (Fdo_auto_save): Disable auto-save only if
1580 auto-save-include-big-deletions is nil.
1581
e6583e3d
CY
15822009-07-21 Chong Yidong <cyd@stupidchicken.com>
1583
1584 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1585 the overflowed pixels into account (Bug#3879).
1586
ece435a5
KR
15872009-07-21 Ken Raeburn <raeburn@raeburn.org>
1588
1589 * lread.c (load_depth): New variable.
1590 (Fload, load_unwind, init_lread): Set it to the load recursion
1591 depth; set load_in_progress as a simple boolean based on the
1592 current load_depth. (Bug#3892)
1593
40b2d973
AR
15942009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1595
1596 * nsfont.m (ns_has_attribute): Remove.
1597 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1598
10be7e0d
JL
15992009-07-18 Juri Linkov <juri@jurta.org>
1600
1601 * process.c (Fset_process_query_on_exit_flag): Mention killing
1602 a buffer in docstring.
1603
fa055055
KH
16042009-07-17 Kenichi Handa <handa@m17n.org>
1605
1606 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1607
042f7b69
YM
16082009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1609
1610 * nsfns.m (Fns_set_alpha): Remove function.
1611 (syms_of_nsfns): Don't defsubr it.
1612
1613 * nsterm.m (ns_get_color): Remove incompatible color formats.
1614 (ns_color_to_lisp): Generate #rrggbb color format string.
1615
4be941e3
RS
16162009-07-16 Richard Stallman <rms@gnu.org>
1617
1618 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1619 (Fset_buffer_auto_saved): Handle save_length = -2.
1620
4e6b227d
CY
16212009-07-16 Chong Yidong <cyd@stupidchicken.com>
1622
1623 * xterm.c (Qx_gtk_map_stock): New var.
1624
1625 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1626 of calling intern each time.
1627
a1856973
YM
16282009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1629
1630 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1631 does tiling.
1632
1633 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1634
497e54d8
KH
16352009-07-14 Kenichi Handa <handa@m17n.org>
1636
72d36834
KH
1637 * font.c (font_vconcat_entity_vectors): New function.
1638 (struct font_sort_data): New member font_driver_preference.
1639 (font_compare): Check font_driver_preference.
1640 (font_sort_entities): The format of the first argument changed.
1641 (font_delete_unmatched): Likewise.
1642 (font_list_entities): The return type changed.
1643 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1644 (font_find_for_lface): Adjuste for the above changes.
1645 Don't suppress the checking of C even if the repertory supports it.
1646 (Flist_fonts): Adjust for the above changes.
72d36834 1647
1ac9108a
SM
1648 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1649 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1650 Reject a font who has adstyle property that is different from a
1651 langname derived from registry property.
1ac9108a 1652 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1653
b6046155
EZ
16542009-07-13 Eli Zaretskii <eliz@gnu.org>
1655
1656 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1657 local copy of dirfilename.
1658
fb6b6049
KH
16592009-07-13 Kenichi Handa <handa@m17n.org>
1660
e2402a5e
KH
1661 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1662 against max_char.
1663
fb6b6049
KH
1664 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1665 calling XSYMBOL (sym).
1666
65156807
EZ
16672009-07-11 Eli Zaretskii <eliz@gnu.org>
1668
1ac9108a
SM
1669 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1670 New function.
1671 (directory_files_internal) [WINDOWSNT]:
1672 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1673 the filesystem of the directory is fast or slow.
1674
1675 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1676 file name.
1677 (is_slow_fs): New function.
1678 (stat): Use it to determine whether to issue more system calls to
1679 get accurate file attributes, when w32-get-true-file-attributes is
1680 `local'.
1681
e0ab5fcf
JD
16822009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1683
1684 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1685 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1686 parameter font-parameter as default to the font dialog.
1687
784ceded
KH
16882009-07-10 Kenichi Handa <handa@m17n.org>
1689
1690 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1691
fb8edc0b
EZ
16922009-07-09 Eli Zaretskii <eliz@gnu.org>
1693
1ac9108a 1694 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1695
fb8edc0b
EZ
1696 * w32.c (stat): Treat UNC file names as residing on remote
1697 drives. (Bug#3542)
1698
635c75b1
KH
16992009-07-09 Kenichi Handa <handa@m17n.org>
1700
1701 * fontset.c (fontset_find_font): Fix previous change.
1702
c1d5ce94
MA
17032009-07-08 Michael Albinus <michael.albinus@gmx.de>
1704
1705 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1706 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1707 error flag.
1708
edb61b39
KH
17092009-07-08 Kenichi Handa <handa@m17n.org>
1710
374bf7e4
KH
1711 * fontset.c (fontset_find_font): Fix the logic of handling
1712 charset_matched.
1713 (font_for_char): Delete unused var.
1714 (generate_ascii_font_name): Delete it.
1715
edb61b39
KH
1716 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1717
1718 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1719 (encode_coding_sjis): Fix the code range check.
1720
0f3f018c
CY
17212009-07-07 Chong Yidong <cyd@stupidchicken.com>
1722
1723 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1724 (Fexpand_file_name): Copy string data properly (Bug#3772).
1725
fcaf6f3a
JD
17262009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1727
1728 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1729 first MapNotify.
1730
6809ca75
KH
17312009-07-07 Kenichi Handa <handa@m17n.org>
1732
1733 * character.h (unibyte_has_multibyte_table): Delete extern.
1734 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1735
1736 * charset.c (Fset_charset_priority): Update charset_unibyte.
1737 (syms_of_charset): Initialize charset_unibyte.
1738
1739 * character.c (unibyte_has_multibyte_table): Delete it.
1740 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1741 charset_unibyte.
1742 (multibyte_char_to_unibyte_safe): Likewise.
1743 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1744
1ac9108a 1745 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1746 (x_produce_glyphs): Likewise.
1747
1748 * .gdbinit (xcharset): Fix the treating $arg0.
1749
ad9e2d54
EZ
17502009-07-04 Eli Zaretskii <eliz@gnu.org>
1751
1752 Emulation of `getloadavg' on MS-Windows.
1753 * w32.c: Include float.h
1754 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1755 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1756 (get_native_system_info, get_system_times): New functions.
1757 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1758 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1759 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1760 g_b_init_get_system_times, and num_of_processors.
1761
0a3472c7
JR
17622009-07-03 Jason Rumney <jasonr@gnu.org>
1763
1764 * w32term.c (w32_initialize): Use standard types.
1765
80904120
EZ
17662009-07-03 Eli Zaretskii <eliz@gnu.org>
1767
1768 * dired.c (Ffile_attributes): Decode user and group names by the
1769 locale's encoding. (Bug#3443)
1770
6978862d
DN
17712009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1772
f8d23104
DN
1773 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1774 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1775
1776 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1777
1778 * term.c (init_tty): Remove spurious #ifdef.
1779
6978862d
DN
1780 * m/mips.h: Mention this file is also used for netbsd.
1781 * m/pmax.h: Remove file.
1782
e044e4fc
JD
17832009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1784
1785 * xterm.h (struct x_display_info): Add invisible_cursor.
1786 (struct x_output): Add current_cursor.
1787
1788 * xterm.c (XTtoggle_invisible_pointer): New function.
1789 (x_define_frame_cursor): Don't define cursor if invisible or the
1790 same as before. Set current_cursor.
1791 (x_create_terminal): Set toggle_invisible_pointer_hook.
1792
1793 * xfns.c (make_invisible_cursor): New function.
1794 (x_set_mouse_color): Call make_invisible_cursor.
1795 Set current_cursor.
1796 (x_window): Set current_cursor.
1797
1798 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1799
1800 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1801 inserting a character.
1802 (read_avail_input): Call frame_make_pointer_visible.
1803
1804 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1805 (frame_make_pointer_invisible, frame_make_pointer_visible):
1806 New functions.
e044e4fc
JD
1807 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1808
1809 * frame.h: Declare frame_make_pointer_invisible and
1810 frame_make_pointer_visible.
1811 (struct frame): Add pointer_invisible.
1812
574c8efa
JD
18132009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1814
7b507248
JD
1815 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1816 frame isn't visible.
1817 (xg_frame_resized): If width/height is -1, get size of window
1818 from X server.
1819
1820 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1821 for MapNotify.
1822
835bdaa7 1823 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1824 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1825 (flush_and_sync): Reintroduce.
574c8efa 1826
3f1c6666 18272009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1828
31fd7c5c 1829 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1830
1831 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1832 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1833
1834 * frame.h: Declare Qsticky.
1835
cad9ef74
JD
1836 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1837
1838 * nsfns.m (ns_frame_parm_handlers): Ditto.
1839
1840 * frame.c: Declare Qsticky.
1841 (frame_parms): Add sticky.
1842
1843 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1844
1845 * xterm.h: Declare x_set_sticky.
1846
1847 * xterm.c (x_set_sticky): New function.
1848
69b16610
JD
1849 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1850 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1851 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1852
1853 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1854
1855 * frame.c: Qmaximized is new.
1856 (x_set_frame_parameters): Do not handle fullscreen specially.
1857 Only set width and height if explicitly set.
1858 (x_set_fullscreen): Handle Qmaximized.
1859 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1860 (syms_of_frame): Initialize Qmaximized.
1861
1ac9108a
SM
1862 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1863 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1864
1865 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1866 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1867 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1868 set gravity to NorthWestGravity when USE_GTK.
1869 (set_wm_state): New function.
31fd7c5c 1870 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1871 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1872 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1873 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1874 to x_real_positions and x_fullscreen_adjust.
1875
1876 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1877 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1878 flush_and_sync.
1879 (xg_height_changed): New function.
1880 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1881 and gtk_window_set_policy. Set frame gravity after parsing the
1882 geometry string.
3f1c6666
JD
1883 (xg_update_frame_menubar, free_frame_menubar)
1884 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1885 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1886 Remove calls to xg_frame_set_char_size.
1887
fd503d99
KH
18882009-07-01 Kenichi Handa <handa@m17n.org>
1889
1890 * keyboard.c (decode_keyboard_code): New function.
1891 (tty_read_avail_input): Decode the input bytes if necessary.
1892
1ac9108a
SM
1893 * coding.c (setup_coding_system):
1894 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1895 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1896 use Qno_conversion.
1897
24ed93fb
YM
18982009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1899
1900 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1901
99061dfc
CY
19022009-06-30 Chong Yidong <cyd@stupidchicken.com>
1903
1ac9108a 1904 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1905
ff90fbde
JR
19062009-06-30 Jason Rumney <jasonr@gnu.org>
1907
1908 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1909 is already loaded.
1910 Set user model ID if supported (bug#1849).
1911
5f445726
JM
19122009-06-29 Jim Meyering <meyering@redhat.com>
1913
1914 Remove useless if-before-xfree test.
1915 * nsfont.m (nsfont_close): Remove useless test.
1916 * term.c (delete_tty): Likewise.
1917 * w32.c (system_process_attributes): Likewise.
1918 * w32font.c (w32font_close): Likewise.
1919 * xfaces.c (x_free_gc): Likewise.
1920 * xselect.c (buffer): Likewise.
1921
b9607587
AS
19222009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1923
1924 * process.c (send_process): Keep decoded string in a local
1925 variable and protect it from GC. (Bug#3521)
1926
89ba96f4
EZ
19272009-06-28 Eli Zaretskii <eliz@gnu.org>
1928
1929 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1930 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1931
098a1589
CY
19322009-06-28 Chong Yidong <cyd@stupidchicken.com>
1933
485422be
CY
1934 * xdisp.c (start_display, handle_face_prop)
1935 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1936 (redisplay_window, try_window_id, produce_image_glyph):
1937 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1938
098a1589
CY
1939 * xterm.c (x_update_window_begin, x_new_focus_frame)
1940 (x_scroll_bar_handle_click, handle_one_xevent)
1941 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1942 (x_make_frame_visible, x_make_frame_invisible)
1943 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1944 code chunks that are now obsolete.
1945
78c38319
MA
19462009-06-28 Michael Albinus <michael.albinus@gmx.de>
1947
1948 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1949 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1950 for hours, when optimzation is enabled.
1951 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1952 (xd_read_message): Make them static.
1953
4189ed40
CY
19542009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1955
1956 * term.c (turn_on_face): Allow simultaneously bold and dim
1957 terminal faces (Bug#3530).
1958
cd9b5e16
CY
19592009-06-27 Chong Yidong <cyd@stupidchicken.com>
1960
4e23bedb
CY
1961 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1962
cd9b5e16
CY
1963 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1964 truncation glyphs (Bug#3686).
1965
07cc3c35
GM
19662009-06-27 Glenn Morris <rgm@gnu.org>
1967
1968 * m/pmax.h: Restore file, with only netbsd portions.
1969
31fd7c5c 19702009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1971
cd9b5e16 1972 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1973
42d4a64f
KH
19742009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1975
1976 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1977 the arg FORCE_SYMBOL.
1978
930fe55b 19792009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1980
1981 * fontset.c (fontset_find_font): When a usable rfont_def is found
1982 in a fallback font-group, make it the first element of the group.
1983
57ebc3fd
CY
19842009-06-24 Chong Yidong <cyd@stupidchicken.com>
1985
1986 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1987
f084f942
KH
19882009-06-24 Kenichi Handa <handa@m17n.org>
1989
1990 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1991 set for C.
1992 (fontset_font): Record the availability of a font for C both in
1993 the realized fontsets of the current one and the default one.
1994
2f686c87
DN
19952009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1996
1997 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1998 conditional, it is always defined on AIX.
1999
666e158e
MB
20002009-06-23 Miles Bader <miles@gnu.org>
2001
2002 * window.c (Vrecenter_redisplay): New variable.
2003 (syms_of_window): Initialize it.
2004 (Qtty): New extern declaration.
2005 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2006
c6da7cd2
JM
20072009-06-23 Jim Meyering <meyering@redhat.com>
2008
1ac9108a
SM
2009 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2010 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2011 pointer dereferences are guaranteed to be valid.
c6da7cd2 2012
678dca3d
KH
20132009-06-23 Kenichi Handa <handa@m17n.org>
2014
74d75424
KH
2015 * emacs.c (main): Call init_font ().
2016
2017 * font.h (Vfont_log): Extern it.
2018 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2019
2020 * font.c (font_sort_entities, font_list_entities)
2021 (font_matching_entity, font_open_entity)
2022 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2023 (Vfont_log): Delete static.
2024 (font_log_env_checked): Delete this variable.
2025 (font_add_log): Don't check font_log_env_checked.
2026 (font_deferred_log): Check Vfont_log.
2027 (init_font): New function.
2028
678dca3d
KH
2029 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2030
2031 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2032
2033 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2034
2035 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2036
2037 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2038 (face_for_char): Don't call font_deferred_log here.
2039 (font_for_char): Likewise.
2040
8a668709
CY
20412009-06-22 Chong Yidong <cyd@stupidchicken.com>
2042
9a01ee33
CY
2043 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2044 rather than its background_width for drawing the overline and
2045 underline (Bug#489).
2046
2047 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2048 rather than its background_width for drawing the overline and
2049 underline (Bug#489).
ec7c9926
CY
2050 (xg_default_icon_file): New variable.
2051 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2052 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2053
8a668709
CY
2054 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2055 (load_overlay_strings): Remove externs.
2056 (fast_find_position): Function deleted.
2057 (mouse_face_from_buffer_pos): New function, based on
2058 fast_find_position. Correctly handle before-strings,
2059 display-strings, and after-strings (Bug#1220).
2060 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2061
4d4c02d8
CY
20622009-06-21 Chong Yidong <cyd@stupidchicken.com>
2063
1ac9108a 2064 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2065 (move_it_in_display_line_to, move_it_in_display_line_to)
2066 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2067
70243478
CY
20682009-06-21 Chong Yidong <cyd@stupidchicken.com>
2069
2070 * Branch for 23.1.
2071
13087e59
JR
20722009-06-21 Jason Rumney <jasonr@gnu.org>
2073
2074 * w32term.c (keyboard_codepage): New static variable.
2075 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2076 (w32_read_socket) [WM_CHAR]: Use it to decode character
2077 input (bug#3237).
2078 (w32_initialize): Initialize it.
2079 (codepage_for_locale): New function.
2080
4735b74e
KR
20812009-06-20 Ken Raeburn <raeburn@raeburn.org>
2082
2083 * process.c (status_message): Pass Faset index argument as a lisp
2084 object, so as to work with USE_LISP_UNION_TYPE.
2085
0e727afa
YM
20862009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2087
2088 * coding.c (Ffind_coding_systems_region_internal):
2089 Cache checked characters.
2090
cf299835
KH
20912009-06-18 Kenichi Handa <handa@m17n.org>
2092
1ac9108a 2093 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2094
90f20d94
AS
20952009-06-18 Andreas Schwab <aschwab@redhat.com>
2096
2097 * xdisp.c (redisplay_internal): Check that the frame is still
2098 live after redisplay of its windows.
2099 (redisplay_windows): Check that the window is still live.
2100
7f1faf1c
KH
21012009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2102
2103 * coding.c (detect_coding_utf_16): Fix previous change.
2104
cc13543e
KH
21052009-06-16 Kenichi Handa <handa@m17n.org>
2106
2107 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2108 UTF-16 by checking the dispersion of Eth and Oth bytes.
2109
977b85f4
AS
21102009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2111
2112 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2113
66bd43d1
KH
21142009-06-15 Kenichi Handa <handa@m17n.org>
2115
2116 * process.c (status_message): Fix previous change. Be sure to
2117 decode a localized string.
2118
cb5ca9c5
YM
21192009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2120
2121 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2122 add comment explaining why.
2123
ec7709ba 21242009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2125
ec7709ba 2126 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2127
4b7f335c
AR
21282009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2129
2130 * nsfont.m (ns_attribute_value): Remove.
2131 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2132 (ns_has_attribute): Shrink the normal range.
2133 (ns_findfonts): Don't worry about requested spec in determining
2134 need for synthItal.
e41820ee 2135 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2136
73b26103
SZ
21372009-06-14 Seiji Zenitani <zenitani@mac.com>
2138
2139 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2140
5753e4da
KH
21412009-06-11 Kenichi Handa <handa@m17n.org>
2142
2143 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2144 overhang for the static composition case.
2145
3561b671
KH
21462009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2147
5753e4da
KH
2148 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2149 overhang for the automatic composition case.
2150
3561b671
KH
2151 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2152 composition case.
2153
852bbd41
CY
21542009-06-10 Chong Yidong <cyd@stupidchicken.com>
2155
2156 * xdisp.c (get_next_display_element): When handling wrap-prefix
2157 and line-prefix, treat \n as a control character (bug#3502).
2158
9903d1e6
KH
21592009-06-10 Kenichi Handa <handa@m17n.org>
2160
2161 * font.c (font_parse_family_registry): Fix for one-char foundry.
2162 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2163
0bcbaaaa
CY
21642009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2165
2166 * process.c (status_message): Fix handling of multibyte signal
2167 string (Bug#3499).
2168
40aa3f13
JM
21692009-06-09 Jim Meyering <meyering@redhat.com>
2170
1f80c7e2
CY
2171 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2172 color name is missing.
40aa3f13 2173
72d51285
KH
21742009-06-09 Kenichi Handa <handa@m17n.org>
2175
2176 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2177 FROM-CODE and TO-CODE are codepoints of CHARSET.
2178
c1d04d84
AR
21792009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2180
2181 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2182
21832009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2184
2185 Changes to support :script/:lang/:otf in NS font driver.
2186 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2187 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2188 indicate not part of font driver interface, and change callers.
2189 (ns_get_family): Remove pointless null check.
2190 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2191 ns_spec_to_descriptor, ns_descriptor_to_entity.
2192 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2193 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2194 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2195 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2196 (ns_get_req_script, ns_accumulate_script_ranges)
2197 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2198 New functions.
2199 (nsfont_list, nsfont_match): Use ns_findfonts.
2200 (nsfont_open): Use font descriptor instead of traits.
2201 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2202 (dump_glyphstring): Rename to ns_dump_glyphstring.
2203
c7eb9816
AR
2204 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2205
c1d04d84
AR
2206 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2207
2208 * fontset.c (fontset_from_font): Remove NS-specific code.
2209
ec7709ba 22102009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2211
2212 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2213 nonactive windows.
2214
31fd7c5c 22152009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2216
1ac9108a 2217 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2218
68852c13 22192009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2220
2221 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2222
6756cd1d
CY
22232009-06-07 Chong Yidong <cyd@stupidchicken.com>
2224
2225 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2226 account for the overflowing of newlines into the last glyph on the
2227 display line (Bug#3482).
2228
28bf482a
DR
22292009-06-05 David Reitter <david.reitter@gmail.com>
2230
ec7709ba
JB
2231 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2232 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2233 Fns_selection_exists_p, Fns_selection_owner_p.
2234
fdb55376
JR
22352009-06-03 Jason Rumney <jasonr@gnu.org>
2236
2237 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2238 available. (Bug#3379)
2239
05129fbe
KH
22402009-05-29 Kenichi Handa <handa@m17n.org>
2241
1ac9108a
SM
2242 * coding.c (get_translation_table):
2243 Check Venable_character_translation.
05129fbe 2244
ec7709ba 22452009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2246
ec7709ba
JB
2247 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2248 (x_make_frame_visible): Move frame to front rather than calling
15891144 2249 ns_raise_frame().
ec7709ba 2250 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2251 isn't key window.
ec7709ba 2252 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2253 drawRect may be called by NSView even if the frame is hidden.
2254
ec7709ba
JB
2255 * nsfns.m (Fx_create_frame): Follow other ports in
2256 determining visibility; default to t. Ensure async_visible is set.
15891144 2257
21f73755
EZ
22582009-05-23 Eli Zaretskii <eliz@gnu.org>
2259
2260 * dired.c (Ffile_attributes): Doc fix.
2261
34001e41
CY
22622009-05-22 Chong Yidong <cyd@stupidchicken.com>
2263
2264 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2265
46306a17
SM
22662009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2267
2268 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2269 and xfont_scratch_props.
2270 (syms_of_xfont): Do it here instead.
2271 (xfont_find_ccl_program): Delete, unused.
2272 (xfont_open): Delete unused var `i'.
2273
ef6e0694
KH
22742009-05-21 Kenichi Handa <handa@m17n.org>
2275
2276 * fontset.c (Qlatin): Don't make it static.
2277
46306a17
SM
2278 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2279 New functions.
ef6e0694
KH
2280 (xfont_scripts_cache, xfont_scratch_props): New variables.
2281 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2282 (xfont_list_pattern): Argument changed. Callers changed.
2283 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2284 (xfont_list): Don't reject a font spec with :script property.
2285 (xfont_has_char): Fix setting of encoding.
2286 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2287 xfont_scratch_props.
2288
22892009-05-19 Kenichi Handa <handa@m17n.org>
2290
46306a17 2291 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2292 Callers changed.
2293
22942009-05-18 Kenichi Handa <handa@m17n.org>
2295
2296 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2297
ac71ced7
SM
22982009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2299
2300 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2301 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2302
1c6d1051
YM
23032009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2304
2305 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2306 (x_delete_terminal): Dissociate resource database from display and
2307 then call XrmDestroyDatabase before closing display.
2308
9b9b779c
AR
23092009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2310
2311 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2312 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2313 whether selected frame is viable before raising it (based on patch
2314 by David Reitter), and improve commentary.
2315 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2316
cccd42d5
KH
23172009-05-15 Kenichi Handa <handa@m17n.org>
2318
2319 * font.c (Ffont_spec): Check arguments.
2320
337fbd17
CY
23212009-05-14 Chong Yidong <cyd@stupidchicken.com>
2322
2323 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2324 weight when testing attributes (Bug#3282).
2325
47a6002f
JD
23262009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2327
2328 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2329 what we expect to get in the next ConfigureNotify event.
2330
9cb363db
YM
2331 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2332 before Xft one (Bug#1696).
2333
b9126609
CY
23342009-05-07 David Reitter <david.reitter@gmail.com>
2335
2336 * nsfns.m (Fx_display_planes): Compute bitplanes using
2337 NSBitsPerPixelFromDepth (Bug#3207).
2338
27a69fd9
CY
23392009-05-10 Chong Yidong <cyd@stupidchicken.com>
2340
2341 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2342
00f37552
TTN
23432009-05-10 Ulrich Mueller <ulm@gentoo.org>
2344
2345 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2346
2d82a920
DR
23472009-05-07 David Reitter <david.reitter@gmail.com>
2348
ec7709ba
JB
2349 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2350 Respect mouse face background.
2d82a920 2351
46b0d52d
DR
23522009-05-07 David Reitter <david.reitter@gmail.com>
2353
ec7709ba
JB
2354 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2355 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2356 in ns_update_begin and ns_update_end.
2357
ce1b23bb
SM
23582009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2359
5996e1b7
SM
2360 * nsfns.m (ns_get_screen): Rewrite.
2361 Don't presume selected-frame is of type `ns'.
2362
ba98e3a0
SM
2363 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2364 all drivers.
2365
ce1b23bb
SM
2366 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2367
bcda200f
YM
23682009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2369
2370 * keyboard.h (add_user_signal): Fix typo in extern.
2371
2372 * lisp.h (add_user_signal): Remove extern.
2373
2374 * unexelf.c (unexec): Consider a section to precede the .bss section
2375 if its addresses overlap that of .bss.
2376 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2377 instead of dumping process.
2378
864660a2
SM
23792009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2380
2381 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2382
50da4e56
SM
23832009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2384
2385 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2386
51520a1a
DN
23872009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2388
2389 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2390 any statements.
2391
409ea3a1
AS
23922009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2393
59c4c60f
AS
2394 * process.c (read_process_output): Make sure the current buffer is
2395 always restored.
2396
409ea3a1
AS
2397 * coding.c (record_conversion_result): Don't modify
2398 Vlast_code_conversion_error for successful result.
2399 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2400
56f00ed2
KH
24012009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2402
2403 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2404 (load_charset_map): Remove unnecessary code.
56f00ed2 2405
4491c9d2
DR
24062009-04-30 David Reitter <david.reitter@gmail.com>
2407
35f5b128 2408 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2409 through f24.
2410
6970f632
CY
24112009-04-30 Chong Yidong <cyd@stupidchicken.com>
2412
2413 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2414
2415 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2416 face_at_buffer_position.
2417 (face_before_or_after_it_pos, get_next_display_element)
2418 (note_mouse_highlight): Update face_at_buffer_position call.
2419
2420 * term.c (term_mouse_highlight):
2421 * msdos.c (IT_note_mouse_highlight):
2422 * fontset.c (Finternal_char_font):
35f5b128 2423 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2424
2425 * dispextern.h (face_at_buffer_position): Update prototype.
2426
0c616f63
KH
24272009-04-30 Kenichi Handa <handa@m17n.org>
2428
35f5b128 2429 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2430
ad3aaf33
AS
24312009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2432
2433 * callproc.c (Fcall_process): Fix GC protection. Make sure
2434 current buffer is always restored.
2435
c3c963a0
YM
24362009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2437
2438 * atimer.c (init_atimer): Also clear stopped_atimers.
2439
2440 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2441
7e3386cb
YM
2442 * process.c (create_process): Clean up merger residues of
2443 2008-07-17 change.
2444
91f68422
CY
24452009-04-29 Ulrich Mueller <ulm@gentoo.org>
2446
2447 * lread.c (Vread_circle): New variable.
2448 (read1): Disable recursive read if Vread_circle is nil.
2449
24b34550
KH
24502009-04-29 Kenichi Handa <handa@m17n.org>
2451
2452 * fontset.h (set_default_ascii_font): Delete extern.
2453
2454 * fontset.c (set_default_ascii_font): Delete this unused function.
2455
2456 * frame.c (x_set_font): When ARG is a font-object, check if the
2457 font-object matches with the ASCII font-spec of the frame's
9c358bda 2458 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2459
77bf07e1
AS
24602009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2461
2462 * fns.c (Flocale_info): Protect vector from GC during decoding.
2463
2464 * process.c (Fstart_process): Protect argv strings from GC during
2465 encoding.
2466
2c55aacf
AS
24672009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2468
2469 * sysdep.c: Include <ctype.h>.
2470
b892d3c9
DR
24712009-04-27 David Reitter <david.reitter@gmail.com>
2472
35f5b128 2473 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2474 Remove commented-out code.
2475
9d0644c4
JB
24762009-04-26 Johan Bockgård <bojohan@gnu.org>
2477
2478 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2479
b7053016
JR
24802009-04-25 Jason Rumney <jasonr@gnu.org>
2481
2482 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2483
4e8231f3
YM
24842009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2485
2486 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2487 Swap bytes in short integer if fringe bitmap width > 8.
2488
493dcf2c
KH
24892009-04-23 Kenichi Handa <handa@m17n.org>
2490
2491 * xfaces.c (Fx_list_fonts): If a font size is specified in
2492 PATTERN, set it in returned scalable fonts.
2493
401e9e57
CY
24942009-04-22 Chong Yidong <cyd@stupidchicken.com>
2495
708e05dc
CY
2496 * keyboard.c (Fset_input_meta_mode): Doc fix.
2497
2498 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2499
1ac9108a 2500 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2501
2502 * coding.c (Fterminal_coding_system): Doc fix.
2503
2504 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2505 (Fx_display_pixel_height, Fx_display_planes)
2506 (Fx_display_color_cells, Fx_server_max_request_size)
2507 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2508 (Fx_display_mm_height, Fx_display_mm_width)
2509 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2510 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2511 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2512 (check_x_display_info): Handle terminal objects instead of
2513 terminal ids.
2514
401e9e57
CY
2515 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2516 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2517 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2518 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2519
df80c7f0
KH
25202009-04-21 Kenichi Handa <handa@m17n.org>
2521
5a8f12af 2522 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2523 (font_score): Check AVGWIDTH too.
908567ef 2524
df80c7f0
KH
2525 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2526 worst case.
1ac9108a
SM
2527 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2528 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2529
705af33f
JR
25302009-04-19 Jason Rumney <jasonr@gnu.org>
2531
2532 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2533 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2534
2535 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2536 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2537 get_phys_cursor_geometry.
2538
b71ac3dd 2539 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2540 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2541 using get_phys_cursor_geometry.
2542
2543 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2544 correctly calculated.
2545
dc2933eb
JD
25462009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2547
1ac9108a
SM
2548 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2549 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2550 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2551 is deprecated.
2552
973e7849
AS
25532009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2554
2555 * font.c (font_put_frame_data): Use xfree instead of free.
2556
314d66f4
JB
25572009-04-17 Juanma Barranquero <lekktu@gmail.com>
2558
2559 * w32font.c (Qja, Qko): Remove declarations.
2560 (syms_of_w32font): Don't DEFSYM them.
2561
cf702558
CY
25622009-04-17 Chong Yidong <cyd@stupidchicken.com>
2563
2564 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2565
2566 * font.h (Qja, Qko): Extern them.
2567
2568 * ftfont.c (Qja, Qko): Remove declarations.
2569
2570 * xfont.c (Qja, Qko): Remove declarations.
2571
b50504f5
KH
25722009-04-17 Kenichi Handa <handa@m17n.org>
2573
bde25748
KH
2574 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2575 string from a vector to handle Latin-1 characters correctly.
2576
b50504f5
KH
2577 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2578 entity even if the cache hits.
2579
f4646fff
AS
25802009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2581
2582 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2583 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2584
e7deaab0
AS
2585 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2586 * lisp.h: Adjust prototypes.
2587
0a0e7d49
CY
25882009-04-16 Chong Yidong <cyd@stupidchicken.com>
2589
2590 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2591 change (Bug#3003).
2592
3c908a57
KH
25932009-04-16 Kenichi Handa <handa@m17n.org>
2594
1ac9108a 2595 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2596
2597 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2598 adstyle.
2599
2600 * ftfont.c (Qja, Qko): Don't make them static.
2601 (enum ftfont_cache_for): New enum.
2602 (fc_charset_table): Undo the previous change.
2603 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2604 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2605 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2606 non-scarable font, try to get AVERAGE_WIDTH.
2607 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2608 Change ft_face_cache from a list of a hash-table. Don't check
2609 `ja' and `ko' adstyle here.
2610 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2611 FTFONT_CACHE_FOR_CHARET.
2612 (ftfont_get_charset): Undo the previous change.
1ac9108a 2613 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2614 (ftfont_close): Likewise.
2615 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2616
2617 * font.c (font_sort_entites): Change the meaning of the arg
2618 BEST-ONLY. Don't optimize for VEC of lenght 1.
2619 (font_select_entity): Just return the value of font_sort_entites.
2620
2621 * xfaces.c (merge_face_vectors): Reflect font properties in
2622 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2623 font_clear_prop if a face attribute doesn't change.
2624
3c908a57
KH
2625 * charset.h (charset_ksc5601): Extern it.
2626
2627 * charset.c (charset_ksc5601): New variable.
2628 (Fdefine_charset_internal): Set charset_ksc5601.
2629 (init_charset_once): Initialize charset_ksc5601 to -1.
2630
d65859c3
DN
26312009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2632
2633 * fileio.c (history_delete_duplicates): Remove unused declaration.
2634
2635 * callint.c (history_delete_duplicates): New declaration.
2636 (Fcall_interactively): Remove command history duplicates when
2637 history_delete_duplicates is true.
2638
3ba010e5
EZ
26392009-04-14 Eli Zaretskii <eliz@gnu.org>
2640
2641 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2642
06f19b91
KH
26432009-04-14 Kenichi Handa <handa@m17n.org>
2644
2645 * font.c (Ffont_info): Fix docstring. Fix the second element of
2646 the returned value (bug#2949).
2647
2cce8bfc
CY
26482009-04-14 Chong Yidong <cyd@stupidchicken.com>
2649
2650 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2651
d156542d
KH
26522009-04-14 Kenichi Handa <handa@m17n.org>
2653
2654 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2655 encoding charset is ascii_compatible.
2656
2657 * charset.c (Fdefine_charset_internal): Make charset
2658 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2659 code_offset is 0, and covers all ASCII characters.
2660
86fa089e
SM
26612009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2662
2663 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2664 (ns_string_to_pasteboard_internal):
2665 * nsmenu.m (process_dialog):
2666 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2667 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2668 * lisp.h (Fx_load_color_file): Declare.
2669
a8a3728b
KH
26702009-04-13 Kenichi Handa <handa@m17n.org>
2671
1ac9108a 2672 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2673 (font_select_entity): Suppress the code to optimize for the same
2674 kind of fonts.
2675 (font_load_for_lface): Get a font that supports at least ASCII
2676 characters.
2677
2678 * ftfont.c (Qja, Qko): New variables.
2679 (fc_charset_table): Delete uniquifier data for iso8859-1.
2680 (ftfont_get_latin1_charset): New function.
2681 (get_adstyle_property): New function.
2682 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2683 bitmap fonts.
2684 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2685 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2686 `ko' or `ja'.
2687 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2688 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2689 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2690 property.
2691 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2692 (syms_of_ftfont): DEFSYM Qja and Qko.
2693
483670b5
KH
26942009-04-09 Kenichi Handa <handa@m17n.org>
2695
12b55765
KH
2696 * charset.c (map_charset_chars): For a charset of `superset'
2697 method, fix calculation of code range.
2698
483670b5
KH
2699 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2700 from the list of extra properties.
2701 (font_clear_prop): Be sure to delete `:name' font property.
2702
57d3b93b
KH
27032009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2704
b4b2c2ca
YM
2705 * dispnew.c (redraw_overlapping_rows): Fix detection of
2706 overlapping for topmost and bottommost rows.
2707
1ac9108a 2708 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2709
472c3609
JR
27102009-04-06 Jason Rumney <jasonr@gnu.org>
2711
2712 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2713
ab193662
KH
27142009-04-06 Kenichi Handa <handa@m17n.org>
2715
2716 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2717
2718 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2719
0c26f026
KH
27202009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2721
2722 * ftfont.c (ftfont_open): Fix checking of the return value of
2723 FT_Load_Char. Fix setting font->underline_thickness.
2724
e173bbce
CY
27252009-04-04 Chong Yidong <cyd@stupidchicken.com>
2726
2727 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2728 (Fterminal_parameters, Fterminal_parameter)
2729 (Fset_terminal_parameter): In doc string, refer to terminal
2730 objects rather than terminal ids.
2731
693a2698
EZ
27322009-04-04 Eli Zaretskii <eliz@gnu.org>
2733
2734 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2735 ret_lim_data. (Bug#2867)
2736
d5221487
CY
27372009-04-03 Chong Yidong <cyd@stupidchicken.com>
2738
2739 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2740 so they don't get wider than the window, matching 2006-01-23
2741 change to the partner function in xdisp.c (Bug#2800).
2742
223509a3
KH
27432009-04-03 Kenichi Handa <handa@m17n.org>
2744
2745 * print.c (print_object): Make each lowest sub_char_table start a
2746 new line (Bug#2866).
2747
74fcd0b1
KH
27482009-04-02 Kenichi Handa <handa@m17n.org>
2749
2750 * fontset.c (fontset_font): Record no-font when a fontset
2751 explicitly tells not to try another font-specs.
2752
c542407d
SM
27532009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2754
2755 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2756
e3869731
KH
27572009-03-30 Kenichi Handa <handa@m17n.org>
2758
d8d2f142
KH
2759 * fontset.c (fontset_from_font): Specify only registry in a
2760 font-spec for all characters supported by that registry.
2761
e3869731
KH
2762 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2763 even if HAVE_M17N_FLT is not defined.
2764
5da5f805
CY
27652009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2766
2767 * ftfont.c: Conditionalize prototyping and use of
2768 ftfont_variation_glyphs.
2769
ab226c50
SM
27702009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2771
9628fed7
SM
2772 * frame.c (delete_frame): Work around compiler bug.
2773
2774 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2775 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2776 Some more EMACS_INT.
2777 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2778
2779 * xdisp.c (dump_glyph): Fix typo.
2780
ae19ba7c
SM
2781 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2782 (adjust_markers_gap_motion, adjust_markers_for_delete)
2783 (adjust_markers_for_insert, adjust_point)
2784 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2785 (make_gap, copy_text, count_size_as_multibyte, insert)
2786 (insert_and_inherit, insert_before_markers)
2787 (insert_before_markers_and_inherit, insert_1)
2788 (count_combining_before, count_combining_after, insert_1_both)
2789 (insert_from_string, insert_from_string_before_markers)
2790 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2791 (insert_from_buffer_1, adjust_after_replace)
2792 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2793 (replace_range_2, del_range, del_range_1, del_range_byte)
2794 (del_range_both, del_range_2, modify_region)
2795 (prepare_to_modify_buffer, signal_before_change)
2796 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2797 for buffer positions and sizes.
2798 * lisp.h: Adjust prototypes accordingly.
2799
2800 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2801 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2802 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2803
ab226c50
SM
2804 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2805
46dfb8fb
JD
28062009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2807
2808 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2809 lines and columns so we keep the same pixel height and width.
2810
2811 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2812 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2813 (x_handle_net_wm_state): New function to update frame parameter
2814 fullscreen.
2815 (x_term_init): Initialize atoms for _NET_WM_STATE.
2816
2817 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2818
d347e494
SM
28192009-03-27 Kevin Ryde <user42@zip.com.au>
2820
2821 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2822 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2823 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2824 (Fgpm_mouse_stop): Pass that new parameter.
2825 * termhooks.h (close_gpm): Adjust prototype.
2826
84db11d6
SM
28272009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2828
c95a5008
SM
2829 * lisp.h (Fx_focus_frame): Declare.
2830
84db11d6
SM
2831 * callint.c (Fcall_interactively): For '^' just delegate the work to
2832 handle-shift-selection.
2833 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2834
0a1958d6
CY
28352009-03-24 Chong Yidong <cyd@stupidchicken.com>
2836
0bfdff23
CY
2837 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2838
0a1958d6
CY
2839 * data.c (Qinteractive_form): New variable.
2840 (Finteractive_form): Use it.
2841
2842 * eval.c (Fcommandp): Use Qinteractive_form.
2843
58aec0d6
JR
28442009-03-24 Jason Rumney <jasonr@gnu.org>
2845
2846 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2847 Calculate total size precisely. Decode environment variables
2848 before substituting. (Bug#38)
2849
553dd618
KH
28502009-03-24 Kenichi Handa <handa@m17n.org>
2851
2852 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2853 encoding (Bug#2722).
553dd618 2854
c39ea606
JD
28552009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2856
2857 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2858 that gdpy is set.
2859
bc9b2b5e
AM
28602009-03-22 Alan Mackenzie <acm@muc.de>
2861
2862 * callint.c (Finteractive): Clarify the doc string - even
2863 promptless elements need \n separators.
2864
9f995a76
JR
28652009-03-22 Jason Rumney <jasonr@gnu.org>
2866
2867 * w32term.c (syms_of_w32term): Doc fix for
2868 x-use-underline-position-properties.
2869
22749e9a
EZ
28702009-03-21 Eli Zaretskii <eliz@gnu.org>
2871
2872 * w32.c (getpwuid): Change argument type to unsigned.
2873 (struct w32_id): Change type of `rid' member to unsigned.
2874 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2875 argument ID to unsigned. All callers changed.
2876 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2877
e00553bf
EZ
28782009-03-20 Eli Zaretskii <eliz@gnu.org>
2879
2880 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2881 negative, produce a float value.
2882
2883 * dired.c (make_uid, make_gid): New functions.
2884 (Ffile_attributes): Use them to avoid negative UID and GID.
2885
f761d6b6
JB
28862009-03-20 Juanma Barranquero <lekktu@gmail.com>
2887
2888 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2889 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2890 Fix typos in docstrings.
2891
d507f8d7
KH
28922009-03-19 Kenichi Handa <handa@m17n.org>
2893
2894 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2895 changed, use font_load_for_lface to get a new font object.
2896 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2897
2898 * frame.c (x_set_font): Handle the case that ARG is a cons.
2899
c68845e0
GM
29002009-03-19 Glenn Morris <rgm@gnu.org>
2901
2902 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2903
bfa49dd1
CY
29042009-03-19 Chong Yidong <cyd@stupidchicken.com>
2905
2906 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2907
8458d4c1
KH
29082009-03-19 Kenichi Handa <handa@m17n.org>
2909
2910 * charset.c (load_charset_map_from_file): When a mapfile can't be
2911 loaded, signal an error.
2912
78e7d1fe
EZ
29132009-03-18 Eli Zaretskii <eliz@gnu.org>
2914
2915 * dired.c (Ffile_attributes): Make sure UID and GID are always
2916 positive, even if the value is too large for a positive EMACS_INT.
2917 Doc fix.
2918
2919 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2920
5da9fdfa
YM
29212009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2922
2923 * xmenu.c (xdialog_show): Move Fredisplay call ...
2924 (Fx_popup_dialog): ... here.
2925
7519c40d
SM
29262009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2927
2928 * dired.c (file_name_completion): Disable the first optimization just
2929 installed, since it is not implemented correctly.
2930
2cd298e2
SM
29312009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2932
2933 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2934 only if the entry can affect bestmatch.
2cd298e2
SM
2935 Stop the search early, as Ftry_completion already does.
2936
48d37adf
CY
29372009-03-17 Chong Yidong <cyd@stupidchicken.com>
2938
e10c9c93 2939 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2940
9286b16a
CY
29412009-03-15 Chong Yidong <cyd@stupidchicken.com>
2942
2943 * keyboard.c (parse_menu_item): Don't display remappings as menu
2944 equivalent bindings (Bug#788).
2945
f7b146dc
JR
29462009-03-15 Jason Rumney <jasonr@gnu.org>
2947
2948 * w32term.h (WM_EMACS_PAINT): New message.
2949 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2950 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2951 before passing to lisp thread. (Bug#950)
2952
f761d6b6 29532009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2954
d93f9575
CY
2955 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2956 variable as it was never reset.
2957 (ns_term_init): Remove initialization of Lisp-settable defaults
2958 and ns_expand_space.
2959 (-setPanelFromDefaultValues): Remove ns_expand_space.
2960 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2961 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2962 i.e. no additional spacing, similar to Carbon port.
2963
d93f9575
CY
2964 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2965 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2966
305018ec
JD
29672009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2968
2969 * sound.c (alsa_configure): Remove call to deprecated
2970 snd_pcm_sw_params_set_xfer_align.
2971
f761d6b6 29722009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2973
2974 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2975 after clicking in a detached tool bar.
2976 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2977
46e722a9
SM
29782009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2979
348db3dd
SM
2980 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2981 int/Lisp_Object mixup).
46e722a9 2982
a3d16f39
KH
29832009-03-13 Kenichi Handa <handa@m17n.org>
2984
2985 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2986 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2987 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2988 (set_fontset_font): Change ARG to a vector. Handle range_list in
2989 ARG correctly.
2990 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2991 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2992 the above change.
2993 (fontset_from_font): Fix previous change.
fe24f56a 2994 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2995 entry. If FONTSET is the default fontset, don't set the extra
2996 slot of the returning char-table.
2997
b066e6b6
JB
29982009-03-12 Juanma Barranquero <lekktu@gmail.com>
2999
3000 * nsfns.m (Fx_close_connection): Doc fix.
3001 (Fns_do_applescript): Reflow docstring.
3002 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3003 (Fx_display_pixel_width, Fx_display_pixel_height)
3004 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3005 Fix typos in docstrings.
3006 (Fns_set_alpha): Fix typos in error messages.
3007
d472514e 30082009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3009
d472514e 3010 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3011 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3012 were used for such events.
3013
d472514e
JB
3014 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3015 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3016
d472514e 3017 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3018 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3019
fb930676
KH
30202009-03-11 Kenichi Handa <handa@m17n.org>
3021
ff85581a
KH
3022 * font.h (font_open_by_spec): Extern it.
3023
c50b7e98
KH
3024 * font.c (font_open_by_spec): New function.
3025 (font_open_by_name): Use font_open_by_spec.
3026
fb930676
KH
3027 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3028 fontset of the frame.
3029
3030 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3031 modify the default font of frames that use this fontset.
3032 (num_auto_fontsets): New variable.
3033 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3034 name. Be sure to set FONTSET_ASCII to the correct font name.
3035 (update_auto_fontset_alist): New function.
3036
df4e8455
JB
30372009-03-11 Juanma Barranquero <lekktu@gmail.com>
3038
3039 * makefile.w32-in: Update dependencies.
3040
0a375797
AR
30412009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3042
3043 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3044
61313fa3
SM
30452009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3046
3047 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3048
b55103fb
CY
30492009-03-10 Chong Yidong <cyd@stupidchicken.com>
3050
3051 * lread.c (Feval_buffer): Doc fix.
3052
dde2559c
KH
30532009-03-09 Kenichi Handa <handa@m17n.org>
3054
3055 * charset.c (Qfile_name_handler_alist): Extern it.
3056 (load_charset_map_from_file): Temporarily bind
3057 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3058
df4e8455 30592009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3060
47f588bb
GM
3061 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3062 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3063
4ddf94bd
AR
30642009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3065
4c9bdfc2
AR
3066 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3067 (x_set_window_size): Change back to calculated method of setting
3068 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3069 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3070 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3071
fe41ae9e
AR
3072 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3073
4c9bdfc2
AR
3074 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3075 accelerator in parens under GNUstep.
3076
825d0875
KH
30772009-03-06 Kenichi Handa <handa@m17n.org>
3078
3079 These changes are to detect incorrect composition sequence without
f3b3be74 3080 looking ahead the source. (Bug#2370)
825d0875
KH
3081
3082 * coding.h: Include "composite.h".
3083 (enum compisition_state): New enum.
3084 (struct compisition_status): New struct.
3085 (struct iso_2022_spec): New member cmp_status.
3086 (struct emacs_mule_spec): New struct.
3087 (struct coding_system): New members ctext_extended_segment_len and
3088 embedded_utf_8. Change the union member
3089 spec.emacs_mule_full_support to spec.emacs_mule.
3090
3091 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3092 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3093 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3094 (ADD_COMPOSITION_DATA): New arg nbytes.
3095 (emacs_mule_char): New arg cmp_status.
3096 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3097 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3098 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3099 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3100 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3101 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3102 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3103 (EMACS_MULE_COMPOSITION_END): New macro.
3104 (emacs_mule_finish_composition): New function.
3105 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3106 (decode_coding_emacs_mule): Avoid long looking ahead while
3107 handling composition.
3108 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3109 (ENCODE_COMPOSITION_RULE): New macro.
3110 (finish_composition): New function.
3111 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3112 (DECODE_COMPOSITION_START): New implementation.
3113 (DECODE_COMPOSITION_END): Likewise.
3114 (STORE_COMPOSITION_RULE): New macro.
3115 (decode_coding_iso_2022): Avoid long looking ahead while handling
3116 composition, CTEXT extended segment, and embedded UTF-8.
3117 (setup_coding_system): For a coding of type iso-2022, reset
3118 CODING_ISO_EXTSEGMENT_LEN (coding) and
3119 CODING_ISO_EMBEDDED_UTF_8 (coding).
3120 (get_translation): Delete arguments last_block, from_nchars,
3121 to_nchars. Callers changed.
3122 (produce_chars): Don't modify charbuf. Adjusted for the change of
3123 get_translation.
98a326f7 3124 (produce_composition): Adjust for the new annotation sequence.
825d0875 3125 (handle_composition_annotation): Likewise.
98a326f7 3126 (consume_chars): Adjust for the change of get_translation.
825d0875 3127
ccbc4452
AR
31282009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3129
4ddf94bd 3130 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3131
988a7ddb
KH
31322009-03-05 Kenichi Handa <handa@m17n.org>
3133
3134 * font.c (font_select_entity): New function.
3135 (font_find_for_lface): Use font_select_entity to select a font.
3136
3137 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3138 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3139 font with C restriction.
3140
98a326f7 31412009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3142
be1bce46 3143 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3144
10ea2b82
JR
31452009-03-04 Jason Rumney <jasonr@gnu.org>
3146
2c93b248 3147 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3148 characters that have already been read. (Bug#2569)
2c93b248 3149
10ea2b82
JR
3150 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3151 Log an error message if check_image_size failed.
3152 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3153 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3154
71a0c011
EZ
31552009-03-02 Eli Zaretskii <eliz@gnu.org>
3156
3157 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3158 when decoding process output.
3159
2f63bba8
RS
31602009-03-01 Richard M Stallman <rms@gnu.org>
3161
3162 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3163
3164 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3165
0a9564cb
EZ
31662009-02-28 Eli Zaretskii <eliz@gnu.org>
3167
3168 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3169 (decode_coding_emacs_mule, decode_coding_iso_2022)
3170 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3171 (decode_coding_raw_text, decode_coding_charset)
3172 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3173 Honor inhibit-eol-conversion. (Bug #2186)
3174
449148b3
JR
31752009-02-28 Jason Rumney <jasonr@gnu.org>
3176
3177 * coding.c (detect_coding_charset): If not checking latin extra,
3178 fail on characters between 0x80 and 0xA0. (Bug#2354)
3179
a4aee864
EZ
31802009-02-28 Eli Zaretskii <eliz@gnu.org>
3181
3182 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3183 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3184
d88bee5a
GM
31852009-02-27 Glenn Morris <rgm@gnu.org>
3186
3187 * callint.c (Finteractive): Doc fix.
3188
a808f22d
KH
31892009-02-27 Kenichi Handa <handa@m17n.org>
3190
3191 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3192
caf8d60c
CY
31932009-02-27 Chong Yidong <cyd@stupidchicken.com>
3194
3195 * font.c (font_style_to_value): Set value for unknown symbols to
3196 100 instead of 255.
b61137ea
CY
3197 (weight_table, slant_table, width_table): Treat "unspecified" as
3198 the default value.
caf8d60c 3199
1a0de25c
JB
32002009-02-26 Juanma Barranquero <lekktu@gmail.com>
3201
3202 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3203
8fc45744
JB
32042009-02-25 Juanma Barranquero <lekktu@gmail.com>
3205
107bd7d1
JB
3206 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3207 error as soon as a recursive load is detected.
8fc45744 3208
f097e223
AR
32092009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3210
3211 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3212 before caching.
3213
8810a12f
KH
32142009-02-24 Kenichi Handa <handa@m17n.org>
3215
3216 * fontset.c (fontset_find_font): Fix the condition for checking
3217 unavailable font.
3218
2c7d1565
GM
32192009-02-24 Glenn Morris <rgm@gnu.org>
3220
3221 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3222 whitespace that confuses documentation.
3223
a20878b6
MB
32242009-02-23 Miles Bader <miles@gnu.org>
3225
3226 * process.c (Flist_system_processes, Fprocess_attributes)
3227 (syms_of_process): Rename `system-process-attributes' to
3228 `process-attributes'.
3229
b3b58c01
AS
32302009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3231
1b3b981b
AS
3232 * coding.h (struct coding_system): Make safe_charsets a pointer to
3233 unsigned char.
3234 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3235 being 255.
3236 (SAFE_CHARSET_P): Likewise.
3237 (setup_iso_safe_charsets): Properly setup safe_charsets.
3238 (Fdefine_coding_system_internal): Likewise.
3239 (setup_coding_system): Likewise. Remove unneeded casts.
3240 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3241 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3242 unneeded casts.
3243
b3b58c01
AS
3244 * insdel.c (del_range_2): Don't modify gap contents when called
3245 from decode_coding_object. (Bug#1809)
3246
0b6f228c
CY
32472009-02-21 Chong Yidong <cyd@stupidchicken.com>
3248
3249 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3250 Qfont_object.
3251 (Ftype_of): Recognize font objects.
3252
3253 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3254
3255 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3256 moved to data.c.
3257
52f8870b
AR
32582009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3259
3260 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3261 async_iconified. Based on a patch by Christian Lynbech
3262 <christian.lynbech@tieto.com>.
3263 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3264
7087d5e9
GM
32652009-02-20 Glenn Morris <rgm@gnu.org>
3266
3267 * syntax.c (Fskip_chars_forward): Fix doc typo.
3268
41d2ceef
CY
32692009-02-20 Chong Yidong <cyd@stupidchicken.com>
3270
3271 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3272
1a3b7ca6
CY
32732009-02-19 Chong Yidong <cyd@stupidchicken.com>
3274
3275 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3276
73cce38d
KH
32772009-02-19 Kenichi Handa <handa@m17n.org>
3278
3279 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3280 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3281
a51092ee
DN
32822009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3283
3284 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3285
c423ecca
KH
32862009-02-18 Kenichi Handa <handa@m17n.org>
3287
3288 * font.c (font_check_otf_features): Fix handling of `nil' element.
3289 (Ffont_spec): Describe :lang and :otf in the docstring.
3290
4c1958f4
AS
32912009-02-16 Andreas Schwab <schwab@suse.de>
3292
3293 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3294 string.
3295
5704f39a
KH
32962009-02-16 Kenichi Handa <handa@m17n.org>
3297
3298 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3299 (Bug#1723)
5704f39a 3300
8f0085aa
CY
33012009-02-14 Chong Yidong <cyd@stupidchicken.com>
3302
a057d86a 3303 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3304
3305 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3306 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3307
aff01dd9
EZ
33082009-02-14 Eli Zaretskii <eliz@gnu.org>
3309
3310 * msdos.c (MAX_SCREEN_BUF): New macro.
3311 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3312 Encode the entire run of glyphs sharing the same face, instead of
3313 doing that one glyph at a time (fixes a bug with displaying
3314 double-size characters).
3315
ba301db3
AR
33162009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3317
3318 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3319
3320 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3321 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3322 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3323
3324 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3325 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3326
51d861de
SM
33272009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3328
3329 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3330 invisible areas.
3331
7fed8996
JR
33322009-02-12 Jason Rumney <jasonr@gnu.org>
3333
631ea4fb
JR
3334 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3335 (add_font_entity_to_list): Call check_face_name even when family
3336 is unspecified.
3337
cb4a3e42
JR
3338 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3339 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3340 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3341
7fed8996 3342 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3343 raster fonts. (Bug#2219)
7fed8996 3344
895416e3
KH
33452009-02-12 Kenichi Handa <handa@m17n.org>
3346
3347 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3348 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3349 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3350 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3351 (find_automatic_composition): While looking forward and backward,
3352 check static composition. Fix where to stop looking forward.
3353 (composition_adjust_point): Fix checking of static composition.
3354 (Fcomposition_get_gstring): Pay attention to
1dacf998 3355 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3356
3357 * lisp.h (fast_looking_at): Extern it.
3358
3359 * search.c (fast_looking_at): New function.
3360
51d861de 3361 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3362 <struct glyph>.u.cmp.to.
3363 (append_composite_glyph): Likewise.
3364
51d861de 3365 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3366 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3367 composition.
51d861de 3368 (append_composite_glyph): Adjust for the change of
895416e3
KH
3369 <strcut glyph>.u.cmp.to.
3370
8510724d
JB
33712009-02-11 Juanma Barranquero <lekktu@gmail.com>
3372
3373 * casetab.c (init_casetab_once):
3374 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3375 * font.c (font_update_lface):
3376 * fontset.c (Fnew_fontset):
3377 * ftfont.c (ftfont_drive_otf):
3378 * xfont.c (xfont_open):
3379 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3380
294fa707
SM
33812009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3382
3383 * fileio.c (Fwrite_region): !NILP -> CONSP.
3384
b5bfebec
AS
33852009-02-10 Andreas Schwab <schwab@suse.de>
3386
3387 * process.c (send_process): Properly relocate pointer into data
adab88bd 3388 when using encoded data. (Bug#2272)
b5bfebec 3389
cb84a2be
KH
33902009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3391
3392 * coding.c (detect_coding_charset): Fix previous change.
3393
89e09428
JR
33942009-02-08 Jason Rumney <jasonr@gnu.org>
3395
3396 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3397 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3398
4470a277
AS
33992009-02-07 Andreas Schwab <schwab@suse.de>
3400
3401 * unexelf.c (unexec): Fix error message.
3402
3175b12a
AR
34032009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3404
3405 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3406 when modal window is active. (Bug #2152)
3175b12a
AR
3407 (applicationShouldTerminate:): Remove now-unneeded while loop
3408 around NSRunAlertPanel.
3409
3410 * nsmenu.m (popupSession): New file-global variable.
3411 (pop_down_menu): End the popupSession before closing dialog.
3412 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3413 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3414 don't query NSApp for events (just sleep instead).
3415
8434d0b8
EZ
34162009-02-07 Eli Zaretskii <eliz@gnu.org>
3417
51d861de
SM
3418 * coding.c (syms_of_coding) <translation-table-for-input>:
3419 Modify doc string to discourage use for character code unification.
8434d0b8 3420
aa82edfd
CY
34212009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3422
3423 * atimer.c (run_timers): Update pending_atimers.
3424
2d283c7c
CY
34252009-02-06 Chong Yidong <cyd@stupidchicken.com>
3426
eb306cab
CY
3427 * image.c (svg_load_image): Fix last change.
3428
2d283c7c
CY
3429 * xfns.c (Fx_create_frame): Signal an error if no font is
3430 found (Bug#2147).
3431
4d8e170e
JB
34322009-02-05 Juanma Barranquero <lekktu@gmail.com>
3433
3434 * character.c (syms_of_character) <script-representative-chars>:
3435 Fix typo in docstring.
3436
c96169a0
AR
34372009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3438
3439 * nsmenu.m (pop_down_menu): New function.
3440 (ns_popup_dialog): Call it on unwind.
3441 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3442 call timer_check() (Bug#2154).
3443 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3444 handling_signal is set.
3445 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3446
31fd7c5c 3447 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3448
3449 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3450
3451 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3452
51d861de
SM
3453 * keyboard.c (poll_for_input_1, handle_async_input):
3454 Set handling_signal under HAVE_NS.
c96169a0 3455
aacd8ba1
GM
34562009-02-04 Glenn Morris <rgm@gnu.org>
3457
3458 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3459
4cb75c4b
KH
34602009-02-04 Kenichi Handa <handa@m17n.org>
3461
3462 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3463
3464 * charset.c (Fchar_charset): New optional arg restriction.
3465
3466 * coding.h (coding_system_charset_list): Extern it.
3467
3468 * coding.c (coding_system_charset_list): New function.
3469
3470 * composite.c: Include coding.h and termhooks.h.
3471 (composition_gstring_p): Fix for the terminal case.
3472 (composition_gstring_width): Likewise.
3473 (fill_gstring_body): Likewise.
3474 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3475 the frame.
3476 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3477 is within a composition.
867d4bb3 3478 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3479
3480 * term.c (encode_terminal_code): Fix handling of composition.
3481 (produce_composite_glyph): For static composition, get pixel_width
3482 from struct composition.
3483
826ba17e
AS
34842009-02-02 Andreas Schwab <schwab@suse.de>
3485
3486 * unexelf.c (unexec): Handle unaligned bss offset.
3487
8ad093db
AR
34882009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3489
3490 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3491 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3492
8ad093db
AR
3493 * keyboard.c (handle_interrupt): Don't call
3494 quit_throw_to_read_char() under NS.
d0a76a6e 3495
8ad093db
AR
3496 * blockinput.h: Remove NS-specific code.
3497
4d18a7a2
DN
34982009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3499
db878925
DN
3500 * dispnew.c (window_change_signal): Don't try to get the size of a
3501 suspended tty frame.
3502 * term.c (Fresume_tty): Resize if the size has changed while the
3503 tty was suspended.
3504
4d18a7a2
DN
3505 * alloc.c (mark_stack): Properly conditionalize previous change.
3506
8984df7c
JB
35072009-01-30 Juanma Barranquero <lekktu@gmail.com>
3508
3509 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3510 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3511 Remove; this code is not used on Windows.
3512
75f4f1ac
EZ
35132009-01-30 Eli Zaretskii <eliz@gnu.org>
3514
3515 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3516 EOLs that also has stray ^M characters.
3517
07a1e794
JB
35182009-01-30 Juanma Barranquero <lekktu@gmail.com>
3519
3520 * atimer.c (run_timers, alarm_signal_handler):
3521 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3522 * w32inevt.c (w32_console_read_socket):
3523 * w32term.c (w32_read_socket):
3524 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3525
a8b11cc9
CY
35262009-01-30 Chong Yidong <cyd@stupidchicken.com>
3527
3528 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3529 Initialize it as a relative filename pattern.
3530 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3531 (Fcall_process_region): Simplify temp file creation using
3532 temporary-file-directory.
3533
c279587b
EZ
35342009-01-29 Eli Zaretskii <eliz@gnu.org>
3535
3536 * msdos.c: Rename pending_signals to msdos_pending_signals.
3537 (sig_suspender, sigprocmask): Adjust.
3538
a8fe3242
CY
35392009-01-29 Chong Yidong <cyd@stupidchicken.com>
3540
3541 * keyboard.c (pending_signals): New var.
3542 (poll_for_input, input_available_signal, init_keyboard): Set it.
3543 (process_pending_signals): New function.
3544
3545 * lisp.h (QUIT): Check pending_signals instead of
3546 interrupt_input_pending. Use process_pending_signals.
3547
51d861de 3548 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3549
51d861de 3550 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3551
3552 * sysdep.c (emacs_write): Use process_pending_signals.
3553
3554 * xterm.c (XTread_socket): Update pending_signals.
3555
3556 * w32term.c (w32_read_socket): Update pending_signals.
3557
3558 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3559
6570a1c4
KH
35602009-01-29 Kenichi Handa <handa@m17n.org>
3561
3562 * xftfont.c (xftfont_has_char): New function.
3563 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3564
d72a4afa
AR
35652009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3566
3567 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3568 under GNUstep.
3569 (ns_query_color): New declaration.
3570
3571 * nsterm.m (ns_confirm_quit): New variable.
3572 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3573 (EmacsApp-applicationShouldTerminate:): Use it.
3574 (EmacsPrefsController): Let user set it.
3575 (ns_query_color): New function.
3576 (ns_defined_color): Use it.
3577 (ns_initialize): Drop.
3578 (ns_term_init): Add two lines from ns_initialize(), and set
3579 input_interrupt_mode to nil.
3580
3581 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3582 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3583
9fe78804
KH
35842009-01-28 Kenichi Handa <handa@m17n.org>
3585
3586 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3587 (fontset_get_font_group): Remember that no font-group is specified
3588 for C.
9fe78804 3589
fa57de36
CY
35902009-01-27 Chong Yidong <cyd@stupidchicken.com>
3591
930600e9
CY
3592 * fns.c (concat): Check for string overflow (bug#1787).
3593
fa57de36
CY
3594 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3595 Quadruple undo limits (bug#1501).
3596
7179ce7b
KH
35972009-01-27 Kenichi Handa <handa@m17n.org>
3598
3599 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3600 directly use GT_Get_Char_index.
3601
3602 * xftfont.c (struct xftfont_info): New member `index'.
3603
3604 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3605 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3606
5be8fcc0
CY
36072009-01-26 Kenichi Handa <handa@m17n.org>
3608
3609 * fontset.c (fontset_find_font): Fix handling of non-cons return
3610 value of fontset_get_font_group.
3611 (fontset_font): Revert last change.
3612
19ae3e61
JR
36132009-01-26 Jason Rumney <jasonr@gnu.org>
3614
3615 * w32font.c (w32font_list_internal): Return quickly if registry is
3616 unknown. Simplify final return.
3617 (add_font_entity_to_list): Break complex logic down into more
3618 manageable chunks. Move unknown registry check to
3619 w32font_list_internal.
3620
8612b71a
AR
36212009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3622
3623 Changes to remove Feval calls from GUI under NS.
3624
d8038940
JB
3625 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3626 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3627 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3628
3629 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3630 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3631 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3632 instead of NON_ASCII_KEYSTROKE_EVENT.
3633 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3634 (EmacsApp-applicationShouldTerminate:): Query user.
3635 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3636 instead of Feval.
3637
3638 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3639
3640 * keyboard.c (kbd_buffer_get_event): Check for it.
3641 (keys_of_keyboard): Define lispy keys for
3642 ns-put/unput-working-text.
3643
3644 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3645 versions.
3646 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3647
6288ae55
CY
36482009-01-25 Chong Yidong <cyd@stupidchicken.com>
3649
3650 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3651 setting current_buffer directly. (Bug#2044)
6288ae55 3652
289e7f8f
CY
36532009-01-24 Chong Yidong <cyd@stupidchicken.com>
3654
5ce87308 3655 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3656 any work. (Bug#1952, bug#1990).
5ce87308 3657
64cc3cf6 3658 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3659
b3243e6f
AR
36602009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3661
3662 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3663 (ns_no_defaults): New declaration.
3664 (main): Use it.
e0d2e69a 3665
d900b2af 3666 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3667
d900b2af 3668 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3669
d900b2af
AR
3670 * nsterm.m (ns_no_defaults): New variable.
3671 (ns_initialize): Don't read defaults when ns_no_defaults.
3672 (EmacsView-readSelectionFromPasteboard:)
3673 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3674 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3675 (ns_dumpglyphs_stretch): New function.
3676 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3677 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3678
e0d2e69a
AR
3679 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3680
3ac71f5d
CY
36812009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3682
3683 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3684 call for Sparc64.
3685
3fe53a83
AR
36862009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3687
3688 * nsfns.m:
3689 * nsgui.h:
3690 * nsmenu.m:
3691 * nsselect.m:
3692 * nsterm.h:
3693 * nsterm.m: Remove '23' comments that indicated code added during
3694 update from emacs-20 -> emacs-23.
3695
10f87c6f 36962009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3697
3698 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3699 ns_alternate_modifier. (Bug#1217)
a3b53a85 3700
c7cef62d
AR
3701 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3702 Display all shortcuts, including those w/o super modifier.
3703
575fb8bd
AR
3704 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3705
918b848b
CY
37062009-01-22 Chong Yidong <cyd@stupidchicken.com>
3707
3708 * fileio.c (Vwrite_region_post_annotation_function)
3709 (Vwrite_region_annotation_buffers): New vars.
3710 (build_annotations_unwind): Just reset
3711 Vwrite_region_annotation_buffers.
3712 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3713 Call write-region-post-annotation-function.
3714 (build_annotations): Add to Vwrite_region_annotation_buffers if
3715 buffer changes.
3716
a39e2539
AR
37172009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3718
3719 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3720 Tiger.
51d861de
SM
3721 * nsfns.m (ns_do_applescript):
3722 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3723
35ed44db
AR
37242009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3725
3726 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3727
cbe0b5bf
AR
37282009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3729
3730 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3731
6049d3a0
AR
3732 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3733
3734 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3735 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3736 handle Ctrl-tab. (Bug#1841)
3737 (ns_get_color): Use unsigned long long for scanned hex string value.
3738 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3739 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3740 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3741 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3742 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3743 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3744 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3745
d3810c21 3746 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3747 DPI. (Bug#1316)
d3810c21
AR
3748 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3749 values in onTiger section.
4c7077c3 3750
e301e634
CY
37512009-01-19 Chong Yidong <cyd@stupidchicken.com>
3752
7f82490b
CY
3753 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3754 Check return value of font_spec_from_name.
64cc3cf6 3755 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3756
3757 * font.c (font_spec_from_name): Return Qnil if font name could not
3758 be parsed.
3759 (font_parse_name): Treat a `?' character as part of an XLFD.
3760
e301e634
CY
3761 * fns.c (Fsubstring): Doc fix.
3762
1c0db158
KH
37632009-01-19 Kenichi Handa <handa@m17n.org>
3764
51d861de 3765 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3766 (ftfont_list): Likewise.
3767
acf20901
JB
37682009-01-18 Juanma Barranquero <lekktu@gmail.com>
3769
fff4e459
JB
3770 * dbusbind.c (Fdbus_register_signal):
3771 * process.c (conv_sockaddr_to_lisp):
3772 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3773
acf20901
JB
3774 * callproc.c (Fgetenv_internal): Doc fix.
3775
e7abcdfb
CY
37762009-01-16 Chong Yidong <cyd@stupidchicken.com>
3777
3778 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3779 it is not even used.
3780
b60861e6
GM
37812009-01-16 Glenn Morris <rgm@gnu.org>
3782
3783 * font.c (Ffont_variation_glyphs): Silence compiler.
3784
8db52afe
JB
37852009-01-15 Juanma Barranquero <lekktu@gmail.com>
3786
3787 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3788 Reported by David Robinow <drobinow@gmail.com>.
3789
4cddb209
KH
37902009-01-15 Kenichi Handa <handa@m17n.org>
3791
51d861de 3792 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3793
f247f67b
JR
37942009-01-14 Jason Rumney <jasonr@gnu.org>
3795
3796 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3797 never a fontset. (Bug#1562)
f247f67b 3798
f56a4450
KH
37992009-01-14 Kenichi Handa <handa@m17n.org>
3800
3801 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3802 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3803
4e99855e
CY
38042009-01-13 Chong Yidong <cyd@stupidchicken.com>
3805
3806 * font.c (font_clear_prop): If clearing the family, clear the font
3807 width index too.
3808
fff4e459 3809 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3810
24f01470
JB
38112009-01-12 Juanma Barranquero <lekktu@gmail.com>
3812
3813 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3814 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3815 functions, use sizeof.
3816
a41240a3
MR
38172009-01-12 Martin Rudalics <rudalics@gmx.at>
3818
3819 * keyboard.c (read_char): Fix case where last_nonmenu_event
3820 returned a bad value with submenus. (Bug#447)
3821
944636b8
CY
38222009-01-12 Chong Yidong <cyd@stupidchicken.com>
3823
3824 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3825 family, clear the font width index too.
3826
0dad7c6f
JR
38272009-01-11 Jason Rumney <jasonr@gnu.org>
3828
3829 * keyboard.c (cmd_error_internal): Exit when errors occur before
3830 frame creation and not in daemon mode. (Bug#1836)
3831
7c2363af
CY
38322009-01-10 Chong Yidong <cyd@stupidchicken.com>
3833
3834 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3835 of a display vector, backtrack.
3836 (try_window_reusing_current_matrix): Check glyph type before
3837 referencing charpos member.
3838
97b1b294
EZ
38392009-01-10 Eli Zaretskii <eliz@gnu.org>
3840
3841 Fix Bug #876:
3842
3843 * coding.c (inhibit_null_byte_detection): New variable.
3844 (detect_coding, detect_coding_system): Don't pay attention to null
3845 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3846 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3847 <inhibit-iso-escape-detection>: Doc fix.
3848
4624b6e3
JR
38492009-01-09 Jason Rumney <jasonr@gnu.org>
3850
3851 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3852 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3853 Only report Unicode Plane 2 fonts as unicode-sip.
3854
323b840c
CY
38552009-01-09 Chong Yidong <cyd@stupidchicken.com>
3856
51d861de
SM
3857 * xfaces.c (Fx_font_family_list): Delete function.
3858 Move compatibility version to faces.el.
323b840c 3859
51d861de 3860 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3861
eba7400d
MR
38622009-01-09 Martin Rudalics <rudalics@gmx.at>
3863
3864 * frame.c (x_set_frame_parameters): Remember requested value for
3865 fullscreen before it's reset by the parameter handler.
3866
4b09796d
GM
38672009-01-09 Glenn Morris <rgm@gnu.org>
3868
3869 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3870 (last_command_event): ... and update all users.
4b09796d
GM
3871 (last_input_char): For clarity, rename to...
3872 (last_input_event): ... and update all users.
3873 (last-command-char, last-input-char): Move to subr.el as aliases.
3874 * cmds.c, commands.h: Update for last_command_char rename.
3875
14ccea62
CY
38762009-01-08 Chong Yidong <cyd@stupidchicken.com>
3877
51d861de 3878 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3879
5f004711
JR
38802009-01-08 Jason Rumney <jasonr@gnu.org>
3881
3882 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3883 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3884 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3885 Don't declare.
fff4e459 3886 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3887 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3888
b71f6f73
KH
38892009-01-07 Kenichi Handa <handa@m17n.org>
3890
50b06221 3891 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3892 remember the coding system used for decoding in
50b06221
KH
3893 coding_system (Bug#1039).
3894
b71f6f73 3895 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3896 breaking the loop. (Bug#870)
b71f6f73
KH
3897 (decode_coding_utf_16, decode_coding_emacs_mule)
3898 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3899 (decode_coding_charset): Likewise.
3900
56f668f7
MR
39012009-01-05 Martin Rudalics <rudalics@gmx.at>
3902
3903 * frame.c (x_set_frame_parameters): Make sure height (width) get
3904 applied when fullwidth (fullheight) is set. (Bug#1522)
3905
5da9424d
JB
39062009-01-04 Juanma Barranquero <lekktu@gmail.com>
3907
3908 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3909 (utc_base): Declare as ULONGLONG, not long double.
3910 (convert_time_raw): Delete.
3911 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3912 (initialize_utc_base): New function.
3913 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3914 (convert_from_time_t): Use initialize_utc_base; compute result with
3915 64-bit arithmetic.
3916 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3917
c4605e09
EZ
39182009-01-03 Eli Zaretskii <eliz@gnu.org>
3919
9acef61c 3920 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3921 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3922 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3923 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3924 [!subprocesses]: Define.
3925 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3926 (Flist_system_processes, Fsystem_process_attributes)
3927 [!subprocesses]: Call list_system_processes and
3928 system_process_attributes instead of returning Qnil.
3929
9acef61c
JB
3930 * dosfns.c (system_process_attributes, list_system_processes):
3931 New functions.
c4605e09
EZ
3932
3933 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3934
3935 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3936 Don't use the default (no-op) implementation.
3937
8b7d0a16
JR
39382009-01-03 Jason Rumney <jasonr@gnu.org>
3939
a6d46bc1
JR
3940 * keyboard.c (parse_modifiers_uncached): Wheel events are
3941 clicks (bug#687).
3942
8b7d0a16
JR
3943 * w32term.c (x_query_colors, x_query_color): New functions.
3944
3945 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3946 (svg_load_image): Cast returned pointers from dynamically loaded
3947 functions. Eliminate W32 specific code.
3948
bfe11752
DN
39492009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3950
89e2438a
DN
3951 * nsfns.m (x_set_foreground_color, x_set_background_color)
3952 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3953 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3954 x_ prefix instead of ns_. Update references.
3955 (syms_of_nsfns): Add a FIXME comment.
3956
3957 * nsterm.m (x_set_cursor_type): New prototype.
3958 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3959
bfe11752
DN
3960 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3961 for Solaris instead of incorrectly providing Qutime and Qcutime.
3962
031da700
EZ
39632009-01-02 Eli Zaretskii <eliz@gnu.org>
3964
3965 * w32.c (process_times): Compute sum of utime and stime.
3966 (system_process_attributes): Add Qtime to the alist.
3967
3968 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3969 and add them to the alist.
3970
3971 * process.c (top level) <Qtime, Qctime>: New variables.
3972 (syms_of_process): staticpro them.
3973 (Fsystem_process_attributes): Add their documentation to the doc
3974 string.
3975
3976 * process.h: Declare Qtime and Qctime.
3977
df23bf08
JR
39782009-01-02 Jason Rumney <jasonr@gnu.org>
3979
9acef61c 3980 * image.c (Qgobject): New symbol.
df23bf08
JR
3981 (syms_of_image): Initialize it.
3982 (init_svg_functions): Load some functions from gobject library.
3983
5bbdf7aa
DN
39842009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3985
3986 * frame.c (make_terminal_frame): Remove redundant code and useless
3987 block.
3988
63136da6
AS
39892009-01-01 Andreas Schwab <schwab@suse.de>
3990
3991 * process.c (conv_sockaddr_to_lisp): Add workaround for
3992 getsockname bug on BSD.
3993
9ef69046
CY
39942009-01-01 Chong Yidong <cyd@stupidchicken.com>
3995
d6fafbe0
CY
3996 * xfns.c (x_create_tip_frame): Set border width of the X window.
3997
51d861de 3998 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3999
f9c34147
JR
40002009-01-01 Jason Rumney <jasonr@gnu.org>
4001
9acef61c 4002 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4003 Don't block input, as per earlier xterm.c changes.
4004
f5497e45
AR
40052008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4006
4007 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4008 (ns_appkit_version_int): New function.
4009 (x-server-version): Use ns_appkit_version_int and follow 21+
4010 convention of returning 3 integers.
4011
c19cab20
KH
40122008-12-30 Kenichi Handa <handa@m17n.org>
4013
4014 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4015 (CHAR_SURROGATE_PAIR_P): New macro.
4016
4017 * font.h (struct font_driver): New member get_variation_glyphs.
4018
9acef61c 4019 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4020 (Ffont_variation_glyphs): New function.
4021 (syms_of_font): Defsubr it.
4022
4023 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4024 ftfont_variation_glyphs.
4025 (setup_otf_gstring): New function.
4026 (ftfont_drive_otf): Use it.
4027 (ftfont_shape_by_flt): Handle variation selector.
4028 (ftfont_variation_glyphs): New function.
4029
28cd591f
MR
40302008-12-30 Martin Rudalics <rudalics@gmx.at>
4031
4032 * frame.c (Vemacs_iconified): Remove.
4033
7f714baf
JR
40342008-12-30 Jason Rumney <jasonr@gnu.org>
4035
4036 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4037 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4038
9d2d22ab
CY
40392008-12-30 Chong Yidong <cyd@stupidchicken.com>
4040
4041 * indent.c (Fvertical_motion): Don't advance iterator if we have
4042 reseated to the desired position.
4043
4044 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4045 checking for pos match.
4046
545312c2
KH
40472008-12-30 Kenichi Handa <handa@m17n.org>
4048
1ede3eb6
KH
4049 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4050 just get the low 8-bit of the code.
4051
545312c2
KH
4052 * font.c (font_intern_prop): Validate str as multibyte.
4053
bd7bbf29
DN
40542008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4055
31e0750e
DN
4056 * dispextern.h (struct face): Move lface and hash from the middle
4057 of bitfields.
4058
bd7bbf29
DN
4059 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4060
b5672e7c
DN
40612008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4062
4063 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4064 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4065 instead of intervals.h.
4066
d704470f
AS
40672008-12-26 Andreas Schwab <schwab@suse.de>
4068
4069 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4070 cons.
4071
54b33868
MR
40722008-12-26 Martin Rudalics <rudalics@gmx.at>
4073
4074 * textprop.c (Qminibuffer_prompt): New variable.
4075 (syms_of_textprop): Initialize it.
4076 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4077 in minibuffer-prompt face. (Bug#1662)
4078
40b615d6
JR
40792008-12-25 Jason Rumney <jasonr@gnu.org>
4080
4081 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4082
baae5c2d
JR
40832008-12-24 Jason Rumney <jasonr@gnu.org>
4084
4085 * ralloc.c (r_alloc_reset_variable): New function.
4086
4087 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4088 record of what points where. (Bug#716)
baae5c2d 4089
a9051c88
DN
40902008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4091
4092 * minibuf.c (read_minibuf): Follow the non-interactive case when
4093 running as a daemon, before detaching.
4094
8b146312
AS
40952008-12-22 Andreas Schwab <schwab@suse.de>
4096
4097 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4098 * gtkutil.c (free_widget_value): Use xfree instead of free.
4099
56f2de10
MR
41002008-12-22 Martin Rudalics <rudalics@gmx.at>
4101
4102 * frame.c (delete_frame): New function derived from
4103 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4104 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4105 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4106 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4107 * frame.h: Extern delete_frame.
4108 * window.c (window_loop):
4109 * terminal.c (delete_terminal):
4110 * xterm.c (x_connection_closed):
4111 * xfns.c (Fx_hide_tip):
9acef61c 4112 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4113
1fc200d6
JR
41142008-12-21 Jason Rumney <jasonr@gnu.org>
4115
4116 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4117 when character maps to .notdef character.
4118
5e252df2
SM
41192008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4120
4121 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4122
99b72cc4
JR
41232008-12-20 Jason Rumney <jasonr@gnu.org>
4124
4125 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4126 a graphical frame on Windows. (Bug#1325)
99b72cc4 4127
acc49a52
JD
41282008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4129
4130 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4131
6ea15123
CY
41322008-12-20 Chong Yidong <cyd@stupidchicken.com>
4133
4134 * minibuf.c (Fread_buffer): Doc fix.
4135
b2dab6c8
JR
41362008-12-20 Jason Rumney <jasonr@gnu.org>
4137
54ea0c87 4138 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4139 server name in UNC paths. (Bug#719)
54ea0c87 4140
b2dab6c8 4141 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4142 charbuf. (Bug#1035)
b2dab6c8 4143
6d1921be
DN
41442008-12-19 Daniel Engeler <engeler@gmail.com>
4145
4146 * sysdep.c (serial_configure): Fix typo.
4147
53934c98
DN
41482008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4149
4150 * sysdep.c: Include alloca.h.
f4f634e8
DN
4151 (system_process_attributes): Add implementation for Solaris.
4152
4153 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4154
06e111a6
DN
41552008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4156
4157 Reorganize implementation of Flist_system_processes and
4158 Fsystem_process_attributes. No functional changes.
4159 * process.c: Don't #include pwd.h, grp.h and limits.h.
4160 (Flist_system_processes): Just call list_system_processes.
4161 (Fsystem_process_attributes): Just call system_process_attributes.
4162 (procfs_list_system_processes, time_from_jiffies)
4163 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4164 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4165
4166 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4167 (list_system_processes): Rename from
4168 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4169 Provide a do nothing implementation.
4170 (system_process_attributes): Rename from
4171 procfs_list_system_processes.
4172 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4173 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4174
4175 * w32.c (list_system_processes): Rename from
4176 w32_list_system_processes.
4177 (system_process_attributes): Rename from
4178 w32_system_process_attributes.
4179
4180 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4181
4182 * process.h (w32_list_system_processes)
4183 (w32_system_process_attributes): Remove.
362654a6
JB
4184 (list_system_processes, system_process_attributes):
4185 New prototypes.
06e111a6 4186
6a705b23
KH
41872008-12-19 Kenichi Handa <handa@m17n.org>
4188
4189 * xfont.c (xfont_decode_coding_xlfd): New function.
4190 (xfont_encode_coding_xlfd): New function.
4191 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4192 (xfont_list): Decode and encode XLFD by iso-8859-1.
4193 (xfont_match): Likewise.
4194 (xfont_list_family): Likewise.
4195 (xfont_open): Likewise.
4196
d66c0241 4197 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4198 names are utf-8.
4199
d66c0241 4200 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4201 names are utf-8.
4202
5a130941
JD
42032008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4204
4205 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4206 changed.
bfd20325
JD
4207 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4208 clicked on a detached tool bar button.
5a130941 4209
fd95644b
DN
42102008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4211
4212 * emacs.c (main): Print and error and exit when no data is read
4213 from the pipe.
4214
e6eee6ae
JR
42152008-12-17 Jason Rumney <jasonr@gnu.org>
4216
4217 * w32font.c (w32font_has_char): Always return -1.
4218
a35dd56b
KH
42192008-12-16 Kenichi Handa <handa@m17n.org>
4220
4221 * font.c (font_open_entity): Fix previous change.
4222
0e3635c2
DN
42232008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4224
4225 * process.c: Include <limits.h>.
4226
d4835507 42272008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4228
4229 * font.c (font_update_drivers): Fix mistake in reconstructing the
4230 driver list.
4231
42322008-12-16 Chong Yidong <cyd@stupidchicken.com>
4233
4234 * font.c (font_clear_cache): Fix format of font cache data.
4235
e2cbc401
CY
42362008-12-15 Chong Yidong <cyd@stupidchicken.com>
4237
4238 * xftfont.c (xftfont_open): Free Xft font pattern if
4239 XftFontOpenPattern fails.
4240
4241 * xterm.c (x_free_frame_resources): Remove extraneous call to
4242 free_frame_faces.
4243
b131d535
CY
42442008-12-13 Chong Yidong <cyd@stupidchicken.com>
4245
4246 * xterm.c (x_delete_display): Move xim_close_dpy call to
4247 x_delete_terminal.
4248 (x_delete_terminal): Call xim_close_dpy.
4249
e6df5336
JR
42502008-12-13 Jason Rumney <jasonr@gnu.org>
4251
4252 * w32font.c (intern_font_name): New function.
4253 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4254 (w32font_open_internal, Fx_select_font): Decode font name.
4255 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4256
4257 * w32font.h (intern_font_name): Declare new function.
4258
4259 * w32uniscribe.c (add_opentype_font_name_to_list):
4260 Use intern_font_name.
4261
20d68145
CY
42622008-12-13 Chong Yidong <cyd@stupidchicken.com>
4263
9f2554de
CY
4264 * frame.c (Fdelete_frame): Call free_font_driver_list.
4265
3d9bec9a
CY
4266 * font.c (free_font_driver_list): Implement missing function.
4267
20d68145
CY
4268 * w32term.c (w32_term_init): Don't initialize the image cache
4269 here; it will be done in init_frame_faces.
4270
4271 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4272 (struct x_display_info): Remove unused member null_pixel. New
4273 member xim_callback_data.
4274
4275 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4276 (xim_initialize): Save pointer to callback function data.
4277 (xim_close_dpy): Free callback function data. Call XCloseIM,
4278 reverting 2008-11-04 change by David Smith.
4279 (x_term_init): Don't initialize the image cache here; it will be
4280 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4281 (x_delete_display): Free x_dnd_atoms member.
4282
96f9306b
KH
42832008-12-13 Kenichi Handa <handa@m17n.org>
4284
6dec9044
JB
4285 * font.c (font_rescale_ratio): Moved from xfaces.c.
4286 Argument type changed. Handle a font-spec too.
96f9306b 4287 (font_score): Check Vface_font_rescale_alist.
6dec9044 4288 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4289
4290 * xfaces.c (font_rescale_ratio): Moved to font.c.
4291
8d5b4964
CY
42922008-12-13 Chong Yidong <cyd@stupidchicken.com>
4293
4294 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4295
e6df5336
JR
42962008-12-12 Jason Rumney <jasonr@gnu.org>
4297
4298 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4299 Vwindow_system_version to the real w32 major version.
4300
97c6058a
DN
43012008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4302
4303 * term.c (init_tty): Move setting the terminal name before the
4304 potential user: maybe_fatal.
4305
ec4e88d7
CY
43062008-12-11 Chong Yidong <cyd@stupidchicken.com>
4307
d4835507
JB
4308 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4309 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4310
b4233ec9
JR
43112008-12-11 Jason Rumney <jasonr@gnu.org>
4312
8ec71e23 4313 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4314 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4315
b4233ec9 4316 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4317 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4318
011a0143
JB
43192008-12-11 Juanma Barranquero <lekktu@gmail.com>
4320
4321 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4322
3c309f34
JB
43232008-12-11 Juanma Barranquero <lekktu@gmail.com>
4324
4325 * process.c (Fsystem_process_attributes, syms_of_process):
4326 Fix typo in name of Ssystem_process_attributes.
4327 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4328
fedc6ab5
JB
43292008-12-11 Juanma Barranquero <lekktu@gmail.com>
4330
4331 * syntax.c (Fmodify_syntax_entry): Doc fix.
4332
ba3de0e8
JB
43332008-12-10 Juanma Barranquero <lekktu@gmail.com>
4334
4335 * font.c (Ffont_spec): Move usage to end of docstring.
4336
174f1c74
JR
43372008-12-10 Jason Rumney <jasonr@gnu.org>
4338
4339 * w32font.c (Qcham): New symbol.
4340 (font_supported_scripts): Add cham, and comments for other new
4341 scripts in bitfield from OpenType spec.
9d32f818
JR
4342 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4343 contain characters beyond the bmp.
174f1c74 4344
7b649478
KH
43452008-12-10 Kenichi Handa <handa@m17n.org>
4346
4347 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4348 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4349 Qunicode_sip.
4350
2133e2d1
JB
43512008-12-10 Juanma Barranquero <lekktu@gmail.com>
4352
4353 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4354 (Fcoding_system_put): Use QCdefault_char.
4355 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4356
9af886ee
CY
43572008-12-09 Chong Yidong <cyd@stupidchicken.com>
4358
74d819eb
CY
4359 * xftfont.c (syms_of_xftfont): Fix typo.
4360
4ccfa1c0 4361 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4362
7c19d3ae
DN
43632008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4364
4365 * emacs.c (main): Close daemon_pipe on exec.
4366
567826bb
CY
43672008-12-08 Chong Yidong <cyd@stupidchicken.com>
4368
4369 * termchar.h (struct tty): New members termcap_term_buffer and
4370 termcap_strings_buffer.
4371
4372 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4373 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4374 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4375 All callers changed.
4376 (init_tty): Store termcap data and string buffers in new struct
4377 tty members termcap_term_buffer and termcap_strings_buffer.
4378 (delete_tty): Free them.
4ccfa1c0 4379 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4380
aa96c42b
SZ
43812008-12-07 Seiji Zenitani <zenitani@mac.com>
4382
4383 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4384 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4385
b7e1d896
CY
43862008-12-06 Chong Yidong <cyd@stupidchicken.com>
4387
4388 * coding.c (make_conversion_work_buffer): Disable buffer
4389 modification hooks in the work buffer.
4390
b5ec91a5
EZ
43912008-12-05 Eli Zaretskii <eliz@gnu.org>
4392
4393 * process.c (procfs_system_process_attributes): If `nread' has a
4394 negative value, assign zero to it.
4395
a5d2a52b
CY
43962008-12-05 Chong Yidong <cyd@stupidchicken.com>
4397
68c5540b 4398 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4399
7bf1bb21
KH
44002008-12-05 Kenichi Handa <handa@m17n.org>
4401
4402 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4403 second character is a combining character.
4404
2fdc7d00
EZ
44052008-12-05 Eli Zaretskii <eliz@gnu.org>
4406
4407 * process.c (procfs_system_process_attributes): Don't use cmd,
4408 cmdsize, and q without initializing them first.
4409
bf6bfba8
JR
44102008-12-04 Jason Rumney <jasonr@gnu.org>
4411
4412 * w32font.c (w32font_draw): Initialize orig_clip before getting
4413 it, and delete it when finished.
4414
a3b1a468
DN
44152008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4416
4417 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4418 case when running as a daemon before detaching.
4419
8b8be8eb
JB
44202008-12-03 Juanma Barranquero <lekktu@gmail.com>
4421
805f2638 4422 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4423
b1bde622
KH
44242008-12-03 Kenichi Handa <handa@m17n.org>
4425
e500c47d
KH
4426 * font.c (font_at): Set `multibyte' at first.
4427
ca516334
KH
4428 * coding.c (decode_coding_charset): Check type of an element of
4429 vector VALIDS.
7bf1bb21 4430 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4431
4ccfa1c0 4432 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4433 (font_for_char): Likewise.
4434
1e5ecd37
CY
44352008-12-03 Chong Yidong <cyd@stupidchicken.com>
4436
d5b01609 4437 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4438 (font_update_lface): Handle fonts with corrupted size specs,
4439 i.e. non-int and non-float.
d5b01609 4440
11e3a6e4 4441 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4442 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4443 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4444
ab06788b
CY
4445 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4446
1e5ecd37 4447 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4448 underline_minimum_offset for underline position.
1e5ecd37 4449
63c125ab
DN
44502008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4451
4452 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4453
4454 * character.c (c_string_width): Specify the type for LEN.
4455
3a8406e1
KH
44562008-12-03 Kenichi Handa <handa@m17n.org>
4457
4ccfa1c0 4458 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4459 (decode_coding_utf_8): Likewise.
4ccfa1c0 4460 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4461 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4462
651df7d9
CY
44632008-12-02 Chong Yidong <cyd@stupidchicken.com>
4464
4465 * keyboard.c (make_lispy_position): Only use PT if the selected
4466 window is current.
4467
1f625c6c
AS
44682008-12-02 Andreas Schwab <schwab@suse.de>
4469
f7741ce9
AS
4470 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4471
1f625c6c
AS
4472 * doprnt.c (doprnt1): Fix size of charbuf.
4473
92bc2678
CY
44742008-12-02 Chong Yidong <cyd@stupidchicken.com>
4475
4476 * keyboard.c (timer_check): Revert last change.
4477
93b9e8cc
JB
44782008-12-02 Juanma Barranquero <lekktu@gmail.com>
4479
4480 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4481
fd7a37d5
JB
44822008-12-01 Juanma Barranquero <lekktu@gmail.com>
4483
4484 * makefile.w32-in: Update dependencies.
4485 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4486
c115043b
AS
44872008-12-01 Andreas Schwab <schwab@suse.de>
4488
4489 * font.c (register_font_driver): Use xmalloc.
4490 (font_put_frame_data): Likewise.
4491
f5668d2a
CY
44922008-12-01 Chong Yidong <cyd@stupidchicken.com>
4493
860d96be
CY
4494 * xfaces.c (realize_x_face): Make abort condition clearer.
4495
f5668d2a
CY
4496 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4497
379c17e7
CY
44982008-11-30 Chong Yidong <cyd@stupidchicken.com>
4499
4500 * keyboard.c (timer_check): After a timer runs, ensure that the
4501 selected window's buffer is current.
4502
35f36d65
JB
45032008-11-30 Juanma Barranquero <lekktu@gmail.com>
4504
f952c61c
JB
4505 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4506 It was accidentally restored by the Unicode merge.
4507
35f36d65
JB
4508 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4509
b23077df
JB
45102008-11-29 Juanma Barranquero <lekktu@gmail.com>
4511
4512 * w32proc.c: Include "coding.h".
4513 (Fw32_short_file_name): Encode filename passed to Windows API.
4514 (Fw32_long_file_name): Encode filename passed to Windows API and
4515 decode back the result. (Bug#1433)
4516
b8ebe9dd
KH
45172008-11-29 Kenichi Handa <handa@m17n.org>
4518
8cc53f96
KH
4519 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4520 not before accessing it.
4521
b8ebe9dd
KH
4522 * charset.c (Fdefine_charset_internal): After calculating
4523 min_char, max_char, and fastmap, copy the charset structure again.
4524 (encode_char): Fix the previous change.
4525
59bc82c0
SZ
45262008-11-28 Seiji Zenitani <zenitani@mac.com>
4527
4528 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4529
4530 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4531
4532 * nsterm.m (x_set_frame_alpha): New function.
4533
32247e3d
EZ
45342008-11-27 Eli Zaretskii <eliz@gnu.org>
4535
4536 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4537
b003e5ff
JB
45382008-11-27 Juanma Barranquero <lekktu@gmail.com>
4539
4540 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4541 pointer to check_face_name.
4542
708550f5
KH
45432008-11-27 Kenichi Handa <handa@m17n.org>
4544
4545 * category.h (SET_CATEGORY_SET): Call set_category_set.
4546 (set_category_set): Extern it.
4547
4548 * category.c (hash_get_category_set): New function.
4549 (Fmodify_category_entry): Adjusted for the change of
4550 char_table_ref_and_range. Call hash_get_category_set to get a
4551 category set to store in the table.
4552
4553 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4554 Funify_charset.
4555
2ae37cf0 4556 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4557 (DECODE_CHAR): Check if the decoder vector is ready.
4558 (ENCODE_CHAR): Check if the encoder char-table is ready.
4559 (maybe_unify_char): Extern it.
4560
4561 * charset.c (Vchar_unified_charset_table): Delete it.
4562 (inhibit_load_charset_map): New variable.
4563 (temp_charset_work): New variable.
4564 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4565 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4566 New macros.
4567 (load_charset_map): Meaning of control_flag changed. If
4568 inhibit_load_charset_map is nonzero, setup a table in
4569 temp_charset_work.
4570 (load_charset): New argument control_flag.
4571 (map_charset_for_dump): New function.
4572 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4573 map_charset_for_dump.
4574 (Fdefine_charset_internal): If the charset method is MAP, load
4575 mapping tables by calling load_charset.
4576 (Funify_charset): Don't load a mapping table but directly set
4577 Vchar_unify_table.
4578 (maybe_unify_char): New function.
4579 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4580 Handle the case of inhibit_load_charset_map being nonzero.
4581 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4582 Handle the case of inhibit_load_charset_map being nonzero.
4583 (Fclear_charset_maps): Just free temp_charset_work.
4584 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4585 variable.
4586
4587 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4588 change of char_table_ref_and_range.
4589 (char_table_ref_and_range): Change the meaning of argument FROM
4590 and TO. Now the caller must provide initial values for *FROM
4591 and *TO.
4592
4593 * fontset.c (fontset_add): Adjusted for the change of
4594 char_table_ref_and_range.
4595 (fontset_get_font_group): Likewise.
4596 (Ffontset_info): Likewise.
4597
4598 * keymap.c (describe_vector): Adjusted for the change of
4599 char_table_ref_and_range. For char-table, put boundary between
4600 non-ASCII and 8-bit characters.
4601
4602 * print.c (print_object): For bool-vector, delete unnecessary
4603 check of ASCII_BYTE_P.
4604
9196133b
JR
46052008-11-26 Jason Rumney <jasonr@gnu.org>
4606
4607 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4608 leading in font height. (Bug#879)
9196133b 4609
9f688acf
GM
46102008-11-26 Glenn Morris <rgm@gnu.org>
4611
4612 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4613 redefinition with ifdef. (Bug#1383)
4614
90d19aff
AR
46152008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4616
4617 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4618
4ccfa1c0 46192008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4620
4621 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4622 New EmacsView methods.
4623 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4624 Fixes bug #1048,1357,1414.
4625
46262008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4627
4628 Fix bug #1362.
4629 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4630 is not an indexed color.
4631 * nsterm.m (free_indexed_color): Add argument checking.
4632 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4633
e7d5ecb3
CY
46342008-11-24 Chong Yidong <cyd@stupidchicken.com>
4635
4636 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4637 Document confirm-after-completion value for
4638 minibuffer-completion-confirm.
4639
c285743c
JR
46402008-11-24 Jason Rumney <jasonr@gnu.org>
4641
4642 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4643 warning.
4644
b0857706
JR
46452008-11-23 Jason Rumney <jasonr@gnu.org>
4646
4647 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4648 restored before returning.
4649
4650 * w32font.c (check_face_name): New function.
4651 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4652 fonts. (Bug#642)
b0857706 4653
ee50ff07
MR
46542008-11-22 Martin Rudalics <rudalics@gmx.at>
4655
4656 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4657 confirm-nonexistent-file-or-buffer in doc-string.
4658
b8ff72fa
SM
46592008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4660
4661 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4662 Fix copy/paste typo. Add checks.
4663
cee53ed4
KH
46642008-11-21 Kenichi Handa <handa@m17n.org>
4665
4666 * coding.c (detect_coding_iso_2022): Reject invalid composition
4667 sequence.
4668 (DECODE_COMPOSITION_START): If the current source is the last
4669 block, and the current composition doesn't end, regard this
4670 sequence as invalid.
4671 (decode_coding_iso_2022): Handle invalid composition sequence.
4672
f6ef1e65
MR
46732008-11-20 Martin Rudalics <rudalics@gmx.at>
4674
4675 * window.c (coordinates_in_window): Don't return
4676 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4677 line when the window is not the rightmost one. (Bug#1372)
4678
e08b1705
MR
46792008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4680
4681 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4682
ad98e89f
EZ
46832008-11-15 Eli Zaretskii <eliz@gnu.org>
4684
4685 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4686 and bright_bg if noninteractive is non-zero.
4687
fb098a4b
CY
46882008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4689
4690 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4691 x_draw_glyph_string_background.
4692
4693 * w32term.c (x_draw_glyph_string): Likewise.
4694
ce952b6e
CY
46952008-11-15 Chong Yidong <cyd@stupidchicken.com>
4696
4697 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4698 the next glyph string once past the overhang width.
4699
4700 * nsterm.m (ns_draw_glyph_string): Likewise.
4701
4702 * w32term.c (x_draw_glyph_string): Likewise.
4703
26ea7079
CY
47042008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4705
4706 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4707 double file close.
4708
1c33c906
MR
47092008-11-14 Martin Rudalics <rudalics@gmx.at>
4710
4711 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4712 dedicated status of window before attempting to display another
4713 buffer in it.
4714
8fc29035
JB
47152008-11-14 Juanma Barranquero <lekktu@gmail.com>
4716
4717 * msdos.c (Fmsdos_long_file_names):
4718 (syms_of_msdos) <dos-unsupported-char-glyph>:
4719 * dosfns.c (Fint86): Fix typos in docstrings.
4720
55fb4286
EZ
47212008-11-14 Eli Zaretskii <eliz@gnu.org>
4722
4723 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4724
3fda0315
KY
47252008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4726
4727 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4728
7e849c17
CY
47292008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4730
4731 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4732
4733 * frame.h: Negative alpha means "don't touch".
4734
4735 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4736
4737 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4738
b9fd67bd
DN
47392008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4740
4741 * hftctl.c:
4742 * chpdef.h:
4743 * acldef.h: Remove files used only for systems no longer supported.
4744
4745 * Makefile.in: Fix .o alphabetical ordering.
4746 (hftctl.o): Remove dependency, file removed.
4747 (keymap.o, print.o): Depend on charset.h.
4748
d5998e03
KH
47492008-11-10 Kenichi Handa <handa@m17n.org>
4750
2ae37cf0 4751 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4752
be70e183
CY
47532008-11-08 Chong Yidong <cyd@stupidchicken.com>
4754
4755 * dired.c (file_name_completion): If completion_ignore_case is
4756 enabled, ignore case when checking completion-regexp-list.
4757
7cf94eac
EZ
47582008-11-08 Eli Zaretskii <eliz@gnu.org>
4759
4760 * vm-limit.c (get_lim_data): Fix last change.
4761
ee107a89
KH
47622008-11-08 Kenichi Handa <handa@m17n.org>
4763
4764 * character.c (Fget_byte): New function.
4765 (syms_of_character): Defsubr Fget_byte.
4766
5fd15622
CY
47672008-11-07 Chong Yidong <cyd@stupidchicken.com>
4768
4769 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4770 cursor position is valid after scrolling.
4771
13d62fad
JB
47722008-11-06 Juanma Barranquero <lekktu@gmail.com>
4773
4774 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4775
a1dd2936
GM
47762008-11-06 Glenn Morris <rgm@gnu.org>
4777
4778 * xterm.c (handle_one_xevent): Don't let popup menus cause
4779 mouse-autoselect-window related window switching. (Bug#1261)
4780
860cd236
CY
47812008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4782
4783 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4784
653a3150
AS
47852008-11-04 Andreas Schwab <schwab@suse.de>
4786
4787 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4788
870f5cac
CY
47892008-11-03 Chong Yidong <cyd@stupidchicken.com>
4790
4791 * xfns.c (Fx_wm_set_size_hint): New function.
4792
1e02f3cb
MR
47932008-11-03 Martin Rudalics <rudalics@gmx.at>
4794
4795 * textprop.c (Fprevious_single_char_property_change): Return 0
4796 when there's no change in a string. (Bug#1301)
4797
e630dfc6
MR
47982008-11-02 Martin Rudalics <rudalics@gmx.at>
4799
4800 * frame.c (do_switch_frame): New argument NORECORD passed to
4801 Fselect_window.
4802 (Fselect_frame): New argument NORECORD passed to
4803 do_switch_frame.
4804 (Fset_frame_selected_window): New argument NORECORD passed to
4805 Fselect_frame.
4806 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4807 in call of do_switch_frame.
4808 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4809 Handle NORECORD argument in call of Fselect_frame.
4810 * lisp.h (do_switch_frame, Fselect_frame)
4811 (Fset_frame_selected_window): Adjust declarations.
4812 * window.c (select_frame_norecord): New function.
4813 (run_window_configuration_change_hook): Use it and call
4814 Fselect_frame with NORECORD set.
4815 (Fselect_window): Pass NORECORD to Fselect_frame.
4816 (Fset_window_configuration): Handle NORECORD argument in call of
4817 do_switch_frame.
4818 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4819 Fset_frame_selected_window.
4820 * keyboard.c (command_loop_1): Handle NORECORD in call of
4821 Fselect_frame (currently ifdefd).
4822
9020b223
GM
48232008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4824
4825 * emacs.c (USAGE2): Untabify.
4826
793ffee8
SM
48272008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4828
4829 * composite.c (fill_gstring_header): Fix copy/paste typo.
4830
ab6d1131
MR
48312008-10-31 Martin Rudalics <rudalics@gmx.at>
4832
4833 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4834 (Fother_window): Rename argument and rewrite doc-string.
4835 (select_window_norecord): Fix return value. (Bug#1276)
4836
601a9cf1
JB
48372008-10-30 Juanma Barranquero <lekktu@gmail.com>
4838
4839 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4840 new frames overriding foreground for tooltips. Based on similar patch
4841 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4842
813b0652
CY
48432008-10-29 Chong Yidong <cyd@stupidchicken.com>
4844
4845 * emacs.c (Fdaemon_initialized): Initialize nfd.
4846
4414f58f
MR
48472008-10-29 Martin Rudalics <rudalics@gmx.at>
4848
4849 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4850 (Fwindow_text_height): Clarify doc-strings.
4851 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4852 doc-string of window-scroll-functions.
4853
ecdcaa09
RS
48542008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4855
4856 * category.c (syms_of_category): Fix typo in docstring.
4857
23fe745a
JB
48582008-10-28 Juanma Barranquero <lekktu@gmail.com>
4859
4860 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4861 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4862 Fix typos in docstrings.
4863
ff808935
DN
48642008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4865
4866 * emacs.c (daemon_pipe): Make non-static.
4867 (IS_DAEMON): Move definition ...
4868 * lisp.h (IS_DAEMON): ... here.
4869 (daemon_pipe): Declare.
4870 (is_daemon): Remove.
4871 * dispnew.c (init_display): Use IS_DAEMON.
4872
fc012771
SM
48732008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4874
4875 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4876 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4877
4878 * emacs.c (is_daemon): Remove.
4879 (main): Don't set is_daemon.
4880 (IS_DAEMON): New macro.
4881 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4882 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4883 parent exits.
4884 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4885
d8bdbe6f
CY
48862008-10-27 Chong Yidong <cyd@stupidchicken.com>
4887
d1a072bf
CY
4888 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4889 over-sized glyph, draw it with the default glyph width.
4890
e2e325aa
CY
4891 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4892 glyph, draw it with the default glyph width.
4893
4894 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4895 glyph, draw it with the default glyph width.
4896
d8bdbe6f
CY
4897 * xdisp.c (try_scrolling): When computing the distance from the
4898 scroll margin to PT, try moving some distance past the window
4899 bottom before giving up.
4900
7bfac547
MR
49012008-10-27 Martin Rudalics <rudalics@gmx.at>
4902
4903 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4904 (Fset_window_buffer): Explain in doc-string that a window can be
4905 "strongly" dedicated to its buffer.
4906
4ff029f6
DN
49072008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4908
4909 * emacs.c (daemon_name): New variable.
4910 (main): Deal with --daemon=SERVER_NAME.
4911 (Fdaemonp): Return a name if one was passed to --daemon.
4912
5790ef40
DN
49132008-10-26 Romain Francoise <romain@orebokech.com>
4914
f9bd0df9 4915 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4916 (main): Create a pipe before forking, make the parent exit only after
4917 the child has closed its end of the pipe. Move closing the
4918 descriptors ...
4919 (Fdaemon_initialized): ... here. New function.
4920
f5385255
SM
49212008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4922
4d632321
SM
4923 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4924 the previous unoptimized table.
4925
f5385255
SM
4926 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4927 the distinction between non-nil and non-t value of `dedicated'.
4928
6c56a0f3
CY
49292008-10-25 Chong Yidong <cyd@stupidchicken.com>
4930
4931 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4932 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4933
fec89261
MR
49342008-10-25 Martin Rudalics <rudalics@gmx.at>
4935
4936 * window.c (Fget_buffer_window, Fdelete_windows_on)
4937 (Freplace_buffer_in_windows): Make buffer argument optional and
4938 rename to buffer_or_name.
4939
34fcddd0
CY
49402008-10-24 Chong Yidong <cyd@stupidchicken.com>
4941
f5385255
SM
4942 * xdisp.c (handle_single_display_spec, handle_display_prop):
4943 Undo 2005-05-16 change.
34fcddd0
CY
4944 (handle_stop): Pop iterator if it's loaded with an empty string.
4945 (get_overlay_strings_1): Don't save iterator if it's loaded with
4946 an empty string (bug#1201).
4947
064766f2
KH
49482008-10-24 Kenichi Handa <handa@m17n.org>
4949
4950 * ftfont.c (ftfont_otf_features): Fix previous change.
4951 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4952 calling ftfont_otf_features.
4953
f9bd0df9 49542008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4955
4956 * font.c (font_match_p): Fix for the case that a vector of
4957 characters is in script-representative-chars.
4958
1dae9197
MA
49592008-10-24 Michael Albinus <michael.albinus@gmx.de>
4960
4961 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4962 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4963 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4964 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4965 macro. (Bug#1186).
4966
f9bd0df9 49672008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4968
4969 * s/sol2-10.h: New file.
4970
878a4584
JB
49712008-10-23 Juanma Barranquero <lekktu@gmail.com>
4972
4973 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4974 poor beast has survived 9+ years and the jump from xterm.c!).
4975
cd265ca6
MR
49762008-10-23 Martin Rudalics <rudalics@gmx.at>
4977
4978 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4979 Reword doc-string.
f5385255 4980 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4981
472a4dc9
JB
49822008-10-23 Juanma Barranquero <lekktu@gmail.com>
4983
4984 * character.c (syms_of_character) <script-representative-chars>:
4985 <unicode-category-table>: Doc fixes.
4986
159bd5a2
NF
49872008-10-23 Noah Friedman <friedman@splode.com>
4988
4989 * coding.c (make_conversion_work_buffer): Check that
4990 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4991 Fget_buffer_create.
4992
49f9c344
KH
49932008-10-23 Kenichi Handa <handa@m17n.org>
4994
4995 * font.c (font_add_log): Check the values of extra properties.
4996
12bb3111
MR
49972008-10-22 Martin Rudalics <rudalics@gmx.at>
4998
4999 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5000 Reword doc-string.
5001 (Fset_window_parameter): Use NILP.
5002 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5003 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5004
bbeb4e99
JB
50052008-10-22 Juanma Barranquero <lekktu@gmail.com>
5006
5007 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5008
50092008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5010
5011 * nsfns.m (ns_appkit_version): New function.
5012 (x-server-version): Use it.
5013 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5014 (x-server-vendor): Don't check_ns().
5015
5016 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5017
a9b555d3
JB
50182008-10-22 Juanma Barranquero <lekktu@gmail.com>
5019
5020 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5021 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5022
4626499f
KH
50232008-10-22 Kenichi Handa <handa@m17n.org>
5024
e3681952
KH
5025 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5026 scripts.
5027
4626499f
KH
5028 * category.c (word_boundary_p): Check scripts instead of charset.
5029 Handle nil value in word-separating-categories and
5030 word-combining-categories.
5031 (syms_of_category): Fix docstrings of word-separating-categories
5032 and word-combining-categories.
5033
1560f91a
EZ
50342008-10-21 Eli Zaretskii <eliz@gnu.org>
5035
5036 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5037 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5038
f4668441
MR
50392008-10-21 Martin Rudalics <rudalics@gmx.at>
5040
5041 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5042 Rename arg "buffer" to "buffer_or_name".
5043 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5044 it optional.
5045 (no_switch_window): Remove since the return value is not used.
a9b555d3 5046 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5047 Consider window as dedicated when Fwindow_dedicated_p returns a
5048 non-nil value.
5049 * lisp.h: Remove prototype for no_switch_window.
5050
fd75ddb2
JD
50512008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5052
5053 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5054 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5055
07295713
KH
50562008-10-21 Kenichi Handa <handa@m17n.org>
5057
5058 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5059 check Vlatin_extra_code_table.
5060
712adc82
EZ
50612008-10-20 Eli Zaretskii <eliz@gnu.org>
5062
5063 * fileio.c (Fset_file_modes): Doc fix.
5064
f549eb0b
MA
50652008-10-19 Michael Albinus <michael.albinus@gmx.de>
5066
5067 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5068 in arrays.
5069
aac0c6e3
MR
50702008-10-19 Martin Rudalics <rudalics@gmx.at>
5071
5072 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5073 Mention kill-buffer in doc-string.
5074 (Fset_window_buffer): Reinsert tem check removed in last commit.
5075 (Fenlarge_window, Fshrink_window): Have argument names and
5076 doc-string follow Elisp manual more closely.
5077
50782008-10-18 Eli Zaretskii <eliz@gnu.org>
5079
5080 * fileio.c (Fset_file_modes): Doc fix.
5081
50822008-10-18 Martin Rudalics <rudalics@gmx.at>
5083
5084 * window.c (Fwindow_width, Fset_window_start)
5085 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5086 (Fdelete_windows_on, Freplace_buffer_in_windows):
5087 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5088 (Fwindow_dedicated_p): Make window argument optional.
5089 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5090 (Fset_window_buffer): Respect any non-nil dedicated value for
5091 window. Rename "buffer" argument to "buffer_or_name".
5092
50932008-10-18 Ulrich Mueller <ulm@gentoo.org>
5094
5095 * m/sh3.h: New file, machine description for SuperH.
5096
50972008-10-17 Martin Rudalics <rudalics@gmx.at>
5098
5099 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5100
51012008-10-17 Kenichi Handa <handa@m17n.org>
5102
5103 * ftfont.c (ftfont_otf_features): Fix indexing
5104 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5105
51062008-10-16 Magnus Henoch <mange@freemail.hu>
5107
5108 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5109 (Fdbus_call_method_asynchronously): Ditto.
5110 This change makes C-h f display the argument list.
5111
51122008-10-16 Chong Yidong <cyd@stupidchicken.com>
5113
5114 * fileio.c (Fexpand_file_name): Doc fix.
5115
5116 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5117 of :foreground and :background equivalent to unspecified (20.x
5118 compatibility).
5119
51202008-10-15 Eli Zaretskii <eliz@gnu.org>
5121
5122 * buffer.c (syms_of_buffer): Doc fix.
5123
51242008-10-14 Kenichi Handa <handa@m17n.org>
5125
5126 * font.c (font_clear_prop): When clearing font width, clear the
5127 average width field too.
5128
51292008-10-12 Andreas Schwab <schwab@suse.de>
5130
5131 * ftfont.c (ftfont_shape_by_flt): Make static.
5132 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5133
5134 * font.c: Don't include <m17n-flt.h>.
5135
51362008-10-10 Eli Zaretskii <eliz@gnu.org>
5137
5138 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5139
51402008-10-09 Eli Zaretskii <eliz@gnu.org>
5141
5142 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5143 away code.
5144
51452008-10-09 Chong Yidong <cyd@stupidchicken.com>
5146
5147 * dispnew.c (update_text_area): Avoid looping due to large glyph
5148 overhangs (bug#1070).
5149
51502008-10-09 Kenichi Handa <handa@m17n.org>
5151
5152 * fontset.c (face_for_char): If face->fontset is negative, just
5153 return ascii_face.
5154
f5385255
SM
5155 * font.c (font_delete_unmatched): Fix previous change.
5156 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5157
51582008-10-09 Martin Rudalics <rudalics@gmx.at>
5159
5160 * frame.c (Fraise_frame): On text-only terminals select frame in
5161 order to make it visible. (Bug#1061)
5162
51632008-10-08 Chong Yidong <cyd@stupidchicken.com>
5164
5165 * fontset.c (fontset_find_font): Check frame validity.
5166
51672008-10-07 Chong Yidong <cyd@stupidchicken.com>
5168
a9b555d3 5169 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5170 (xg_display_close): Allow Emacs to close all displays (bug#985).
5171
51722008-10-06 Andreas Schwab <schwab@suse.de>
5173
f5385255 5174 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5175
51762008-10-06 Chong Yidong <cyd@stupidchicken.com>
5177
f5385255 5178 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5179
a9b555d3 5180 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5181
5182 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5183 during initialization.
5184
51852008-10-04 Eli Zaretskii <eliz@gnu.org>
5186
5187 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5188 whole thing on MSDOS frames as well as on a TTY.
5189
5190 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5191 well as for TTY.
5192 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5193 well as on a TTY.
5194
5195 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5196 as well as for TTY.
5197
5198 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5199
5200 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5201 MSDOS frames as well.
5202
52032008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5204
5205 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5206 correct arguments.
b71ac3dd 5207 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5208
52092008-10-03 Glenn Morris <rgm@gnu.org>
5210
5211 * emacs.c (USAGE1): Add --daemon.
5212
52132008-10-02 Eli Zaretskii <eliz@gnu.org>
5214
5215 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5216 100, so it's in percents as advertised.
5217
52182008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5219
5220 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5221 (ns_output.current_cursor, ns_output.desired_cursor)
5222 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5223 (FRAME_NEW_CURSOR_COLOR): Remove.
5224
5225 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5226 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5227 enumeration (HOLLOW_BOX_CURSOR, etc.).
5228
5229 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5230 (draw_window_cursor): Simplify code.
f5385255
SM
5231 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5232 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5233 updates manually.
a9b555d3
JB
5234 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5235 Use core Emacs cursor types.
aac0c6e3 5236
b8ff72fa 5237 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5238
52392008-10-02 Martin Rudalics <rudalics@gmx.at>
5240
5241 * process.c (Faccept_process_output): Fix doc-string.
5242
52432008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5244
5245 * gmalloc.c (__sbrk): Also define for uClibc.
5246
5247 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5248 for uClibc.
5249
52502008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5251
5252 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5253 styles.
5254 (nsfont_open): Reenable the cache.
5255
52562008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5257
5258 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5259 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5260
52612008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5262
5263 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5264 a suspended terminal.
5265
52662008-09-30 Michael Albinus <michael.albinus@gmx.de>
5267
5268 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5269
52702008-09-30 Eli Zaretskii <eliz@gnu.org>
5271
5272 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5273
52742008-09-30 Chong Yidong <cyd@stupidchicken.com>
5275
5276 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5277 in a continued line coincides with a line beginning.
5278
52792008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5280
5281 * nsfont.m (nsfont_trait_distance): Fix bug.
5282 (nsfont_list): Return a list rather than a vector (syncs with Handa
5283 changes of 2008-05-14).
5284 (nsfont_open): Improve logging.
5285
52862008-09-29 Andreas Schwab <schwab@suse.de>
5287
5288 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5289
52902008-09-28 Martin Rudalics <rudalics@gmx.at>
5291
5292 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5293 name as char-resolve-modifiers.
5294 Reported by: Markus Triska <markus.triska@gmx.at>
5295
52962008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5297
5298 * dispnew.c (init_display): Return earlier when running as a daemon.
5299
53002008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5301
5302 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5303
53042008-09-27 Eli Zaretskii <eliz@gnu.org>
5305
5306 * composite.c (Fcomposition_get_gstring)
5307 (Fcompose_region_internal, Fcompose_string_internal)
5308 (Ffind_composition_internal): Doc fix.
5309 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5310 (syms_of_composite) <auto-composition-function>: Doc fix.
5311 (syms_of_composite) <composition-function-table>: Doc fix.
5312
53132008-09-25 Chong Yidong <cyd@stupidchicken.com>
5314
5315 * search.c (wordify): New argument for lax word-ends.
5316 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5317
53182008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5319
5320 * lisp.h (is_daemon): Declare.
5321 * dispnew.c (init_display): Do not try to initialize the terminal
5322 when running as a daemon.
5323
53242008-09-22 Chong Yidong <cyd@stupidchicken.com>
5325
5326 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5327 x_display_pixel_height.
5328
53292008-09-22 Martin Rudalics <rudalics@gmx.at>
5330
5331 * undo.c (record_point): Don't call Fundo_boundary for first
5332 change. (Bug#731)
5333
53342008-09-22 Juanma Barranquero <lekktu@gmail.com>
5335
5336 * emacs.c (Fdaemonp): Doc fix.
5337
53382008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5339
5340 * emacs.c (main): Place #ifdef in the proper place.
5341
53422008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5343
5344 * emacs.c (standard_args): Add --daemon.
5345 (main): Disconnect from the terminal when --daemon is passed.
5346 (is_daemon): New variable.
5347 (Fdaemonp): New function.
5348 (syms_of_emacs): Defsubr it.
5349
53502008-09-20 Chong Yidong <cyd@stupidchicken.com>
5351
5352 * xdisp.c (get_next_display_element): Handle string display
5353 correctly when checking for the end of a box run.
5354
53552008-09-20 Glenn Morris <rgm@gnu.org>
5356
5357 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5358 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5359 (Frename_file): Avoid copying to trash if a rename involves
5360 a delete. (Bug#964).
5361
53622008-09-20 Eli Zaretskii <eliz@gnu.org>
5363
5364 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5365 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5366 frames as well as termcap frames.
5367 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5368 get_named_tty.
5369
53702008-09-19 Eli Zaretskii <eliz@gnu.org>
5371
5372 * process.c (procfs_system_process_attributes): Fix cmdline in
5373 case /proc/PID/cmdline is empty.
5374
5375 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5376 x_display_pixel_height.
5377
53782008-09-19 Juanma Barranquero <lekktu@gmail.com>
5379
5380 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5381
5382 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5383 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5384
53852008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5386
5387 * dispextern.h (struct it): Move line_wrap away from the middle of
5388 bitfields. Move voffset in struct iterator_stack_entry after the
5389 bitfields. Move tab_width near after another short.
5390
53912008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5392
5393 * frame.h (struct frame): Move alpha from the middle of bitfields.
5394
5395 * window.h (struct window): Move frozen_window_start_p after the
5396 rest of the bitfields to reduce padding.
5397
53982008-09-18 Chong Yidong <cyd@stupidchicken.com>
5399
5400 * xterm.h (x_display_info): Remove `height' and `width' members.
5401
5402 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5403
5404 * w32term.h (w32_display_info): Remove `height', `width',
5405 `height_in', and `width_in' members.
5406
b8ff72fa
SM
5407 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5408 New functions.
aac0c6e3
MR
5409 (x_calc_absolute_position): Use them.
5410 (x_term_init): Omit removed `height' and `width' members.
5411
b8ff72fa
SM
5412 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5413 New functions.
aac0c6e3
MR
5414 (w32_read_socket, x_calc_absolute_position): Use them.
5415 (w32_initialize_display_info, w32_term_init): Omit removed members
5416 of w32_display_info.
5417
b8ff72fa
SM
5418 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5419 New functions.
5420 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5421
b8ff72fa
SM
5422 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5423 New functions.
aac0c6e3
MR
5424 (x_calc_absolute_position): Use them.
5425 (x_term_init): Omit removed `height' and `width' members.
5426
5427 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5428 (compute_tip_xy):
5429 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5430 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5431 x_display_pixel_width.
5432
54332008-09-18 Kenichi Handa <handa@m17n.org>
5434
5435 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5436 (composition_compute_stop_pos): Fix handling of static composition.
5437 (Fcomposition_get_gstring): Check FROM and TO at first.
5438
54392008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5440
46e722a9 5441 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5442 mixup (YAILOM).
5443
54442008-09-17 Chong Yidong <cyd@stupidchicken.com>
5445
5446 * indent.c (Fvertical_motion): Use position reported by iterator
5447 instead of PT for determining screen motion (bug#943).
5448
54492008-09-17 Romain Francoise <romain@orebokech.com>
5450
5451 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5452
54532008-09-17 Kenichi Handa <handa@m17n.org>
5454
5455 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5456
5457 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5458 if necessary.
5459
54602008-09-16 Kenichi Handa <handa@m17n.org>
5461
5462 * coding.c (make_conversion_work_buffer): Avoid calling
5463 Fget_buffer_create if it is not necessary.
5464
54652008-09-15 Martin Rudalics <rudalics@gmx.at>
5466
5467 * window.c (Fselect_window): Don't update window_select_count and
5468 use_time when norecord is not nil.
5469
54702008-09-14 Kenichi Handa <handa@m17n.org>
5471
5472 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5473 specpdl_ptr.
5474
54752008-09-12 Kenichi Handa <handa@m17n.org>
5476
5477 * indent.c (scan_for_column): Don't handle automatic composition
5478 if the current buffer is not associated with a window.
5479
5480 * composite.c (composition_reseat_it): If the current buffer is
5481 not associated with a window, ignore the automatic composition.
5482 (find_automatic_composition): Likewise.
5483
54842008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5485
5486 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5487 (Fgpm_mouse_stop): Use it.
5488 * termhooks.h (close_gpm): Declare.
5489 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5490 connection if Gpm_GetEvent fails.
5491
5492 * window.c (set_window_buffer): Always preserve current-buffer.
5493
54942008-09-12 Glenn Morris <rgm@gnu.org>
5495
5496 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5497
54982008-09-11 Glenn Morris <rgm@gnu.org>
5499
5500 * charset.c (charset-map-path): Doc fix.
5501
55022008-09-10 Kenichi Handa <handa@m17n.org>
5503
5504 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5505
5506 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5507 compose a grapheme cluster with the preceding base glyph.
5508
5509 * composite.c (composition_compute_stop_pos): Fix previous change.
5510 Reset cmp_it->id to -1 at first.
5511
55122008-09-10 Glenn Morris <rgm@gnu.org>
5513
5514 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5515
55162008-09-09 Chong Yidong <cyd@stupidchicken.com>
5517
5518 * keyboard.c (read_key_sequence): Reapply translation maps when
5519 switching keyboards.
5520
55212008-09-09 Kenichi Handa <handa@m17n.org>
5522
5523 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5524 characters.
5525
5526 * composite.c (FORWARD_CHAR): Fix calculation
5527 of (POSITION).pos_byte.
5528 (composition_compute_stop_pos): Limit the search of composition to
5529 at most 500 characters ahead. If we reach the limit or find a
5530 newline, set cmp_it->ch to -2 and return 0.
5531 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5532
55332008-09-08 Kenichi Handa <handa@m17n.org>
5534
5535 * indent.c (Fvertical_motion): Be sure to set
5536 it_overshoot_expected if it.cmp_it.id is non-negative.
5537
55382008-09-07 Andreas Schwab <schwab@suse.de>
5539
5540 * callproc.c (Fcall_process): Don't hold references to string data
5541 across garbage collection. Move initialisation of new_argv down
5542 to avoid compiler bug.
5543
55442008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5545
5546 * process.c (Fsystem_process_attributes): Doc fix.
5547
55482008-09-07 Chong Yidong <cyd@stupidchicken.com>
5549
5550 * callproc.c (Fcall_process): Canonicalize current directory name.
5551
5552 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5553 iterator advances to the next line if the current line ends in a
5554 continued tab.
5555
55562008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5557
5558 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5559 member to point to cmp_from.
5560
5561 * xdisp.c: Doc fix for references to gidx data member.
5562
55632008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5564
5565 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5566
55672008-09-07 Kenichi Handa <handa@m17n.org>
5568
5569 * composite.c (FORWARD_CHAR): Check STOP after
5570 incrementing (POSITION).pos.
5571
55722008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5573
5574 * process.c (Fsystem_process_attributes): Doc fix.
5575
55762008-09-06 Chong Yidong <cyd@stupidchicken.com>
5577
5578 * keyboard.c (Ftop_level): Doc fix.
5579
55802008-09-06 Eli Zaretskii <eliz@gnu.org>
5581
5582 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5583 minibuffer, don't let lower part of menu invade the echo area.
5584
5585 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5586 "char *q" to access menu text and advance through it. Revert the
5587 change that displayed ">" instead of ASCII character 0x10.
5588
55892008-09-05 Eli Zaretskii <eliz@gnu.org>
5590
5591 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5592 toggle boxes and radio buttons on MS-DOS as well.
5593
55942008-09-05 Kenichi Handa <handa@m17n.org>
5595
5596 * composite.c (autocmp_chars): Check lookback count.
5597 (composition_compute_stop_pos): Set cmp_it->lookback.
5598 (composition_reseat_it): Check lookback count.
5599 (struct position_record): New struct.
5600 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5601 (find_automatic_composition): New function.
5602 (composition_adjust_point): Use find_automatic_composition.
5603
5604 * dispextern.h (struct composition_it): New member lookback.
5605
56062008-09-02 Chong Yidong <cyd@stupidchicken.com>
5607
5608 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5609 if moving by a single line.
5610
56112008-09-02 Andreas Schwab <schwab@suse.de>
5612
5613 * xterm.c (x_delete_display): Fix merge error.
5614
5615 * fileio.c (Fexpand_file_name): Remove unused variables.
5616
56172008-09-02 Eli Zaretskii <eliz@gnu.org>
5618
5619 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5620 storage on all platforms, not just on DOS_NT.
5621
56222008-09-02 Jason Rumney <jasonr@gnu.org>
5623
b8ff72fa
SM
5624 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5625 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5626
56272008-09-01 Chong Yidong <cyd@stupidchicken.com>
5628
5629 * xfaces.c (Finternal_set_alternative_font_family_alist)
5630 (Finternal_set_alternative_font_registry_alist): Properly copy
5631 entire alist structure.
5632
56332008-09-01 Kenichi Handa <handa@m17n.org>
5634
d66c0241 5635 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5636 representative chars of the script is a vector.
d66c0241
JB
5637 (ftfont_list): Handle the case where the representative chars of
5638 the script is a vector.
aac0c6e3
MR
5639
5640 * character.c (syms_of_character): Docstring of
5641 script-representative-chars fixed.
5642
56432008-08-31 Eli Zaretskii <eliz@gnu.org>
5644
5645 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5646 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5647 the menu. Allocate larger buffer for `text', to account for
5648 possible ^C characters.
5649
56502008-08-31 Martin Rudalics <rudalics@gmx.at>
5651
5652 * xdisp.c (prepare_menu_bars): Don't call
5653 Vwindow_size_change_functions with arg Qt.
5654
56552008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5656
5657 * font.h (font_range):
5658 * fileio.c (report_file_error):
46e722a9
SM
5659 * composite.c (composition_update_it): Yet another int/Lisp_Object
5660 mixup (YAILOM).
aac0c6e3
MR
5661
56622008-08-30 Glenn Morris <rgm@gnu.org>
5663
5664 * data.c (Fmake_variable_frame_local): Doc fix.
5665
5666 * frame.c (Fmodify_frame_parameters): Doc fix.
5667
56682008-08-30 Eli Zaretskii <eliz@gnu.org>
5669
5670 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5671 needed by GetTokenInformation.
5672 (w32_system_process_attributes): Check return values of all system
5673 APIs.
5674
5675 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5676 only when the state changes.
5677 (IT_update_begin, IT_update_end): Add termscript trace.
5678
5679 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5680 clipboard is unavailable. Set dst to NULL if it doesn't point to
5681 malloc'ed data.
5682 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5683 passing random values to xfree.
5684
5685 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5686 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5687
56882008-08-29 Jason Rumney <jasonr@gnu.org>
5689
5690 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5691
56922008-08-29 Eli Zaretskii <eliz@gnu.org>
5693
5694 * composite.c (fill_gstring_body): Avoid compiler warnings.
5695
5696 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5697 LGLYPH_SET_CODE to avoid compiler warnings.
5698
2ae37cf0 5699 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5700
5701 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5702
5703 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5704 LGLYPH_SET_CODE.
5705
57062008-08-29 Kenichi Handa <handa@m17n.org>
5707
5708 * fileio.c (report_file_error): Don't downcase the first character
5709 of errstring if it is still unibyte.
5710
57112008-08-29 Kenichi Handa <handa@m17n.org>
5712
5713 These changes are to re-implement the automatic composition so
5714 that it doesn't use text properties.
5715
5716 * Makefile.in (ftfont.o): Depend on composite.h.
5717 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5718
5719 * character.h (Vunicode_category_table): Extern it.
5720
5721 * character.c (Vunicode_category_table): New variable.
5722 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5723
5724 * chartab.c (optimize_sub_char_table): Perform more greedy
5725 optimization.
5726
b8ff72fa
SM
5727 * composite.h (enum composition_method):
5728 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5729 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5730 (Vcomposition_function_table): Extern it.
5731 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5732 (composition_gstring_put_cache, composition_gstring_from_id)
5733 (composition_gstring_p, composition_gstring_width)
5734 (composition_compute_stop_pos, composition_reseat_it)
5735 (composition_update_it, composition_adjust_point): Extern them.
5736 (Fcomposition_get_gstring): EXFUN it.
5737
d66c0241 5738 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5739 (Vcomposition_function_table)
5740 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5741 (gstring_hash_table, gstring_work, gstring_work_headers):
5742 New variables.
aac0c6e3
MR
5743 (gstring_lookup_cache, composition_gstring_put_cache)
5744 (composition_gstring_from_id, composition_gstring_p)
5745 (composition_gstring_width, fill_gstring_header)
5746 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5747 (composition_reseat_it, composition_update_it)
b8ff72fa 5748 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5749 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5750 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5751 Defsubr compostion_get_gstring.
5752
5753 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5754 cmp_id.
5755 (struct glyph_string): Delete the member gidx. New members
5756 cmp_id, cmp_from, and cmp_to.
5757 (enum it_method): Delete GET_FROM_COMPOSITION.
5758 (struct composition_it): New struct.
5759 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5760 Delete c, len, cmp_id, cmp_len in u.comp.
5761
5762 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5763 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5764 (enum lglyph_indices): Likewise.
b8ff72fa 5765 (font_range): Adjust extern.
aac0c6e3
MR
5766 (font_fill_lglyph_metrics): Extern it.
5767
5768 * font.c (QCf): New variable.
5769 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5770 (font_prepare_composition): Delete this function.
5771 (font_range): Type and arguments changed.
5772 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5773 (font_fill_lglyph_metrics): New function.
b8ff72fa 5774 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5775 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5776 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5777 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5778
5779 * fontset.h (font_for_char): Extern it.
5780
5781 * fontset.c (font_for_char): New function.
5782
5783 * ftfont.c: Include composite.h.
5784 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5785 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5786
5787 * indent.c: Include composite.h and dispextern.h.
5788 (check_composition): Delete this function.
5789 (scan_for_column): Handle composition by
5790 composition_compute_stop_pos, composition_reseat_it, and
5791 composition_update_it.
5792 (compute_motion): Likewise.
5793 (Fvertical_motion): Fix checking of composition.
5794
5795 * keyboard.c (adjust_point_for_property): Check composition by
5796 composition_adjust_point.
5797
b8ff72fa 5798 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5799 struct glyph_string.
5800
b8ff72fa
SM
5801 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5802 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5803 struct glyph.
5804 (produce_composite_glyph): Likewise.
5805
b8ff72fa
SM
5806 * w32term.c (x_draw_composite_glyph_string_foreground):
5807 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5808 (x_draw_glyph_string): Likewise.
5809
5810 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5811 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5812
5813 * xdisp.c: Include font.h.
5814 (it_props): Delete the entry for Qauto_composed.
5815 (init_iterator): Initialize it->cmp_it.id to -1.
5816 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5817 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5818 (handle_auto_composed_prop): Delete it.
5819 (handle_composition_prop): Handle only static composition.
5820 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5821 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5822 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5823 (pop_it): Likewise.
5824 (get_next_element): Delete next_element_from_composition.
5825 (CHAR_COMPOSED_P): New macro.
5826 (get_next_display_element): For automatic composition, get a face
5827 from the font in the glyph-string.
5828 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5829 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5830 (next_element_from_string): Check if the character at the current
5831 position is composed by CHAR_COMPOSED_P.
5832 (next_element_from_buffer): Likewise.
d66c0241
JB
5833 (next_element_from_composition): Adjust for the change of struct it.
5834 Update it->cmp_it.
b8ff72fa
SM
5835 (dump_glyph): Adjust for the change of struct glyph.
5836 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5837 it and struct glyph. Don't handle automatic composition here.
5838 (fill_gstring_glyph_string): New function.
5839 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5840 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5841 (BUILD_GSTRING_GLYPH_STRING): New macro.
5842 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5843 automatic composition.
b8ff72fa 5844 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5845 struct glyph.
b8ff72fa 5846 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5847
b8ff72fa 5848 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5849 the change of struct glyph_string.
5850 (x_draw_glyph_string): Likewise.
5851
58522008-08-29 Glenn Morris <rgm@gnu.org>
5853
5854 * buffer.c (word-wrap): Doc fix.
5855 * xdisp.c (truncate-partial-width-windows): Doc fix.
5856 Increase default to 50.
5857
58582008-08-29 Chong Yidong <cyd@stupidchicken.com>
5859
5860 * xdisp.c (update_tool_bar_unwind): New function.
5861 (update_tool_bar): Temporarily set selected frame before building
5862 tool-bar items.
5863
58642008-08-28 Michael Albinus <michael.albinus@gmx.de>
5865
5866 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5867 snprintf, respectively.
5868 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5869
58702008-08-28 Chong Yidong <cyd@stupidchicken.com>
5871
5872 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5873 LDFLAGS to GNUstep CC invocation.
5874
58752008-08-27 Chong Yidong <cyd@stupidchicken.com>
5876
5877 * indent.c (Fvertical_motion): Revert last change. Handle the
5878 general case where we are moving forward, and PT spans multiple
5879 screen lines.
5880
5881 * eval.c (find_handler_clause): Temporarily increase
5882 max-lisp-eval-depth while printing the backtrace buffer, to
5883 guarantee that help-mode code can run.
5884
58852008-08-27 Eli Zaretskii <eliz@gnu.org>
5886
5887 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5888 colors under -rv.
5889 (IT_set_frame_parameters): Don't swap foreground and background
5890 colors if `(reverse . t)' is present in the frame properties.
5891 (internal_terminal_init): Call init_frame_faces only for the
5892 initial frame.
5893
58942008-08-27 Andreas Schwab <schwab@suse.de>
5895
5896 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5897
58982008-08-27 Andreas Schwab <schwab@suse.de>
5899
5900 * search.c (search_buffer): Set char_base to zero only at the end.
5901
59022008-08-27 Kenichi Handa <handa@m17n.org>
5903
b8ff72fa 5904 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5905
59062008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5907
5908 * xterm.c (x_term_init): Temporarily hide the partially
5909 initialized terminal while calling vendor-specific-keysyms.
5910
59112008-08-26 Eli Zaretskii <eliz@gnu.org>
5912
5913 * msdos.c (internal_terminal_init): Most initializations done only
5914 once, especially initial_screen_colors[] and termscript open.
5915
59162008-08-26 Chong Yidong <cyd@stupidchicken.com>
5917
5918 * eval.c (Fcondition_case): Doc fix.
5919
5920 * widgetprv.h (EmacsFramePart): Change font member to the new font
5921 struct.
5922
5923 * widget.c: Include character.h and font.h for XSETFONT.
5924 (setup_frame_gcs): Compute X font id from font struct, just once.
5925
59262008-08-26 Eli Zaretskii <eliz@gnu.org>
5927
5928 * term.c (get_named_tty): Fix last change.
5929
59302008-08-26 Chong Yidong <cyd@stupidchicken.com>
5931
5932 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5933 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5934
59352008-08-25 Eli Zaretskii <eliz@gnu.org>
5936
5937 * frame.c (do_switch_frame): Mark previously displayed frame as
5938 obscured for FRAME_MSDOS_P frames as well.
5939
59402008-08-24 Eli Zaretskii <eliz@gnu.org>
5941
5942 * frame.c (make_terminal_frame): Initialize f->terminal,
5943 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5944 Set the top frame to newly created frame.
5945 (Fmake_terminal_frame): Reuse the_only_display_info.
5946
5947 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5948 estimating available memory.
5949
b97439ce 59502008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5951
5952 * nsterm.m (ns_draw_window_cursor): Don't call
5953 NSDisableScreenUpdates and NSEnableScreenUpdates on
5954 non-NS_IMPL_COCOA systems.
5955
59562008-08-23 Andreas Schwab <schwab@suse.de>
5957
5958 * process.c (procfs_system_process_attributes): Fix use of
5959 uninitialized variables.
5960
59612008-08-23 Eli Zaretskii <eliz@gnu.org>
5962
5963 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5964
5965 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5966 calling tty-set-up-initial-frame-faces.
5967
b8ff72fa
SM
5968 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5969 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5970
5971 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5972 addition to output_termcap.
5973
5974 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5975
5976 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5977 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5978 highlight.
5979
5980 * process.c [!subprocesses]: Define QCname.
5981 (syms_of_process): Intern and staticpro it.
5982
5983 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5984 Adjust for changes in encoding/decoding routines.
5985 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5986 encode_coding and decode_coding.
5987
b8ff72fa 5988 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5989
5990 * dosfns.c: Include frame.h before termhooks.h.
5991 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5992 variable termscript.
5993
5994 * s/msdos.h (USER_FULL_NAME): Define.
5995 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5996
5997 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5998 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5999 pw->pw_gecos.
6000
6001 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6002 SELECTED_FRAME as additional (1st) argument.
6003 (tty_read_avail_input): Handle output_msdos_raw in
6004 addition to output_termcap.
6005
6006 * msdos.c: Include frame.h before termhooks.h.
6007 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6008 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6009 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6010 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6011 (IT_set_terminal_modes, IT_reset_terminal_modes)
6012 (IT_set_frame_parameters): Use tty->termscript instead of a global
6013 variable termscript.
6014 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6015 global variable terminal_coding. Don't refer to
6016 Vnonascii_translation_table.
6017 (internal_terminal_init): Set Vwindow_system in current_kboard.
6018 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6019 Announce date and time of session start, if termscript is open.
6020 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6021 term.c:init_tty). Open termscript only of not already open.
6022 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6023 here instead of dos_ttraw. Don't initialize display if this is an
6024 initial tty. Don't set FRAME_FONT.
6025 (Vwindow_system_version): Bump to 23.
6026 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6027 is available, set up mouse_position_hook.
6028 (dos_ttraw, IT_set_terminal_modes): If called with initial
6029 terminal, do nothing.
6030 (IT_set_frame_parameters): Handle the Qtty_type frame
6031 parameter by calling internal_terminal_init.
6032 (dos_set_window_size, show_mouse_face)
6033 (clear_mouse_face, IT_note_mode_line_highlight)
6034 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6035 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6036 (initialize_msdos_display): New function.
6037 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6038 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6039 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6040 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6041 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6042 (request_sigio, unrequest_sigio): Don't define, now defined on
6043 sysdep.c.
6044 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6045
6046 * term.c [MSDOS]: Include msdos.h.
6047 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6048 conditional to DOS_NT. Allow only one call to this function in a
6049 session. Don't allocate a new struct tty_display_info; instead,
6050 reuse the_only_display_info. Call get_tty_size to get screen
6051 dimensions. Call init_baud_rate to set bad_rate.
6052 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6053 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6054 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6055 (get_tty_terminal, get_named_tty, Ftty_type)
6056 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6057 output_termcap.
b8ff72fa
SM
6058 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6059 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6060 only when subprocesses are supported.
aac0c6e3
MR
6061
6062 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6063 f->output_data.x.
6064 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6065 terminal devices.
6066
5582fbc7 6067 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6068 x_output.
6069 (FRAME_FONT): Use output_data.tty.
6070 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6071 (struct x_display_info): Rename from display_info. Update all users in
6072 msdos.c.
aac0c6e3 6073 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6074 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6075 (dos_ttraw): Update prototype.
6076
6077 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6078 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6079
60802008-08-23 Jason Rumney <jasonr@gnu.org>
6081
6082 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6083 (fn_TIFFSetDirectory): New library function used.
6084 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6085 (tiff_load): Use :index to select among multiple images. Set count
6086 property when multiple images exist.
6087 (gif_format): Use :index, not :image.
6088
60892008-08-23 Chong Yidong <cyd@stupidchicken.com>
6090
6091 * xdisp.c (try_scrolling): Check INT_MAX instead of
6092 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6093 to obtain INT_MAX.
6094
60952008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6096
6097 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6098
60992008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6100
6101 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6102 GNUstep library location.
6103
61042008-08-21 Chong Yidong <cyd@stupidchicken.com>
6105
6106 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6107 before using it.
6108
6109 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6110
61112008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6112
6113 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6114 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6115 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6116 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6117 (EmacsApp-cursor_blink_handler): Remove declaration.
6118 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6119 match 01 Feb 2008 changes in xterm.c.
6120 (ns_read_socket): Add cast to avoid warning.
6121 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6122 GNUstep.
6123
61242008-08-20 Chong Yidong <cyd@stupidchicken.com>
6125
6126 * xselect.c (x_get_foreign_selection): Return nil if desired
6127 selection could not be obtained, instead of signalling an error.
6128
61292008-08-20 David Reitter <david.reitter@gmail.com>
6130
6131 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6132 * nsterm.m: Remove ns-specific code for cursor blinking.
6133 (ns_draw_window_cursor): Clear cursor properly rather than
6134 redrawing the area. Respect width of bar cursors.
6135 These changes enable the use of generic blink-cursor-mode and
6136 generic cursor types in NS and support smooth cursor movements (do
6137 not blink off after command).
6138 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6139 Nextstep, too.
6140
61412008-08-19 Kenichi Handa <handa@m17n.org>
6142
6143 * font.c (Vfont_log_deferred): New variable.
6144 (font_add_log): Check Vfont_log_deferred.
6145 (font_deferred_log): New function.
6146
6147 * font.h (font_deferred_log): Extern it.
6148
6149 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6150 for sorting.
6151 (face_for_char): Use deferred log.
6152
61532008-08-18 Kenichi Handa <handa@m17n.org>
6154
6155 * fontset.c (face_for_char): Add font log.
6156
6157 * font.c (font_add_log): Add the font properties :script, :lang,
6158 and :otf in the log.
6159
61602008-08-17 Chong Yidong <cyd@stupidchicken.com>
6161
6162 * xdisp.c: Remove dead code.
6163 (handle_invisible_prop, next_overlay_string): Defer call to
6164 setup_for_ellipsis.
6165 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6166
61672008-08-15 Chong Yidong <cyd@stupidchicken.com>
6168
6169 * xfaces.c (lookup_derived_face): Properly handle possible zero
6170 return value of get_lface_attributes.
6171 (merge_faces): Don't tell lookup_derived_face to signal an error
6172 if face is not found.
6173
6174 * dired.c (Fdirectory_files): Doc fix.
6175
6176 * process.c (make_process): Initialize kill_without_query struct
6177 member.
6178
61792008-08-15 Eli Zaretskii <eliz@gnu.org>
6180
6181 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6182 Alternative calculation of totphys for Visual Studio 6.
6183
6184 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6185
6186 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6187 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6188 All users changed.
6189 (stat): Only root directory passed to GetDriveType. Allow RAM
6190 disk as well as local fixed disk when w32-get-true-file-attributes
6191 is set to `local'.
6192 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6193 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6194 (w32_cached_id, w32_add_to_cache): New functions.
6195 (get_name_and_id): Look account names in the cache before calling
6196 lookup_account_sid.
6197 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6198 New initialization flags.
6199 (globals_of_w32): Initialize them to zero.
6200 (w32_system_process_attributes): Use w32_cached_id and
6201 w32_add_to_cache.
6202
62032008-08-14 Lawrence Mitchell <wence@gmx.li>
6204
6205 * lread.c (Fread_char, Fread_char_exclusive): If no character
6206 event is read before timeout is reached, return nil, rather than
6207 converting to a number.
6208
62092008-08-14 Chong Yidong <cyd@stupidchicken.com>
6210
6211 * fns.c (use_dialog_box): Doc fix.
6212
6213 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6214 on OS X.
6215
62162008-08-13 Chong Yidong <cyd@stupidchicken.com>
6217
6218 * frame.c (Qns_parse_geometry): New var.
6219 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6220
62212008-08-11 Chong Yidong <cyd@stupidchicken.com>
6222
6223 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6224 space character in calculating tabs.
6225
62262008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6227
6228 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6229
62302008-08-10 Glenn Morris <rgm@gnu.org>
6231
6232 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6233 silence gcc "limited range of data type" warnings in some
6234 make_fixnum_or_float calls.
6235
62362008-08-09 Eli Zaretskii <eliz@gnu.org>
6237
6238 * w32.c (w32_system_process_attributes): If the process does not
6239 exist, return nil.
6240
6241 * w32.c: Include thelp32.h, psapi.h and coding.h.
6242 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6243 declarations.
6244 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6245 (Process32Next_Proc): New typedefs.
6246 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6247 (g_b_init_process32_next, g_b_init_open_thread_token)
6248 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6249 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6250 (g_b_init_get_process_working_set_size)
6251 (g_b_init_global_memory_status_ex): New static variables.
6252 (globals_of_w32): Initialize them.
6253 (create_toolhelp32_snapshot, process32_first, process32_next)
6254 (open_thread_token, impersonate_self, revert_to_self)
6255 (get_process_memory_info, get_process_working_set_size)
6256 (global_memory_status, global_memory_status_ex): New wrapper
6257 functions.
6258 (w32_list_system_processes, w32_system_process_attributes)
6259 (enable_privilege, restore_privilege, ltime, process_times):
6260 New functions.
6261 (convert_time_raw): New function.
6262 (convert_time): Remove conversion of FILETIME into time in 100
6263 nsec units, call convert_time_raw instead.
6264
6265 * process.h (w32_list_system_processes, w32_system_process_attributes):
6266 Add prototypes.
6267 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6268 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6269 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6270 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6271
6272 * process.c (Fsystem_process_attributes): Doc fix.
6273
62742008-08-08 Chong Yidong <cyd@stupidchicken.com>
6275
6276 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6277 a continued multi-char glyph; if so, advance to the actual glyph.
6278
62792008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6280
6281 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6282
6283 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6284 (.m.o): Use it.
6285 * config.in: Regenerate.
6286
62872008-08-07 Chong Yidong <cyd@stupidchicken.com>
6288
6289 * xdisp.c (redisplay_window): Revert last change.
6290 (try_window): Check bottom scroll margin too.
6291
62922008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6293
6294 * config.in: Regenerate.
6295
6296 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6297 -list-load-path-shadows'.
6298 (nsgui.h): Reduce number of things depending on it.
6299
63002008-08-06 Chong Yidong <cyd@stupidchicken.com>
6301
6302 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6303 instead of window-end which does the wrong thing at eob.
6304 (try_cursor_movement): Minor optimization.
6305 (redisplay_window): If scroll margin is defined, don't assume
6306 window doesn't need scrolling.
6307
63082008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6309
6310 * config.in: Regenerate.
6311
6312 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6313 (mostlyclean): Don't delete *.d under NS.
6314
6315 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6316
63172008-08-06 Kenichi Handa <handa@m17n.org>
6318
6319 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6320
63212008-08-06 Andreas Schwab <schwab@suse.de>
6322
6323 * config.in: Regenerate.
6324
63252008-08-05 Chong Yidong <cyd@stupidchicken.com>
6326
6327 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6328 forcing a window start.
6329
6330 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6331 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6332
63332008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6334
6335 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6336 argument.
6337
63382008-08-05 Juanma Barranquero <lekktu@gmail.com>
6339
6340 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6341 <scroll-down-aggressively, before-change-functions>:
6342 <after-change-functions>: Reflow docstrings.
6343
63442008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6345 Ken Raeburn <raeburn@gnu.org>
6346
6347 Dock menu customization, based on a patch by Ken Raeburn, plus some
6348 other fixes.
6349 * nsmenu.m (dockMenu): New variable.
6350 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6351
6352 * nsterm.h (dockMenu): Declare.
6353
6354 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6355 (ns_term_init): Initialize dockMenu.
6356 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6357 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6358 left.
6359
6360 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6361
63622008-08-04 Chong Yidong <cyd@stupidchicken.com>
6363
6364 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6365
6366 * config.in: Regenerate.
6367
63682008-08-04 Seiji Zenitani <zenitani@mac.com>
6369
6370 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6371
63722008-08-04 Chong Yidong <cyd@stupidchicken.com>
6373
6374 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6375
63762008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6377
6378 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6379
6380 * keyboard.h: Comment an #endif.
6381
6382 * lisp.h (have_menus_p): Adjust comment.
6383
6384 * menu.c (find_and_return_menu_selection): Fix comparison with
6385 client_data.
6386
6387 * nsmenu.m (popup_activated_flag): New variable.
6388 (popup_activated): New function.
6389 (menu-or-popup-active-p): New exported lisp definition.
6390 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6391 when popup done.
6392 (ns_popup_dialog): Set popup_activated_flag.
6393
6394 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6395 version for GNUstep (handled by conditional typedef in nsterm.m).
6396 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6397 in rgb.txt).
6398
6399 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6400
6401 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6402
6403 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6404
6405 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6406 shortcircuit if popup_activated like GTK and X toolkit.
6407
6408 * m/inter386.h: Change DARWIN to DARWIN_OS.
6409
6410 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6411 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6412 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6413 comment on NO_SOCK_SIGIO.
6414
64152008-08-03 Chong Yidong <cyd@stupidchicken.com>
6416
6417 * nsterm.m (windowDidResize): Remove stopModal call.
6418
64192008-08-03 Andreas Schwab <schwab@suse.de>
6420
6421 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6422 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6423
64242008-08-02 Chong Yidong <cyd@stupidchicken.com>
6425
6426 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6427 Don't use uninitialized pointer variable when using getrlimit.
6428
64292008-08-02 Jason Rumney <jasonr@gnu.org>
6430
6431 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6432
64332008-08-02 Eli Zaretskii <eliz@gnu.org>
6434
6435 * alloc.c (NSTATICS): Bump to 0x640.
6436
6437 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6438
6439 * lisp.h: Add prototype for directory_files_internal.
6440
6441 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6442 New functions.
6443 (syms_of_process): Defsubr them. Add initializations for various
6444 Q* symbols used in procfs_system_process_attributes.
6445 (procfs_list_system_processes, procfs_system_process_attributes)
6446 [HAVE_PROCFS]: New functions.
6447 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6448 (procfs_get_total_memory): New functions.
6449
64502008-08-01 Juanma Barranquero <lekktu@gmail.com>
6451
6452 * xfaces.c (Fx_load_color_file): Fix previous change;
6453 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6454
64552008-08-01 Michael Albinus <michael.albinus@gmx.de>
6456
6457 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6458
64592008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6460
6461 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6462
64632008-08-01 Chong Yidong <cyd@stupidchicken.com>
6464
6465 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6466
6467 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6468 define NSApplicationDelegateReplySuccess.
6469 (EmacsView -converstationIdentifier): Use long instead of
6470 NSInteger for GNUstep, since it doesn't have NSInteger.
6471
6472 * xmenu.c: Revert last change.
6473
6474 * keyboard.h: Fix last change.
6475
64762008-08-01 Juanma Barranquero <lekktu@gmail.com>
6477
6478 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6479 on Windows.
6480
64812008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6482
6483 Warning clearing and clean-up in NS port.
6484 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6485 Add prototypes.
6486 * nsgui.h (FACE_DEFAULT): Remove, unused.
6487 (XGCValues): Change colors to unsigned long.
6488 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6489 nsterm.m.
6490 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6491 (ns_list_fonts): Remove, unused.
6492 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6493 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6494 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6495 (nsfont_draw): Compare face colors to 0, not nil.
6496 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6497 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6498 (-addSubmenuWithTitle:): Use NSMenuItem class.
6499 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6500 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6501 (ns_clip_to_row): Make gc arg a BOOL.
6502 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6503 ns_clip_to_row() call.
6504 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6505 used). Cast FRAME_FONT assignments.
6506 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6507 (ns_string_to_lispmod): Change arg to const char.
6508 (ns_term_init): Use NSMenuItem class.
6509 (EmacsApp -openFile:): Move to different section of file.
6510 (EmacsApp -application:openFiles:): Don't return a value, call
6511 -replyToOpenOrPrint:.
6512 (EmacsView -keyDown:): Fix up cast.
6513 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6514 (EmacsView -menuDown:): Cast tag in call to
6515 find_and_call_menu_selection().
6516 (ns_list_fonts): Remove, unused.
6517 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6518 (ns_fontname_to_xlfd): Make static.
6519 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6520 Remove prototypes (now in keyboard.h).
6521 (next_menubar_widget_id): Remove, unused.
6522 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6523 Remove prototypes (now in keyboard.h).
6524 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6525
65262008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6527
6528 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6529 (floatfns.o): Depend on syssignal.h.
6530 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6531
6532 * systty.h: Fix previous change that removed BSD_TERMIOS.
6533 Add comments to #ifdefs.
6534
65352008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6536
6537 * w32fns.c (w32-load-color-file): Remove.
6538 (x-open-connection): Use renamed Fx_load_color_file.
6539 * xfaces.c (x-load-color-file): Add.
6540 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6541 Emacs.clr.
6542 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6543
65442008-07-31 Michael Albinus <michael.albinus@gmx.de>
6545
6546 * dbusbind.c (Fdbus_call_method_asynchronously)
6547 (Fdbus_method_error_internal): New defuns.
6548 (xd_read_message): Handle also reply messages.
6549 (Vdbus_registered_functions_table): Extend docstring.
6550
65512008-07-31 Juanma Barranquero <lekktu@gmail.com>
6552
6553 * keyboard.c (gobble_input): Fix previous change.
6554
65552008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6556
6557 * bitmaps/README:
6558 * xfns.c:
6559 * termcap.c:
6560 * term.c:
6561 * syswait.h:
6562 * systty.h:
6563 * systime.h:
6564 * syssignal.h:
6565 * sysdep.c:
6566 * process.h:
6567 * process.c:
6568 * print.c:
6569 * ndir.h:
6570 * lread.c:
6571 * keyboard.c:
6572 * getpagesize.h:
6573 * floatfns.c:
6574 * fileio.c:
6575 * emacs.c:
6576 * doc.c:
6577 * dispnew.c:
6578 * dired.c:
6579 * data.c:
6580 * callproc.c:
6581 * buffer.c:
6582 * README:
6583 * Makefile.in:
6584 * s/template.h:
6585 * s/msdos.h:
6586 * m/vax.h: Remove VMS support.
6587 * s/vms.h:
6588 * vlimit.h:
6589 * uaf.h:
6590 * temacs.opt:
6591 * param.h:
6592 * ioctl.h: Remove file.
6593
65942008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6595
6596 * s/ms-w32.h (MULTI_KBOARD): Remove.
6597 * xterm.c:
6598 * xselect.c:
6599 * xfns.c:
6600 * window.c:
6601 * w32term.c:
6602 * w32fns.c:
6603 * terminal.c:
6604 * termhooks.h:
6605 * term.c:
6606 * sysdep.c:
6607 * keyboard.h:
6608 * keyboard.c:
6609 * frame.h:
6610 * frame.c:
6611 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6612 * config.in: Regenerate.
6613
66142008-07-30 Jason Rumney <jasonr@gnu.org>
6615
6616 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6617
6618 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6619 (w32font_open_internal): Get unicode version of textmetrics.
6620 Don't enable or disable glyph indices here.
6621 (w32font_open): Disable use of glyph indices.
6622
6623 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6624
66252008-07-30 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * minibuf.c (Vread_buffer_function): Doc fix.
6628
66292008-07-30 John Paul Wallington <jpw@pobox.com>
6630
6631 * minibuf.c (read_buffer_completion_ignore_case): New var.
6632 (Fread_buffer): Use it.
6633
66342008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6635
6636 * systty.h (sensemode): Remove empty #if. Remove reference to
6637 BSD_TERMIOS, unused.
6638
6639 * sysdep.c: Remove reference to DGUX.
6640 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6641
6642 * config.in: Regenerate.
6643
66442008-07-30 Jason Rumney <jasonr@gnu.org>
6645
6646 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6647
66482008-07-29 Jason Rumney <jasonr@gnu.org>
6649
6650 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6651 is populated.
6652 (uniscribe_encode_char): Always use uniscribe.
6653 Avoid using context if cache is populated.
6654
66552008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6656
6657 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6658 open menu.
6659
6660 * gtkutil.c (menu_nav_ended): Remove.
6661 (create_menus): Remove signal connect for menu_nav_ended.
6662
66632008-07-28 Chong Yidong <cyd@stupidchicken.com>
6664
6665 * xdisp.c (redisplay_window): Check return value of
6666 compute_window_start_on_continuation_line before forcing a window
6667 start.
6668
66692008-07-28 Jason Rumney <jasonr@gnu.org>
6670
6671 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6672
6673 * w32term.c (w32_enable_unicode_output, cleartype_active):
6674 Remove obsolete display options.
6675 (x_draw_glyph_string_background): Don't use old cleartype_active
6676 workaround.
6677 (w32_initialize): Remove cleartype_active initialization.
6678 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6679
66802008-07-28 Andreas Schwab <schwab@suse.de>
6681
6682 * lisp.h (init_weak_hash_tables, syms_of_font)
6683 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6684 (remove_hash_entry): Don't declare.
6685 * eval.c (maybe_call_debugger): Make static and move before use.
6686 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6687 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6688 * xterm.h (x_set_frame_alpha): Declare.
6689
66902008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6691
6692 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6693 (create_menus): Connect selection-done to menu_nav_ended.
6694
66952008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6696
6697 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6698 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6699 parameter with read of 'alpha' one.
6700 (Qns_frame_parameter): Remove.
5582fbc7 6701 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6702 (next-selection-coding-system, Vselection_coding_system)
6703 (Vnext_selection_coding_system): Drop.
6704
67052008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6706
6707 * nsfns.m (do-applescript, do_applescript): Rename to
6708 ns-do-applescript, ns_do_applescript, and move within file.
6709
67102008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6711
6712 Remove support for Mac Carbon.
6713 * mactoolbox.c:
6714 * macterm.h:
6715 * macterm.c:
6716 * macselect.c:
6717 * macmenu.c:
6718 * macgui.h:
6719 * macfns.c:
6720 * mac.c: Remove file.
6721 * s/darwin.h:
6722 * m/intel386.h:
6723 * xfaces.c:
6724 * xdisp.c:
6725 * window.c:
6726 * tparam.c:
6727 * termhooks.h:
6728 * termcap.c:
6729 * term.c:
6730 * syssignal.h:
6731 * sysselect.h:
6732 * sysdep.c:
6733 * process.c:
6734 * lread.c:
6735 * lisp.h:
6736 * keyboard.c:
6737 * image.c:
6738 * fringe.c:
6739 * frame.h:
6740 * frame.c:
6741 * fontset.c:
6742 * font.h:
6743 * font.c:
6744 * fns.c:
6745 * fileio.c:
6746 * emacs.c:
6747 * dispnew.c:
6748 * dispextern.h:
6749 * config.in:
6750 * atimer.c:
2ae37cf0 6751 * Makefile.in: Remove code for Carbon.
aac0c6e3 6752
f0131492 67532008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6754
6755 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6756
67572008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6758
6759 * macterm.h (kCGBitmapByteOrder32Host): New define for
6760 non-universal SDKs.
6761
6762 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6763 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6764
6765 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6766 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6767
67682008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6769
6770 * w32inevt.c: Include dispextern.h.
6771
67722008-07-26 Andreas Schwab <schwab@suse.de>
6773
6774 * print.c (print_object): Fix off-by-one in last change.
6775
67762008-07-25 Juanma Barranquero <lekktu@gmail.com>
6777
6778 * term.c (syms_of_term): Don't initialize default_orig_pair,
6779 default_set_foreground and default_set_background on Windows.
6780
67812008-07-25 Jason Rumney <jasonr@gnu.org>
6782
6783 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6784 ScriptItemize. Clean up return value checking. Remove unused
6785 variables.
6786 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6787 shaping engine.
6788
6789 * w32font.c (w32font_has_char): Handle the case where we can't
6790 determine the script for a character.
6791
67922008-07-25 Chong Yidong <cyd@stupidchicken.com>
6793
6794 * term.c (syms_of_term): Initialize default_orig_pair,
6795 default_set_foreground, and default_set_background.
6796
6797 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6798 clash (bug#86).
6799 (getloadavg): Callers changed.
6800
6801 * image.c (svg_load_image): Fix last change.
6802 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6803 image size is valid. Use g_object_unref instead of deprecated
6804 rsvg_handle_free to free rsvg handle.
6805 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6806
68072008-07-25 Jason Rumney <jasonr@gnu.org>
6808
6809 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6810 surrogates before looking up glyph index.
6811 (w32font_text_extents): Encode as surrogates if falling back to
6812 functions that need UTF-16 wide chars.
6813
6814 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6815 BMP as surrogates before looking up glyph index.
6816
68172008-07-25 Chong Yidong <cyd@stupidchicken.com>
6818
6819 * image.c (svg_load_image): Check for failure in return value of
6820 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6821
68222008-07-25 Jason Rumney <jasonr@gnu.org>
6823
6824 * w32font.c (Fx_select_font): Reverse sense of second arg.
6825
68262008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6827
6828 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6829 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6830
6831 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6832 (PURESIZE): Use it.
6833
68342008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6835
6836 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6837 * m/alpha.h (TEXT_END):
6838 * m/ibmrs6000.h (TEXT_END):
6839 * m/macppc.h (TEXT_END):
6840 * s/darwin.h (TEXT_END):
6841 * s/msdos.h (TEXT_END): Remove, unused.
6842 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6843 * s/cygwin.h: Remove comment.
6844
6845 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6846 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6847 * m/intel386.h (DOT_GLOBAL_START):
6848 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6849 (USG): Remove, file not used on USG platforms.
6850
6851 * Makefile.in (HAVE_X11): Remove empty #else.
6852
68532008-07-24 Andreas Schwab <schwab@suse.de>
6854
6855 * fileio.c (Finsert_file_contents): Properly adjust undo list
6856 after format conversion.
6857
68582008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6859
6860 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6861 (menu_nav_ended): Remove.
6862 (create_menus): Remove signal connect for menu_nav_ended.
6863 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6864 create_menus.
6865 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6866
68672008-07-23 Jason Rumney <jasonr@gnu.org>
6868
6869 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6870 with opened font.
6871 (w32font_open): Set font type to gdi.
6872
6873 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6874
68752008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6876
6877 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6878 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6879 defines it.
6880 * unexec.c (ADDR_CORRECT): Define unconditionally.
6881
6882 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6883
6884 * unexec.c: Remove code depending on !COFF and USG, the file is
6885 not used for such systems.
6886
6887 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6888 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6889 (LD_SWITCH_SYSTEM_1): Remove, update users.
6890
6891 * s/darwin.h (DATA_END):
6892 * m/intel386.h (DATA_END):
6893 * m/ibmrs6000.h (DATA_END):
6894 * m/alpha.h (DATA_END): Remove, unused.
6895
6896 * config.in: Regenerate.
6897 * s/ms-w32.h (subprocesses): Define unconditionally.
6898 * s/template.h (subprocesses): Update comment.
6899 * s/vms.h (subprocesses):
6900 * s/usg5-4.h (subprocesses):
6901 * s/hpux10-20.h (subprocesses):
6902 * s/gnu-linux.h (subprocesses):
6903 * s/cygwin.h (subprocesses):
6904 * s/bsd-common.h (subprocesses):
6905 * s/aix4-2.h (subprocesses):
6906 * s/darwin.h (subprocesses): Do not define, defined by default now.
6907
6908 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6909 Remove all references.
6910 (temacs): Add GNUstep specific ld flags.
6911
6912 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6913 similarly to what X does.
6914
69152008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6916
6917 * nsfns.m (x-list-fonts): Remove.
6918 (syms_of_nsfns): Drop the x-list-fonts declaration.
6919 * nsterm.m: Get rid of remaining "//" comments.
6920
69212008-07-22 Chong Yidong <cyd@stupidchicken.com>
6922
6923 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6924
6925 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6926 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6927 (Fns_own_selection_internal, Fx_disown_selection_internal)
6928 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6929
6930 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6931 ... */' style of docstrings. Doc fixes.
6932
69332008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6934
6935 * terminfo.c (UP, BC, PC): Undo previous change.
6936
6937 * nsfns.m: Rename ns prefixed functions/variables to the
6938 corresponding x versions. Update references.
6939
69402008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6941
6942 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6943
69442008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6945
6946 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6947 Remove forwarding functions.
6948 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6949 non-static.
6950 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6951 non-static.
6952 (ns_frame_parm_handlers): Use the new names.
6953 (syms_of_nsfns): Move to the end of file.
6954
6955 * nsterm.m (syms_of_nsterm): Move to the end of file.
6956
6957 * dispnew.c (init_display): Remove code for X10.
6958
69592008-07-22 Jason Rumney <jasonr@gnu.org>
6960
6961 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6962 bare drive.
6963
69642008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6965
6966 * nsterm.m (syms_of_nsterm): Remove debugging println.
6967
69682008-07-22 David Reitter <david.reitter@gmail.com>
6969
6970 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6971 Carbon implementation of the same functionality: execute arbitrary
6972 AppleScript code.
6973
69742008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6975
6976 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6977 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6978 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6979 (Fx_display_mm_height, Fx_display_mm_width)
6980 (Fx_display_backing_store, Fx_display_visual_class)
6981 (Fx_display_save_under, Fx_open_connection)
6982 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6983 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6984 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6985 (Fx_display_pixel_width, Fx_display_pixel_height)
6986 (Fx_display_usable_bounds, Fx_display_planes)
6987 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6988 ... */' style of docstrings.
6989
69902008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6991
6992 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6993 on this platform.
6994 (mips):
6995 * m/iris4d.h (mips): Do not define.
6996 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6997
6998 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6999
7000 * image.c:
7001 * nsfns.m:
7002 * nsselect.m:
7003 * nsterm.h:
7004 * nsterm.m: Rename ns prefixed functions/variables to the
7005 corresponding x versions. Update references.
7006
7007 * m/ibms390x.h (NO_REMAP): Do not undefine.
7008
7009 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7010
70112008-07-21 Chong Yidong <cyd@stupidchicken.com>
7012
7013 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7014 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7015 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7016 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7017 (Fns_display_mm_height, Fns_display_mm_width)
7018 (Fns_display_backing_store, Fns_display_visual_class)
7019 (Fns_display_save_under, Fns_open_connection)
7020 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7021 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7022 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7023 (Fns_display_pixel_width, Fns_display_pixel_height)
7024 (Fns_display_usable_bounds, Fx_display_planes)
7025 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7026
70272008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7028
7029 * print.c (print_object): Check print_depth before searching for
7030 circularities.
7031
70322008-07-21 Michael Albinus <michael.albinus@gmx.de>
7033
7034 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7035 only sprintf.
7036
70372008-07-21 Kenichi Handa <handa@m17n.org>
7038
7039 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7040
70412008-07-20 Andreas Schwab <schwab@suse.de>
7042
7043 * syntax.c (find_start_pos, find_start_value)
7044 (find_start_value_byte, find_start_begv, find_defun_start)
7045 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7046
70472008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7048
7049 * s/sol2-3.h: Insert contents of s/sol2.h.
7050 (LD_SWITCH_SYSTEM): Remove redundant definition.
7051 * s/sol2.h: Remove, unused.
7052
70532008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7054
7055 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7056
70572008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7058
7059 * Makefile.in (ns_appdir): Fix typo in find command.
7060
70612008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7062
7063 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7064
7065 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7066 added not supported anymore.
7067
7068 * s/usg5-4-2.h (LIBS_SYSTEM):
7069 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7070
7071 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7072 * s/lynxos.h (GETPGRP_NO_ARG):
7073 * s/hpux10-20.h (NO_SIOCTL_H):
7074 * s/gnu.h (GETPGRP_NO_ARG):
7075 * s/gnu-linux.h (NO_SIOCTL_H):
7076 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7077 * s/cygwin.h (GETPGRP_NO_ARG):
7078 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7079 (C_DEBUG_SWITCH): Remove duplicate definition.
7080
7081 * m/ibms390.h: Remove boilerplate comments.
7082
7083 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7084
7085 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7086 (wait_reading_process_output): Remove code for SunOS, platform not
7087 supported anymore. Use SOLARIS2 instead of sun.
7088
70892008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7090
7091 * font.c (font_open_by_name): Under NS, default lface height to zero.
7092 (font_open_for_lface): Under NS, set size based on frame fontsize.
7093 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7094 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7095
70962008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7097
7098 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7099 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7100 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7101 YES/NO.
7102 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7103 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7104 * Makefile.in (clean): Clear out build destination dir.
7105
71062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7107
7108 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7109 xterm, xselect.
7110 * lisp.h: Remove declaration of hash_remove.
7111 * nsgui.h: Remove redefinitions of hash_remove.
7112 * fns.c (hash_remove): Rename to hash_remove_from_table.
7113
71142008-07-19 Seiji Zenitani <zenitani@mac.com>
7115
7116 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7117 strdup() the family UTF8String before modifying it.
7118
71192008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7120
7121 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7122 NS_FACE_BACKGROUND with 0 instead of nil.
7123 * nsfont.m (nsfont_draw): Same.
7124
71252008-07-19 Chong Yidong <cyd@stupidchicken.com>
7126
7127 * nsfns.m (ns_set_background_color): Fix crash.
7128
71292008-07-18 Chong Yidong <cyd@stupidchicken.com>
7130
7131 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7132
71332008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7134
7135 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7136
71372008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7138
7139 * gtkutil.c: Include <config.h> instead of "config.h".
7140
7141 * lisp.h (Foverlay_buffer): Add EXFUN.
7142
7143 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7144 child process to complete child_setup. Undo 2005-09-21 change.
7145
7146 * s/darwin.h: Mention setsid after vfork.
7147
71482008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7149
7150 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7151 Depend on macgui.h.
7152
7153 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7154 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7155
7156 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7157 and f19.
7158 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7159
7160 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7161 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7162 Remove enumerators.
7163
7164 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7165 Check if FACE_FROM_ID returns NULL.
7166
71672008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7168
7169 * w32inevt.c (change_frame_size): Remove extern declaration.
7170 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7171 change_frame_size.
7172
71732008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7174
7175 * getloadavg.c: Revert last change (2008-07-15).
7176
71772008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7178
7179 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7180 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7181 from configure.
7182
71832008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7184
7185 * s/sol2.h:
7186 * s/sol2-4.h: Reorganize conditionals.
7187
7188 * ecrt0.c: Remove code depending on m68000, not used anymore.
7189
7190 * fns.c (hash_remove): Make static.
7191 * lisp.h (hash_remove): Don't prototype.
7192
7193 * m/ibmrs6000.h:
7194 * m/ibms390x.h:
7195 * m/macppc.h: Remove boilerplate comments.
7196
7197 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7198 Solaris, which does not need them.
7199
7200 * m/vax.h: Remove comments about unsupported systems.
7201
7202 * s/darwin.h: Reorganize ifdefs.
7203
72042008-07-17 Andreas Schwab <schwab@suse.de>
7205
7206 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7207
72082008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7209
7210 Use SDATA. Follow coding convention of placing operators at
7211 beginning of next line rather than end of previous line, and placing
7212 spaces around infix operators.
7213
7214 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7215 in case it was defined already.
7216 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7217 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7218 ns_default.
7219 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7220 Lisp_Objects.
7221 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7222 (ns_defined_color, ns_color_to_lisp): Declare.
7223 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7224 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7225 it's accepted even with USE_LISP_UNION_TYPE.
7226 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7227 (update_frame_tool_bar): Remove apparently obsolete tests for
7228 non-integerness of f->tool_bar_lines.
7229 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7230 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7231 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7232 (nsfont_open): Don't confuse NULL for Qnil.
7233 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7234 * menu.h (find_and_call_menu_selection):
7235 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7236 (find_and_return_menu_selection): Always return something.
7237 * frame.h: Include dispextern.h for Display_Info.
7238 (display_x_get_resource): Declare.
7239
72402008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7241
7242 * syntax.c: Remove stdio.h include accidentally introduced in
7243 Emacs.app commit.
7244 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7245 NS_IMPL_COCOA.
7246 * keyboard.c (handle_async_input, input_available_signal): Remove
7247 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7248
72492008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7250
7251 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7252 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7253 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7254 Use SDATA.
7255
7256 * keymap.c: Remove all NS-specific code.
7257 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7258 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7259 where_is_preferred_modifier, return a different value depending on how
7260 preferred is the binding.
7261 (where_is_internal): Adjust accordingly.
7262 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7263 Adjust to new preferred_sequence_p.
7264 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7265 * keyboard.c (parse_solitary_modifier): Not static any more.
7266 * keyboard.h (parse_solitary_modifier): Declare.
7267
72682008-07-16 Andreas Schwab <schwab@suse.de>
7269
7270 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7271 of easymenu.
7272
72732008-07-16 Chong Yidong <cyd@stupidchicken.com>
7274
7275 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7276 that we don't move off the line.
7277
72782008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7279
7280 * keyboard.c (Qsuper): Remove.
7281 (parse_menu_item): Don't call where_is_internal specially for NS.
7282
72832008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7284
7285 * s/gnu-linux.h: Remove boilerplate comments.
7286
7287 * m/alpha.h (__ELF__): Consolidate conditions.
7288
7289 * m/m68k.h (linux): Use GNU_LINUX instead.
7290 Remove boilerplate comments.
7291
7292 * m/intel386.h: Undo refactoring from previous change.
7293 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7294 too, remove dead code.
7295 (linux): Use GNU_LINUX instead.
7296
72972008-07-16 Jason Rumney <jasonr@gnu.org>
7298
7299 * w32gui.h: Repeat 26 June changes lost by last change.
7300
73012008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7302
7303 * systty.h: Remove code for Aix on 386, unsupported platform.
7304
7305 * s/ms-w32.h: Remove boilerplate comments.
7306 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7307
7308 * s/gnu-linux.h (TERM): Remove support.
7309 (HAVE_SYSVIPC): Remove, unused.
7310 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7311 for this system.
7312
7313 * process.c: Remove support for IRIS, unused.
7314 Remove support for TERM, not relevant anymore.
7315
7316 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7317 used with the definition.
7318
7319 * s/aix4-2.h (static): Do not undef.
7320
7321 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7322 only used on Aix.
7323 (HAVE_SYSVIPC): Remove, unused.
7324
7325 * m/hp800.h (CANNOT_DUMP): Do not undef.
7326
7327 * m/alpha.h: Fix comment.
7328
7329 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7330 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7331 used by this configuration.
7332 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7333 * unexec.c: Remove code depending on HPUX and
7334 USG_SHARED_LIBRARIES, not used with this file. Remove code
7335 depending on IRIS, unused. Remove if 0-ed code.
7336
7337 * s/template.h: Remove comments about static.
7338
7339 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7340 Remove if 0-ed code.
7341 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7342 were the same as the default.
7343 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7344 Remove boilerplate comments.
7345 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7346 (HAVE_SYSVIPC): Remove, unused.
7347 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7348
7349 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7350 Remove boilerplate comments.
7351 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7352 Remove boilerplate comments.
7353 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7354 Remove boilerplate comments.
7355 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7356
7357 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7358 USG systems which do not use DATA_SEG_BITS.
7359 Refactor code. Remove boilerplate comments.
7360
7361 * m/ibms390.h:
7362 * m/m68k.h:
7363 * s/bsd-common.h:
7364 * s/cygwin.h:
7365 * s/darwin.h:
7366 * s/freebsd.h:
7367 * s/gnu.h:
7368 * s/msdos.h: Remove boilerplate comments.
7369
7370 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7371 do not use this file.
aac0c6e3
MR
7372 (IRIS_4D): Remove, unused.
7373
7374 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7375 do not use this file.
aac0c6e3
MR
7376 (SIGN_EXTEND_CHAR):
7377 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7378 * unexmips.c: Remove file, unused.
7379
7380 * editfns.c (Fuser_full_name): Replace the only use of
7381 USER_FULL_NAME with its value.
7382 * config.in: Regenerate.
7383
73842008-07-16 David Reitter <david.reitter@gmail.com>
7385
7386 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7387 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7388
73892008-07-16 Glenn Morris <rgm@gnu.org>
7390
7391 * emacs.c (system-type): Doc fix.
7392
73932008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7394
7395 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7396 If the cache doesn't work, let's fix it, rather than work around it.
7397
73982008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7399
7400 * Makefile.in: Correct additions for nsfont.o in last commit.
7401 * nsfont.m: New file (forgot last commit).
7402
74032008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7404
7405 * callproc.c (set_initial_environment): Initialize
7406 Vprocess_environment under CANNOT_DUMP (fixes crash when
7407 batch-compiling for bootstrap).
7408
74092008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7410 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7411
7412 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7413 fix crash due to different init order.
7414
74152008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7416
7417 Changes and additions for NeXTstep windowing system (Cocoa and
7418 GNUstep) support.
7419
7420 * Makefile.in:
7421 * config.in: Support defines and build commands for NS port.
7422 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7423 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7424 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7425 windowing.
7426 (struct face): Add synth_ital field.
7427 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7428 (init_display): Initialize Vinitial_window_system to "ns" when so
7429 compiled.
7430 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7431 (display_arg): Use under NS.
7432 (main): Under NS, allocate autorelease pool and handle command line
7433 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7434 (standard_args): Add NS-specific args.
7435 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7436 * font.c (DEFAULT_ENCODING): New variable.
7437 (font_find_for_lface): Use it.
7438 (syms_of_font): Load syms_of_nsfont under NS.
7439 * font.h: Declare nsfont_driver when compiled under NS.
7440 * fontset.c: When compiling under NS, include nsterm.h.
7441 (fontset_from_font): Autoconstruct fontset under NS.
7442 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7443 symbol, document and use it.
7444 (do_switch_frame): When for_deletion under Cocoa, add
7445 Fraise_frame(Qnil).
7446 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7447 (x_get_arg): Allow "yes" and "no" as boolean values.
7448 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7449 Qright under Cocoa.
7450 (focus-follows-mouse): Default to 0 under NS.
7451 * frame.h (enum output_method): Add output_ns.
7452 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7453 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7454 (FRAME_WINDOW_P): NS-specific definition.
7455 * fringe.c (max_used_fringe_bitmap): Make public.
7456 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7457 (getloadavg): Use NeXT code under descendant OS's.
7458 * image.c (includes and header section, x_create_bitmap_from_data)
7459 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7460 (image_background_transparent, x_clear_image_1)
7461 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7462 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7463 (x_to_xcolors, x_from_xcolors, x_disable_image)
7464 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7465 other GUIs, including XPM support using code originally written for
7466 Carbon GUI.
7467 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7468 using NS API.
7469 (image_ascent): Use font metrics macros instead of direct struct field
7470 access.
7471 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7472 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7473 Also, handle NS as GTK for menu bar purposes.
7474 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7475 toolkit where they differ.
7476 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7477 use cachelist, still needed under NS.
7478 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7479 (struct widget_value): Define it here for menu.c.
7480 * keymap.c (includes): Include modifier internals.
7481 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7482 NS.
7483 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7484 support for preferring sequences using certain modifiers, specified by
7485 the FIRSTONLY argument.
7486 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7487 under NS GNUstep implementation.
7488 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7489 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7490 * menu.c: Include nsterm.h under NS.
7491 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7492 (free_menubar_widget_tree_value, update_submenu_strings)
7493 (find_and_call_menu_selection): Treat NS as X and NT.
7494 (find_and_return_menu_selection): New function, used for popup menus.
7495 * nsgui.h:
7496 * nsterm.h:
7497 * nsfns.m:
7498 * nsimage.m:
7499 * nsmenu.m:
7500 * nsselect.m:
7501 * nsterm.m: New files.
7502 * process.c (wait_reading_process_output): Under NS, call ns_select()
7503 instead of plain select().
7504 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7505 beginning of buffer.
7506 * sysselect.h (init_process): Rename when compiling under Cocoa to
7507 avoid name conflict.
7508 * termhooks.h (display_info): Add ns_display_info to union.
7509 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7510 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7511 COCOA environment.
7512 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7513 unexec() signature. (Note, this will dump, but the resulting file
7514 crashes; unexosx is used instead; keeping around for reference and
7515 possible aid in getting dump working under GNUstep.)
7516 * w32gui.h (button_type, widget_value): Remove definitions (now in
7517 keyboard.h).
7518 * window.c: Include nsterm.h when compiling under NS.
7519 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7520 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7521 other GUI windowing systems.
7522 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7523 GTK.
7524 (x_consider_frame_title): Under NS, set icon type and frame
7525 modified-state indicator; use ns_set_name_as_filename() when using
7526 formatted title.
7527 (update_window_cursor): Make public when compiling under NS.
7528 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7529 (hourglass_atimer, Vhourglass_delay
7530 * xfaces.c (header section, init_frame_faces, clear_font_table)
7531 (defined_color, unload_color, x_face_list_fonts)
7532 (prepare_face_for_display): Add NS support parallel to other GUIs.
7533 Emulate GCs like other non-X GUIs.
7534 (split_font_name): Don't lowercase font name under NS.
7535 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7536 under NS.
7537 * s/darwin.h: Add support for compilation under NS.
7538
75392008-07-15 Jason Rumney <jasonr@gnu.org>
7540
7541 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7542 (w32_show_hourglass): Rename from show_hourglass.
7543 (w32_hide_hourglass): Rename from hide_hourglass.
7544 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7545 (Vhourglass_delay): Declare extern.
7546 (hourglass_started): Remove.
7547
7548 * xdisp.c (Vhourglass_delay): Remove static.
7549 (hourglass_started, start_hourglass, cancel_hourglass):
7550 Don't include these versions on WINDOWSNT.
7551
75522008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7553
7554 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7555 variables (formerly in xfns.c).
7556 (show_hourglass, hide_hourglass): New prototypes (same).
7557 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7558 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7559 in xfns.c).
7560 (syms_of_xdisp): Declare/initialize display-hourglass,
7561 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7562 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7563 formerly in xfns.c.
7564 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7565 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7566 (start_hourglass, cancel_hourglass): Remove.
7567 (show_hourglass, hide_hourglass): Remove prototypes and static
7568 modifiers.
7569 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7570 hourglass_atimer, hourglass_shown_p declaration/initialization.
7571 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7572 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7573 (start_hourglass, cancel_hourglass): Remove.
7574 (show_hourglass, hide_hourglass): Remove prototypes and static
7575 modifiers.
7576 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7577 hourglass_atimer, hourglass_shown_p declaration/initialization.
7578 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7579 (DEFAULT_HOURGLASS_DELAY): Remove.
7580 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7581 hourglass_shown_p declaration/initialization.
7582
75832008-07-14 Jason Rumney <jasonr@gnu.org>
7584
7585 * w32fns.c (w32_get_arg): Remove wrapper function.
7586 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7587 directly.
7588 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7589
75902008-07-14 Kenichi Handa <handa@m17n.org>
7591
7592 * xfont.c (xfont_open): Add workaround for X's bug.
7593
75942008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7595
7596 * fontset.c: Include <stdio.h> unconditionally.
7597
75982008-07-13 Michael Albinus <michael.albinus@gmx.de>
7599
7600 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7601 for filtering.
7602
76032008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7604
7605 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7606
7607 * m/macppc.h:
7608 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7609
7610 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7611 (SPECIAL_EMACS_INT):
7612 * m/ia64.h (SPECIAL_EMACS_INT):
7613 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7614 * s/gnu.h (NLIST_STRUCT):
7615 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7616 * s/gnu-linux.h (LINUX):
7617 * s/msdos.h (HAVE_FACES):
7618 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7619
7620 * systty.h:
7621 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7622 anymore.
7623
76242008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7625
7626 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7627 always defined as int.
7628
7629 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7630 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7631 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7632 * s/freebsd.h (HAVE_WAIT_HEADER):
7633 * s/bsd-common.h (HAVE_UNION_WAIT):
7634 * s/aix4-2.h (HAVE_WAIT_HEADER):
7635 * m/mips.h (HAVE_UNION_WAIT):
7636 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7637 (COFF, static): Do not define, they are undefined later in the file.
7638
7639 * process.c (update_status): Don't use a union.
7640 (status_convert):
7641 (sigchld_handler): Use int instead of WAITTYPE.
7642
76432008-07-12 Chong Yidong <cyd@stupidchicken.com>
7644
7645 * indent.c (Fvertical_motion): Restore hscroll before moving to
7646 goal column.
7647
76482008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7649
7650 * lisp.h: Remove left over code.
7651
76522008-07-11 Andreas Schwab <schwab@suse.de>
7653
7654 * lisp.h: Fix logic in last change.
7655
7656 * menu.h: New file.
7657 * menu.c: Include it.
7658 * xmenu.c: Likewise.
7659 * Makefile.in: Update dependencies.
7660
76612008-07-11 Kenichi Handa <handa@m17n.org>
7662
7663 * fontset.c (fontset_from_font): Cancel the previous change.
7664
76652008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7666
7667 * lisp.h:
7668 * w32heap.c:
7669 * emacs.c:
7670 * alloc.c: Replace all references of NO_UNION_TYPE with
7671 USE_LISP_UNION_TYPE.
7672
7673 * m/xtensa.h (NO_UNION_TYPE):
7674 * m/vax.h (NO_UNION_TYPE):
7675 * m/template.h (NO_UNION_TYPE):
7676 * m/sparc.h (NO_UNION_TYPE):
7677 * m/mips.h (NO_UNION_TYPE):
7678 * m/macppc.h (NO_UNION_TYPE):
7679 * m/m68k.h (NO_UNION_TYPE):
7680 * m/iris4d.h (NO_UNION_TYPE):
7681 * m/intel386.h (NO_UNION_TYPE):
7682 * m/ibms390x.h (NO_UNION_TYPE):
7683 * m/ibms390.h (NO_UNION_TYPE):
7684 * m/ibmrs6000.h (NO_UNION_TYPE):
7685 * m/ia64.h (NO_UNION_TYPE):
7686 * m/hp800.h (NO_UNION_TYPE):
7687 * m/arm.h (NO_UNION_TYPE):
7688 * m/amdx86-64.h (NO_UNION_TYPE):
7689 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7690 defining it the same.
7691
76922008-07-10 Chong Yidong <cyd@stupidchicken.com>
7693
7694 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7695
76962008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7697
7698 * fileio.c:
7699 * sysdep.c
7700 * systty.h:
7701 * m/ibmrs6000.h:
7702 * m/iris4d.h:
7703 * s/aix4-2.h:
7704 * s/freebsd.h:
7705 * s/gnu-linux.h:
7706 * s/hpux10-20.h:
7707 * s/hpux11.h:
7708 * s/netbsd.h:
7709 * s/sol2-3.h:
7710 * s/sol2-4.h:
7711 * s/sol2.h:
7712 * s/usg5-4.h:
7713 * s/vms.h: Remove references to unused variables.
7714
77152008-07-10 Andreas Schwab <schwab@suse.de>
7716
7717 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7718 pattern before matching the generic family.
7719
77202008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7721
7722 * unexec.c:
7723 * s/vms.h:
7724 * s/usg5-4-2.h:
7725 * s/sol2-5.h:
7726 * s/freebsd.h:
7727 * s/darwin.h: Remove dead code.
7728
7729 * m/template.h:
7730 * m/sparc.h:
7731 * m/mips.h:
7732 * m/m68k.h:
7733 * m/iris4d.h:
7734 * m/intel386.h:
7735 * m/ibms390x.h:
7736 * m/ibms390.h:
7737 * m/ia64.h:
7738 * m/hp800.h:
7739 * m/arm.h:
7740 * m/amdx86-64.h: Remove dead code and references to unused
7741 and compiler defined symbols.
7742
7743 * unexmips.c:
7744 * unexelf.c: Remove references to desupported systems.
7745
7746 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7747
7748 * m/powermac.h: Remove boilerplate comments.
7749 (NO_REMAP): Remove unused definition.
7750
7751 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7752 define them.
7753
77542008-07-10 Kenichi Handa <handa@m17n.org>
7755
7756 * xfont.c (xfont_open): Log the reason of failure.
7757
77582008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7759
7760 * fontset.c (fontset_get_font_group):
7761 * font.c (font_check_otf): Specify argument types.
7762
77632008-07-09 Kenichi Handa <handa@m17n.org>
7764
7765 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7766 non-ASCII char is found.
7767
7768 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7769 (reorder_font_vector): Change the arg preferred_family to font.
7770 Prefer the spec matching with font.
7771 (fontset_get_font_group): New function.
7772 (fontset_find_font): Change the format of an element of a realized
7773 fontset. Use fontset_get_font_group.
7774 (fontset_font): Try the current fontset, the default fontset, the
7775 fallbacks of the current fontset, and the fallbacks of the default
7776 fontset in this order.
7777 (face_for_char): Delete the shortcut to use the current font.
7778 (fontset_from_font): Don't set fonts for Latin in the fontset.
7779
7780 * font.h (font_make_object, font_match_p): Adjust prototypes.
7781
7782 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7783
7784 * font.c (font_make_object): New arg entity and pixelsize.
7785 (font_check_otf_features, font_check_otf): New functions.
7786 (font_match_p): Check :lang, :script, and :otf properties.
7787
7788 * xfont.c (xfont_open): Adjust it for the change of
7789 font_make_object.
7790 (xfont_text_extents): Fix initial setting of metrics.
7791
7792 * ftfont.c (struct ftfont_info): New member index, delete member
7793 fc_charset_idx. Make the member order compatible with struct
7794 xftfont_info.
7795 (fc_charset_table): Change charset names to registry names.
7796 (ftfont_pattern_entity): Delete the args registry and
7797 fc_charset_idx. Change the value of :font-entity property
7798 to (FONTNAME . INDEX). Always set :registry property to
7799 `iso10646-1'.
7800 (struct ftfont_cache_data): New struct.
7801 (ftfont_lookup_cache): New arg for_face.
7802 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7803 (ftfont_driver): Set the member otf_capability.
7804 (ftfont_get_charset): Adjust it for the change of
7805 fc_charset_table.
7806 (OTF_TAG_SYM): New macro.
7807 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7808 for the change of fc_charset_table.
7809 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7810 ftfont_pattern_entity. Add FC_INDEX to objset.
7811 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7812 and ftfont_pattern_entity.
7813 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7814 font_make_object, struct ftfont_info.
7815 (ftfont_has_char): Use ftfont_get_fc_charset.
7816 (ftfont_otf_features, ftfont_otf_capability): New functions.
7817 (ftfont_shape): Use ftfont_get_otf.
7818 (ftfont_text_extents): Fix initial setting of metrics.
7819
7820 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7821 member order compatible with struct ftfont_info.
7822 (xftfont_open): Add FC_CHARSET to the pattern. Set
7823 xftfont_info->ft_size. Don't unlock the face. Check BDF
7824 properties if appropriate.
7825 (xftfont_close): Unlock the face.
7826 (xftfont_anchor_point, xftfont_shape): Deleted.
7827 (syms_of_xftfont): Don't set members anchor_point and shape of
7828 xftfont_driver.
7829
7830 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7831 font_make_object.
7832
7833 * w32font.c (w32font_open): Adjust it for the change of
7834 font_make_object.
7835 (w32font_open_internal): Don't set properties of font_object here.
7836
78372008-07-08 Chong Yidong <cyd@stupidchicken.com>
7838
7839 * macfns.c (x_create_tip_frame):
7840 * w32fns.c (x_create_tip_frame):
7841 * xfns.c (x_create_tip_frame): Pass parameter argument to
7842 face-set-after-frame-default.
7843
7844 * xfaces.c (Finternal_merge_in_global_face): Save merged
7845 attributes for the default face back into the face vector.
7846
78472008-07-08 Andreas Schwab <schwab@suse.de>
7848
7849 * fontset.h: Declare fontset_from_font. Don't declare
7850 new_fontset_from_font and fontset_from_font_name.
7851 * xterm.c: Include "fontset.h".
7852 * Makefile.in (xterm.o): Update dependencies.
7853
78542008-07-08 Glenn Morris <rgm@gnu.org>
7855
7856 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7857 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7858
78592008-07-07 Chong Yidong <cyd@stupidchicken.com>
7860
7861 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7862 (x_set_frame_parameters): Don't bind it.
7863
78642008-07-07 Juanma Barranquero <lekktu@gmail.com>
7865
7866 * w32fns.c (map_w32_filename): Declare extern.
7867
78682008-07-07 Jason Rumney <jasonr@gnu.org>
7869
7870 * w32term.c (WS_EX_LAYERED): Define if not already.
7871
78722008-07-06 Chong Yidong <cyd@stupidchicken.com>
7873
7874 * xfaces.c (set_font_frame_param): Don't try to set the font
7875 parameter if it is still unspecified in the lface.
7876
78772008-07-05 Chong Yidong <cyd@stupidchicken.com>
7878
7879 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7880 face if it didn't already exist.
7881
7882 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7883
78842008-07-05 Andreas Schwab <schwab@suse.de>
7885
7886 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7887
78882008-07-05 Chong Yidong <cyd@stupidchicken.com>
7889
7890 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7891 word-wrapping.
7892 (IT_DISPLAYING_WHITESPACE): New macro.
7893 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7894 when word-wrapping. Simplify word-wrapping logic. Use correct
7895 pixel positions when saving copies of the iterator.
7896 (display_line): Use proper wrap point if the last character on a
7897 line was preceded by whitespace.
7898
78992008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7900
7901 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7902
79032008-07-04 Kenichi Handa <handa@m17n.org>
7904
7905 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7906
7907 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7908
79092008-07-02 Jason Rumney <jasonr@gnu.org>
7910
7911 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7912 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7913
7914 * xdisp.c (next_element_from_display_vector): Move assignment out
7915 of if statement.
7916
79172008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7918
7919 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7920
7921 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7922 (syms_of_fileio): Initialize and export them.
7923 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7924
7925 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7926 (Fsystem_move_file_to_trash): New function.
7927 (syms_of_w32fns): Export it to lisp.
7928
79292008-07-01 Jason Rumney <jasonr@gnu.org>
7930
7931 * w32font.c (w32font_text_extents): Don't count overhang as part
7932 of width.
7933
79342008-06-30 Miles Bader <miles@gnu.org>
7935
7936 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7937 Add `avoid_cursor_p' field.
7938
7939 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7940 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7941 (append_glyph, append_composite_glyph, produce_image_glyph)
7942 (append_stretch_glyph): Initialize avoid_cursor_p.
7943 (get_it_property): Rename from `get_line_height_property'.
7944 (x_produce_glyphs): Use get_it_property.
7945 (handle_line_prefix, push_display_prop): New functions.
7946 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7947 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7948 New variables.
7949 (syms_of_xdisp): Initialize them.
7950
79512008-06-30 Kenichi Handa <handa@m17n.org>
7952
7953 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7954 XftDefaultSubstitute (they are called in XftFontMatch).
7955 (xftfont_open): Fix args to ftfont_font_format.
7956
7957 * ftfont.c (fc_charset_table): New member lang.
7958 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7959 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7960 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7961 (ftfont_open): Fix args to ftfont_font_format.
7962 (ftfont_font_format): New arg filename.
7963
79642008-06-30 Chong Yidong <cyd@stupidchicken.com>
7965
7966 * xfaces.c (Finternal_merge_in_global_face): If default face was
7967 modified, realize it again. Update the font face attribute.
7968
79692008-06-29 Jason Rumney <jasonr@gnu.org>
7970
7971 * w32term.c (x_set_frame_alpha): Fix logic.
7972
79732008-06-29 Kenichi Handa <handa@m17n.org>
7974
7975 * fontset.c (Finternal_char_font): Return font-object instead of
7976 font-name.
7977
7978 * composite.c (get_composition_id): Fix the width calculation for TAB.
7979
79802008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7981
7982 * indent.c (Fvertical_motion): Properly handle float column arg.
7983
79842008-06-28 Jason Rumney <jasonr@gnu.org>
7985
7986 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7987 (pfnSetLayeredWindowAttributes): New function pointer.
7988 (w32_initialize): Initialize it when supported.
7989 (x_set_frame_alpha): New function.
7990
7991 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7992 (w32_frame_parm_handlers): Set alpha handler.
7993
7994 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7995
79962008-06-27 Jason Rumney <jasonr@gnu.org>
7997
7998 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7999 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8000 (w32_to_x_charset, x_to_w32_charset)
8001 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8002 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8003 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8004 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8005 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8006 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8007 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8008 (Qw32_charset_unicode): Remove.
8009 (syms_of_w32fns): Update for above changes.
8010
8011 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8012 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8013 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8014 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8015 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8016 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8017 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8018 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8019 (syms_of_w32font): Update for above changes.
8020
80212008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8022
8023 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8024 removed #if.
8025 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8026
80272008-06-26 Juanma Barranquero <lekktu@gmail.com>
8028 Eli Zaretskii <eliz@gnu.org>
8029
8030 * makefile.w32-in (LOCAL_FLAGS):
8031 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8032
8033 * sysdep.c (_spawnlp, _getpid):
8034 Declare with explicit _cdecl instead of _CRTAPI1.
8035
8036 * editfns.c (Fget_internal_run_time):
8037 Check for WINDOWSNT with #ifdef, not #if.
8038
80392008-06-26 Jason Rumney <jasonr@gnu.org>
8040
8041 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8042
8043 * w32term.c (x_draw_glyph_string_foreground)
8044 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8045 Use FONT_HANDLE macro.
8046 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8047
8048 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8049 (uniscribe_encode_char): Use FONT_HANDLE macro.
8050
8051 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8052 (w32font_text_extents): Use precast w32_font.
8053 (w32font_close): Free cached metrics.
8054 (w32font_open_internal): Allocate space for name on stack.
8055
80562008-06-26 Chong Yidong <cyd@stupidchicken.com>
8057
8058 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8059
80602008-06-26 Jason Rumney <jasonr@gnu.org>
8061
8062 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8063 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8064
80652008-06-26 Juanma Barranquero <lekktu@gmail.com>
8066
8067 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8068
80692008-06-26 Jason Rumney <jasonr@gnu.org>
8070
8071 * w32bdf.c, w32bdf.h: Remove obsolete files.
8072
8073 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8074
8075 * w32gui.h: Don't include w32bdf.h.
8076 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8077 Remove obsolete font support.
8078
8079 * w32font.h (struct w32font_info): Remove compat_w32_font.
8080 Add hfont member.
8081 (FONT_COMPAT): Remove obsolete macro.
8082
8083 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8084 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8085 (w32font_open_internal): Remove compat code. Set new hfont member.
8086 (Fx_select_font): Use new hfont member.
8087
8088 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8089 (uniscribe_encode_char): Use new hfont member.
8090
8091 * w32term.c (x_draw_glyph_string_foreground)
8092 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8093 (x_draw_glyph_string): Use metrics in w32font_info.
8094
80952008-06-26 Kenichi Handa <handa@m17n.org>
8096
8097 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8098
80992008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8100
8101 * unexnext.c:
8102 * m/ews4800.h:
8103 * m/hp9000s300.h:
8104 * m/ibm370aix.h:
8105 * m/mips-siemens.h:
8106 * m/ncr386.h:
8107 * m/next.h:
8108 * m/pmax.h:
8109 * m/powerpcle.h:
8110 * m/tandem-s2.h:
8111 * s/386bsd.h:
8112 * s/bsd386.h:
8113 * s/bsd4-1.h:
8114 * s/bsd4-2.h:
8115 * s/bsdos2-1.h:
8116 * s/bsdos2.h:
8117 * s/bsdos3.h:
8118 * s/bsdos4.h:
8119 * s/nextstep.h:
8120 * s/ultrix4-3.h:
8121 * s/usg5-0.h:
8122 * s/usg5-2-2.h:
8123 * s/usg5-2.h:
8124 * s/usg5-4-3.h:
8125 * s/ux4800.h:
8126 * s/uxpds.h:
8127 * s/uxpv.h: Remove support for obsolete systems.
8128 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8129 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8130 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8131 Remove, insert contents in s/aix4-2.h.
8132 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8133 * s/bsd4-3.h: Rename to ...
8134 * s/bsd-common.h: ... this.
8135 * data.c:
8136 * doc.c:
8137 * ecrt0.c:
8138 * emacs.c:
8139 * fileio.c:
8140 * floatfns.c:
8141 * keyboard.c:
8142 * mem-limits.h:
8143 * print.c:
8144 * process.c:
8145 * sysdep.c:
8146 * syssignal.h:
8147 * systty.h:
8148 * syswait.h:
8149 * term.c:
8150 * unexec.c:
8151 * unexelf.c:
8152 * unexhp9k800.c:
8153 * m/hp800.h:
8154 * m/ibmrs6000.h:
8155 * m/mips.h:
8156 * m/vax.h:
8157 * s/darwin.h:
8158 * s/freebsd.h:
8159 * s/gnu.h:
8160 * s/ms-w32.h:
8161 * s/msdos.h:
8162 * s/netbsd.h:
8163 * s/template.h: Remove references to obsolete variables.
8164
8165 * Makefile.in: Add dependencies for all unexec files.
8166 (admindir): Remove unused variable.
8167 (UNEXEC_SRC): Remove references.
8168
81692008-06-25 Chong Yidong <cyd@stupidchicken.com>
8170
8171 * xfns.c (x_default_font_parameter): If Xft is available, first
8172 try Monospace-12 for the default font.
8173
81742008-06-25 Jason Rumney <jasonr@gnu.org>
8175
8176 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8177
81782008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8179
8180 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8181
8182 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8183
81842008-06-25 Juanma Barranquero <lekktu@gmail.com>
8185
8186 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8187 <scroll-conservatively>: Fix typo in docstring.
8188
8189 * xselect.c (Fx_send_client_event): Doc fix.
8190
81912008-06-25 Kenichi Handa <handa@m17n.org>
8192
8193 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8194
8195 * font.c (font_parse_fcname): Remove unused variables.
8196 (font_sort_entites): Delete the arg SPEC. Caller changed.
8197 Fix for the case of ! best_only.
8198 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8199
8200 * lisp.h (Fstring_to_unibyte): EXFUN it.
8201
8202 * character.h (str_to_unibyte): Extern it.
8203
8204 * character.c (str_to_unibyte): New function.
8205
8206 * fns.c (Fstring_to_unibyte): New function.
8207 (syms_of_fns): Defsubr it.
8208
82092008-06-24 Kenichi Handa <handa@m17n.org>
8210
8211 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8212 DPI too.
8213 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8214
82152008-06-24 Andreas Schwab <schwab@suse.de>
8216
8217 * Makefile.in (${lispsource}loaddefs.el): Rename from
8218 ../lisp/loaddefs.el.
8219 (bootstrap-clean): Do what distclean does but don't remove
8220 Makefile.
8221 (distclean): Depend on bootstrap-clean and remove Makefile.
8222
82232008-06-24 Chong Yidong <cyd@stupidchicken.com>
8224
8225 * buffer.h (struct buffer): New member word_wrap.
8226
8227 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8228 word-wrap.
8229 (init_buffer_once): Initialize them.
8230
8231 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8232 line_wrap enum possessing three possible values.
8233
8234 * termopts.h: Replace truncate_partial_width_windows with
8235 Vtruncate_partial_width_windows.
8236
8237 * dispnew.c (direct_output_for_insert): Avoid direct output when
8238 inserting a space with word wrap on.
8239
8240 * indent.c (compute_motion): Obey integer values of
8241 truncate-partial-width-windows.
8242
8243 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8244 replacing truncate_partial_width_windows.
8245 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8246 truncate only if the window width is below that integer.
8247 (start_display, resize_mini_window, produce_stretch_glyph)
8248 (display_string, move_it_in_display_line_to): Use line_wrap.
8249 (back_to_previous_visible_line_start, reseat_1): Reset
8250 string_from_display_prop_p.
8251 (display_line): Extend default face to end of line when wrapping.
8252
82532008-06-24 Kim F. Storm <storm@cua.dk>
8254
8255 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8256 to wrap continued lines at word boundaries.
8257
82582008-06-24 Jason Rumney <jasonr@gnu.org>
8259
8260 * font.c (Ffont_face_attributes): Multiply pixel size before point
8261 conversion to avoid multiplying rounding error.
8262
82632008-06-23 Jason Rumney <jasonr@gnu.org>
8264
8265 * w32term.c (x_draw_glyph_string_background)
8266 (x_draw_glyph_string): Remove old bdf font code.
8267
8268 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8269
82702008-06-22 Kenichi Handa <handa@m17n.org>
8271
8272 * font.c (font_find_for_lface): Try the adstyle specified in
8273 the property of LFACE_FONT of LFACE (if any).
8274
82752008-06-21 Seiji Zenitani <zenitani@mac.com>
8276 Ryo Yoshitake <ryo@shiftmode.net>
8277
8278 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8279
82802008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8281
8282 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8283 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8284 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8285 (witness-emacs): Remove.
8286 (lisp, shortlisp): Move loaddefs.el earlier.
8287 (mostlyclean): Forget about witness-emacs.
8288
82892008-06-22 Glenn Morris <rgm@gnu.org>
8290
8291 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8292 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8293
82942008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8295
8296 * Makefile.in (PRECOMP): Remove.
8297 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8298 (witness-emacs): Run `compile-first'.
8299 (.el.elc): Use the new compile-onefile target.
8300
83012008-06-21 Kenichi Handa <handa@m17n.org>
8302
8303 * xftfont.c (xftfont_open): Handle QCembolden only when
8304 FC_EMBOLDEN is defined.
8305
83062008-06-21 Andreas Schwab <schwab@suse.de>
8307
8308 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8309 (.el.elc): Likewise.
8310
83112008-06-21 Miles Bader <miles@gnu.org>
8312
8313 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8314 build dir, not the lisp source dir.
8315
83162008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8317
8318 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8319 (bootstrapclean): Remove.
8320 (.el.elc): New rule.
8321 (PRECOMP): New var.
8322 (../lisp/subdirs.el): Remove.
8323 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8324 (witness-emacs): New target.
8325 (mostlyclean): Remove witness-emacs as well.
8326 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8327 Add witness-emacs dependency.
8328
83292008-06-20 Chong Yidong <cyd@stupidchicken.com>
8330
8331 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8332 defined by the font.
8333
83342008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8335
8336 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8337 (bootstrap-clean): New target that keeps TAGS around.
8338 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8339 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8340
83412008-06-20 Jason Rumney <jasonr@gnu.org>
8342
8343 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8344 Remove obsolete font code.
8345
8346 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8347 to determine language support.
8348
83492008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8350
8351 * sysdep.c (cfsetspeed): New fun extracted from the code.
8352 (cfmakeraw): Move before first use.
8353
83542008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8355
8356 * sysdep.c (cfmakeraw): Provide fallback implementation.
8357 (serial_configure): Provide fallback implementation of cfsetspeed.
8358
83592008-06-20 Kenichi Handa <handa@m17n.org>
8360
8361 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8362 the pattern.
8363
8364 * fontset.c (fontset_from_font): Copy font_spec before changing
8365 the elements.
8366
8367 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8368
83692008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8370
8371 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8372 for explicit `font' parameters.
8373
8374 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8375
83762008-06-19 Kenichi Handa <handa@m17n.org>
8377
8378 * frame.c: Include <ctype.h>.
8379 (x_set_font_backend): Allow spacing characters in the X resource
8380 for FontBackend.
8381
83822008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8383
8384 * w32fns.c, xfns.c (Qfont_param): New var.
8385 (syms_of_w32fns): Initialize it.
8386 (x_default_font_parameter): Record explicit `font' into
8387 `font-parameter'.
8388
83892008-06-18 Kenichi Handa <handa@m17n.org>
8390
8391 * font.c (font_parse_xlfd): Fix previous change.
8392 (font_parse_fcname): Don't use :fc-unknown-spec.
8393 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8394 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8395 (font_add_log): Prepend the driver name to the resulting fonts.
8396
8397 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8398 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8399 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8400
8401 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8402 (QCembolden): New variables.
8403 (syms_of_xftfont): DEFSYM them.
8404 (xftfont_open): Call XftFontMatch. Don't trust the result of
8405 XftTextExtents8 if the pixel_size is less than 5.
8406
84072008-06-18 Andreas Schwab <schwab@suse.de>
8408
8409 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8410 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8411
84122008-06-18 Jason Rumney <jasonr@gnu.org>
8413
8414 * w32font.c (w32font_list, w32font_match): Add logging.
8415
8416 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8417
84182008-06-17 Chong Yidong <cyd@stupidchicken.com>
8419
8420 * font.c (font_parse_fcname): Store divider characters for
8421 unknown-spec list. For known key symbols, intern using correct
8422 symbol name.
8423
84242008-06-17 Kenichi Handa <handa@m17n.org>
8425
8426 * xfaces.c (realize_default_face): If the frame is not on window
8427 system, set the fontset of face to nil.
8428
84292008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8430
8431 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8432
84332008-06-16 Juanma Barranquero <lekktu@gmail.com>
8434
8435 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8436 (build_font_name_from_vector): Delete externs.
8437
8438 * xfaces.c (struct font_name): Don't declare.
8439
84402008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8441
8442 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8443
84442008-06-16 Chong Yidong <cyd@stupidchicken.com>
8445
8446 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8447
84482008-06-16 Juanma Barranquero <lekktu@gmail.com>
8449
8450 * font.c (Ffont_spec): Fix usage in docstring.
8451 (Ffont_face_attributes): Doc fix.
8452
84532008-06-16 Andreas Schwab <schwab@suse.de>
8454
8455 * font.c (Ffont_face_attributes): Fix definition.
8456
84572008-06-16 Jason Rumney <jasonr@gnu.org>
8458
8459 * font.h (font_style_symbolic_from_value): Remove.
8460
8461 * font.c (font_style_symbolic_from_value): Remove.
8462 (font_style_symbolic): Revert to pre 2008-06-13 version.
8463
8464 * w32font.c (w32_to_fc_weight): New function.
8465 (w32font_full_name, logfont_to_fcname): Use it.
8466
84672008-06-16 Kenichi Handa <handa@m17n.org>
8468
8469 * font.c (font_check_object): Delete it.
8470 (font_clear_cache): Check if a font-object is alive.
8471 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8472 font-object to nil.
8473 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8474 (font_at): Don't call font_check_object.
8475 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8476
84772008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8478
8479 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8480
84812008-06-16 Chong Yidong <cyd@stupidchicken.com>
8482
8483 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8484
84852008-06-15 Chong Yidong <cyd@stupidchicken.com>
8486
8487 * font.c (font_parse_fcname): Only one decimal point.
8488 (font_unparse_fcname): Handle data in family and foundry indices
8489 as symbols, not strings.
8490 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8491
8492 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8493
8494 * font.h (font_unparse_gtkname): Add prototype.
8495
84962008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8497
8498 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8499
85002008-06-15 Andreas Schwab <schwab@suse.de>
8501
8502 * font.c (font_update_drivers): Fix crash when no drivers match.
8503
85042008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8505
8506 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8507 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8508
85092008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8510
8511 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8512
85132008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8514
8515 * process.c (Fserial_process_configure, Fprocess_send_eof):
8516 Use EQ to compare Lisp_Objects.
8517
85182008-06-13 Jason Rumney <jasonr@gnu.org>
8519
8520 * w32fns.c (Fw32_select_font): Remove old font API function.
8521
8522 * w32font.c (logfont_to_fcname): New function.
8523 (Fx_select_font): New font dialog function compatible with
8524 GTK/fontconfig version.
8525
8526 * font.c (font_style_symbolic_from_value): New function.
8527 (font_style_symbolic): Use it.
8528
8529 * font.h (font_style_symbolic_from_value): Declare new function.
8530
85312008-06-13 Juanma Barranquero <lekktu@gmail.com>
8532
8533 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8534 <font-width-table>: Fix typos in docstrings.
8535
85362008-06-13 Daniel Engeler <engeler@gmail.com>
8537
8538 These changes add serial port access.
8539 * process.c: Add HAVE_SERIAL.
8540 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8541 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8542 (list_processes_1, select_wrapper, Fstop_process)
8543 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8544 (status_notify): Modify to handle serial processes.
8545 [HAVE_SERIAL] (Fserial_process_configure)
8546 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8547 New functions.
8548 * process.h (struct Lisp_Process): Add `type'.
8549 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8550 New functions.
8551 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8552 serial ports.
b71ac3dd 8553 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8554 * w32.h: Add FILE_SERIAL.
8555 (struct _child_process): Add ovl_read, ovl_write.
8556
85572008-06-13 Kenichi Handa <handa@m17n.org>
8558
8559 * dispextern.h (enum lface_attribute_index): New member
8560 LFACE_FOUNDRY_INDEX.
8561
8562 * font.c (font_score): Delete arg alternate_families. Check only
8563 weight, slant, width, and size. Ignore the difference of alias
8564 style symbols.
8565 (font_sort_entites): Adjust for the above change. Reflect the
8566 order of font-driver to scores.
8567 (font_list_entities): Don't check alternate_familes here.
8568 (font_clear_prop): Handle foundry.
8569 (font_update_lface): Don't parse "foundry-family" form here.
8570 Handle FONT_FOUNDRY_INDEX.
8571 (font_find_for_lface): Likewise. Handle alternate families here.
8572 If registry is nil, try iso8859-1 and ascii-0.
8573 (font_open_for_lface): Pay attention to size in ENTITY.
8574 (font_open_by_name): Simplify by calling font_load_for_lface.
8575 (free_font_driver_list): Delete it.
8576 (font_update_drivers): Preserve the order of backends.
8577 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8578 of font_score and font_sort_entites.
8579 (font_update_sort_order): Likewise.
8580
8581 * xfaces.c (LFACE_FOUNDRY): New macro.
8582 (check_lface_attrs): Check foundry.
8583 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8584 (merge_face_vectors): Check foundry.
8585 (merge_face_ref): Likewise.
8586 (Finternal_set_lisp_face_attribute): Likewise.
8587 (x_update_menu_appearance): Likewise.
8588 (Finternal_get_lisp_face_attribute): Likewise.
8589 (lface_hash): Likewise.
8590 (lface_same_font_attributes_p): Likewise.
8591 (x_supports_face_attributes_p): Likewise.
8592 (tty_supports_face_attributes_p): Likewise.
8593 (Finternal_set_alternative_font_family_alist): Intern strings.
8594 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8595 (realize_default_face): Set LFACE_FOUNDRY (lface).
8596
8597 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8598 font-driver at first.
8599
8600 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8601
86022008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8603
8604 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8605
86062008-06-12 Jim Meyering <meyering@redhat.com>
8607
8608 Make unexec_free handle NULL the same way free does.
8609 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8610
86112008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8612
8613 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8614 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8615 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8616 (WEAK_ALIAS): Simplify.
8617 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8618 when searching a unibyte buffer.
8619
86202008-06-12 Chong Yidong <cyd@stupidchicken.com>
8621
8622 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8623
86242008-06-12 Juanma Barranquero <lekktu@gmail.com>
8625
8626 * w32font.c: Include ctype.h.
8627
86282008-06-11 Jason Rumney <jasonr@gnu.org>
8629
8630 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8631 misreported as space.
8632 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8633 as aliases for registry iso10646-1.
8634
86352008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8636
8637 * buffer.c (clone_per_buffer_values): Skip `name'.
8638
86392008-06-11 Chong Yidong <cyd@stupidchicken.com>
8640
8641 * font.c (font_parse_fcname): Fix last change; accept decimal
8642 points in font size.
8643
86442008-06-10 Jason Rumney <jasonr@gnu.org>
8645
8646 * w32uniscribe.c (add_opentype_font_name_to_list):
8647 Skip non unicode fonts.
8648
86492008-06-10 Chong Yidong <cyd@stupidchicken.com>
8650
8651 * xfns.c (Fx_font_dialog): New function.
8652
8653 * gtkutil.c (xg_dialog_response_cb): Rename from
8654 xg_file_response_callback.
8655 (pop_down_dialog): Rename from pop_down_file_dialog.
8656 (xg_get_file_name): Callers changed.
8657 (xg_get_font_name): New function.
8658
8659 * gtkutil.h (xg_get_font_name): Insert prototype.
8660
86612008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8662
8663 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8664 x_underline_minimum_display_offset.
8665 (syms_of_xdisp): Declare it here rather than in xterm.c.
8666 * dispextern.h (underline_minimum_offset): Declare it.
8667 * w32term.c (x_draw_glyph_string): Use it.
8668 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8669 (syms_of_xterm): Don't declare it any more.
8670 (x_draw_glyph_string): Adjust to the new name.
8671
86722008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8673
8674 * xterm.c (x_underline_minimum_display_offset): New var.
8675 (x_draw_glyph_string): Use it.
8676 (syms_of_xterm): Declare it.
8677
86782008-06-10 Chong Yidong <cyd@stupidchicken.com>
8679
8680 * font.c (font_parse_fcname): Accept GTK-style font names too.
8681
86822008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8683
8684 * dired.c (file_name_completion): Don't return t if the match is exact
8685 but with different capitalization.
8686 * minibuf.c (Ftry_completion): Simplify.
8687
8688 * window.c (Vwindow_point_insertion_type): New var.
8689 (set_window_buffer): Use it.
8690 (syms_of_window): Init and export it to Lisp.
8691
86922008-06-10 Kenichi Handa <handa@m17n.org>
8693
8694 * font.h (font_intern_prop): Prototype adjusted.
8695
8696 * font.c (font_intern_prop): New arg force_symbol.
8697 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8698 Adjust for the change of font_intern_prop.
8699
8700 * ftfont.c (ftfont_pattern_entity):
8701 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8702 (w32_registry):
8703 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8704 the change of font_intern_prop.
8705
87062008-06-09 Juanma Barranquero <lekktu@gmail.com>
8707
8708 * w32menu.c (digest_single_submenu): Declare extern.
8709
87102008-06-09 Jason Rumney <jasonr@gnu.org>
8711
8712 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8713
8714 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8715 (parse_single_submenu): Remove.
8716 (digest_single_submenu): Remove.
8717 (syms_of_w32menu): Don't initialise variables that have moved
8718 to menu.c.
8719 (set_frame_menubar): Sync with version in xmenu.c.
8720 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8721
8722 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8723 Make static again.
8724
87252008-06-09 Jason Rumney <jasonr@gnu.org>
8726
8727 Changes to w32 files related to the move of common menu code
8728 to menu.c on 2008-06-08 by Chong Yidong.
8729
8730 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8731 defs to w32gui.h.
8732 (single_keymap_panes, push_menu_item, push_menu_pane):
8733 Make globally visible.
8734
8735 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8736 (local_free, malloc_widget_value, free_widget_value)
8737 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8738 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8739 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8740 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8741 (menu_items, menu_items_allocated, menu_items_used)
8742 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8743 (init_menu_items, finish_menu_items, discard_menu_items)
8744 (grow_menu_items, push_submenu_start, push_submenu_end)
8745 (push_left_right_boundary, push_menu_pane, push_menu_item)
8746 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8747 (free_menubar_widget_tree_value, parse_single_submenu)
8748 (update_submenu_strings): Remove functions.
8749 (xmalloc_widget_value): Remove and declare extern.
8750
8751 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8752 (OBJ1): Build it.
8753
8754 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8755 (local_heap, local_alloc, local_free, malloc_widget_value)
8756 (free_widget_value): Define here.
8757
87582008-06-09 Kenichi Handa <handa@m17n.org>
8759
8760 * font.h (Qascii_0): Extern it.
8761
8762 * font.c (Qascii_0): New variable.
8763 (syms_of_font): DEFSYM it.
8764 (font_open_by_name): If the registry "iso8859-1" fails, try also
8765 "ascii-0".
8766
8767 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8768
87692008-06-08 Kenichi Handa <handa@m17n.org>
8770
8771 * .gdbinit (xfont): New command.
8772
87732008-06-08 Andreas Schwab <schwab@suse.de>
8774
8775 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8776 * Makefile.in (menu.o): Update dependencies.
8777
8778 * Makefile.in (obj): Always add menu.o.
8779 * emacs.c (main): Always call syms_of_menu.
8780 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8781
87822008-06-08 Chong Yidong <cyd@stupidchicken.com>
8783
8784 * Makefile.in: Compile menu.c.
8785
8786 * lisp.h: Declare syms_of_menu.
8787
8788 * emacs.c (main): Call syms_of_menu.
8789
8790 * keyboard.h: Relocate platform-independent menu definitions from
8791 xmenu.c.
8792
8793 * menu.c: New file. Relocate platform-independent menu
8794 definitions from xmenu.c. Suggested by Adrian Robert.
8795
8796 * xmenu.c: Remove platform-independent menu definitions.
8797 (menu_items menu_items_inuse, menu_items_allocated)
8798 (menu_items_used, menu_items_n_panes)
8799 (menu_items_submenu_depth): Move to keyboard.h.
8800 (init_menu_items, finish_menu_items, unuse_menu_items)
8801 (discard_menu_items, restore_menu_items, save_menu_items)
8802 (grow_menu_items, push_submenu_start, push_submenu_end)
8803 (push_left_right_boundary, push_menu_pane, push_menu_item)
8804 (keymap_panes, single_keymap_panes, single_menu_item)
8805 (list_of_panes, list_of_items, find_and_call_menu_selection)
8806 (xmalloc_widget_value, free_menubar_widget_value_tree)
8807 (parse_single_submenu, digest_single_submenu)
8808 (update_submenu_strings): Move to menu.c.
8809
88102008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8811
8812 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8813
88142008-06-06 Miles Bader <miles@gnu.org>
8815
8816 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8817 face, not frame default.
8818
88192008-06-05 Martin Rudalics <rudalics@gmx.at>
8820
8821 * window.c (pop_up_windows, pop_up_frames)
8822 (display_buffer_reuse_frames, Vpop_up_frame_function)
8823 (Vdisplay_buffer_function, Veven_window_heights)
8824 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8825 (Vspecial_display_function, Vsame_window_buffer_names)
8826 (Vsame_window_regexps, split_height_threshold)
8827 (Vsplit_window_preferred_function): Move those vars to window.el.
8828 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8829 (Fdisplay_buffer): Move those functions to window.el.
8830 (syms_of_window): Remove corresponding declarations.
8831 (display_buffer): New function.
8832 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8833 * dispnew.c (Flast_nonminibuf_frame): New function.
8834 * buffer.c (Fpop_to_buffer): Move to window.el.
8835
88362008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8837
8838 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8839
88402008-06-05 Kenichi Handa <handa@m17n.org>
8841
8842 * coding.c (detect_coding): Fix previous change.
8843 (detect_coding_system): Likewise.
8844
88452008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8846
8847 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8848
8849 * keymap.c (Vminibuffer_local_filename_must_match_map):
8850 Rename from Vminibuffer_local_must_match_filename_map.
8851 (syms_of_keymap):
8852 * minibuf.c (Fcompleting_read): Adjust accordingly.
8853 * commands.h: Rename declaration as well.
8854
88552008-06-05 Kenichi Handa <handa@m17n.org>
8856
8857 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8858 family name.
8859 (Ffont_put): Likewise.
8860
8861 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8862 current font-spec.
8863
8864 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8865 is unspecified.
8866
8867 * xfaces.c (realize_x_face): If the font-related face attributes
8868 are the same as those of default face, realize a new fontset from
8869 default->fontset.
8870 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8871
88722008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8873
8874 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8875 (move_it_in_display_line): New wrapper.
8876
8877 * window.c (window_scroll_pixel_based_preserve_x)
8878 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8879 (window_scroll_pixel_based, window_scroll_line_based):
8880 Use them to preserve column positions.
8881 (syms_of_window): Initialize them.
8882
8883 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8884 (HPOS . VPOS) pair.
8885
8886 * dispextern.h (move_it_in_display_line): Declare.
8887
88882008-06-05 Juanma Barranquero <lekktu@gmail.com>
8889
8890 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8891 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8892 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8893
88942008-06-04 Juanma Barranquero <lekktu@gmail.com>
8895
8896 * window.c (Fset_window_parameter): Doc fix.
8897 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8898
88992008-06-04 Joakim Verona <joakim@verona.se>
8900
8901 * window.h (struct window): Add new member window_parameters.
8902
8903 * window.c (Fwindow_parameters, Fwindow_parameter)
8904 (Fset_window_parameter): New defuns.
8905 (syms_of_window): Defsubr the new defuns.
8906 (make_window): Initialize window_parameters to nil.
8907
89082008-06-04 John Paul Wallington <jpw@pobox.com>
8909
8910 * eval.c (Fdefmacro): Doc fix.
8911
89122008-06-04 Kenichi Handa <handa@m17n.org>
8913
8914 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8915 Be sure to call setup_coding_system when we find a proper coding system.
8916 (detect_coding_system): Fix handling of coding->head_ascii.
8917
89182008-06-03 Andreas Schwab <schwab@suse.de>
8919
8920 * font.c (font_prop_validate_spacing): Fix last change.
8921
89222008-06-03 Kenichi Handa <handa@m17n.org>
8923
8924 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8925 (font_parse_fcname): Fix handling of unknown key.
8926
8927 * xfont.c (xfont_list): Try an alias.
8928
8929 * charset.c (char_charset): Return NULL if the arg charset_list is
8930 specified and C doesn't belong to any of them.
8931
89322008-06-02 Chip Coldwell <coldwell@redhat.com>
8933
8934 * font.c (font_pixel_size): Don't take cdr of an integer.
8935
89362008-06-02 Jim Meyering <meyering@redhat.com>
8937
8938 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8939 * alloc.c (xfree): Return right away for a NULL arg.
8940 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8941 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8942 * mac.c (create_apple_event_from_event_ref): Likewise.
8943 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8944 Likewise.
8945 * doprnt.c (doprnt1): Likewise.
8946 * frame.c (frame): Likewise.
8947 * keyboard.c (wipe_kboard): Likewise.
8948 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8949 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8950 * term.c (tty_default_color_capabilities, maybe_fatal)
8951 (delete_tty): Likewise.
8952 * w16select.c (string): Likewise.
8953 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8954 * w32bdf.c (w32_free_bdf_font): Likewise.
8955 * w32fns.c (w32_unload_font): Likewise.
8956 * w32font.c (w32font_close): Likewise.
8957 * window.c (size_window): Likewise.
8958 * xselect.c (receive_incremental_selection): Likewise.
8959 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8960 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8961 * w32.c (stat): Likewise.
8962
8963 Remove useless if-before-free tests.
8964 * editfns.c (Fset_time_zone_rule): Likewise.
8965 * lread.c (nosuffix): Likewise.
8966 * ralloc.c (get_bloc): Likewise.
8967 * regex.c (reg_free): Likewise.
8968 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8969 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8970 * xsmfns.c (smc_save_yourself_CB): Likewise.
8971
89722008-06-02 Kenichi Handa <handa@m17n.org>
8973
8974 * font.c (font_find_for_lface): Handle float font size.
8975 (font_open_for_lface): Likewise.
8976
8977 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8978 comparing the properties.
8979
89802008-06-01 Jason Rumney <jasonr@gnu.org>
8981
8982 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8983 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8984 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8985 Don't add empty script list.
8986 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8987
89882008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8989
8990 * Makefile.in (dot, dotdot): Remove, update users.
8991 ".." has been used elsewhere in the file for a long time.
8992 (LIBXT_STATIC): Remove conditional based on unused variable.
8993
89942008-06-01 Miles Bader <miles@gnu.org>
8995
8996 * xfaces.c (Vface_remapping_alist): New variable.
8997 (syms_of_xfaces): Initialize it.
8998 (enum named_merge_point_kind): New type.
8999 (struct named_merge_point): Add `named_merge_point_kind' field.
9000 (push_named_merge_point): Make cycle detection respect different
9001 named-merge-point kinds.
9002 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9003 Remove face-name alias resolution.
9004 (lface_from_face_name): New definition using
9005 `lface_from_face_name_no_resolve'.
9006 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9007 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9008 (get_lface_attributes): New definition that layers face-remapping on
9009 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9010 (lookup_basic_face): New function.
9011 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9012 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9013 `get_lface_attributes'.
9014 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9015 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9016 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9017
9018 * xdisp.c (init_iterator): Pass base_face_id through
9019 `lookup_basic_face' when we actually use it as a face-id.
9020 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9021 DEFAULT_FACE_ID.
9022
9023 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9024 lookup the initial face-id.
9025
9026 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9027
90282008-06-01 Juanma Barranquero <lekktu@gmail.com>
9029
9030 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9031 (Fremove_text_properties): Fix typos in docstrings.
9032
90332008-05-31 Kenichi Handa <handa@m17n.org>
9034
9035 * font.c (font_list_entities): Fix the car part of data to be
9036 stored in the cache.
9037
9038 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9039
90402008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9041
9042 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9043 Add a `test' argument so another predicate than `equal' can be used.
9044 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9045 (map_char_table): Remove unused vars `c' and `i'.
9046 * lisp.h (Foptimize_char_table): Adjust declaration.
9047 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9048
90492008-05-30 Kenichi Handa <handa@m17n.org>
9050
9051 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9052 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9053 defined.
9054
90552008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9056
9057 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9058 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9059 frame-local settings for the same variable.
9060
90612008-05-30 Kenichi Handa <handa@m17n.org>
9062
9063 * fontset.c (Ffont_info): Move to font.c.
9064 (syms_of_fontset): Delete defsubr of Sfont_info.
9065
9066 * font.c (font_style_to_value, font_score): Delete casting of the
9067 args to xstcasecmp.
9068 (register_font_driver): Increment num_font_drivers only when
9069 registering the driver globally.
9070 (Ffont_info): Move from fontset.c. Handle a font object too.
9071 (syms_of_font): Defsubr Sfont_info.
9072
90732008-05-29 Kenichi Handa <handa@m17n.org>
9074
9075 * coding.h (enum define_coding_utf8_arg_index): New enum.
9076 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9077 coding_attr_utf_bom.
9078 (enum utf_bom_type): Rename from utf_16_bom_type.
9079 (struct utf_16_spec): Adjust for the above change.
9080 (struct coding_system): Add utf_8_bom in `spec' union.
9081
9082 * coding.c (CODING_UTF_8_BOM): New macro.
9083 (enum coding_category): Delete coding_category_utf_8, add
9084 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9085 coding_category_utf_8_sig.
9086 (CATEGORY_MASK_UTF_8): Delete it.
9087 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9088 (CATEGORY_MASK_UTF_8_SIG): New macros.
9089 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9090 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9091 CATEGORY_MASK_UTF_8_SIG.
9092 (CATEGORY_MASK_UTF_8): New macro.
9093 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9094 (detect_coding_utf_8): Check BOM.
9095 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9096 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9097 (encode_coding_utf_16): Likewise.
9098 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9099 (detect_coding, detect_coding_system): Handle utf-8-auto.
9100 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9101 (syms_of_coding): Fix setting up of Vcoding_category_table.
9102
91032008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9104
9105 * process.c (Faccept_process_output): If `millisec' is non-nil,
9106 `seconds' default to 0.
9107 (wait_reading_process_output): Also return non-nil if we read output
9108 from a non-running process.
9109
91102008-05-29 Jason Rumney <jasonr@gnu.org>
9111
9112 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9113 `raster' specified.
9114 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9115 in the uniscribe backend, but disallow any font that has no
9116 unicode subrange support.
9117
91182008-05-29 Juanma Barranquero <lekktu@gmail.com>
9119
9120 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9121 Fix typos in docstrings.
9122
91232008-05-29 Kenichi Handa <handa@m17n.org>
9124
9125 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9126 (Fx_family_fonts): Set frame correctly.
9127
91282008-05-28 Jason Rumney <jasonr@gnu.org>
9129
9130 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9131
91322008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9133
9134 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9135 calling build_annotations.
9136
91372008-05-28 Juanma Barranquero <lekktu@gmail.com>
9138
9139 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9140 (Fencode_coding_string):
9141 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9142 <latin-extra-code-table>: Fix typos in docstrings.
9143 (syms_of_coding) <coding-system-alist>: Doc fix.
9144 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9145
91462008-05-28 Kenichi Handa <handa@m17n.org>
9147
9148 * fontset.c (Ffont_info): Don't call font_close_object.
9149
9150 * font.c (font_parse_family_registry): Use Ffont_put to validate
9151 foundry and family.
9152 (font_delete_unmatched): Don't check spacing.
9153 (font_list_entities): Add spacing to the spec to list fonts.
9154
9155 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9156 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9157
9158 * coding.c (encode_coding_raw_text): Fix previous change.
9159 (encode_coding_object): When the dst_object is a buffer and is
9160 different from src_object, move gap to PT.
9161
91622008-05-27 Chong Yidong <cyd@stupidchicken.com>
9163
9164 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9165
91662008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9167
9168 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9169 all branches. Compute it differently.
9170
9171 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9172
91732008-05-27 Juanma Barranquero <lekktu@gmail.com>
9174
9175 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9176 into "else if () ... else ...".
9177
91782008-05-27 Jason Rumney <jasonr@gnu.org>
9179
9180 * w32font.c (w32font_open_internal): Determine if glyph indices
9181 are likely to work here.
9182
91832008-05-27 Chong Yidong <cyd@stupidchicken.com>
9184
9185 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9186 draw overlap glyphs with appropriate highlighting.
9187
91882008-05-27 Kenichi Handa <handa@m17n.org>
9189
9190 * xfont.c (xfont_open): Fix calculation of font->average_width.
9191
91922008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9193
9194 * casefiddle.c (casify_object): Try to guess better whether the
9195 argument is a byte or a char.
9196
91972008-05-26 Andreas Schwab <schwab@suse.de>
9198
9199 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9200 Always send multiples of format size.
9201
9202 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9203
92042008-05-26 Jason Rumney <jasonr@gnu.org>
9205
9206 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9207 (compute_metrics): Don't set failure if we just cleared the cache.
9208 (w32_weight_table): Remove unused variable.
9209 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9210 backwards compatibility.
9211
92122008-05-25 Kenichi Handa <handa@m17n.org>
9213
9214 * w32term.c (x_draw_glyph_string):
9215 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9216
9217 * xfaces.c: Delete unused function prototypes.
9218 (xstrlwr, font_frame): Delete them.
9219 (clear_face_cache): Delete unused variable.
9220
9221 * xftfont.c (xftfont_open): Delete unused variable.
9222 If underline_thickness is not 1, adjust underline_position.
9223
9224 * ftxfont.c (ftxfont_open): Delete unused variable.
9225
9226 * fontset.c (face_for_char): Optimize for the case of no charset
9227 property.
9228
9229 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9230 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9231 (otf_open, font_otf_capability, generate_otf_features)
9232 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9233 Comment out by surrounding "#if 0" and "#endif" for the moment.
9234 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9235 (syms_of_font): Codes for accessing above commented out.
9236
92372008-05-24 Eli Zaretskii <eliz@gnu.org>
9238
9239 * w32proc.c: Include dispextern.h.
9240
9241 * w32.c: Include dispextern.h.
9242
92432008-05-23 Juanma Barranquero <lekktu@gmail.com>
9244
9245 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9246 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9247 Fix typos in docstrings.
9248
92492008-05-23 Jason Rumney <jasonr@gnu.org>
9250
9251 * xsmfns.c: Remove includes that are already included by config.h.
9252
92532008-05-23 Kenichi Handa <handa@m17n.org>
9254
9255 * charset.c (Qemacs, charset_emacs): New variables.
9256 (char_charset): Fix for non-Unicode characters.
9257 (syms_of_charset): Define charset_emacs.
9258
9259 * w32term.c (x_draw_glyph_string): Be sure to update
9260 s->underline_thickness and s->underline_position. Be sure to draw
9261 underline within the current line area.
9262
9263 * xterm.c (x_draw_glyph_string): Be sure to update
9264 s->underline_thickness and s->underline_position. Be sure to draw
9265 underline within the current line area.
9266
9267 * fontset.c: Delete unused variables and add casting for char *
9268 throughout the file.
9269 (fontset_font): Try the fallback fonts of the current fontset
9270 before consulting the default fontset.
9271
9272 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9273
9274 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9275
92762008-05-22 Jason Rumney <jasonr@gnu.org>
9277
9278 * font.c: Don't include strings.h.
9279
9280 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9281
9282 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9283 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9284 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9285 to call xstrcasecmp.
9286
9287 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9288
9289 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9290
9291 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9292
9293 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9294
92952008-05-22 Kenichi Handa <handa@m17n.org>
9296
9297 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9298
9299 * font.c (font_prop_validate_style): Adjust for the format
9300 change of font_style_table.
9301
9302 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9303 two args.
9304
9305 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9306 two args.
9307
93082008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9309
9310 * minibuf.c (keys_of_minibuf): Delete.
9311 * lisp.h (keys_of_minibuf): Delete.
9312 * emacs.c (main): Don't call keys_of_minibuf.
9313
93142008-05-22 Kenichi Handa <handa@m17n.org>
9315
9316 * ftfont.c (ftfont_resolve_generic_family): Rename from
9317 ftfont_list_generic_family. Return a single family for each
9318 generic family.
9319 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9320 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9321 Call font_add_log.
9322 (ftfont_match): Call font_add_log.
9323
9324 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9325 (FONT_DEBUG): Define it.
9326 (font_add_log): Extern it.
9327 (font_assert): Rename from xassert.
9328
9329 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9330 (xfont_list_family): Call font_add_log.
9331 (xfont_match): Likewise.
9332 (memq_no_quit): Delete.
9333
9334 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9335 call of Ffont_xlfd_name.
9336
9337 * xfaces.c (struct table_entry, slant_table, weight_table)
9338 (swidth_table): Move to font.c.
9339
9340 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9341 xassert are changed to font_assert. Delete many unused variables.
9342 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9343 New variables.
9344 (struct table_entry): Move from xfaces.c and modified.
9345 (weight_table, slant_table, width_table): Move from xfaces.c and
9346 contents adjusted for the change of struct table_entry.
9347 (font_style_to_value, font_style_symbolic): Adjust for the
9348 format change of font_style_table.
9349 (font_parse_family_registry): Don't overwrite existing foundry and
9350 family of font_spec.
9351 (font_score): Fix calculation of diff for sizes.
9352 (font_sort_entites): Call font_add_log.
9353 (font_delete_unmatched): Return a newly created list.
9354 (font_list_entities): Fix previous change. Call font_add_log.
9355 (font_matching_entity, font_open_entity, font_close_entity):
9356 Call font_add_log.
9357 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9358 (Finternal_set_font_style_table): Delete.
9359 (BUILD_STYLE_TABLE): New macro.
9360 (build_style_table): New function.
9361 (Vfont_log, font_log_env_checked): New variables.
9362 (font_add_log): New function.
9363 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9364 Declare Lisp variables "font-weight-table", "font-slant-table",
9365 "font-width-table", and "font-log". Initialize font_style_table.
9366
93672008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9368
9369 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9370
93712008-05-21 Seiji Zenitani <zenitani@mac.com>
9372 Ryo Yoshitake <ryo@shiftmode.net>
9373
9374 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9375 (Vframe_alpha_lower_limit): New variable.
9376 (x_set_alpha): New function.
9377
9378 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9379
9380 * xfns.c (x-create-frame, Qalpha):
9381 Initialize the frame parameter `alpha'.
9382 * xterm.c (OPAQUE, OPACITY): New.
9383 (x_set_frame_alpha): New function.
9384 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9385
9386 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9387 * w32fns.c (w32_frame_parm_handlers): Likewise.
9388
93892008-05-20 Jason Rumney <jasonr@gnu.org>
9390
9391 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9392 truetype fonts to opentype list.
9393
93942008-05-20 Juanma Barranquero <lekktu@gmail.com>
9395
9396 * fontset.c (Ffontset_info): Doc fix.
9397 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9398 <ignore-relative-composition>: Fix typos in docstrings.
9399
9400 * font.c (syms-of-font) <font-encoding-alist>:
9401 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9402 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9403 (Ffont_otf_alternates): Doc fixes.
9404
94052008-05-20 Kenichi Handa <handa@m17n.org>
9406
9407 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9408 font.h through out the file.
9409 (FONT_DRIVERS): Rename from FONTOBJ.
9410 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9411 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9412
9413 * emacs.c (main): Call syms_of_font unconditionally.
9414
9415 * font.h (find_font_encoding): Extern it.
9416
9417 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9418 fontset.c.
9419 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9420 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9421 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9422 only when HAVE_WINDOW_SYSTEM is defined.
9423 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9424 when HAVE_WINDOW_SYSTEM is defined.
9425
9426 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9427 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9428
9429 * xfaces.c: Include font.h unconditionally.
9430 (merge_face_ref, merge_face_vectors)
9431 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9432
94332008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9434
9435 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9436 indirect_variable.
9437 * eval.c (lisp_indirect_variable): New fun.
9438 (Fuser_variable_p): Use it.
9439
94402008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9441
9442 * lisp.h (indirect_variable):
9443 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9444 Use Lisp_Symbol pointers rather than Lisp_Object.
9445 Adjust callers.
9446 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9447 To this end, change calling-convention.
9448
9449 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9450 if some non-hidden buffers are selected by string&pred.
9451
94522008-05-19 Chong Yidong <cyd@stupidchicken.com>
9453
9454 * process.c (wait_reading_process_output): Always check status
9455 when in batch mode.
9456
94572008-05-19 Kenichi Handa <handa@m17n.org>
9458
9459 * font.c (font_list_entities): Fix handling of cache.
9460 (font_matching_entity): Likewise.
9461
9462 * ftfont.c (cs_iso8859_1): Delete.
9463 (ft_face_cache): New variable.
9464 (struct ftfont_info): New member fc_charset_idx.
9465 (ftfont_build_basic_charsets): Delete.
9466 (fc_charset_table): New variable.
9467 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9468 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9469 Callers changed.
9470 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9471 (ftfont_spec_pattern): New argument fc_charset_idx.
9472 Check registry more rigidly. Change callers.
9473 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9474 change of :font-entity property of the font.
9475
9476 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9477 property of the font.
9478
94792008-05-18 Juanma Barranquero <lekktu@gmail.com>
9480
9481 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9482 (Funencodable_char_position, Fcheck_coding_systems_region)
9483 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9484 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9485 (Ffind_operation_coding_system, Fset_coding_system_priority)
9486 (Fcoding_system_eol_type): Doc fixes.
9487
94882008-05-17 Glenn Morris <rgm@gnu.org>
9489
9490 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9491
94922008-05-16 Eli Zaretskii <eliz@gnu.org>
9493
9494 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9495 and st_gid.
9496
9497 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9498 HAVE_WINDOW_SYSTEM is not defined.
9499
9500 * xfaces.c (merge_face_ref, merge_face_vectors)
9501 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9502 HAVE_WINDOW_SYSTEM is defined.
9503 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9504
95052008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9506
9507 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9508
95092008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9510
9511 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9512
95132008-05-15 Kenichi Handa <handa@m17n.org>
9514
9515 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9516 preference.
9517
95182008-05-15 Glenn Morris <rgm@gnu.org>
9519
9520 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9521
95222008-05-15 Chong Yidong <cyd@stupidchicken.com>
9523
9524 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9525 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9526
9527 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9528
95292008-05-15 Kenichi Handa <handa@m17n.org>
9530
9531 * ftfont.c (ftfont_list): Downcase family name to check generic
9532 families.
9533
9534 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9535 font-spec for QCfont value.
9536
9537 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9538 buffer. Check the return value of it.
9539
95402008-05-14 Jason Rumney <jasonr@gnu.org>
9541
9542 * w32term.c (w32_get_glyph_overhangs): Remove.
9543 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9544
95452008-05-14 Kenichi Handa <handa@m17n.org>
9546
9547 * font.c (font_prop_validate): Make nil a valid value.
9548 (font_clear_cache): Check if the cached vector of entities is nil
9549 or not.
9550
95512008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9552
9553 * emacs.c (main_thread): Conditionalize on
9554 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9555 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9556
9557 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9558 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9559 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9560
95612008-05-14 Kenichi Handa <handa@m17n.org>
9562
9563 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9564 has no corresponding coding system.
9565
95662008-05-14 Jason Rumney <jasonr@gnu.org>
9567
9568 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9569
9570 * w32font.h (w32font_open_internal): Update declaration.
9571
9572 * w32font.c (w32font_open_internal): Change last argument from
9573 w32font_info struct to font object. Fill in font object from
9574 font_entity. Get Outline metrics if possible. Use them to
9575 calculate underline position and thickness. Use xlfd name as name
9576 property. Don't set codepage.
9577 (w32font_open): Pass font_object to w32font_open_internal. Don't
9578 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9579 (w32font_draw): Use s->font.
9580 (clear_cached_metrics): Don't clear non-existent blocks.
9581
9582 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9583 font was not found.
9584 (x_draw_glyph_string): Use underline position and thickness from font.
9585
9586 * w32uniscribe.c (uniscribe_open): Pass font_object to
9587 w32font_open_internal.
9588
95892008-05-14 Kenichi Handa <handa@m17n.org>
9590
9591 These changes are to delete all legacy font-handling codes, and
9592 make Emacs use only font-backends.
9593
9594 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9595 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9596
9597 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9598
9599 * charset.h (Vcharset_non_preferred_head)
9600 (Vcurrent_iso639_language): Extern them.
9601
9602 * charset.c (Vcharset_non_preferred_head): New variable.
9603 (Vcurrent_iso639_language): New variable.
9604 (syms_of_charset): Declare it as a Lisp variable.
9605 (char_charset): Don't check non preferred charsets. As a last
9606 resort, return charset_unicode.
9607 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9608
9609 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9610 conditionals. Don't check enable_font_backend. Delete all codes
9611 used only when USE_FONT_BACKEND is not defined.
9612
9613 * dispextern.h (struct glyph_string): Change type of `font' to
9614 `struct font *'.
9615 (struct glyph_string): New member underline_position and
9616 underline_thickness.
9617 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9618 (struct face): Change type of `font' to `struct font *'. Remove
9619 members `font_name', `font_info_id'.
9620 (per_char_metric, encode_char): Delete externs.
9621 (calc_pixel_width_or_height): Adjust the prototype.
9622
9623 * emacs.c (enable_font_backend): Delete extern.
9624 (main): Don't set enable_font_backend. Don't check the command
9625 line argument "-disable-font-backend".
9626
9627 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9628 (enum font_property_index): New members FONT_DPI_INDEX,
9629 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9630 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9631 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9632 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9633 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9634 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9635 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9636 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9637 (struct font_spec, struct font_entity): New structs.
9638 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9639 (struct font): Many members from old "struct font_info" moved to
9640 here. Members font and entity deleted.
9641 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9642 the new font-related objects.
9643 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9644 (CHECK_FONT_GET_OBJECT): Likewise.
9645 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9646 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9647 (struct font_driver): New members case_sensitive anc check. Type
9648 of the member list and open changed.
9649 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9650 (font_symbolic_width, font_find_object, font_get_spec)
9651 (font_set_lface_from_name): Delete extern.
9652 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9653
9654 * font.c: Include <strings.h>.
9655 (enable_font_backend): Delete it.
9656 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9657 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9658 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9659 (null_string): Delete it.
9660 (null_vector): Make it static.
9661 (font_family_alist): Delete it.
9662 (Qnormal): Extern it.
9663 (QCextra, QClanguage): Delete it.
9664 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9665 (font_make_spec, font_make_entity, font_make_object)
9666 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9667 the string. Callers changed.
9668 (font_pixel_size): Adjusted for the format change of font-related
9669 objects.
9670 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9671 (font_style_to_value, font_style_symbolic): New function.
9672 (build_font_family_alist): Delete it.
9673 (font_registry_charsets): Use Fassoc_string instead of
9674 assq_no_quit.
9675 (font_prop_validate_symbol): Don't return null_string.
9676 (font_prop_validate_style): Adjusted for the change of
9677 style-related values in a font vector.
9678 (font_property_table): Delete entries for QClanguage and
9679 QCantialias, add entries for QCavgwidth.
9680 (get_font_prop_index): Delete the 2nd argument FROM.
9681 (font_prop_validate): Arguments changed.
9682 (font_put_extra): Adjusted for the change of font-related objects.
9683 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9684 (font_parse_fcname, font_unparse_fcname)
9685 (font_prepare_composition): Likewise.
9686 (font_parse_family_registry): Renamed from font_merge_old_spec.
9687 (otf_open): Delete the 1st arg entity.
9688 (font_otf_capability): Adjusted for the above change.
9689 (font_score): New arg alternate_families. Adjusted for the change
9690 of font-related objects.
9691 (font_sort_entites): New arg best_only.
9692 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9693 Delete them.
9694 (font_match_p): Check alternate families.
9695 (font_find_object): Delete it.
9696 (font_check_object): New function.
9697 (font_clear_cache): Adjusted for the change of font-related objects.
9698 (font_delete_unmatched): New arg.
9699 (font_list_entities): Call font_driver->list with a spec that
9700 doesn't specify style-related properties.
9701 (font_matching_entity): Arguments changed. Caller changed.
9702 (font_open_entity): Adjusted for the change of font-related objects.
9703 (font_close_object, font_has_char, font_encode_char)
9704 (font_get_name, font_get_spec): Likewise.
9705 (font_spec_from_name, font_clear_prop, font_update_lface):
9706 New functions.
9707 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9708 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9709 (font_at): Adjusted for the change of font-related objects.
9710 (font_range): New function.
9711 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9712 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9713 (Fcopy_font_spec, Fmerge_font_spec): New function.
9714 (Ffont_family_list): Renamed from list-families.
9715 (Finternal_set_font_style_table): Arguments changed.
9716 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9717 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9718 change of font-related objects.
9719 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9720
9721 * fontset.h (struct font_info): Delete it. Most members go to
9722 struct font.
9723 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9724 (enum FONT_SPEC_INDEX): Delete it.
9725 (font_info, list_fonts_func, load_font_func, query_font_func)
9726 (set_frame_fontset_func, find_ccl_program_func)
9727 (get_font_repertory_func, new_fontset_from_font_name): Delete
9728 externs.
9729 (fontset_from_font_name): Extern it.
9730 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9731 (FONT_INFO_FROM_FACE): Deleted.
9732 (face_for_font): Adjust prototype.
9733
9734 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9735 conditionals. Don't check enable_font_backend. Delete all codes
9736 used only when USE_FONT_BACKEND is not defined.
9737 (get_font_info_func, list_font_func, load_font_func)
9738 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9739 (get_font_repertory_func): Delete them.
9740 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9741 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9742 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9743 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9744 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9745 (fontset_compare_rfontdef): New function.
9746 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9747 rfont-defs by qsort. Adjusted for the change of font-group vector.
9748 (load_font_get_repertory): Deleted.
9749 (fontset_find_font): Use new macros to ref/set elements of
9750 font-def and rfont-def.
9751 (fontset_font): Fix the timing of remembering that no font for C.
9752 (free_face_fontset): Do nothing if the face has no fontset.
9753 (face_suitable_for_char_p): Use new macros to ref/set elements of
9754 rfont-def.
9755 (face_for_char): Likewise. Call face_for_char with font_object.
9756 (fs_load_font): Delete. Delete #pragma surrounding it.
9757 (fs_query_fontset): Use strcasecmp instead of strcmp.
9758 (generate_ascii_font_name): Adjusted for the format change of
9759 font-spec.
9760 (Fset_fontset_font): Likewise. Use new macros to set elements of
9761 font-def.
9762 (Fnew_fontset): Use font_unparse_xlfd to generate
9763 FONTSET_ASCII (fontset).
9764 (new_fontset_from_font_name): Deleted.
9765 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9766 a fontset is already created for the font. FIx updating of
9767 Vfontset_alias_alist.
9768 (fontset_ascii_font): Deleted.
9769 (Ffont_info): Adjusted for the format change of font-spec.
9770 (Finternal_char_font): Likewise.
9771 (Ffontset_info): Likewise.
9772 (syms_of_fontset): Don't check load_font_func.
9773
9774 * fns.c (internal_equal): Handle PREV_FONT.
9775
9776 * frame.h: Delete USE_FONT_BACKEND conditional.
9777
9778 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9779 conditionals. Don't check enable_font_backend. Delete all codes
9780 used only when USE_FONT_BACKEND is not defined.
9781 (x_set_font): Call x_new_font, not x_new_fontset2.
9782 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9783 already set for the frame.
9784
9785 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9786 a font-entity by font_make_entity. Use font_intern_prop instead
9787 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9788 font property. If a font is scalable, set avgwidth property to 0.
9789 Set font-entity property by font_put_extra.
9790 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9791 (ffont_driver): Adjusted for the change of struct font_driver.
9792 (ftfont_spec_pattern): New function.
9793 (ftfont_list): Return a list, not vector.
9794 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9795 (ftfont_list_family): Don't downcase names.
9796 (ftfont_free_entity): Deleted.
9797 (ftfont_open): Return a font-object. Adjusted for the change of
9798 struct font. Get underline_thickness and underline_position from
9799 font property. Don't update dpyinfo->smallest_font_height and
9800 dpyinfo->smallest_char_width.
9801 (ftfont_close): Don't free `struct font'.
9802 (ftfont_has_char): Adjusted for the format change of font-entity.
9803 (ftfont_encode_char, ftfont_text_extents): Likewise.
9804
9805 * ftxfont.c (ftxfont_list): Return a list, not vector.
9806 (ftxfont_open): Return a font-object. Adjusted for the change of
9807 struct font. Get underline_thickness and underline_position from
9808 font property. Don't update dpyinfo->smallest_font_height and
9809 dpyinfo->smallest_char_width.
9810 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9811 (ftxfont_draw): Adjusted for the change of struct font.
9812
9813 * image.c (image_ascent): Don't include "charset.h". Include
9814 "character.h" and "font.h".
9815
9816 * lisp.h (enum pvec_type): New member PREV_FONT.
9817 (Fassoc_string): EXFUN it.
9818
9819 * print.c: Include font.h.
9820 (print_object): Handle font-related objects.
9821
9822 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9823 conditionals. Don't check enable_font_backend. Delete all codes
9824 used only when USE_FONT_BACKEND is not defined.
9825 (handle_auto_composed_prop): Do nothing if it->f is not on a
9826 window system. Check how many following characters can be
9827 displayed by the same font.
9828 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9829 'struct font *'.
9830 (get_char_face_and_encoding): Assign the whole encoding task to
9831 the `encode-char' method of a font driver.
9832 (fill_composite_glyph_string): Adjusted for the change of `struct
9833 face' and `struct glyph_string'.
9834 (fill_glyph_string): Likewise.
9835 (get_per_char_metric): Arguments changed.
9836 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9837 and `struct glyph_string'.
9838 (produce_stretch_glyph, calc_line_height_property)
9839 (x_produce_glyphs): Likewise.
9840
9841 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9842 conditionals. Don't check enable_font_backend. Delete all codes
9843 used only when USE_FONT_BACKEND is not defined. Use
9844 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9845 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9846 (Qp): Extern them.
9847 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9848 Deleted.
9849 (struct font_name): Deleted.
9850 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9851 (compare_fonts_by_sort_order): New function.
9852 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9853 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9854 Deleted.
9855 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9856 compare_fonts_by_sort_order.
9857 (Fx_font_family_list): Call Ffont_family_list.
9858 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9859 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9860 (face_symbolic_slant, face_symbolic_swidth)
9861 (split_font_name_into_vector, build_font_name_from_vector)
9862 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9863 (font_rescale_ratio, split_font_name, build_font_name)
9864 (free_font_names, sort_fonts, x_face_list_fonts)
9865 (face_font_available_p, sorted_font_list, cmp_font_names)
9866 (font_list_1, concat_font_list, font_list, remove_duplicates):
9867 Deleted.
9868 (Fx_list_fonts): Use Ffont_list.
9869 (LFACE_AVGWIDTH): Deleted.
9870 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9871 by FONTP.
9872 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9873 (set_lface_from_font_name): Delete it.
9874 (set_lface_from_font): Renamed from
9875 set_lface_from_font_and_fontset. Caller changed. Don't set
9876 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9877 for face.
9878 (merge_face_vectors): Copy font-spec if necessary.
9879 Clear properties of the font-spec if necessary.
9880 (merge_face_ref): Clear properties of the font-spec if necessary.
9881 (Finternal_set_lisp_face_attribute): Likewise.
9882 (set_font_frame_param): Use font_load_for_lface to load a
9883 font-object, and call Fmodify_frame_parameters with it.
9884 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9885 font name by Ffont_xlfd_name.
9886 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9887 QCslant, and QCwidth.
9888 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9889 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9890 Compare fonts by EQ.
9891 (lookup_non_ascii_face): Deleted.
9892 (face_for_font): The 2nd argument changed.
9893 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9894 Check atomic font properties by case insensitive.
9895 (realize_non_ascii_face): Set face->overstrike correctly.
9896 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9897 (dump_realized_face): Get font name from
9898 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9899
9900 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9901 conditionals. Don't check enable_font_backend. Delete all codes
9902 used only when USE_FONT_BACKEND is not defined.
9903 (xic_create_xfontset): Original code deleted and renamed from
9904 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9905 (x_make_gc): Don't set GCFont in GCs.
9906 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9907 opened by "fixed".
9908 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9909 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9910 get_font_repertory_func.
9911
9912 * xfont.c: Include <stdlib.h> and "ccl.h".
9913 (struct xfont_info): New structure.
9914 (xfont_query_font): Deleted.
9915 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9916 moved from xterm.c.
9917 (xfont_driver): Adjusted for the change of struct font_driver.
9918 (compare_font_names): New function.
9919 (xfont_list_pattern): Sort font names case insensitively. Make
9920 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9921 (xfont_list): Return a list, not vector.
9922 (xfont_match): If the font doesn't have QCname property, generate
9923 a name from the other font properties.
9924 (xfont_open): Return a font-object. Adjusted for the change of
9925 struct font. Get underline_thickness and underline_position from
9926 font property. Don't update dpyinfo->smallest_font_height and
9927 dpyinfo->smallest_char_width.
9928 (xfont_close): Don't free struct font.
9929 (xfont_prepare_face): Adjusted for the change of struct font.
9930 (xfont_done_face): Deleted.
9931 (xfont_has_char): Adjusted for the change of struct font.
9932 (xfont_encode_char, xfont_draw): Likewise.
9933 (xfont_check): New function.
9934
9935 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9936 callback function.
9937 (xftfont_match): Adjusted for the format change of font-entity.
9938 (xftfont_open): Adjusted for the format change of font-entity and
9939 font-object. Adjusted for the change of struct font. Return a
9940 font-object. Don't update dpyinfo->smallest_font_height and
9941 dpyinfo->smallest_char_width.
9942 (xftfont_close): Block input while calling XftFontClose.
9943 (xftfont_prepare_face): Don't block input while calling
9944 xftfont_get_colors. Adjusted for the change of struct font.
9945 (xftfont_shape): Return value of error case fixed.
9946
9947 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9948
9949 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9950 conditionals.
9951 (FONT_WIDTH): Return (f)->max_width.
9952 (struct x_display_info): Delete member `font'.
9953 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9954 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9955 (struct x_output): Change type of `font' to `struct font *'.
9956
9957 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9958 conditionals. Don't check enable_font_backend. Delete all codes
9959 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9960 (x_per_char_metric, x_encode_char): Deleted.
9961 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9962 (x_compute_glyph_string_overhangs): Adjusted for the change of
9963 `struct face'.
9964 (x_draw_glyph_string_foreground)
9965 (x_draw_composite_glyph_string_foreground): Likewise.
9966 (x_draw_glyph_string): Likewise. Use font->underline_position and
9967 font->underline_thickness.
9968 (x_new_font): Renamed from x_new_fontset2.
9969 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9970 (x_check_font): Call `check' method of a font driver.
9971 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9972 (x_query_font, x_get_font_repertory): Deleted.
9973 (x_find_ccl_program): Renamed and moved to xfont.c.
9974 (x_redisplay_interface): Adjusted for the change of `struct
9975 redisplay_interface'.
9976
9977 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9978 conditionals. Don't check enable_font_backend. Delete all codes
9979 used only when USE_FONT_BACKEND is not defined. Surround non-used
9980 code by "#ifdef OLD_FONT" and "endif".
9981 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9982
9983 * w32font.h (struct w32font_info): New member.
9984 (FONT_COMPAT): New macro.
9985 (w32font_open_internal): Prototype adjusted.
9986
9987 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9988 OLD_FONT" and "endif".
9989
9990 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9991 conditionals. Don't check enable_font_backend. Delete all codes
9992 used only when USE_FONT_BACKEND is not defined.
9993 (w32font_open): Return a font-object. Make a font-object by
9994 font_make_object. Adjusted for the change of struct w32font_info.
9995 (w32font_close): Don't free struct font. Adjusted for the change
9996 of struct w32font_info.
9997 (w32font_encode_char, w32font_text_extents, w32font_draw):
9998 Adjusted for the change of struct w32font_info.
9999 (w32font_draw): Likewise.
10000 (w32font_list_internal): Return a list, not vector.
10001 (w32font_open_internal): Change the 4th arg to font-object.
10002 Adjusted for the change of struct w32font_info and font-object format.
10003 (add_font_name_to_list): Don't downcase names.
10004 (w32_enumfont_pattern_entity): Make a font-entity by
10005 font_make_entity. Adjusted for the format change of font-entity.
10006 Use FONT_SET_STYLE to set a style-related font property. If a
10007 font is scalable, set avgwidth property to 0. Set font-entity
10008 property by font_put_extra.
10009 (font_matches_spec): Adjusted for the format change of font-entity.
10010 (w32_weight_table, w32_decode_weight): New variables.
10011 (w32_encode_weight): New function.
10012 (fill_in_logfont): Adjusted for the format change of font-spec.
10013 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10014 weight value.
10015 (w32font_driver): Adjusted for the change of struct font_driver.
10016
10017 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10018 conditionals. Don't check enable_font_backend. Surround non-used
10019 code by "#ifdef OLD_FONT" and "endif".
10020 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10021 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10022
10023 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10024 conditionals. Don't check enable_font_backend. Delete all codes
10025 used only when USE_FONT_BACKEND is not defined. Surround non-used
10026 code by "#ifdef OLD_FONT" and "endif".
10027
10028 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10029 (uniscribe_open): Return value changed to font-object.
10030 Adjusted for the format change of font-object.
10031 (uniscribe_otf_capability): Adjusted for the change of struct font.
10032 (add_opentype_font_name_to_list): Don't downcase names.
10033 (uniscribe_font_driver): Adjusted for the change of struct
10034 font_driver.
10035
100362008-05-13 Chong Yidong <cyd@stupidchicken.com>
10037
10038 * dispnew.c (update_frame_1): Check if tty output is still valid
10039 before flushing it.
10040
100412008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10042
10043 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10044 to Gtk+ menus.
10045
100462008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10047
10048 * dired.c (file_name_completion): Tweak the code so as to always do it
10049 in a single pass. Tighten the scope of some variables.
10050
10051 * dired.c (Qdefault_directory): New var.
10052 (file_name_completion): Use it instead of Fexpand_file_name.
10053 (syms_of_dired): Initialize it.
10054
100552008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10056
10057 * fileio.c (double_dollars): Remove dead code.
10058
100592008-05-10 Eli Zaretskii <eliz@gnu.org>
10060
10061 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10062 Mention w32-get-true-file-attributes in doc string.
10063
10064 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10065
100662008-05-09 Glenn Morris <rgm@gnu.org>
10067
10068 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10069 2008-04-23.
10070
100712008-05-09 Eli Zaretskii <eliz@gnu.org>
10072
10073 Support for reporting owner and group of each file on MS-Windows:
10074 * dired.c (stat_uname, stat_gname): New functions, with special
10075 implementation for w32.
10076 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10077
10078 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10079 (dflt_group_name): New static variable.
10080 (dflt_group): Rename from the_group.
10081 (init_user_info): Init dflt_group fields. Get user's group name
10082 from LookupAccountSid.
10083 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10084 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10085 New initialization states.
10086 (globals_of_w32): Initialize them to zero. Initialize the default
10087 group name to "None".
10088 (GetFileSecurity_Name): New global var, the name of the function
10089 to call for GetFileSecurity.
10090 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10091 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10092 (get_file_security, get_security_descriptor_owner)
10093 (get_security_descriptor_group, is_valid_sid)
10094 (get_file_security_desc, get_rid, get_name_and_id)
10095 (get_file_owner_and_group): New functions.
10096 (stat): Use get_file_security_desc and get_file_owner_and_group to
10097 report the owner and primary group of each file. Don't ignore the
10098 high 32 bits of file's size, now that st_size is 64-bit wide.
10099 Fix test when to get true file attributes.
10100 (init_user_info): Use get_rid instead of equivalent inline code.
10101 (fstat): Don't ignore the high 32 bits of file's size.
10102
101032008-05-09 Chong Yidong <cyd@stupidchicken.com>
10104
10105 * image.c (png_load): Use correct bit-depth for setting background
10106 color.
10107
101082008-05-08 Eli Zaretskii <eliz@gnu.org>
10109
10110 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10111 epa-hook.elc.
10112
101132008-05-08 Juanma Barranquero <lekktu@gmail.com>
10114
10115 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10116
101172008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10118
10119 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10120 because the original parameters are in pure storage now.
10121 (mac_window): Remove unused params. Update callers.
10122
101232008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10124
10125 * lread.c (substitute_object_recurse): Use lower-level primitives.
10126 Don't signal errors when traversing sub-char-tables.
10127 Don't loop over all the possible characters when traversing char-tables.
10128
10129 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10130 just like we do in print.c.
10131
101322008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10133
10134 * minibuf.c (Ftry_completion): Remove code left over from when we used
10135 scmp instead of Fcompare_strings.
10136
101372008-05-04 Juanma Barranquero <lekktu@gmail.com>
10138
10139 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10140
101412008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10142
10143 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10144 Create bitmap context in native byte order.
10145
10146 * macterm.c (XDrawLine)
10147 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10148 context in native byte order.
10149
101502008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10151
10152 * config.in: Regenerate.
10153
10154 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10155 New definitions for Image I/O support.
10156 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10157 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10158 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10159 (mac_data_provider_release_data, image_load_image_io)
10160 [USE_MAC_IMAGE_IO]: New functions.
10161 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10162 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10163 (init_image_func_pointer) [MAC_OSX]: Remove function.
10164 (image_load_quartz2d) [MAC_OSX]: Check availability of
10165 CGImageCreateWithPNGDataProvider at compile time.
10166 Use lowercase `false' for boolean constant.
10167 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10168 Use image_load_image_io.
10169 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10170 Don't check MyCGImageCreateWithPNGDataProvider.
10171 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10172 Don't call init_image_func_pointer.
10173
10174 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10175
10176 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10177 Make variable non-static.
10178 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10179 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10180
10181 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10182 (RED_FROM_ULONG): Mask off higher bits.
10183 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10184
10185 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10186 Include AvailabilityMacros.h.
10187 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10188 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10189
101902008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10191
10192 * chartab.c (Fset_char_table_range): If range is t, really set all
10193 chars to that value.
10194
101952008-05-03 Eli Zaretskii <eliz@gnu.org>
10196
10197 * dired.c (Ffile_attributes): Don't allow the device number become
10198 negative.
10199
102002008-05-02 Daiki Ueno <ueno@unixuser.org>
10201
10202 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10203
102042008-05-02 Juri Linkov <juri@jurta.org>
10205
10206 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10207 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10208 DEFAULT argument as a list of default values in docstrings.
10209
102102008-05-01 Chong Yidong <cyd@stupidchicken.com>
10211
10212 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10213
102142008-05-01 Martin Rudalics <rudalics@gmx.at>
10215
10216 * dispnew.c (change_frame_size_1): Preserve small windows when
10217 shrinking frames by calling set_window_height|width with third
10218 arg 2.
10219
10220 * window.h (struct window): Replace field too_small_ok by field
10221 resize_proportionally.
10222
10223 * window.c (make_window): Initialize resize_proportionally.
10224 (enlarge_window): Temporarily set resize_proportionally to make
10225 sure that shrink_windows does scale the window proportionally.
10226 (shrink_windows): When window has resize_proportionally set try
10227 to shrink it proportionally by stealing from other windows.
10228 (struct saved_window, Fset_window_configuration)
10229 (compare_window_configurations): Handle resize_proportionally.
10230 (WINDOW_TOTAL_SIZE): New macro.
10231 (window_min_size, shrink_windows, size_window): Use it.
10232 (check_min_window_sizes): Remove. Invalid values of
10233 window-min-height|width are handled by window_min_size_2 now.
10234 (size_window, Fsplit_window, enlarge_window)
10235 (adjust_window_trailing_edge, grow_mini_window): Don't call
10236 check_min_window_sizes.
10237 (window_min_size_2, window_min_size_1, window_min_size):
10238 New argument safe_p for retrieving "safe" minimum sizes.
10239 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10240 (adjust_window_trailing_edge, grow_mini_window):
10241 Adjust arguments of window_min_size... functions.
10242 (shrink_windows): Argument min_size removed. New argument
10243 safe_p allows shrinking windows to their safe minimum sizes.
10244 Calculate minimum size and decide whether a window shall be
10245 deleted for each window individually.
10246 (size_window): When nodelete_p equals 2, tell shrink_windows to
10247 delete windows only if their new minimum size is no more safe.
10248 (shrink_window_lowest_first): Call window_min_size_1 to make
10249 sure to preserve modeline of bottom-most window when resizing
10250 the minibuffer.
10251 (Fset_window_configuration, Fcurrent_window_configuration)
10252 (compare_window_configurations): Do not handle
10253 window-min-height|width any more.
10254 (syms_of_window): Clarify window-min-height|width doc-strings.
10255
102562008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10257
10258 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10259 some more. Copy some of the code from Ftry_completions.
10260 Remove special case code that dates back to initial revision when the
10261 slash was only added when necessary and that can't trigger nowadays.
10262
102632008-04-27 Kenichi Handa <handa@m17n.org>
10264
10265 * font.c (font_prop_validate): Signal `error' instead of `font'.
10266
102672008-04-29 Jason Rumney <jasonr@gnu.org>
10268
10269 * w32fns.c (Fw32_battery_status): New defun.
10270 (syms_of_w32fns): Defsubr it.
10271
102722008-04-28 Andreas Schwab <schwab@suse.de>
10273
10274 * dired.c (file_name_completion): Fix another mixing of encoded
10275 and decoded names.
10276
102772008-04-28 Juanma Barranquero <lekktu@gmail.com>
10278
10279 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10280
102812008-04-27 Juanma Barranquero <lekktu@gmail.com>
10282
10283 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10284
102852008-04-27 Andreas Schwab <schwab@suse.de>
10286
10287 * dired.c (file_name_completion): Fix inappropriate mixing of
10288 encoded and decoded names.
10289
10290 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10291
10292 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10293
102942008-04-26 Eli Zaretskii <eliz@gnu.org>
10295
10296 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10297 2008-03-31, it's not needed anymore with `struct stat' definition
10298 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10299 for the same reasons.
10300
103012008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10302
10303 * m/sparc.h: Additional redefinitions for GNU/Linux.
10304
103052008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10306
10307 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10308 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10309 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10310 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10311 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10312 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10313 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10314 Likewise.
10315
10316 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10317 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10318 (mac_ax_number_of_characters): Add externs.
10319 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10320 [USE_MAC_TSM]: Likewise.
10321 (mac_handle_text_input_event) [MAC_OSX]:
10322 Handle kEventTextInputOffsetToPos for no active input area case.
10323 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10324 (mac_handle_document_access_event)
10325 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10326 (install_application_handler) [MAC_OSX]: Register handlers for
10327 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10328 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10329 Register mac_handle_document_access_event.
10330
10331 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10332 Make functions non-static.
10333
103342008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10335
10336 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10337 (read_file_name_completion_ignore_case, insert_default_directory)
10338 (Qdefault_directory): Move to minibuffer.el.
10339 (Fread_file_name): Call the new `read-file-name' instead.
10340
103412008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10342
10343 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10344 Make function non-static.
10345 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10346 Remove function.
10347 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10348 Move to mactoolbox.c.
10349 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10350
10351 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10352 (mac_rect_make): New macro.
10353
10354 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10355 instead of float.
10356 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10357 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10358 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10359 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10360 CGRectMake.
10361 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10362 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10363 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10364 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10365 instead of WindowRef in argument type.
10366 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10367 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10368 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10369 instead of DISPLAY. All uses changed.
10370 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10371 (x_calc_absolute_position): Simplify so as not to use
10372 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10373
10374 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10375 instead of WindowRef in argument type.
10376 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10377 [TARGET_API_MAC_CARBON]: Remove externs.
10378 (create_apple_event, mac_event_parameters_to_lisp)
10379 [TARGET_API_MAC_CARBON]: Add externs.
10380
10381 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10382 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10383 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10384 is clicked.
10385 (x_activate_menubar): Remove extern for saved_menu_event_location.
10386 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10387 Move from mac.c.
10388
103892008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10390
10391 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10392 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10393
103942008-04-23 Jason Rumney <jasonr@gnu.org>
10395
10396 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10397 attributes only for local files.
10398
10399 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10400 default to Qlocal.
10401
104022008-04-22 Juri Linkov <juri@jurta.org>
10403
10404 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10405 read-buffer-to-switch instead of using the letter "B".
10406
104072008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10408
10409 * fileio.c (Qdefault_directory): New variable.
10410 (Fread_file_name): Use it to pass `dir' to the completion functions.
10411
104122008-04-20 Chong Yidong <cyd@stupidchicken.com>
10413
10414 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10415
104162008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10417
10418 * keyboard.c (Vpre_help_message): Remove.
10419 (show_help_echo): Remove default C code.
10420
10421 * dired.c (directory_files_internal, file_name_completion):
10422 Only call ENCODE_FILE if the string is indeed decoded.
10423
104242008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10425
10426 * Makefile.in (TOOLKIT_DEFINES): Remove.
10427 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10428
104292008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10430
10431 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10432 (mactoolbox.o): New target.
10433
10434 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10435 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10436
10437 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10438 Use mac_set_frame_window_background instead of XSetWindowBackground.
10439 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10440 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10441 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10442 instead of SetWindowTitleWithCFString.
10443 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10444 Move function to mactoolbox.c.
10445 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10446 Use mac_set_window_modified instead of SetWindowModified.
10447 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10448 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10449 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10450 FrontNonFloatingWindow. Use mac_activate_window instead of
10451 ActivateWindow. Use mac_active_non_floating_window instead of
10452 ActiveNonFloatingWindow.
10453 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10454 Use mac_show_hourglass and mac_hide_hourglass.
10455 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10456 instead of GetGlobalMouse.
10457 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10458 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10459 Use mac_bring_window_to_front instead of BringToFront.
10460 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10461 mactoolbox.c.
10462 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10463 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10464 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10465 mactoolbox.c.
10466
10467 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10468 (XtPointer): Move typedef from macmenu.c.
10469 (enum button_type): Move enum from macmenu.c.
10470 (widget_value): Move typedef from macmenu.c.
10471 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10472 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10473 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10474 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10475 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10476 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10477 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10478 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10479 (Selection): Move typedef from macselect.c.
10480 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10481 macterm.c.
10482 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10483 (mac_is_window_collapsed, mac_bring_window_to_front)
10484 (mac_send_window_behind, mac_hide_window, mac_show_window)
10485 (mac_collapse_window, mac_front_non_floating_window)
10486 (mac_active_non_floating_window, mac_activate_window)
10487 (mac_move_window_structure, mac_move_window, mac_size_window)
10488 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10489
10490 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10491 (enum mac_menu_kind): Move enum to mactoolbox.c.
10492 (min_menu_id): Move variable to mactoolbox.c.
10493 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10494 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10495 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10496 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10497 [TARGET_API_MAC_CARBON]: Likewise.
10498 (XtPointer): Move typedef to macgui.h.
10499 (enum button_type): Move enum to macgui.h.
10500 (widget_value): Move typedef to macgui.h.
10501 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10502 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10503 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10504 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10505 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10506 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10507 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10508 (popup_activated_flag): Make variable non-static.
10509 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10510 (add_menu_item, fill_menu, dispose_menus):
10511 Move functions to mactoolbox.c.
10512 (restore_show_help_function, menu_target_item_handler)
10513 (install_menu_target_item_handler, mac_handle_dialog_event)
10514 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10515 [TARGET_API_MAC_CARBON]: Likewise.
10516 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10517 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10518 (find_and_call_menu_selection, name_is_separator): Make function
10519 non-static.
10520 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10521 to mactoolbox.c.
10522 (set_frame_menubar): Don't call install_menu_quit_handler.
10523 (menu_item_selection): New variable.
10524 (mac_menu_show): Use create_and_show_popup_menu.
10525 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10526 selection but set variable menu_item_selection. All uses changed.
10527 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10528 Call install_menu_quit_handler. Move to mactoolbox.c.
10529
10530 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10531 (Selection): Move typedef to macgui.h.
10532 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10533 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10534 Make variables non-static.
10535 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10536 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10537 Make functions non-static.
10538 (Vmac_service_selection) [MAC_OSX]: Likewise.
10539 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10540 (mac_valid_selection_target_p, mac_clear_selection)
10541 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10542 (mac_put_selection_value, mac_selection_has_target_p)
10543 (mac_get_selection_value, mac_get_selection_target_list)
10544 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10545 Move functions to mactoolbox.c.
10546 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10547 Likewise.
10548 (copy_scrap_flavor_data, mac_handle_service_event)
10549 (install_service_handler) [MAC_OSX]: Likewise.
10550 (syms_of_macselect) <Vmac_dnd_known_types>:
10551 Use mac_dnd_default_known_types.
10552
10553 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10554 Move to mactoolbox.c.
10555 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10556 (Fx_selection_owner_p): Add EXFUN.
10557 (install_window_handler, remove_window_handler, XSetWindowBackground):
10558 Remove externs.
10559 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10560 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10561 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10562 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10563 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10564 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10565 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10566 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10567 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10568 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10569 (mac_valid_selection_target_p, mac_clear_selection)
10570 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10571 (mac_put_selection_value, mac_selection_has_target_p)
10572 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10573 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10574 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10575 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10576 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10577 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10578 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10579 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10580 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10581
10582 * mactoolbox.c: New file.
10583
105842008-04-18 Jason Rumney <jasonr@gnu.org>
10585
10586 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10587
105882008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10589
10590 * character.c (Fmultibyte_char_to_unibyte):
10591 Return latin1 chars unchanged.
10592
10593 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10594 relocated if it points to `name'.
10595
105962008-04-17 Kenichi Handa <handa@m17n.org>
10597
10598 * data.c (Faset): Allow setting a multibyte character in an
10599 ASCII-only unibyte string.
10600
10601 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10602
106032008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10604
10605 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10606 done in config.h.
10607
106082008-04-16 Juanma Barranquero <lekktu@gmail.com>
10609
10610 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10611 (Fchar_direction): Add usage in the docstring.
10612
106132008-04-15 Chong Yidong <cyd@stupidchicken.com>
10614
10615 * keyboard.c (read_key_sequence): Remove always-true checks.
10616
106172008-04-14 Jason Rumney <jasonr@gnu.org>
10618
10619 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10620 compatibility struct, for better underline positioning.
10621
106222008-04-13 David Hansen <david.hansen@gmx.net>
10623
10624 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10625 string.
10626
106272008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10628
10629 * m/hp800.h (XUINT, XSET): Remove.
10630
106312008-04-12 Juanma Barranquero <lekktu@gmail.com>
10632
10633 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10634 previous change.
10635
106362008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10637
10638 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10639 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10640
106412008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10642
10643 * keymap.h (map_keymap_canonical): Declare.
10644 * xmenu.c (single_keymap_panes): Use it.
10645
106462008-04-11 Glenn Morris <rgm@gnu.org>
10647
10648 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10649 set the target's value to that of the alias.
10650
106512008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10652
10653 * term.c (set_tty_color_mode): Left over typo.
10654
106552008-04-10 Michael Albinus <michael.albinus@gmx.de>
10656
10657 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10658 only after check for file name handler functions. Signal, when
10659 native functionality is not supported.
10660 (syms_of_fileio): Declare it unconditionally.
10661
106622008-04-10 Jason Rumney <jasonr@gnu.org>
10663
10664 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10665 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10666
10667 * w32.c (logon_network_drive): Also logon to remote drives that
10668 are mapped to drive letters.
10669
106702008-04-10 Glenn Morris <rgm@gnu.org>
10671
10672 * xdisp.c (truncate-partial-width-windows): Doc fix.
10673
106742008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10675
10676 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10677 Move functions to minibuffer.el.
10678 (syms_of_fileio): Don't declare them.
10679
106802008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10681
10682 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10683 (syms_of_minibuf): Remove its initialization.
10684
10685 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10686
106872008-04-09 Juanma Barranquero <lekktu@gmail.com>
10688
10689 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10690
106912008-04-09 Jason Rumney <jasonr@gnu.org>
10692
10693 * makefile.w32-in (distclean): Delete makefile too.
10694 (maintainer-clean): New target.
10695
10696 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10697
10698 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10699 for new font backend and composite cases.
10700
107012008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10702
10703 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10704 Most of the code moved to run_timers.
10705 (do_pending_atimers): Call run_timers.
10706 (run_timers): New function.
10707
10708 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10709 run atimers.
10710
10711 * process.c (wait_reading_process_output): The same as above.
10712
107132008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10714
10715 * minibuf.c (last_exact_completion): Remove variable.
10716 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10717 (complete_and_exit_1, complete_and_exit_2)
10718 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10719 (Fdisplay_completion_list, display_completion_list_1)
10720 (Fminibuffer_completion_help, Fself_insert_and_exit)
10721 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10722 minibuffer.el.
10723 (syms_of_minibuf): Remove corresponding initializations.
10724
10725 * keyboard.c (Qdeactivate_mark): New var.
10726 (command_loop_1): Use it to call `deactivate-mark'.
10727 (syms_of_keyboard): Initialize it.
10728
10729 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10730 to another frame.
10731 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10732 Don't call set_tty_color_mode.
10733 (store_frame_param): Reset previous_frame rather than call
10734 set_tty_color_mode.
10735 * term.c (set_tty_color_mode): Rewrite.
10736 * dispextern.h (set_tty_color_mode): New type.
10737 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10738
107392008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10740
10741 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10742 for generic chars, which do not exist any more in emacs-unicode.
10743
107442008-04-08 Michael Albinus <michael.albinus@gmx.de>
10745
10746 * coding.c (detect_coding_emacs_mule)
10747 (Ffind_operation_coding_system): Fix typo.
10748
107492008-04-08 Jason Rumney <jasonr@gnu.org>
10750
10751 * w32uniscribe.c (SNAME): Extract only symbol name.
10752
10753 * w32font.h (struct w32_metric_cache): New struct.
10754 (w32font_info): Use it.
10755 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10756 (CACHE_BLOCKSIZE): New constants.
10757
10758 * w32font.c (Qja, Qko, Qzh): New symbols.
10759 (syms_of_w32font): Initialise them.
10760 (font_matches_spec): Use them to filter by language.
10761 (recompute_cached_metrics): Remove function.
10762 (compute_metrics, clear_cached_metrics): New functions.
10763 (w32font_encode_char): Use them to manage metric cache.
10764 (w32font_text_extents): Cache metrics for all glyphs on demand.
10765 Delay converting glyph indices to WORD until needed.
10766 (w32font_open_internal): Initialize metric cache to empty.
10767 (registry_to_w32_charset): Charset should always be a symbol.
10768 (fill_in_logfont, list_all_matching_fonts): Family should
10769 always be a symbol.
10770
107712008-04-06 Jason Rumney <jasonr@gnu.org>
10772
10773 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10774 Give up if glyph indices not supported. Use uniscribe obtained
10775 ABC widths for individual metrics. Map glyph clusters back to
10776 characters using fClusterStart flag. Return number of glyphs
10777 produced, not chars processed.
10778 (uniscribe_shape): Map char at FROM to current glyph.
10779
107802008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10781
10782 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10783 Use SetMenuItemHierarchicalMenu.
10784
107852008-04-05 Jason Rumney <jasonr@gnu.org>
10786
10787 * image.c (pbm_load): Allow color values up to 65535.
10788 Throw an error if max_color_idx is outside the supported range.
10789 Report an error when image size is invalid.
10790 Read two bytes at a time when raw images have max_color_idx above 255.
10791
107922008-04-05 Eli Zaretskii <eliz@gnu.org>
10793
10794 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10795 cFileName a file name that includes `?' characters, use the 8+3
10796 alias in cAlternateFileName instead.
10797
107982008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10799
10800 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10801 append "CCL: Quitted" when the CCL program is quitted.
10802 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10803
10804 * ccl.h (struct ccl_program): New member quit_silently.
10805
108062008-04-05 Chong Yidong <cyd@stupidchicken.com>
10807
10808 * search.c (compile_pattern_1): Treat non-nil and non-string of
10809 search-spaces-regexp as nil.
10810
10811 * minibuf.c (Fassoc_string): Tweak docstring.
10812
108132008-04-05 Eli Zaretskii <eliz@gnu.org>
10814
10815 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10816 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10817 2008-03-14 to force inode be positive.
10818
10819 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10820 _S_* ones, since we now use our own sys/stat.h.
10821 (stat, fstat): Don't mangle the inode number.
10822 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10823
108242008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10825
10826 * frame.h (struct frame): Give one more bit to `visible' since we use
10827 values larger than 1 to indicate obscured frames on ttys.
10828
10829 * keymap.c (Qkeymap_canonicalize): New var.
10830 (Fmap_keymap_internal): New fun.
10831 (describe_map): Use keymap-canonicalize.
10832
10833 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10834 (Fundo_boundary): Set them.
10835 (syms_of_undo): Initialize them.
10836 (record_point): Use them instead of last_point_position*.
10837 (last_undo_buffer): Change type.
10838
108392008-04-04 Jason Rumney <jasonr@gnu.org>
10840
10841 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10842 (recompute_cached_metrics): Don't set ascent and descent per char.
10843
10844 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10845 (uniscribe_check_otf): Add GC protection before consing.
10846 Rearrange loop for counting features.
10847
108482008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10849
10850 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10851 buffer with byte-size of source buffer.
10852
108532008-04-03 Chong Yidong <cyd@stupidchicken.com>
10854
10855 * callint.c (Fcall_interactively): Handle temporary region even
10856 when shift-select-mode is off.
10857
108582008-04-03 Jason Rumney <jasonr@gnu.org>
10859
10860 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10861
108622008-04-03 Kenichi Handa <handa@m17n.org>
10863
10864 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10865 (CATEGORY_MASK_UTF_16): Likewise.
10866 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10867 binary file.
10868 (detect_coding): Add null-byte detection for a binary file.
10869 (detect_coding_system): Likewise.
10870
108712008-04-03 Jason Rumney <jasonr@gnu.org>
10872
10873 * w32uniscribe.c: New file.
10874
10875 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10876
10877 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10878
10879 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10880 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10881 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10882 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10883 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10884 (Qphonetic): New symbols.
10885 (syms_of_w32font): Initialize them.
10886 (font_supported_scripts): Use them.
10887 (w32font_list_family): List all charsets.
10888 (w32font_text_extents, recompute_cached_metrics): Fix metric
10889 calculations.
10890 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10891 Give opentype fonts their own format.
10892 (font_matches_spec): New arguments backend and logfont.
10893 Handle :otf spec for uniscribe backend.
10894 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10895 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10896
10897 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10898 font backend.
10899 (globals_of_w32fns): Initialize uniscribe font backend.
10900
10901 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10902 dependencies.
10903 (w32uniscribe.$(O)): New file to build.
10904 (FONT_OBJ): Include w32uniscribe.$(O).
10905 (LIBS): Add uniscribe libraries.
10906
10907 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10908
109092008-04-02 Chong Yidong <cyd@stupidchicken.com>
10910
10911 * callint.c (Vshift_select_mode): New var.
10912 (Finteractive): Document new ^ spec.
10913 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10914 is present.
10915
10916 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10917 (command_loop_1): Avoid running the direct display versions of
10918 forward-char and backward-char if shift-selection may occur.
10919 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10920 shift-translation takes place.
10921
10922 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10923 avoid clobbering by define-minor-mode.
10924
10925 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10926 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10927
10928 * syntax.c (Fforward_word): Add ^ interactive spec.
10929
10930 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10931 (Fscroll_right): Add ^ interactive spec.
10932
109332008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10934
10935 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10936
10937 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10938
10939 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10940
109412008-03-31 Juri Linkov <juri@jurta.org>
10942
10943 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10944
109452008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10946
10947 * gtkutil.c (xg_set_geometry): Fix indentation.
10948 (xg_resize_outer_widget): Remove.
10949 (x_wm_size_hint_off): Fix indentation.
10950 (xg_frame_set_char_size): Call flush_and_sync after
10951 gtk_window_resize.
10952 (x_wm_set_size_hint): Pass NULL as geometry window to
10953 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10954 Add menu bar and tool bar height to base height.
10955 (xg_update_frame_menubar, free_frame_menubar)
10956 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10957 (update_frame_tool_bar, free_frame_tool_bar):
10958 Change xg_resize_outer_widget to xg_frame_set_char_size.
10959
109602008-03-30 Michael Albinus <michael.albinus@gmx.de>
10961
10962 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10963 (Fdbus_call_method): New parameter TIMEOUT.
10964 (dbus-send-signal): Optimize UNGCPRO call.
10965
109662008-03-29 Juri Linkov <juri@jurta.org>
10967
10968 * window.c (Fdisplay_buffer): Move call to
10969 Vsplit_window_preferred_function out of conditions that check
10970 if window is eligible for vertical splitting.
10971 When Vsplit_window_preferred_function is non-nil, call it and use
10972 its non-nil return value as window. Otherwise, continue doing
10973 vertical splitting using Fsplit_window with arg horflag=nil.
10974 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10975 default value from `split-window' to nil.
10976
109772008-03-29 Juri Linkov <juri@jurta.org>
10978
10979 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10980 for interactive code letters 'b' and 'B'.
10981
109822008-03-29 Eli Zaretskii <eliz@gnu.org>
10983
10984 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10985 multibyte string.
10986
109872008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10988
10989 * keyboard.c (pending_funcalls): New var.
10990 (timer_check): Run it.
10991 (syms_of_keyboard): Initialize it.
10992 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10993 (Vdelete_terminal_functions): New vars.
10994 (syms_of_terminal): Initialize them.
10995 (Fdelete_terminal): Run delete-terminal-functions.
10996 * xdisp.c (safe_eval): Rewrite.
10997 (safe_call2): New fun.
10998 * frame.c (Qdelete_frame_functions): New var.
10999 (syms_of_frame): Initialize it.
11000 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11001 * lisp.h (safe_call2, pending_funcalls): Declare.
11002
110032008-03-28 Andreas Schwab <schwab@suse.de>
11004
11005 * indent.c (Fmove_to_column): Move declaration before statements.
11006
110072008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11008
11009 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11010 (struct frame): Use bit fields for boolean vars.
11011
11012 * process.c (server_accept_connection): Simplify naming.
11013 (emacs_get_tty_pgrp): Use SDATA.
11014
11015 * coding.c (decode_coding_object): Fix last change.
11016
110172008-03-27 Jason Rumney <jasonr@gnu.org>
11018
11019 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11020
110212008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11022
11023 * charset.c (Fdefine_charset_internal): Change the way of
11024 registering charsets in Vcharset_order_list.
11025 (syms_of_charset): Make the charset `eight-bit' supplementary.
11026
110272008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11028
11029 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11030 operations, to avoid having the difference between pointers
11031 overflow.
11032
110332008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * indent.c (check_display_width): New fun.
11036 (scan_for_column): Use it.
11037
11038 * data.c (syms_of_data): Mark most-positive-fixnum and
11039 most-negative-fixnum as constants.
11040
11041 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11042
11043 * indent.c (scan_for_column): Extract from current_column_1.
11044 Merge with the same code from Fmove_to_column.
11045 (current_column_1, Fmove_to_column): Use it.
11046
110472008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11048
11049 * keymap.c (map_keymap_internal): New fun.
11050 (map_keymap): Use it.
11051 (Fmap_keymap_internal): New fun.
11052 (Fmap_keymap): Remove left-out test from before make_save_value.
11053
11054 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11055
11056 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11057 Use XCAR/XCDR.
11058
11059 * process.h (struct Lisp_Process): Remove filter_multibyte.
11060 * process.c (QCfilter_multibyte): Remove.
11061 (setup_process_coding_systems): Don't use filter_multibyte.
11062 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11063 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11064 (Fset_process_filter_multibyte): Change the coding-system to
11065 approximate the previous behavior.
11066 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11067 coding-system.
11068
11069 * coding.c (decode_coding_object): When not decoding into a buffer,
11070 obey the coding system's preference of (uni|multi)byte.
11071
110722008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11073
11074 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11075 every char is changed and has a different byte-length.
11076 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11077 Fix int -> EMACS_INT.
11078
110792008-03-23 David Hansen <david.hansen@gmx.net>
11080
11081 * dbusbind.c (xd_read_message): Remove extra copying of message
11082 strings. Check for NULL `interface' or `member'.
11083
110842008-03-22 Eli Zaretskii <eliz@gnu.org>
11085
11086 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11087 cFileName a file name that includes `?' characters, use the 8+3
11088 alias in cAlternateFileName instead.
11089
110902008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11091
11092 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11093
110942008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11095
11096 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11097 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11098 work on current_buffer only instead (that was already the case
11099 for some of the code anyway).
11100 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11101 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11102 (SET_PT, SET_PT_BOTH): Adjust.
11103 * intervals.h (set_point, temp_set_point, set_point_both)
11104 (temp_set_point_both): Remove redundant declarations.
11105
111062008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11107
11108 * fileio.c (Finsert_file_contents):
11109 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11110 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11111 when buffer != current_buffer anyway.
11112
111132008-03-20 Andreas Schwab <schwab@suse.de>
11114
11115 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11116 as default.
11117
111182008-03-19 Jason Rumney <jasonr@gnu.org>
11119
11120 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11121 (syms_of_w32fns): Initialize them.
11122 (HOURGLASS_ID): New constant.
11123 (x_window_to_frame): Don't check hourglass_window.
11124 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11125 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11126 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11127 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11128 Only change the cursor if hourglass is not active.
11129 (Fx_create_frame): Initialize frame's current_cursor.
11130 (hourglass_atimer): Remove.
11131 (hourglass_started): New function.
11132 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11133 (show_hourglass): Adapt to w32, changing argument to frame.
11134
11135 * w32term.h (struct w32_output): Remove hourglass_window.
11136 Add current_cursor.
11137
11138 * eval.c (call_debugger, Fsignal):
11139 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11140 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11141 (Fexecute_extended_command, cancel_hourglass_unwind):
11142 * minibuf.c (read_minibuf):
11143 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11144
111452008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11146
11147 * window.c (run_funs): New fun.
11148 (run_window_configuration_change_hook): Use it to run the buffer-local
11149 and the global part of the hook.
11150
11151 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11152 (unwind_format_mode_line): Restore selected window.
11153 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11154
111552008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11156
11157 * editfns.c (Fchar_equal): Check they are valid characters.
11158
11159 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11160
111612008-03-17 Andreas Schwab <schwab@suse.de>
11162
11163 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11164 against a charset.
11165
11166 * lisp.h (Fbuffer_list): Declare.
11167
111682008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11169
aac0c6e3
MR
11170 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11171 handlebox_widget is != 0.
11172
111732008-03-16 Juri Linkov <juri@jurta.org>
11174
11175 * callint.c (Fcall_interactively): For interactive code letters
11176 'b' and 'B' put the buffer list into the list of default "future"
11177 values of the minibuffer.
11178
111792008-03-16 Andreas Schwab <schwab@suse.de>
11180
11181 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11182 modifiers.
11183
11184 * regex.c (re_match_2_internal): Correct matching of a charset
11185 against latin-1 characters.
11186
111872008-03-16 Kenichi Handa <handa@m17n.org>
11188
11189 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11190 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11191 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11192 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11193 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11194 CHAR_STRING_ADVANCE.
11195 (produce_chars): Fix for the case that the source and the
11196 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11197 instead of CHAR_STRING_ADVANCE.
11198 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11199 STRING_CHAR_ADVANCE.
11200
112012008-03-15 Andreas Schwab <schwab@suse.de>
11202
11203 * regex.c (re_match_2_internal): Correct matching of eight bit
11204 characters in unibyte strings.
11205
112062008-03-15 Martin Rudalics <rudalics@gmx.at>
11207
11208 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11209 at end of range when it coincides with the end of the buffer.
11210
112112008-03-14 Eli Zaretskii <eliz@gnu.org>
11212
11213 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11214
11215 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11216
112172008-03-14 Jason Rumney <jasonr@gnu.org>
11218
11219 * editfns.c (initial_tz): New variable.
11220 (syms_of_editfns): Initialize it.
11221 (Fset_time_zone_rule): Set it when first called.
11222 Use it when TZSTRING is nil.
11223
11224 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11225 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11226 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11227 (globals_of_w32fns): Initialize them.
11228 (compute_tip_xy): Use them to position tooltips.
11229
112302008-03-14 Glenn Morris <rgm@gnu.org>
11231
11232 * emacs.c (main): Revert previous change.
11233 (standard_args): Revert -internal-script back to -scriptload,
11234 and remove the long-option form.
11235
112362008-03-13 Glenn Morris <rgm@gnu.org>
11237
11238 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11239 Remove option -enable-font-backend.
11240
112412008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11242
11243 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11244
112452008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11246
11247 * xterm.c (x_connection_closed): For GTK: If this is the last
11248 terminal just exit without closing the display.
11249
112502008-03-11 Jason Rumney <jasonr@gnu.org>
11251
11252 * w32font.c (w32font_full_name): Use floor to round.
11253
f0131492 112542008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11255
11256 * sound.c (alsa_configure): Declare vol at beginning of block.
11257
11258 * fontset.c (Ffontset_info): Remove extra semicolon.
11259
112602008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11261
11262 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11263 size of resulting string.
11264
112652008-03-10 Jason Rumney <jasonr@gnu.org>
11266
11267 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11268
112692008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11270
11271 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11272 Don't pretend as if characters with display property haven't been
11273 consumed for string-replacing-string case.
11274
112752008-03-08 Kim F. Storm <storm@cua.dk>
11276
11277 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11278 (get_next_display_element, next_element_from_string)
11279 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11280
112812008-03-08 Andreas Schwab <schwab@suse.de>
11282
11283 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11284
112852008-03-06 Jason Rumney <jasonr@gnu.org>
11286
11287 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11288 when charset not specified. Only translate ANSI to unicode when
11289 font_type is truetype.
11290 (w32font_coverage_ok): New function.
11291 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11292
112932008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11294
11295 * lread.c (Fread_char): Resolve modifiers.
11296 (Fread_char_exclusive): Likewise.
11297
11298 * character.c (char_resolve_modifier_mask): New function.
11299 (char_string): Use char_resolve_modifier_mask.
11300 (Fchar_resolve_modifiers): New function.
11301 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11302 function.
11303
113042008-03-04 Jason Rumney <jasonr@gnu.org>
11305
11306 * makefile.w32-in: Always include w32font.c in the build.
11307 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11308
113092008-03-04 Andreas Schwab <schwab@suse.de>
11310
11311 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11312 (versionclean): Likewise.
11313
113142008-03-04 Juanma Barranquero <lekktu@gmail.com>
11315
11316 * .cvsignore: Add oo.
11317
113182008-03-03 Andreas Schwab <schwab@suse.de>
11319
11320 * coding.c (decode_coding_object): Inhibit gap shrinking while
11321 decoding in place.
11322
113232008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11324
11325 * w32term.c: Remove unused include "gnu.h".
11326 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11327
11328 * gnu.h: Rename to ...
11329 * emacs-icon.h: ... this.
11330 * xterm.c: Use emacs-icon.h instead of gnu.h.
11331 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11332
113332008-03-03 Juanma Barranquero <lekktu@gmail.com>
11334
11335 * w32font.c: Include math.h.
11336
113372008-03-03 Jason Rumney <jasonr@gnu.org>
11338
11339 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11340 Compute options separately.
11341 (w32font_open_internal): Set glyph_idx before caching metrics.
11342
11343 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11344 Define if system headers don't.
11345 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11346 (w32font_encode_char): Don't declare here.
11347
11348 * w32font.c (Quniscribe, QCformat): New symbols.
11349 (syms_of_w32font): Define them.
11350 (w32font_has_char): Indicate uncertainty.
11351 (w32font_encode_char): Encode as glyph point. Make static.
11352 (recompute_cached_metrics): New function.
11353 (w32font_open_internal): Use it. Set font to use glyph points
11354 initially. Set format based on type of font.
11355 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11356 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11357 on it. Set format based on information available here.
11358 (add_font_entity_to_list): Identify backend based on opentype_only.
11359
113602008-03-02 Andreas Schwab <schwab@suse.de>
11361
11362 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11363
11364 * coding.c (decode_coding_big5, produce_chars):
11365 Fix typos in last change.
11366
113672008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11368
11369 * gnu.h: New icon.
11370
113712008-03-02 Kenichi Handa <handa@m17n.org>
11372
11373 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11374 `dos', don't decode '\r' if that is the last in the source.
11375 (decode_coding_utf_16, decode_coding_emacs_mule)
11376 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11377 (decode_coding_raw_text, decode_coding_charset): Likewise.
11378 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11379
113802008-03-01 Jason Rumney <jasonr@gnu.org>
11381
11382 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11383
113842008-03-01 Kim F. Storm <storm@cua.dk>
11385
11386 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11387
113882008-03-01 Jason Rumney <jasonr@gnu.org>
11389
11390 * w32font.c (w32font_full_name): New function.
11391 (w32font_open_internal): Use it.
11392
113932008-03-01 Kim F. Storm <storm@cua.dk>
11394
11395 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11396
113972008-03-01 Jason Rumney <jasonr@gnu.org>
11398
11399 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11400
114012008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11402
11403 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11404 xg_frame_resized when the event is for the edit widget.
11405
11406 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11407
11408 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11409 set_char_size.
11410 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11411 operations on widgets here. Just set frame size if needed.
11412 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11413 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11414 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11415 the whole frame.
11416 (xg_create_tool_bar): Move attachment of the tool bar to
11417 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11418 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11419
114202008-03-01 Jason Rumney <jasonr@gnu.org>
11421
11422 * w32fns.c (w32_msg_pump): Disable debug code.
11423
114242008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11425
11426 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11427
114282008-02-29 Chong Yidong <cyd@stupidchicken.com>
11429
11430 * xdisp.c (next_overlay_string): Don't set
11431 overlay_strings_at_end_processed_p if we're currently reading from
11432 a display string.
11433
114342008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11435
11436 * xdisp.c (get_overlay_strings_1): Fix typo.
11437
114382008-02-29 Chong Yidong <cyd@stupidchicken.com>
11439
11440 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11441
114422008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11443
11444 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11445
11446 * xdisp.c (display_mode_element): Cancel the previous change.
11447 (decode_mode_spec): Likewise.
11448 (handle_auto_composed_prop): Don't make composition if it->string
11449 is a string.
11450
114512008-02-27 Kim F. Storm <storm@cua.dk>
11452
11453 * lisp.h (GLYPH): Change type from int to struct with separate char
11454 and face_id members.
11455 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11456 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11457 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11458 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11459 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11460 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11461 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11462 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11463 handle new Lisp glyph code encoding, either an integer or a cons.
11464
11465 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11466 (GLYPH_ALIAS): Delete.
11467 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11468 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11469 (GLYPH_FROM_CHAR): Replace macro by ...
11470 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11471
11472 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11473 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11474 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11475 (GLYPH_INVALID_P): New macro.
11476 (spec_glyph_lookup_face): Update prototype.
11477
11478 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11479 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11480 new glyph code encoding.
11481 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11482 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11483
11484 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11485 Adapt to new glyph type and new glyph code encoding.
11486
11487 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11488
11489 * indent.c (current_column, current_column_1, Fmove_to_column)
11490 (compute_motion): Adapt to new glyph code encoding.
11491
11492 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11493
114942008-02-27 Chong Yidong <cyd@stupidchicken.com>
11495
11496 * process.c (wait_reading_process_output): Check for window
11497 changes caused by timers.
11498 Suggested by Johan Bockgård.
11499
115002008-02-27 Glenn Morris <rgm@gnu.org>
11501
11502 * emacs.c (USAGE1): Add `--disable-font-backend'.
11503
115042008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11505
11506 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11507 is made to the buffer.
11508
115092008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11510
11511 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11512 (face_at_string_position):
11513 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11514 (face_at_string_position):
11515 * xdisp.c (display_string, next_overlay_change):
11516 * buffer.h (overlays_at):
11517 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11518 Update callers.
11519
115202008-02-26 Chong Yidong <cyd@stupidchicken.com>
11521
11522 * editfns.c (Fformat): Doc fix.
11523
115242008-02-26 Juanma Barranquero <lekktu@gmail.com>
11525
11526 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11527 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11528 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11529
115302008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11531
11532 * buffer.c (Fbuffer_swap_text): New function.
11533 (syms_of_buffer): Defsubr it.
11534
115352008-02-25 Chong Yidong <cyd@stupidchicken.com>
11536
11537 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11538
115392008-02-25 Jason Rumney <jasonr@gnu.org>
11540
11541 * w32font.c (w32font_draw): Draw one character at a time when padding.
11542
115432008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11544
11545 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11546 Handle a nil arg. Use run_window_configuration_change_hook.
11547 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11548 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11549 Use run_window_configuration_change_hook.
11550
115512008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11552
11553 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11554 1-pixel width.
11555
115562008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11557
11558 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11559 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11560 if the glyph in the font is zero pixel with.
11561
11562 * dispextern.h (struct glyph_string): New member padding_p.
11563
11564 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11565
11566 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11567
11568 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11569
11570 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11571
11572 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11573
115742008-02-25 Jason Rumney <jasonr@gnu.org>
11575
11576 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11577
115782008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11579
11580 Allow fine-grained image-cache flushing.
11581 * dispextern.h (struct image): Add `dependencies' field.
11582 (clear_image_caches): Change arg to Lisp_Object.
11583 * image.c (make_image): Initialize `dependencies' field.
11584 (clear_image_cache): Change arg to allow fine-grained flushing.
11585 Perform the flush even if image-cache-eviction-delay is nil.
11586 (clear_image_caches): Change arg to Lisp_Object.
11587 (Fclear_image_cache): Expand meaning of the argument.
11588 (mark_image): Mark `dependencies' field.
11589 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11590 (lface_hash): Use XHASH rather than XFASTINT.
11591 (face_at_buffer_position): Fix int -> EMACS_INT position.
11592 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11593 (select_frame_for_redisplay): Remove code duplication.
11594 (redisplay_internal): Adapt arg to call to clear_image_caches.
11595
115962008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11597
11598 * s/vms4-0.h:
11599 * s/vms4-2.h:
11600 * s/vms4-4.h:
11601 * s/vms5-5.h: Remove, unused.
11602
11603 * s/irix5-2.h:
11604 * s/irix6-0.h:
11605 * s/riscos5.h:
11606 * s/mach-bsd4-3.h:
11607 * m/mips4.h: Remove files for obsolete systems.
11608
11609 * Makefile.in:
11610 * filelock.c:
11611 * unexmips.c:
11612 * m/hp9000s300.h:
11613 * m/iris4d.h:
11614 * s/aix3-1.h:
11615 * s/hpux.h:
11616 * s/msdos.h:
11617 * s/usg5-0.h:
11618 * s/usg5-2-2.h:
11619 * s/usg5-2.h:
11620 * s/usg5-3.h: Remove references to obsolete variables.
11621
11622 * s/irix5-0.h: Remove, move all the contents ...
11623 * s/irix6-5.h: ... here. Simplify.
11624 * config.in: Regenerate.
11625
116262008-02-24 Jason Rumney <jasonr@gnu.org>
11627
11628 * w32term.c (x_draw_glyph_string_background): Clear the background
11629 manually when cleartype is in use.
11630 (x_draw_glyph_string_foreground): Draw text transparently when
11631 cleartype is in use.
11632
11633 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11634 a font into it unless we have to.
11635
116362008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11637
11638 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11639 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11640
aac0c6e3
MR
116412008-02-18 Jason Rumney <jasonr@gnu.org>
11642
11643 * w32fns.c (Fw32_shell_execute): Encode parameters.
11644
116452008-02-09 Eli Zaretskii <eliz@gnu.org>
11646
11647 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11648
116492008-02-05 Juanma Barranquero <lekktu@gmail.com>
11650
11651 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11652
116532008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11654
11655 * xterm.c (x_set_offset): Don't change the gravity if
11656 CHANGE_GRAVITY is -1.
11657
116582008-02-23 Chong Yidong <cyd@stupidchicken.com>
11659
11660 * fileio.c (auto_save_error_occurred): New var.
11661 (auto_save_error): Set it.
11662 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11663 error occurred.
11664
116652008-02-23 Eli Zaretskii <eliz@gnu.org>
11666
11667 * w32.c (globals_of_w32): Add initializations for
11668 g_b_init_get_sid_sub_authority and
11669 g_b_init_get_sid_sub_authority_count.
11670
116712008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11672
11673 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11674 (font_parse_xlfd): Use them for sanity check.
11675 (Finternal_set_font_style_table): Make sure the table is bijective.
11676
11677 Consolidate the image_cache to the terminal struct.
11678 * termhooks.h (P_): Remove redundant def.
11679 (struct terminal): New field `image_cache'.
11680 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11681 of FRAME_X_IMAGE_CACHE.
11682 * xterm.h (struct x_display_info): Remove image_cache field.
11683 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11684 * w32term.h (struct w32_display_info): Remove image_cache field.
11685 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11686 * macterm.h (struct mac_display_info): Remove image_cache field.
11687 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11688 * xterm.c (x_term_init):
11689 * w32term.c (w32_term_init):
11690 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11691 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11692 Remove declarations.
11693 (clear_image_caches, mark_image_cache): New declarations.
11694 * xfaces.c (clear_face_cache):
11695 * xdisp.c (redisplay_internal): Use clear_image_caches.
11696 * image.c (clear_image_cache): Don't check that a frame is on
11697 a window-system before checking if it shares the same cache.
11698 (clear_image_caches): New function.
11699 (Fclear_image_cache): Use it.
11700 (mark_image): Move from allo.c.
11701 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11702 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11703 (mark_object): Don't call mark_image_cache for frames.
11704 (mark_terminals): Call mark_image_cache.
11705
11706 * lisp.h (Fdelete_terminal): Declare.
11707
11708 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11709 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11710 wrong_type_argument.
11711
117122008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11713
11714 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11715 malayalam.el, and tamil.el. Add sinhala.el.
11716
117172008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11718
11719 * xterm.c (x_connection_closed): Consolidate identical tests.
11720 (x_delete_terminal): Don't crash if called via x_connection_closed.
11721
117222008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11723
11724 * xdisp.c (decode_mode_spec): New arg string.
11725 (display_mode_element): Adjust for the above change.
11726
117272008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11728
11729 * callint.c (Fcall_interactively): Use AREF.
11730
117312008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11732
11733 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11734
117352008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11736
11737 * xfns.c (Fx_show_tip): Set string to " " if empty.
11738
117392008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11740
11741 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11742 with Qt.
11743
117442008-02-17 Kenichi Handa <handa@m17n.org>
11745
11746 * ftfont.c (ftfont_shape): Return Lispy number.
11747
11748 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11749 for GCs.
11750 (Finternal_set_font_selection_order): Call font_update_sort_order
11751 only when enable_font_backend is set.
11752 (realize_x_face): Set face->font_info to that of default face only
11753 when enable_font_backend is set.
11754
11755 * xdisp.c (handle_composition_prop): Set it->c to the fist
11756 character of the composed region.
11757 (fill_composite_glyph_string): Set base_face->font_info to
11758 s->font_info. Get a face for ascii from base_face->ascii_face.
11759 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11760 with a face already decided.
11761 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11762 non-negative.
11763 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11764 call font_prepare_composition unconditionally.
11765
11766 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11767
11768 * xterm.h (struct x_display_info): New member font.
11769
11770 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11771 (x_set_mouse_face_gc, x_new_font): Likewise.
11772 (x_term_init): Setup display_info->font.
11773 (x_delete_terminal): Free display_info->font.
11774
11775 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11776
11777 * ftxfont.c (ftxfont_default_fid): Delete it.
11778 (ftxfont_open): Set xfont->fid to 0.
11779 (ftxfont_end_for_frame): Clear data specific to the frame and the
11780 font-driver.
11781
11782 * xftfont.c (xftfont_default_fid): Delete it.
11783 (xftfont_open): Set xfont->fid to 0.
11784
11785 * fontset.c (FONTSET_OBJLIST): New macro.
11786 (fontset_find_font): Update font-object list of the fontset.
11787 (free_realized_fontset): New function.
11788 (free_face_fontset): Call free_realized_fontset.
11789 (Ffont_info): Call font_close_object only when enable_font_backend
11790 is set.
11791
11792 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11793 [HAVE_NTGUI]: Include w32term.h.
11794 [MAC_OS]: Include macterm.ch.
11795 (font_otf_ValueRecord): Use make_number.
11796 (font_finish_cache): Fix handling of reference count.
11797 (font_clear_cache): Update num_fonts.
11798 (font_open_entity): Update smallest_char_width and
11799 smallest_font_height of the frame.
11800 (font_close_object): Update num_fonts.
11801 (Fclear_font_cache): Fix finding the target cache data.
11802
118032008-02-16 Glenn Morris <rgm@gnu.org>
11804
11805 * fontset.c (Finternal_char_font): Fix compilation warning.
11806
118072008-02-16 Eli Zaretskii <eliz@gnu.org>
11808
11809 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11810 instead of char arrays. Enlarge the size of array passed to
11811 get_token_information.
11812
11813 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11814 warnings.
11815
118162008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11817
11818 * .gdbinit: Don't set `args', it breaks gdb --args.
11819
118202008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11821
11822 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11823 within a narrowed buffer.
11824
118252008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11826
11827 * coding.c (decode_coding_object, encode_coding_object):
11828 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11829
118302008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11831
11832 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11833 hardcoding 1.
11834 (detect_coding_system):
11835 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11836 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11837 * insdel.c (insert_from_gap):
11838 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11839 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11840 (string_to_multibyte):
11841 * character.c (chars_in_text, multibyte_chars_in_text):
11842 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11843
11844 * character.h (FETCH_STRING_CHAR_ADVANCE)
11845 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11846 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11847 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11848
11849 * casefiddle.c (casify_region): Only call after-change and composition
11850 functions on the part of the region that was changed.
11851
11852 * keyboard.c (read_avail_input):
11853 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11854
118552008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11856
11857 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11858 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11859
118602008-02-11 Juanma Barranquero <lekktu@gmail.com>
11861
11862 * w32menu.c (push_submenu_start, push_submenu_end)
11863 (push_left_right_boundary, push_menu_pane, push_menu_item):
11864 * keyboard.c (read_key_sequence): Don't pass args with side effects
11865 to AREF, it fails when compiling with -DENABLE_CHECKING.
11866
118672008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11868
11869 * Makefile.in (${lispsource}international/charprop.el):
11870 Delete this target.
11871
11872 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11873 emacs-unicode-2.
11874
118752008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11876
11877 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11878
118792008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11880
11881 * frame.c (Qnoelisp): New symbol.
11882 (syms_of_frame): Initialize it.
11883 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11884 harmless Elisp code, from a strong `force' from x_connection_closed.
11885 * frame.h (Qnoelisp): Declare.
11886 * xterm.c (x_connection_closed): Pass `noelisp'.
11887
11888 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11889 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11890 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11891 rather than `int' for the type of `type'.
11892
118932008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11894
11895 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11896
11897 * Makefile.in (GNUC): Remove support for gcc-1.x.
11898
118992008-02-10 Richard Stallman <rms@gnu.org>
11900
11901 * lisp.h (ASET): Use AREF, not ASLOT.
11902
119032008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11904
11905 * lisp.h (ASET): Check bounds.
11906
119072008-02-10 Glenn Morris <rgm@gnu.org>
11908
11909 * buffer.c (mode-name): Doc fix.
11910
119112008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11912
11913 * Makefile.in:
11914 * emacs.c:
11915 * gmalloc.c:
11916 * keyboard.c:
11917 * lisp.h:
11918 * m/ibm370aix.h:
11919 * process.c:
11920 * regex.c:
11921 * s/hpux.h:
11922 * sysdep.c:
11923 * sysselect.h:
11924 * systty.h:
11925 * unexec.c:
11926 * w32term.c:
11927 * xsmfns.c:
11928 * xterm.c: Remove code that deals with obsolete variables.
11929
11930 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11931
11932 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11933 nothing else needs it anymore.
11934
119352008-02-09 Eli Zaretskii <eliz@gnu.org>
11936
11937 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11938 instead of unibyte_char_to_multibyte.
11939
119402008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11941
11942 * s/gnu-linux.h: Remove commented out code.
11943
11944 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11945
11946 * Makefile.in: Update what RMS says about using autoconf.
11947 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11948 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11949 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11950 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11951
119522008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11953
11954 * keymap.c (Fkey_description): Move side effect outside of macro call.
11955
11956 * xfaces.c (Finternal_make_lisp_face):
11957 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11958
11959 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11960 (syms_of_fontset): Use ASET.
11961
11962 * fns.c (concat): Move side effect outside of macro call.
11963 (hash_clear): Use ASET.
11964
119652008-02-08 Richard Stallman <rms@gnu.org>
11966
11967 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11968 If FORCE, and frame has a surrogate minibuffer for another frame,
11969 delete the other frame first.
11970
119712008-02-07 Timo Savola <timo.savola@iki.fi>
11972
11973 * xterm.c (x_detect_focus_change): Handle embed client message.
11974 (handle_one_xevent): Ditto.
11975 (handle_one_xevent): If embedded and we get a button press/release,
11976 request focus.
11977 (xembed_set_info, xembed_send_message): New functions.
11978 (x_make_frame_visible): Call xembed_set_info if embedded.
11979 (x_make_frame_invisible): Call xembed_set_info if embedded.
11980 (x_term_init): Initialize Xatom_XEMBED.
11981 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11982 (x_iconify_frame): Ditto.
11983
11984 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11985 (enum xembed_info, enum xembed_message, enum xembed_focus)
11986 (enum xembed_modifier, enum xembed_accelerator): New.
11987 (xembed_set_info, xembed_send_message): Declare.
11988 (FRAME_X_EMBEDDED_P): New.
11989
11990 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11991 gtk_plug_new.
11992
11993 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11994 window ID of a frame.
11995 (x_window): Reparent frame if embedded.
11996 (Fx_create_frame): Don't set border width if embedded.
11997
11998 * emacs.c (USAGE3): Add --parent-id.
11999 (standard_args): Ditto.
12000
120012008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12002
12003 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12004
120052008-02-07 Jim Meyering <meyering@redhat.com>
12006
12007 Use "do...while (0)", not "if (1)...else" in macro definitions.
12008 The latter provokes a warning from gcc about the empty else, when
12009 followed by ";". Also, without that trailing semicolon, it would
12010 silently swallow up any following statement.
12011 * syntax.h (SETUP_SYNTAX_TABLE)
12012 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12013 * buffer.h (DECODE_POSITION): Likewise.
12014 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12015 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12016 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12017 (FETCH_CHAR_ADVANCE): Likewise.
12018 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12019
120202008-02-07 Jim Meyering <meyering@redhat.com>
12021
12022 * lread.c [lint]: Don't include <sys/inode.h>.
12023
120242008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12025
12026 * xselect.c (x_handle_dnd_message):
12027 * xmenu.c (digest_single_submenu, xmenu_show):
12028 * xdisp.c (with_echo_area_buffer_unwind_data)
12029 (format_mode_line_unwind_data, unwind_format_mode_line)
12030 (display_menu_bar):
12031 * eval.c (Ffetch_bytecode):
12032 * doc.c (store_function_docstring):
12033 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12034 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12035 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12036
120372008-02-07 Kenichi Handa <handa@m17n.org>
12038
12039 * ftxfont.c (ftxfont_open): Don't set
12040 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12041
12042 * ftfont.c (ftfont_open): Fix previous change.
12043
120442008-02-06 Jason Rumney <jasonr@gnu.org>
12045
12046 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12047 Use cached metrics for ASCII characters.
12048 (w32font_open_internal): Don't set font's owning_frame.
12049 Cache metrics for ASCII characters.
12050
12051 * w32font.h (struct w32font_info): Add ascii_metrics.
12052 Remove owning_frame.
12053
120542008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12055
12056 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12057 to negative value.
12058
12059 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12060
12061 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12062
12063 * charset.c (syms_of_charset): Set QCtest and Qeq.
12064
120652008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12066
12067 * process.c (Fstart_process):
12068 * callproc.c (Fcall_process): Handle the case where
12069 Funhandled_file_name_directory returns nil.
12070
12071 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12072 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12073 * font.c (check_gstring): Use them and AREF to access the vector before
12074 we know it's really a gstring.
12075 (Ffont_shape_text): Fix typo.
46e722a9 12076 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12077
12078 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12079 Declare.
12080
12081 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12082
120832008-02-05 Jason Rumney <jasonr@gnu.org>
12084
12085 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12086 Set smallest_font_height and smallest_char_width in display info.
12087
120882008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12089
12090 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12091
120922008-02-05 Miles Bader <miles@gnu.org>
12093
12094 * xfaces.c (get_lface_attributes, merge_named_face)
12095 (lookup_named_face, lookup_derived_face, realize_named_face):
12096 Revert 2008-02-01 change by cyd@stupidchicken.com.
12097
120982008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12099
12100 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12101 fallback fonts.
12102 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12103
121042008-02-04 Jason Rumney <jasonr@gnu.org>
12105
12106 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12107 set full_name.
12108 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12109
121102008-02-03 Jason Rumney <jasonr@gnu.org>
12111
12112 * makefile.w32-in (OBJ1): Include font.o here.
12113 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12114
121152008-02-02 Jason Rumney <jasonr@gnu.org>
12116
12117 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12118
121192008-02-01 Jason Rumney <jasonr@gnu.org>
12120
12121 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12122
12123 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12124
121252008-02-01 Andreas Schwab <schwab@suse.de>
12126
12127 * Makefile.in (shortlisp, lisp): Update for rename of
12128 ../lisp/language/myanmar.el.
12129
121302008-02-01 Chong Yidong <cyd@stupidchicken.com>
12131
12132 * xfaces.c (get_lface_attributes): Delete function.
12133 (merge_named_face, lookup_named_face, lookup_derived_face)
12134 (realize_named_face): Call lface_from_face_name directly, and use
12135 the fact that merge_face_vectors does not alter its FROM argument.
12136
121372008-02-01 Jason Rumney <jasonr@gnu.org>
12138
12139 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12140 input in the default locale. Handle non-Unicode multibyte input.
12141
121422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12143
12144 * fontset.c (reorder_font_vector): Exclude nil elements from the
12145 font group. Don't try multiple fonts.
12146 (fontset_font): Adjust for the above change.
12147 (Finternal_char_font): Return nil if the found font doesn't
12148 contain the character ch.
12149
12150 * Makefile.in (lisp, shortlisp): Add cham.el.
12151
121522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12153
12154 * font.h (FONTP): Make it return 1 also for a font-object.
12155
12156 * .gdbinit (xfontset): New function.
12157
12158 * font.c (font_find_for_lface): Check if the character C is
12159 supported or not only for the first font.
12160
12161 * fontset.c (reorder_font_vector): Fix typo.
12162 (fontset_find_font): Don't add a font-spec specifying a script.
12163 Use 0 (not Qt) for the indication of empty font-group. Change the
12164 format of RFONT-DEF. Return Qt if no font in the font-group
12165 support the character.
12166 (fontset_font): Adjust for the above change. If no font was
12167 found the character, remember that.
12168 (face_for_char): Adjust for the change of RFONT-DEF.
12169 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12170 no font for the target.
12171 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12172
121732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12174
12175 * font.c (font_load_for_face): Handle the case that the font in
12176 face->lface is a string.
12177
121782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12179
12180 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12181
121822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12183
12184 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12185 Fix previous change. If the frame is not on a window system,
12186 signal an error.
12187
121882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12189
12190 * coding.c (decode_coding_object, encode_coding_object): Adjust
12191 marker positions after conversion.
12192
12193 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12194
121952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12196
12197 * font.c (font_find_for_lface): Fix the handling of the return
12198 value of font_has_char.
12199 (Ffont_shape_text): Fix previous change.
12200
12201 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12202 (fontset_ref_and_range): Delete it.
12203 (fontset_find_font): Call char_table_ref_and_range instead of
12204 FONTSET_REF_AND_RANGE.
12205 (make_fontset): Don't setup font groups of Latin here.
12206 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12207 (new_fontset_from_font): Make the specified font the default for
12208 all Latin characters.
12209
122102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12211
12212 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12213 is on a window system before accessing the fontset of the frame.
12214
122152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12216
12217 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12218
12219 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12220 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12221
12222 * font.c (Ffont_shape_text): If the font driver doesn't have a
12223 shaper function, make zero-width glyphs to have at least one-pixel
12224 width. Fix setting of `to' field of glyphs.
12225
122262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12227
12228 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12229 glyphs.
12230
12231 * font.h (struct font_driver): Improve docstring of member `shape'.
12232
122332008-02-01 Kenichi Handa <handa@m17n.org>
12234
12235 * composite.c (syms_of_composite): Fix docstring of
12236 auto-composition-function.
12237
12238 * font.h (LGLYPH_SIZE): New macro.
12239
12240 * font.c (Ffont_fill_gstring): Stop filling when a character not
12241 supported by the font is found.
12242 (Ffont_shape_text): When a shape callback function returns nil,
12243 try at most two more times with larger gstring.
12244 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12245
12246 * xdisp.c (handle_auto_composed_prop): Change the argument to
12247 auto-composition-function.
12248
12249 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12250 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12251 Lispy glyph and store it in the lgstring.
12252
12253 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12254
12255 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12256
122572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12258
12259 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12260
12261 * fontset.c (Vfont_encoding_charset_alist): New variable.
12262 (syms_of_fontset): DEFVAR it.
12263 (reorder_font_vector, fontset_find_font): Optimize for the case of
12264 no need of reordering.
12265 (face_for_char): Map the charset property by
12266 Vfont_encoding_charset_alist.
12267
122682008-02-01 Jason Rumney <jasonr@gnu.org>
12269
12270 * w32font.c (logfonts_match): Don't check adstyle here.
12271 (font_matches_spec): Check here against physical font instead.
12272 (add_font_entity_to_list): Avoid some substitutions.
12273
12274 * font.c (font_parse_fcname): Default weight and slant to normal.
12275 (font_score): Prefer normal fonts if weight or slant unspecified.
12276 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12277 match freetype scores.
12278
122792008-02-01 Jason Rumney <jasonr@gnu.org>
12280
12281 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12282 font, as it may have been deleted.
12283 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12284 most common hyphenless variation.
12285 (logfonts_match): Check generic family.
12286 (font_matches_spec): Don't check generic family here.
12287 (fill_in_logfont): Set generic family based on adstyle.
12288
12289 * w32font.h (w32font_get_cache): Update declaration.
12290
122912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12292
12293 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12294
12295 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12296 If none of the new drivers are available, call font_update_drivers
12297 with the old drivers.
12298
12299 * w32font.c (w32font_get_cache): Adjust the argument type.
12300
12301 * xfont.c (xfont_get_cache): Adjust the argument type.
12302
12303 * font.h (struct font_driver): Change argument type of get_cache.
12304
12305 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12306
12307 * font.c (Ffont_get): Fix arguments to Fassoc.
12308 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12309 (font_clear_cache): New function.
12310 (font_list_entities, font_matching_entity): Use font_get_cache.
12311 (font_update_drivers): Call font_clear_cache when finishing a driver.
12312
12313 * fontset.c (fontset_find_font): Fix previous change.
12314
123152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12316
12317 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12318 dpyinfo->font_table.
12319 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12320 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12321
12322 * font.c (font_at): Handle the case that the arg C is negative.
12323 Handle the unibyte case.
12324 (Ffont_at): Call font_at with the arg C -1.
12325
12326 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12327 the position here, and call font_at with the arg C -1.
12328 Don't check the range of the existing composition at the point.
12329
123302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12331
12332 * fontset.c (fontset_add): New args charset_id and family.
12333 Change caller.
12334 (load_font_get_repertory, fontset_find_font): Assume that
12335 font_spec is always a font-spec object.
12336 (Fset_fontset_font): Always store a font-spec object in a fontset.
12337
12338 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12339 instead of get_property_and_range.
12340
123412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12342
12343 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12344 (xftfont_open): Don't keep locking face.
12345 (xftfont_close): Don't unlock face.
12346 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12347
12348 * fontset.c (fontset_find_font): Don't prefer a font of
12349 supplementary charset.
12350
123512008-02-01 Kenichi Handa <handa@m17n.org>
12352
12353 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12354 script, langsys_tag to langsys, new member script.
12355 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12356 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12357 listing to the script specified in that property. Fix arg to
12358 OTF_check_features.
12359
123602008-02-01 Jason Rumney <jasonr@gnu.org>
12361
12362 * w32font.h: New file.
12363
12364 * w32font.c: Include it.
12365 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12366 (w32font_open): Set owning_frame.
12367 (w32font_text_extents): Use owning_frame.
12368 (struct font_callback_data): Add opentype_only field.
12369 (add_font_entity_to_list): Use it to filter fonts.
12370 Don't check against full name.
12371 (w32font_list_internal): New function.
12372 (w32font_list): Use it.
12373 (w32font_match_internal): New function.
12374 (w32font_match): Use it.
12375 (w32font_open_internal): New function.
12376 (w32font_open): Use it.
12377 (w32font_get_cache, w32font_close, w32font_has_char)
12378 (w32font_encode_char, w32font_text_extents, w32font_draw):
12379 Make non-static.
12380
12381 * makefile.w32-in (w32font.o): Depend on w32font.h.
12382
123832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12384
12385 * charset.c (Fdefine_charset_internal): Record a supplementary
12386 charset at the tail of Vcharset_order_list.
12387
12388 * font.c (Ffont_shape_text): Fix the return value.
12389
12390 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12391
12392 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12393
123942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12395
12396 * ftfont.c (struct OpenTypeSpec): New struct.
12397 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12398 (ftfont_get_open_type_spec): New function.
12399 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12400
12401 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12402
124032008-02-01 Jason Rumney <jasonr@gnu.org>
12404
12405 * w32font.c (add_font_entity_to_list): Compare only the beginning
12406 of full name.
12407
124082008-02-01 Kenichi Handa <handa@m17n.org>
12409
12410 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12411 Never return HANDLED_RECOMPUTE_PROPS.
12412
124132008-02-01 Kenichi Handa <handa@m17n.org>
12414
12415 * font.c (font_gstring_produce): Delete it.
12416
12417 * composite.h (COMPOSITION_METHOD):
12418 Handle COMPOSITION_WITH_GLYPH_STRING.
12419
124202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12421
12422 * xfont.c (Qx): Delete.
12423 (syms_of_xfont): Don't initialize Qx.
12424
12425 * composite.h (enum composition_method):
12426 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12427
124282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12429
12430 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12431 (choose_face_font): Accept new form of font-spec.
12432
12433 * frame.h (font_driver_list): Declare it unconditionally.
12434 (struct frame): Define members font_driver_list and font_data_list
12435 unconditionally.
12436
12437 * fontset.c: Include "font.h" unconditionally.
12438 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12439 (Fset_fontset_font): Accept a font-spec object.
12440
12441 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12442 PIXEL_SIZE part a wild card.
12443
12444 * dispextern.h (struct glyph_string): Define members clip and
12445 num_clips unconditionally.
12446 (struct face): Define members font_info and extra unconditionally.
12447
12448 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12449 ftfont_info only when HAVE_LIBOTF is defined.
12450
124512008-02-01 Andreas Schwab <schwab@suse.de>
12452
12453 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12454 and end.
12455
124562008-02-01 Jason Rumney <jasonr@gnu.org>
12457
12458 * w32font.c (w32font_driver): Add new fields.
12459
124602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12461
12462 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12463 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12464 (LIBES): Add @M17N_FLT_CFLAGS@.
12465
12466 * composite.c (compose_text): Don't treat the new style
12467 composition specially.
12468
12469 * emacs.c (main): Call syms_of_font unconditionally.
12470
12471 * font.h (FONT_ENTITY_NOT_LOADABLE)
12472 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12473 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12474 (struct font_driver): New member shape.
12475 (font_registry_charsets): Extern it.
12476 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12477 (font_otf_capability, font_drive_otf): Delete their externs.
12478
12479 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12480 (font_charset_alist, font_registry_charsets): Move from xfont.c
12481 and rename.
12482 (font_prop_validate_otf): New function.
12483 (font_property_table): Register it for QCotf.
12484 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12485 (font_drive_otf): Delete.
12486 (font_prepare_composition): New arg F. Adjust for the change of
12487 lispy gstring.
12488 (font_find_for_lface): New arg C.
12489 (font_load_for_face): Adjust for the change of font_find_for_lface.
12490 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12491 lispy gstring.
12492 (Ffont_shape_text): New function.
12493 (Fopen_font): If the font size is not given, use 12-pixel.
12494 (Ffont_at): New arg STRING.
12495 (syms_of_font): Initalize font_charset_alist.
12496 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12497 conditionally.
12498
12499 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12500 fonts of the same font-spec. Change the format of RFONT-DEF.
12501 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12502 Adjust for the change of RFONT-DEF.
12503 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12504
12505 * ftfont.h: New file.
12506
12507 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12508 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12509 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12510 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12511 font_otf_capability and font_drive_otf, set ftfont_shape.
12512 (ftfont_list): Adjust for the change of :otf property value.
12513 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12514 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12515 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12516 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12517 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12518 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12519
12520 * w32term.c (x_draw_composite_glyph_string_foreground):
12521 Adjust for the change of lispy gstring.
12522
12523 * xdisp.c (handle_composition_prop): Adjust for the change of
12524 lispy gstring. Call a function for auto-composition with the
12525 third arg it->window.
12526 (fill_composite_glyph_string): Adjust for the change of lispy string.
12527 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12528
12529 * xfaces.c (set_font_frame_param): Adjust for the change of
12530 font_find_for_lface.
12531
12532 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12533 (xfont_registry_charsets): Likewise. Change caller.
12534 (syms_of_xfont): Don't handle x_font_charset_alist.
12535
12536 * xftfont.c: Include "ftfont.h".
12537 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12538 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12539 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12540 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12541 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12542 Set xftfont_driver.shape to xftfont_shape.
12543
12544 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12545 the change of lispy gstring.
12546
125472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12548
12549 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12550
125512008-02-01 Jason Rumney <jasonr@gnu.org>
12552
12553 * w32font.c (w32font_draw): Fill background manually.
12554
125552008-02-01 Jason Rumney <jasonr@gnu.org>
12556
12557 * font.c (Qfontp): Remove unused symbol.
12558 (QCantialias): New symbol.
12559 (syms_of_font): Define it.
12560 (font_property_table): Set a validator for QCantialias.
12561
12562 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12563 Define if not already.
12564 (QCfamily): Share with xfaces.c.
12565 (Qstandard, Qsubpixel, Qnatural): New symbols.
12566 (syms_of_w32font): Define them. Don't define QCfamily here.
12567 (w32_antialias_type, lispy_antialias_type): New functions.
12568 (w32_enumfont_pattern_entity): New arg requested_font.
12569 Set antialias parameter if non-default was requested.
12570 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12571
125722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12573
12574 * lread.c (read1): Undo the previous change.
12575
125762008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12577
12578 * frame.c (Fdelete_frame): Call font_update_drivers only when
12579 USE_FONT_BACKEND is defined.
12580
125812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12582
12583 * font.h (struct font_bitmap): New member bits_per_pixel.
12584 (struct font_driver): New members start_for_frame and end_for_frame.
12585 (struct font_data_list): New struct.
12586 (font_put_frame_data, font_get_frame_data): Extern them.
12587
12588 * frame.h (struct frame): New member font_data_list.
12589
12590 * font.c (font_update_drivers): Call driver->start_for_frame and
12591 driver->end_for_frame at proper timings.
12592 (font_put_frame_data, font_get_frame_data): New functions.
12593 (Ffont_spec): Add usage in the docstring.
12594
12595 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12596 (Fdelete_frame): Call font_update_drivers.
12597
12598 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12599 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12600 (xftfont_get_xft_draw): New function.
12601 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12602 (xftfont_end_for_frame): New function.
12603 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12604
12605 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12606 Change argument. Cache GCs in the per-frame data.
12607 (struct ftxfont_frame_data): New struct.
12608 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12609 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12610 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12611 (ftxfont_end_for_frame): New function.
12612 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12613
12614 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12615
126162008-02-01 Kenichi Handa <handa@m17n.org>
12617
12618 * xselect.c (Vselection_coding_system)
12619 (Vnext_selection_coding_system): Delete them.
12620 (syms_of_xselect): Don't declare selection-coding-system and
12621 next-selection-coding-system. They are declared in select.el.
12622
126232008-02-01 Jason Rumney <jasonr@gnu.org>
12624
12625 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12626
12627 * w32fns.c: Include imm.h.
12628 (get_composition_string_fn, get_ime_context_fn): New optional
12629 system functions.
12630 (globals_of_w32fns): Load them from imm32.dll.
12631 (ignore_ime_char): New flag.
12632 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12633 WM_IME_ENDCOMPOSITION messages.
12634
12635 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12636 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12637
126382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12639
12640 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12641 (READCHAR_REPORT_MULTIBYTE): New macro.
12642 (readchar): New 2nd arg MULTIBYTE.
12643 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12644 Make symbol's name multibyte according to the multibyteness of the
12645 source.
12646
126472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12648
12649 * xfaces.c (face_for_overlay_string): Call lookup_face with
12650 correct arguments (fix of synching with the trunk).
12651
126522008-02-01 Kenichi Handa <handa@m17n.org>
12653
12654 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12655 (font_prop_validate_non_neg, font_prop_validate_spacing):
12656 Delete argument prop_index.
12657 (font_property_table): Change arguments to validater. Change Callers.
12658 (font_lispy_object): Delete.
12659 (font_at): Use font_find_object instead fo font_lispy_object.
12660
126612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12662
12663 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12664 and file names.
12665
126662008-02-01 Jason Rumney <jasonr@gnu.org>
12667
12668 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12669 (font_matches_spec): Remove debug output.
12670 (add_font_entity_to_list): Avoid using substituted fonts.
12671
126722008-02-01 Jason Rumney <jasonr@gnu.org>
12673
12674 * doc.c (Fsnarf_documentation):
12675 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12676
126772008-02-01 Miles Bader <miles@gnu.org>
12678
12679 * dispextern.h (struct glyph_row): Only define "clip" field if
12680 HAVE_WINDOW_SYSTEM is defined.
12681
126822008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12683
12684 Fix up multi-tty merge.
12685
12686 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12687 and indentation.
12688
12689 * xfaces.c (free_realized_face, clear_face_gcs):
12690 Include font_done_for_face in the input_blocked section, just in case.
12691
12692 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12693 (get_char_face_and_encoding): Undo last change and remove the *other*
12694 duplicate definition (i.e. keep the one that's better scoped and that
12695 includes code for the font-backend).
12696
12697 * terminal.c (create_terminal): Default keyboard_coding to
12698 `no-conversion' and terminal_coding to `undecided'.
12699
12700 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12701
12702 * fontset.c (free_realized_fontsets): Check that the table entry does
12703 contain a fontset before trying to compare it to `base'.
12704
12705 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12706 syms_of_charset, and syms_of_coding earlier because init_window_once
12707 now needs Vcoding_system_hash_table to be setup.
12708
12709 * coding.h (default_buffer_file_coding): Remove.
12710
12711 * coding.c (default_buffer_file_coding): Remove.
12712 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12713 than ->symbol, and use the terminal-local coding system.
12714 (syms_of_coding): Don't setup the coding-systems that are not
12715 terminal-local.
12716 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12717
12718 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12719 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12720
12721 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12722 in chartab.c and were re-added here by mistake.
12723 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12724
12725 * doc.c (Fsnarf_documentation):
12726 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12727 src to etc.
12728
12729 * ChangeLog.10: Add mistakenly removed entry.
12730
127312008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12732
12733 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12734
127352008-02-01 Miles Bader <miles@gnu.org>
12736
12737 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12738 Add extra args to FACE_FOR_CHAR.
12739
127402008-02-01 Kenichi Handa <handa@m17n.org>
12741
12742 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12743 in sequence.
12744
12745 * chartab.c (map_sub_char_table, map_char_table): If the range
12746 contains just one character, call the function with that character
12747 even if the depth is not 3.
12748
127492008-02-01 Jason Rumney <jasonr@gnu.org>
12750
12751 * w32font.c (w32font_text_extents): Calculate metrics for the
12752 whole string.
12753
127542008-02-01 Jason Rumney <jasonr@gnu.org>
12755
12756 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12757
127582008-02-01 Jason Rumney <jasonr@gnu.org>
12759
12760 * w32term.c (x_set_glyph_string_clipping): Use
12761 get_glyph_string_clip_rects.
12762 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12763 Adjust for the change of struct glyph_string.
12764
12765 * w32font.c (w32font_draw): Do clipping here.
12766
127672008-02-01 Kenichi Handa <handa@m17n.org>
12768
12769 * xftfont.c (xftfont_draw): Adjust for the change of struct
12770 glyph_string.
12771
12772 * xterm.c (x_set_glyph_string_clipping): Use
12773 get_glyph_string_clip_rects.
12774 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12775 Adjust for the change of struct glyph_string.
12776
12777 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12778 the resulting clip(s}.
12779 (expose_overlaps): Add arg r. Change callers. Set it to
12780 row->clip temporarily.
12781 (expose_window): Redraw rows overlapping the exposed area.
12782
12783 * dispextern.h (struct glyph_row): New member clip.
12784 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12785 clip_height, new member clip, and num_clips.
12786
127872008-02-01 Kenichi Handa <handa@m17n.org>
12788
12789 * data.c (Fchar_or_string_p): Fix docstring.
12790
127912008-02-01 Kenichi Handa <handa@m17n.org>
12792
12793 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12794 create a temporary XftDraw object.
12795
127962008-02-01 Kenichi Handa <handa@m17n.org>
12797
12798 * font.c (Ffontp): Fix docstring.
12799
12800 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12801 strong evidence of ISO-2022.
12802
128032008-02-01 Kenichi Handa <handa@m17n.org>
12804
12805 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12806 SYNTAX_ENTRY_FOLLOW_PARENT.
12807
128082008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12809
12810 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12811 its type.
12812 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12813 Update to the new type of weak_hash_tables and next_weak.
12814
12815 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12816 a plain C pointer to Lisp_Hash_Table.
12817
12818 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12819 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12820 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12821 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12822 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12823 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12824 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12825 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12826 (GC_EQ): Remove since they've been identical to their non-GC_
12827 alter-egos ever since the markbit was eradicated.
12828
12829 * alloc.c:
12830 * buffer.c:
12831 * buffer.h:
12832 * data.c:
12833 * fileio.c:
12834 * filelock.c:
12835 * fns.c:
12836 * frame.h:
12837 * lisp.h:
12838 * macterm.c:
12839 * print.c:
12840 * process.c:
12841 * w32fns.c:
12842 * w32menu.c:
12843 * w32term.c:
12844 * xfns.c:
12845 * xmenu.c:
12846 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12847
128482008-02-01 Kenichi Handa <handa@m17n.org>
12849
12850 * chartab.c (map_sub_char_table): Make it work for the top-level
12851 char-table. Fix handling of parent char-table.
12852 (map_char_table): Adjust for the above change.
12853
128542008-02-01 Jason Rumney <jasonr@gnu.org>
12855
12856 * w32font.c (Qgdi): Rename from Qw32.
12857
128582008-02-01 Jason Rumney <jasonr@gnu.org>
12859
12860 * w32bdf.c (get_quoted_string): Make function static.
12861
128622008-02-01 Kenichi Handa <handa@m17n.org>
12863
12864 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12865 bigger ascent and descent than those of the font, use them as
12866 font's ascent and descent.
12867
128682008-02-01 Kenichi Handa <handa@m17n.org>
12869
12870 * Makefile.in (${lispsource}international/charprop.el): Move this
12871 target within "#ifdef HAVE_UNIDATA" and "#endif".
12872
128732008-02-01 Kenichi Handa <handa@m17n.org>
12874
12875 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12876 (shortlisp): Add ../lisp/language/tai-viet.el.
12877
128782008-02-01 Ulrich Mueller <ulm@gentoo.org>
12879
12880 * Makefile.in (${lispsource}international/charprop.el): Depend on
12881 temacs${EXEEXT}.
12882
128832008-02-01 Jason Rumney <jasonr@gnu.org>
12884
12885 * w32font.c (w32font_close): Delete the GDI font object.
12886
12887 * w32menu.c: Include character.h.
12888
12889 * w32proc.c: Likewise.
12890
12891 * w32select.c: Likewise.
12892
12893 * makefile.w32-in (w32proc.o): Depend on character.h.
12894
128952008-02-01 Jason Rumney <jasonr@gnu.org>
12896
12897 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12898
12899 * w32menu.c (syms_of_w32menu): Likewise.
12900
12901 * w32proc.c (syms_of_ntproc): Likewise.
12902
12903 * w32select.c (syms_of_w32select): Likewise.
12904
12905 * w32term.c (syms_of_w32term): Likewise.
12906
129072008-02-01 Jason Rumney <jasonr@gnu.org>
12908
12909 * w32font.c (w32font_draw): Delete brush after using it.
12910
129112008-02-01 Jason Rumney <jasonr@gnu.org>
12912
12913 * w32font.c (w32font_open): Don't set font_idx.
12914 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12915 to font settings.
12916 (w32font_draw): Fill background explicitly.
12917
129182008-02-01 Jason Rumney <jasonr@gnu.org>
12919
12920 * w32term.c (w32_initialize): Don't call w32font_initialize.
12921
12922 * w32font.c (w32font_info): Remove subranges.
12923 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12924 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12925 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12926 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12927 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12928 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12929 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12930 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12931 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12932 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12933 New symbols.
12934 (font_callback_data): New struct.
12935 (w32font_list, w32font_match): Use it.
12936 (w32font_open): Don't populate subranges.
12937 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12938 (w32font_encode_char): Always return unicode code-point as-is.
12939 (w32font_text_extents): Supply a transformation matrix to
12940 GetGlyphOutline. Never look up by glyph index. Avoid looping
12941 twice. Use unicode version of GetTexExtentPoint32 instead of
12942 glyph index version.
12943 (set_fonts_frame): Remove.
12944 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12945 set frame parameter. Use backward compatible fake foundries.
12946 Save generic family in extra slot under QCfamily. Make width slot
12947 constant. Save QCspacing value. Save list of scripts instead of
12948 binary subranges.
12949 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12950 (add_font_entity_to_list): Use font_callback_data struct. Filter
12951 unwanted fonts.
12952 (add_one_font_entity_to_list): Use font_callback_data struct.
12953 (w32_registry): Default to iso10646_1.
12954 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12955 string font registries. Don't fill in font name if it is a generic
12956 family name, fill family instead. Use spacing, family and script
12957 extra info to fill pitch, family and charset fields.
12958 (list_all_matching_fonts): Use font_callback_data struct.
12959 (unicode_range_for_char): Remove.
12960 (font_supported_scripts): New function.
12961 (w32font_initialize): Remove.
12962 (syms_of_w32font): Update which symbols are defined.
12963
129642008-02-01 Jason Rumney <jasonr@gnu.org>
12965
12966 * font.c (font_pixel_size): Reverse assq_no_quit args.
12967
12968 * w32term.h (FONT_WIDTH): Report max width, not average.
12969 (FONT_MAX_WIDTH): Remove.
12970 (FONT_AVG_WIDTH): New macro.
12971
12972 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12973 redefinition of FONT_WIDTH.
12974
12975 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12976 (w32_cache_char_metrics): Use FONT_WIDTH.
12977
12978 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12979
129802008-02-01 Jason Rumney <jasonr@gnu.org>
12981
12982 * w32font.c (w32font_open): Make lfHeight negative.
12983
12984 * w32fns.c (x_default_font_parameter): Use new style font name.
12985 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12986
129872008-02-01 Jason Rumney <jasonr@gnu.org>
12988
12989 * w32font.c (QCsubranges): New symbol.
12990 (w32font_open, w32font_has_char): Get subranges from subproperty
12991 of extra.
12992 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12993 (syms_of_w32font): Define :subranges symbol.
12994
12995 * font.c (font_put_extra): Expose externally.
12996
12997 * font.h (font_put_extra): Move declaration from font.c.
12998
12999 * font.c (Ffont_get): Use font driver to determine otf capability.
13000 (adjust_anchor): Check if driver defines anchor_point before using.
13001
13002 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13003 (w32font_draw): Use options.
13004 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13005 Fix detection of truetype fonts.
13006 (registry_to_w32_charset): Handle charsets other than iso8859-1
13007 expressed as lisp symbols.
13008 (w32_registry): Express charset as lisp symbol.
13009 (fill_in_logfont): Reverse pixel and point height logic.
13010 Don't set width here. Set quality to default.
13011
13012 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13013 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13014
13015 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13016 Remove redundant loop and allocation.
13017
13018 * makefile.w32-in (font.o, w32font.o): New objects.
13019 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13020 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13021
13022 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13023 STORE_XCHARB a valid l-value.
13024
13025 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13026 calculations for non-Truetype fonts.
13027 (x_draw_glyph_string): Sync with xterm.c.
13028 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13029 Remove redundant code.
13030 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13031
13032 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13033 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13034
13035 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13036 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13037
13038 * w32font.c: New file for w32 font backend.
13039
130402008-02-01 Kenichi Handa <handa@m17n.org>
13041
13042 * term.c: Don't include "buffer.h" twice.
13043
130442008-02-01 Kenichi Handa <handa@m17n.org>
13045
13046 * character.c (Funibyte_string): New function.
13047 (syms_of_character): Defsubr it.
13048
130492008-02-01 Jason Rumney <jasonr@gnu.org>
13050
13051 * w32term.c [USE_FONT_BACKEND]:
13052 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13053 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13054 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13055 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13056 (x_free_frame_resources): Sync with xterm.c.
13057
130582008-02-01 Andreas Schwab <schwab@suse.de>
13059
13060 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13061 char-table size.
13062
130632008-02-01 Kenichi Handa <handa@m17n.org>
13064
13065 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13066
130672008-02-01 Kenichi Handa <handa@m17n.org>
13068
13069 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13070 font_otf_gpos, add font_drive_otf.
13071
13072 * fontset.c (fontset_find_font): Pay attention to font size
13073 specified for a font.
13074 (reorder_font_vector): Check contents of font_def.
13075
13076 * font.c (struct otf_list): Delete it.
13077 (otf_list): Make it a lisp variable.
13078 (otf_open): Use lispy otf_list.
13079 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13080 (check_otf_features): New function.
13081 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13082 New functions.
13083 (font_drive_otf): New function merging font_otf_gsub and
13084 font_otf_gpos.
13085 (font_open_for_lface): New arg spec. Change argument order.
13086 (font_load_for_face): Adjust for the change of font_open_for_lface.
13087 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13088 Ffont_otf_gpos.
13089 (syms_of_font): Staticpro otf_list. Delete defsubr of
13090 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13091
13092 * xfaces.c (set_font_frame_param): Adjust for the change of
13093 font_open_for_lface.
13094
13095 * font.h (font_open_for_lface): Adjust prototype.
13096 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13097 member otf_drive.
13098 (font_otf_gsub, font_otf_gpos): Delete externs.
13099 (font_drive_otf): Extern it.
13100
131012008-02-01 Kenichi Handa <handa@m17n.org>
13102
13103 * font.c (font_at): If the window W is not on a window system,
13104 return Qnil.
13105
13106 * coding.c (produce_chars, encode_coding): Don't call
13107 insert_from_gap if no characters to produce.
13108
131092008-02-01 Kenichi Handa <handa@m17n.org>
13110
13111 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13112 Fclear_face_cache.
13113
13114 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13115
131162008-02-01 Miles Bader <miles@gnu.org>
13117
13118 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13119 Parse "--disable-font-backend" option.
13120 (standard_args): Add "--disable-font-backend" option.
13121
131222008-02-01 Kenichi Handa <handa@m17n.org>
13123
13124 * fontset.c (fontset_find_font): New function.
13125 (fontset_font): Use fontset_find_font.
13126 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13127 Register the specified font for all Latin characters.
13128 (new_fontset_from_font): Register the specified font for all Latin
13129 characters.
13130 (dump_fontset): For a realized fontset, include the base fontset
13131 name in the returned vector.
13132
131332008-02-01 Kenichi Handa <handa@m17n.org>
13134
13135 * character.h (CHAR_STRING): Cast C to unsigned on calling
13136 char_string.
13137
13138 * character.c (char_string): Type of arg C changed to unsigned.
13139 Signal an error if C is an invalid character code.
13140
13141 * editfns.c (general_insert_function, Fchar_to_string):
13142 Use CHARACTERP, not INTEGERP.
13143
131442008-02-01 Kenichi Handa <handa@m17n.org>
13145
13146 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13147 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13148
13149 * regex.c (analyse_first): Fix for multibyte characters in "case
13150 charset:" and "case categoryspec:".
13151
131522008-02-01 Andreas Schwab <schwab@suse.de>
13153
13154 * Makefile.in (LIBES): Move standard libraries to the end.
13155
131562008-02-01 Kenichi Handa <handa@m17n.org>
13157
13158 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13159 nonzero, don't shrink the buffer nextb.
13160
13161 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13162
13163 * coding.c (coding_alloc_by_making_gap): New arg offset.
13164 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13165 offset.
13166 (decode_coding_iso_2022): Update coding->safe_charsets.
13167 (decode_coding_gap): Temporarily set
13168 current_buffer->text->inhibit_shrinking to 1.
13169
131702008-02-01 Kenichi Handa <handa@m17n.org>
13171
13172 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13173 indexing into elements of s->cmp and s->char2b.
13174
131752008-02-01 Juanma Barranquero <lekktu@gmail.com>
13176
13177 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13178
131792008-02-01 Kenichi Handa <handa@m17n.org>
13180
13181 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13182 target_multibyte instead of multibyte.
13183 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13184 (bcmp_translate): Change the argument name from multibyte to
13185 target_multibyte.
13186
131872008-02-01 Kenichi Handa <handa@m17n.org>
13188
13189 These changes are to compile a regexp into a pattern that can be
13190 used both for multibyte and unibyte targets.
13191
13192 * Makefile.in (search.o): Depend on charset.h.
13193
13194 * character.c (multibyte_char_to_unibyte_safe): New function.
13195
13196 * search.c: Include "charset.h".
13197 (compile_pattern_1): Delete argument multibyte. Don't set
13198 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13199 (compile_pattern): Don't compare cp->buf.target_multibyte.
13200 Compare cp->buf.charset_unibyte.
13201 (compile_pattern): Set cp->buf.target_multibyte.
13202
13203 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13204
13205 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13206
13207 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13208 multibyte. Change callers.
13209 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13210 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13211 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13212 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13213 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13214 (regex_compile): Make the compiled pattern usable both for
13215 multibyte and unibyte targets.
13216 (analyse_first): Make the fastmap usable both for multibyte and
13217 unibyte targets.
13218 (TRANSLATE_VIA_MULTIBYTE): Delete.
13219 (re_match_2_internal): Pay attention to the case that the
13220 multibyteness of bufp and target may be different.
13221
132222008-02-01 Kenichi Handa <handa@m17n.org>
13223
13224 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13225 empty box occupy at least one column width.
13226
132272008-02-01 Miles Bader <miles@gnu.org>
13228
13229 * Makefile.in: Remove redundant HAVE_XFT clause.
13230
132312008-02-01 Kenichi Handa <handa@m17n.org>
13232
13233 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13234
132352008-02-01 Kenichi Handa <handa@m17n.org>
13236
13237 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13238 being nil.
13239
132402008-02-01 Kenichi Handa <handa@m17n.org>
13241
13242 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13243
132442008-02-01 Kenichi Handa <handa@m17n.org>
13245
13246 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13247
132482008-02-01 Kenichi Handa <handa@m17n.org>
13249
13250 * search.c (simple_search): Fix previous change.
13251
132522008-02-01 Kenichi Handa <handa@m17n.org>
13253
13254 * xftfont.c (ftfont_font_format): Extern declaration.
13255
13256 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13257
13258 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13259 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13260
13261 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13262 (ftfont_font_format): Fix previous change.
13263
13264 * font.h (Ffont_xlfd_name): EXFUN it.
13265
13266 * font.c (font_parse_xlfd): Fix the array size of `f'.
13267 (register_font_driver): Use EQ to compare driver->type.
13268
13269 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13270 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13271 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13272
132732008-02-01 Kenichi Handa <handa@m17n.org>
13274
13275 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13276 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13277
132782008-02-01 Kenichi Handa <handa@m17n.org>
13279
13280 * xfont.c (xfont_open): Set font->format.
13281
13282 * xftfont.c (xftfont_open): Set font->format.
13283
13284 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13285 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13286 (ftfont_open): Set font->format.
13287 (ftfont_font_format): New function.
13288
13289 * font.h (struct font): New member format.
13290
13291 * font.c (Qopentype): New variable.
13292 (syms_of_font): Defsym it.
13293 (Fquery_font): Change the format of the last element of the return
13294 value.
13295
132962008-02-01 Kenichi Handa <handa@m17n.org>
13297
13298 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13299 last resort.
13300
133012008-02-01 Kenichi Handa <handa@m17n.org>
13302
13303 * coding.c (detect_coding_charset): Fix detection of multi-byte
13304 charset.
13305
133062008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13307
13308 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13309
133102008-02-01 Kenichi Handa <handa@m17n.org>
13311
13312 * xdisp.c (get_next_display_element): Set it->face_id for the
13313 first component of a composition.
13314 (x_produce_glyphs): Check if the font is changed or not for composition.
13315
133162008-02-01 Kenichi Handa <handa@m17n.org>
13317
13318 * fontset.c (Qlatin): New variable.
13319 (syms_of_fontset): Define it as a lisp symbol.
13320 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13321
133222008-02-01 Kenichi Handa <handa@m17n.org>
13323
13324 * font.c (font_unparse_fcname): Pay attention to the case that
13325 some of font property is a null string.
13326
133272008-02-01 Kenichi Handa <handa@m17n.org>
13328
13329 * term.c: Include "composite.h".
13330 (encode_terminal_code): Output all components of composition.
13331 Check the size of encode_terminal_src.
13332 (produce_glyphs): For composition, call produce_composite_glyph.
13333 (append_composite_glyph, produce_composite_glyph): New functions.
13334
13335 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13336 is not found, get font_info from the current ascii face.
13337
133382008-02-01 Kenichi Handa <handa@m17n.org>
13339
13340 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13341 buffer-file-name to Qnil before calling insert_from_buffer.
13342
13343 * font.c (font_unparse_fcname): Pay attention to the case that
13344 foundry is a null string.
13345
133462008-02-01 Kenichi Handa <handa@m17n.org>
13347
13348 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13349
13350 * font.c (Qunicode_sip): New variable.
13351 (syms_of_font): Declare it as a Lisp symbol.
13352
13353 * font.h (Qunicode_sip): Extern it.
13354
133552008-02-01 Kenichi Handa <handa@m17n.org>
13356
13357 * composite.c (get_composition_id): Pay attention to TAB component.
13358
13359 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13360 TAB. Adjust for the change of s->char2b which always points to
13361 the first element of allocated memory.
13362
13363 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13364
13365 * xdisp.c (handle_composition_prop): Set it->c to the first
13366 non-TAB component.
13367 (fill_composite_glyph_string): Change argument.
13368 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13369 (x_produce_glyphs): Fix handling of left/right padding.
13370
133712008-02-01 Kenichi Handa <handa@m17n.org>
13372
13373 * coding.c (detect_coding_system): Fix for handling off
13374 inhibit_iso_escape_detection. Fix for the case that no coding
13375 system is defined for a specific coding category.
13376
133772008-02-01 Kenichi Handa <handa@m17n.org>
13378
13379 * font.c (font_matching_entity): Delete unused local var.
13380
13381 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13382 opening a font.
13383
13384 * fileio.c (Finsert_file_contents): On recovering a file, assume
13385 Unix-like eol.
13386 (choose_write_coding_system): On auto-saving a file, force
13387 Unix-like eol.
13388
13389 * coding.c (setup_coding_system): Fix setting of
13390 coding->common_flags based on eol_type.
13391 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13392 inherit from it.
13393
133942008-02-01 Kenichi Handa <handa@m17n.org>
13395
13396 * alloc.c (NSTATICS): Increas to 0x600.
13397
133982008-02-01 Kenichi Handa <handa@m17n.org>
13399
13400 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13401 (ftfont_list): Don't check :name property.
13402 (ftfont_match): New function.
13403 (ftfont_pattern_entity): If the pattern doesn't contain
13404 FC_SPACING, don't assume FC_MONO.
13405
13406 * font.h (struct font_driver): New member `match'.
13407 (font_update_drivers): Adjust prototype.
13408
13409 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13410 property of FONT.
13411 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13412 them unconditionally.
13413 (font_matching_entity): New function.
13414 (font_open_by_name): Try font_matching_entity if exact match is
13415 not found.
13416 (font_update_drivers): Delete the arg FONT. Return a list of
13417 actually used backends. Don't free faces, font caches here.
13418 Don't store data in frame parameters. Don't call x_set_font.
13419 (Ffont_spec): Store :name property as is.
13420 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13421 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13422 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13423 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13424 Call font->driver->otf_gsub instead of font_otf_gsub.
13425
13426 * frame.c (x_set_font_backend): Do more works that were done in
13427 font_update_drivers before.
13428
13429 * xfont.c (xfont_match): New function.
13430 (xfont_driver): Set xfont_driver.match to xfont_match.
13431 (xfont_draw): Set font in GC if necessary.
13432
13433 * ftxfont.c (ftxfont_match): New function.
13434 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13435
13436 * xftfont.c (xftfont_match): New function.
13437 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13438
134392008-02-01 Kenichi Handa <handa@m17n.org>
13440
13441 * font.h (struct font): New member scalable.
13442 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13443 (font_otf_gsub): Adjust prototype.
13444
13445 * font.c (font_otf_capability): Fix handling of the default langsys.
13446 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13447 Check the contents of SPEC.
13448 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13449 (check_gstring): New function.
13450 (REPLACEMENT_CHARACTER): New macro.
13451 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13452 glyph codes of GSTRING.
13453 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13454 (font_prepare_composition): Set cmp->glyph_len.
13455 (font_open_entity): Set font->scalable.
13456 (Ffont_get): Handle :otf property.
13457 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13458 functions.
13459 (Fquery_font): Use font->font.full_name.
13460 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13461 Sfont_otf_alternates.
13462
13463 * ftfont.c (ftfont_open): Set font->font.full_name and
13464 font->font.name properly. Fix calculation of font->font.height
13465 and font->min_width.
13466
13467 * ftxfont.c (ftxfont_create_gcs): New function.
13468 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13469 (ftxfont_draw_backgrond): Fix filling region.
13470 (ftxfont_default_fid): New function.
13471 (ftxfont_open): Set xfont->fid to the return value of
13472 ftxfont_default_fid.
13473 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13474 (ftxfont_done_face): Free only GCs that are created by
13475 ftxfont_create_gcs.
13476 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13477
13478 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13479 Clip to src->width, etc (not src->clip_XXX).
13480
13481 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13482 FontBackend frame parameter.
13483
134842008-02-01 Kenichi Handa <handa@m17n.org>
13485
13486 * font.h (struct font_driver_list): New member `on'.
13487 (Fclear_font_cache): EXFUN it.
13488 (font_update_drivers): Extern it.
13489
13490 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13491 (font_list_entities): Check driver_list->on.
13492 (register_font_driver): Initalize `on' member to 0.
13493 (font_update_drivers): New function.
13494 (Fclear_font_cache): Check driver_list->on.
13495
13496 * frame.h (Qfont_backend): Extern it.
13497 (x_set_font_backend): Extern it.
13498
13499 * frame.c (Qfont_backend): New variable.
13500 (frame_parms): New element for font-backend.
13501 (x_set_font_backend): New function.
13502
13503 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13504 FontBackend frame parameter.
13505 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13506 x_set_font_backend.
13507
13508 * xfont.c (xfont_list): Don't try listing by :name property if the
13509 name is not for XLFD.
13510
135112008-02-01 Kenichi Handa <handa@m17n.org>
13512
13513 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13514 (LGLYPH_SET_TO): New macros.
13515 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13516 element of G is vector or not.
13517 (font_at): Extern it.
13518
13519 * font.c: Include window.h.
13520 (font_lispy_object): New function.
13521 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13522 end of valid glyph.
13523 (font_close_object): Fix getting (struct font *).
13524 (font_at): New function.
13525 (Ffont_get): If FONT is a font-object, get entity from it.
13526 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13527 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13528 range check.
13529 (Ffont_at): New function.
13530 (syms_of_font): Defsubr Sfont_at.
13531
13532 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13533 before the entry for Qcomposition.
13534 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13535 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13536 the font in gstring.
13537 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13538 LGLYPH_FORM (g) to detect the end of valid glyph.
13539 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13540 we are composing with gstring.
13541
13542 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13543 Check if adjustment is vector or not.
13544
13545 * Makefile.in (font.o): Make it depends on window.h.
13546
135472008-02-01 Kenichi Handa <handa@m17n.org>
13548
13549 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13550 adjustment is vector or not.
13551
135522008-02-01 Miles Bader <miles@gnu.org>
13553
13554 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13555
135562008-02-01 Kenichi Handa <handa@m17n.org>
13557
13558 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13559 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13560 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13561
13562 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13563 (DEVICE_DELTA): Fix typo.
13564 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13565 LGLYPH format.
13566
13567 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13568 the change of LGLYPH format.
13569
135702008-02-01 Kenichi Handa <handa@m17n.org>
13571
13572 * ftfont.c (ftfont_list): Fix typo.
13573 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13574
135752008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13576
13577 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13578
13579 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13580 xftface_info is non-NULL.
13581
135822008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13583
13584 * ftfont.c (ftfont_list): Move misplaced #endif.
13585
135862008-02-01 Kenichi Handa <handa@m17n.org>
13587
13588 * ftfont.c (ftfont_list): Pay attention to the case that
13589 FC_CAPABILITY is not defined.
13590
135912008-02-01 Kenichi Handa <handa@m17n.org>
13592
13593 * xftfont.c (xftfont_open): Set charset related members to -1.
13594
13595 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13596 QCname.
13597 (ftfont_open): Set charset related members to -1.
13598
13599 * fontset.c (Votf_script_alist): New variable.
13600 (syms_of_fontset): Initialize it.
13601 (fontset_font): Delete unused variable.
13602
13603 * fontset.h (Votf_script_alist): Extern it.
13604
13605 * font.c (font_find_for_lface): Optimize code.
13606
13607 * font.h (font_close_object, font_merge_old_spec): Extern them.
13608
136092008-02-01 Kenichi Handa <handa@m17n.org>
13610
13611 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13612 (syms_of_font): Initialize them.
13613 (font_pixel_size): Allow float value in dpi.
13614 (font_prop_validate_type): Delete.
13615 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13616 Change caller.
13617 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13618 (font_prop_validate_extra): Delete.
13619 (font_prop_validate_spacing): New function.
13620 (font_property_table): Add elements for all known properties.
13621 (get_font_prop_index): Rename from check_font_prop_name. New
13622 argument FROM. Change caller.
13623 (font_prop_validate): Validate all known properties.
13624 (font_put_extra): Delete argument force. Change caller.
13625 (font_expand_wildcards): Make it static. Fix the way of shrinking
13626 the possible range.
13627 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13628 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13629 Change caller.
13630 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13631 (font_parse_fcname): Delete argument merge. Fix parsing of point
13632 size. Don't validate properties values here. Change caller.
13633 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13634 (font_open_by_name): Delete unused variable.
13635 (Ffont_spec): Likewise. Validate property values.
13636 (Ffont_match_p): New function.
13637
13638 * font.h (QCscalable): Extern it.
13639 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13640
13641 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13642
13643 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13644 (xfont_list_pattern): New function.
13645 (xfont_list): Use xfont_list_pattern.
13646
136472008-02-01 Kenichi Handa <handa@m17n.org>
13648
13649 * font.h (Flist_fonts): EXFUN it.
13650
136512008-02-01 Jason Rumney <jasonr@gnu.org>
13652
13653 * w32term.c (w32_initialize): Add back smoothing_type and
13654 smoothing_enabled definitions.
13655
136562008-02-01 Kenichi Handa <handa@m17n.org>
13657
13658 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13659 s->face->font on determining underline position.
13660
136612008-02-01 Kenichi Handa <handa@m17n.org>
13662
13663 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13664 (font_has_char): Accept font-object too.
13665 (font_find_for_lface): Try at first with a size specified in face.
13666
136672008-02-01 Kenichi Handa <handa@m17n.org>
13668
13669 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13670 font_open_by_name.
13671
136722008-02-01 Kenichi Handa <handa@m17n.org>
13673
13674 * font.h (QCspacing, QCdpi): Extern them.
13675 (enum font_spacing): New enum.
13676 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13677
13678 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13679 (QCspacing, QCdpi): New variables.
13680 (syms_of_font): Initialize them.
13681 (font_pixel_size): New function.
13682 (font_put_extra): New function.
13683 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13684 in FONT_EXTRA.
13685 (font_parse_fcname): Handle enumerated values (e.g. bold).
13686 Fix handling font size. Add QCname property that contains only
13687 unknown properties.
13688 (font_score): Change argument. Change caller. Pay attention to
13689 FONT_PIXEL_SIZE_QUANTUM.
13690 (font_sort_entites, font_list_entities, font_find_for_lface)
13691 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13692 (Ffont_spec): Add QCname property that contains only unknown properties.
13693
13694 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13695 include weight in listing pattern, instead check weight of each
13696 listed font. Don't include scalable in pattern. Pay attention to
13697 FONT_PIXEL_SIZE_QUANTUM.
13698
136992008-02-01 Kenichi Handa <handa@m17n.org>
13700
13701 * font.c (font_parse_fcname): Fix parsing of point-size.
13702 (font_unparse_fcname): Produce symbolic names for style properties.
13703 (font_list_entities): Handle float size correctly.
13704 (font_open_by_name): Prefer `normal' property values if the name
13705 doesn't specify them.
13706
13707 * fontset.c (Finternal_char_font): Use font_get_name, not
13708 Ffont_xlfd_name.
13709
13710 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13711 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13712 pattern. Don't force scalable.
13713
13714 * xftfont.c (xftfont_open): For generating a name, start from
13715 96-byte buffer.
13716
137172008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13718
13719 * frame.h (x_new_fontset2): Fix prototype.
13720
137212008-02-01 Kenichi Handa <handa@m17n.org>
13722
13723 * font.h (struct font_driver): Delete member parse_name.
13724 (font_match_p, font_get_spec, font_parse_fcname)
13725 (font_unparse_fcname): Extern them.
13726 (font_get_name): Adjust prototype.
13727
13728 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13729 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13730 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13731 unnecessary checks for weight, slant, and swidth.
13732 (font_parse_fcname): New function.
13733 (font_unparse_fcname): New function.
13734 (font_parse_name): New function.
13735 (font_match_p): New function.
13736 (font_get_name): Change return value to Lisp string.
13737 (font_get_spec): New function.
13738 (Qunspecified, Qignore_defface): Don't extern them.
13739 (font_find_for_lface): Assume that LFACE is fully specified.
13740 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13741 object, use it for FACE.
13742 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13743 driver->parse_name.
13744 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13745
13746 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13747 prototype.
13748
13749 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13750 argument F. Don't call Fnew_fontset. Instead, directly call
13751 make_fontset.
13752
13753 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13754
13755 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13756 of x_new_fontset2.
13757
13758 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13759 (Qsans__serif): New variables.
13760 (ftfont_generic_family_list): New variable.
13761 (syms_of_ftfont): Initialize the above variables.
13762 (ftfont_pattern_entity): Delete argument NAME.
13763 (ftfont_list_generic_family): New function.
13764 (ftfont_parse_name): Delete this function.
13765 (ftfont_list): Try generic family only when FcFontList found no font.
13766 (ftfont_list_family): Fix args to FcObjectSetBuild.
13767
13768 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13769 object in attrs[LFACE_FONT_INDEX].
13770 (set_lface_from_font_name): Cancel all changes for font-backend.
13771 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13772 function.
13773 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13774 font object in QCfont attribute.
13775 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13776 (realize_default_face) [USE_FONT_BACKEND]: Call
13777 set_lface_from_font_and_fontset.
13778
13779 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13780 "fixed", and signal error here if no suitable font was found.
13781
13782 * xfont.c (xfont_parse_name): Delete this function.
13783
13784 * xftfont.c (xftfont_open): Change coding style of error
13785 handling. Generate fontconfig's fontname pattern.
13786
13787 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13788 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13789
13790 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13791 Both args FONTSET and FONT_OBJECT must be existing ones.
13792
137932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13794
13795 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13796
137972008-02-01 Kenichi Handa <handa@m17n.org>
13798
13799 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13800
13801 * font.h (struct font): Fix typo.
13802
13803 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13804 XLFD_XXX_INDEX.
13805 (enum xlfd_field_mask): New enum.
13806 (intern_font_field): Changed argument. Change caller. If digits
13807 are followed by non-digits, return a symbol.
13808 (font_expand_wildcards): New function.
13809 (font_parse_xlfd): Fix wildcard handling.
13810 (Ffont_spec): If :name is specified, reflect the info in the other
13811 properties.
13812
13813 * ftfont.c (ftfont_pattern_entity): Fix typo.
13814 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13815 locale.
13816
138172008-02-01 Kenichi Handa <handa@m17n.org>
13818
13819 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13820
13821 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13822 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13823 registry doesn't specify encoding part.
13824 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13825 (font_open_by_name): At first try parsing the name.
13826 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13827 as Lisp symbols.
13828
13829 * fontset.c (reorder_font_vector): Pay attention to the case that
13830 the 3rd element of font_def is nil.
13831 (fontset_font): For the default fontset, append one more fontset
13832 elements for a script-based font specification. Don't add script
13833 attribute on finding a font.
13834 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13835 font name.
13836 (fontset_ascii_font): If a font can't be opened, return nil.
13837
13838 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13839 (ftfont_pattern_entity): New function.
13840 (ftfont_get_cache): Assume that freetype_font_cache is already
13841 initialized.
13842 (ftfont_list): Handle the case that a file is specified in font
13843 name. Use ftfont_pattern_entity to generate entities.
13844 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13845 (syms_of_ftfont): Initialize freetype_font_cache.
13846
13847 * xftfont.c (xftfont_open): Make the font name fontconfig's
13848 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13849 (xftfont_close): Free font->font.name if not NULL.
13850
13851 * xfont.c (xfont_list): If script is specified for a font, return
13852 null_vector.
13853 (xfont_list_family): Declare argument type.
13854
13855 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13856 name, set LFACE_FONT (lface) to nil.
13857
13858 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13859 return Qnil.
13860
138612008-02-01 Kenichi Handa <handa@m17n.org>
13862
13863 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13864 (standard_args): Add "-enable-font-backend".
13865
138662008-02-01 Kenichi Handa <handa@m17n.org>
13867
13868 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13869 (struct xftdraw_list, xftdraw_list): Delete them.
13870 (register_xftdraw, check_xftdraw): Delete them.
13871 (xftfont_prepare_face): Don't call register_xftdraw.
13872 (xftfont_done_face): Don't call check_xftdraw.
13873 (xftfont_draw): Get background color only when with_background is
13874 nonzero.
13875
13876 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13877
138782008-02-01 Kenichi Handa <handa@m17n.org>
13879
13880 These changes are for the new font handling codes.
13881
13882 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13883 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13884 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13885 (FONTSRC, FONTOBJ): New variables.
13886 (obj): Add $(FONTOBJ).
13887 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13888 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13889 @LIBOTF_LIBS@.
13890 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13891 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13892
13893 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13894
13895 * character.h (Vscript_representative_chars): Extern it.
13896
13897 * character.c (Vscript_representative_chars): New variable.
13898 (syms_of_character): Declare it as a Lisp variable.
13899
13900 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13901 enable_font_backend is nonzero, accept the composition method
13902 COMPOSITION_WITH_GLYPH_STRING.
13903
13904 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13905 enumeration COMPOSITION_WITH_GLYPH_STRING.
13906
13907 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13908 members clip_x, clip_y, clip_width, and clip_height.
13909 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13910
13911 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13912 --enable-font-backend. Call syms_of_font.
13913
13914 * fns.c (assoc_no_quit): New function.
13915
13916 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13917 (face_for_font, new_fontset_from_font)
13918 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13919
13920 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13921 (fontset_font, fontset_ascii, face_for_char)
13922 (make_fontset_for_ascii_face, Ffont_info)
13923 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13924 is nonzero, use font-backend mechanism.
13925 (find_font_encoding): Make it non-static.
13926 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13927 New functions.
13928
13929 * frame.h (struct frame): New members resx and resy.
13930 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13931 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13932
13933 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13934 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13935
13936 * lisp.h (assoc_no_quit): Extern it.
13937
13938 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13939 Through out the file, use FONT_INFO_FROM_FACE instead of
13940 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13941 rif->per_char_metric.
13942 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13943 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13944 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13945 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13946 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13947 nonzero, use font-backend mechanism.
13948 (get_per_char_metric): New function.
13949
13950 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13951 (set_lface_from_font_name)
13952 (set_font_frame_param, free_realized_face)
13953 (prepare_face_for_display, clear_face_gcs)
13954 (Finternal_set_font_selection_order, realize_x_face)
13955 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13956 font-backend mechanism.
13957 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13958 (load_face_font) [USE_FONT_BACKEND]: Abort.
13959 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13960 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13961
13962 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13963 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13964 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13965 nonzero, register all available font drivers. Call
13966 x_default_font_parameter for deciding a font.
13967 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13968
13969 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13970 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13971 (x_set_glyph_string_clipping_exactly)
13972 (x_compute_glyph_string_overhangs)
13973 (x_draw_glyph_string_foreground)
13974 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13975 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13976 enable_font_backend is nonzero, use font-backend mechanism.
13977 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13978
139792008-02-01 Kenichi Handa <handa@m17n.org>
13980
13981 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13982 system_eol_type.
13983 (syms_of_coding): Initialize system_eol_type.
13984
13985 * process.c (Fset_process_coding_system): Inherit system's eol
13986 format if necessary.
13987
139882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13989
13990 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13991
139922008-02-01 Kenichi Handa <handa@m17n.org>
13993
13994 * coding.c (decode_eol): Pay attention to buffer relocation in
13995 del_range_2.
13996 (decode_coding): Call decode_eol before restoring undo_list.
13997
139982008-02-01 Kenichi Handa <handa@m17n.org>
13999
14000 * charset.c (Fdefine_charset_internal): Fix setting of
14001 emacs_mule_bytes.
14002
140032008-02-01 Kenichi Handa <handa@m17n.org>
14004
14005 * keyboard.c (read_char): Check if C is a character or not before
14006 looking up Vkeyboard_translate_table.
14007
140082008-02-01 Kenichi Handa <handa@m17n.org>
14009
14010 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14011 condition to terminate the loop.
14012
140132008-02-01 Kenichi Handa <handa@m17n.org>
14014
14015 * coding.c (produce_composition): Compare charbuf[i] instead of
14016 args[i] against 0.
14017 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14018
140192008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14022 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14023 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14024 detect_coding.
14025 (emacs_mule_char): Handle old style (Emacs 20) component character
14026 of a composition.
14027 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14028 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14029 composition rule.
14030 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14031
140322008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * coding.c (encode_coding_ccl): Allocate destination dynamically
14035 when necessary.
14036
140372008-02-01 Kenichi Handa <handa@m17n.org>
14038
14039 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14040 the loop. When quitted, show a proper error message.
14041
140422008-02-01 Kenichi Handa <handa@m17n.org>
14043
14044 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14045 src->clip_head and src->clip_tail temporarily instead of src->hl.
14046
14047 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14048 character sequence.
14049 (Fccl_execute_on_string): Use ASET, not XSET.
14050
140512008-02-01 Kenichi Handa <handa@m17n.org>
14052
14053 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14054
140552008-02-01 Kenichi Handa <handa@m17n.org>
14056
14057 * coding.c (decode_coding): Fix the condition of terminating the
14058 decoding loop.
14059
140602008-02-01 Kenichi Handa <handa@m17n.org>
14061
14062 * data.c (Faset): On setting a character bigger than 255 in a
14063 unibyte string, signal an error instead of make the string multibyte.
14064
140652008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14068 made by a mapping table.
14069
140702008-02-01 Kenichi Handa <handa@m17n.org>
14071
14072 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14073 not.
14074 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14075 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14076
14077 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14078 s->face is NULL or not.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14083 (x_draw_glyph_string): Fix drawing of right_overhang and
14084 left_overhang around/on cursor.
14085
14086 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14087
140882008-02-01 Kenichi Handa <handa@m17n.org>
14089
14090 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14091
140922008-02-01 Kenichi Handa <handa@m17n.org>
14093
14094 * coding.c (Fdefine_coding_system_internal)
14095 (Fdefine_coding_system_alias): Avoid a duplicated element in
14096 Vcoding_system_alist.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14101
14102 * coding.c (Qcoding_system_define_form): New variable.
14103 (syms_of_coding): Intern and staticpro it.
14104 (Fcoding_system_p): Check Qcoding_system_define_form.
14105 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14106
14107 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14108 Fcoding_system_p.
14109 (CHECK_CODING_SYSTEM): If ID is not available, call
14110 Fcheck_coding_system.
14111 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14112 Try also Fcheck_coding_system.
14113
141142008-02-01 Kenichi Handa <handa@m17n.org>
14115
14116 * coding.c (code_conversion_restore): GCPRO arg.
14117
141182008-02-01 Kenichi Handa <handa@m17n.org>
14119
14120 * character.c (lisp_string_width): Check multibyteness of STRING.
14121
141222008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14123
14124 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14125 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14126 (decode_mac_font_name): Use decode_coding_c_string instead of
14127 decode_coding.
14128 (x_load_font): Initialize fontp->fontset to -1. Set
14129 fontp->encoding_type.
14130
141312008-02-01 Kenichi Handa <handa@m17n.org>
14132
14133 * search.c (search_buffer): Give up BM search on case-fold-search
14134 if one of a target character has a case-equivalence of different
14135 byte length even if that target charcter is an ASCII.
14136 (simple_search): Fix calculation of byte length of matched text.
14137 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14138
141392008-02-01 Kenichi Handa <handa@m17n.org>
14140
14141 * coding.c (decode_coding): Fix handling of invalid bytes.
14142
141432008-02-01 Kenichi Handa <handa@m17n.org>
14144
14145 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14146 Unicode characters.
14147
141482008-02-01 Kenichi Handa <handa@m17n.org>
14149
14150 * coding.c (encode_coding_object): If a pre-write-conversion
14151 function makes a new buffer, kill it.
14152
141532008-02-01 Kenichi Handa <handa@m17n.org>
14154
14155 * coding.c (QCascii_compatible_p): New variable.
14156 (syms_of_coding): Initialize it.
14157 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14158 calling string_char.
14159 (record_conversion_result): Add `default:' case.
14160 (coding_charset_list): Delete unused variable `coding_type'.
14161 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14162 property in the plist of the coding system.
14163 (Fcoding_system_put): Check QCascii_compatible_p.
14164
141652008-02-01 Miles Bader <miles@gnu.org>
14166
14167 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14168 removed calculation of frame `f', as it's now used.
14169
141702008-02-01 Kenichi Handa <handa@m17n.org>
14171
14172 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14173 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14174 (UNIDATA): New variable.
14175 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14176 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14177 $(RUN_TEMACS) unconditionally.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14182 (admindir): New variable.
14183 ($(lispsource)international/charprop.el): New target.
14184
141852008-02-01 Miles Bader <miles@gnu.org>
14186
14187 * character.c (chars-in-region): Remove obsolete function.
14188 (syms_of_character): Remove its initialization.
14189
141902008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14191
14192 * w32select.c (validate_coding_system)
14193 (setup_windows_coding_system): New functions.
14194 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14195 setup_windows_coding_system.
14196 (setup_config, Fw32_get_clipboard_data): Use
14197 validate_coding_system.
14198 (Fx_selection_exists): Move call to setup_config to a place
14199 where signals are allowed.
14200
14201 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14202 (Fcheck_coding_system): Add declarations.
14203
142042008-02-01 Kenichi Handa <handa@m17n.org>
14205
14206 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14207
142082008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14209
14210 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14211 string as the second argument for x_new_fontset.
14212
142132008-02-01 Kenichi Handa <handa@m17n.org>
14214
14215 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14216 (encode_coding_object): Use safe_call instead of call2.
14217
142182008-02-01 Kenichi Handa <handa@m17n.org>
14219
14220 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14221
14222 * Makefile.in (lisp): Include charprop.el.
14223
142242008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14225
14226 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14227 Not sure if it's unnecessary.
14228
142292008-02-01 Steven Tamm <steventamm@mac.com>
14230
14231 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14232 some possibly unnecessary fontset checking code that crashed
14233 when creating a new frame.
14234
142352008-02-01 Kenichi Handa <handa@m17n.org>
14236
14237 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14238 lookup_face.
14239
14240 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14241
14242 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14243
142442008-02-01 Kenichi Handa <handa@m17n.org>
14245
14246 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14247 (coding_charset_list): New function.
14248
14249 * coding.h (coding_charset_list): Extern it.
14250
142512008-02-01 Kenichi Handa <handa@m17n.org>
14252
14253 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14254 concatenation of family and registry.
14255
142562008-02-01 Kenichi Handa <handa@m17n.org>
14257
14258 * character.h (BYTE8_STRING): Fix typo.
14259
14260 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14261 string to multibyte (sync to HEAD).
14262
14263 * casefiddle.c (casify_region): Handle changes in byte-length
14264 using replace_range_2 (sync to HEAD).
14265
142662008-02-01 Andreas Schwab <schwab@suse.de>
14267
14268 * chartab.c (map_char_table): GCPRO table and arg.
14269
142702008-02-01 Kenichi Handa <handa@m17n.org>
14271
14272 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14273 already at limit.
14274
142752008-02-01 Kenichi Handa <handa@m17n.org>
14276
14277 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14278 instead of fast_c_string_match_ignore_case.
14279 (find_font_encoding): Change argument to Lisp_Object. Use
14280 fast_string_match_ignore_case instead of
14281 fast_c_string_match_ignore_case. Change caller.
14282
142832008-02-01 Kenichi Handa <handa@m17n.org>
14284
14285 * xdisp.c (get_next_display_element): In unibyte case, decide to
14286 display in octal form by checking a character by
14287 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14288
14289 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14290
14291 * character.c (unibyte_has_multibyte_table): New variable.
14292
14293 * character.h (unibyte_has_multibyte_table): Extern it.
14294 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14295
142962008-02-01 Kenichi Handa <handa@m17n.org>
14297
14298 * coding.c (encode_coding_iso_2022): Fix handling of charset
14299 annotation.
14300
143012008-02-01 Kenichi Handa <handa@m17n.org>
14302
14303 * coding.c (setup_coding_system): If coding_system is nil, use
14304 Qundecided.
14305 (Fterminal_coding_system): Return nil if terminal coding system is
14306 `undecided'.
14307 (syms_of_coding): Define coding-system `undecided' here. Setup
14308 terminal_coding as `undecided'.
14309
143102008-02-01 Kenichi Handa <handa@m17n.org>
14311
14312 * xdisp.c (message_dolog, set_message_1): Call
14313 unibyte_char_to_multibyte with arg type int.
14314
14315 * lread.c (read1): Fix reading of a char-table.
14316
14317 * print.c (print_object): Include sub char-table in circularities
14318 detection.
14319
143202008-02-01 Kenichi Handa <handa@m17n.org>
14321
14322 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14323 Append the found sequences in car of ARGS instead of prepending.
14324
143252008-02-01 Kenichi Handa <handa@m17n.org>
14326
14327 * fileio.c (report_file_error): Make a unibyte string from
14328 strerror (errorno).
14329 (Fsubstitute_in_file_name): Fix the arg to
14330 unibyte_char_to_multibyte. It is evaluated twice.
14331
143322008-02-01 Kenichi Handa <handa@m17n.org>
14333
14334 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14335
143362008-02-01 Kenichi Handa <handa@m17n.org>
14337
14338 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14339 BOM is not found.
14340 (detect_coding, detect_coding_system): Optimization for ISO-2022
14341 when no 8-bit data is found.
14342
143432008-02-01 Jason Rumney <jasonr@gnu.org>
14344
14345 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14346
143472008-02-01 Kenichi Handa <handa@m17n.org>
14348
14349 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14350 CHARS.
14351
143522008-02-01 Steven Tamm <steventamm@mac.com>
14353
14354 * macterm.c (mac_encode_char): Add charset argument and update
14355 to use encoding_type.
14356 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14357 switch to pure fontset.
14358 (decode_mac_font_name): Temporarily remove decoding.
14359 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14360 (x_load_font): Temporarily remove encoding.
14361
143622008-02-01 Kenichi Handa <handa@m17n.org>
14363
14364 * xfaces.c (Fface_font): If frame is not on a window system,
14365 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14366 refer to face->font.
14367 (split_font_name_into_vector, build_font_name_from_vector)
14368 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14369 when HAVE_WINDOW_SYSTEM is defined.
14370
143712008-02-01 Kenichi Handa <handa@m17n.org>
14372
14373 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14374 (x_produce_glyphs): Fix setting of members of cmp in case
14375 cmp->glyph_len is zero.
14376
14377 * fontset.c (Fset_fontset_font): Fix docstring.
14378 (Ffontset_info): Make it backward compatible. New arg ALL.
14379
143802008-02-01 Kim F. Storm <storm@cua.dk>
14381
14382 * process.c (read_process_output): Grow decoding_buf when needed;
14383 this could cause a crash in allocate_string and compact_small_strings.
14384
143852008-02-01 Kenichi Handa <handa@m17n.org>
14386
14387 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14388
143892008-02-01 Kenichi Handa <handa@m17n.org>
14390
14391 * coding.c (setup_coding_system): Set coding->common_flags
14392 correctly for raw-text.
14393 (consume_chars): On encoding unibyte text by raw-text, don't check
14394 multibyte form.
14395 (encode_coding): On encoding by raw-text, never use translation tables.
14396
14397 * fileio.c (e_write): Short cut for the case of no encoding.
14398
143992008-02-01 Kenichi Handa <handa@m17n.org>
14400
14401 * coding.c (detect_coding, detect_coding_system): Delete unused
14402 variables.
14403
144042008-02-01 Kenichi Handa <handa@m17n.org>
14405
14406 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14407 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14408
144092008-02-01 Kenichi Handa <handa@m17n.org>
14410
14411 * coding.c (Ffind_coding_systems_region_internal): Include
14412 raw-text and no-conversion in the result.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14417 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14418 FONT_DEF.
14419 (font_def_arg, add_arg, from_arg, to_arg): New args.
14420 (set_fontset_font): Change argument.
14421 (Fset_fontset_font): Fix for the case that TARGET is a script
14422 name and charset name.
14423 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14424
144252008-02-01 Kenichi Handa <handa@m17n.org>
14426
14427 * fontset.c (fontset_font): Rename from fontset_face. Change return
14428 value.
14429 (face_suitable_for_char_p, face_for_char): Adjust for the change
14430 of fontset_font.
14431 (make_fontset_for_ascii_face): Fix setting of the fontset element
14432 for ASCII.
14433 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14434 to get a font name.
14435 (Ffontset_info): Adjust for the change of fontset_font.
14436
14437 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14438
14439 * character.h (LEADING_CODE_LATIN_1_MIN)
14440 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14441
144422008-02-01 Kenichi Handa <handa@m17n.org>
14443
14444 * editfns.c (check_translation): New function.
14445 (Ftranslate_region_internal): Handle M:N mapping.
14446
144472008-02-01 Kenichi Handa <handa@m17n.org>
14448
14449 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14450
144512008-02-01 Kenichi Handa <handa@m17n.org>
14452
14453 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14454 goto invalid_code.
14455 (decode_coding_iso_2022): Fix handling of invalid designation.
14456
14457 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14458 after calling code_conversion_save.
14459
144602008-02-01 Kenichi Handa <handa@m17n.org>
14461
14462 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14463
14464 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14465
14466 * fontset.c: Include "intervals.h".
14467 (fontset_face): Fix comparing of Lisp_Objects.
14468 (free_face_fontset, new_fontset_from_font_name): Fix
14469 Lisp_Object/int mixup.
14470
14471 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14472
14473 * coding.c: Add many prototypes for static functions.
14474 (get_translation_table): Allow max_lookup to be NULL.
14475 (decode_coding, Ffind_coding_systems_region_internal)
14476 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14477 get_translation_table with max_lookup NULL.
14478
144792008-02-01 Kenichi Handa <handa@m17n.org>
14480
14481 * coding.c (get_translation_table): Declare it as Lisp_Object.
14482 (LOOKUP_TRANSLATION_TABLE): New macro.
14483 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14484 instead of CHAR_TABLE_REF.
14485
144862008-02-01 Kenichi Handa <handa@m17n.org>
14487
14488 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14489 annotation data format.
14490 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14491 Change arguments FROM and TO to single argument NCHARS. Change caller.
14492 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14493 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14494 (decode_coding_ccl, decode_coding_charset): Pay attention to
14495 coding->charbuf_used.
14496 (get_translation): New function.
14497 (produce_chars): New arguments translation_table and last_block.
14498 Translate characters here. Return number of carryover chars.
14499 Change caller.
14500 (produce_composition): New argument pos. Change caller.
14501 Adjust for the change of annotation data format.
14502 (produce_charset, produce_annotation): Likewise.
14503 (decode_coding, encode_coding): Don't call translate_chars.
14504 (consume_chars): New arg translation_table. Change caller.
14505 (translate_chars): Delete.
14506 (syms_of_coding): Make translation-table's number of extra slots 2.
14507
145082008-02-01 Kenichi Handa <handa@m17n.org>
14509
14510 * search.c (simple_search): Fix setting this_pos_byte in backward
14511 search.
14512
14513 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14514 byte sequence.
14515 (detect_coding_ccl): Fix setting of the variable valids.
14516
145172008-02-01 Kenichi Handa <handa@m17n.org>
14518
14519 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14520
14521 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14522
14523 * editfns.c (Ftranslate_region_internal): Rename from
14524 Ftranslate_region. Accept a char-table in TABLE.
14525 (syms_of_editfns): Defsubr Stranslate_region_internal.
14526
14527 * xfaces.c (set_lface_from_font_name): If a font is specified for
14528 a frame, generate a fontset from the font.
14529 (build_scalable_font_name): If the scalable font is requested for
14530 a specific size, don't change that size.
14531 (try_font_list): Try a scalable font also in the case that a
14532 pattern string is specified.
14533
145342008-02-01 Kenichi Handa <handa@m17n.org>
14535
14536 * xfaces.c (Fface_font): New optional arg CHARACTER.
14537
145382008-02-01 Kenichi Handa <handa@m17n.org>
14539
14540 * charset.h (CHARSET_OFFSET): New macro.
14541
145422008-02-01 Kenichi Handa <handa@m17n.org>
14543
14544 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14545
14546 * fontset.c (fontset_face): Handle the case that repertory is a
14547 char-table.
14548 (find_font_encoding): Return nil for unknown encoding.
14549 (Fset_fontset_font): Ignore a font of unknown encoding.
14550
145512008-02-01 Kenichi Handa <handa@m17n.org>
14552
14553 * keymap.c (describe_vector): Handle default value of a char table.
14554
14555 * fontset.c (fontset_face): Handle fallback fonts correctly.
14556 (Ffontset_info): Return infomation about fallback fonts.
14557
145582008-02-01 Kenichi Handa <handa@m17n.org>
14559
14560 * fontset.c (FONTSET_DEFAULT): New macro.
14561 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14562 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14563 the case that it is nil.
14564 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14565 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14566
14567 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14568 subset or superset.
14569
145702008-02-01 Kenichi Handa <handa@m17n.org>
14571
14572 * emacs.c (main): Call init_charset after syms_of_XXX.
14573
14574 * charset.c (Vcharset_map_directory): Delete.
14575 (Vcharset_map_path): New variable.
14576 (load_charset_map_from_file): Use Vcharset_map_path instead.
14577 (init_charset): Initialize Vcharset_map_path.
14578 (syms_of_charset): Delete declaration of "charset-map-directory",
14579 add declaration of "charset-map-path".
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14584 ASCII only string.
14585
14586 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14587
14588 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14589 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14590
145912008-02-01 Kenichi Handa <handa@m17n.org>
14592
14593 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14594
14595 * coding.c (QCmnemonic, QCdefalut_char)
14596 (QCdecode_translation_table, QCencode_translation_table)
14597 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14598 (get_translation_table): Return a list of translation tables if
14599 necessary.
14600 (decode_coding): Call get_translation_table with ENCODEP 0.
14601 (char_encodable_p): If translation_table is non-nil, always call
14602 translate_char.
14603 (Fdefine_coding_system_internal): Accept list of translation
14604 tables as :encode-translation-table and :decode-translation-table.
14605 (Fcoding_system_put): New function.
14606 (syms_of_coding): Declare new symbols. Defsubr
14607 Scoding_system_put.
14608 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14609 typically JISX0212.
14610
14611 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14612 when the charset is superset type.
14613
14614 * character.c (translate_char): Accept list of translation tables.
14615
146162008-02-01 Kenichi Handa <handa@m17n.org>
14617
14618 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14619 (CODING_ATTR_TRANS_TBL): New macro.
14620
14621 * coding.c (get_translation_table): New function.
14622 (translate_chars): Fix the bug of skipping annotation data.
14623 (decode_coding, encode_coding): Utilize get_translation_table.
14624 (char_encodable_p, Funencodable_char_position): Translate char if
14625 necessary.
14626 (Ffind_coding_systems_region_internal)
14627 (Fcheck_coding_systems_region): Setup translation table for encode
14628 in a coding system attribute vector in advance.
14629 (Fdefine_coding_system_internal): Allow a symbol as translation
14630 table. For shift-jis type coding system, allow 4th charset.
14631
146322008-02-01 Kenichi Handa <handa@m17n.org>
14633
14634 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14635
14636 * xdisp.c (get_next_display_element): Pass -1 as POS to
14637 FACE_FOR_CHAR if displaying a C-string.
14638
146392008-02-01 Kenichi Handa <handa@m17n.org>
14640
14641 * composite.c (get_composition_id): Handle xoff and yoff in a
14642 composition rule.
14643
14644 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14645 (struct composition): New member lbearing and rbearing.
14646
14647 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14648 (x_get_glyph_overhangs): Handle a composition glyph.
14649 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14650
14651 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14652 composition glyph.
14653
146542008-02-01 Kenichi Handa <handa@m17n.org>
14655
14656 * print.c: Include charset.h.
14657 (Vprint_charset_text_property): New variable.
14658 (Qdefault): Extern it.
14659 (PRINT_STRING_NON_CHARSET_FOUND)
14660 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14661 (print_check_string_result): New variable.
14662 (print_check_string_charset_prop): New function.
14663 (print_prune_charset_plist): New variable.
14664 (print_prune_string_charset): New function.
14665 (print_object): Call print_prune_string_charset if
14666 Vprint_charset_text_property is not t.
14667 (print_interval): Print nothing if interval->plist is nil.
14668 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14669 variable. Init and staticpro print_prune_charset_plist.
14670
146712008-02-01 Kenichi Handa <handa@m17n.org>
14672
14673 * fontset.c (new_fontset_from_font_name): Use the specified font
14674 for all characters in the new fontset.
14675
14676 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14677 OBJECT args.
14678
14679 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14680 OBJECT args for composition too.
14681
14682 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14683 OBJECT args.
14684
146852008-02-01 Kenichi Handa <handa@m17n.org>
14686
14687 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14688
14689 * fontset.c (reorder_font_vector): Adjust for the change of
14690 FONT_DEF format.
14691 (fontset_face): New arg id. Change caller.
14692 (face_for_char): New args pos and object.
14693 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14694 (fs_query_fontset): Check NAME by Fassoc too.
14695 (Fset_fontset_font): Allow non-XLFD font name.
14696 (Ffontset_info): Adjust for the change of FONT_DEF format.
14697
14698 * fontset.h (face_for_char): Adjust prototype.
14699
14700 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14701 (append_space, extend_face_to_end_of_line)
14702 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14703 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14704
14705 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14706 POS and OBJECT args.
14707
14708 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14709 POS and OBJECT args.
14710
147112008-02-01 Jason Rumney <jasonr@gnu.org>
14712
14713 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14714 of GlobalAlloc'ed memory.
14715
147162008-02-01 Kenichi Handa <handa@m17n.org>
14717
14718 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14719
14720 * charset.h (charset_table_used): Delete extern.
14721
14722 * charset.c (charset_table_used): Make it static.
14723 (map_charset_chars): Fix args to c_function with.
14724
14725 * chartab.c (map_sub_char_table_for_charset): Fix args to
14726 c_function with.
14727
14728 * coding.h (enum coding_result_code): Delete
14729 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14730
14731 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14732 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14733 (Vlast_code_conversion_error): New variables.
14734 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14735 (ONE_MORE_BYTE): Record error if any instead of signaling an
14736 error. If non-ASCII multibyte char is found, return the negative
14737 value of the code. All callers changed to check it.
14738 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14739 (record_conversion_result): New function. Change all codes setting
14740 coding->result to call this function.
14741 (detect_coding_utf_8, decode_coding_utf_8)
14742 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14743 Don't use the local variable incomplete.
14744 (emacs_mule_char): Change the second arg to `const'.
14745 (decode_coding): Fix of flushing out unprocessed data.
14746 (make_conversion_work_buffer): Fix making of a work buffer.
14747 (decode_coding_object): Return coding->dst_object.
14748
14749 * fontset.c (set_fontset_font): Fix args.
14750
14751 * lisp.h (CHARACTERBITS): Define as 22.
14752
14753 * process.c (send_process): Be sure to set coding->src_multibyte.
14754
14755 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14756
147572008-02-01 Kenichi Handa <handa@m17n.org>
14758
14759 * xdisp.c (handle_auto_composed_prop): Give limit to
14760 Fnext_single_char_property_change.
14761
147622008-02-01 Kenichi Handa <handa@m17n.org>
14763
14764 * composite.c (syms_of_composite): Don't make the composition hash
14765 table weak.
14766
14767 * fontset.c (Fset_fontset_font): Fix docstring.
14768
14769 * lisp.h (detect_coding_system): Adjust prototype.
14770
14771 * fileio.c (kill_workbuf_unwind): Delete this function.
14772 (Finsert_file_contents): Adjust the call of detect_coding_system.
14773 Get conversion_buffer by code_conversion_save. Use the macro
14774 CODING_MAY_REQUIRE_DECODING. After decoding, update
14775 coding_system.
14776
14777 * coding.h (make_conversion_work_buffer): Delete extern.
14778 (code_conversion_save): Extern it.
14779
14780 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14781 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14782 (decode_coding_utf_8): Don't do eol converion.
14783 (detect_coding_utf_16): Check coding->src_chars, not
14784 coding->src_bytes. Add heuristics for those that have no signature.
14785 (decode_coding_emacs_mule, decode_coding_iso_2022)
14786 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14787 Don't do eol converion.
14788 (adjust_coding_eol_type): Return a new coding system.
14789 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14790 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14791 each change.
14792 (decode_coding): Pay attention to undo_list. Do eol conversion for
14793 all types of coding-systems (if necessary).
14794 (Vcode_conversion_work_buf_list): Delete it.
14795 (Vcode_conversion_reused_workbuf): Rename from
14796 Vcode_conversion_reused_work_buf.
14797 (Vcode_conversion_workbuf_name): New variable.
14798 (reused_workbuf_in_use): New variable.
14799 (make_conversion_work_buffer): Delete the arg DEPTH.
14800 (code_conversion_restore): Change argument to cons.
14801 (code_conversion_save): Delete the argument BUFFER. Change callers.
14802 (detect_coding_system): New argument src_chars. Change callers.
14803 Fix for utf-16 detection.
14804 (init_coding_once): Don't use ISO_carriage_return.
14805 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14806 reused_workbuf_in_use.
14807
148082008-02-01 Kenichi Handa <handa@m17n.org>
14809
14810 * keymap.c (store_in_keymap): Pay attention to the case that idx
14811 is a cons specifying a character range.
14812
148132008-02-01 Kenichi Handa <handa@m17n.org>
14814
14815 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14816 HANDLED_RECOMPUTE_PROPS.
14817
14818 * coding.c (Fdefine_coding_system_internal): Fix checking of
14819 ascii compatibility.
14820
148212008-02-01 Kenichi Handa <handa@m17n.org>
14822
14823 * charset.c (find_charsets_in_text): Delete unused locale variable.
14824 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14825
14826 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14827 Resync charset_list to Vemacs_mule_charset_list.
14828
14829 * keymap.c (store_in_keymap): Pay attention to the case that idx
14830 is a cons specifying a character range.
14831
148322008-02-01 Kenichi Handa <handa@m17n.org>
14833
14834 * composite.c (update_compositions): Bind inhibit-read-only, etc
14835 to t before calling remove-list-of-text-properties.
14836
14837 * print.c (print_object): Always print ASCII chars as is.
14838
148392008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14842
14843 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14844 is a char table.
14845
148462008-02-01 Kenichi Handa <handa@m17n.org>
14847
14848 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14849
148502008-02-01 Kenichi Handa <handa@m17n.org>
14851
14852 * xfaces.c (set_lface_from_font_name): Fix for the case that
14853 FONTNAME is not fontset name.
14854
148552008-02-01 Kenichi Handa <handa@m17n.org>
14856
14857 * fns.c (base64_encode_1): Fix previous change.
14858
148592008-02-01 Kenichi Handa <handa@m17n.org>
14860
14861 * fontset.c (set_fontset_font): New function.
14862 (Fset_fontset_font): If a font is specified for a charset, use
14863 map_charset_chars to store the font spec in a fontset.
14864
148652008-02-01 Kenichi Handa <handa@m17n.org>
14866
14867 * fontset.c (fontset_face): Create a fallback fontset on demand.
14868 (make_fontset): Don't create a fallback fontset here.
14869 (free_face_fontset): Free a fallback fontset (if any) too.
14870 (n_auto_fontsets): Delete this variable.
14871 (auto_fontset_alist): New variable.
14872 (new_fontset_from_font_name): Check auto_fontset_alist.
14873 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14874 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14875 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14876 Defsubr Sfontset_list_all.
14877
148782008-02-01 Kenichi Handa <handa@m17n.org>
14879
14880 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14881
148822008-02-01 Kenichi Handa <handa@m17n.org>
14883
14884 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14885
148862008-02-01 Kenichi Handa <handa@m17n.org>
14887
14888 * editfns.c (Fgoto_char): Fix docstring.
14889
148902008-02-01 Kenichi Handa <handa@m17n.org>
14891
14892 * insdel.c (insert_from_gap): Adjust intervals correctly.
14893
148942008-02-01 Jason Rumney <jasonr@gnu.org>
14895
14896 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14897 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14898 (w32_initialize): Try to load it.
14899 (x_get_font_repertory): Use it if available.
14900 (w32_encode_char): Add shortcut for unicode output.
14901
14902 * w32fns.c (w32_load_system_font): Default charset to -1.
14903 (x_to_w32_charset): Match all fonts for unicode.
14904 (w32_to_x_charset): New parameter matching. Don't return partial
14905 or wildcard charsets.
14906 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14907 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14908 (w32_to_x_font): Match charset to real charset.
14909 (enum_font_cb2): Always list unicode versions.
14910
14911 * makefile.w32-in (temacs): Increase EMHEAP.
14912
149132008-02-01 Jason Rumney <jasonr@gnu.org>
14914
14915 * w32term.c (w32_encode_char): New charset parameter.
14916 font_info.encoding becomes encoding_type.
14917 (x_get_font_repertory): New function. Warning: stub only!
14918 (x_new_font): Return quickly if font already set.
14919 (x_new_fontset): fontsetname parameter is Lisp_Object.
14920 Use new fs_query_fontset. Try new_fontset_from_font_name.
14921 Use fontset_name for return value.
14922
14923 * w32term.h: Declare x_get_font_repertory.
14924
14925 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14926 place of find_charset_in_text. Use encode_coding_object in place
14927 of encode_coding.
14928 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14929 decode_coding.
14930
14931 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14932 of x_new_fontset.
14933 (w32_load_system_font): Initialize charset as unicode.
14934 font_info.encoding becomes encoding_type.
14935 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14936 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14937 (syms_of_w32fns): Set get_font_repertory_func.
14938
14939 * w32console.c: Include character.h. Use terminal_encode_buffer
14940 from term.c.
14941 (write_glyphs): Use new version of encode_terminal_code. Use
14942 encode_coding_object in place of encode_coding.
14943
14944 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14945 encoding becomes encoding_type.
14946
14947 * term.c (terminal_encode_buffer): Make externally visible.
14948
14949 * makefile.w32-in: Add character.h dependancies.
14950 (character.o, chartab.o): New targets.
14951
149522008-02-01 Kenichi Handa <handa@m17n.org>
14953
14954 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14955 CODING_ID_EOL_TYPE.
14956
149572008-02-01 Andreas Schwab <schwab@suse.de>
14958
14959 * coding.c (produce_chars): Revert last change.
14960
149612008-02-01 Kenichi Handa <handa@m17n.org>
14962
14963 * charset.h (charset_unicode): Extern it.
14964
14965 * charset.c (string_xstring_p): Check by (C >= 0x100).
14966 (find_charsets_in_text): Change format of the arc CHARSETS. New
14967 arg MULTIBYTE.
14968 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14969 change of find_charsets_in_text.
14970 (Fsplit_char): Fix doc. Never return unknown.
14971
14972 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14973
14974 * coding.c (Fdefine_coding_system_alias): Update
14975 Vcoding_system_list.
14976
14977 * fontset.c (load_font_get_repertory): Pay attention to the case
14978 that ENCODING of a font is specified by a char-table.
14979
14980 * xterm.c (x_get_font_repertory): Handle the case that the
14981 encoding of font is other than Unicode.
14982
149832008-02-01 Kenichi Handa <handa@m17n.org>
14984
14985 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14986 if a character is encodable by the terminal coding system. If
14987 not, produces proper number of `?'s. Update
14988 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14989 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14990
149912008-02-01 Kenichi Handa <handa@m17n.org>
14992
14993 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14994 variables.
14995 (encode_terminal_code): Change argument. Encode multiple
14996 characters at once. Store the result of encoding in
14997 terminal_encode_buffer.
14998 (write_glyphs, insert_glyphs): Adjust for the change of
14999 encode_terminal_code.
15000 (term_init): Initialize terminal_encode_buffer and
15001 terminal_encode_buf_size.
15002
15003 * coding.c (consume_chars): If coding->src_object is nil, don't
15004 check annotation.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * character.c (char_string): Use ASCII_CHAR_P instead of
15009 SINGLE_BYTE_CHAR_P.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * xdisp.c (handle_auto_composed_prop): Check if the last
15014 characters of auto-composed region is newly composed with the
15015 following characters.
15016 (handle_composition_prop): Fix checking of point being inside
15017 composition.
15018
150192008-02-01 Kenichi Handa <handa@m17n.org>
15020
15021 * fns.c (concat): Don't change multibyteness of the result by
15022 concatenating an 8-bit character.
15023
15024 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15025 multibyteness of the result when newelt is an 8-bit character.
15026
150272008-02-01 Dave Love <fx@gnu.org>
15028
15029 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15030 EMACS_INT.
15031
15032 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15033
15034 * xfaces.c (face_numeric_value): Declare dim size_t.
15035 (Finternal_lisp_face_equal_p): Remove unused f.
15036
15037 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15038 (MATRIX_ROW): Remove unused vars.
15039 (draw_glyphs, x_insert_glyphs, fast_find_position)
15040 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15041 byte/char counts.
15042
15043 * regex.c (regex_compile): Remove unused var.
15044
15045 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15046
15047 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15048 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15049
15050 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15051
15052 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15053
15054 * fileio.c (Fwrite_region): Remove unused var.
15055
15056 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15057 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15058
15059 * composite.c (Fremove_list_of_text_properties): Declare.
15060
15061 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15062 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15063 (coding_inherit_eol_type): Remove unused attrs.
15064 (detect_coding): Cast arg of detect_eol.
15065
15066 * charset.c (syms_of_charset): Remove unused var p.
15067 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15068 byte/char counts.
15069
15070 * casetab.c (set_case_table): Remove unused var.
15071
15072 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15073 unused vars.
15074
150752008-02-01 Dave Love <fx@gnu.org>
15076
15077 * xterm.c (x_bitmap_mask): Declare.
15078
150792008-02-01 Dave Love <fx@gnu.org>
15080
15081 * xterm.c (x_term_init): Fix type error.
15082
15083 * lisp.h: Add Funibyte_char_to_multibyte.
15084
15085 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15086 (Fset_coding_system_priority): Doc fix.
15087
15088 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15089
15090 * indent.c (check_composition): Make start and end EMACS_INT.
15091
15092 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15093
15094 * xdisp.c (handle_composition_prop, check_point_in_composition):
15095 Make buffer positions EMACS_INT.
15096
15097 * composite.c (find_composition, run_composition_function)
15098 (update_compositions, Ffind_composition_internal): Make buffer
15099 positions EMACS_INT.
15100
15101 * composite.h (find_composition, update_compositions): Make
15102 position args EMACS_INT.
15103
15104 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15105
15106 * intervals.c (get_property_and_range):
15107 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15108
15109 * unexalpha.c: Don't include varargs.h.
15110
151112008-02-01 Dave Love <fx@gnu.org>
15112
15113 * coding.h (ENCODE_UTF_8): New.
15114
15115 * Makefile.in (gtkutil.o): Depend on coding.h.
15116
15117 * coding.c (Fset_coding_system_priority): Doc fix.
15118
151192008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15122 the case of auto saving.
15123
151242008-02-01 Andreas Schwab <schwab@suse.de>
15125
15126 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15127 `range' from GC.
15128
151292008-02-01 Kenichi Handa <handa@m17n.org>
15130
15131 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15132
151332008-02-01 Kenichi Handa <handa@m17n.org>
15134
15135 * fileio.c (choose_write_coding_system): Return a decided coding system.
15136 (Fwrite_region): Set Vlast_coding_system_used to the return value
15137 of choose_write_coding_system.
15138
151392008-02-01 Kenichi Handa <handa@m17n.org>
15140
15141 * charset.c (Fset_charset_priority): Pay attention to duplicated
15142 arguments.
15143
15144 * coding.c (QCcategory): New variable.
15145 (syms_of_coding): Defsym it. Set all elements of
15146 Vcoding_category_table and their symbol values.
15147 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15148 coding-category-XXX, and coding-category-list.
15149 (Fdefine_coding_system_internal): Add category in the plist.
15150
151512008-02-01 Kenichi Handa <handa@m17n.org>
15152
15153 * callproc.c (Fcall_process): Handle carryover correctly.
15154
15155 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15156 (raw_text_coding_system): Check NILP (coding_system).
15157 (coding_inherit_eol_type): Check NILP (coding_system) and
15158 NILP (parent).
15159 (consume_chars): Fix for the case of raw-text.
15160
15161 * process.c (read_process_output): Handle carryover correctly.
15162
151632008-02-01 Dave Love <fx@gnu.org>
15164
15165 * regex.c (re_search_2): Fix last change.
15166
151672008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15170 target_multibyte. Even in a unibyte case, return a converted
15171 multibyte char.
15172 (GET_CHAR_AFTER): New macro.
15173 (PATFETCH): Translate via multibyte char.
15174 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15175 (SETUP_MULTIBYTE_RANGE): New macro.
15176 (regex_compile): Setup compiled code so that its multibyteness
15177 matches that of a target. Fix the handling of "[X-YZ]" using
15178 SETUP_MULTIBYTE_RANGE.
15179 (analyse_first) <charset>: For filling fastmap for all multibyte
15180 characters, don't check by BASE_LEADING_CODE_P.
15181 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15182 the same as RE_MULTIBYTE_P (bufp) now.
15183 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15184 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15185 (TRANSLATE_VIA_MULTIBYTE): New macro.
15186 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15187 It is the same as RE_MULTIBYTE_P (bufp) now.
15188 <exactn>: Translate via multibyte.
15189 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15190 translate it.
15191 <charset, charset_not>: Fetch a character by
15192 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15193 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15194 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15195 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15196 by GET_CHAR_AFTER.
15197 (bcmp_translate): Likewise.
15198
15199 * search.c (compile_pattern): Check the member target_multibyte,
15200 not the member multibyte of buf.
15201
15202 * lread.c (read1): While reading a string, set force_singlebyte
15203 and force_multibyte correctly.
15204
15205 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15206 up of unibyte_to_multibyte_table.
15207
152082008-02-01 Kenichi Handa <handa@m17n.org>
15209
15210 * coding.c (setup_coding_system): If coding has
15211 post-read-conversion or pre-write-conversion, set
15212 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15213 respectively.
15214 (decode_coding_gap): Run post-read-conversion if any.
15215
15216 * fileio.c (Finsert_file_contents): Even if we read into a
15217 unibyte buffer, check if we must decode the result or not.
15218
152192008-02-01 Kenichi Handa <handa@m17n.org>
15220
15221 * coding.c (make_conversion_work_buffer): Change the work buffer
15222 name to the same one as that of Emacs 21.
15223
152242008-02-01 Kenichi Handa <handa@m17n.org>
15225
15226 * coding.h (make_conversion_work_buffer): Adjust prototype.
15227 (code_conversion_restore): Don't extern it.
15228
15229 * coding.c (detected_mask): Delete unused variable.
15230 (decode_coding_iso_2022): Pay attention to the byte sequence of
15231 CTEXT extended segment, and retain those bytes as is.
15232 (decode_coding_ccl): Delete unused variable `valids'.
15233 (setup_coding_system): Delete unused variable `category'.
15234 (consume_chars): Delete unused variable `category'. Make it work
15235 for non-multibyte case.
15236 (make_conversion_work_buffer): Change argument.
15237 (saved_coding): Delete unused variable.
15238 (code_conversion_restore): Don't check saved_coding->destination.
15239 (code_conversion_save): New function.
15240 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15241 instead of record_unwind_protect.
15242 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15243 (detect_coding_system): Delete unused variable `mask'.
15244 (Fdefine_coding_system_internal): Delete unused variable id.
15245
15246 * fileio.c (kill_workbuf_unwind): New function.
15247 (Finsert_file_contents): On replacing, call
15248 make_conversion_work_buffer with correct args, and call
15249 record_unwind_protect with the first arg kill_workbuf_unwind.
15250
15251 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15252
152532008-02-01 Kenichi Handa <handa@m17n.org>
15254
15255 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15256 (fontset_add): Fix for the case that TO is less than TO1.
15257 (Ffontset_info): Don't use fallback fontset on checking the
15258 default fontset.
15259 (dump_fontset): New function for debugging.
15260
15261 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15262 coding_type is Qcharset.
15263
152642008-02-01 Kenichi Handa <handa@m17n.org>
15265
15266 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15267 (map_char_table): Don't inherit the value from the parent on
15268 initializing VAL. Adjust for the above change.
15269
152702008-02-01 Kenichi Handa <handa@m17n.org>
15271
15272 * coding.c (Qsignature, Qendian): Delete these variables.
15273 (syms_of_coding): Don't initialize them.
15274 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15275 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15276 detect_info->found.
15277 (decode_coding_utf_16): Don't detect BOM here.
15278 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15279 is NOT utf_16_without_bom.
15280 (setup_coding_system): For a coding system of type utf-16, check
15281 if the attribute :endian is Qbig or not (not nil or not), and set
15282 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15283 (detect_coding): If coding type is utf-16 and BOM detection is
15284 required, detect it.
15285 (Fdefine_coding_system_internal): For a coding system of type
15286 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15287
152882008-02-01 Kenichi Handa <handa@m17n.org>
15289
15290 * coding.c (coding_set_source): Fix for the case that the current
15291 buffer is different from coding->src_object.
15292 (decode_coding_object): Don't use the conversion work buffer if
15293 DST_OBJECT is a buffer.
15294
152952008-02-01 Dave Love <fx@gnu.org>
15296
15297 * lread.c (read_emacs_mule_char) [len==2]: Index
15298 emacs_mule_charset correctly.
15299
153002008-02-01 Dave Love <fx@gnu.org>
15301
15302 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15303 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15304 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15305 treated specially.)
15306 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15307 (detected_mask): Remove Big5 bits.
15308
153092008-02-01 Kenichi Handa <handa@m17n.org>
15310
15311 The following changes are to make the font rescaling facility
15312 compatible with Emacs 21.
15313
15314 * xfaces.c (Vface_font_rescale_alist): Rename from
15315 Vface_resizing_fonts.
15316 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15317 (font_rescale_ratio): Rename from font_resizing_ratio.
15318 (split_font_name): Set font->rescale_ratio.
15319 (better_font_p): Pay attention to font->rescale_ratio.
15320 (build_scalable_font_name): Likewise. Change RESX, and RESY
15321 fields.
15322 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15323
153242008-02-01 Kenichi Handa <handa@m17n.org>
15325
15326 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15327 (Qutf_16_le): Remove these variables.
15328 (syms_of_coding): Don't DEFSYM them.
15329 (decode_coding_utf_16): Fix handling of BOM.
15330 (encode_coding_utf_16): Fix handling of BOM.
15331
153322008-02-01 Kenichi Handa <handa@m17n.org>
15333
15334 * fileio.c (Finsert_file_contents): On replacing, before decoding
15335 the file into the work buffer, set point of the work buffer to the end.
15336
153372008-02-01 Dave Love <fx@gnu.org>
15338
15339 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15340
153412008-02-01 Dave Love <fx@gnu.org>
15342
15343 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15344 and fix C types.
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * xdisp.c (SKIP_GLYPHS): New macro.
15349 (set_cursor_from_row): Pay attention to string display properties.
15350
15351 * category.c (copy_category_entry): Fix for the case that RANGE
15352 is an integer.
15353
15354 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15355
15356 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * charset.c (Fcharset_id_internal): New function.
15361 (syms_of_charset): Defsubr it.
15362
15363 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15364 with the last arg charset_list acquired from coding.
15365 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15366 the attribute coding_attr_ccl_valids.
15367
15368 * coding.h (enum define_coding_ccl_arg_index): Set the first
15369 member coding_arg_ccl_decoder to coding_arg_max.
15370
15371 * ccl.h (ccl_driver): Adjust prototype.
15372
15373 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15374 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15375 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15376 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15377 last arg Qnil.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15382 call encode_char.
15383
15384 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15385
153862008-02-01 Dave Love <fx@gnu.org>
15387
15388 * composite.c (syms_of_composite): Make composition_hash_table weak.
15389
153902008-02-01 Kenichi Handa <handa@m17n.org>
15391
15392 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15393 (font_name_registry): Don't extern them.
15394 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15395
15396 * fontset.h (Qfontset): Don't extern it.
15397 (new_fontset_from_font_name): Extern it.
15398
15399 * fontset.c: Give 8 extra slots to fontset objects.
15400 (Qfontset_info): New variable.
15401 (syms_of_fontset): Defsym it.
15402 (FONTSET_FALLBACK): New macro.
15403 (fontset_face): Try also the default fontset.
15404 (make_fontset): Realize a fallback fontset from the default fontset.
15405 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15406 using split_font_name_into_vector and build_font_name_from_vector.
15407 (Fset_fontset_font): Access the elements of font_spec by enum
15408 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15409 name by using split_font_name_into_vector.
15410 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15411 generate a proper font name from the fontset name. Update
15412 Vfontset_alias_alist.
15413 (n_auto_fontsets): New variable.
15414 (new_fontset_from_font_name): New function.
15415 (Ffont_info): Store the information about fonts generated from the
15416 default fontset in the first extra slot of the returned char-table.
15417
15418 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15419 (font_name_registry): Delete function.
15420 (split_font_name_into_vector): New function.
15421 (build_font_name_from_vector): New function.
15422 (font_list): The argument REGISTRY is now a list of registry names.
15423 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15424 specifies an explicit font name, return the name as is. Make a
15425 list of registy names.
15426
15427 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15428 of x_new_fontset.
15429 (Fx_create_frame): Don't call x_new_fontset here. Just use
15430 x_list_fonts to check the existence of fonts.
15431
15432 * xterm.h (x_new_fontset): Adjust prototype.
15433
15434 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15435 string. Use new_fontset_from_font_name to create a fontset from a
15436 font name.
15437
154382008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * syntax.c (Vfind_word_boundary_function_table): New name for
15441 Vnext_word_boundary_function_table.
15442 (find-word-boundary-function-table): New name for
15443 next-word-boundary-function-table.
15444
154452008-02-01 Dave Love <fx@gnu.org>
15446
15447 * Makefile.in: Fix some dependencies.
15448
15449 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15450 set it to nil before returning.
15451
15452 * composite.c (update_compositions): Fix type error.
15453
15454 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15455
154562008-02-01 Kenichi Handa <handa@m17n.org>
15457
15458 * xterm.c (x_new_font): Optimize for the case that the font is
15459 already set for the frame.
15460
154612008-02-01 Kenichi Handa <handa@m17n.org>
15462
15463 * chartab.c (char_table_ascii): Check if the char table contents
15464 is sub-char-table or not.
15465 (char_table_set, char_table_set_range): Fix argument to
15466 char_table_ascii.
15467
15468 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15469 (detect_coding_utf_8, detect_coding_utf_16)
15470 (detect_coding_emacs_mule, detect_coding_iso_2022)
15471 (detect_coding_sjis, detect_coding_big5)
15472 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15473 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15474 sequence is valid in this coding system. Change callers.
15475 (MAX_ANNOTATION_LENGTH): New macro.
15476 (ADD_ANNOTATION_DATA): New macro.
15477 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15478 ADD_ANNOTATION_DATA. Change the format of annotation data.
15479 (ADD_CHARSET_DATA): New macro.
15480 (emacs_mule_char): New argument ID. Change callers.
15481 (decode_coding_emacs_mule, decode_coding_iso_2022)
15482 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15483 Produce charset annotation data in coding->charbuf.
15484 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15485 to charset annotation data in coding->charbuf.
15486 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15487 coding->common_flags if the coding system is iso-2022 based and
15488 uses designation.
15489 (produce_composition): Adjust for the new annotation data format.
15490 (produce_charset): New function.
15491 (produce_annotation): Handle charset annotation.
15492 (handle_composition_annotation, handle_charset_annotation): New
15493 functions.
15494 (consume_chars): Handle charset annotation. Utilize the above two
15495 functions.
15496 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15497 buffer, get the deleted text as a string and set
15498 coding->src_object to that string.
15499 (detect_coding, detect_coding_system): Use the new struct
15500 coding_detection_info.
15501
15502 * coding.h (struct coding_detection_info): New structure.
15503 (struct coding_system): Adjust prototype of the member `detector'.
15504 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15505
155062008-02-01 Kenichi Handa <handa@m17n.org>
15507
15508 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15509
155102008-02-01 Dave Love <fx@gnu.org>
15511
15512 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15513 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15514 to new local and nullify apropos_accumulate before returning.
15515 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15516
155172008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15520 correctly.
e3eea1fc 15521
aac0c6e3
MR
155222008-02-01 Dave Love <fx@gnu.org>
15523
15524 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15525
155262008-02-01 Kenichi Handa <handa@m17n.org>
15527
15528 The following changes are to make character composition happen
15529 automatically on displaying.
15530
15531 * Makefile.in (lisp, shortlisp): Add composite.elc.
15532
15533 * composite.h (Qauto_composed, Vauto_composition_function)
15534 (Qauto_composition_function): Extern them.
15535
15536 * composite.c (Vcomposition_function_table)
15537 (Qcomposition_function_table): Delete variables.
15538 (Qauto_composed, Vauto_composition_function)
15539 (Qauto_composition_function): New variables.
15540 (run_composition_function): Don't call
15541 compose-chars-after-function.
15542 (update_compositions): Clear `auto-composed' text property.
15543 (compose_chars_in_text): Delete this function.
15544 (syms_of_composite): Staticpro Qauto_composed and
15545 Qauto_composition_function. Declare Vauto_composition_function as
15546 a Lisp variable.
15547
15548 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15549
15550 * xdisp.c (it_props): Add an entry for Qauto_composed.
15551 (handle_auto_composed_prop): New function.
15552
15553 * xselect.c (selection_data_to_lisp_data): Don't call
15554 compose_chars_in_text.
15555
155562008-02-01 Dave Love <fx@gnu.org>
15557
15558 * keyboard.c (read_char): Modify checking around use of
15559 Vkeyboard_translate_table.
15560
15561 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15562 and fix C types.
15563
155642008-02-01 Kenichi Handa <handa@m17n.org>
15565
15566 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15567 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15568 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15569 the case that the last byte is '\r' correctly.
15570 (decode_coding): Flush out the unprocessed data correctly.
15571 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15572
155732008-02-01 Dave Love <fx@gnu.org>
15574
15575 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15576 Add XK_ISO... case.
15577 (xaw_scroll_callback): Revert last change.
15578
155792008-02-01 Kenichi Handa <handa@m17n.org>
15580
15581 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15582
155832008-02-01 Kenichi Handa <handa@m17n.org>
15584
15585 * xfaces.c (Vface_resizing_fonts): New variable.
15586 (struct font_name): New member `resizing_ratio'.
15587 (font_resizing_ratio): New function.
15588 (split_font_name): Set font->resizing_ratio.
15589 (better_font_p): Pay attention to font->resizing_ratio.
15590 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15591 RESX, and RESY fields.
15592 (try_alternative_families): Try scalable fonts if
15593 Vscalable_fonts_allowed is not Qt.
15594 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15595
155962008-02-01 Dave Love <fx@gnu.org>
15597
15598 * xterm.c (xaw_scroll_callback): Cast correctly.
15599
156002008-02-01 Dave Love <fx@gnu.org>
15601
15602 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15603 (lispy_kana_keys): Comment out.
15604 (make_lispy_event) [XK_kana_A]: Comment out.
15605
15606 * xterm.c (xaw_scroll_callback): Cast call_data.
15607 (XTread_socket): Deal with ASCII keysyms.
15608 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15609
156102008-02-01 Dave Love <fx@gnu.org>
15611
15612 * xterm.c (Vx_keysym_table): New.
15613 (syms_of_xterm): Initialize it.
15614 (XTread_socket): Use it.
15615 From head: Eliminate incorrect optimization that tried to avoid
15616 decoding the output of X*LookupString.
15617 (x_get_font_repertory): Delete charset declaration.
15618
156192008-02-01 Kenichi Handa <handa@m17n.org>
15620
15621 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15622 return 0.
15623 (Fdefine_coding_system_internal): Setup
15624 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15625
156262008-02-01 Dave Love <fx@gnu.org>
15627
15628 * coding.c (Fcheck_coding_system): Doc fix.
15629
15630 * editfns.c (Finsert_byte): Return a proper value.
15631
156322008-02-01 Kenichi Handa <handa@m17n.org>
15633
15634 * coding.c (decode_coding): Fix args to translate_chars. Pay
15635 attention to Vstandard_translation_table_for_decode.
15636 (encode_coding): Fix args to translate_chars. Pay attention to
15637 Vstandard_translation_table_for_encode.
15638
15639 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15640 SINGLE_BYTE_CHAR_P.
15641
15642 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15643 not by SINGLE_BYTE_CHAR_P.
15644
15645 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15646 SINGLE_BYTE_CHAR_P.
15647
15648 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15649 SINGLE_BYTE_CHAR_P.
15650
15651 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15652 by SINGLE_BYTE_CHAR_P.
15653
15654 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15655 SINGLE_BYTE_CHAR_P.
15656
156572008-02-01 Dave Love <fx@gnu.org>
15658
15659 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15660
156612008-02-01 Dave Love <fx@gnu.org>
15662
15663 * fns.c (Flanginfo): Fix typo.
15664
15665 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15666
156672008-02-01 Kenichi Handa <handa@m17n.org>
15668
15669 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15670 (detect_coding_emacs_mule, detect_coding_iso_2022)
15671 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15672 incomplete byte sequence. Don't update *mask when correctly detected.
15673 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15674 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15675 (detect_coding, detect_coding_system): Adjust for the changes above.
15676
156772008-02-01 Kenichi Handa <handa@m17n.org>
15678
15679 * character.c (char_string): Rename from
15680 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15681 (string_char): Rename from string_char.
15682
15683 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15684 if C is greater than MAX_3_BYTE_CHAR.
15685 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15686 string_char instead of string_char_with_unification.
15687
156882008-02-01 Dave Love <fx@gnu.org>
15689
15690 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15691
156922008-02-01 Kenichi Handa <handa@m17n.org>
15693
15694 * keymap.c (push_key_description): Pay attention to force_multibyte.
15695
15696 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15697
156982008-02-01 Dave Love <fx@gnu.org>
15699
15700 * charset.c (define_charset_internal): Rename `supprementary'.
15701
15702 * Makefile.in (lisp, shortlisp): Remove latin-N.
15703
157042008-02-01 Dave Love <fx@gnu.org>
15705
15706 * xfns.c (x_window, x_window): Use use_xim.
15707
15708 * xterm.c (use_xim): Initialize.
15709 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15710 (x_term_init): Maybe set use_xim.
15711
15712 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15713
157142008-02-01 Kenichi Handa <handa@m17n.org>
15715
15716 * search.c (search_buffer): Fix case-fold-search of multibyte
15717 characters.
15718 (boyer_moore): Rename the last argument to char_high_bits.
15719
157202008-02-01 Kenichi Handa <handa@m17n.org>
15721
15722 * xdisp.c (display_string): Fix for the case of zero width glyph.
15723
15724 * xfns.c (x_set_font): Change the error message of the case that
15725 x_new_fontset returns Qt.
15726
15727 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15728 (Finternal_set_lisp_face_attribute): Use signal_error for the
15729 error of invalid fontset.
15730
15731 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15732 fontset, return Qt.
15733
157342008-02-01 Dave Love <fx@gnu.org>
15735
15736 * unexelf.c (unexec): Make .got handling not SGI-specific.
15737
15738 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15739
15740 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15741
15742 * keyboard.c (read_key_sequence): Fix type error.
15743
15744 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15745 type error.
15746
15747 * fontset.c (fontset_add): Return Lisp_Object.
15748
157492008-02-01 Dave Love <fx@gnu.org>
15750
15751 * charset.h (charset_ordered_list_tick): Declare extern.
15752
157532008-02-01 Kenichi Handa <handa@m17n.org>
15754
15755 The following changes (and some of 2008-02-01 changes of mine) are
15756 for handling syntax, category, and case conversion for unibyte
15757 characters by converting them to multibyte on the fly. With these
15758 changes, we don't have to setup syntax and case tables for unibyte
15759 characters in each language environment.
15760
15761 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15762 multibyte if necessary.
15763
15764 * bytecode.c (Fbyte_code): Likewise.
15765
15766 * character.h (LEADING_CODE_LATIN_1_MIN)
15767 (LEADING_CODE_LATIN_1_MAX): New macros.
15768 (unibyte_to_multibyte_table): Extern it.
15769 (unibyte_char_to_multibyte): New macro.
15770 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15771 (CHAR_LEADING_CODE): New macro.
15772 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15773
15774 * character.c (unibyte_to_multibyte_table): New variable.
15775 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15776 (multibyte_char_to_unibyte): If C is an eight-bit character,
15777 convert it to the corresponding byte value.
15778
15779 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15780 not 1, signals an error. Update the elements of
15781 unibyte_to_multibyte_table.
15782 (init_charset_once): Initialize unibyte_to_multibyte_table.
15783 (syms_of_charset): Define the charset `iso-8859-1'.
15784
15785 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15786 as is without converting it to unibyte. In a unibyte buffer,
15787 convert C to multibyte before checking the syntax.
15788
15789 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15790
15791 * minibuf.c (Fminibuffer_complete_word): Use the macro
15792 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15793
15794 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15795
15796 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15797 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15798 that is zero, convert an eight-bit char to multibyte.
15799 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15800 non-emacs case.
15801 (PATFETCH): Convert an eight-bit char to multibyte.
15802 (HANDLE_UNIBYTE_RANGE): New macro.
15803 (regex_compile): Setup the compiled pattern for multibyte chars
15804 even if the given regex string is unibyte. Use PATFETCH_RAW
15805 instead of PATFETCH in many places. To handle `charset'
15806 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15807 only for ASCII chars.
15808 (analyse_first) <exactn>: Simplify because the compiled pattern
15809 is multibyte.
15810 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15811 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15812 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15813 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15814 multibyte always 1.
15815 (re_search_2): In emacs, set the locale variable multibyte to 1,
15816 otherwise to 0. New local variable target_multibyte. Check it
15817 to decide the multibyteness of STR1 and STR2. If
15818 target_multibyte is zero, convert unibyte chars to multibyte
15819 before translating and checking fastmap.
15820 (TARGET_CHAR_AND_LENGTH): New macro.
15821 (re_match_2_internal): In emacs, set the locale variable multibyte
15822 to 1, otherwise to 0. New local variable target_multibyte. Check
15823 it to decide the multibyteness of STR1 and STR2. Use
15824 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15825 <charset, charset_not>: If multibyte is nonzero, check fastmap
15826 only for ASCII chars. Call bcmp_translate with
15827 target_multibyte, not with multibyte.
15828 <begline>: Declare the local variable C as `unsigned'.
15829 (bcmp_translate): Change the last arg name to target_multibyte.
15830
15831 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15832 the regexp pattern and the matching target. Set cp->buf.multibyte
15833 to the multibyteness of the regexp pattern. Set
15834 cp->but.target_multibyte to the multibyteness of the matching target.
15835 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15836 FETCH_STRING_CHAR_ADVANCE.
15837 (Freplace_match): Convert unibyte chars to multibyte.
15838
15839 * syntax.c (char_quoted, back_comment, scan_words)
15840 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15841 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15842 unibyte chars to multibyte.
15843 (skip_chars): Delete the arg syntaxp, and move the code for
15844 handling syntaxes to skip_syntaxes. Change callers.
15845 Fix the case that the multibyteness of STRING and the current
15846 buffer doesn't match.
15847 (skip_syntaxes): New function.
15848 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15849 SINGLE_BYTE_CHAR_P.
15850
158512008-02-01 Kenichi Handa <handa@m17n.org>
15852
15853 * xfaces.c (QCfontset): New variable.
15854 (LFACE_FONTSET): New macro.
15855 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15856 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15857 (Finternal_set_lisp_face_attribute)
15858 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15859 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15860 check also LFACE_FONTSET_INDEX.
15861 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15862 attrs[LFACE_FONT_INDEX].
15863 (syms_of_xfaces): Intern and staticpro QCfontset.
15864
15865 * dispextern.h (enum lface_attribute_index): New member
15866 LFACE_FONTSET_INDEX.
15867
15868 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15869
158702008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * coding.c (coding_set_destination): Fix coding->destination for
15873 the case converting a region.
15874 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15875 (encode_coding_object): Fix coding->dst_pos and
15876 coding->dst_pos_byte for the case converting a region.
15877
15878 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15879
15880 * character.h (BYTE8_STRING): New macro.
15881
15882 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15887 characters by octal form.
15888
15889 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15890
15891 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15892 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15893 _fetch_multibyte_char_len.
15894 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15895
15896 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15897
15898 * casefiddle.c (casify_object): Simplify. Handle the case that
15899 the case conversion change the byte length.
15900 (casify_region): Likewise.
15901
15902 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15903
15904 * character.c (_fetch_multibyte_char_len): Delete this variable.
15905 (syms_of_character): Setup Vprintable_chars.
15906
15907 * editfns.c (Fchar_equal): Fix for the unibyte case.
15908 (Finsert_byte): New function.
15909 (syms_of_editfns): Defsubr it.
15910
15911 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15912 of direct code 0x3ffff.
15913
15914 * search.c (Freplace_match): Fix for the unibyte case.
15915
159162008-02-01 Kenichi Handa <handa@m17n.org>
15917
15918 * lread.c (safe_to_load_p): Fix the logic.
15919
15920 * syntax.c (scan_words): Don't treat characters belonging to
15921 different scripts as constituting a word.
15922
15923 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15924
15925 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15926
15927 * emacs.c (main): In the case of --unibyte, instead of aborting on
15928 finding non-empty buffer, make it unibyte.
15929
159302008-02-01 Kenichi Handa <handa@m17n.org>
15931
15932 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15933 to create a fontset.
15934
159352008-02-01 Dave Love <fx@gnu.org>
15936
15937 * character.c (Funibyte_char_to_multibyte): Doc fix.
15938
15939 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15940
159412008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * fontset.c (fontset_add): Make the type `int'.
15944 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15945
15946 * character.c (unibyte_char_to_multibyte)
15947 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15948 charset_unibyte, not charset_primary.
15949
15950 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15951
15952 * charset.c (charset_unibyte): Rename from charset_primary.
15953 (Funibyte_charset): Rename from Fprimary_charset.
15954 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15955 (syms_of_charset): Adjust for the above changes.
15956
15957 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15958 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15959 it->multibyte_p is zero.
15960
15961 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15962 Delete extern.
15963
159642008-02-01 Kenichi Handa <handa@m17n.org>
15965
15966 * coding.c (Fdefine_coding_system_internal): Fix category setting
15967 for a coding system of type iso-2022.
15968
159692008-02-01 Kenichi Handa <handa@m17n.org>
15970
15971 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15972
159732008-02-01 Kenichi Handa <handa@m17n.org>
15974
15975 * syntax.c (Vnext_word_boundary_function_table): New variable.
15976 (next-word-boundary-function-table): Declare it as a Lisp variable
15977 in syms_of_syntax.
15978 (scan_words): Call functions in Vnext_word_boundary_function_table
15979 if any.
15980
15981 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15982
15983 * fontset.c (fs_load_font): If fontp->charset is not negative,
15984 return fontp without setting its members.
15985
159862008-02-01 Dave Love <fx@gnu.org>
15987
15988 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15989
15990 * m/sparc.h (HAVE_ALLOCA): Delete.
15991
15992 * s/irix6-5.h: Don't include strings.h.
15993 (bcopy, bzero, bcmp): Don't undef.
15994
15995 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15996
15997 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15998 (TIOCSIGSEND): Don't test IRIX6.
15999 (bcopy, bzero, bcmp): Define conditionally.
16000
160012008-02-01 Kenichi Handa <handa@m17n.org>
16002
16003 * buffer.c (Qas, Qmake, Qto): New variables.
16004 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16005 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16006
16007 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16008 we are inserting a process output into a multibyte buffer.
16009
16010 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16011 multibyte_char_to_unibyte.
16012
16013 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16014 by the primary charset, make it eight-bit char.
16015 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16016
16017 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16018 (charset_8_bit__control, charset_8_bit_graphic)
16019 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16020 (define_charset_internal): New function.
16021 (syms_of_charset): Call define_charset_internal for pre-defined
16022 charsets.
16023
16024 * charset.h (charset_8_bit): Extern it.
16025
16026 * coding.c (make_conversion_work_buffer): Adjust for the change
16027 of Fset_buffer_multibyte.
16028 (encode_coding_raw_text): Increment p0 in the loop.
16029
16030 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16031
16032 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16033 for the change of Fset_buffer_multibyte.
16034
16035 * fns.c (Fstring_to_multibyte): New function.
16036 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16037
160382008-02-01 Dave Love <fx@gnu.org>
16039
16040 * xfns.c (x_put_x_image): Declare args.
16041
16042 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16043 (try_font_list): Declare an arg.
16044
16045 * xdisp.c (message2_nolog, set_message): Declare an arg.
16046
16047 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16048
16049 * syntax.c (scan_sexps_forward): Declare an arg.
16050
16051 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16052 Declare an arg.
16053
16054 * lisp.h (Fnew_fontset): Declare.
16055
16056 * keymap.c (push_key_description): Call CHARACTERP correctly.
16057
16058 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16059 (face_for_char): Delete unused vars.
16060 (Fset_fontset_font): Doc fix. Delete unused vars.
16061
16062 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16063
16064 * composite.c (update_compositions): Declare arg.
16065
16066 * cm.c (calccost, cmgoto): Declare args.
16067
16068 * charset.c: Remove `emacs' conditional. Doc fixes.
16069 (map_char_table_for_charset): Declare.
16070
16071 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16072
16073 * ccl.c: Remove `emacs' conditional.
16074
160752008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 The following changes are to allow specifying multiple font
16078 patterns for a character range (specified by script or charset).
16079
16080 * Makefile.in (abbrev.o): Depend on syntax.h.
16081 (xfaces.o): Depend on charset.h.
16082
16083 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16084 SINGLE_BYTE_CHAR_P.
16085
16086 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16087
16088 * character.h (Vchar_script_table): Extern it.
16089
16090 * character.c (Vscript_alist): Delete.
16091 (Vchar_script_table, Qchar_script_table): New variable.
16092 (syms_of_character): Declare Vchar_script_table as a lisp variable
16093 and initialize it.
16094
16095 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16096 have property char-table-extra-slots, make no extra slot.
16097
16098 * dispextern.h (struct face): Delete member `charset'.
16099 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16100 SINGLE_BYTE_CHAR_P.
16101 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16102 Add prototypes.
16103 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16104 (generate_ascii_font_name): Rename from generate_ascii_font.
16105
16106 * fontset.h (get_font_repertory_func): New prototype.
16107 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16108 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16109
16110 * fontset.c (Qprepend, Qappend): New variables.
16111 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16112 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16113 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16114 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16115 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16116 (load_font_get_repertory): New functions.
16117 (fontset_set): Delete.
16118 (fontset_face): New arg FACE. Return face ID, not face.
16119 Complete re-write to handle new fontset structure. Change caller.
16120 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16121 (face_for_char): Don't call lookup_face.
16122 (make_fontset_for_ascii_face): New arg FACE.
16123 (fs_load_font): New arg CHARSET_ID. Don't check
16124 Vfont_encoding_alist here.
16125 (find_font_encoding): New function.
16126 (list_fontsets): Use STRINGP, not ! NILP.
16127 (accumulate_script_ranges): New function.
16128 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16129 re-written to handle new fontset structure.
16130 (Ffontset_font): Return a copy of element.
16131 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16132 docstring of font-encoding-alist.
16133
16134 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16135 (Fset_fotset_font): Fix arguments to 5.
16136
16137 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16138
16139 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16140 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16141 (highlight_trailing_whitespace): Adjust for the change of
16142 lookup_named_face.
16143
16144 * xfaces.c: Include charset.h.
16145 (load_face_font): Delete argument C. Change caller.
16146 (generate_ascii_font_name): Rename from generate_ascii_font.
16147 (font_name_registry): New function.
16148 (cache_face): Store ascii faces before non-ascii faces in buckets.
16149 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16150 Lookup only ascii faces.
16151 (lookup_non_ascii_face): New function.
16152 (lookup_named_face): Delete argument C. Change caller.
16153 (lookup_derived_face): Delete argument C. Change caller.
16154 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16155 a string, just call font_list with it.
16156 (choose_face_font): Delete arguments FACE and C. New arg
16157 FONT_SPEC. Change caller.
16158 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16159 Change caller.
16160 (realize_non_ascii_face): New function.
16161 (realize_x_face): Call load_face_font here.
16162 (realize_tty_face): Delete argument C. Change caller.
16163 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16164 get a face ID.
16165 (dump_realized_face): Don't print charset of FACE.
16166
16167 * xfns.c (x_set_font): Always call x_new_fontset and
16168 store_frame_parameter.
16169 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16170 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16171
16172 * xterm.h (x_get_font_repertory): Extern it.
16173
16174 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16175 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16176 it->multibyte_p is zero.
16177 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16178 (x_new_fontset): If FONTSETNAME doesn't match any existing
16179 fontsets, create a new one.
16180 (x_get_font_repertory): New function.
16181
161822008-02-01 Kenichi Handa <handa@m17n.org>
16183
16184 * coding.c (Ffind_coding_systems_region_internal): Detect an
16185 ASCII only string correctly.
16186
16187 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16188 version is 0.
16189
161902008-02-01 Kenichi Handa <handa@m17n.org>
16191
16192 * lread.c: Include "coding.h".
16193 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16194 (load_each_byte, unread_char): New variables.
16195 (readchar_backlog): Delete.
16196 (readchar): Return a character unless load_each_byte is nonzero.
16197 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16198 cons. If unread_char is not -1, simply return it.
16199 (unreadchar): Handle the case that readcharfun is
16200 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16201 (read_multibyte): Delete.
16202 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16203 (read_emacs_mule_char): New functions.
16204 (Fload): Even if the file doesn't have the extension ".elc", if
16205 safe_to_load_p returns a positive version number, assume that the
16206 file contains bytecompiled code. If the version is less than 22,
16207 load the file while decoding multibyte sequences by emacs-mule.
16208 (readevalloop): Don't use readchar_backlog.
16209 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16210 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16211 (read_escape): Delete the arg BYTEREP.
16212 (read1): Set load_each_byte to 1 temporarily while handling
16213 #@NUMBER. Don't call read_multibyte.
16214 (read_vector): Call Fread with a cons. If readcharfun is
16215 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16216 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16217 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16218 and Qload_force_doc_strings.
16219
162202008-02-01 Kenichi Handa <handa@m17n.org>
16221
16222 * xdisp.c (face_before_or_after_it_pos): Call
16223 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16224
162252008-02-01 Kenichi Handa <handa@m17n.org>
16226
16227 * character.h (TRAILING_CODE_P): New macro.
16228 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16229 (string_char_with_unification): Fix prototype.
16230 (Vscript_alist): Extern it.
16231
16232 * character.c (Vscript_alist): New variable.
16233 (string_char_with_unification, str_as_unibyte)
16234 (string_escape_byte8): Add `const' to local variables.
16235 (syms_of_character): Declare script-alist as a Lisp variable.
16236
16237 * charset.h (Vcharset_ordered_list): Extern it.
16238 (charset_ordered_list_tick): Extern it.
16239 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16240 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16241 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16242 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16243 (Funify_charset): Adjust for the change of Funify_charset.
16244
16245 * charset.c (charset_ordered_list_tick): New variable.
16246 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16247 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16248 deunify intead of unify a charset.
16249 (string_xstring_p): Add `const' to local variables.
16250 (find_charsets_in_text): Add `const' to arguments and local variables.
16251 (encode_char): Adjust for the change of Funify_charset. Fix
16252 detecting of invalid code.
16253 (Fset_charset_priority): Increment charset_ordered_list_tick.
16254 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16255 and TO_CODE.
16256
16257 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16258 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16259 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16260 (decode_coding_ccl, consume_chars)
16261 (Ffind_coding_systems_region_internal)
16262 (Fcheck_coding_systems_region): Add `const' to local variables.
16263
16264 * print.c (print_object): Use octal form for printing the
16265 contents of a bool vector.
16266
162672008-02-01 Dave Love <fx@gnu.org>
16268
16269 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16270 <version == 20>: Refuse to load.
16271
162722008-02-01 Dave Love <fx@gnu.org>
16273
16274 * fns.c: Move coding.h.
16275 (Qcodeset, Qdays, Qmonths): New.
16276 (concat): Use CHARACTERP instead of INTEGERP.
16277 (Flocale_codeset): Delete.
16278 (Flanginfo): New function.
16279 (syms_of_fns): Change accordingly.
16280
16281 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16282
162832008-02-01 Dave Love <fx@gnu.org>
16284
16285 * casetab.c (init_casetab_once, init_casetab_once): Fix
16286 CHAR_TABLE_SET call.
16287
16288 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16289
16290 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16291
16292 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16293 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16294 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16295
16296 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16297
16298 * coding.c (ENCODE_DESIGNATION, decode_eol)
16299 (make_conversion_work_buffer, code_conversion_restore)
16300 (Fdefine_coding_system_internal): Convert Lisp types.
16301 (code_conversion_restore): Use EQ, not ==.
16302 (Fencode_coding_string): Fix code_convert_string call.
16303
16304 * coding.h (code_convert_region): Fix prototype.
16305
16306 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16307
16308 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16309 (Ffontset_info): Convert Lisp types.
16310
16311 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16312
16313 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16314
16315 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16316
16317 * chartab.c: Include "...h", not <...h> in some cases.
16318
16319 * callproc.c (Fcall_process): Remove unused variables.
16320
163212008-02-01 Dave Love <fx@gnu.org>
16322
16323 * coding.c (Fset_coding_system_priority): Allow null arg list.
16324
163252008-02-01 Dave Love <fx@gnu.org>
16326
16327 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16328 (Fself_insert_and_exit): Use CHARACTERP.
16329
16330 * callproc.c (Fcall_process): Remove unused vars.
16331
16332 * xterm.c (XTread_socket): Add extra dead keysyms.
16333
16334 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16335
16336 * dispextern.h: Remove prototypes for redraw_frame,
16337 redraw_garbaged_frames.
16338
16339 * cmds.c (Fself_insert_command): Use CHARACTERP.
16340
16341 * chartab.c (make_sub_char_table): Remove unused var.
16342 (Fset_char_table_default, Fmap_char_table): Doc fix.
16343
16344 * keymap.c (access_keymap): Remove generic char code.
16345 (push_key_description): Use CHARACTERP.
16346
163472008-02-01 Dave Love <fx@gnu.org>
16348
16349 * charset.c: Doc fixes.
16350 (Funify_charset): Extra checking.
16351
163522008-02-01 Dave Love <fx@gnu.org>
16353
16354 * lread.c: Remove some unused variables.
16355 (safe_to_load_p): If safe, return the magic number version byte.
16356 (Fload): Maybe use load-with-code-conversion.
16357
163582008-02-01 Kenichi Handa <handa@m17n.org>
16359
16360 * category.c (Fmodify_category_entry): Don't modify the contents
16361 of category_set for characters out of the range. Avoid
16362 unnecessary modification.
16363
16364 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16365 Vchar_unify_table. The default value of the table is now nil.
16366
16367 * character.c (syms_of_character): Setup Vchar_width_table for
16368 eight-bit-control and raw-byte chars.
16369
16370 * charset.h (enum define_charset_arg_index): Delete
16371 charset_arg_parents and add charset_arg_subset and
16372 charset_arg_superset.
16373 (enum charset_attr_index): Delete charset_parents and add
16374 charset_subset and charset_superset.
16375 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16376 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16377 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16378 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16379 (CHARSET_SUPERSET): New macros.
16380 (charset_work): Extern it.
16381 (ENCODE_CHAR): Use charset_work.
16382 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16383 (map_charset_chars): Extern it.
16384
16385 * charset.c (load_charset_map): Set the default value of encoder
16386 and deunifier char-tables to nil.
16387 (map_charset_chars): Change argument. Change callers. Use
16388 map_char_table_for_charset instead of map_char_table.
16389 (Fmap_charset_chars): New optional args from_code and to_code.
16390 (Fdefine_charset_internal): Adjust for the change of
16391 `define-charset' (:parents -> :subset or :superset).
16392 (charset_work): New variable.
16393 (encode_char, syms_of_charset): Adjust for the change of
16394 Fdefine_charset_internal.
16395 (Ffind_charset_string): Setup the vector `charsets' correctly.
16396
16397 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16398 the previous change.
16399 (char_table_ref_and_range): Adjust for the above change.
16400 (map_sub_char_table_for_charset): New function.
16401 (map_char_table_for_charset): New function.
16402
16403 * keymap.c (describe_vector): Handle a char-table directly here.
16404 (describe_char_table): Delete.
16405
16406 * lisp.h (map_charset_chars): Delete.
16407
164082008-02-01 Dave Love <fx@gnu.org>
16409
16410 * fns.c (count_combining): Comment out (unused).
16411 (Flocale_codeset): New.
16412 (syms_of_fns): Defsubr it.
16413
16414 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16415 (size_t): Remove.
16416
164172008-02-01 Dave Love <fx@gnu.org>
16418
16419 * Makefile.in (chartab.o): Depend on charset.h.
16420
164212008-02-01 Kenichi Handa <handa@m17n.org>
16422
16423 * character.c (syms_of_character): Set the default value of
16424 Vprintable_chars to Qnil.
16425
164262008-02-01 Dave Love <fx@gnu.org>
16427
16428 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16429
164302008-02-01 Kenichi Handa <handa@m17n.org>
16431
16432 * charset.c (load_charset_map): Handle the case that from < to
16433 correctly.
16434
16435 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16436 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16437 Pay attention to raw-8-bit chars.
16438
164392008-02-01 Kenichi Handa <handa@m17n.org>
16440
16441 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16442 It is not bytecompiled now.
16443
16444 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16445 (charset_jisx0208): New variables.
16446 (Fdefine_charset_internal): Setup them if appropriate.
16447 (init_charset_once): Initialize them to -1.
16448
16449 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16450 (charset_jisx0208): Extern them.
16451
16452 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16453 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16454 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16455 (setup_iso_safe_charsets): Fix arguments to Fassq.
16456 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16457 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16458 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16459 (encode_coding_iso_2022): Change the 1st arg to
16460 ENCODE_ISO_CHARACTER to a variable.
16461
164622008-02-01 Kenichi Handa <handa@m17n.org>
16463
16464 * charset.h (enum define_charset_arg_index): New enums
16465 charset_arg_min_code and charset_arg_max_code.
16466 (struct charset): New member char_index_offset.
16467
16468 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16469 Take charset->char_index_offset into account.
16470 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16471 args[charset_arg_max_code]. Setup charset.char_index_offset.
16472 (syms_of_charset): Fix args to Fdefine_charset_internal.
16473
164742008-02-01 Dave Love <fx@gnu.org>
16475
16476 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16477
164782008-02-01 Dave Love <fx@gnu.org>
16479
16480 * coding.c: Doc fixes.
16481 (Fcoding_system_aliases): Fix return value.
16482 (Qmac): Remove (duplicated) definition.
16483
164842008-02-01 Dave Love <fx@gnu.org>
16485
362654a6
JB
16486 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16487 New functions.
aac0c6e3
MR
16488
16489 * character.c (Fstring): Doc fix.
16490
16491 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16492
362654a6 16493 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16494 (font-encoding-alist): Doc fix.
16495
164962008-02-01 Dave Love <fx@gnu.org>
16497
16498 * term.c (costs_set): Declare static, non-initialized for pcc.
16499 (encode_terminal_code): Remove unused var.
16500
16501 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16502 for K&R.
16503
16504 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16505
16506 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16507 (suffixes): Move out of make_subsidiaries for K&R.
16508
16509 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16510
16511 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16512
165132008-02-01 Dave Love <fx@gnu.org>
16514
16515 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16516
16517 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16518
165192008-02-01 Yong Lu <lyongu@asia-infonet.com>
16520
16521 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16522
16523 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16524
165252008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16528 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16529
165302008-02-01 Kenichi Handa <handa@m17n.org>
16531
16532 * coding.c (decode_coding_charset): Adjust for the change of
16533 Fdefine_coding_system_internal.
16534 (Fdefine_coding_system_internal): For a coding system of
16535 `charset' type, store a list of charset IDs in
16536 `charset_attr_charset_valids' element of coding attributes.
16537
165382008-02-01 Kenichi Handa <handa@m17n.org>
16539
16540 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16541 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16542 caller. Handle 2-byte and 3-byte charsets correctly.
16543 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16544 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16545 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16546 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16547 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16548 sequence.
16549 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16550 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16551 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16552 and alt&rule composition.
16553 (decode_coding_iso_2022): Handle composition correctly.
16554 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16555
16556 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16557 re-defining a charset. If the charset has :emacs-mule-id, setup
16558 emacs_mule_bytes.
16559 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16560
165612008-02-01 Kenichi Handa <handa@m17n.org>
16562
16563 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16564 (encode_coding_big5, encode_coding_charset): If coding requires safe
16565 encoding, produce a character specified by
16566 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16567
165682008-02-01 Dave Love <fx@gnu.org>
16569
16570 * xterm.c (XSetIMValues): Declare.
16571
16572 * process.c: Conditionally include sys/wait.h, pty.h.
16573
16574 * print.c (print_object): Fix print format for 64-bit systems.
16575
16576 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16577
16578 * buffer.c (emacs_strerror): Declare.
16579
16580 * fontset.c (Fclear_face_cache): Declare.
16581 (accumulate_font_info): Comment-out (unused).
16582 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16583 variables.
16584
16585 * character.h (string_escape_byte8): Declare.
16586
16587 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16588 unused vars.
16589 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16590 (Fmap_charset_chars): Doc fix.
16591
16592 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16593 (Fset_coding_system_priority, Fset_coding_system_priority)
16594 (Fdefine_coding_system_internal): Doc fix.
16595
165962008-02-01 Dave Love <fx@gnu.org>
16597
16598 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16599
166002008-02-01 Kenichi Handa <handa@m17n.org>
16601
16602 * character.c (string_escape_byte8): Make multibyte string with
16603 correct size.
16604
16605 * charset.c (Fmake_char): Delete unnecessary code.
16606
166072008-02-01 Kenichi Handa <handa@m17n.org>
16608
16609 * xfns.c (x_encode_text): Allocate coding.destination here, and
16610 call encode_coding_object with dst_object Qnil.
16611
16612 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16613 multibyte form correctly.
16614
16615 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16616 against Vfont_encoding_alist.
16617
16618 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16619 handling of charset list.
16620 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16621 (decode_coding_object): Move point to coding->dst_pos before
16622 calling post-read-conversion function.
16623 (encode_coding_object): Give correct arguments to
16624 pre-write-conversion. Ignore the return value of
16625 pre-write-conversion function. Pay attention to the case that
16626 pre-write-conversion changes the current buffer. If dst_object is
16627 Qt, even if coding->src_bytes is zero, allocate at least one byte
16628 to coding->destination.
16629
16630 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16631
16632 * charset.c (Fmake_char): Make it more backward compatible.
16633 (Fmap_charset_chars): Fix docstring.
16634
166352008-02-01 Dave Love <fx@gnu.org>
16636
16637 * coding.c: Doc fixes.
16638 (Fdefine_coding_system_alias): Use names, not symbols, in
16639 coding-system-alist.
16640
166412008-02-01 Kenichi Handa <handa@m17n.org>
16642
16643 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16644 of calling free_realized_face.
16645
166462008-02-01 Yong Lu <lyongu@asia-infonet.com>
16647
16648 * charset.c (read_hex): Don't treat SPC as a comment starter.
16649 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16650 (Fdecode_char): Fix typo.
16651
166522008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * charset.h (struct charset): New member `code_space_mask'.
16655
16656 * coding.c (coding_set_source): Delete the local variable beg_byte.
16657 (encode_coding_charset, Fdefine_coding_system_internal):
16658 Delete the local variable charset.
16659 (Fdefine_coding_system_internal): Setup
16660 attrs[coding_attr_charset_valids] correctly.
16661
16662 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16663 member to check if CODE is valid or not.
16664 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16665 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16666 is within the range of charset->min_code and carset->max_code.
16667
166682008-02-01 Dave Love <fx@gnu.org>
16669
16670 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16671
16672 * dispextern.h (generate_ascii_font): Fix return type.
16673
16674 * xfaces.c (generate_ascii_font): Fix arg declaration.
16675
16676 * coding.c (coding_inherit_eol_type)
16677 (Fset_terminal_coding_system_internal)
16678 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16679
166802008-02-01 Kenichi Handa <handa@m17n.org>
16681
16682 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16683 multiple charsets correctly.
16684
166852008-02-01 Kenichi Handa <handa@m17n.org>
16686
16687 * search.c (boyer_moore): Fix handling of multibyte character
16688 translation.
16689
16690 * xdisp.c (display_mode_element): When the variable `elt' is
16691 changed, update `this' and `lisp_string'.
16692
166932008-02-01 Kenichi Handa <handa@m17n.org>
16694
16695 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16696
16697 * callproc.c (Fcall_process): Be sure to give the current buffer
16698 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16699
16700 * charset.c (struct charset_map_entries): New struct.
16701 (load_charset_map): Rename from parse_charset_map. New args
16702 entries and n_entries. Change caller.
16703 (load_charset_map_from_file): Rename from load_charset_map.
16704 Change caller. New arg control_flag. Call load_charset_map at
16705 the tail.
16706 (load_charset_map_from_vector): New function.
16707 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16708 (encode_char): If the charset is compact, change a character index
16709 to a code point.
16710
16711 * coding.c (coding_alloc_by_making_gap): Check the case that the
16712 source and destination are the same correctly.
16713 (decode_coding_raw_text): Set coding->consumed_char and
16714 coding->consumed to 0.
16715 (produce_chars): If coding->chars_at_source is nonzero, update
16716 coding->consumed_char and coding->consumed before calling
16717 alloc_destination.
16718 (Fdefine_coding_system_alias): Register ALIAS in
16719 Vcoding_system_alist.
16720 (syms_of_coding): Define `no-conversion' coding system at the tail.
16721
16722 * fileio.c (Finsert_file_contents): Set coding_system instead of
16723 val. If the current buffer is multibyte, always call
16724 decode_coding_gap.
16725
16726 * xfaces.c (try_font_list): Give higher priority to fontset's
16727 family than face's family.
16728
167292008-02-01 Kenichi Handa <handa@m17n.org>
16730
16731 * callproc.c (Fcall_process): Be sure to give the current buffer
16732 to decode_coding_c_string.
16733
16734 * xfaces.c (try_font_list): Give a family specified in a fontset
16735 higher priority than a family specified in a face.
16736
167372008-02-01 Kenichi Handa <handa@m17n.org>
16738
16739 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16740 Fix arguments to insert_from_buffer.
16741
16742 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16743
167442008-02-01 Kenichi Handa <handa@m17n.org>
16745
16746 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16747 (decode_coding_gap): Set coding->dst_multibyte correctly.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16752 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16753 (encode_coding_utf_16): Substitute coding->default_char for
16754 non-Unicode characters.
16755 (decode_coding): Don't call record_insert here.
16756 (setup_coding_system): Initialize `surrogate' of
16757 coding->spec.utf_16 to 0.
16758 (EMIT_ONE_BYTE): Fix for multibyte case.
16759
16760 * insdel.c (insert_from_gap): Call record_insert.
16761
167622008-02-01 Kenichi Handa <handa@m17n.org>
16763
16764 * casefiddle.c (casify_region): Fix multibyte case.
16765
16766 * character.c (c_string_width): Add return type `int'.
16767 (char_string_with_unification): Delete arg ADVANCED.
16768
16769 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16770 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16771 (CHAR_STRING_ADVANCE): Make it do-while statement.
16772
16773 * chartab.c (sub_char_table_set_range): Optimize for the case
16774 DEPTH == 3. Add workaround code for a GCC optimization bug.
16775
16776 * charset.c (parse_charset_map): Remove an unused variable.
16777
16778 * coding.c: Delete unused variables.
16779
16780 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16781 earlier. If inserted is zero and the coding system doesn't
16782 require flushing, don't call decode_coding_gap.
16783
16784 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16785
167862008-02-01 Kenichi Handa <handa@m17n.org>
16787
16788 The following changes are for using Unicode as an internal
16789 character model, and use UTF-8 format for buffer/string
16790 representation.
16791
16792 * .gdbinit (xchartable): Adjust for the change of char table structure.
16793 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16794
16795 * Makefile.in (obj): Add character.o and chartab.o.
16796 (lisp, shortlisp): Remove utf-8.elc.
16797 (*.o): For many files, change dependency on charset.h to
16798 character.h, and add dependency on character.h.
16799 (character.o, chartab.o): New targets.
16800
16801 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16802 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16803 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16804 of "charset.h".
16805
16806 * dired.c, filelock.c: Include "character.h".
16807
16808 * alloc.c: Include "character.h" instead of "charset.h".
16809 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16810 (syms_of_alloc): Remove defsubr for Smake_char_table.
16811
16812 * buffer.c: Include "character.h" instead of "charset.h", don't
16813 include "coding.h".
16814 (Fset_buffer_multibyte): Adjust for UTF-8.
16815
16816 * buffer.h: EXFUN Fbuffer_live_p.
16817
16818 * callproc.c: Include "character.h" instead of "charset.h".
16819 (Fcall_process): Big change for the new code-conversion APIs.
16820
16821 * casetab.c: Include "character.h" instead of "charset.h".
16822 (set_canon, set_identity, shuffle): Adjust for the new
16823 map_char_table spec.
16824 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16825 accessing the char table structure.
16826
16827 * chartab.c: New file that implements char table.
16828
16829 * category.c: Include "character.h".
16830 (copy_category_entry): New function.
16831 (copy_category_table): Call map_char_table and copy_category_entry.
16832 (Fmake_category_table): Initialize all top-level slots.
16833 (char_category_set): New function.
16834 (modify_lower_category_set): Delete.
16835 (Fmodify_category_entry): Call char_table_ref_and_range.
16836
16837 * category.h (CATEGORY_SET): Just call char_category_set.
16838
16839 * ccl.c: Include "character.h".
16840 (Qccl, Qcclp): New variables.
16841 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16842 it's less than 256.
16843 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16844 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16845 and DST type.
16846 (ccl_driver): Change types of argument, adjust code accordingly.
16847 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16848 ccl_driver.
16849 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16850
16851 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16852 New members src_multibyte, dst_multibyte, consumed, and produced.
16853 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16854 (CODING_SPEC_CCL_PROGRAM): New macro.
16855 (ccl_driver): Update prototype.
16856 (Qccl, Qcclp, Fccl_program_p): Extern them.
16857 (CHECK_CCL_PROGRAM): New macro.
16858
16859 * character.c, character.h, chartab.c: New files.
16860
16861 * charset.c: Mostly re-written. Move character and multibyte sequence
16862 handling codes to character.c.
16863
16864 * charset.h: Mostly re-written. Move character and multibyte sequence
16865 handling codes to character.h.
16866
16867 * coding.c, coding.h: Mostly re-written.
16868
16869 * composite.c: Include "character.h" instead of "charset.h".
16870 (CHAR_WIDTH): Move to character.h.
16871 (HASH_KEY, HASH_VALUE): Delete.
16872
16873 * composite.h (enum composition_method): Change order of enumeration
16874 symbols.
16875
16876 * data.c: Include "character.h" instead of "charset.h".
16877 (Faref): Call CHAR_TABLE_REF for a char table.
16878 (Faset): Call CHAR_TABLE_SET for a char table.
16879
16880 * dispextern.h (free_realized_face, check_face_attribytes)
16881 (generate_ascii_font): Extern them.
16882 (free_realized_multibyte_face): Delete extern.
16883
16884 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16885 table structure.
16886
16887 * editfns.c: Include "character.h" instead of "charset.h".
16888 (Fchar_to_string): Always call CHAR_STRING.
16889
16890 * emacs.c (main): Call init_charset_once, init_charset,
16891 syms_of_chartab, and syms_of_character.
16892
16893 * fileio.c: Include "character.h" instead of "charset.h".
16894 (Finsert_file_contents): Big change for the new code-conversion API.
16895 (choose_write_coding_system, Fwrite_region): Likewise.
16896 (build_annotations_2): Delete.
16897 (e_write): Big change for the new code-conversion API.
16898
16899 * fns.c: Include "character.h" instead of "charset.h".
16900 (copy_sub_char_table): Move to chartab.c.
16901 (Fcopy_sequence): Call copy_char_table for a char table.
16902 (concat): Delete codes calling count_multibyte.
16903 (string_char_to_byte, string_byte_to_char): Adjust for the new
16904 multibyte form.
16905 (internal_equal): Adjust for the change of char table structure.
16906 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16907 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16908 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16909 (char_table_translate, optimize_sub_char_table)
16910 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16911 chartab.c.
16912 (char_table_ref_and_index): Delete.
16913 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16914 (Fmd5): Call preferred_coding_system instead of accessing
16915 Vcoding_category_list. Adjust for the new code-conversion API.
16916 (syms_of_fns): Move defsubr for char table related functions to
16917 chartab.c.
16918
16919 * fontset.c: Mostly re-written.
16920
16921 * fontset.h (struct font_info): Change type of the member encoding_type.
16922 (enum FONT_SPEC_INDEX): New enum.
16923 (fontset_font_pattern, fs_load_font): Update prototype.
16924 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16925
16926 * indent.c: Include "character.h" instead of "charset.h".
16927 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16928
16929 * insdel.c: Include "character.h" instead of "charset.h".
16930 (copy_text): Don't refer to Vnonascii_translation_table.
16931 (insert_from_gap): New function.
16932
16933 * keyboard.c: Include "character.h" instead of "charset.h".
16934 (command_loop_1): Never call direct_output_forward_char before
16935 a non-ASCII character.
16936 (read_char): If Vkeyboard_translate_table is a char table, always
16937 translate a character.
16938
16939 * keymap.c: Include "character.h".
16940 (store_in_keymap): Handle the case that IDX is a cons.
16941 (Fdefine_key): Handle the case that KEY is a cons and the car part
16942 is also a cons (range).
16943 (push_key_description): Adjust for the new character code.
16944 (describe_vector): Call describe_char_table for a char table.
16945 (describe_char_table): New function.
16946
16947 * keymap.h (describe_char_table): Extern it.
16948
16949 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16950 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16951 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16952 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16953 Delete.
16954 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16955 structure.
16956 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16957 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16958 (CHARTAB_SIZE_BITS_3): New macros.
16959 (chartab_size): Extern it.
16960 (struct Lisp_Char_Table): Re-design.
16961 (struct Lisp_Sub_Char_Table): New structure.
16962 (HASH_KEY, HASH_VALUE): Move from fns.c.
16963 (CHARACTERBITS): Define as 22.
16964 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16965 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16966 (GC_SUB_CHAR_TABLE_P): New macro.
16967 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16968 (code_convert_string_norecord): Deleted extern.
16969 (init_character_once, syms_of_character, init_charset)
16970 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16971
16972 * lread.c: Include "character.h".
16973 (read_multibyte): New arg NBYTES.
16974 (read_escape): Change the meaning of returned *BYTEREP.
16975 (to_multibyte): Delete.
16976 (read1): Adjust the handling of char table and string.
16977
16978 * print.c: Include "character.h" instead of "charset.h".
16979 (print_string): Convert 8-bit raw bytes to octal form by
16980 string_escape_byte8.
16981 (print_object): Adjust for the new multibyte form. Print 8-bit
16982 raw bytes always in octal form. Handle sub char table correctly.
16983
16984 * process.c: Include "character.h" instead of "charset.h".
16985 (read_process_output, send_process): Adjust for the new
16986 code-conversion API.
16987
16988 * puresize.h (BASE_PURESIZE): Increase.
16989
16990 * regex.c: Include "character.h" instead of "charset.h".
16991 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16992 (regex_compile): Accept a range whose starting and ending
16993 character have different leading bytes.
16994 (analyse_first): Adjust for the above change.
16995
16996 * search.c: Include "character.h" instead of "charset.h".
16997 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16998 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16999
17000 * syntax.c: Include "character.h" instead of "charset.h".
17001 (syntax_parent_lookup): Delete.
17002 (Fmodify_syntax_entry): Accept a cons as CHAR.
17003 (skip_chars): Adjust for the new multibyte form.
17004 (init_syntax_once): Call char_table_set_range instead of directly
17005 accessing the structure of a char table.
17006
17007 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17008 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17009 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17010 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17011
17012 * term.c: Include "buffer.h" and "character.h".
17013 (encode_terminal_code, write_glyphs): Adjust for the new
17014 code-conversion API.
17015 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17016
17017 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17018
17019 * xdisp.c: Include "character.h".
17020 (get_next_display_element): Adjust for the new multibyte form.
17021 (disp_char_vector): Adjust for the new char table structure.
17022 (decode_mode_spec_coding): Adjust for the new structure of
17023 coding system.
17024 (decode_mode_spec): Adjust for the new code-conversion API.
17025
17026 * xfaces.c: Include "character.h" instead of "charset.h".
17027 (load_face_font): Adjust for the change of choose_face_font and
17028 FS_LOAD_FONT.
17029 (generate_ascii_font): New function.
17030 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17031 (set_font_frame_param): Adjust for the change of choose_face_font.
17032 (free_realized_face): Make it public.
17033 (free_realized_faces_for_fontset): Rename from
17034 free_realized_multibyte_face. Free also faces realized for ASCII.
17035 (choose_face_font): Change arguments. Adjust for the change of
17036 fontset_font_pattern and FS_LOAD_FONT.
17037
17038 * xfns.c: Include "character.h".
17039 (x_encode_text): Adjust for the new code-conversion API.
17040
17041 * xselect.c: Don't include "charset.h".
17042 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17043
17044 * xterm.c: Include "character.h".
17045 (x_encode_char): New argument CHARSET. Change caller.
17046 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17047 Call ENCODE_CHAR instead of SPLIT_CHAR.
17048 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17049 CHAR_WIDTH instead of CHARSET_WIDTH.
17050 (XTread_socket): Adjust for the new code-conversion API.
17051 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17052 (x_load_font): Adjust for the change of struct font.
17053
170542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17055
17056 * xfaces.c (face_at_buffer_position): Remove unused vars.
17057
170582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17059
17060 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17061 Fix overflow checking.
17062
170632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17064
17065 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17066 Cancel previous change.
17067
170682008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17069
17070 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17071 ccl->eight_bit_control. Fix check for buffer overflow.
17072 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17073 (ccl_driver): Initialize extra_bytes to 0.
17074
170752008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17076
17077 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17078 return it ORed with ctrl_modifier.
17079
170802008-01-29 Miles Bader <miles@gnu.org>
17081
17082 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17083
170842008-01-28 Jason Rumney <jasonr@gnu.org>
17085
17086 * w32.c (stat): Don't double check for networked drive.
17087
170882008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17089
17090 * window.c (run_window_configuration_change_hook): New function.
17091 Code extracted from set_window_buffer. Set the selected frame.
17092 (set_window_buffer): Use it.
17093 * window.h (run_window_configuration_change_hook): Declare.
17094 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17095
17096 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17097
170982008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17099
17100 * Makefile.in: Remove references to unused macros.
17101
171022008-01-26 Eli Zaretskii <eliz@gnu.org>
17103
17104 * w32.c (g_b_init_get_sid_sub_authority)
17105 (g_b_init_get_sid_sub_authority_count): New static variables.
17106 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17107 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17108 (init_user_info): Use them to retrieve uid and gid.
17109 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17110 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17111 st_uid and st_gid of the file.
17112
171132008-01-26 Jason Rumney <jasonr@gnu.org>
17114
17115 * w32.c (logon_network_drive): New function.
17116 (stat): Use it.
17117
171182008-01-26 Chong Yidong <cyd@stupidchicken.com>
17119
17120 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17121 invisible text covered with an ellipsis.
17122
171232008-01-25 Richard Stallman <rms@gnu.org>
17124
17125 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17126 jump back to beginning. Move some other initializations after that.
17127 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17128 New variables.
17129 (syms_of_xdisp): Init them.
17130
17131 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17132
17133 * buffer.c (reset_buffer_local_variables):
17134 Implement `permanent-local-hook'.
17135 (Qpermanent_local_hook): New variable.
17136 (syms_of_buffer): Init and staticpro it.
17137
171382008-01-25 Michael Albinus <michael.albinus@gmx.de>
17139
17140 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17141
171422008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17143
17144 * fns.c (Fclrhash): Return TABLE.
17145
171462008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17147
17148 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17149 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17150 is set even without positional changes.
17151 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17152
17153 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17154
171552008-01-23 Jason Rumney <jasonr@gnu.org>
17156
17157 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17158
17159 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17160 the unicode range available in MULE by locale-coding-system.
17161 Improve dbcs lead byte detection. Set event timestamp and modifiers
17162 earlier.
17163
171642008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17165
17166 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17167 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17168 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17169 when used on child processes.
17170
171712008-01-21 Michael Albinus <michael.albinus@gmx.de>
17172
17173 * dbusbind.c (Fdbus_method_return_internal): Rename from
17174 Fdbus_method_return.
17175 (Fdbus_unregister_object): Move to dbus.el.
17176 (Fdbus_call_method, Fdbus_method_return_internal)
17177 (Fdbus_send_signal): Improve debug messages.
17178
171792008-01-20 Martin Rudalics <rudalics@gmx.at>
17180
17181 * undo.c (undo_inhibit_record_point): New variable.
17182 (syms_of_undo): Initialize it.
17183 (record_point): Don't record point when undo_inhibit_record_point
17184 is set.
17185
171862008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17187
17188 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17189
17190 * xdisp.c (Qauto_hscroll_mode): New var.
17191 (syms_of_xdisp): Initialize it.
17192 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17193 window's buffer.
17194 (hscroll_windows): Don't check automatic_hscrolling_p here.
17195
17196 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17197 vscroll if we're setting window-buffer to the value it already has.
17198
171992008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17200
17201 * m/intel386.h: Remove references to XENIX.
17202
172032008-01-17 Andreas Schwab <schwab@suse.de>
17204
17205 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17206 instead of HAVE_X86_64_LIB64_DIR.
17207 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17208
172092008-01-17 Glenn Morris <rgm@gnu.org>
17210
17211 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17212 to HAVE_X86_64_LIB64_DIR.
17213
172142008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17215
17216 * s/irix3-3.h:
17217 * s/irix4-0.h:
17218 * s/386-ix.h:
17219 * s/domain.h:
17220 * s/hpux9-x11r4.h:
17221 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17222
17223 * sysdep.c: Remove code containing references to symbols defined
17224 by unsupported systems.
17225
172262008-01-16 Glenn Morris <rgm@gnu.org>
17227
17228 * coding.c (select-safe-coding-system-function): Doc fix.
17229
172302008-01-15 Glenn Morris <rgm@gnu.org>
17231
17232 * config.in: Revert 2008-01-13 change: this is a generated file.
17233
172342008-01-13 Tom Tromey <tromey@redhat.com>
17235
17236 * lisp.h: Fix typo.
17237
172382008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17239
17240 * m/sequent-ptx.h:
17241 * m/sequent.h:
17242 * s/ptx.h:
17243 * s/ptx4-2.h:
17244 * s/ptx4.h: Remove files for systems no longer supported.
17245
17246 * callproc.c (Fcall_process): Fix previous change.
17247
172482008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17249
17250 * unexsunos4.c: Remove file, system not supported anymore.
17251
17252 * m/mips.h:
17253 * m/intel386.h:
17254 * callproc.c:
17255 * config.in:
17256 * ecrt0.c:
17257 * emacs.c:
17258 * fileio.c:
17259 * frame.c:
17260 * getpagesize.h:
17261 * keyboard.c:
17262 * lread.c:
17263 * process.c:
17264 * puresize.h:
17265 * sysdep.c:
17266 * systty.h:
17267 * syswait.h:
17268 * unexec.c:
17269 * xdisp.c:
17270 * alloc.c: Remove code containing references to symbols defined by
17271 unsupported systems.
17272
172732008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17274
17275 * coding.c (detect_coding_mask): Fix previous change.
17276
172772008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17278
17279 * coding.c (detect_coding_iso2022): New arg
17280 latin_extra_code_state. Allow Latin extra codes only
17281 when *latin_extra_code_state is nonzero.
17282 (detect_coding_mask): If there is a NULL byte, detect the encoding
17283 as UTF-16 or binary. If Latin extra codes exist, detect the
17284 encoding as ISO-2022 only when there's no other proper encoding is
17285 found.
17286
172872008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17288
17289 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17290 #ifdef MAC_OS.
17291
172922008-01-08 Richard Stallman <rms@gnu.org>
17293
17294 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17295
172962008-01-06 Nick Roberts <nickrob@snap.net.nz>
17297
17298 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17299 menu bar in parentheses.
17300
173012008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17302
17303 * m/7300.h:
17304 * m/acorn.h:
17305 * m/alliant-2800.h:
17306 * m/alliant.h:
17307 * m/alliant1.h:
17308 * m/alliant4.h:
17309 * m/altos.h:
17310 * m/amdahl.h:
17311 * m/apollo.h:
17312 * m/att3b.h:
17313 * m/aviion-intel.h:
17314 * m/aviion.h:
17315 * m/celerity.h:
17316 * m/clipper.h:
17317 * m/cnvrgnt.h:
17318 * m/convex.h:
17319 * m/cydra5.h:
17320 * m/delta88k.h:
17321 * m/dpx2.h:
17322 * m/dual.h:
17323 * m/elxsi.h:
17324 * m/f301.h:
17325 * m/gould-np1.h:
17326 * m/gould.h:
17327 * m/i860.h:
17328 * m/ibmps2-aix.h:
17329 * m/ibmrt-aix.h:
17330 * m/ibmrt.h:
17331 * m/irist.h:
17332 * m/is386.h:
17333 * m/isi-ov.h:
17334 * m/mega68.h:
17335 * m/mg1.h:
17336 * m/news-r6.h:
17337 * m/news-risc.h:
17338 * m/news.h:
17339 * m/nh3000.h:
17340 * m/nh4000.h:
17341 * m/ns16000.h:
17342 * m/ns32000.h:
17343 * m/nu.h:
17344 * m/orion.h:
17345 * m/orion105.h:
17346 * m/paragon.h:
17347 * m/pfa50.h:
17348 * m/plexus.h:
17349 * m/pyramid.h:
17350 * m/pyrmips.h:
17351 * m/sh3el.h:
17352 * m/sps7.h:
17353 * m/sr2k.h:
17354 * m/stride.h:
17355 * m/sun1.h:
17356 * m/sun2.h:
17357 * m/sun3-68881.h:
17358 * m/sun3-fpa.h:
17359 * m/sun3-soft.h:
17360 * m/sun3.h:
17361 * m/sun386.h:
17362 * m/symmetry.h:
17363 * m/tad68k.h:
17364 * m/tahoe.h:
17365 * m/targon31.h:
17366 * m/tek4300.h:
17367 * m/tekxd88.h:
17368 * m/tower32.h:
17369 * m/tower32v3.h:
17370 * m/ustation.h:
17371 * m/wicat.h:
17372 * m/xps100.h:
17373 * s/cxux.h:
17374 * s/cxux7.h:
17375 * s/dgux.h:
17376 * s/dgux4.h:
17377 * s/dgux5-4-3.h:
17378 * s/dgux5-4r2.h:
17379 * s/esix.h:
17380 * s/esix5r4.h:
17381 * s/hiuxmpp.h:
17382 * s/hiuxwe2.h:
17383 * s/iris3-5.h:
17384 * s/iris3-6.h:
17385 * s/isc2-2.h:
17386 * s/isc3-0.h:
17387 * s/isc4-0.h:
17388 * s/isc4-1.h:
17389 * s/newsos5.h:
17390 * s/newsos6.h:
17391 * s/osf1.h:
17392 * s/osf5-0.h:
17393 * s/riscix1-1.h:
17394 * s/riscix12.h:
17395 * s/sco4.h:
17396 * s/sco5.h:
17397 * s/sunos4-0.h:
17398 * s/sunos4-1.h:
17399 * s/sunos413.h:
17400 * s/sunos4shr.h:
17401 * s/umax.h:
17402 * s/unipl5-2.h:
17403 * s/xenix.h:
17404 * cxux-crt0.s:
17405 * unexapollo.c:
17406 * unexconvex.c:
17407 * unexenix.c:
17408 * unexsni.c: Remove files for systems no longer supported.
17409
17410 * m/intel386.h: Remove references to unsupported systems.
17411
17412 * w32.c (get_emacs_configuration): Remove reference to i860.
17413
17414 * sysdep.c: Remove dead code.
17415
174162008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17417
17418 * s/rtu.h:
17419 * m/masscomp.h: Remove files. Platform is obsolete.
17420
174212008-01-04 Michael Albinus <michael.albinus@gmx.de>
17422
17423 * dbusbind.c (Fdbus_method_return): New function.
17424 (xd_read_message): Add the serial number to the event.
17425 (Fdbus_register_method): Activate the function.
17426
174272008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17428
17429 * keyboard.c (read_key_sequence): Fix typo.
17430
174312008-01-03 Michael Albinus <michael.albinus@gmx.de>
17432
17433 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17434 (xd_signature, xd_append_arg): Handle element type detection for
17435 empty arrays.
17436 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17437 SDATA () calls; this must be solved more general.
17438 (Fdbus_register_signal): Use SBYTES instead of strlen.
17439
174402008-01-03 Magnus Henoch <magnus@zemdatav>
17441
17442 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17443 unsigned int for byte values (necessary for big-endian platform).
17444 (Fdbus_call_method): Handle the case of no returned arguments.
17445
174462007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17447
17448 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17449
174502007-12-31 Magnus Henoch <mange@freemail.hu>
17451
17452 * dbusbind.c (xd_signature): Signature of variant is just "v".
17453
174542007-12-30 Michael Albinus <michael.albinus@gmx.de>
17455
17456 * dbusbind.c: Fix several errors and compiler warnings.
17457 Reported by Tom Tromey <tromey@redhat.com>.
17458 (XD_ERROR, XD_DEBUG_MESSAGE)
17459 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17460 (xd_append_arg): Part for basic D-Bus types rewritten.
17461 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17462 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17463 appropriate.
17464 (xd_read_message): Return Qnil. Don't signal an error; it is not
17465 useful during event reading.
17466 (Fdbus_register_signal): Signal an error if the check for
17467 FUNCTIONP fails.
17468 (Fdbus_register_method): New function. The implementation is not
17469 complete, the call of the function signals an error therefore.
17470 (Fdbus_unregister_object): New function, renamed from
17471 Fdbus_unregister_signal. The initial check signals an error, if
17472 the object is not well formed.
17473
174742007-12-30 Richard Stallman <rms@gnu.org>
17475
17476 * textprop.c (get_char_property_and_overlay):
17477 Signal error if POSITION is out of range in a buffer.
17478
174792007-12-29 Martin Rudalics <rudalics@gmx.at>
17480
17481 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17482 because the original parameters are in pure storage now.
17483
174842007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17485
17486 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17487
174882007-12-22 Eli Zaretskii <eliz@gnu.org>
17489
17490 * callint.c (syms_of_callint) <command-history>: Add reference to
17491 history-length in the doc string.
17492
174932007-12-17 Jason Rumney <jasonr@gnu.org>
17494
17495 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17496 before passing as wParam.
17497
174982007-12-22 Michael Albinus <michael.albinus@gmx.de>
17499
17500 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17501 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17502 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17503 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17504 as number.
17505 (Fdbus_call_method): Fix docstring.
17506
175072007-12-21 Michael Albinus <michael.albinus@gmx.de>
17508
17509 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17510 New macros.
17511 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17512 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17513 Simplify.
17514 (xd_signature): New function.
17515 (xd_append_arg): Compute also signatures. Major rewrite.
17516 (xd_retrieve_arg): Make debug messages friendly.
17517 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17518 Check for signatures of arguments.
17519
175202007-12-19 Michael Albinus <michael.albinus@gmx.de>
17521
17522 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17523 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17524 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17525 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17526 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17527 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17528 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17529 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17530 (xd_retrieve_value): Remove. Functionality included in ...
17531 (xd_append_arg): New function.
17532 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17533
175342007-12-16 Michael Albinus <michael.albinus@gmx.de>
17535
17536 * dbusbind.c (top): Include <stdio.h>.
17537 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17538 dbus_message_new_method_call and dbus_message_new_signal.
17539 (Fdbus_register_signal): Rename unique_name to uname.
17540 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17541 non-existing unique name. Fix typos in matching rule. Return an
17542 object which is useful in Fdbus_unregister_signal.
17543 (Fdbus_unregister_signal): Reimplementation, in order to remove
17544 only the corresponding entry.
17545 (Vdbus_registered_functions_table): Change the order of entries.
17546 Apply these changes in xd_read_message and Fdbus_register_signal.
17547
175482007-12-16 Andreas Schwab <schwab@suse.de>
17549
17550 * fileio.c (Finsert_file_contents): Fix overflow check to not
17551 depend on undefined integer overflow.
17552
175532007-12-14 Jason Rumney <jasonr@gnu.org>
17554
17555 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17556 for characters above 127.
17557
175582007-12-13 Jason Rumney <jasonr@gnu.org>
17559
17560 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17561 before dereferencing array.
17562 (lookup_vk_code): Remove zero comparison.
17563
175642007-12-14 Michael Albinus <michael.albinus@gmx.de>
17565
17566 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17567 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17568 Use `unsigned int' instead of `uint'.
17569 (xd_read_message, Fdbus_register_signal): Split expressions into
17570 multiple lines before operators "&&" and "||", according to the
17571 GNU Coding Standards.
17572
175732007-12-14 Eli Zaretskii <eliz@gnu.org>
17574
17575 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17576
175772007-12-12 Juri Linkov <juri@jurta.org>
17578
17579 * buffer.c (Frename_buffer): In interactive spec replace
17580 `read-buffer' with `read-string' that uses `buffer-name-history'
17581 as history, and the current buffer's name as default.
17582
175832007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17584
17585 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17586 manipulating the backtrace manually.
17587 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17588 (struct backtrace, backtrace_list): Remove.
17589 (command_loop_1): Remove dead var `no_direct'.
17590
17591 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17592 preserve non-built-in buffer-local variables.
17593 (Fkill_all_local_variables): Don't re-create&re-set permanent
17594 buffer-local variables.
17595
175962007-12-09 Juri Linkov <juri@jurta.org>
17597
17598 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17599 Lisp code that uses `read-buffer' with current buffer as default.
17600
176012007-12-08 Michael Albinus <michael.albinus@gmx.de>
17602
17603 * dbusbind.c (xd_read_message): Generate an event for every
17604 registered handler. There might be several handlers registered
17605 for the same signal.
17606 (Fdbus_register_signal): Don't overwrite a registration for the
17607 same signal. Add a new registration if handlers are different.
17608 (Vdbus_registered_functions_table): Rework doc string.
17609
176102007-12-07 Michael Albinus <michael.albinus@gmx.de>
17611
17612 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17613 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17614 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17615 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17616 Unify argument lists.
17617 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17618 arguments and hash table keys. Use unique name for service.
17619 (Fdbus_unregister_signal): Remove checks.
17620 (Vdbus_registered_functions_table): Fix doc string.
17621
176222007-12-05 Magnus Henoch <mange@freemail.hu>
17623
17624 * process.c (make_process): Initialize pty_flag to 0.
17625
176262007-12-05 Jason Rumney <jasonr@gnu.org>
17627
17628 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17629 specified XBMs.
17630
176312007-12-05 Richard Stallman <rms@gnu.org>
17632
17633 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17634
176352007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17636
17637 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17638 New variable.
17639 (mac_try_close_socket) [MAC_OSX]: New function.
17640 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17641 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17642
17643 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17644 Use mac_try_close_socket.
17645
176462007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17647
17648 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17649 reloc_base.
17650 (copy_dysymtab): Compute relocation base here.
17651 (rebase_reloc_address) [__ppc64__]: New function.
17652 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17653 changed.
17654
176552007-12-05 Jason Rumney <jasonr@gnu.org>
17656
17657 * w32proc.c (sys_spawnve): Quote args with wildcards.
17658
176592007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17660
17661 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17662 __objc_* sections.
17663 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17664
176652007-12-05 Michael Albinus <michael.albinus@gmx.de>
17666
17667 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17668 Move check for Vdbus_registered_functions_table to
17669 xd_read_queued_messages.
17670 (xd_read_queued_messages): Protect xd_read_message calls by
17671 internal_condition_case_1.
17672
176732007-12-04 Michael Albinus <michael.albinus@gmx.de>
17674
17675 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17676 Qdbus_system_bus and Qdbus_session_bus, respectively.
17677 (Vdbus_intern_symbols): Remove.
17678 (Vdbus_registered_functions_table): New hash table.
17679 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17680 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17681 Rewrite in order to manage registered functions by hash table
17682 Vdbus_registered_functions_table.
17683
176842007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17685
17686 * xterm.c: Update URL to Window Manager Specification in comment.
17687
176882007-12-02 Michael Albinus <michael.albinus@gmx.de>
17689
17690 * config.in (HAVE_DBUS): Add.
17691
17692 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17693 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17694 (obj): Add $(DBUS_OBJ).
17695 (LIBES): Add $(DBUS_LIBS).
17696 (dbusbind.o): New target.
17697
17698 * dbusbind.c: New file.
17699
17700 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17701
17702 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17703 (Qdbus_event): New Lisp symbol.
17704 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17705 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17706 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17707
17708 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17709
177102007-12-01 Richard Stallman <rms@gnu.org>
17711
17712 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17713
177142007-11-30 Jason Rumney <jasonr@gnu.org>
17715
17716 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17717 (w32con_reset_terminal_modes): Clear screen buffer.
17718 (w32_face_attributes): Don't use color indexes that are out of range.
17719 Only reverse the default colors.
17720
17721 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17722 WINDOWSNT.
17723
17724 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17725
177262007-11-29 Jason Rumney <jasonr@gnu.org>
17727
17728 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17729 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17730 if the terminal colors are initialized.
17731 (unspecified_fg, unspecified_bg): Remove unused declarations.
17732
177332007-11-29 Andreas Schwab <schwab@suse.de>
17734
17735 * keyboard.c (apply_modifiers): Fix typo.
17736
177372007-11-29 Richard Stallman <rms@gnu.org>
17738
17739 * keymap.c (Fcurrent_local_map): Doc fix.
17740
177412007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17742
17743 * s/gnu-kfreebsd.h: New file.
17744
177452007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17746
17747 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17748 Don't cast redundantly.
17749
17750 * keyboard.c (KEY_TO_CHAR): New macro.
17751 (parse_modifiers, apply_modifiers): Accept integer arguments.
17752 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17753 for chars and symbol keys.
17754 After doing such remapping, apply function-key-map again.
17755
177562007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17757
17758 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17759 compiled anymore.
17760
177612007-11-26 Andreas Schwab <schwab@suse.de>
17762
17763 * process.c (list_processes_1): Fix indentation level of the
17764 command column.
17765
177662007-11-23 Andreas Schwab <schwab@suse.de>
17767
17768 * editfns.c (Fformat): Handle %c specially since it requires the
17769 argument to be of type int.
17770
177712007-11-23 Markus Triska <markus.triska@gmx.at>
17772
17773 * emacs.c (main): Call init_editfns before init_process, since
17774 init_process sets Vprocess_connection_type depending on OS release.
17775
177762007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17777
17778 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17779 (find_symbol_value): Use do_symval_forwarding.
17780
17781 * data.c (set_internal): Set the value in the `cons-cell' (for
17782 Buffer_Local_values) not only for frame-local variables.
17783
177842007-11-22 Andreas Schwab <schwab@suse.de>
17785
17786 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17787 values to sprintf.
17788 * keymap.c (Fsingle_key_description): Likewise.
17789 * print.c (print_object): Likewise.
17790
177912007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17792
17793 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17794 file for image is nil.
17795
177962007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17797
17798 * term.c: Include stdarg.h.
17799 (fatal): Implement using varargs.
17800 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17801
178022007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17803
17804 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17805 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17806 Update call to buffer_slot_type_mismatch.
17807 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17808 (buffer_slot_type_mismatch): Update.
17809 * buffer.c (buffer_local_types): Remove.
17810 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17811 (defvar_per_buffer): Set the type in the buffer_objfwd.
17812
178132007-11-21 Jason Rumney <jasonr@gnu.org>
17814
17815 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17816 CreateFileMapping returns NULL on failure.
17817
178182007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17819
17820 * search.c (Fset_match_data): Remove the `evaporate' feature.
17821 (unwind_set_match_data): Don't use the `evaporate' feature.
17822
178232007-11-21 Jason Rumney <jasonr@gnu.org>
17824
17825 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17826
17827 * w32console.c (w32con_write_glyphs): Remove unused variables.
17828
178292007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17830
17831 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17832
17833 * s/darwin.h (MULTI_KBOARD): Remove.
17834
17835 * macfns.c (x_create_tip_frame, Fx_create_frame)
17836 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17837
178382007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17839
17840 * buffer.c (Fbuffer_local_value): Remove redundant test.
17841 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17842 than in `current-buffer' to match the comment.
17843 Do the swap using swap_in_global_binding.
17844
17845 * data.c (store_symval_forwarding, set_internal):
17846 * eval.c (specbind): Remove dead code.
17847
17848 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17849 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17850 Since we do not want to see internal Lisp_*fwd objects here.
17851
178522007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17853
17854 * sysdep.c (init_system_name): Use getaddrinfo if available.
17855
17856 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17857 (x_scroll_bar_note_movement): start, end, with, height in struct
17858 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17859
178602007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17861
17862 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17863
178642007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17865
17866 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17867 This undoes Richard's change of 14-Oct-2002.
17868
17869 * alloc.c (allocate_other_vector):
17870 * lisp.h (allocate_other_vector): Remove.
17871
17872 * window.c (struct save_window_data): Move non-lisp data to the end
17873 and make it `int' rather than Lisp_Object.
17874 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17875 Done wrap/unwrap integer values.
17876 (Fset_window_configuration, compare_window_configurations):
17877 Update use of fields to their new types.
17878
17879 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17880 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17881 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17882 (SET_SCROLL_BAR_X_WINDOW): Remove.
17883 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17884 Access the new x_window field directly.
17885 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17886 Don't wrap/unwrap integers into Lisp_Objects.
17887 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17888 (x_scroll_bar_report_motion):
17889 Don't wrap/unwrap integers into Lisp_Objects.
17890 (x_term_init): Use SDATA.
17891 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17892 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17893 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17894 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17895 * xfns.c (x_set_background_color):
17896 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17897 Access the new x_window field directly.
17898
17899 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17900 (allocate_pseudovector): Make non-static.
17901
17902 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17903 (allocate_pseudovector): Declare.
17904 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17905
179062007-11-15 Andreas Schwab <schwab@suse.de>
17907
17908 * editfns.c (Fformat): Correctly format EMACS_INT values.
17909 Also take precision into account when formatting an integer.
17910
17911 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17912
179132007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17914
17915 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17916 (syms_of_keyboard): Defsubr it.
17917
17918 * data.c (swap_in_global_binding): Fix longstanding bug where
17919 store_symval_forwarding was not called with the right second argument,
17920 thus causing objfwd-ing from being dropped.
17921
179222007-11-14 Juanma Barranquero <lekktu@gmail.com>
17923
17924 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17925 (Fx_display_pixel_height, Fx_display_planes)
17926 (Fx_display_color_cells, Fx_server_max_request_size)
17927 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17928 (Fx_display_visual_class, Fx_display_save_under):
17929 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17930 (Fx_display_pixel_height, Fx_display_planes)
17931 (Fx_display_color_cells, Fx_server_max_request_size)
17932 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17933 (Fx_display_mm_height, Fx_display_mm_width)
17934 (Fx_display_backing_store, Fx_display_visual_class)
17935 (Fw32_select_font, Fx_display_save_under):
17936 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17937 (Fx_display_pixel_height, Fx_display_planes)
17938 (Fx_display_color_cells, Fx_server_max_request_size)
17939 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17940 (Fx_display_save_under): Fix typos in docstrings.
17941
179422007-11-14 Juanma Barranquero <lekktu@gmail.com>
17943
17944 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17945 corresponding to deleted entries; they are an implementation detail.
17946 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17947 Remove variables.
17948 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17949 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17950 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17951 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17952 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17953 (Fw32_define_rgb_color, Fw32_load_color_file)
17954 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17955 Fix typos in docstrings.
17956 (Fx_server_version): Reflow docstring.
17957 (Fw32_shell_execute): Doc fixes.
17958
179592007-11-13 Juanma Barranquero <lekktu@gmail.com>
17960
17961 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17962 if w32_parse_hot_key returned nil.
17963
179642007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17965
17966 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17967
179682007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17969
aac0c6e3
MR
17970 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17971
17972 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17973
17974 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17975 Remove W32_SCROLL_BAR_CLICK_EVENT.
17976
17977 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17978 Add MULTIMEDIA_KEY_EVENT.
17979
17980 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17981 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17982 (make_lispy_event) [WINDOWSNT]: Use it to translate
17983 MULTIMEDIA_KEY_EVENT.
17984
17985 * w32term.h (WM_APPCOMMAND): Define if not already.
17986 (GET_APPCOMMAND_LPARAM): Likewise.
17987
17988 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17989 WM_APPCOMMAND.
17990
17991 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17992 (syms_of_w32fns): Export and initialize it.
17993 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17994
179952007-11-09 Chong Yidong <cyd@stupidchicken.com>
17996
17997 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17998 twice.
17999
18000 * xdisp.c (handle_face_prop): Fix last change.
18001
180022007-11-09 Richard Stallman <rms@gnu.org>
18003
18004 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18005 not just for after-strings and before-strings.
18006 Call face_for_overlay_string and pass the overlay to it.
18007 (handle_display_prop): Determine whether property came from an overlay.
18008 Pass OVERLAY arg to handle_single_display_spec.
18009 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18010 (load_overlay_strings): Fill in it->string_overlays.
18011 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18012
18013 * xfaces.c (face_for_overlay_string): Function renamed from
18014 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18015
18016 * dispextern.h (struct it): New elt string_overlays.
18017 New elt from_overlay, also in stack.
18018 Rearrange a few elements.
18019 (face_for_overlay_string): Decl renamed from
18020 face_at_buffer_position_no_overlays, and add argument.
18021
180222007-11-09 Richard Stallman <rms@gnu.org>
18023
18024 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18025 to get the base face for an overlay string.
18026
18027 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18028
18029 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18030
18031 * xdisp.c (handle_stop): Move some code out of loop.
18032
180332007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18034
18035 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18036 Fix conversion from Lisp object to ATSUFontID.
18037
180382007-11-09 Jason Rumney <jasonr@gnu.org>
18039
18040 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18041
180422007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18043
18044 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18045 Don't assume regions are aligned to page boundary.
18046 (print_load_command_name): Add LC_UUID if defined.
18047
180482007-11-09 Richard Stallman <rms@gnu.org>
18049
18050 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18051
180522007-11-07 Jason Rumney <jasonr@gnu.org>
18053
18054 * s/windows95.h: Remove.
18055
180562007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18057
18058 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18059 abort with a message on unhandled store_type values.
18060
180612007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18062
18063 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18064 Remove HAVE_X11R5 and HAVE_X11R4.
18065
180662007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18067
18068 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18069
180702007-11-01 Johan Bockgård <bojohan@gnu.org>
18071
18072 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18073 Don't set s->stippled_p here, since it has already been set by
18074 x_set_glyph_string_gc from x_draw_glyph_string.
18075
180762007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18077
18078 * sunfns.c: Remove file.
18079
18080 * m/sun386.h:
18081 * m/sun2.h:
18082 * m/sparc.h: Remove Sun windows code.
18083
180842007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18085
18086 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18087 (init_keyboard): Set current_kboard's window-system to nil.
18088 (tty_read_avail_input): Typo.
18089 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18090
180912007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18092
18093 * s/usg5-4.h:
18094 * s/usg5-3.h:
18095 * s/ptx.h:
18096 * m/is386.h:
18097 * m/ibmps2-aix.h:
18098 * Makefile.in: Remove all mentions of X10.
18099
18100 * dispnew.c (syms_of_display): Don't mention version 10.
18101
181022007-10-28 Juanma Barranquero <lekktu@gmail.com>
18103
18104 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18105 ($(BLD)/abbrev.$(O)): Remove.
18106
181072007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18108
18109 Rewrite abbrev.c in Elisp.
18110 * image.c (Qcount): Don't declare as extern.
18111 (syms_of_image): Initialize and staticpro `Qcount'.
18112 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18113 * emacs.c (main): Don't call syms_of_abbrev.
18114 * Makefile.in (obj): Remove abbrev.o.
18115 (abbrev.o): Remove.
18116 * abbrev.c: Remove.
18117
181182007-10-26 Martin Rudalics <rudalics@gmx.at>
18119
18120 * window.c (window_min_size_2): Don't count header-line.
18121
181222007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18123
18124 * frame.h (struct frame): Move all bit fields after the first bit
18125 field to take advantage of the available space. Group all the
18126 chars together to reduce wasted space due to padding.
18127
181282007-10-26 Juanma Barranquero <lekktu@gmail.com>
18129
18130 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18131
18132 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18133 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18134 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18135 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18136 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18137 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18138 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18139 (last_marked, mark_object_loop_halt): Make static.
18140
18141 * frame.c (syms_of_frame) <delete-frame-functions>:
18142 Fix typo in docstring.
18143
181442007-10-25 Juanma Barranquero <lekktu@gmail.com>
18145
18146 * w32.c (init_environment): Fix tiny memory leak.
18147 (w32_get_resource): Remove unused variable `ok'.
18148
181492007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18150
18151 Make `window-system' into a keyboard-local variable (rather than
18152 frame-local as done originally by multi-tty).
18153
18154 * keyboard.h (struct kboard): Add Vwindow_system.
18155 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18156 (mark_kboards): Mark Vwindow_system.
18157
18158 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18159 (init_display): Don't set the obsolete `window-system' frame-param.
18160
18161 * xterm.c (x_term_init):
18162 * w32term.c (w32_create_terminal):
18163 * term.c (init_tty): Set Vwindow_system.
18164 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18165 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18166
18167 * xfns.c (Fx_create_frame, x_create_tip_frame):
18168 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18169 * macfns.c (Fx_create_frame):
18170 Don't set the obsolete `window-system' frame-param.
18171
18172 * frame.h (Qwindow_system): Remove.
18173 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18174 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18175
181762007-10-24 Richard Stallman <rms@gnu.org>
18177
18178 * frame.c (x_figure_window_size): For fullscreen case,
18179 set USPosition | PPosition without clobbering rest of window_prompting.
18180
18181 * keyboard.c (Fcurrent_idle_time): Doc fix.
18182
18183 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18184
181852007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18186
18187 * process.c (unwind_request_sigio): Only define if __ultrix__.
18188
18189 * callproc.c (child_setup): Remove spurious *.
18190
18191 * lisp.h (Fget_text_property): Declare.
18192 (have_menus_p): Declare it here rather than in sys-dep header files.
18193 * macterm.h (have_menus_p):
18194 * msdos.h (have_menus_p):
18195 * xterm.h (have_menus_p): Remove.
18196
18197 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18198 (Fmake_variable_frame_local): Just check the variable's const-ness
18199 rather than checking nil or t.
18200
182012007-10-22 Jason Rumney <jasonr@gnu.org>
18202
18203 * w32fns.c: Include math.h.
18204 (w32_abort): Declaration moved to nt/config.nt.
18205
18206 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18207 (abort): Redefinition moved to nt/config.nt.
18208
18209 * m/windowsnt.h: Remove.
18210
182112007-10-22 Juanma Barranquero <lekktu@gmail.com>
18212
18213 * emacs.c (Fdump_emacs): Fix typo in message.
18214 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18215 <installation-directory>: Reflow docstring.
18216
182172007-10-22 Juri Linkov <juri@jurta.org>
18218
18219 * minibuf.c: Allow minibuffer default to be a list of default values.
18220 With empty input use the first element of this list as returned default.
18221 (string_to_object)
18222 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18223 (read_minibuf): If defalt is cons, set histstring to its car.
18224 (Fread_string): If default_value is cons, set val to its car.
18225 (Fread_buffer): If def is cons, use its car.
18226 (Fcompleting_read): If defalt is cons, set val to its car.
18227
182282007-10-21 Michael Albinus <michael.albinus@gmx.de>
18229
18230 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18231
182322007-10-20 Juanma Barranquero <lekktu@gmail.com>
18233
18234 * doc.c (Fdocumentation): Check for advice in all cases.
18235
182362007-10-19 Chong Yidong <cyd@stupidchicken.com>
18237
18238 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18239
182402007-10-19 Richard Stallman <rms@gnu.org>
18241
18242 * doc.c (Fdocumentation): Check for and handle an advised function.
18243
182442007-10-19 Juanma Barranquero <lekktu@gmail.com>
18245
18246 * process.c (Fset_process_filter): Doc fix.
18247
182482007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18249
18250 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18251 which caused key-translation-map to applied repeatedly (thus breaking
18252 double-mode).
18253
182542007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18255
18256 * xselect.c (x_own_selection, x_handle_selection_clear)
18257 (x_clear_frame_selections):
18258 * w32menu.c (list_of_panes, list_of_items):
18259 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18260 * textprop.c (validate_plist, interval_has_all_properties)
18261 (interval_has_some_properties, interval_has_some_properties_list)
18262 (add_properties, text_property_list):
18263 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18264 * minibuf.c (Fassoc_string):
18265 * macselect.c (x_own_selection, x_clear_frame_selections)
18266 (Fx_disown_selection_internal):
18267 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18268 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18269
182702007-10-17 Chong Yidong <cyd@stupidchicken.com>
18271
18272 * process.c: Link to libs for calling res_init() if available.
18273 (Fmake_network_process): Call res_init() before getaddrinfo or
18274 gethostbyname, if possible.
18275
182762007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18277
18278 * lread.c (read1): Set pvectype for char_tables.
18279
18280 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18281 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18282 Add type checks.
18283 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18284
18285 * alloc.c (free_misc): Use XMISCTYPE.
18286 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18287
182882007-10-17 Glenn Morris <rgm@gnu.org>
18289
18290 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18291 (syms_of_minibuf): Add Qcompletion_ignore_case.
18292 * dired.c (Qcompletion_ignore_case): Change to external.
18293 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18294 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18295 (Fread_file_name): Use it rather than intern'ing.
18296
18297 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18298 (Fread_coding_system): Ignore case of user input.
18299
183002007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18301
18302 * xdisp.c (handle_display_prop): Ignore display specs after
18303 replacing one when string text is being replaced.
18304 (handle_single_display_spec): Pretend as if characters with display
18305 property haven't been consumed only when buffer text is being replaced.
18306
183072007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18308
18309 * xfns.c (Fx_create_frame, Fx_display_list):
18310 * window.c (window_fixed_size_p, enlarge_window)
18311 (shrink_window_lowest_first):
18312 * macterm.c (init_font_name_table):
18313 * macfns.c (Fx_create_frame, Fx_display_list):
18314 * lread.c (close_load_descs):
18315 * keyboard.c (read_char_x_menu_prompt):
18316 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18317 * coding.c (code_convert_region_unwind): Test the type of an object
18318 rather than just !NILP before extracting data from it.
18319
18320 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18321
18322 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18323 (XMISCANY): New macro.
18324 (XMISCTYPE): Use it.
18325 (struct Lisp_Misc_Any): New type.
18326 (union Lisp_Misc): Use it.
18327 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18328 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18329 (find_symbol_value, set_internal, default_value, Fset_default)
18330 (Fmake_variable_buffer_local, Fmake_local_variable)
18331 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18332 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18333 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18334 * alloc.c (allocate_buffer): Set the size and tag.
18335 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18336 Use XMISCANY.
18337 (die): Follow the GNU convention for error messages.
18338 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18339 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18340 tag any more.
18341 (set_buffer_internal_1):
18342 * frame.c (store_frame_param):
18343 * eval.c (specbind):
18344 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18345
18346 * doc.c (Fsnarf_documentation): Simplify.
18347
183482007-10-14 Juanma Barranquero <lekktu@gmail.com>
18349
18350 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18351 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18352
183532007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18354
18355 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18356
183572007-10-14 Juanma Barranquero <lekktu@gmail.com>
18358
18359 * eval.c (do_autoload): Don't save autoloads.
18360
18361 * data.c (Ffset): Save autoload of the function being set.
18362
183632007-10-07 John Paul Wallington <jpw@pobox.com>
18364
18365 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18366 parameter before setting up faces.
18367
183682007-10-13 Eli Zaretskii <eliz@gnu.org>
18369
18370 * ccl.c (Fregister_code_conversion_map):
18371 * keyboard.c (append_tool_bar_item): Reformat last change.
18372
18373 * lisp.h (eabs): Rename from `abs'. All callers changed.
18374
183752007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18376
18377 * buffer.c (add_overlay_mod_hooklist):
18378 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18379 * fontset.c (make_fontset):
18380 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18381 (append_tool_bar_item):
18382 * macmenu.c (grow_menu_items):
18383 * w32menu.c (grow_menu_items):
18384 * xmenu.c (grow_menu_items): Use larger_vector.
18385
183862007-10-13 Eli Zaretskii <eliz@gnu.org>
18387
18388 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18389 selected frame'' on MSDOS).
18390
183912007-10-12 Martin Rudalics <rudalics@gmx.at>
18392
18393 * frame.c (Qexplicit_name): New variable.
18394 (x_report_frame_params): Report it in parameter alist.
18395 (syms_of_frame): Intern and staticpro it.
18396
183972007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18398
18399 * macfns.c (x_create_tip_frame): Set terminal for frame.
18400
184012007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18402
18403 * frame.c (Qenvironment): Remove.
18404 (syms_of_frame) <Qenvironment>: Don't initialize.
18405 (Fdelete_frame): Don't treat the `environment' param specially.
18406 * frame.h (Qenvironment): Don't declare.
18407 * callproc.c (set_initial_environment): Don't set unused frame param.
18408
18409 * frame.c (Fframe_with_environment): Remove.
18410 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18411
18412 * lisp.h (Fframe_with_environment): Don't declare.
18413
184142007-10-10 Juanma Barranquero <lekktu@gmail.com>
18415
18416 * indent.c (indent_tabs_mode, last_known_column)
18417 (last_known_column_modified): Make static.
18418 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18419
184202007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18421
18422 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18423
184242007-10-09 Jason Rumney <jasonr@gnu.org>
18425
18426 * w32term.c (x_set_window_size): Disable code that attempts to tell
18427 Lisp code about a size change before it actually happens.
18428
184292007-10-09 Richard Stallman <rms@gnu.org>
18430
18431 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18432 return HANDLED_RETURN.
18433
184342007-10-08 Martin Rudalics <rudalics@gmx.at>
18435
18436 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18437 when there's an unread command event.
18438
18439 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18440 window autoselection act appropriately when leaving selected frame.
18441 (syms_of_frame): Initialize focus_follows_mouse.
18442 * frame.h (focus_follows_mouse): Extern it.
18443 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18444 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18445 * msdos.c (dos_rawgetc): Likewise.
18446 * w32term.c (w32_read_socket): Likewise.
18447 * xterm.c (handle_one_xevent): Likewise.
18448 * xdisp.c (syms_of_xdisp): In doc-string of
18449 mouse-autoselect-window mention focus-follows-mouse.
18450
184512007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18452
18453 * macterm.c (mac_load_query_font): Fix missing return value.
18454 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18455 Add BLOCK_INPUT.
18456
184572007-10-08 Richard Stallman <rms@gnu.org>
18458
18459 * xdisp.c (get_window_cursor_type): Implement documented behavior
18460 for cursor-in-non-selected-windows = t.
18461
184622007-10-08 Jason Rumney <jasonr@gnu.org>
18463
18464 * w32.c (w32_get_resource): Always close registry keys.
18465
184662007-10-08 Jason Rumney <jasonr@gnu.org>
18467
18468 * makefile.w32-in (LIBS): Add COMCTL32.
18469
18470 * w32fns.c (globals_of_w32fns): Init common controls.
18471
184722007-10-08 Richard Stallman <rms@gnu.org>
18473
18474 * image.c (our_memory_buffer): Rename from omfib_buffer.
18475
184762007-10-08 Richard Stallman <rms@gnu.org>
18477
18478 * buffer.c (Foverlays_at): Doc fix.
18479
184802007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18481
18482 * fns.c (Fplist_put): Preserve uneven tail data.
18483
184842007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18485
18486 * termhooks.h (enum event_kind): Remove trailing comma.
18487
18488 * frame.h (enum): Remove trailing comma.
18489
184902007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18491
18492 * w32proc.c (delete_child): Don't terminate threads of zombies.
18493
184942007-10-08 Martin Rudalics <rudalics@gmx.at>
18495
18496 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18497
18498 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18499 last-repeatable-command.
18500 (init_kboard): Initialize Vlast_repeatable_command.
18501 (command_loop_1): Set it to real_this_command unless that was
18502 bound to an input event.
18503 (mark_kboards): Mark it.
18504
185052007-10-08 Richard Stallman <rms@gnu.org>
18506
18507 * eval.c (condition-case): Doc fix.
18508
185092007-10-08 Masatake YAMATO <jet@gyve.org>
18510
18511 * xfaces.c (tty_supports_face_attributes_p): Fix code
18512 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18513 was copied and not edited.
18514
185152007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18516
18517 Add new `input-decode-map' keymap and use it for terminal
18518 escape sequences.
18519 * keyboard.h (struct kboard): Add Vinput_decode_map.
18520 Remove Vlocal_key_translation_map.
18521 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18522 (init_kboard): Init input-decode-map.
18523 Replace local-key-translation-map back with key-translation-map.
18524 (syms_of_keyboard): Declare input-decode-map.
18525 Remove local-key-translation-map. Update docstrings.
18526 (mark_kboards): Mark Vinput_decode_map.
18527 Don't mark Vlocal_key_translation_map.
18528 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18529 Replace local-key-translation-map back with key-translation-map.
18530 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18531 Bind in input-decode-map rather than function-key-map.
18532
18533 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18534 This was made redundant by the previous introduction of XSETPVECTYPE.
18535
185362007-10-09 Richard Stallman <rms@gnu.org>
18537
18538 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18539
185402007-09-29 Richard Stallman <rms@gnu.org>
18541
18542 * eval.c (internal_condition_case_2, internal_condition_case_1)
18543 (internal_condition_case): Reenable abort if x_catching_errors ()
18544 to see if that really happens and why.
18545
185462007-10-06 Andreas Schwab <schwab@suse.de>
18547
18548 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18549
185502007-10-04 Juanma Barranquero <lekktu@gmail.com>
18551
18552 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18553
185542007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18555
18556 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18557
185582007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18559
18560 * window.h (struct window):
18561 * window.c (struct save_window_data, struct saved_window):
18562 * termhooks.h (struct terminal):
18563 * process.h (struct Lisp_Process):
18564 * frame.h (struct frame):
18565 * buffer.h (struct buffer):
18566 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18567 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18568 The size field of (pseudo)vectors is now unsigned.
18569 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18570
18571 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18572 Turn `count' into an integer.
18573
18574 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18575 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18576 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18577 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18578 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18579
18580 * alloc.c (allocate_pseudovector): New fun.
18581 (ALLOCATE_PSEUDOVECTOR): New macro.
18582 (allocate_window, allocate_terminal, allocate_frame)
18583 (allocate_process): Use it.
18584 (mark_vectorlike): New function.
18585 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18586 (mark_terminals): Use it.
18587 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18588 (Fmake_byte_code): Use XSETPVECTYPE.
18589
18590 * frame.c (Fframe_parameters): Minor simplification.
18591
18592 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18593
18594 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18595
18596 * buffer.c (Fget_buffer_create, init_buffer_once):
18597 * lread.c (defsubr):
18598 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18599
18600 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18601 defined differently in the m/*.h files.
18602 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18603 (XSETPVECTYPE): New macro.
18604 (XSETPSEUDOVECTOR): Use it.
18605
18606 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18607 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18608
18609 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18610 * lread.c (defvar_per_buffer):
18611 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18612
18613 * window.c (candidate_window_p): Only consider as visible frames that
18614 are on the same terminal.
18615
18616 * m/ibms390x.h (MARKBIT): Remove unused macro.
18617
186182007-10-01 Juanma Barranquero <lekktu@gmail.com>
18619
18620 * lread.c (Fload): Fix typo in docstring.
18621
186222007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18623
18624 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18625 of a non-zero value can't yield zero.
18626
186272007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18628
18629 * term.c (term_clear_mouse_face, term_mouse_highlight)
18630 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18631
18632 * print.c (safe_debug_print): Use XHASH.
18633
18634 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18635 Lisp elements such as tags.
18636 (XHASH): New macro.
18637 (EQ): Use it.
18638 (SREF, SSET, STRING_COPYIN): Use SDATA.
18639 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18640
18641 * alloc.c (mark_terminal): Remove left-over declaration.
18642 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18643 (allocate_vectorlike): Remove type argument. Adjust callers.
18644 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18645 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18646
18647 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18648 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18649 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18650 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18651 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18652 Use them.
18653
18654 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18655 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18656 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18657
186582007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18659
18660 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18661 loaded by default.
18662
186632007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18664
18665 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18666 on this tty.
18667 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18668
18669 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18670 Update all users.
18671 (handle_one_term_event): Use Gpm_DrawPointer.
18672 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18673 Signal errors instead of returning nil. Always return nil.
18674 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18675 Make it a noop if gpm-mouse was not activated.
18676 (syms_of_term): Update names.
18677
186782007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18679
18680 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18681 (init_sys_modes): Check that gpm_tty is the current tty.
18682
18683 * alloc.c (allocate_terminal): Set the vector size to only count the
18684 lisp fields. Initialize those to nil.
18685 (mark_object): Don't treat terminals specially.
18686 (mark_terminal): Remove.
18687 (mark_terminals): Use mark_object instead.
18688
18689 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18690 the GC to the beginning.
18691
18692 * indent.h:
18693 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18694
18695 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18696
186972007-09-25 Jason Rumney <jasonr@gnu.org>
18698
18699 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18700
18701 * w32console.c (create_w32cons_output): Remove.
18702
18703 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18704
18705 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18706 (reset_sys_modes): Use reset_terminal_modes_hook.
18707
187082007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18709
18710 * eval.c (do_autoload): Don't output any message.
18711
187122007-09-24 Juri Linkov <juri@jurta.org>
18713
18714 * emacs.c (standard_args): Change priority of "--no-splash"
18715 from 40 to 3. Add "--no-desktop" with the same priority.
18716
187172007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18718
18719 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18720 and optimize the case where they are all 1.
18721
187222007-09-23 Johannes Weiner <hannes@saeurebad.de>
18723
18724 * lisp.h (abs): Define if not defined.
18725 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18726 Don't define `abs', since it's defined in lisp.h.
18727
187282007-09-22 Eli Zaretskii <eliz@gnu.org>
18729
18730 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18731 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18732 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18733 (init_tty): Use DEV_TTY instead of "/dev/tty".
18734 [WINDOWSNT]: No need to protect from NAME arg being null.
18735
187362007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18737
18738 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18739 up the tty state.
18740
187412007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18742
18743 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18744 (gpm_tty): Change its type.
18745 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18746 (gpm_tty): Change its type and initialize it.
18747 (Fterm_open_connection): Check the frame is indeed a tty.
18748 Use the new gpm_tty.
18749 (Fterm_close_connection): Use the new gpm_tty.
18750 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18751 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18752
187532007-09-21 Juanma Barranquero <lekktu@gmail.com>
18754
18755 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18756 underline_color, to draw strike-through.
18757
187582007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18759
18760 * lisp.h (allocate_terminal): Declare.
18761
18762 * window.c (candidate_window_p): Consider frames that are being placed
18763 by the user as somewhere between visible and iconified.
18764 (window_loop): Prefer windows on the current frame.
18765 (Fselect_window): Move the use of select-frame to the beginning so we
18766 can just delegate all the work (it'll call us back anyway).
18767
18768 * frame.c (Qdisplay_environment_variable):
18769 * frame.h (Qdisplay_environment_variable): Delete.
18770
18771 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18772 of the first arg, since that value may be a union.
18773
18774 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18775 parameter rather than Qdisplay_environment_variable. If all else
18776 fails, look for DISPLAY in initial-environment.
18777
187782007-09-21 Glenn Morris <rgm@gnu.org>
18779
18780 * Makefile.in (emacstool): Remove target.
18781 (lisp, shortlisp): Remove termdev.elc.
18782
187832007-09-21 Markus Triska <markus.triska@gmx.at>
18784
18785 * xterm.c (x_delete_display): Compile session management conditionally.
18786
187872007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18788
18789 * callproc.c (getenv_internal_1): New function.
18790 (getenv_internal): Use it.
18791 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18792
18793 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18794 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18795 (Fset_terminal_parameter): Work with dead terminals as well.
18796 (Fmodify_terminal_parameters): Remove.
18797
18798 * terminal.c (get_terminal): Handle terminals.
18799 Make sure the terminal returned is live.
18800 (create_terminal): Use allocate_terminal.
18801 (mark_terminals): Move to alloc.c.
18802 (delete_terminal): Use terminal->name as liveness status.
18803 NULL out fields after freeing their contents.
18804 Don't deallocate the object.
18805 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18806 rather than an int.
18807 (Fterminal_live_p): Accept non-integer arguments.
18808 (Fterminal_list): Return terminal objects rather than an ints.
18809
18810 * alloc.c (enum mem_type): New member for `terminal' objects.
18811 (allocate_terminal): New function.
18812 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18813 Handle terminals.
18814 (mark_terminal): New fun.
18815 (mark_terminals): Move from terminal.c.
18816
18817 * term.c (get_tty_terminal): Don't treat output_initial specially.
18818 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18819 (delete_tty): Use terminal->name as liveness status.
18820
18821 * termhooks.h (struct terminal): Make it into a pseudovector.
18822 Remove `deleted' replaced by checking `name's nullness.
18823
18824 * print.c (print_object): Handle terminals.
18825
18826 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18827 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18828
18829 * frame.c (make_terminal_frame):
18830 * keyboard.c (tty_read_avail_input):
18831 * w32term.c (x_delete_terminal):
18832 * xfns.c (Fx_create_frame, x_create_tip_frame):
18833 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18834
188352007-09-20 Glenn Morris <rgm@gnu.org>
18836
18837 * process.c (Fmake_network_process): Doc fix.
18838
188392007-09-19 Jason Rumney <jasonr@gnu.org>
18840
18841 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18842
188432007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18844
18845 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18846 Fix a C warning regarding variable constness.
18847
18848 * xterm.c (handle_one_xevent): Fix a C warning.
18849
188502007-09-18 Jason Rumney <jasonr@gnu.org>
18851
18852 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18853
188542007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18855
18856 * gtkutil.c (gdpy_def): New variable.
18857 (xg_initialize): Initialize gdpy_def.
18858 (xg_display_close): If no other display exists, set gdpy_def to a
18859 new connection.
18860
188612007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18862
18863 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18864 when we have no file name for the icon.
18865 (xg_tool_bar_expose_callback): Remove.
18866 (xg_create_tool_bar): Don't connect expose signal to
18867 xg_tool_bar_expose_callback.
18868 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18869
188702007-09-16 Andreas Schwab <schwab@suse.de>
18871
18872 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18873 values instead of zapping them.
18874
188752007-09-14 Glenn Morris <rgm@gnu.org>
18876
18877 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18878 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18879 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18880 scope and rename to omfib_buffer for clarity.
18881 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18882
188832007-09-14 Kenichi Handa <handa@m17n.org>
18884
18885 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18886
188872007-09-13 Jason Rumney <jasonr@gnu.org>
18888
18889 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18890
18891 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18892
18893 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18894 (mac_term_init): Call here instead, passing rif.
18895
188962007-09-13 Glenn Morris <rgm@gnu.org>
18897
18898 * s/hpux.h: No longer define `static' as nothing.
18899
189002007-09-13 Johan Bockgård <bojohan@gnu.org>
18901
18902 * callint.c (Fcall_interactively): Remove unused var `fun'.
18903
189042007-09-12 Romain Francoise <romain@orebokech.com>
18905
18906 * window.c (prefer_window_split_horizontally, display_buffer):
18907 Revert 2007-09-08 change.
18908
189092007-09-12 Glenn Morris <rgm@gnu.org>
18910
18911 * alloca.c: Remove file.
18912 * Makefile.in (alloca): Do not undef.
18913 (allocaobj, alloca.o): Remove.
18914 (otherobj): Remove allocaobj.
18915 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18916 * regex.c (C_ALLOCA): Remove all references and code that was only
18917 used when this was defined.
18918 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18919 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18920 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18921
18922 * Makefile.in (SOURCES, unlock, relock): Delete.
18923
18924 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18925 (menu_grab_callback): All uses changed.
18926
18927 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18928 (x_reply_selection_request): All uses changed.
18929
189302007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18931
18932 * lread.c (load_warn_old_style_backquotes): Change message to look
18933 better when it appears in the middle of byte-compiler messages.
18934
189352007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18936
18937 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18938
18939 * xterm.c (x_create_terminal): Add comment.
18940
18941 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18942
189432007-09-10 Richard Stallman <rms@gnu.org>
18944
18945 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18946
189472007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18948
18949 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18950 (DEFUN): Document `intspec', use it instead of `prompt'.
18951
18952 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18953
18954 * data.c (Finteractive_form): If the interactive specification starts
18955 with a `(', use it as a Lisp form.
18956
18957 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18958 name and file modes.
18959
18960 * callint.c (Fcall_interactively): Comment fixes.
18961
189622007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18963
18964 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18965 and compiled functions.
18966
189672007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18968
18969 * window.c (prefer_window_split_horizontally): New variable.
18970 (display_buffer): Consider splitting window horizontally depending
18971 on prefer_window_split_horizontally.
18972
189732007-09-08 Eli Zaretskii <eliz@gnu.org>
18974
18975 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18976
189772007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18978
18979 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18980
18981 * frame.c (x_set_frame_parameters): Check number is positive before
18982 using XFASTINT.
18983
18984 * window.c (freeze_window_start): Don't presume selected_window holds
18985 a window object.
18986 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18987
189882007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18989
18990 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18991
189922007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18993
18994 * window.c (Vsplit_window_preferred_function): New var.
18995 (Fdisplay_buffer): Use it.
18996 (syms_of_window): Export, and initialize it.
18997
189982007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18999
19000 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19001
190022007-09-06 Glenn Morris <rgm@gnu.org>
19003
19004 * gtkutil.c (menu_grab_callback) <cnt>:
19005 * xselect.c (x_reply_selection_request) <cnt>: Move static
19006 variable to file scope.
19007
190082007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19009
19010 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19011 consistent values of selected_frame and selected_window.
19012
190132007-09-04 Jason Rumney <jasonr@gnu.org>
19014
19015 * w32console.c (initialize_w32_display): Zero unused hooks.
19016
190172007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19018
19019 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19020 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19021
190222007-09-04 Jason Rumney <jasonr@gnu.org>
19023
19024 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19025 in w32console.c. Set up input. Remove XXX comments that have been
19026 confirmed as correct.
19027
19028 * s/ms-w32.h (MULTI_KBOARD): Define.
19029
19030 * w32console.c (one_and_only_w32cons): Remove.
19031 (initialize_w32_display): Take terminal argument.
19032
19033 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19034 initialize_w32_display.
19035 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19036
19037 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19038
19039 * keyboard.c (discard_mouse_events): Discard it.
19040 (make_lispy_event): Translate it to a lisp event.
19041 (lispy_wheel_names): Add wheel-left and right events.
19042 (syms_of_keyboard): Enlarge wheel_syms.
19043
19044 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19045 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19046
19047 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19048
19049 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19050 from WM_MOUSEHWHEEL.
19051 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19052
19053 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19054 terminal.
19055
19056 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19057 keyboard for the terminal.
19058
190592007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19060
19061 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19062 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19063 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19064 and resume-tty-function to resume-tty-hook.
19065 (Fsuspend_tty, Fresume_tty): Use new names.
19066
190672007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19068
19069 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19070 if it starts with "n:".
19071
190722007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19073
19074 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19075
190762007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19077
19078 * frame.h:
19079 * frame.c (Qterm_environment_variable): Remove.
19080 (syms_of_frame): Don't init and staticpro it.
19081
19082 * callproc.c (getenv_internal): Remove special case for $TERM.
19083
19084 * callproc.c (Vinitial_environment): New variable.
19085 (set_initial_environment): Initialize it.
19086 (syms_of_callproc): Declare it.
19087 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19088 TERM under which a process runs is never related to the TERM in which
19089 Emacs is running.
19090
190912007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19092
19093 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19094 * s/darwin.h: ... do it here.
19095
190962007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19097
19098 * lisp.h (set_initial_environment): Rename from set_global_environment.
19099
19100 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19101 removed by mistake on the multi-tty branch.
19102
19103 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19104 (Fmodify_frame_parameters): Return a value.
19105
19106 * image.c (png_load): Comment-out var only used in commented-out code.
19107
19108 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19109 before passing it to mark_object.
19110
19111 * xfaces.c (internal_resolve_face_name): Return a value.
19112 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19113
19114 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19115 (x_icon): Comment-out var only used in commented-out code.
19116
191172007-08-29 Romain Francoise <romain@orebokech.com>
19118
19119 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19120 QUIT hasn't been provided.
19121
191222007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19123
19124 * callproc.c (child_setup, getenv_internal): Use the
19125 display-environment-variable and term-environment-variable frame params.
19126 (set_initial_environment): Initialise Vprocess_environment.
19127
19128 * config.in: Disable multi-keyboard support on a mac.
19129
19130 * frame.c (Qterm_environment_variable)
19131 (Qdisplay_environment_variable): New variables.
19132 (syms_of_frame): Intern and staticpro them.
19133 (Fmake_terminal_frame): Disable output method test.
19134
19135 * frame.h: Declare them here.
19136
19137 * macfns.c (x_set_mouse_color): Get rif from the frame.
19138 (x_set_tool_bar_lines): Don't use updating_frame.
19139 (mac_window): Add 2 new parameters for consistency with other systems.
19140 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19141 frame parameters following what is done in X11 and w32. Don't use
19142 FRAME_MAC_DISPLAY_INFO.
19143 (Fx_open_connection, start_hourglass): Remove window-system check.
19144 (x_create_tip_frame): Get the keyboard from the terminal.
19145
19146 * macmenu.c: Reorder includes.
19147 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19148
19149 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19150 terminal parameter.
19151 (x_clear_frame): Add a frame parameter.
19152 (note_mouse_movement): Get rif from the frame.
19153 (mac_term_init): Initialize the terminal.
19154 (mac_initialize): Make static and move terminal initialization ...
19155 (mac_create_terminal): ... to this new function.
19156
19157 * macterm.h (struct mac_display_info): Add terminal.
19158 (mac_initialize): Delete declaration.
19159
19160 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19161
19162 * sysdep.c: Comment out text after #endif.
19163
19164 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19165 is defined. Better initialize ttys in windows. Use terminal
19166 specific mouse_position_hook.
19167
19168 * termhooks.h (union display_info): Add mac_display_info.
19169
19170 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19171 Set the default minibuffer frame, window_system and the rest of the
19172 frame parameters following what is done in X11.
19173
19174 * w32term.c (w32_initialize): Make static.
19175
19176 * xselect.c (x_handle_selection_clear): Only access
19177 terminal->kboard when MULTI_KBOARD is defined.
19178
19179 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19180 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19181
191822007-08-29 Jason Rumney <jasonr@gnu.org>
19183
19184 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19185 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19186
19187 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19188 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19189
19190 * keyboard.c (restore_kboard_configuration): Only define when
19191 MULTI_KBOARD defined.
19192
19193 * makefile.w32-in: Update dependancies from Makefile.in.
19194 (OBJ1): Add terminal.$(O)
19195
19196 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19197 Don't define function body.
19198 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19199
19200 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19201
19202 * w32.c (request_sigio, unrequest_sigio): Remove.
19203
19204 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19205 (w32con_clear_frame, w32con_clear_end_of_line)
19206 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19207 (w32con_delete_glyphs, w32con_set_terminal_window)
19208 (scroll_line, w32_sys_ring_bell): Add frame arg.
19209 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19210 Add terminal arg.
19211 (PICK_FRAME): Remove.
19212 (w32con_write_glyphs): Use frame specific terminal coding.
19213 (one_and_only_w32cons): New global variable.
19214 (initialize_w32_display): Use it for storing hooks.
19215 (create_w32cons_output): New function.
19216
19217 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19218 arg a frame.
19219
19220 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19221 Set window_system.
19222 (x_set_tool_bar_lines): Don't use updating_frame.
19223 (Fx_create_frame): Set terminal and ref count.
19224 (Fx_open_connection): Remove window-system check.
19225
19226 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19227
19228 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19229 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19230 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19231 Add frame arg.
19232 (x_delete_terminal, w32_create_terminal): New functions.
19233 (w32_term_init): Create a terminal.
19234 (w32_initialize): Move terminal specific initialization to
19235 w32_create_terminal.
19236
19237 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19238 (w32_clear_rect, w32_clear_area): Use background from frame.
19239 (w32_display_info): Add terminal.
19240 (w32_sys_ring_bell, x_delete_display): Declare here.
19241
19242 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19243
19244 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19245
192462007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19247
19248 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19249 Fix get_named_tty calls for the controlling tty.
19250
192512007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19252
19253 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19254
192552007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19256
19257 * term.c (tty_insert_glyphs): Add missing first parameter.
19258
192592007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19260
19261 * buffer.c (Fbuffer_list, Fbury_buffer):
19262 Take frame->buried_buffer_list into account.
19263
19264 * cm.c (current_tty): New variable, for cmputc().
19265 (cmputc): Use it.
19266 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19267 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19268 (cmgoto): Add tty parameter. Pass it on to calccost().
19269 Use emacs_tputs() instead of tputs().
19270
19271 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19272 tputs().
19273 (current_tty): New variable, for cmputc().
19274 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19275
19276 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19277 (internal_condition_case, internal_condition_case_1)
19278 (internal_condition_case_2): Don't abort when x_catching_errors.
19279
19280 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19281 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19282 prevent crashes caused by bogus longjmps in read_char.
19283
19284 * keymap.h (Fset_keymap_parent): Add EXFUN.
19285
19286 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19287 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19288 Remove redundant definition.
19289
19290 * macfns.c (x_set_mouse_color, x_make_gc):
19291 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19292
19293 * w32term.c (x_free_frame_resources):
19294 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19295 (w32_initialize): Use the accessor macros for terminal characteristics.
19296
19297 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19298 Use the accessor macros for terminal characteristics.
19299 * msdos.c (internal_terminal_init): Use the accessor macros for
19300 terminal characteristics.
19301 (ScreenVisualBell, internal_terminal_init):
19302 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19303
19304 * termopts.h (no_redraw_on_reenter): Declare.
19305
19306 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19307 (mark_terminals, mark_ttys): Declare.
19308 (Fgarbage_collect): Call them.
19309 (mark_object): Mark buried_buffer_list.
19310
19311 * prefix-args.c: Include stdlib.h for exit.
19312
19313 * syssignal.h: Add comment.
19314
19315 * indent.c: Include stdio.h.
19316
19317 * window.h (Vinitial_window_system): Declare.
19318 (Vwindow_system): Delete declaration.
19319
19320 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19321
19322 * image.c (lookup_image): Don't initialize `c' until the xasserts
19323 have been run.
19324
19325 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19326 FRAME_FOREGROUND_PIXEL.
19327
19328 * print.c (print_preprocess): Don't lose print_depth levels while
19329 iterating.
19330
19331 * widget.c (update_from_various_frame_slots):
19332 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19333
19334 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19335 frames.
19336 (window_internal_height): Remove bogus make_number call.
19337 (init_window_once): Call make_terminal_frame with two zero parameters.
19338
19339 * fileio.c (Fread_file_name): Update comment.
19340
19341 * callint.c (Fcall_interactively):
19342 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19343 Make sure it is correctly unwound.
19344
19345 * xsmfns.c (x_session_close): New function.
19346
19347 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19348 Delete declarations.
19349
19350 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19351 (x_output): Remove background_pixel and foreground_pixel fields.
19352 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19353 (x_delete_device, x_session_close): Declare.
19354
19355 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19356 (read_filtered_event): Call `read_char' with a local
19357 `wrong_kboard_jmpbuf'.
19358
19359 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19360 Don't call single_kboard_state. Use FRAME_RIF.
19361
19362 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19363 systems.
19364
19365 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19366 (Fframe_with_environment, Fset_input_meta_mode)
19367 (Fset_quit_char): EXFUN.
19368 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19369 (init_sys_modes, reset_sys_modes): Update prototypes.
19370 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19371
19372 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19373 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19374 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19375 Delete declarations.
19376 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19377 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19378 New declarations.
19379
19380 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19381 already does that during init_display(). Call syms_of_keymap
19382 before syms_of_keyboard. Call `syms_of_terminal'.
19383 Call set_initial_environment, not set_process_environment.
19384 (shut_down_emacs): Call reset_all_sys_modes() instead of
19385 reset_sys_modes().
19386
19387 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19388 (internal_resolve_face_name, resolve_face_name_error): New functions.
19389 (resolve_face_name): Protect against loops and errors thrown by Fget.
19390 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19391 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19392
19393 * scroll.c: Replace CURTTY() with local variables throughout the
19394 file (where applicable).
19395 (calculate_scrolling, calculate_direct_scrolling)
19396 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19397 characteristics.
19398
19399 * keymap.c (Vfunction_key_map): Remove.
19400 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19401 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19402 (Vkey_translation_map): Remove.
19403 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19404 (Fdescribe_buffer_bindings)
19405 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19406 Update for terminal-local key-translation-map.
19407
19408 * Makefile.in (callproc.o): Update dependencies.
19409 (lisp, shortlisp): Add termdev.elc.
19410 (obj): Add terminal.o.
19411 (terminal.o): Add dependencies.
19412 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19413 (data.o, fns.o): Add termhooks.h dependency.
19414 (SOME_MACHINE_LISP): Add dnd.elc.
19415 (minibuf.o): Fix typo.
19416 Update dependencies.
19417
19418 * data.c (do_symval_forwarding, store_symval_forwarding)
19419 (find_symbol_value): Use the selected frame's keyboard, not
19420 current_kboard.
19421
19422 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19423 Vwindow_system.
19424
19425 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19426 Fmenu_bar_open.
19427 (syms_of_xmenu): Update defsubr.
19428 (mouse_position_for_popup, Fx_popup_menu)
19429 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19430 (set_frame_menubar, free_frame_menubar)
b97439ce 19431 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19432 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19433 an X frame.
19434
19435 * xselect.c (x_own_selection): Abort if not an X frame.
19436 (some_frame_on_display): Check if it is an X frame.
19437 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19438
19439 * coding.c: Include frame.h and termhooks.h.
19440 (terminal_coding, keyboard_coding): Delete.
19441 (Fset_terminal_coding_system_internal)
19442 (Fset_keyboard_coding_system_internal)
19443 (Fkeyboard_coding_system)
19444 (Fterminal_coding_system): Add a terminal parameter.
19445 Get terminal_coding from the terminal.
19446 (init_coding_once): Don't call setup_coding_system here.
19447
19448 * dispextern.h (set_scroll_region, turn_off_insert)
19449 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19450 (tty_clear_end_of_line, tty_setup_colors)
19451 (delete_tty, updating_frame)
19452 (produce_special_glyphs, produce_glyphs, write_glyphs)
19453 (insert_glyphs): Remove.
19454 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19455 (tty_turn_off_highlight, get_tty_size): Add declaration.
19456 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19457
19458 * frame.h (enum output_method): Add output_initial.
19459 (struct x_output): Delete.
19460 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19461 Access foreground_pixel and background_pixel directly from the frame.
19462 (tty_display): Delete.
19463 (struct frame): Add buried_buffer_list, foreground_pixel,
19464 background_pixel and terminal. Delete kboard.
19465 (union output_data): Add tty.
19466 (FRAME_KBOARD): Get the kboard from the terminal.
19467 (FRAME_INITIAL_P): New macro.
19468 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19469 (Qterm_environment_variable, Qdisplay_environment_variable)
19470 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19471 New declarations.
19472
19473 * termchar.h (tty_output, tty_display_info): New structures.
19474 (tty_list): Declare.
19475 (FRAME_TTY, CURTTY): New macros.
19476 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19477 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19478 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19479 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19480
19481 * callproc.c: Include frame.h and termhooks.h, for terminal
19482 parameters.
19483 (add_env): New function.
19484 (child_setup): Use it.
19485 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19486 (getenv_internal): Fix get_terminal_param call.
19487 (Fgetenv_internal, egetenv): Update doc.
19488 (syms_of_callproc): Initialize Vprocess_environment to nil.
19489 Register and initialize them. Remove obsolete defvars. Update doc
19490 strings.
19491 (child_setup): Handle Vlocal_environment_variables.
19492 (getenv_internal): Add terminal parameter.
19493 Handle Vlocal_environment_variables.
19494 (Fgetenv_internal): Add terminal parameter.
19495 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19496 environment in a frame (not terminal) parameter. Update doc strings.
19497 (set_initial_environment): Rename from set_global_environment.
19498 Store Emacs environment in initial frame parameter.
19499
19500 * xdisp.c (redisplay_internal): Update references to
19501 `previous_terminal_frame'.
19502 (display_mode_line, Fformat_mode_line): Replace calls to
19503 `push_frame_kboard' with `push_kboard'.
19504 (get_glyph_string_clip_rects): Add extra parentheses and
19505 braces to prevent compiler warnings.
19506 (calc_pixel_width_or_height): Add xassert to check that the
19507 frame is alive. Don't call `lookup_image' on a termcap frame.
19508 (message2_nolog, message3_nolog, redisplay_internal)
19509 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19510 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19511 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19512 (Fx_display_pixel_width, Fx_display_pixel_height)
19513 (Fx_display_planes, Fx_display_color_cells)
19514 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19515 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19516 (Fx_display_backing_store, Fx_display_visual_class)
19517 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19518 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19519
19520 * xfns.c (x_set_foreground_color x_set_background_color)
19521 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19522 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19523 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19524 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19525 terminal that is being deleted.
19526 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19527 frame parameter, and make sure it overrides any user-supplied setting.
19528 (Fx_close_connection, Fx_synchronize): Unify argument names with
19529 the rest of the DEFUNs.
19530
19531 * dispnew.c (Fsend_string_to_terminal): Update call to
19532 `get_tty_terminal'.
19533 (Fredraw_frame, Fsend_string_to_terminal)
19534 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19535 FRAME_TERMCAP_P and FRAME_TTY.
19536 (window_change_signal): Don't believe width/height values that are
19537 impossibly small.
19538 (Vinitial_window_system): Rename from Vwindow_system.
19539 (termscript, Wcm, rif): Delete.
19540
19541 * termhooks.h (struct terminal): New struct containing the
19542 previously global text display hooks and new members NAME,
19543 DELETED and PARAM_ALIST.
19544 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19545 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19546 (FRAME_RIF): New macros.
19547 (get_terminal_param, get_device): New declarations.
19548 (termscript): Delete declaration.
19549
19550 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19551 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19552 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19553 FRAME_FOREGROUND_PIXEL.
19554 (x_fully_uncatch_errors): Disable definition.
19555 (x_scroll_bar_expose): Fix reference to foreground pixel.
19556 (XTread_socket): Disable loop on all X displays.
19557 (x_delete_terminal): Don't set terminal->deleted and let
19558 delete_terminal delete the frames on the terminal.
19559 (x_delete_display): Doc update to reflect changes in
19560 delete_terminal.
19561 (x_display_info) <terminal>: Move member earlier in the struct.
19562 (deleting_tty): Remove old variable.
19563 (Fsuspend_tty): Call clear_tty_hooks.
19564 (Fresume_tty, init_tty): Call set_tty_hooks.
19565 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19566 errors on X frames.
19567 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19568 (handle_one_xevent): Initialize `f' to NULL.
19569 (x_delete_terminal, x_create_terminal): New functions.
19570 (XTset_terminal_modes, XTreset_terminal_modes)
19571 (XTread_socket, x_connection_closed, x_term_init)
19572 (x_term_init, x_delete_display): Add terminal parameter.
19573 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19574 X connections.
19575
19576 * frame.c: Include termchar.h.
19577 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19578 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19579 (Qdisplay_environment_variable): New vars.
19580 (Fframep): Deal with output_initial.
19581 (Fframe-live-p): Doc fix.
19582 (Fwindow-system): New function.
19583 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19584 (make_terminal_frame): Don't create frames on a terminal that is
19585 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19586 (store_frame_param): Check for found_for_frame before calling XFRAME.
19587 (Fmake_terminal_frame): Handle NULL tty names correctly.
19588 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19589 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19590 frames to refer to a deleted frame in their 'environment parameter.
19591 (Fframe_with_environment): New function.
19592 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19593 (get_future_frame_param): New function.
19594 (Fmake_terminal_frame): Use it.
19595 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19596
19597 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19598 * sysdep.c (reset_sys_modes): Update for renames.
19599
19600 * keyboard.c (tty_read_avail_input): New function.
19601 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19602 (syms_of_keyboard): Defsubr them.
19603 (Fset_input_meta_mode, Fset_quit_char): New functions.
19604 (Fset_input_mode): Split to above functions.
19605 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19606 parameter. Use it in call to `read_char'.
19607 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19608 Set wrong_kboard_jmpbuf correctly in recursive calls.
19609 Use current_kboard to access Vkeyboard_translate_table.
19610 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19611 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19612 Update longjmp invocations. Remember the original current_kboard,
19613 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19614 changes it. Comment out unnecessary calls to
19615 `record_single_kboard_state' and `any_kboard_state'.
19616 Update recursive calls.
19617 (wrong_kboard_jmpbuf): Remove global variable.
19618 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19619 Handle deleted interrupted_kboards correctly; that is a legal
19620 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19621 and read_char calls. Abort if interrupted_kboard died in read_char.
19622 (any_kboard_state, single_kboard_state)
19623 (push_frame_kboard): Remove function.
19624 (pop_kboard): Switch out of single_kboard mode if the kboard has
19625 been deleted. Remove unused variable. Help debugging by not
19626 changing current_kboard unnecessarily. Set current_kboard to the
19627 kboard of the selected frame when the stored kboard object has
19628 been deleted before pop_kboard.
19629 (temporarily_switch_to_single_kboard): Change first parameter to a
19630 frame pointer. Throw an error when caller wants to change kboards
19631 while in single_kboard mode. Don't push_kboard if we weren't in
19632 single kboard state. Don't pop_kboard if we popped into any
19633 kboard state.
19634 (restore_kboard_configuration): Abort if pop_kboard changed the
19635 kboard in single_kboard mode. Call pop_kboard only after setting
19636 up single_kboard mode.
19637 (Frecursive_edit): Switch to single_kboard mode only in nested
19638 command loops.
19639 (cmd_error, command_loop, command_loop_1, timer_check):
19640 Comment out unnecessary call to `any_kboard_state' and
19641 `record_single_kboard_state'.
19642 (delete_kboard): Exit single_kboard mode if we have just deleted
19643 that kboard. Use FRAME_KBOARD.
19644 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19645 `fatal_error_signal'.
19646 (record_single_kboard_state): Don't push_kboard if we weren't in
19647 single kboard state. Don't pop_kboard if we popped into any
19648 kboard state.
19649 (push_frame_kboard): Rename to push_kboard.
19650 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19651 (read_avail_input): Read input from all terminals.
19652 (mark_kboards): Also mark Vkeyboard_translate_table.
19653 (kbd_buffer_store_event_hold): Simplify condition.
19654 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19655 (Vkeyboard_translate_table): Move to struct kboard.
19656 (init_kboard): Initialize Vkeyboard_translate_table.
19657 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19658 Vkeyboard_translate_table. Update doc strings. Update docs of
19659 local-function-key-map and function-key-map.
19660
19661 * terminal.c: New file.
19662
19663 * term.c: Include errno.h.
19664 (Vring_bell_function, device_list, initial_device)
19665 (next_device_id, ring_bell, update_begin, update_end)
19666 (set_terminal_window, cursor_to, raw_cursor_to)
19667 (clear_to_end, clear_frame, clear_end_of_line)
19668 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19669 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19670 (syms_of_term): Move their initialization to terminal.c.
19671 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19672 (Ftty_display_color_cells)
19673 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19674 (clear_tty_hooks, set_tty_hooks)
19675 (init_tty, maybe_fatal): New functions.
19676 (Ftty_type): Return nil if terminal is not on a tty instead of
19677 throwing an error. Doc update.
19678 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19679 Doc update. Initialize new subrs and variables.
19680 (delete_tty): Use terminal->deleted.
19681 (tty_set_terminal_modes): Rename from set_terminal_modes.
19682 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19683 (set_scroll_region): Rename to `tty_set_scroll_region'.
19684 (turn_on_insert): Rename to `tty_turn_on_insert'.
19685 (turn_off_insert): Rename to `tty_turn_off_insert'.
19686 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19687 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19688 (toggle_highligh): Rename to `tty_toggle_highlight'.
19689 (background_highlight): Rename to `tty_background_highlight'.
19690 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19691 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19692 (tty_set_scroll_region, tty_background_highlight)
19693 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19694 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19695 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19696 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19697 Add static modifier.
19698 (tty_reset_terminal_modes, tty_set_terminal_window)
19699 (tty_set_scroll_region, tty_background_highlight)
19700 (tty_highlight_if_desired, tty_cursor_to)
19701 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19702 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19703 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19704 renames.
19705
197062007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19707
19708 * keyboard.c: Qrtl is new.
19709 (parse_tool_bar_item): Handle :rtl keyword.
19710 (syms_of_keyboard): Intern :rtl keyword.
19711
19712 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19713
19714 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19715 so no Lisp code is executed.
19716 (file_for_image, find_rtl_image): New functions.
19717 (xg_get_image_for_pixmap): Use file_for_image.
19718 (update_frame_tool_bar): If direction is RTL, use RTL image if
19719 defined. Use Gtk stock images if defined.
19720
197212007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19722
19723 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19724 for nonexistent or zero-width glyph in composition glyph.
19725
197262007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19727
19728 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19729
19730 * xdisp.c (Finvisible_p): New function.
19731 (syms_of_xdisp): defsubr it.
19732
197332007-08-24 Juanma Barranquero <lekktu@gmail.com>
19734
19735 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19736 Doc fixes.
19737
197382007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19739
19740 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19741
197422007-08-24 Martin Rudalics <rudalics@gmx.at>
19743
19744 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19745 whether decoding has modified buffer contents.
19746
197472007-08-24 Jason Rumney <jasonr@gnu.org>
19748
19749 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19750 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19751 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19752 (init_svg_functions) [HAVE_NTGUI]: New function.
19753 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19754 (svg_load_image): Use them.
19755 (svg_load_image) [HAVE_NTGUI]: Implement background.
19756
197572007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19758
19759 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19760 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19761 (LIBX): Remove @RSVG_LIBS@.
19762 (LIBES): Add $(RSVG_LIBS).
19763
19764 * image.c (svg_load_image): Blend with specified background if exists.
19765 Use IMAGE_BACKGROUND. Add Mac OS Support.
19766
19767 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19768 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19769 Remove macros.
19770 [MAC_OSX] (socket_callback): Do nothing.
19771 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19772 ReceiveNextEvent.
19773 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19774 socket_callback.
19775 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19776
197772007-08-22 Glenn Morris <rgm@gnu.org>
19778
19779 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19780
197812007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19782
19783 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19784
19785 * image.c: Add support for SVG images. Some additional comments
19786 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19787 (svg_image_p): New function to test for SVG image.
19788 (svg_load): New function to load SVG image.
19789 (svg_load_image): New function, helper for svg_load.
19790 (Qsvg): New Lisp_object.
19791 (svg_keyword_index): New enum.
19792 (svg_format): New static `image_keyword' struct.
19793 (svg_type): New static `image_type' struct.
19794 (librsvg/rsvg.h): Include it.
19795
197962007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19797
19798 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19799
198002007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19801
19802 * lread.c (Qold_style_backquotes): New var.
19803 (syms_of_lread): Init and staticpro it.
19804 (load_warn_old_style_backquotes): New fun.
19805 (Fload): Use them to warn about old style backquotes.
19806 (end_of_file_error, Fload): Remove unused vars.
19807
19808 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19809
19810 * lread.c (Vold_style_backquotes): New var.
19811 (syms_of_lread): Init and export it to Elisp.
19812 (read1): Set it when we find an old-style (back)quote.
19813
198142007-08-22 Jason Rumney <jasonr@gnu.org>
19815
19816 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19817
198182007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19819
19820 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19821
198222007-08-19 Richard Stallman <rms@gnu.org>
19823
19824 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19825
198262007-08-19 Andreas Schwab <schwab@suse.de>
19827
19828 * alloc.c (pure): Round PURESIZE up.
19829
198302007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19831
19832 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19833 active frame.
19834
198352007-08-16 Richard Stallman <rms@gnu.org>
19836
19837 * eval.c (Fcommandp): Add parens to clarify.
19838
19839 * minibuf.c (Fall_completions): Use enum for type of table.
19840
19841 * emacs.c (USAGE2): Improve text.
19842
198432007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19844
19845 * term.c (tty_default_color_capabilities): Declare static
19846 variables in file scope, to avoid HPUX compiler problem.
19847
198482007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19849
19850 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19851 to gtk_toolbar_insert.
19852
198532007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19854
19855 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19856
19857 * insdel.c (reset_var_on_error): New fun.
19858 (signal_before_change, signal_after_change):
19859 Use it to reset (after|before)-change-functions to nil in case of error.
19860 Bind inhibit-modification-hooks to t.
19861 Don't bind (after|before)-change-functions to nil while they run.
19862
198632007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19864
19865 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19866 filling pixmap with stippled background.
19867
198682007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19869
19870 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19871 Don't use invisible frame as parent window for repositioning.
19872
198732007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19874
19875 * print.c (new_backquote_output): Rename from old_backquote_output.
19876 (print): Inverse its logic (according to its name) so as to match the
19877 behavior of new_backquote_flag in lread.c.
19878
198792007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19880
19881 * gmalloc.c (posix_memalign): New function.
19882
19883 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19884 ActivateControl/DeactivateControl here.
19885 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19886 frame-notice-user-settings is non-nil.
19887 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19888 for kEventParamFMFontStyle.
19889 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19890 mac_pass_command_to_system and mac_pass_control_to_system here.
19891 (XTread_socket): Call ActivateControl/DeactivateControl here.
19892 (XTread_socket) [TARGET_API_MAC_CARBON]:
19893 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19894 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19895 for window repositioning.
19896
198972007-08-08 Glenn Morris <rgm@gnu.org>
19898
19899 * Replace `iff' in doc-strings and comments.
19900
199012007-08-07 Chong Yidong <cyd@stupidchicken.com>
19902
19903 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19904
199052007-08-07 Martin Rudalics <rudalics@gmx.at>
19906
19907 * fileio.c (Finsert_file_contents): Run format-decode and
19908 after_insert_file_functions on entire buffer when REPLACE is
19909 non-nil and inhibit modification_hooks and point_motion_hooks.
19910 For consistency, run after_insert_file_functions iff something
19911 got inserted. Move signal_after_change and update_compositions
19912 after code running after_insert_file_functions. Make sure that
19913 undo_list doesn't record intermediate steps of the decoding process.
19914
199152007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19916
19917 * emacs.c (main)
19918 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19919 Call malloc_enable_thread on interactive startup.
19920
19921 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19922 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19923 [USE_PTHREAD]: Conditionalize with it.
19924 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19925 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19926 New functions.
19927
199282007-08-06 Chong Yidong <cyd@stupidchicken.com>
19929
19930 * xdisp.c (redisplay_window): When restoring original buffer
19931 position, make sure it is still valid.
19932
19933 * image.c (png_load): Ignore png-supplied background color.
19934
199352007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19936
19937 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19938 Use kCFAbsoluteTimeIntervalSince1970.
19939
19940 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19941 New variable.
19942 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19943 event loop should be quit.
19944 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19945 Quit dialog event loop if quit_dialog_event_loop is set.
19946
19947 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19948 (Selection): New typedef. Use instead of ScrapRef.
19949 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19950 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19951 (mac_clear_selection): Rename from clear_scrap.
19952 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19953 scrap_has_target_type. All uses changed.
19954 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19955 (mac_selection_has_target_p): New functions.
19956 (mac_put_selection_value): Rename from put_scrap_string.
19957 (mac_get_selection_value): Rename from get_scrap_string.
19958 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19959 (put_scrap_private_timestamp, scrap_has_target_type)
19960 (get_scrap_private_timestamp): Remove functions.
19961 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19962 (x_own_selection, x_get_local_selection):
19963 Use mac_valid_selection_value_p.
19964 (x_own_selection): Don't use put_scrap_private_timestamp.
19965 Record OWNERSHIP-INFO into Vselection_alist instead.
19966 (x_get_local_selection): Don't check type if request is local.
19967 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19968 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19969
199702007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19971
19972 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19973 add comment explaining why.
19974
199752007-08-03 Richard Stallman <rms@gnu.org>
19976
19977 * fileio.c (Fvisited_file_modtime): Use make_time.
19978
199792007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19980
19981 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19982 build.
19983
199842007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19985
19986 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19987
199882007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19989
19990 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19991
199922007-07-30 Richard Stallman <rms@gnu.org>
19993
19994 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19995
199962007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19997
19998 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19999
200002007-07-28 Nick Roberts <nickrob@snap.net.nz>
20001
20002 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20003 remote default-directory.
20004
20005 * buffer.c (mode-line-format): Update doc string.
20006
200072007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20008
20009 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20010 scroll bar gap.
20011 (x_scroll_bar_create): Set bar->fringe_extended_p.
20012 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20013 on frame edge. Check fringe background extension. Don't clear
20014 extended fringe background area.
20015
20016 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20017 (w32_fill_area): Enclose multiple statements with do ... while (0).
20018
20019 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20020 Extend fringe background to scroll bar gap.
20021 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20022 Set bar->fringe_extended_p.
20023 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20024 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20025 background extension. Don't clear extended fringe background area.
20026
20027 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20028 New member fringe_extended_p.
20029
200302007-07-25 Glenn Morris <rgm@gnu.org>
20031
20032 * Relicense all FSF files to GPLv3 or later.
20033
20034 * COPYING: Switch to GPLv3.
20035
200362007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20037
20038 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20039
20040 * data.c (Finteractive_form): Check for the presence of an
20041 `interactive-form' symbol property more thoroughly.
20042
20043 * data.c (Finteractive_form): Use an `interactive-form' property if
20044 present, analogous to the function-documentation property.
20045
200462007-07-24 Jason Rumney <jasonr@gnu.org>
20047
20048 * w32fns.c (x_real_positions): Get real position from OS instead of
20049 calculating it.
20050
200512007-07-23 Jason Rumney <jasonr@gnu.org>
20052
20053 * filelock.c (current_lock_owner): Allow for @ sign in username.
20054
200552007-07-22 Nick Roberts <nickrob@snap.net.nz>
20056
20057 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20058 remote default-directory.
20059
20060 * buffer.c (mode-line-format): Describe above case in doc string.
20061
200622007-07-20 Eli Zaretskii <eliz@gnu.org>
20063
20064 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20065 Define if not defined.
20066
200672007-07-18 Jason Rumney <jasonr@gnu.org>
20068
20069 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20070
200712007-07-18 Richard Stallman <rms@gnu.org>
20072
20073 * data.c (Fsetq_default): Doc fix.
20074
20075 * eval.c (Fsetq): Doc fix.
20076
200772007-07-18 Juanma Barranquero <lekktu@gmail.com>
20078
20079 * coding.c (Ffind_operation_coding_system):
20080 * eval.c (For, Fand): Doc fixes.
20081 Reported by Johan Bockgård.
20082
200832007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20084
20085 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20086
20087 * xterm.h: Declare x_ewmh_activate_frame.
20088
20089 * xterm.c (x_ewmh_activate_frame): New function.
20090 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20091
200922007-07-17 Martin Rudalics <rudalics@gmx.at>
20093
20094 * window.c (Fdisplay_buffer): If largest or LRU window is the
20095 only window, split it even if it is not eligible for splitting.
20096 This restores the original behavior broken by the 2007-07-15
20097 change.
20098
200992007-07-17 Glenn Morris <rgm@gnu.org>
20100
20101 * abbrev.c (abbrev_check_chars): New function.
20102 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20103 Call abbrev_check_chars to check abbrev characters are word
20104 constituents. Doc fix.
20105
201062007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20107
20108 * process.c (Fstart_process, Fmake_network_process)
20109 (read_process_output): Fix up last changes.
20110
201112007-07-16 Eli Zaretskii <eliz@gnu.org>
20112
20113 * makefile.w32-in (clean): Don't delete *~.
20114
201152007-07-16 Andreas Schwab <schwab@suse.de>
20116
20117 * window.c (Fdisplay_buffer): Use NILP.
20118 (Fset_window_scroll_bars): Likewise.
20119
201202007-07-15 Martin Rudalics <rudalics@gmx.at>
20121
20122 * window.c (window_min_size_2): New function.
20123 (window_min_size_1, size_window, Fdisplay_buffer)
20124 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20125 windows without mode- or header-lines when window-min-height is
20126 too small.
20127 (size_window): Reset nodelete_p after testing it, following an
20128 earlier note by Kim F. Storm.
20129 (display_buffer): Do not set split_height_threshold to twice the
20130 value of window_min_height to avoid changing the value of a
20131 customizable variable. Rather explicitly check whether the
20132 height of the window that shall be splitted is at least as large
20133 as split_height_threshold.
20134 (Fwindow_full_width_p): New defun.
20135 (syms_of_window): Defsubr it.
20136
20137 * window.h: Add EXFUN for Fwindow_full_width_p.
20138
201392007-07-14 Jason Rumney <jasonr@gnu.org>
20140
20141 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20142
201432007-07-14 Richard Stallman <rms@gnu.org>
20144
20145 * eval.c (maybe_call_debugger): New function.
20146 (find_handler_clause): Use maybe_call_debugger.
20147 Call it when the handler says `debug'.
20148 Eliminate DEBUGGER_VALUE_PTR.
20149 (Fsignal): Eliminate debugger_value.
20150 (Qdebug): New variable.
20151 (syms_of_eval): Initialize it.
20152
201532007-07-14 Juanma Barranquero <lekktu@gmail.com>
20154
20155 * eval.c (Fprogn):
20156 * keyboard.c (Ftrack_mouse):
20157 * print.c (Fwith_output_to_temp_buffer):
20158 * window.c (Fsave_window_excursion): Doc fix.
20159
201602007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20161
20162 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20163
201642007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20165
20166 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20167 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20168 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20169 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20170 Remove unused encoding_carryover.
20171 * process.c: Adjust all functions accordingly.
20172
201732007-07-12 Richard Stallman <rms@gnu.org>
20174
20175 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20176
201772007-07-11 Jason Rumney <jasonr@gnu.org>
20178
20179 * makefile.w32-in (LIBS): Include OLE32.
20180
20181 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20182 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20183
201842007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20185
20186 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20187 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20188 from a Lisp_Object into a bare pointer.
20189 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20190 Adjust the code correspondingly.
20191
20192 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20193
20194 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20195 (term_show_mouse_face): Remove unused var `j'.
20196 (handle_one_term_event): Remove unused vars `i' and `j'.
20197 Don't cast return value of ttyname since it's not necessary.
20198
201992007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20200
20201 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20202 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20203
20204 * fns.c (map_char_table): Use an array of int for `indices' rather than
20205 an array of Lisp_Objects (which are only ever integers anyway).
20206 (Fmap_char_table): Update caller.
20207 * lisp.h: Update prototype.
20208 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20209 * fontset.c (Ffontset_info):
20210 * casetab.c (set_case_table): Update callers.
20211
20212 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20213
20214 * keymap.c (struct accessible_keymaps_data)
20215 (struct where_is_internal_data): New structures.
20216 (accessible_keymaps_1, where_is_internal_1): Use them to change
20217 interface to adhere to the one used by map_keymap.
20218 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20219 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20220
20221 * keymap.h (map_keymap_function_t): More informative prototype.
20222
202232007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20224
20225 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20226 (looking_at_1): Don't change search_regs and last_thing_searched
20227 if `inhibit-changing-match-data' is non-nil.
20228 (string_match_1, search_buffer, set_search_regs): Likewise.
20229 (syms_of_search): Add Lisp level definition for
20230 `inhibit-changing-match-data' and set it to nil.
20231 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20232 start and end of the match, instead of using values in search_regs.
20233
202342007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20235
20236 * minibuf.c (Fcompleting_read): New value `confirm-only'
20237 for `require-match'.
20238
202392007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20240
20241 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20242 part of the 2007-06-27 change to syms_of_fileio.
20243
202442007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20245
20246 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20247 Check WINDOWP before using XWINDOW. Consolidate return statements.
20248
202492007-06-27 Richard Stallman <rms@gnu.org>
20250
20251 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20252
202532007-06-27 Juanma Barranquero <lekktu@gmail.com>
20254
20255 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20256
202572007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20258
20259 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20260 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20261 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20262 (_free_internal, memalign): Use them.
20263 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20264 Initialize to PTHREAD_MUTEX_INITIALIZER.
20265 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20266 (morecore_nolock): Rename from morecore. All uses changed.
20267 Use only nolock versions of internal allocation functions.
20268 (_malloc_internal_nolock, _realloc_internal_nolock)
20269 (_free_internal_nolock): New functions created from
20270 _malloc_internal, _realloc_internal, and _free_internal.
20271 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20272 Copy hook value to automatic variable before its use.
20273 (memalign): Copy hook value to automatic variable before its use.
20274
202752007-06-26 Kenichi Handa <handa@m17n.org>
20276
20277 * coding.c (Ffind_operation_coding_system): Docstring improved.
20278 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20279
202802007-06-25 David Kastrup <dak@gnu.org>
20281
20282 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20283 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20284 cater for additional parameter.
20285
20286 * keymap.h: Adjust number of parameters to `current-active-maps'.
20287
20288 * doc.c (Fsubstitute_command_keys): Adjust call of
20289 `current-active-maps'.
20290
202912007-06-25 David Kastrup <dak@gnu.org>
20292
20293 * callint.c (Fcall_interactively): Make the parsing of interactive
20294 specs somewhat more readable.
20295
202962007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20297
20298 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20299 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20300 if extended background has already been filled.
20301
203022007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20303
20304 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20305 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20306
20307 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20308 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20309 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20310 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20311 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20312 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20313 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20314 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20315 Run timers during dialog popup.
20316 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20317
203182007-06-21 Jason Rumney <jasonr@gnu.org>
20319
20320 * image.c (convert_mono_to_color_image): Swap fore and background.
20321
203222007-06-20 Jason Rumney <jasonr@gnu.org>
20323
20324 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20325 (w32_free_bdf_font): Unmap memory not handle.
20326
203272007-06-20 Sam Steingold <sds@gnu.org>
20328
20329 * gmalloc.c (__morecore): Fix the declaration to comply with the
20330 definition.
20331
203322007-06-20 Juanma Barranquero <lekktu@gmail.com>
20333
20334 * w32term.c (w32_delete_display): Remove leftover declaration.
20335 (w32_define_cursor, w32_initialize): Make static.
20336
20337 * w32.c (_wsa_errlist): Fix typo in error message.
20338 (init_environment): Ignore any environment variable from the
20339 registry having a null value.
20340
203412007-06-20 Glenn Morris <rgm@gnu.org>
20342
20343 * Makefile.in (LIBGIF): Default to -lgif.
20344
203452007-06-17 Jason Rumney <jasonr@gnu.org>
20346
20347 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20348 unicode strings.
20349
203502007-06-16 Juanma Barranquero <lekktu@gmail.com>
20351
20352 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20353 Fix typo in docstring.
20354
203552007-06-16 Eli Zaretskii <eliz@gnu.org>
20356
20357 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20358 and their keybindings.
20359
203602007-06-15 Chong Yidong <cyd@stupidchicken.com>
20361
20362 * composite.c (update_compositions): Fix last fix.
20363
203642007-06-14 Jason Rumney <jasonr@gnu.org>
20365
20366 * w32.c (get_process_times_fn): New function pointer.
20367 (globals_of_w32): Intialize it if present in kernel32.dll.
20368 (w32_get_internal_run_time): New function.
20369
20370 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20371
203722007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20373
20374 * composite.c (update_compositions): Check the validness of
20375 compositions.
20376
203772007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20378
20379 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20380 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20381
20382 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20383 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20384
20385 * macgui.h (USE_MAC_TOOLBAR): New define.
20386
20387 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20388 Return immediately unless popup is activated.
20389
20390 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20391 background to scroll bar gap.
20392 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20393 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20394 scroll bars on frame edge. Check fringe background extension.
20395 Don't clear extended fringe background area.
20396 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20397 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20398 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20399 [USE_MAC_TOOLBAR]: New macros.
20400 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20401 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20402 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20403 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20404 [USE_MAC_TOOLBAR]: New functions.
20405 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20406 manually if previous repositioning has failed.
20407 (mac_handle_keyboard_event): Use precomputed event kind.
20408 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20409 as tool bar item click. Handle mouse movement over tool bar items.
20410
20411 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20412 toolbar_win_gravity.
20413 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20414 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20415 Add externs.
20416
20417 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20418 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20419
204202007-06-14 Chong Yidong <cyd@stupidchicken.com>
20421
20422 * image.c (search_image_cache): Remove unused variable.
20423
204242007-06-13 Chong Yidong <cyd@stupidchicken.com>
20425
20426 * xfns.c, xmenu.c: Link to xaw3d if available.
20427
204282007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20429
20430 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20431 frame_foreground and frame_background.
20432
20433 * image.c (lookup_image): Save frame foreground and background colors.
20434 (search_image_cache): Check if saved and current frame colors match.
20435
204362007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20437
20438 * regex.c (regex_compile): Remove the `regnum' counter.
20439 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20440
204412007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20442
20443 * term.c: Include intervals.h to declare Fget_text_property.
20444
204452007-06-10 Jason Rumney <jasonr@gnu.org>
20446
20447 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20448
204492007-06-08 Juanma Barranquero <lekktu@gmail.com>
20450
20451 * callint.c (Fcall_interactively):
20452 * editfns.c (Fdelete_and_extract_region):
20453 * fileio.c (Fread_file_name):
20454 * fns.c (Fmapconcat):
20455 * keyboard.c (cmd_error_internal):
20456 * keymap.c (Fkey_description):
20457 * lread.c (openp):
20458 * minibuf.c (read_minibuf):
20459 * search.c (wordify):
20460 * sunfns.c (sel_read):
20461 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20462 * xfns.c (x_default_scroll_bar_color_parameter):
20463 * xmenu.c (menu_help_callback):
20464 * xselect.c (Fx_get_atom_name):
20465 * xterm.c (x_term_init): Use empty_unibyte_string.
20466
204672007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20468
20469 * alloc.c (init_strings): Initialize canonical empty strings.
20470 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20471 canonical empty string when the requested size is 0.
20472
20473 * emacs.c (empty_unibyte_string): Rename from empty_string.
20474 (empty_multibyte_string): New canonical empty string.
20475 (syms_of_emacs): Don't initialize empty_string.
20476
20477 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20478 string, if appropriate.
20479 (empty_unibyte_string, empty_multibyte_string): New externs.
20480 (empty_string): Remove extern.
20481
20482 * lread.c (syms_of_lread): Use empty_unibyte_string.
20483
204842007-06-07 Jason Rumney <jasonr@gnu.org>
20485
20486 * s/ms-w32.h: Don't define HAVE_TZNAME.
20487
20488 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20489
204902007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20491
20492 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20493
20494 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20495 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20496
20497 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20498 Don't call next handler.
20499 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20500 Remove argument. Install handler to application.
20501 (set_frame_menubar): Don't change deep_p.
20502 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20503 FRAME_OUTER_TO_INNER_DIFF_Y.
20504 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20505 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20506 [HAVE_DIALOGS]: New macros.
20507 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20508 Use them.
20509 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20510
20511 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20512 init_service_handler. All callers changed. Return OSStatus value.
20513
20514 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20515 All callers changed so as not to call SetPortWindowPort.
20516 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20517 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20518 mac_draw_string_common.
20519 (mac_draw_image_string_qd): Likewise.
20520 (mac_draw_string_common): Use them. Add INLINE.
20521 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20522 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20523 GetGlobalMouse.
20524 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20525 and FRAME_OUTER_TO_INNER_DIFF_Y.
20526 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20527 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20528 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20529 repositioning window to mac_handle_window_event.
20530 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20531 saving window location to mac_handle_window_event
20532 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20533 (install_menu_target_item_handler): Remove argument in extern.
20534 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20535 Also accept command events.
20536 (do_keystroke): New function created from XTread_socket.
20537 (init_command_handler): Remove functions.
20538 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20539 and save window location by kEventWindowShowing and kEventWindowHiding
20540 handlers here. Don't call next handler for window state change and
20541 focus events.
20542 (mac_handle_application_event, mac_handle_keyboard_event)
20543 [TARGET_API_MAC_CARBON]: New functions.
20544 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20545 kEventWindowShowing and kEventWindowHiding events. Move installation
20546 of mouse, font, text input and menu target item handlers to
20547 install_application_handler.
20548 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20549 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20550 New function.
20551 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20552 Register it.
20553 (XTread_socket) [TARGET_API_MAC_CARBON]:
20554 Consolidate SendEventToEventTarget calls.
20555 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20556 Move application activation handler to mac_handle_application_event.
20557 Move keyboard handler to mac_handle_keyboard_event.
20558 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20559 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20560 init_command_handler. Call install_application_handler.
20561
20562 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20563 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20564
205652007-06-07 Glenn Morris <rgm@gnu.org>
20566
20567 * emacs.c (main): Use `emacs-copyright' in --version output.
20568
205692007-06-06 Chong Yidong <cyd@stupidchicken.com>
20570
20571 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20572
205732007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20574
20575 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20576
20577 * macgui.h: Replace WindowPtr with WindowRef.
20578
20579 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20580 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20581 Replace ControlHandle with ControlRef.
20582 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20583
20584 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20585 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20586 Replace ControlHandle with ControlRef.
20587 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20588 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20589
20590 * macterm.h (struct scroll_bar): Rename member control_handle_low
20591 and control_handle_high to control_ref_low and control_ref_high.
20592 All uses changed.
20593 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20594 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20595 respectively. All uses changed.
20596 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20597 (install_window_handler, remove_window_handler): Replace WindowPtr
20598 with WindowRef in externs.
20599
206002007-06-05 Juanma Barranquero <lekktu@gmail.com>
20601
20602 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20603
206042007-06-03 Nick Roberts <nickrob@snap.net.nz>
20605
20606 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20607
20608 * frame.c (Fmouse_position, Fmouse_pixel_position):
20609 Condition on HAVE_GPM too.
20610
20611 * term.c (term_mouse_highlight): Remove unused variables.
20612 (Fterm_open_connection): Set gpm_zerobased to 1.
20613 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20614 Use zero based co-ordinates.
20615 (handle_one_term_event): Report a drag as mouse movement too.
20616
20617 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20618
206192007-06-03 Chong Yidong <cyd@stupidchicken.com>
20620
20621 * image.c (search_image_cache): New function. Require background
20622 color match if background color is unspecified in the image spec.
20623 (uncache_image, lookup_image): Use it.
20624
206252007-06-01 Juanma Barranquero <lekktu@gmail.com>
20626
20627 * window.c (Fshrink_window): Reflow docstring.
20628
206292007-06-02 Chong Yidong <cyd@stupidchicken.com>
20630
20631 * Version 22.1 released.
20632
206332007-06-01 Richard Stallman <rms@gnu.org>
20634
20635 * xfns.c (x_encode_text): Add GCPRO.
20636
206372007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20638
20639 * xfns.c (x_set_name_internal): Save encoded name before
20640 x_encode_text in case string data is relocated.
20641
206422007-05-31 Richard Stallman <rms@gnu.org>
20643
20644 * buffer.c (syms_of_buffer): Doc fix.
20645
206462007-05-30 Nick Roberts <nickrob@snap.net.nz>
20647
20648 * sysdep.c (init_sys_modes): Add rather than replace with
20649 O_NONBLOCK.
20650
20651 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20652 term_mouse_moveto.
20653
20654 * termhooks.h (term_mouse_moveto): New extern.
20655
20656 * term.c (mouse_face_window): Rename...
20657 (Qmouse_face_window): ...to this.
20658 (term_show_mouse_face, term_clear_mouse_face)
20659 (term_mouse_highlight): Use Qmouse_face_window.
20660 (term_mouse_moveto): New function.
20661 (term_mouse_position): Make it work.
20662 (syms_of_term): Uncomment assignment to mouse_position_hook.
20663 Staticpro Qmouse_face_window.
20664
206652007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20666
20667 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20668 around current_column call.
20669
206702007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20671
20672 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20673 * xdisp.c (next_element_from_buffer):
20674 * window.c (delete_window):
20675 * term.c (term_mouse_highlight):
20676 * msdos.c (getdefdir):
20677 * macterm.c (mac_create_bitmap_from_bitmap_data)
20678 (init_font_name_table):
20679 * fns.c (Fsxhash):
20680 * data.c (Fmake_local_variable):
20681 * ccl.c (ccl_driver): Likewise.
20682
206832007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20684
20685 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20686 Call mac_wakeup_from_rne on window size change.
20687
206882007-05-25 Chong Yidong <cyd@stupidchicken.com>
20689
20690 * image.c (uncache_image): Fix typo.
20691
206922007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20693
20694 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20695
206962007-05-22 Richard Stallman <rms@gnu.org>
20697
20698 * xterm.c (x_connection_closed): Remove NO_RETURN.
20699
207002007-05-22 Martin Rudalics <rudalics@gmx.at>
20701
20702 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20703
207042007-05-21 Chong Yidong <cyd@stupidchicken.com>
20705
20706 * image.c (uncache_image): New function.
20707 (Fimage_refresh): New function.
20708
207092007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20710
20711 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20712
207132007-05-20 Nick Roberts <nickrob@snap.net.nz>
20714
20715 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20716 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20717
207182007-05-20 Nick Roberts <nickrob@snap.net.nz>
20719
20720 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20721 conditional on [HAVE_GPM_H].
20722
207232007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20724
20725 * syntax.c (skip_chars): Update syntax-table only after we checked that
20726 the new location is valid.
20727
207282007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20729
20730 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20731 mac_get_window_bounds.
20732
207332007-05-20 Nick Roberts <nickrob@snap.net.nz>
20734
20735 * Makefile.in (LIBGPM): Allow it to be set from configure.
20736 If set then link Emacs with it.
20737
20738 * config.in: Regenerate.
20739
20740 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20741 New externs.
20742
20743 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20744 Include gpm.h.
20745 (handle_one_term_event, term_gpm): New externs.
20746
20747 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20748 and allow it to be interrupted by SIGIO.
20749
20750 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20751 (wait_reading_process_output): Wait on gpm_fd too.
20752 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20753 (add_gpm_wait_descriptor_called_flag): New variable.
20754 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20755
20756 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20757 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20758 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20759 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20760 (make_lispy_event): Add case GPM_CLICK_EVENT.
20761 (read_avail_input): Handle mouse input.
20762
20763 * term.c (write_glyphs_with_face): New function.
20764 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20765 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20766 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20767 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20768 (last_mouse_x, last_mouse_y): New variables.
20769 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20770 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20771 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20772 (Fterm_close_connection): New functions.
20773 (term_init): Initialise mouse_face_window.
20774
207752007-05-19 Chong Yidong <cyd@stupidchicken.com>
20776
20777 * xdisp.c (redisplay_window): If first window line is a
20778 continuation line, recompute the new window start instead of
20779 recentering.
20780
207812007-05-18 Glenn Morris <rgm@gnu.org>
20782
20783 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20784 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20785
207862007-05-17 Glenn Morris <rgm@gnu.org>
20787
20788 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20789
207902007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20791
20792 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20793 dead key repeat and up events.
20794
207952007-05-14 Chong Yidong <cyd@stupidchicken.com>
20796
20797 * image.c (pbm_load): Check image size for monochrome pbm.
20798
207992007-05-13 Chong Yidong <cyd@stupidchicken.com>
20800
20801 * xterm.c (XTread_socket): Revert last change.
20802
208032007-05-12 Chong Yidong <cyd@stupidchicken.com>
20804
20805 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20806
20807 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20808
208092007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20810
20811 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20812 mixup (YAILOM).
20813
208142007-05-07 Andreas Schwab <schwab@suse.de>
20815
20816 * keymap.c (Flookup_key): Fix typo in last change.
20817
208182007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20819
20820 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20821 mapping for unibyte strings.
20822
208232007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20824
20825 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20826 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20827
208282007-04-29 Richard Stallman <rms@gnu.org>
20829
20830 * insdel.c (replace_range): For undo, record insertion first.
20831
208322007-04-29 Andreas Schwab <schwab@suse.de>
20833
20834 * lisp.h (VECSIZE): Use OFFSETOF.
20835
208362007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20837
20838 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20839 disabled lines.
20840
208412007-04-28 Richard Stallman <rms@gnu.org>
20842
20843 * lread.c (read_escape): In a string, \s is always space.
20844
208452007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20846
20847 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20848
20849 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20850 submenu for menu bar items.
20851
20852See ChangeLog.10 for earlier changes.
20853
20854;; Local Variables:
20855;; coding: utf-8
20856;; add-log-time-zone-rule: t
aac0c6e3
MR
20857;; End:
20858
76b6f707 20859 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20860
20861 This file is part of GNU Emacs.
20862
20863 GNU Emacs is free software: you can redistribute it and/or modify
20864 it under the terms of the GNU General Public License as published by
20865 the Free Software Foundation, either version 3 of the License, or
20866 (at your option) any later version.
20867
20868 GNU Emacs is distributed in the hope that it will be useful,
20869 but WITHOUT ANY WARRANTY; without even the implied warranty of
20870 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20871 GNU General Public License for more details.
20872
20873 You should have received a copy of the GNU General Public License
20874 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20875
20876;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40