(Man-completion-table): New function.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e8e14166
YM
12009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4
5 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6
86677b58
GM
72009-11-24 Glenn Morris <rgm@gnu.org>
8
9 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
10
581e51e8
JD
112009-11-23 Jan Djärv <jan.h.d@swipnet.se>
12
cfc86c7a
JD
13 * Makefile.in: Must create deps for ecrt0.o in its rule.
14
581e51e8
JD
15 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
16 because that is what Gtk+ font dialog understands.
17
18 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
19 of Fcopy_sequence.
20 (font_open_by_name): Put name given into QCname for font-object returned.
21
22 * frame.c (x_set_font): Save original font name as frame parameter
23 font-parameter.
24
25 * xsettings.c (set_default_xft_settings): New function.
26 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
27 is found.
28
8b264ecb
AS
292009-11-22 Andreas Schwab <schwab@linux-m68k.org>
30
31 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
32 searching backwards through multibyte buffer.
33
872870b2
JD
342009-11-21 Jan Djärv <jan.h.d@swipnet.se>
35
36 * xterm.c: #include xgselect.h.
37 (x_initialize): Call xgselect_initialize.
38
39 * xsettings.c (something_changedCB): C++ comments => C comments.
40 (init_gconf): Do not deal with any GLib file descriptors, xg_select
41 does that now.
42
43 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
44 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
45 (scroll_bar_button_cb): Remove.
46 (create_menus): C++ comments => C comments. Don't bind grab-notify
47 event.
48 (xg_create_scroll_bar): Don't bind button-press-event and
49 button-release-event.
50
51 * process.c: Include xgselect.h if defined (USE_GTK) ||
52 defined (HAVE_GCONF).
53 (wait_reading_process_output): Call xg_select for the same condition.
54
55 * xgselect.c (xg_select): New function to better integrate with
56 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
57
58 * xgselect.h: New file, declare xg_select, xgselect_initialize.
59
60 * Makefile.in (XOBJ): Add xgselect.o.
61
62a6e103
AS
622009-11-21 Andreas Schwab <schwab@linux-m68k.org>
63
64 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
65 ignored second argument. All callers changed.
66 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
67 (RE_STRING_CHAR_AND_LENGTH): Likewise.
68 * xdisp.c (string_char_and_length): Likewise.
69
b0ca0f33
DN
702009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
71
72 * xterm.c (x_new_font):
73 * print.c (print_object):
74 * cmds.c (Fself_insert_command): Move declarations before statements.
75
dd5a6279
CY
762009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
77
78 * s/cygwin.h: Remove unneeded linker flags.
79
4a8e097d
JD
802009-11-20 Jan Djärv <jan.h.d@swipnet.se>
81
0d1d0d26
JD
82 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
83
84 * xsettings.h: Declare xsettings_get_system_font.
85
86 * xsettings.c (xsettings_get_system_font): New function.
87 (init_gconf): No use initiating gconf unless we have Xft also.
88 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
89 HAVE_GCONF.
90
4a8e097d
JD
91 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
92 add a blank entry so it doesn't collapse into nothing.
93
8ab1650e
SM
942009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
95
96 * lread.c (Funintern): Comment out last change.
97
82c602f0
RS
982009-11-19 Richard Stallman <rms@gnu.org>
99
100 * lread.c (Funintern): Error if symbol is t or nil.
101
87e32266
SM
1022009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
103
104 * insdel.c (make_gap_larger): Don't make as many assumptions about the
105 representation of Lisp integers.
106 Reported by MJ Chan <mjchan.inbox@gmail.com>.
107
1b9ac145
AS
1082009-11-17 Andreas Schwab <schwab@linux-m68k.org>
109
110 * lisp.h: Remove declaration of Ffont_get_system_font.
111 * xfns.c: Move include of "xsettings.h".
112 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
113
dfb3c4c6
JD
1142009-11-17 Jan Djärv <jan.h.d@swipnet.se>
115
87e32266
SM
116 * xsettings.c (something_changedCB, Ffont_get_system_font):
117 Check use_system_font.
dfb3c4c6
JD
118 (syms_of_xsettings): DEFVAR font-use-system-font.
119
9370c1d8
AS
1202009-11-17 Andreas Schwab <schwab@linux-m68k.org>
121
25fe851a
AS
122 * xfns.c (x_default_font_parameter): Remove dead assignment.
123
9370c1d8
AS
124 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
125
637fa988
JD
1262009-11-17 Jan Djärv <jan.h.d@swipnet.se>
127
87e32266 128 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 129 not have FC_LCD_*. #define them if not there.
a6eb20d8 130
87e32266 131 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 132
637fa988
JD
133 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
134
135 * xterm.c (handle_one_xevent): Call xft_settings_event for
136 ClientMessage, PropertyNotify and DestroyNotify.
137 (x_term_init): If we have XFT, get DPI from Xft.dpi.
138 Call xsettings_initialize.
139
140 * xftfont.c (xftfont_fix_match): New function.
141 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
142 Call xftfont_fix_match after XftFontMatch.
143
144 * xfont.c (xfont_driver): Initialize all members.
145
87e32266
SM
146 * xfns.c (x_default_font_parameter):
147 Try font from Ffont_get_system_font.
637fa988
JD
148 Do not get font from x_default_parameter if we got one from
149 Ffont_get_system_font.
87e32266 150 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
151
152 * w32font.c (w32font_driver): Initialize all members.
153
154 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
155
156 * lisp.h: Declare syms_of_xsettings.
157
87e32266
SM
158 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
159 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
160
161 * ftfont.c (ftfont_filter_properties): New function.
162
163 * frame.c (x_set_font): Remove unused variable lval.
164
87e32266 165 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
166
167 * font.c (font_put_extra): Don't return if val is nil, it means
168 boolean option is off.
169 (font_parse_fcname): Collect all extra properties in extra_props
170 and call filter_properties for all drivers with extra_props and
171 font as parameter.
87e32266
SM
172 (font_open_entity): Do not use cache, it does not pick up new
173 fontconfig settings like hinting.
637fa988
JD
174 (font_load_for_lface): If spec had a name in it, store it in entity.
175
176 * emacs.c (main): Call syms_of_xsettings
177
178 * config.in: HAVE_GCONF is new.
179
180 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
181 xsettings.o is new.
182
5a942932
KH
1832009-11-17 Kenichi Handa <handa@m17n.org>
184
185 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
186 back to the default font in case that no suitable font is found.
187
b7c7a4d1
SM
1882009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
189
190 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
191 Suggested by Chad Brown <yandros@mit.edu>.
192 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
193
072f1e39
JD
1942009-11-16 Jan Djärv <jan.h.d@swipnet.se>
195
196 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
197
5d1e70a2
AS
1982009-11-14 Andreas Schwab <schwab@linux-m68k.org>
199
87e32266 200 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 201
a53cfbe5
JD
2022009-11-14 Jan Djärv <jan.h.d@swipnet.se>
203
473a99b7
JD
204 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
205 has a parent.
206
a53cfbe5
JD
207 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
208 dependency files in deps/. Include those files into Makefile.
209
210 * config.in: Generated (AUTO_DEPEND).
211
f04bb9b2
MA
2122009-11-13 Michael Albinus <michael.albinus@gmx.de>
213
b7c7a4d1 214 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
215 Vdbus_registered_functions_table, because it contains also
216 properties. Fix docstring.
b7c7a4d1 217 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 218
8f11f7ec
SM
2192009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
220
221 * alloc.c (mark_object): Don't reprocess marked strings.
222 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
223 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
224
8a605fe8
KH
2252009-11-13 Kenichi Handa <handa@m17n.org>
226
8f11f7ec 227 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
228 semantics of Vword_combining_categories.
229 (Vword_combining_categories): Describe the slight change of the
230 semantics.
231
241c4680
EZ
2322009-11-13 Eli Zaretskii <eliz@gnu.org>
233
234 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
235
236 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
237
5d58e44c
SM
2382009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * xdisp.c (syms_of_xdisp): Fix typo in last change.
241
5e13f9d3
JB
2422009-11-12 Juanma Barranquero <lekktu@gmail.com>
243
244 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
245
cf54c754
DR
2462009-11-11 David Reitter <david.reitter@gmail.com>
247
248 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
249 variables to fix 2009-11-09 change.
250
a4ada374
DN
2512009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
252
91433552
DN
253 * process.c (ifflag_def): Make flag_sym constant.
254 (Fnetwork_interface_info): Use a constant pointer.
255 (ifflag_table):
256 * xfns.c (cursor_bits):
257 * xdisp.c (power_letter):
258 * termcap.c (speeds, esctab):
259 * sysdep.c (baud_convert):
260 * keyboard.c (lispy_accent_codes, modifier_names):
261 * image.c (xbm_format, xpm_format, pbm_format, png_format)
262 (jpeg_format, tiff_format, gif_format, svg_format)
263 (interlace_start, interlace_increment, gs_format):
264 * gtkutil.c (separator_names):
265 * fringe.c (swap_nibble):
266 * fns.c (base64_value_to_char, base64_char_to_value):
267 * fileio.c (make_temp_name_tbl):
268 * coding.c (suffixes): Make constant.
269
f4265f6c
DN
270 * frame.c (make_initial_frame):
271 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
272 build_string.
273 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
274
04420943
DN
275 * s/freebsd.h:
276 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
277
0a5d24ae
DN
278 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
279 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
280
a4ada374
DN
281 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
282 * xterm.c (syms_of_xterm):
283 * xfaces.c (syms_of_xfaces):
284 * xdisp.c (syms_of_xdisp):
285 * lread.c (syms_of_lread):
286 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
287 build_string.
91433552 288
a4ada374
DN
289 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
290
af98fc7f
SM
2912009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
292
8ab1650e 293 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 294
e90292a9
JD
2952009-11-10 Jan Djärv <jan.h.d@swipnet.se>
296
297 * keyboard.h: Declare timer_check.
298
299 * keyboard.c (timer_check_2): New function that does what the old
300 timer_check did.
301 (timer_check): Call timer_check_2 until -1 or a non-zero time is
302 returned, i.e. don't return -1 with timers pending.
303
304 * process.c: Remove extern declaration of timer_check.
305
306 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
307 even if timer_check returned -1.
308
af98fc7f
SM
309 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
310 xg_dialog_data.
e90292a9
JD
311 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
312 the event loop.
313 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
314 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
315 Destroy the dialog after xg_dialog_run.
316
045b83c0
SM
3172009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
318
319 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
320
1fb99a3a
JD
3212009-11-10 Jan Djärv <jan.h.d@swipnet.se>
322
323 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
324
04e452cb
JB
3252009-11-09 Juanma Barranquero <lekktu@gmail.com>
326
327 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
328
ef7417fd
SM
3292009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
330
331 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
332 w32menu.c, and nsmenu.m.
333 Simplify the obsolete case where position is nil.
334 (cleanup_popup_menu): New function, moved from nsmenu.m.
335 (struct skp): Remove slot `notreal'.
336 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
337 adjust callers.
338 (single_menu_item): Adjust call to parse_menu_item.
339 (syms_of_menu): Defsubr x-popup-menu.
340 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
341 (keymap_panes): Don't export any more.
342 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
343 (xmenu_show): Declare.
344 * keyboard.c (parse_menu_item): Remove arg `notreal'.
345 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
346 * keyboard.h (parse_menu_item): Update declaration.
347 * xmenu.c (Fx_popup_menu): Remove.
348 (syms_of_xmenu): Don't defsubr x-popup-menu.
349 * w32menu.c (Fx_popup_menu): Remove.
350 (syms_of_w32menu): Don't defsubr x-popup-menu.
351 * nsmenu.m (cleanup_popup_menu): Remove.
352 (ns_menu_show): Rename from ns_popup_menu and remove all the code
353 moved to menu.c's Fx_popup_menu.
354 (Fx_popup_menu): Remove.
355 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
356 menu_items (it's done in menu.c already).
357
424d6179
SM
3582009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
359
360 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
361 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
362
c0df13a6 3632009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
364
365 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 366 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
367 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
368 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
369
2de9f71c
SM
3702009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
371
372 Let integers use up 2 tags to give them one extra bit and thus double
373 their range.
374 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
375 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
376 New macros.
377 (enum Lisp_Type): Use them. Give explicit values.
378 (Lisp_Type_Limit): Remove.
379 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
380 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
381 Pay attention to USE_2_TAGS_FOR_INTS.
382 (INTEGERP): Use LISP_INT_TAG_P.
383 * fns.c (internal_equal): Simplify the default case.
384 (sxhash): Use case_Lisp_Int.
385 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
386 any more.
387 (Ftype_of): Use case_Lisp_Int.
388 (store_symval_forwarding): Take into account the fact that Ints can
389 now have more than one tag.
390 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
391 buffer_slot_type_mismatch):
392 * xfaces.c (face_attr_equal_p):
393 * print.c (print_object):
394 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
395 Use case_Lisp_Int.
396
323637a2
EZ
3972009-11-06 Eli Zaretskii <eliz@gnu.org>
398
7ac65b38
EZ
399 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
400
323637a2
EZ
401 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
402 warning.
403
e511451f
JD
4042009-11-06 Jan Djärv <jan.h.d@swipnet.se>
405
406 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
407
408 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
409
410 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
411 ButtonPressRelease and MotionNotify (bug#4870).
412
5e2327cf
DN
4132009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
414
5adc433e
DN
415 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
416
d67b4f80
DN
417 * xterm.c (syms_of_xterm):
418 * xselect.c (syms_of_xselect):
419 * xmenu.c (syms_of_xmenu):
420 * xfns.c (syms_of_xfns):
421 * xfaces.c (syms_of_xfaces):
422 * xdisp.c (syms_of_xdisp):
423 * window.c (syms_of_window):
424 * w32fns.c (syms_of_w32fns):
425 * undo.c (syms_of_undo):
426 * textprop.c (syms_of_textprop):
427 * terminal.c (syms_of_terminal):
428 * syntax.c (syms_of_syntax):
429 * sound.c (syms_of_sound):
430 * search.c (syms_of_search):
431 * print.c (syms_of_print):
432 * minibuf.c (syms_of_minibuf):
433 * macros.c (syms_of_macros):
434 * keymap.c (syms_of_keymap, initial_define_key)
435 (initial_define_lispy_key):
436 * keyboard.c (syms_of_keyboard):
437 * insdel.c (syms_of_insdel):
438 * image.c (syms_of_image):
439 * fringe.c (syms_of_fringe):
440 * frame.c (syms_of_frame):
441 * fontset.c (syms_of_fontset):
442 * fns.c (syms_of_fns):
443 * fns.c (syms_of_fns):
444 * fileio.c (syms_of_fileio):
445 * fileio.c (syms_of_fileio):
446 * eval.c (syms_of_eval):
447 * doc.c (syms_of_doc):
448 * dispnew.c (syms_of_display):
449 * dired.c (syms_of_dired):
450 * dbusbind.c (syms_of_dbusbind):
451 * data.c (syms_of_data):
452 * composite.c (syms_of_composite):
453 * coding.c (syms_of_coding):
454 * cmds.c (syms_of_cmds):
455 * charset.c (define_charset_internal, syms_of_character):
456 * ccl.c (syms_of_ccl):
457 * category.c (syms_of_category, init_category_once):
458 * casetab.c (syms_of_casetab):
459 * casefiddle.c (syms_of_casefiddle):
460 * callint.c (syms_of_callint):
461 * bytecode.c (syms_of_bytecode):
462 * buffer.c (keys_of_buffer, syms_of_buffer):
463 * alloc.c (syms_of_alloc):
464 * process.c (syms_of_process, init_process):
465 * lread.c (syms_of_lread, init_obarray):
466 * font.c (build_style_table):
467 * emacs.c (syms_of_emacs, main): Replace calls to intern with
468 intern_c_string, calls to make_pure_string with
469 make_pure_c_string. Use pure_cons instead of Fcons.
470
5e2327cf
DN
471 * process.c (socket_options): Make it const.
472 (set_socket_option, init_process): Use a const pointer.
473
474 * lread.c (intern_c_string): New function.
475 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
476 (defvar_int): Uset it. Make the name const char*.
477
478 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
479 (defvar_int): Update prototypes.
480 (DEFUN, EXFUN): Support for prototypes is now required.
481 (intern_c_string): New prototype.
482 (struct Lisp_Subr): Make symbol_name constant.
483
484 * font.c (struct table_entry): Remove unused member. Make NAMES
485 constant.
486 (weight_table, slant_table, width_table): Make constant.
487
488 * emacs.c (struct standard_args): Make name and longname constant.
489
490 * character.h (DEFSYM): Use intern_c_string.
491
a56eaaef
DN
4922009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
493
494 * alloc.c (make_pure_c_string): New function.
495
496 * eval.c (Fautoload): Purecopy all arguments.
497
f6a07420
KH
4982009-11-05 Kenichi Handa <handa@m17n.org>
499
500 * fileio.c (Finsert_file_contents): Be sure set coding-system of
501 the buffer in case of replace.
502
5d28d4b1
DN
5032009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
504
505 * puresize.h (BASE_PURESIZE): Increase to 1620000.
506
b349d111
SM
5072009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
508
d528b1ce
SM
509 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
510 when applicable (bug#4851).
511
b349d111
SM
512 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
513 (P_): Support for prototypes is now required.
514
c38eb027
CY
5152009-10-31 Chong Yidong <cyd@stupidchicken.com>
516
517 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
518 (Bug#4827).
519
0405f8d9
EZ
5202009-10-30 Eli Zaretskii <eliz@gnu.org>
521
d528b1ce 522 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 523
ca0a881a
DN
5242009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
525
526 * puresize.h (BASE_PURESIZE): Increase to 1470000.
527
d528b1ce
SM
528 * lread.c (Fload): Purecopy the file name when building
529 Vpreloaded_file_list.
ca0a881a 530
47e0e0e4
JR
5312009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
532
533 * w32fns.c (syms_of_w32fns): Change default value of
534 w32-scroll-lock-modifier to nil. (Bug#2827)
535
057bce6f
JB
5362009-10-26 Juanma Barranquero <lekktu@gmail.com>
537
782a943e 538 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 539
242bc74c
AS
5402009-10-26 Andreas Schwab <schwab@redhat.com>
541
542 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
543
522d013a
JB
5442009-10-26 Juanma Barranquero <lekktu@gmail.com>
545
546 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
547 For delta < 0, skip check that only makes sense when the mini-window
548 is going to be enlarged. (Bug#4534)
549
18060980
CY
5502009-10-25 Chong Yidong <cyd@stupidchicken.com>
551
552 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
553 string in menu maps (Bug#4471).
554
fec8f0fe
CY
5552009-10-24 Chong Yidong <cyd@stupidchicken.com>
556
557 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
558 FRAME_NS_VIEW on terminal frames (Bug#4765).
559
10d66ec0
AS
5602009-10-24 Andreas Schwab <schwab@linux-m68k.org>
561
1cae01f7
AS
562 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
563 DBUS_TYPE_UINTnn separately to get proper sign extension.
564
58a12889
AS
565 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
566 can properly handle unsigned types.
d528b1ce 567 (make_uid, make_gid): Remove.
58a12889 568
987c9327
AS
569 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
570 types again.
571
522d013a 572 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
573 (system_process_attributes): Likewise.
574
905a9ed3
DN
5752009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
576
577 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
578
579 * eval.c (Fautoload): Purecopy the filename. Simplify.
580
581 * category.c (Fdefine_category): Purecopy docstring.
582
a599b3e8
AS
5832009-10-23 Andreas Schwab <schwab@linux-m68k.org>
584
7b792fc9
AS
585 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
586
a599b3e8
AS
587 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
588
b35ac83e
CY
5892009-10-23 Chong Yidong <cyd@stupidchicken.com>
590
591 * window.c (Fwindow_edges, Fwindow_pixel_edges)
592 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
593 (Bug#4775).
594
e8903e00
SM
5952009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
596
597 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
598 (init_fileio_once):
599 * lisp.h (init_fileio_once): Remove.
600 * emacs.c (main): Don't call init_fileio_once.
601
8f43cbf3
DN
6022009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
603
604 * puresize.h (BASE_PURESIZE): Increase to 1430000.
605
26898943
AS
6062009-10-21 Andreas Schwab <schwab@linux-m68k.org>
607
608 * doprnt.c (doprnt): Fix overflow check.
609
5c646d5a
JD
6102009-10-21 Jan Djärv <jan.h.d@swipnet.se>
611
3132a7ea
JD
612 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
613
5c646d5a
JD
614 * xterm.h (x_wait_for_event): Declare it.
615
616 * xterm.c (pending_event_wait): New variable.
617 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
618 see pending_event_wait.eventtype.
619 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
620 (x_new_font): Call change_frame_size with new rows/columns before we
621 try to resize the frame.
5c646d5a 622 (x_wait_for_event): New function.
d528b1ce
SM
623 (x_set_window_size_1): Don't change gravity unless change_gravity
624 is set.
5c646d5a
JD
625 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
626 don't change frame size, instead wait for the ConfigureNotify.
627 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
628 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
629 (x_initialize): Initialize pending_event_wait.
630
631 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
632 size.
633
634 * widget.c (EmacsFrameSetValues): Add comment.
635 (EmacsFrameSetCharSize): Just call x_set_window_size.
636
637 * gtkutil.c (xg_frame_set_char_size): Flush events and call
638 x_wait_for_event.
d528b1ce 639 (flush_and_sync): Remove again.
5c646d5a
JD
640 (xg_get_font_name): Suggest monospace if no previous font is known.
641
e9c1637d
SM
6422009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
643
644 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 645 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 646
5a72cccb
YM
6472009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
648
649 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
650 processing pending events when event is filtered for input method.
ab04798f 651 (Bug#3681)
5a72cccb 652
2629aa37
JB
6532009-10-20 Juanma Barranquero <lekktu@gmail.com>
654
655 * fns.c: Add #endif accidentally removed in previous change.
656
c3417a74
DN
6572009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
658
659 * fns.c: Remove code for unsupported system: MAC_OS.
660 * image.c: Likewise. Include setjmp.h.
661
9685cef2
JD
6622009-10-19 Jan Djärv <jan.h.d@swipnet.se>
663
664 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
665 pixel -1 (bug #4742).
666
d7306fe6
DN
6672009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
668
019d2c4c
DN
669 * process.c (create_pty): Remove conditionals for no longer
670 supported systems: UNIPLUS and RTU.
671
ee6bacd4
DN
672 * xterm.c:
673 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
674
d7306fe6
DN
675 * alloc.c: Do not define struct catchtag.
676 * eval.c: Move struct catchtag definition ...
677 * lisp.h: ... here.
678
679 * image.c: Move png.h #include earlier to avoid warnings.
680
681 * xterm.c:
682 * xsmfns.c:
683 * xselect.c:
684 * xrdb.c:
685 * xmenu.c:
686 * xftfont.c:
687 * xfont.c:
688 * xfns.c:
689 * xfaces.c:
690 * xdisp.c:
691 * window.c:
692 * widget.c:
693 * w32xfns.c:
694 * w32uniscribe.c:
695 * w32term.c:
696 * w32select.c:
697 * w32reg.c:
698 * w32proc.c:
699 * w32menu.c:
700 * w32inevt.c:
701 * w32heap.c:
702 * w32font.c:
703 * w32fns.c:
704 * w32console.c:
705 * w32.c:
706 * w16select.c:
707 * vm-limit.c:
708 * unexsol.c:
709 * unexec.c:
710 * unexcw.c:
711 * unexaix.c:
712 * undo.c:
713 * tparam.c:
714 * textprop.c:
715 * terminfo.c:
716 * terminal.c:
717 * termcap.c:
718 * term.c:
719 * syntax.c:
720 * sound.c:
721 * sheap.c:
722 * search.c:
723 * scroll.c:
724 * region-cache.c:
725 * regex.c:
726 * ralloc.c:
727 * process.c:
728 * print.c:
b024548b
DN
729 * nsterm.m:
730 * nsselect.m:
731 * nsmenu.m:
732 * nsimage.m:
733 * nsfont.m:
734 * nsfns.m:
d7306fe6
DN
735 * msdos.c:
736 * minibuf.c:
737 * menu.c:
738 * marker.c:
739 * macros.c:
740 * keymap.c:
741 * keyboard.c:
742 * intervals.c:
743 * insdel.c:
744 * indent.c:
745 * gtkutil.c:
746 * ftxfont.c:
747 * ftfont.c:
748 * fringe.c:
749 * frame.c:
750 * fontset.c:
751 * font.c:
752 * fns.c:
753 * floatfns.c:
754 * filelock.c:
755 * fileio.c:
756 * emacs.c:
757 * editfns.c:
758 * dosfns.c:
759 * doprnt.c:
760 * doc.c:
761 * dispnew.c:
762 * dired.c:
763 * dbusbind.c:
764 * data.c:
765 * composite.c:
766 * coding.c:
767 * cmds.c:
768 * cm.c:
769 * chartab.c:
770 * charset.c:
771 * character.c:
772 * ccl.c:
773 * category.c:
774 * casetab.c:
775 * casefiddle.c:
776 * callproc.c:
777 * callint.c:
778 * bytecode.c:
779 * buffer.c:
780 * atimer.c: Include setjmp.h. (Bug#4643)
781
fd5f21e6
SM
7822009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
783
4c0354d7
SM
784 Remove leftover table unibyte_to_multibyte_table.
785 * character.c (unibyte_to_multibyte_table): Remove.
786 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
787 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
788 * character.h (UNIBYTE_TO_CHAR): New macro.
789 (MAKE_CHAR_MULTIBYTE): Use it.
790 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
791 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
792 (message_dolog, set_message_1):
793 * search.c (Freplace_match):
794 * editfns.c (Fcompare_buffer_substrings):
795 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
796 (concat):
797 * insdel.c (copy_text, count_size_as_multibyte):
798 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
799 * term.c (produce_glyphs):
800 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
801 * regex.c (RE_CHAR_TO_MULTIBYTE):
802 * cmds.c (internal_self_insert):
803 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
804
fd5f21e6
SM
805 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
806
4418646e
DN
8072009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
808
809 * puresize.h (BASE_PURESIZE): Increase to 1310000.
810
35f5c1d2
JB
8112009-10-16 Juanma Barranquero <lekktu@gmail.com>
812
813 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
814
a0cd8f6b
AR
8152009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
816
817 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
818 still needed under Tiger.
819
820 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
821
822 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
823 __Apple__.
824
825 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
826
01a8d3fa
KH
8272009-10-15 Kenichi Handa <handa@m17n.org>
828
829 * print.c (print_object): Escape a symbol like "2E10" too.
830
bf6c75c9 8312009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
832
833 Cleanups and changes for 64-bit compile under Snow Leopard.
834 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
835
836 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
837
c5959062 838 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
839 (ns_findfonts, nsfont_list_family): Use long format in printf, and
840 cast argument.
841 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 842 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
843
844 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
845
846 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
847 where appropriate.
848
849 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
850 where appropriate.
6e4780c5
JB
851 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
852 Use stringWithUTF8String.
bf6c75c9
AR
853 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
854
6e4780c5
JB
855 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
856 Add formal protocol mention to inheritance.
bf6c75c9
AR
857 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
858
6e4780c5
JB
859 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
860 Fix printf format.
bf6c75c9
AR
861 (ns_query_color): Use CGFloat where appropriate.
862 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
863 (EmacsScroller-mouseDown:) Use long format in printf, and cast
864 argument.
865
3d87f118
AR
866 * config.in (NS_HAVE_NSINTEGER): Drop.
867
a95c8102
AR
868 * dbusbind.c (dbus-method-return-internal)
869 (dbus-method-error-internal): Use long format in printf, and cast
870 argument.
871
872 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
873 in printf, and cast argument.
874
6873acca 875 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
876 cast argument.
877
9ec6f100
GM
8782009-10-11 Glenn Morris <rgm@gnu.org>
879
880 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
881
5be883cd
JD
8822009-10-08 Jan Djärv <jan.h.d@swipnet.se>
883
884 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
885 menu bar with a small width so it doesn't enlarge the frame.
886
d7a39b51
JB
8872009-10-08 Juanma Barranquero <lekktu@gmail.com>
888
889 * fontset.c (Fset_fontset_font): Fix typos in error messages.
890
0c2b6f8e
GM
8912009-10-06 Glenn Morris <rgm@gnu.org>
892
893 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
894 SOME_MACHINE_LISP (this enters indirectly via DOC).
895
e02131a2
EZ
8962009-10-05 Eli Zaretskii <eliz@gnu.org>
897
898 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
899
b4744254
EZ
9002009-10-04 Eli Zaretskii <eliz@gnu.org>
901
902 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
903 Doc fix.
904
dbf64827
JB
9052009-10-03 Martin Rudalics <rudalics@gmx.at>
906
907 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
908
e9a0aef8
MA
9092009-10-02 Michael Albinus <michael.albinus@gmx.de>
910
d528b1ce 911 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
912 used anymore outside fileio.c.
913
914 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
915
64eb2b56
JB
9162009-10-01 Juanma Barranquero <lekktu@gmail.com>
917
918 * lisp.h (Qdelete_directory_internal):
919 Declare, instead of Qdelete_directory.
920
921 * w32fns.c (Fsystem_move_file_to_trash): Use it.
922
9d28c33e
SM
9232009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
924
925 * eval.c (Fcalled_interactively_p): Add `kind' argument.
926
9d8f3bd9
MA
9272009-10-01 Michael Albinus <michael.albinus@gmx.de>
928
9d28c33e 929 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
930 Fdelete_directory. It is not a command anymore. It has no file
931 name handler.
932
9694740b
SM
9332009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
934
935 * xdisp.c (get_next_display_element): Use an enum in last change.
936
748e162f
KH
9372009-09-28 Kenichi Handa <handa@m17n.org>
938
9694740b 939 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
940 unibyte_display_via_language_environment in handling
941 Vnobreak_char_display.
942
17efd58d
AR
9432009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
944
945 * nsterm.h (ns_app_name): New extern variable.
946
947 * nsterm.m (ns_app_name): New variable.
948 (ns_term_init): Set and use it.
949 (ns_term_shutdown): Use it.
950
951 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
952 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
953
954 * nsfns.m (ns_set_name_iconic, ns_set_name)
955 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
956 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
957
9694740b
SM
958 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
959 Remove double-casting in client_data comparison.
31c2d412 960
3208cb35
YM
9612009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
962
963 * keyboard.c (make_lispy_event): Remember last wheel direction.
964 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
965
b7d552d6
GM
9662009-09-26 Glenn Morris <rgm@gnu.org>
967
968 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
969 internal.elc. Add term/pc-win.elc.
970 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
971 term/x-win.elc.
972 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
973 term/w32-win.elc.
974 (NS_SUPPORT): New.
975 (lisp): Add NS_SUPPORT.
976 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
977
4ff670a8
DR
9782009-09-25 David Reitter <david.reitter@gmail.com>
979
980 * nsmenu.m (EmacsMenu-clear): Recognize application menu
981 on Mac OS X 10.6+ (bug#4513).
982
feabfb6c
JB
9832009-09-24 Juanma Barranquero <lekktu@gmail.com>
984
985 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
986 some parts of Emacs code (like font selection) don't grok them.
987 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 988
de59072a
AS
9892009-09-24 Andreas Schwab <schwab@redhat.com>
990
991 * coding.c (decode_coding_iso_2022): Fix operator precedence.
992
a489517b
JB
9932009-09-24 Juanma Barranquero <lekktu@gmail.com>
994
995 * dired.c (Fdirectory_files): Fix typo in docstring.
996
0592970c
AR
9972009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
998
999 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1000 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1001 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1002 under GNUstep.
1003 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1004
1005 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1006 glyph advancement.
1007
48e8a88b
AR
10082009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1009
1010 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1011 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1012
1013 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1014 deleted (bug #4492).
1015
e14f0a78
AR
1016 * nsfont.m (Vns_reg_to_script): New lisp variable.
1017 (syms_of_nsfont): Declare it.
1018 (ns_registry_to_script): New function.
1019 (ns_get_req_script): Call it.
1020 (ns_findfonts): Don't give up on non-unicode registry.
1021
1022 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1023
5b650faa
SM
10242009-09-20 Tom Tromey <tromey@redhat.com>
1025
1026 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1027 batch mode (bug#4228).
1028
a489517b 10292009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1030
1031 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1032 carefully. (Bug #4339)
0bae4e09 1033
fcfe06f3
CY
10342009-09-18 Chong Yidong <cyd@stupidchicken.com>
1035
d798ba87 1036 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1037
31642728
AR
10382009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1039
1040 * emacs.c (inhibit_x_resources): Update doc string for NS.
1041 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1042 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1043
1044 * nsterm.h (ns_no_defaults): Remove.
1045
1046 * nsterm.m (ns_no_defaults): Remove.
1047 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1048 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1049 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1050 don't update the NSWindow itself.
1051 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1052 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1053
1054 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1055 ns_use_qd_smoothing.
1056
1057 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1058 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1059 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1060 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1061
8686ac71
JB
10622009-09-17 Juanma Barranquero <lekktu@gmail.com>
1063
1064 * emacs.c (inhibit_x_resources): New variable.
1065 (main) [HAVE_NS]: Don't process --quick command line option.
1066 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1067
1068 * lisp.h (inhibit_x_resources): Declare it extern.
1069
1070 * w32reg.c (x_get_string_resource):
1071 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1072
e227ba05
EZ
10732009-09-17 Eli Zaretskii <eliz@gnu.org>
1074
362654a6
JB
1075 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1076 Add lisp/term/internal.elc.
e227ba05 1077
742d40e8
SM
10782009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1079
1080 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1081 (bug#4461).
1082
005bd5a2
DN
10832009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1084
1085 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1086
1087 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1088 (OBJECTS_MACHINE): Remove, unused.
1089
f9af9719
SM
10902009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1091
1092 * frame.c (x_get_resource_string): Remove unused.
1093
0307c7d2
JD
10942009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1095
1096 * xterm.c (x_new_font): Call change_frame_size before calling
1097 x_set_window_size, in case frame size won't change.
1098
1099 * frame.c (x_set_font): Remove dead code.
1100
428b13d6
SM
11012009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1102
1103 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1104
5766c380
SM
11052009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1106
1107 * lread.c (Fload): Don't output a message after loading an obsolete
1108 package any more (done in Lisp now).
1109
2fd0161b
CY
11102009-09-12 Chong Yidong <cyd@stupidchicken.com>
1111
1112 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1113
bc5e75b6
SM
11142009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1115
1116 * keymap.c (Fwhere_is_internal): Use nconc2.
1117
c31c985e
AM
11182009-09-11 Alan Mackenzie <acm@muc.de>
1119
1120 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1121 batch mode.
1122
78012bd2
AS
11232009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1124
1125 * xdisp.c (display_mode_element): Detect cycles.
1126
9d889332
SM
11272009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1128
1129 * keymap.c (where_is_internal): Don't erroneously return nil right after
1130 filling the cache.
1131 (where_is_internal_1): Fix up typo.
1132
7ab5d780
GM
11332009-09-11 Glenn Morris <rgm@gnu.org>
1134
1135 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1136 share a common doc-string.
1137
5238a749
SM
11382009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1139
66d77eda
SM
1140 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1141 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1142
5238a749
SM
1143 * keymap.c (QCadvertised_binding): New constant.
1144 (syms_of_keymap): Initialize it.
1145 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1146 if applicable.
1147
19f48442
SM
11482009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1149
50d4ba39
SM
1150 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1151 (parse_menu_item): Streamline since bindings are recomputed all the
1152 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1153 more and don't support lmenu's menu-alias any more either.
1154
a88a5372
SM
1155 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1156 (where_is_internal): Strip it down to only traverse the keymaps.
1157 Move the cache handling from Fwhere_is_internal to here.
1158 (Fwhere_is_internal): Move the handling of remapping and the choice of
1159 the best binding from where_is_internal to here.
1160 Unify the cached/noncached paths, so remapping is also handled
1161 correctly when the cache is used, and so the cache can be used to
1162 speed up remap-handling when applicable.
1163 Give preference to non-remapped bindings.
1164 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1165 non-remapped bindings.
1166 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1167 command remapping.
1168
19f48442
SM
1169 * xdisp.c (display_mode_element): Move list length limit from 50 to
1170 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1171
599498c3 11722009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1173
1174 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1175
f9b7b5ac
SM
11762009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1177
a53af587
JB
1178 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1179 (Bug#4334)
1180
f9b7b5ac
SM
1181 * keymap.c (where_is_internal): Filter out shadowed remappings.
1182 Assume that where_is_internal returns unshadowed bindings to simplify
1183 the code and get rid of the gotos. Use ASIZE.
1184
04f4b72d
JD
11852009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1186
4da146f2
JD
1187 * xterm.c (x_focus_changed): If we get a focusout and pointer
1188 is invisible, make it visible.
1189
04f4b72d
JD
1190 * xterm.h: Remove condition for declaration of
1191 x_*_window_to_frame.
1192
7cef7ce3
SM
11932009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1194
1195 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1196 initial terminal as well.
1197
a54fa5b7
JD
11982009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1199
1200 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1201 x_menubar_window_to_frame.
a54fa5b7
JD
1202
1203 * xterm.c: Remove declarations also in xterm.h
1204 (XTmouse_position): Do not return valid positions
1205 for clicks in the menubar and the toolbar for Gtk+.
1206
1207 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1208 if the widget for the event has the same top level as a frame,
1209 return the frame.
1210 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1211 internal windows, bug #4122.
1212 (x_non_menubar_window_to_frame): Remove.
1213
5a021dd0
GM
12142009-09-02 Glenn Morris <rgm@gnu.org>
1215
1216 * buffer.c (default-major-mode): Move most of the doc from here...
1217 (major-mode): ... to here.
1218
548fe2f3
NR
12192009-08-30 Nick Roberts <nickrob@snap.net.nz>
1220
1221 * process.c (wait_reading_process_output): Keep the descriptor
1222 when pty is used by a non-child process, e.g., in I/O buffer of
1223 GDB this allows inferior to be restarted.
1224
e0840eef
EZ
12252009-08-29 Eli Zaretskii <eliz@gnu.org>
1226
1227 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1228 both branches into one.
1229
82e98df4
SM
12302009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1231
1232 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1233 (main): Use enable-multibyte-characters rather than
1234 default-enable-multibyte-characters. Output a warning message when
1235 running a unibyte session.
1236
890617cb
YM
12372009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1238
1239 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1240 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1241 (copy_data_segment): Also copy __program_vars section.
1242 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1243 (dump_it) [LC_DYLD_INFO]: Use it.
1244
1245 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1246
e7adeadc
EZ
12472009-08-28 Eli Zaretskii <eliz@gnu.org>
1248
1249 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1250 $(SRC)/buildobj.h.
1251 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1252 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1253 $(SRC)/buildobj.h.
1254 (clean): Add buildobj.h.
1255
3ed8bbdc
TZ
12562009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1257
1258 * print.c (print_object): Set escapeflag to 1 when printing
1259 hashtable keys and values.
1260
155a6764
SM
12612009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1262
1263 * lread.c (read_integer): Use doubles (and potentially return a float
1264 number) as we do in string-to-number.
1265 (read1): Use strtol to read integers, signal errors on strtol's
1266 overflow and use floats if strtol's output is too large for
1267 Elisp integers.
1268
877610de
EZ
12692009-08-27 Eli Zaretskii <eliz@gnu.org>
1270
1271 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1272 (make-buildobj-SH): Fix last change.
1273 (SRC): Move to before where it's first used.
1274
ef73e7be
KH
12752009-08-27 Kenichi Handa <handa@m17n.org>
1276
550c8289
KH
1277 * process.c (send_process): Use encode_coding_object instead of
1278 encode_coding_string to perform eol-conversion even if the string
1279 is unibyte.
1280
60afa08d
KH
1281 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1282 character.
1283
ef73e7be 1284 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1285 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1286
7b3a82d7
DN
12872009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1288
5654bf63
DN
1289 * callproc.c (Fcall_process): Remove always true #if.
1290
7b3a82d7
DN
1291 * lisp.h: Replace #if 0 code for checking with text pointing to
1292 the --enable-checking configure flag.
1293
1294 * emacs.c (main): Mention the --enable-profiling configure flag
1295 instead of using CFLAGS.
1296
878bde49
KR
12972009-08-26 Ken Raeburn <raeburn@raeburn.org>
1298
1299 * Makefile.in (buildobj.h): New target.
1300 (doc.o): Depend on it.
1301 (temacs${EXEEXT}): Don't generate buildobj.lst.
1302 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1303 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1304 ($(BLD)/doc.$(O)): Depend on it.
1305 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1306 provided by Eli Zaretskii.)
1307 ($(TEMACS)): Don't generate buildobj.lst.
1308 * doc.c: Include buildobj.h.
1309 (buildobj): New static variable.
1310 (Fsnarf_documentation): Use it, instead of opening and reading
1311 buildobj.lst.
1312
1574224c
MA
13132009-08-25 Michael Albinus <michael.albinus@gmx.de>
1314
1315 * dbusbind.c (Fdbus_call_method)
1316 (Fdbus_call_method_asynchronously): Use English numeric format for
1317 timeout values in doc string.
1318
d9da2f45
KH
13192009-08-25 Kenichi Handa <handa@m17n.org>
1320
ef73e7be
KH
1321 * alloc.c (mark_char_table): New function.
1322 (mark_object): Use mark_char_table for a char-table.
1323
d9da2f45
KH
1324 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1325 (CHAR_TABLE_REF): Use it.
1326
c8edcc01
KR
13272009-08-23 Ken Raeburn <raeburn@raeburn.org>
1328
1329 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1330 before invoking the newly build emacs to check for load-path
1331 shadowing.
1332
7763401b
GM
13332009-08-22 Glenn Morris <rgm@gnu.org>
1334
1335 * Makefile.in (bootstrap_exe): New variable.
1336 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1337 Use ${bootstrap_exe}.
1338
729eadda
EZ
13392009-08-22 Eli Zaretskii <eliz@gnu.org>
1340
1341 * coding.h (encode_coding_string): Don't encode unibyte strings.
1342 (Bug#4047)
1343
eb4c6ace
MA
13442009-08-22 Michael Albinus <michael.albinus@gmx.de>
1345
1346 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1347
1348 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1349 intended as hotfix only.
1350 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1351
36e34d1b
AR
13522009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1353
1354 * nsterm.m (ns_get_color): Update documentation properly for last
1355 change, and clean up loose ends in the code left by it. Fix
1356 longstanding bug with 16-bit hex parsing, and add support for
1357 yet another X11 format (rgb:r/g/b) for compatibility.
1358 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1359 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1360
f983eb8a
SM
13612009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1362
1363 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1364
3f56d3c6
MA
13652009-08-20 Michael Albinus <michael.albinus@gmx.de>
1366
1367 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1368 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1369 (xd_initialize, xd_pending_messages): Check, whether
1370 $DBUS_SESSION_BUS_ADDRESS is set.
1371
fb641d68
YM
13722009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1373
1374 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1375
1376 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1377
cf59a374
GM
13782009-08-20 Glenn Morris <rgm@gnu.org>
1379
1380 * emacs.c (system-type): Doc fix.
1381
1373f3be
SM
13822009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1383
1384 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1385 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1386
058ed861
MA
13872009-08-18 Michael Albinus <michael.albinus@gmx.de>
1388
1373f3be
SM
1389 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1390 New functions.
058ed861
MA
1391 (xd_initialize): Revert change from 2009-08-16.
1392
563a866e 13932009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1394
1395 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1396 font-group vector, return nil.
5fc05db0 1397
e42bdf01
CY
13982009-08-17 Chong Yidong <cyd@stupidchicken.com>
1399
1400 * process.c (status_notify): Don't perform redisplay.
1401 (Fdelete_process, list_processes_1, process_send_signal):
1402 Expliticly perform redisplay.
1403 (wait_reading_process_output): Always check process status, but
1404 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1405
4230ab74
KR
14062009-08-17 Ken Raeburn <raeburn@raeburn.org>
1407
1373f3be 1408 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1409 (XFLOAT_INIT): New macro for storing a float value.
1410 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1411 * fns.c (sxhash): Copy out the value of a float in order to
1412 examine its bytes.
1413 * dbusbind.c (xd_append_arg): Likewise.
1414
4230ab74
KR
1415 * emacs.c (main): Don't call syms_of_data twice.
1416
a0645cdd
MA
14172009-08-16 Michael Albinus <michael.albinus@gmx.de>
1418
1419 * dbusbind.c (xd_initialize): Add connection file descriptor to
1420 input_wait_mask, in order to let select() detect, whether a new
1421 message has been arrived.
ca4f31ea 1422 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1423
485db0ba
MA
14242009-08-15 Michael Albinus <michael.albinus@gmx.de>
1425
1373f3be
SM
1426 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1427 New functions.
485db0ba
MA
1428
1429 * lisp.h (xd_pending_messages): Declare.
1430
1431 * keyboard.c (readable_events): Call xd_pending_messages.
1432
b5b98ff4
CY
14332009-08-15 Chong Yidong <cyd@stupidchicken.com>
1434
1373f3be 1435 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1436
f8354c6e
CY
1437 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1438
b5b98ff4
CY
1439 * buffer.c (set_buffer_internal_1)
1440 (swap_out_buffer_local_variables): Check for unbound local
1441 variables (Bug#4138).
1442
8b9fc636
EZ
14432009-08-14 Eli Zaretskii <eliz@gnu.org>
1444
1445 * process.c (create_pty): Fix last change.
1446
ce959360
CY
14472009-08-13 Chong Yidong <cyd@stupidchicken.com>
1448
1449 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1450 (xbm_load_image): Caller changed.
64b807c9 1451 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1452
c7baf7e9
NR
14532009-08-13 Nick Roberts <nickrob@snap.net.nz>
1454
1455 * process.c (create_pty): New function.
1456 (Fstart_process): Use it to allow Emacs to just associate a pty
1457 with the buffer. See associated change in gdb-mi.el.
1458 (list_processes_1): Deal with no program name.
1459 (start_process_unwind): Use pid == -2 to mean no process.
1460
1ac9108a
SM
14612009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1462
1463 * cmds.c (nonundocount): New global variable.
1464 (keys_of_cmds): Initialize it.
1465 (Fself_insert_command): Use it to combine upto 20 sequential chars
1466 into a single undo entry, just like the Qself_insert_command code in
1467 keyboard.c does.
1468 Call frame_make_pointer_invisible, also like the Qself_insert_command
1469 code in keyboard.c does.
1470 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1471 than its own local replacement for it.
1472
e267324c
KR
14732009-08-10 Ken Raeburn <raeburn@raeburn.org>
1474
1ac9108a 1475 * fns.c (concat): Don't re-set string length to its current value.
77437343 1476
1ac9108a
SM
1477 * coding.h (decode_coding_string, encode_coding_string):
1478 Use SBYTES macro.
f0bed503 1479
1ac9108a 1480 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1481 (doprnt): Merge with doprnt1, discarding lispstrings code.
1482 * lisp.h (doprnt_lisp): Don't declare.
1483
416e006d
JL
14842009-08-07 Juri Linkov <juri@jurta.org>
1485
1486 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1487
6f7d5780
DN
14882009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1489
1490 * print.c (syms_of_print): Undo previous change.
1491
f19a0f5b
TZ
14922009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1493
1494 * lread.c (read1, syms_of_lread): Read hashtables back from the
1495 readable format.
1496
1497 * print.c (print_preprocess, print_object): Print hashtables fully
1498 and readably.
1499 (syms_of_print): Provide 'hashtable-print-readable.
1500
b9173dc2
AR
15012009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1502
1503 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1504 no family set.
1505 (nsfont_open): Handle case when entity has no family.
1506
1586503c
AR
15072009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1508
1509 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1510 element, not a list, for match case.
1511
087048cd
KH
15122009-07-28 Kenichi Handa <handa@m17n.org>
1513
1514 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1515 rigidly.
1516
1517 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1518 font_parse_xlfd. Check font properties more rigidly.
1519
780c2506
DN
15202009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1521
31fd7c5c
JB
1522 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1523 bsd-common.h.
780c2506 1524
a8c0cc18
KH
15252009-07-27 Kenichi Handa <handa@m17n.org>
1526
1527 * xfaces.c (face_with_height): Call font_clear_prop.
1528
4fbe2306
CY
15292009-07-26 Chong Yidong <cyd@stupidchicken.com>
1530
111d9af3
CY
1531 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1532
1533 * xterm.c (x_term_init): Use Qx.
1534
4fbe2306
CY
1535 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1536
1ac9108a 1537 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1538 (ns_get_color): Revert 2009-07-16 change.
1539
beb0b7f9
EZ
15402009-07-25 Eli Zaretskii <eliz@gnu.org>
1541
1542 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1543 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1544
2baf5e76
KR
15452009-07-25 Ken Raeburn <raeburn@raeburn.org>
1546
1ac9108a
SM
1547 * coding.h (decode_coding_string, encode_coding_string):
1548 Use SCHARS macro.
8890e5f5 1549
2baf5e76 1550 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1551 (load_depth): Delete.
2baf5e76
KR
1552 (Qload_in_progress): New variable.
1553 (load_unwind): Don't reference load_depth or load_in_progress.
1554 (Fload): Likewise; specbind Qload_in_progress instead.
1555 (init_lread): Don't initialize load_depth.
1556 (syms_of_lread): Initialize and protect Qload_in_progress.
1557
1395c6f5
AR
15582009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1559
1560 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1561
4e2f36cf
AR
15622009-07-23 Yavor Doganov <yavor@gnu.org>
1563
1564 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1565
5dd9a6f7
AR
15662009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1567
1568 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1569 Bugs 3792, 3720, 2402.
1570 (ns_lookup_indexed_color): Check for bad index.
1571 (ns_index_color): Init unused slot to 0.
1572 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1573 Bug 3714, possibly 3082.
5dd9a6f7 1574
c902b920
JR
15752009-07-22 Jason Rumney <jasonr@gnu.org>
1576
1ac9108a
SM
1577 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1578 Position IME window at cursor (Bug#2570).
c902b920
JR
1579 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1580 (globals_of_w32fns): Dynamically load functions required above.
1581
1582 * w32term.c (w32_draw_window_cursor): Send message to reposition
1583 any IME window.
1584
090101cf
CY
15852009-07-21 Chong Yidong <cyd@stupidchicken.com>
1586
1587 * fileio.c: Revert 2009-07-16 changes.
1588 (Vauto_save_include_big_deletions): New variable.
1589 (Fdo_auto_save): Disable auto-save only if
1590 auto-save-include-big-deletions is nil.
1591
e6583e3d
CY
15922009-07-21 Chong Yidong <cyd@stupidchicken.com>
1593
1594 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1595 the overflowed pixels into account (Bug#3879).
1596
ece435a5
KR
15972009-07-21 Ken Raeburn <raeburn@raeburn.org>
1598
1599 * lread.c (load_depth): New variable.
1600 (Fload, load_unwind, init_lread): Set it to the load recursion
1601 depth; set load_in_progress as a simple boolean based on the
1602 current load_depth. (Bug#3892)
1603
40b2d973
AR
16042009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1605
1606 * nsfont.m (ns_has_attribute): Remove.
1607 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1608
10be7e0d
JL
16092009-07-18 Juri Linkov <juri@jurta.org>
1610
1611 * process.c (Fset_process_query_on_exit_flag): Mention killing
1612 a buffer in docstring.
1613
fa055055
KH
16142009-07-17 Kenichi Handa <handa@m17n.org>
1615
1616 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1617
042f7b69
YM
16182009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1619
1620 * nsfns.m (Fns_set_alpha): Remove function.
1621 (syms_of_nsfns): Don't defsubr it.
1622
1623 * nsterm.m (ns_get_color): Remove incompatible color formats.
1624 (ns_color_to_lisp): Generate #rrggbb color format string.
1625
4be941e3
RS
16262009-07-16 Richard Stallman <rms@gnu.org>
1627
1628 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1629 (Fset_buffer_auto_saved): Handle save_length = -2.
1630
4e6b227d
CY
16312009-07-16 Chong Yidong <cyd@stupidchicken.com>
1632
1633 * xterm.c (Qx_gtk_map_stock): New var.
1634
1635 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1636 of calling intern each time.
1637
a1856973
YM
16382009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1639
1640 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1641 does tiling.
1642
1643 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1644
497e54d8
KH
16452009-07-14 Kenichi Handa <handa@m17n.org>
1646
72d36834
KH
1647 * font.c (font_vconcat_entity_vectors): New function.
1648 (struct font_sort_data): New member font_driver_preference.
1649 (font_compare): Check font_driver_preference.
1650 (font_sort_entities): The format of the first argument changed.
1651 (font_delete_unmatched): Likewise.
1652 (font_list_entities): The return type changed.
1653 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1654 (font_find_for_lface): Adjuste for the above changes.
1655 Don't suppress the checking of C even if the repertory supports it.
1656 (Flist_fonts): Adjust for the above changes.
72d36834 1657
1ac9108a
SM
1658 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1659 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1660 Reject a font who has adstyle property that is different from a
1661 langname derived from registry property.
1ac9108a 1662 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1663
b6046155
EZ
16642009-07-13 Eli Zaretskii <eliz@gnu.org>
1665
1666 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1667 local copy of dirfilename.
1668
fb6b6049
KH
16692009-07-13 Kenichi Handa <handa@m17n.org>
1670
e2402a5e
KH
1671 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1672 against max_char.
1673
fb6b6049
KH
1674 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1675 calling XSYMBOL (sym).
1676
65156807
EZ
16772009-07-11 Eli Zaretskii <eliz@gnu.org>
1678
1ac9108a
SM
1679 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1680 New function.
1681 (directory_files_internal) [WINDOWSNT]:
1682 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1683 the filesystem of the directory is fast or slow.
1684
1685 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1686 file name.
1687 (is_slow_fs): New function.
1688 (stat): Use it to determine whether to issue more system calls to
1689 get accurate file attributes, when w32-get-true-file-attributes is
1690 `local'.
1691
e0ab5fcf
JD
16922009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1693
1694 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1695 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1696 parameter font-parameter as default to the font dialog.
1697
784ceded
KH
16982009-07-10 Kenichi Handa <handa@m17n.org>
1699
1700 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1701
fb8edc0b
EZ
17022009-07-09 Eli Zaretskii <eliz@gnu.org>
1703
1ac9108a 1704 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1705
fb8edc0b
EZ
1706 * w32.c (stat): Treat UNC file names as residing on remote
1707 drives. (Bug#3542)
1708
635c75b1
KH
17092009-07-09 Kenichi Handa <handa@m17n.org>
1710
1711 * fontset.c (fontset_find_font): Fix previous change.
1712
c1d5ce94
MA
17132009-07-08 Michael Albinus <michael.albinus@gmx.de>
1714
1715 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1716 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1717 error flag.
1718
edb61b39
KH
17192009-07-08 Kenichi Handa <handa@m17n.org>
1720
374bf7e4
KH
1721 * fontset.c (fontset_find_font): Fix the logic of handling
1722 charset_matched.
1723 (font_for_char): Delete unused var.
1724 (generate_ascii_font_name): Delete it.
1725
edb61b39
KH
1726 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1727
1728 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1729 (encode_coding_sjis): Fix the code range check.
1730
0f3f018c
CY
17312009-07-07 Chong Yidong <cyd@stupidchicken.com>
1732
1733 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1734 (Fexpand_file_name): Copy string data properly (Bug#3772).
1735
fcaf6f3a
JD
17362009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1737
1738 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1739 first MapNotify.
1740
6809ca75
KH
17412009-07-07 Kenichi Handa <handa@m17n.org>
1742
1743 * character.h (unibyte_has_multibyte_table): Delete extern.
1744 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1745
1746 * charset.c (Fset_charset_priority): Update charset_unibyte.
1747 (syms_of_charset): Initialize charset_unibyte.
1748
1749 * character.c (unibyte_has_multibyte_table): Delete it.
1750 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1751 charset_unibyte.
1752 (multibyte_char_to_unibyte_safe): Likewise.
1753 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1754
1ac9108a 1755 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1756 (x_produce_glyphs): Likewise.
1757
1758 * .gdbinit (xcharset): Fix the treating $arg0.
1759
ad9e2d54
EZ
17602009-07-04 Eli Zaretskii <eliz@gnu.org>
1761
1762 Emulation of `getloadavg' on MS-Windows.
1763 * w32.c: Include float.h
1764 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1765 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1766 (get_native_system_info, get_system_times): New functions.
1767 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1768 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1769 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1770 g_b_init_get_system_times, and num_of_processors.
1771
0a3472c7
JR
17722009-07-03 Jason Rumney <jasonr@gnu.org>
1773
1774 * w32term.c (w32_initialize): Use standard types.
1775
80904120
EZ
17762009-07-03 Eli Zaretskii <eliz@gnu.org>
1777
1778 * dired.c (Ffile_attributes): Decode user and group names by the
1779 locale's encoding. (Bug#3443)
1780
6978862d
DN
17812009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1782
f8d23104
DN
1783 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1784 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1785
1786 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1787
1788 * term.c (init_tty): Remove spurious #ifdef.
1789
6978862d
DN
1790 * m/mips.h: Mention this file is also used for netbsd.
1791 * m/pmax.h: Remove file.
1792
e044e4fc
JD
17932009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1794
1795 * xterm.h (struct x_display_info): Add invisible_cursor.
1796 (struct x_output): Add current_cursor.
1797
1798 * xterm.c (XTtoggle_invisible_pointer): New function.
1799 (x_define_frame_cursor): Don't define cursor if invisible or the
1800 same as before. Set current_cursor.
1801 (x_create_terminal): Set toggle_invisible_pointer_hook.
1802
1803 * xfns.c (make_invisible_cursor): New function.
1804 (x_set_mouse_color): Call make_invisible_cursor.
1805 Set current_cursor.
1806 (x_window): Set current_cursor.
1807
1808 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1809
1810 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1811 inserting a character.
1812 (read_avail_input): Call frame_make_pointer_visible.
1813
1814 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1815 (frame_make_pointer_invisible, frame_make_pointer_visible):
1816 New functions.
e044e4fc
JD
1817 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1818
1819 * frame.h: Declare frame_make_pointer_invisible and
1820 frame_make_pointer_visible.
1821 (struct frame): Add pointer_invisible.
1822
574c8efa
JD
18232009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1824
7b507248
JD
1825 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1826 frame isn't visible.
1827 (xg_frame_resized): If width/height is -1, get size of window
1828 from X server.
1829
1830 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1831 for MapNotify.
1832
835bdaa7 1833 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1834 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1835 (flush_and_sync): Reintroduce.
574c8efa 1836
3f1c6666 18372009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1838
31fd7c5c 1839 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1840
1841 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1842 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1843
1844 * frame.h: Declare Qsticky.
1845
cad9ef74
JD
1846 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1847
1848 * nsfns.m (ns_frame_parm_handlers): Ditto.
1849
1850 * frame.c: Declare Qsticky.
1851 (frame_parms): Add sticky.
1852
1853 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1854
1855 * xterm.h: Declare x_set_sticky.
1856
1857 * xterm.c (x_set_sticky): New function.
1858
69b16610
JD
1859 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1860 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1861 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1862
1863 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1864
1865 * frame.c: Qmaximized is new.
1866 (x_set_frame_parameters): Do not handle fullscreen specially.
1867 Only set width and height if explicitly set.
1868 (x_set_fullscreen): Handle Qmaximized.
1869 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1870 (syms_of_frame): Initialize Qmaximized.
1871
1ac9108a
SM
1872 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1873 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1874
1875 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1876 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1877 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1878 set gravity to NorthWestGravity when USE_GTK.
1879 (set_wm_state): New function.
31fd7c5c 1880 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1881 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1882 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1883 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1884 to x_real_positions and x_fullscreen_adjust.
1885
1886 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1887 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1888 flush_and_sync.
1889 (xg_height_changed): New function.
1890 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1891 and gtk_window_set_policy. Set frame gravity after parsing the
1892 geometry string.
3f1c6666
JD
1893 (xg_update_frame_menubar, free_frame_menubar)
1894 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1895 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1896 Remove calls to xg_frame_set_char_size.
1897
fd503d99
KH
18982009-07-01 Kenichi Handa <handa@m17n.org>
1899
1900 * keyboard.c (decode_keyboard_code): New function.
1901 (tty_read_avail_input): Decode the input bytes if necessary.
1902
1ac9108a
SM
1903 * coding.c (setup_coding_system):
1904 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1905 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1906 use Qno_conversion.
1907
24ed93fb
YM
19082009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1909
1910 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1911
99061dfc
CY
19122009-06-30 Chong Yidong <cyd@stupidchicken.com>
1913
1ac9108a 1914 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1915
ff90fbde
JR
19162009-06-30 Jason Rumney <jasonr@gnu.org>
1917
1918 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1919 is already loaded.
1920 Set user model ID if supported (bug#1849).
1921
5f445726
JM
19222009-06-29 Jim Meyering <meyering@redhat.com>
1923
1924 Remove useless if-before-xfree test.
1925 * nsfont.m (nsfont_close): Remove useless test.
1926 * term.c (delete_tty): Likewise.
1927 * w32.c (system_process_attributes): Likewise.
1928 * w32font.c (w32font_close): Likewise.
1929 * xfaces.c (x_free_gc): Likewise.
1930 * xselect.c (buffer): Likewise.
1931
b9607587
AS
19322009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1933
1934 * process.c (send_process): Keep decoded string in a local
1935 variable and protect it from GC. (Bug#3521)
1936
89ba96f4
EZ
19372009-06-28 Eli Zaretskii <eliz@gnu.org>
1938
1939 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1940 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1941
098a1589
CY
19422009-06-28 Chong Yidong <cyd@stupidchicken.com>
1943
485422be
CY
1944 * xdisp.c (start_display, handle_face_prop)
1945 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1946 (redisplay_window, try_window_id, produce_image_glyph):
1947 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1948
098a1589
CY
1949 * xterm.c (x_update_window_begin, x_new_focus_frame)
1950 (x_scroll_bar_handle_click, handle_one_xevent)
1951 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1952 (x_make_frame_visible, x_make_frame_invisible)
1953 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1954 code chunks that are now obsolete.
1955
78c38319
MA
19562009-06-28 Michael Albinus <michael.albinus@gmx.de>
1957
1958 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1959 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1960 for hours, when optimzation is enabled.
1961 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1962 (xd_read_message): Make them static.
1963
4189ed40
CY
19642009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1965
1966 * term.c (turn_on_face): Allow simultaneously bold and dim
1967 terminal faces (Bug#3530).
1968
cd9b5e16
CY
19692009-06-27 Chong Yidong <cyd@stupidchicken.com>
1970
4e23bedb
CY
1971 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1972
cd9b5e16
CY
1973 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1974 truncation glyphs (Bug#3686).
1975
07cc3c35
GM
19762009-06-27 Glenn Morris <rgm@gnu.org>
1977
1978 * m/pmax.h: Restore file, with only netbsd portions.
1979
31fd7c5c 19802009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1981
cd9b5e16 1982 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1983
42d4a64f
KH
19842009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1985
1986 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1987 the arg FORCE_SYMBOL.
1988
930fe55b 19892009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1990
1991 * fontset.c (fontset_find_font): When a usable rfont_def is found
1992 in a fallback font-group, make it the first element of the group.
1993
57ebc3fd
CY
19942009-06-24 Chong Yidong <cyd@stupidchicken.com>
1995
1996 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1997
f084f942
KH
19982009-06-24 Kenichi Handa <handa@m17n.org>
1999
2000 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2001 set for C.
2002 (fontset_font): Record the availability of a font for C both in
2003 the realized fontsets of the current one and the default one.
2004
2f686c87
DN
20052009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2006
2007 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2008 conditional, it is always defined on AIX.
2009
666e158e
MB
20102009-06-23 Miles Bader <miles@gnu.org>
2011
2012 * window.c (Vrecenter_redisplay): New variable.
2013 (syms_of_window): Initialize it.
2014 (Qtty): New extern declaration.
2015 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2016
c6da7cd2
JM
20172009-06-23 Jim Meyering <meyering@redhat.com>
2018
1ac9108a
SM
2019 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2020 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2021 pointer dereferences are guaranteed to be valid.
c6da7cd2 2022
678dca3d
KH
20232009-06-23 Kenichi Handa <handa@m17n.org>
2024
74d75424
KH
2025 * emacs.c (main): Call init_font ().
2026
2027 * font.h (Vfont_log): Extern it.
2028 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2029
2030 * font.c (font_sort_entities, font_list_entities)
2031 (font_matching_entity, font_open_entity)
2032 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2033 (Vfont_log): Delete static.
2034 (font_log_env_checked): Delete this variable.
2035 (font_add_log): Don't check font_log_env_checked.
2036 (font_deferred_log): Check Vfont_log.
2037 (init_font): New function.
2038
678dca3d
KH
2039 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2040
2041 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2042
2043 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2044
2045 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2046
2047 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2048 (face_for_char): Don't call font_deferred_log here.
2049 (font_for_char): Likewise.
2050
8a668709
CY
20512009-06-22 Chong Yidong <cyd@stupidchicken.com>
2052
9a01ee33
CY
2053 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2054 rather than its background_width for drawing the overline and
2055 underline (Bug#489).
2056
2057 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2058 rather than its background_width for drawing the overline and
2059 underline (Bug#489).
ec7c9926
CY
2060 (xg_default_icon_file): New variable.
2061 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2062 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2063
8a668709
CY
2064 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2065 (load_overlay_strings): Remove externs.
2066 (fast_find_position): Function deleted.
2067 (mouse_face_from_buffer_pos): New function, based on
2068 fast_find_position. Correctly handle before-strings,
2069 display-strings, and after-strings (Bug#1220).
2070 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2071
4d4c02d8
CY
20722009-06-21 Chong Yidong <cyd@stupidchicken.com>
2073
1ac9108a 2074 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2075 (move_it_in_display_line_to, move_it_in_display_line_to)
2076 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2077
70243478
CY
20782009-06-21 Chong Yidong <cyd@stupidchicken.com>
2079
2080 * Branch for 23.1.
2081
13087e59
JR
20822009-06-21 Jason Rumney <jasonr@gnu.org>
2083
2084 * w32term.c (keyboard_codepage): New static variable.
2085 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2086 (w32_read_socket) [WM_CHAR]: Use it to decode character
2087 input (bug#3237).
2088 (w32_initialize): Initialize it.
2089 (codepage_for_locale): New function.
2090
4735b74e
KR
20912009-06-20 Ken Raeburn <raeburn@raeburn.org>
2092
2093 * process.c (status_message): Pass Faset index argument as a lisp
2094 object, so as to work with USE_LISP_UNION_TYPE.
2095
0e727afa
YM
20962009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2097
2098 * coding.c (Ffind_coding_systems_region_internal):
2099 Cache checked characters.
2100
cf299835
KH
21012009-06-18 Kenichi Handa <handa@m17n.org>
2102
1ac9108a 2103 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2104
90f20d94
AS
21052009-06-18 Andreas Schwab <aschwab@redhat.com>
2106
2107 * xdisp.c (redisplay_internal): Check that the frame is still
2108 live after redisplay of its windows.
2109 (redisplay_windows): Check that the window is still live.
2110
7f1faf1c
KH
21112009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2112
2113 * coding.c (detect_coding_utf_16): Fix previous change.
2114
cc13543e
KH
21152009-06-16 Kenichi Handa <handa@m17n.org>
2116
2117 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2118 UTF-16 by checking the dispersion of Eth and Oth bytes.
2119
977b85f4
AS
21202009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2121
2122 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2123
66bd43d1
KH
21242009-06-15 Kenichi Handa <handa@m17n.org>
2125
2126 * process.c (status_message): Fix previous change. Be sure to
2127 decode a localized string.
2128
cb5ca9c5
YM
21292009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2130
2131 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2132 add comment explaining why.
2133
ec7709ba 21342009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2135
ec7709ba 2136 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2137
4b7f335c
AR
21382009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2139
2140 * nsfont.m (ns_attribute_value): Remove.
2141 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2142 (ns_has_attribute): Shrink the normal range.
2143 (ns_findfonts): Don't worry about requested spec in determining
2144 need for synthItal.
e41820ee 2145 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2146
73b26103
SZ
21472009-06-14 Seiji Zenitani <zenitani@mac.com>
2148
2149 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2150
5753e4da
KH
21512009-06-11 Kenichi Handa <handa@m17n.org>
2152
2153 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2154 overhang for the static composition case.
2155
3561b671
KH
21562009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2157
5753e4da
KH
2158 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2159 overhang for the automatic composition case.
2160
3561b671
KH
2161 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2162 composition case.
2163
852bbd41
CY
21642009-06-10 Chong Yidong <cyd@stupidchicken.com>
2165
2166 * xdisp.c (get_next_display_element): When handling wrap-prefix
2167 and line-prefix, treat \n as a control character (bug#3502).
2168
9903d1e6
KH
21692009-06-10 Kenichi Handa <handa@m17n.org>
2170
2171 * font.c (font_parse_family_registry): Fix for one-char foundry.
2172 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2173
0bcbaaaa
CY
21742009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2175
2176 * process.c (status_message): Fix handling of multibyte signal
2177 string (Bug#3499).
2178
40aa3f13
JM
21792009-06-09 Jim Meyering <meyering@redhat.com>
2180
1f80c7e2
CY
2181 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2182 color name is missing.
40aa3f13 2183
72d51285
KH
21842009-06-09 Kenichi Handa <handa@m17n.org>
2185
2186 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2187 FROM-CODE and TO-CODE are codepoints of CHARSET.
2188
c1d04d84
AR
21892009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2190
2191 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2192
21932009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2194
2195 Changes to support :script/:lang/:otf in NS font driver.
2196 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2197 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2198 indicate not part of font driver interface, and change callers.
2199 (ns_get_family): Remove pointless null check.
2200 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2201 ns_spec_to_descriptor, ns_descriptor_to_entity.
2202 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2203 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2204 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2205 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2206 (ns_get_req_script, ns_accumulate_script_ranges)
2207 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2208 New functions.
2209 (nsfont_list, nsfont_match): Use ns_findfonts.
2210 (nsfont_open): Use font descriptor instead of traits.
2211 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2212 (dump_glyphstring): Rename to ns_dump_glyphstring.
2213
c7eb9816
AR
2214 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2215
c1d04d84
AR
2216 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2217
2218 * fontset.c (fontset_from_font): Remove NS-specific code.
2219
ec7709ba 22202009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2221
2222 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2223 nonactive windows.
2224
31fd7c5c 22252009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2226
1ac9108a 2227 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2228
68852c13 22292009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2230
2231 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2232
6756cd1d
CY
22332009-06-07 Chong Yidong <cyd@stupidchicken.com>
2234
2235 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2236 account for the overflowing of newlines into the last glyph on the
2237 display line (Bug#3482).
2238
28bf482a
DR
22392009-06-05 David Reitter <david.reitter@gmail.com>
2240
ec7709ba
JB
2241 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2242 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2243 Fns_selection_exists_p, Fns_selection_owner_p.
2244
fdb55376
JR
22452009-06-03 Jason Rumney <jasonr@gnu.org>
2246
2247 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2248 available. (Bug#3379)
2249
05129fbe
KH
22502009-05-29 Kenichi Handa <handa@m17n.org>
2251
1ac9108a
SM
2252 * coding.c (get_translation_table):
2253 Check Venable_character_translation.
05129fbe 2254
ec7709ba 22552009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2256
ec7709ba
JB
2257 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2258 (x_make_frame_visible): Move frame to front rather than calling
15891144 2259 ns_raise_frame().
ec7709ba 2260 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2261 isn't key window.
ec7709ba 2262 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2263 drawRect may be called by NSView even if the frame is hidden.
2264
ec7709ba
JB
2265 * nsfns.m (Fx_create_frame): Follow other ports in
2266 determining visibility; default to t. Ensure async_visible is set.
15891144 2267
21f73755
EZ
22682009-05-23 Eli Zaretskii <eliz@gnu.org>
2269
2270 * dired.c (Ffile_attributes): Doc fix.
2271
34001e41
CY
22722009-05-22 Chong Yidong <cyd@stupidchicken.com>
2273
2274 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2275
46306a17
SM
22762009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2277
2278 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2279 and xfont_scratch_props.
2280 (syms_of_xfont): Do it here instead.
2281 (xfont_find_ccl_program): Delete, unused.
2282 (xfont_open): Delete unused var `i'.
2283
ef6e0694
KH
22842009-05-21 Kenichi Handa <handa@m17n.org>
2285
2286 * fontset.c (Qlatin): Don't make it static.
2287
46306a17
SM
2288 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2289 New functions.
ef6e0694
KH
2290 (xfont_scripts_cache, xfont_scratch_props): New variables.
2291 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2292 (xfont_list_pattern): Argument changed. Callers changed.
2293 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2294 (xfont_list): Don't reject a font spec with :script property.
2295 (xfont_has_char): Fix setting of encoding.
2296 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2297 xfont_scratch_props.
2298
22992009-05-19 Kenichi Handa <handa@m17n.org>
2300
46306a17 2301 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2302 Callers changed.
2303
23042009-05-18 Kenichi Handa <handa@m17n.org>
2305
2306 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2307
ac71ced7
SM
23082009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2309
2310 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2311 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2312
1c6d1051
YM
23132009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2314
2315 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2316 (x_delete_terminal): Dissociate resource database from display and
2317 then call XrmDestroyDatabase before closing display.
2318
9b9b779c
AR
23192009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2320
2321 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2322 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2323 whether selected frame is viable before raising it (based on patch
2324 by David Reitter), and improve commentary.
2325 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2326
cccd42d5
KH
23272009-05-15 Kenichi Handa <handa@m17n.org>
2328
2329 * font.c (Ffont_spec): Check arguments.
2330
337fbd17
CY
23312009-05-14 Chong Yidong <cyd@stupidchicken.com>
2332
2333 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2334 weight when testing attributes (Bug#3282).
2335
47a6002f
JD
23362009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2337
2338 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2339 what we expect to get in the next ConfigureNotify event.
2340
9cb363db
YM
2341 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2342 before Xft one (Bug#1696).
2343
b9126609
CY
23442009-05-07 David Reitter <david.reitter@gmail.com>
2345
2346 * nsfns.m (Fx_display_planes): Compute bitplanes using
2347 NSBitsPerPixelFromDepth (Bug#3207).
2348
27a69fd9
CY
23492009-05-10 Chong Yidong <cyd@stupidchicken.com>
2350
2351 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2352
00f37552
TTN
23532009-05-10 Ulrich Mueller <ulm@gentoo.org>
2354
2355 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2356
2d82a920
DR
23572009-05-07 David Reitter <david.reitter@gmail.com>
2358
ec7709ba
JB
2359 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2360 Respect mouse face background.
2d82a920 2361
46b0d52d
DR
23622009-05-07 David Reitter <david.reitter@gmail.com>
2363
ec7709ba
JB
2364 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2365 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2366 in ns_update_begin and ns_update_end.
2367
ce1b23bb
SM
23682009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2369
5996e1b7
SM
2370 * nsfns.m (ns_get_screen): Rewrite.
2371 Don't presume selected-frame is of type `ns'.
2372
ba98e3a0
SM
2373 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2374 all drivers.
2375
ce1b23bb
SM
2376 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2377
bcda200f
YM
23782009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2379
2380 * keyboard.h (add_user_signal): Fix typo in extern.
2381
2382 * lisp.h (add_user_signal): Remove extern.
2383
2384 * unexelf.c (unexec): Consider a section to precede the .bss section
2385 if its addresses overlap that of .bss.
2386 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2387 instead of dumping process.
2388
864660a2
SM
23892009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2390
2391 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2392
50da4e56
SM
23932009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2394
2395 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2396
51520a1a
DN
23972009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2398
2399 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2400 any statements.
2401
409ea3a1
AS
24022009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2403
59c4c60f
AS
2404 * process.c (read_process_output): Make sure the current buffer is
2405 always restored.
2406
409ea3a1
AS
2407 * coding.c (record_conversion_result): Don't modify
2408 Vlast_code_conversion_error for successful result.
2409 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2410
56f00ed2
KH
24112009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2412
2413 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2414 (load_charset_map): Remove unnecessary code.
56f00ed2 2415
4491c9d2
DR
24162009-04-30 David Reitter <david.reitter@gmail.com>
2417
35f5b128 2418 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2419 through f24.
2420
6970f632
CY
24212009-04-30 Chong Yidong <cyd@stupidchicken.com>
2422
2423 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2424
2425 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2426 face_at_buffer_position.
2427 (face_before_or_after_it_pos, get_next_display_element)
2428 (note_mouse_highlight): Update face_at_buffer_position call.
2429
2430 * term.c (term_mouse_highlight):
2431 * msdos.c (IT_note_mouse_highlight):
2432 * fontset.c (Finternal_char_font):
35f5b128 2433 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2434
2435 * dispextern.h (face_at_buffer_position): Update prototype.
2436
0c616f63
KH
24372009-04-30 Kenichi Handa <handa@m17n.org>
2438
35f5b128 2439 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2440
ad3aaf33
AS
24412009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2442
2443 * callproc.c (Fcall_process): Fix GC protection. Make sure
2444 current buffer is always restored.
2445
c3c963a0
YM
24462009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2447
2448 * atimer.c (init_atimer): Also clear stopped_atimers.
2449
2450 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2451
7e3386cb
YM
2452 * process.c (create_process): Clean up merger residues of
2453 2008-07-17 change.
2454
91f68422
CY
24552009-04-29 Ulrich Mueller <ulm@gentoo.org>
2456
2457 * lread.c (Vread_circle): New variable.
2458 (read1): Disable recursive read if Vread_circle is nil.
2459
24b34550
KH
24602009-04-29 Kenichi Handa <handa@m17n.org>
2461
2462 * fontset.h (set_default_ascii_font): Delete extern.
2463
2464 * fontset.c (set_default_ascii_font): Delete this unused function.
2465
2466 * frame.c (x_set_font): When ARG is a font-object, check if the
2467 font-object matches with the ASCII font-spec of the frame's
9c358bda 2468 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2469
77bf07e1
AS
24702009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2471
2472 * fns.c (Flocale_info): Protect vector from GC during decoding.
2473
2474 * process.c (Fstart_process): Protect argv strings from GC during
2475 encoding.
2476
2c55aacf
AS
24772009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2478
2479 * sysdep.c: Include <ctype.h>.
2480
b892d3c9
DR
24812009-04-27 David Reitter <david.reitter@gmail.com>
2482
35f5b128 2483 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2484 Remove commented-out code.
2485
9d0644c4
JB
24862009-04-26 Johan Bockgård <bojohan@gnu.org>
2487
2488 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2489
b7053016
JR
24902009-04-25 Jason Rumney <jasonr@gnu.org>
2491
2492 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2493
4e8231f3
YM
24942009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2495
2496 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2497 Swap bytes in short integer if fringe bitmap width > 8.
2498
493dcf2c
KH
24992009-04-23 Kenichi Handa <handa@m17n.org>
2500
2501 * xfaces.c (Fx_list_fonts): If a font size is specified in
2502 PATTERN, set it in returned scalable fonts.
2503
401e9e57
CY
25042009-04-22 Chong Yidong <cyd@stupidchicken.com>
2505
708e05dc
CY
2506 * keyboard.c (Fset_input_meta_mode): Doc fix.
2507
2508 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2509
1ac9108a 2510 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2511
2512 * coding.c (Fterminal_coding_system): Doc fix.
2513
2514 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2515 (Fx_display_pixel_height, Fx_display_planes)
2516 (Fx_display_color_cells, Fx_server_max_request_size)
2517 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2518 (Fx_display_mm_height, Fx_display_mm_width)
2519 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2520 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2521 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2522 (check_x_display_info): Handle terminal objects instead of
2523 terminal ids.
2524
401e9e57
CY
2525 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2526 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2527 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2528 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2529
df80c7f0
KH
25302009-04-21 Kenichi Handa <handa@m17n.org>
2531
5a8f12af 2532 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2533 (font_score): Check AVGWIDTH too.
908567ef 2534
df80c7f0
KH
2535 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2536 worst case.
1ac9108a
SM
2537 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2538 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2539
705af33f
JR
25402009-04-19 Jason Rumney <jasonr@gnu.org>
2541
2542 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2543 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2544
2545 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2546 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2547 get_phys_cursor_geometry.
2548
b71ac3dd 2549 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2550 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2551 using get_phys_cursor_geometry.
2552
2553 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2554 correctly calculated.
2555
dc2933eb
JD
25562009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2557
1ac9108a
SM
2558 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2559 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2560 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2561 is deprecated.
2562
973e7849
AS
25632009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2564
2565 * font.c (font_put_frame_data): Use xfree instead of free.
2566
314d66f4
JB
25672009-04-17 Juanma Barranquero <lekktu@gmail.com>
2568
2569 * w32font.c (Qja, Qko): Remove declarations.
2570 (syms_of_w32font): Don't DEFSYM them.
2571
cf702558
CY
25722009-04-17 Chong Yidong <cyd@stupidchicken.com>
2573
2574 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2575
2576 * font.h (Qja, Qko): Extern them.
2577
2578 * ftfont.c (Qja, Qko): Remove declarations.
2579
2580 * xfont.c (Qja, Qko): Remove declarations.
2581
b50504f5
KH
25822009-04-17 Kenichi Handa <handa@m17n.org>
2583
bde25748
KH
2584 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2585 string from a vector to handle Latin-1 characters correctly.
2586
b50504f5
KH
2587 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2588 entity even if the cache hits.
2589
f4646fff
AS
25902009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2591
2592 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2593 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2594
e7deaab0
AS
2595 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2596 * lisp.h: Adjust prototypes.
2597
0a0e7d49
CY
25982009-04-16 Chong Yidong <cyd@stupidchicken.com>
2599
2600 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2601 change (Bug#3003).
2602
3c908a57
KH
26032009-04-16 Kenichi Handa <handa@m17n.org>
2604
1ac9108a 2605 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2606
2607 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2608 adstyle.
2609
2610 * ftfont.c (Qja, Qko): Don't make them static.
2611 (enum ftfont_cache_for): New enum.
2612 (fc_charset_table): Undo the previous change.
2613 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2614 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2615 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2616 non-scarable font, try to get AVERAGE_WIDTH.
2617 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2618 Change ft_face_cache from a list of a hash-table. Don't check
2619 `ja' and `ko' adstyle here.
2620 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2621 FTFONT_CACHE_FOR_CHARET.
2622 (ftfont_get_charset): Undo the previous change.
1ac9108a 2623 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2624 (ftfont_close): Likewise.
2625 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2626
2627 * font.c (font_sort_entites): Change the meaning of the arg
2628 BEST-ONLY. Don't optimize for VEC of lenght 1.
2629 (font_select_entity): Just return the value of font_sort_entites.
2630
2631 * xfaces.c (merge_face_vectors): Reflect font properties in
2632 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2633 font_clear_prop if a face attribute doesn't change.
2634
3c908a57
KH
2635 * charset.h (charset_ksc5601): Extern it.
2636
2637 * charset.c (charset_ksc5601): New variable.
2638 (Fdefine_charset_internal): Set charset_ksc5601.
2639 (init_charset_once): Initialize charset_ksc5601 to -1.
2640
d65859c3
DN
26412009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2642
2643 * fileio.c (history_delete_duplicates): Remove unused declaration.
2644
2645 * callint.c (history_delete_duplicates): New declaration.
2646 (Fcall_interactively): Remove command history duplicates when
2647 history_delete_duplicates is true.
2648
3ba010e5
EZ
26492009-04-14 Eli Zaretskii <eliz@gnu.org>
2650
2651 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2652
06f19b91
KH
26532009-04-14 Kenichi Handa <handa@m17n.org>
2654
2655 * font.c (Ffont_info): Fix docstring. Fix the second element of
2656 the returned value (bug#2949).
2657
2cce8bfc
CY
26582009-04-14 Chong Yidong <cyd@stupidchicken.com>
2659
2660 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2661
d156542d
KH
26622009-04-14 Kenichi Handa <handa@m17n.org>
2663
2664 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2665 encoding charset is ascii_compatible.
2666
2667 * charset.c (Fdefine_charset_internal): Make charset
2668 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2669 code_offset is 0, and covers all ASCII characters.
2670
86fa089e
SM
26712009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2672
2673 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2674 (ns_string_to_pasteboard_internal):
2675 * nsmenu.m (process_dialog):
2676 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2677 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2678 * lisp.h (Fx_load_color_file): Declare.
2679
a8a3728b
KH
26802009-04-13 Kenichi Handa <handa@m17n.org>
2681
1ac9108a 2682 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2683 (font_select_entity): Suppress the code to optimize for the same
2684 kind of fonts.
2685 (font_load_for_lface): Get a font that supports at least ASCII
2686 characters.
2687
2688 * ftfont.c (Qja, Qko): New variables.
2689 (fc_charset_table): Delete uniquifier data for iso8859-1.
2690 (ftfont_get_latin1_charset): New function.
2691 (get_adstyle_property): New function.
2692 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2693 bitmap fonts.
2694 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2695 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2696 `ko' or `ja'.
2697 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2698 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2699 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2700 property.
2701 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2702 (syms_of_ftfont): DEFSYM Qja and Qko.
2703
483670b5
KH
27042009-04-09 Kenichi Handa <handa@m17n.org>
2705
12b55765
KH
2706 * charset.c (map_charset_chars): For a charset of `superset'
2707 method, fix calculation of code range.
2708
483670b5
KH
2709 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2710 from the list of extra properties.
2711 (font_clear_prop): Be sure to delete `:name' font property.
2712
57d3b93b
KH
27132009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2714
b4b2c2ca
YM
2715 * dispnew.c (redraw_overlapping_rows): Fix detection of
2716 overlapping for topmost and bottommost rows.
2717
1ac9108a 2718 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2719
472c3609
JR
27202009-04-06 Jason Rumney <jasonr@gnu.org>
2721
2722 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2723
ab193662
KH
27242009-04-06 Kenichi Handa <handa@m17n.org>
2725
2726 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2727
2728 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2729
0c26f026
KH
27302009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2731
2732 * ftfont.c (ftfont_open): Fix checking of the return value of
2733 FT_Load_Char. Fix setting font->underline_thickness.
2734
e173bbce
CY
27352009-04-04 Chong Yidong <cyd@stupidchicken.com>
2736
2737 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2738 (Fterminal_parameters, Fterminal_parameter)
2739 (Fset_terminal_parameter): In doc string, refer to terminal
2740 objects rather than terminal ids.
2741
693a2698
EZ
27422009-04-04 Eli Zaretskii <eliz@gnu.org>
2743
2744 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2745 ret_lim_data. (Bug#2867)
2746
d5221487
CY
27472009-04-03 Chong Yidong <cyd@stupidchicken.com>
2748
2749 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2750 so they don't get wider than the window, matching 2006-01-23
2751 change to the partner function in xdisp.c (Bug#2800).
2752
223509a3
KH
27532009-04-03 Kenichi Handa <handa@m17n.org>
2754
2755 * print.c (print_object): Make each lowest sub_char_table start a
2756 new line (Bug#2866).
2757
74fcd0b1
KH
27582009-04-02 Kenichi Handa <handa@m17n.org>
2759
2760 * fontset.c (fontset_font): Record no-font when a fontset
2761 explicitly tells not to try another font-specs.
2762
c542407d
SM
27632009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2764
2765 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2766
e3869731
KH
27672009-03-30 Kenichi Handa <handa@m17n.org>
2768
d8d2f142
KH
2769 * fontset.c (fontset_from_font): Specify only registry in a
2770 font-spec for all characters supported by that registry.
2771
e3869731
KH
2772 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2773 even if HAVE_M17N_FLT is not defined.
2774
5da5f805
CY
27752009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2776
2777 * ftfont.c: Conditionalize prototyping and use of
2778 ftfont_variation_glyphs.
2779
ab226c50
SM
27802009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2781
9628fed7
SM
2782 * frame.c (delete_frame): Work around compiler bug.
2783
2784 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2785 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2786 Some more EMACS_INT.
2787 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2788
2789 * xdisp.c (dump_glyph): Fix typo.
2790
ae19ba7c
SM
2791 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2792 (adjust_markers_gap_motion, adjust_markers_for_delete)
2793 (adjust_markers_for_insert, adjust_point)
2794 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2795 (make_gap, copy_text, count_size_as_multibyte, insert)
2796 (insert_and_inherit, insert_before_markers)
2797 (insert_before_markers_and_inherit, insert_1)
2798 (count_combining_before, count_combining_after, insert_1_both)
2799 (insert_from_string, insert_from_string_before_markers)
2800 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2801 (insert_from_buffer_1, adjust_after_replace)
2802 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2803 (replace_range_2, del_range, del_range_1, del_range_byte)
2804 (del_range_both, del_range_2, modify_region)
2805 (prepare_to_modify_buffer, signal_before_change)
2806 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2807 for buffer positions and sizes.
2808 * lisp.h: Adjust prototypes accordingly.
2809
2810 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2811 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2812 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2813
ab226c50
SM
2814 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2815
46dfb8fb
JD
28162009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2817
2818 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2819 lines and columns so we keep the same pixel height and width.
2820
2821 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2822 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2823 (x_handle_net_wm_state): New function to update frame parameter
2824 fullscreen.
2825 (x_term_init): Initialize atoms for _NET_WM_STATE.
2826
2827 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2828
d347e494
SM
28292009-03-27 Kevin Ryde <user42@zip.com.au>
2830
2831 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2832 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2833 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2834 (Fgpm_mouse_stop): Pass that new parameter.
2835 * termhooks.h (close_gpm): Adjust prototype.
2836
84db11d6
SM
28372009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2838
c95a5008
SM
2839 * lisp.h (Fx_focus_frame): Declare.
2840
84db11d6
SM
2841 * callint.c (Fcall_interactively): For '^' just delegate the work to
2842 handle-shift-selection.
2843 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2844
0a1958d6
CY
28452009-03-24 Chong Yidong <cyd@stupidchicken.com>
2846
0bfdff23
CY
2847 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2848
0a1958d6
CY
2849 * data.c (Qinteractive_form): New variable.
2850 (Finteractive_form): Use it.
2851
2852 * eval.c (Fcommandp): Use Qinteractive_form.
2853
58aec0d6
JR
28542009-03-24 Jason Rumney <jasonr@gnu.org>
2855
2856 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2857 Calculate total size precisely. Decode environment variables
2858 before substituting. (Bug#38)
2859
553dd618
KH
28602009-03-24 Kenichi Handa <handa@m17n.org>
2861
2862 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2863 encoding (Bug#2722).
553dd618 2864
c39ea606
JD
28652009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2866
2867 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2868 that gdpy is set.
2869
bc9b2b5e
AM
28702009-03-22 Alan Mackenzie <acm@muc.de>
2871
2872 * callint.c (Finteractive): Clarify the doc string - even
2873 promptless elements need \n separators.
2874
9f995a76
JR
28752009-03-22 Jason Rumney <jasonr@gnu.org>
2876
2877 * w32term.c (syms_of_w32term): Doc fix for
2878 x-use-underline-position-properties.
2879
22749e9a
EZ
28802009-03-21 Eli Zaretskii <eliz@gnu.org>
2881
2882 * w32.c (getpwuid): Change argument type to unsigned.
2883 (struct w32_id): Change type of `rid' member to unsigned.
2884 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2885 argument ID to unsigned. All callers changed.
2886 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2887
e00553bf
EZ
28882009-03-20 Eli Zaretskii <eliz@gnu.org>
2889
2890 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2891 negative, produce a float value.
2892
2893 * dired.c (make_uid, make_gid): New functions.
2894 (Ffile_attributes): Use them to avoid negative UID and GID.
2895
f761d6b6
JB
28962009-03-20 Juanma Barranquero <lekktu@gmail.com>
2897
2898 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2899 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2900 Fix typos in docstrings.
2901
d507f8d7
KH
29022009-03-19 Kenichi Handa <handa@m17n.org>
2903
2904 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2905 changed, use font_load_for_lface to get a new font object.
2906 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2907
2908 * frame.c (x_set_font): Handle the case that ARG is a cons.
2909
c68845e0
GM
29102009-03-19 Glenn Morris <rgm@gnu.org>
2911
2912 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2913
bfa49dd1
CY
29142009-03-19 Chong Yidong <cyd@stupidchicken.com>
2915
2916 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2917
8458d4c1
KH
29182009-03-19 Kenichi Handa <handa@m17n.org>
2919
2920 * charset.c (load_charset_map_from_file): When a mapfile can't be
2921 loaded, signal an error.
2922
78e7d1fe
EZ
29232009-03-18 Eli Zaretskii <eliz@gnu.org>
2924
2925 * dired.c (Ffile_attributes): Make sure UID and GID are always
2926 positive, even if the value is too large for a positive EMACS_INT.
2927 Doc fix.
2928
2929 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2930
5da9fdfa
YM
29312009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2932
2933 * xmenu.c (xdialog_show): Move Fredisplay call ...
2934 (Fx_popup_dialog): ... here.
2935
7519c40d
SM
29362009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2937
2938 * dired.c (file_name_completion): Disable the first optimization just
2939 installed, since it is not implemented correctly.
2940
2cd298e2
SM
29412009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2942
2943 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2944 only if the entry can affect bestmatch.
2cd298e2
SM
2945 Stop the search early, as Ftry_completion already does.
2946
48d37adf
CY
29472009-03-17 Chong Yidong <cyd@stupidchicken.com>
2948
e10c9c93 2949 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2950
9286b16a
CY
29512009-03-15 Chong Yidong <cyd@stupidchicken.com>
2952
2953 * keyboard.c (parse_menu_item): Don't display remappings as menu
2954 equivalent bindings (Bug#788).
2955
f7b146dc
JR
29562009-03-15 Jason Rumney <jasonr@gnu.org>
2957
2958 * w32term.h (WM_EMACS_PAINT): New message.
2959 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2960 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2961 before passing to lisp thread. (Bug#950)
2962
f761d6b6 29632009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2964
d93f9575
CY
2965 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2966 variable as it was never reset.
2967 (ns_term_init): Remove initialization of Lisp-settable defaults
2968 and ns_expand_space.
2969 (-setPanelFromDefaultValues): Remove ns_expand_space.
2970 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2971 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2972 i.e. no additional spacing, similar to Carbon port.
2973
d93f9575
CY
2974 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2975 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2976
305018ec
JD
29772009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2978
2979 * sound.c (alsa_configure): Remove call to deprecated
2980 snd_pcm_sw_params_set_xfer_align.
2981
f761d6b6 29822009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2983
2984 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2985 after clicking in a detached tool bar.
2986 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2987
46e722a9
SM
29882009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2989
348db3dd
SM
2990 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2991 int/Lisp_Object mixup).
46e722a9 2992
a3d16f39
KH
29932009-03-13 Kenichi Handa <handa@m17n.org>
2994
2995 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2996 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2997 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2998 (set_fontset_font): Change ARG to a vector. Handle range_list in
2999 ARG correctly.
3000 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3001 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3002 the above change.
3003 (fontset_from_font): Fix previous change.
fe24f56a 3004 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3005 entry. If FONTSET is the default fontset, don't set the extra
3006 slot of the returning char-table.
3007
b066e6b6
JB
30082009-03-12 Juanma Barranquero <lekktu@gmail.com>
3009
3010 * nsfns.m (Fx_close_connection): Doc fix.
3011 (Fns_do_applescript): Reflow docstring.
3012 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3013 (Fx_display_pixel_width, Fx_display_pixel_height)
3014 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3015 Fix typos in docstrings.
3016 (Fns_set_alpha): Fix typos in error messages.
3017
d472514e 30182009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3019
d472514e 3020 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3021 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3022 were used for such events.
3023
d472514e
JB
3024 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3025 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3026
d472514e 3027 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3028 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3029
fb930676
KH
30302009-03-11 Kenichi Handa <handa@m17n.org>
3031
ff85581a
KH
3032 * font.h (font_open_by_spec): Extern it.
3033
c50b7e98
KH
3034 * font.c (font_open_by_spec): New function.
3035 (font_open_by_name): Use font_open_by_spec.
3036
fb930676
KH
3037 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3038 fontset of the frame.
3039
3040 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3041 modify the default font of frames that use this fontset.
3042 (num_auto_fontsets): New variable.
3043 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3044 name. Be sure to set FONTSET_ASCII to the correct font name.
3045 (update_auto_fontset_alist): New function.
3046
df4e8455
JB
30472009-03-11 Juanma Barranquero <lekktu@gmail.com>
3048
3049 * makefile.w32-in: Update dependencies.
3050
0a375797
AR
30512009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3052
3053 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3054
61313fa3
SM
30552009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3056
3057 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3058
b55103fb
CY
30592009-03-10 Chong Yidong <cyd@stupidchicken.com>
3060
3061 * lread.c (Feval_buffer): Doc fix.
3062
dde2559c
KH
30632009-03-09 Kenichi Handa <handa@m17n.org>
3064
3065 * charset.c (Qfile_name_handler_alist): Extern it.
3066 (load_charset_map_from_file): Temporarily bind
3067 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3068
df4e8455 30692009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3070
47f588bb
GM
3071 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3072 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3073
4ddf94bd
AR
30742009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3075
4c9bdfc2
AR
3076 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3077 (x_set_window_size): Change back to calculated method of setting
3078 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3079 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3080 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3081
fe41ae9e
AR
3082 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3083
4c9bdfc2
AR
3084 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3085 accelerator in parens under GNUstep.
3086
825d0875
KH
30872009-03-06 Kenichi Handa <handa@m17n.org>
3088
3089 These changes are to detect incorrect composition sequence without
f3b3be74 3090 looking ahead the source. (Bug#2370)
825d0875
KH
3091
3092 * coding.h: Include "composite.h".
3093 (enum compisition_state): New enum.
3094 (struct compisition_status): New struct.
3095 (struct iso_2022_spec): New member cmp_status.
3096 (struct emacs_mule_spec): New struct.
3097 (struct coding_system): New members ctext_extended_segment_len and
3098 embedded_utf_8. Change the union member
3099 spec.emacs_mule_full_support to spec.emacs_mule.
3100
3101 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3102 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3103 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3104 (ADD_COMPOSITION_DATA): New arg nbytes.
3105 (emacs_mule_char): New arg cmp_status.
3106 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3107 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3108 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3109 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3110 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3111 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3112 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3113 (EMACS_MULE_COMPOSITION_END): New macro.
3114 (emacs_mule_finish_composition): New function.
3115 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3116 (decode_coding_emacs_mule): Avoid long looking ahead while
3117 handling composition.
3118 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3119 (ENCODE_COMPOSITION_RULE): New macro.
3120 (finish_composition): New function.
3121 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3122 (DECODE_COMPOSITION_START): New implementation.
3123 (DECODE_COMPOSITION_END): Likewise.
3124 (STORE_COMPOSITION_RULE): New macro.
3125 (decode_coding_iso_2022): Avoid long looking ahead while handling
3126 composition, CTEXT extended segment, and embedded UTF-8.
3127 (setup_coding_system): For a coding of type iso-2022, reset
3128 CODING_ISO_EXTSEGMENT_LEN (coding) and
3129 CODING_ISO_EMBEDDED_UTF_8 (coding).
3130 (get_translation): Delete arguments last_block, from_nchars,
3131 to_nchars. Callers changed.
3132 (produce_chars): Don't modify charbuf. Adjusted for the change of
3133 get_translation.
98a326f7 3134 (produce_composition): Adjust for the new annotation sequence.
825d0875 3135 (handle_composition_annotation): Likewise.
98a326f7 3136 (consume_chars): Adjust for the change of get_translation.
825d0875 3137
ccbc4452
AR
31382009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3139
4ddf94bd 3140 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3141
988a7ddb
KH
31422009-03-05 Kenichi Handa <handa@m17n.org>
3143
3144 * font.c (font_select_entity): New function.
3145 (font_find_for_lface): Use font_select_entity to select a font.
3146
3147 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3148 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3149 font with C restriction.
3150
98a326f7 31512009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3152
be1bce46 3153 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3154
10ea2b82
JR
31552009-03-04 Jason Rumney <jasonr@gnu.org>
3156
2c93b248 3157 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3158 characters that have already been read. (Bug#2569)
2c93b248 3159
10ea2b82
JR
3160 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3161 Log an error message if check_image_size failed.
3162 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3163 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3164
71a0c011
EZ
31652009-03-02 Eli Zaretskii <eliz@gnu.org>
3166
3167 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3168 when decoding process output.
3169
2f63bba8
RS
31702009-03-01 Richard M Stallman <rms@gnu.org>
3171
3172 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3173
3174 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3175
0a9564cb
EZ
31762009-02-28 Eli Zaretskii <eliz@gnu.org>
3177
3178 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3179 (decode_coding_emacs_mule, decode_coding_iso_2022)
3180 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3181 (decode_coding_raw_text, decode_coding_charset)
3182 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3183 Honor inhibit-eol-conversion. (Bug #2186)
3184
449148b3
JR
31852009-02-28 Jason Rumney <jasonr@gnu.org>
3186
3187 * coding.c (detect_coding_charset): If not checking latin extra,
3188 fail on characters between 0x80 and 0xA0. (Bug#2354)
3189
a4aee864
EZ
31902009-02-28 Eli Zaretskii <eliz@gnu.org>
3191
3192 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3193 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3194
d88bee5a
GM
31952009-02-27 Glenn Morris <rgm@gnu.org>
3196
3197 * callint.c (Finteractive): Doc fix.
3198
a808f22d
KH
31992009-02-27 Kenichi Handa <handa@m17n.org>
3200
3201 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3202
caf8d60c
CY
32032009-02-27 Chong Yidong <cyd@stupidchicken.com>
3204
3205 * font.c (font_style_to_value): Set value for unknown symbols to
3206 100 instead of 255.
b61137ea
CY
3207 (weight_table, slant_table, width_table): Treat "unspecified" as
3208 the default value.
caf8d60c 3209
1a0de25c
JB
32102009-02-26 Juanma Barranquero <lekktu@gmail.com>
3211
3212 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3213
8fc45744
JB
32142009-02-25 Juanma Barranquero <lekktu@gmail.com>
3215
107bd7d1
JB
3216 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3217 error as soon as a recursive load is detected.
8fc45744 3218
f097e223
AR
32192009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3220
3221 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3222 before caching.
3223
8810a12f
KH
32242009-02-24 Kenichi Handa <handa@m17n.org>
3225
3226 * fontset.c (fontset_find_font): Fix the condition for checking
3227 unavailable font.
3228
2c7d1565
GM
32292009-02-24 Glenn Morris <rgm@gnu.org>
3230
3231 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3232 whitespace that confuses documentation.
3233
a20878b6
MB
32342009-02-23 Miles Bader <miles@gnu.org>
3235
3236 * process.c (Flist_system_processes, Fprocess_attributes)
3237 (syms_of_process): Rename `system-process-attributes' to
3238 `process-attributes'.
3239
b3b58c01
AS
32402009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3241
1b3b981b
AS
3242 * coding.h (struct coding_system): Make safe_charsets a pointer to
3243 unsigned char.
3244 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3245 being 255.
3246 (SAFE_CHARSET_P): Likewise.
3247 (setup_iso_safe_charsets): Properly setup safe_charsets.
3248 (Fdefine_coding_system_internal): Likewise.
3249 (setup_coding_system): Likewise. Remove unneeded casts.
3250 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3251 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3252 unneeded casts.
3253
b3b58c01
AS
3254 * insdel.c (del_range_2): Don't modify gap contents when called
3255 from decode_coding_object. (Bug#1809)
3256
0b6f228c
CY
32572009-02-21 Chong Yidong <cyd@stupidchicken.com>
3258
3259 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3260 Qfont_object.
3261 (Ftype_of): Recognize font objects.
3262
3263 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3264
3265 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3266 moved to data.c.
3267
52f8870b
AR
32682009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3269
3270 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3271 async_iconified. Based on a patch by Christian Lynbech
3272 <christian.lynbech@tieto.com>.
3273 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3274
7087d5e9
GM
32752009-02-20 Glenn Morris <rgm@gnu.org>
3276
3277 * syntax.c (Fskip_chars_forward): Fix doc typo.
3278
41d2ceef
CY
32792009-02-20 Chong Yidong <cyd@stupidchicken.com>
3280
3281 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3282
1a3b7ca6
CY
32832009-02-19 Chong Yidong <cyd@stupidchicken.com>
3284
3285 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3286
73cce38d
KH
32872009-02-19 Kenichi Handa <handa@m17n.org>
3288
3289 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3290 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3291
a51092ee
DN
32922009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3293
3294 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3295
c423ecca
KH
32962009-02-18 Kenichi Handa <handa@m17n.org>
3297
3298 * font.c (font_check_otf_features): Fix handling of `nil' element.
3299 (Ffont_spec): Describe :lang and :otf in the docstring.
3300
4c1958f4
AS
33012009-02-16 Andreas Schwab <schwab@suse.de>
3302
3303 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3304 string.
3305
5704f39a
KH
33062009-02-16 Kenichi Handa <handa@m17n.org>
3307
3308 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3309 (Bug#1723)
5704f39a 3310
8f0085aa
CY
33112009-02-14 Chong Yidong <cyd@stupidchicken.com>
3312
a057d86a 3313 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3314
3315 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3316 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3317
aff01dd9
EZ
33182009-02-14 Eli Zaretskii <eliz@gnu.org>
3319
3320 * msdos.c (MAX_SCREEN_BUF): New macro.
3321 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3322 Encode the entire run of glyphs sharing the same face, instead of
3323 doing that one glyph at a time (fixes a bug with displaying
3324 double-size characters).
3325
ba301db3
AR
33262009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3327
3328 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3329
3330 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3331 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3332 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3333
3334 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3335 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3336
51d861de
SM
33372009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3338
3339 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3340 invisible areas.
3341
7fed8996
JR
33422009-02-12 Jason Rumney <jasonr@gnu.org>
3343
631ea4fb
JR
3344 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3345 (add_font_entity_to_list): Call check_face_name even when family
3346 is unspecified.
3347
cb4a3e42
JR
3348 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3349 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3350 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3351
7fed8996 3352 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3353 raster fonts. (Bug#2219)
7fed8996 3354
895416e3
KH
33552009-02-12 Kenichi Handa <handa@m17n.org>
3356
3357 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3358 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3359 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3360 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3361 (find_automatic_composition): While looking forward and backward,
3362 check static composition. Fix where to stop looking forward.
3363 (composition_adjust_point): Fix checking of static composition.
3364 (Fcomposition_get_gstring): Pay attention to
1dacf998 3365 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3366
3367 * lisp.h (fast_looking_at): Extern it.
3368
3369 * search.c (fast_looking_at): New function.
3370
51d861de 3371 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3372 <struct glyph>.u.cmp.to.
3373 (append_composite_glyph): Likewise.
3374
51d861de 3375 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3376 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3377 composition.
51d861de 3378 (append_composite_glyph): Adjust for the change of
895416e3
KH
3379 <strcut glyph>.u.cmp.to.
3380
8510724d
JB
33812009-02-11 Juanma Barranquero <lekktu@gmail.com>
3382
3383 * casetab.c (init_casetab_once):
3384 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3385 * font.c (font_update_lface):
3386 * fontset.c (Fnew_fontset):
3387 * ftfont.c (ftfont_drive_otf):
3388 * xfont.c (xfont_open):
3389 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3390
294fa707
SM
33912009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3392
3393 * fileio.c (Fwrite_region): !NILP -> CONSP.
3394
b5bfebec
AS
33952009-02-10 Andreas Schwab <schwab@suse.de>
3396
3397 * process.c (send_process): Properly relocate pointer into data
adab88bd 3398 when using encoded data. (Bug#2272)
b5bfebec 3399
cb84a2be
KH
34002009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3401
3402 * coding.c (detect_coding_charset): Fix previous change.
3403
89e09428
JR
34042009-02-08 Jason Rumney <jasonr@gnu.org>
3405
3406 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3407 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3408
4470a277
AS
34092009-02-07 Andreas Schwab <schwab@suse.de>
3410
3411 * unexelf.c (unexec): Fix error message.
3412
3175b12a
AR
34132009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3414
3415 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3416 when modal window is active. (Bug #2152)
3175b12a
AR
3417 (applicationShouldTerminate:): Remove now-unneeded while loop
3418 around NSRunAlertPanel.
3419
3420 * nsmenu.m (popupSession): New file-global variable.
3421 (pop_down_menu): End the popupSession before closing dialog.
3422 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3423 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3424 don't query NSApp for events (just sleep instead).
3425
8434d0b8
EZ
34262009-02-07 Eli Zaretskii <eliz@gnu.org>
3427
51d861de
SM
3428 * coding.c (syms_of_coding) <translation-table-for-input>:
3429 Modify doc string to discourage use for character code unification.
8434d0b8 3430
aa82edfd
CY
34312009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3432
3433 * atimer.c (run_timers): Update pending_atimers.
3434
2d283c7c
CY
34352009-02-06 Chong Yidong <cyd@stupidchicken.com>
3436
eb306cab
CY
3437 * image.c (svg_load_image): Fix last change.
3438
2d283c7c
CY
3439 * xfns.c (Fx_create_frame): Signal an error if no font is
3440 found (Bug#2147).
3441
4d8e170e
JB
34422009-02-05 Juanma Barranquero <lekktu@gmail.com>
3443
3444 * character.c (syms_of_character) <script-representative-chars>:
3445 Fix typo in docstring.
3446
c96169a0
AR
34472009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3448
3449 * nsmenu.m (pop_down_menu): New function.
3450 (ns_popup_dialog): Call it on unwind.
3451 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3452 call timer_check() (Bug#2154).
3453 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3454 handling_signal is set.
3455 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3456
31fd7c5c 3457 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3458
3459 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3460
3461 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3462
51d861de
SM
3463 * keyboard.c (poll_for_input_1, handle_async_input):
3464 Set handling_signal under HAVE_NS.
c96169a0 3465
aacd8ba1
GM
34662009-02-04 Glenn Morris <rgm@gnu.org>
3467
3468 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3469
4cb75c4b
KH
34702009-02-04 Kenichi Handa <handa@m17n.org>
3471
3472 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3473
3474 * charset.c (Fchar_charset): New optional arg restriction.
3475
3476 * coding.h (coding_system_charset_list): Extern it.
3477
3478 * coding.c (coding_system_charset_list): New function.
3479
3480 * composite.c: Include coding.h and termhooks.h.
3481 (composition_gstring_p): Fix for the terminal case.
3482 (composition_gstring_width): Likewise.
3483 (fill_gstring_body): Likewise.
3484 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3485 the frame.
3486 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3487 is within a composition.
867d4bb3 3488 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3489
3490 * term.c (encode_terminal_code): Fix handling of composition.
3491 (produce_composite_glyph): For static composition, get pixel_width
3492 from struct composition.
3493
826ba17e
AS
34942009-02-02 Andreas Schwab <schwab@suse.de>
3495
3496 * unexelf.c (unexec): Handle unaligned bss offset.
3497
8ad093db
AR
34982009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3499
3500 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3501 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3502
8ad093db
AR
3503 * keyboard.c (handle_interrupt): Don't call
3504 quit_throw_to_read_char() under NS.
d0a76a6e 3505
8ad093db
AR
3506 * blockinput.h: Remove NS-specific code.
3507
4d18a7a2
DN
35082009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3509
db878925
DN
3510 * dispnew.c (window_change_signal): Don't try to get the size of a
3511 suspended tty frame.
3512 * term.c (Fresume_tty): Resize if the size has changed while the
3513 tty was suspended.
3514
4d18a7a2
DN
3515 * alloc.c (mark_stack): Properly conditionalize previous change.
3516
8984df7c
JB
35172009-01-30 Juanma Barranquero <lekktu@gmail.com>
3518
3519 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3520 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3521 Remove; this code is not used on Windows.
3522
75f4f1ac
EZ
35232009-01-30 Eli Zaretskii <eliz@gnu.org>
3524
3525 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3526 EOLs that also has stray ^M characters.
3527
07a1e794
JB
35282009-01-30 Juanma Barranquero <lekktu@gmail.com>
3529
3530 * atimer.c (run_timers, alarm_signal_handler):
3531 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3532 * w32inevt.c (w32_console_read_socket):
3533 * w32term.c (w32_read_socket):
3534 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3535
a8b11cc9
CY
35362009-01-30 Chong Yidong <cyd@stupidchicken.com>
3537
3538 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3539 Initialize it as a relative filename pattern.
3540 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3541 (Fcall_process_region): Simplify temp file creation using
3542 temporary-file-directory.
3543
c279587b
EZ
35442009-01-29 Eli Zaretskii <eliz@gnu.org>
3545
3546 * msdos.c: Rename pending_signals to msdos_pending_signals.
3547 (sig_suspender, sigprocmask): Adjust.
3548
a8fe3242
CY
35492009-01-29 Chong Yidong <cyd@stupidchicken.com>
3550
3551 * keyboard.c (pending_signals): New var.
3552 (poll_for_input, input_available_signal, init_keyboard): Set it.
3553 (process_pending_signals): New function.
3554
3555 * lisp.h (QUIT): Check pending_signals instead of
3556 interrupt_input_pending. Use process_pending_signals.
3557
51d861de 3558 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3559
51d861de 3560 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3561
3562 * sysdep.c (emacs_write): Use process_pending_signals.
3563
3564 * xterm.c (XTread_socket): Update pending_signals.
3565
3566 * w32term.c (w32_read_socket): Update pending_signals.
3567
3568 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3569
6570a1c4
KH
35702009-01-29 Kenichi Handa <handa@m17n.org>
3571
3572 * xftfont.c (xftfont_has_char): New function.
3573 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3574
d72a4afa
AR
35752009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3576
3577 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3578 under GNUstep.
3579 (ns_query_color): New declaration.
3580
3581 * nsterm.m (ns_confirm_quit): New variable.
3582 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3583 (EmacsApp-applicationShouldTerminate:): Use it.
3584 (EmacsPrefsController): Let user set it.
3585 (ns_query_color): New function.
3586 (ns_defined_color): Use it.
3587 (ns_initialize): Drop.
3588 (ns_term_init): Add two lines from ns_initialize(), and set
3589 input_interrupt_mode to nil.
3590
3591 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3592 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3593
9fe78804
KH
35942009-01-28 Kenichi Handa <handa@m17n.org>
3595
3596 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3597 (fontset_get_font_group): Remember that no font-group is specified
3598 for C.
9fe78804 3599
fa57de36
CY
36002009-01-27 Chong Yidong <cyd@stupidchicken.com>
3601
930600e9
CY
3602 * fns.c (concat): Check for string overflow (bug#1787).
3603
fa57de36
CY
3604 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3605 Quadruple undo limits (bug#1501).
3606
7179ce7b
KH
36072009-01-27 Kenichi Handa <handa@m17n.org>
3608
3609 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3610 directly use GT_Get_Char_index.
3611
3612 * xftfont.c (struct xftfont_info): New member `index'.
3613
3614 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3615 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3616
5be8fcc0
CY
36172009-01-26 Kenichi Handa <handa@m17n.org>
3618
3619 * fontset.c (fontset_find_font): Fix handling of non-cons return
3620 value of fontset_get_font_group.
3621 (fontset_font): Revert last change.
3622
19ae3e61
JR
36232009-01-26 Jason Rumney <jasonr@gnu.org>
3624
3625 * w32font.c (w32font_list_internal): Return quickly if registry is
3626 unknown. Simplify final return.
3627 (add_font_entity_to_list): Break complex logic down into more
3628 manageable chunks. Move unknown registry check to
3629 w32font_list_internal.
3630
8612b71a
AR
36312009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3632
3633 Changes to remove Feval calls from GUI under NS.
3634
d8038940
JB
3635 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3636 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3637 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3638
3639 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3640 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3641 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3642 instead of NON_ASCII_KEYSTROKE_EVENT.
3643 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3644 (EmacsApp-applicationShouldTerminate:): Query user.
3645 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3646 instead of Feval.
3647
3648 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3649
3650 * keyboard.c (kbd_buffer_get_event): Check for it.
3651 (keys_of_keyboard): Define lispy keys for
3652 ns-put/unput-working-text.
3653
3654 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3655 versions.
3656 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3657
6288ae55
CY
36582009-01-25 Chong Yidong <cyd@stupidchicken.com>
3659
3660 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3661 setting current_buffer directly. (Bug#2044)
6288ae55 3662
289e7f8f
CY
36632009-01-24 Chong Yidong <cyd@stupidchicken.com>
3664
5ce87308 3665 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3666 any work. (Bug#1952, bug#1990).
5ce87308 3667
64cc3cf6 3668 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3669
b3243e6f
AR
36702009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3671
3672 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3673 (ns_no_defaults): New declaration.
3674 (main): Use it.
e0d2e69a 3675
d900b2af 3676 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3677
d900b2af 3678 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3679
d900b2af
AR
3680 * nsterm.m (ns_no_defaults): New variable.
3681 (ns_initialize): Don't read defaults when ns_no_defaults.
3682 (EmacsView-readSelectionFromPasteboard:)
3683 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3684 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3685 (ns_dumpglyphs_stretch): New function.
3686 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3687 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3688
e0d2e69a
AR
3689 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3690
3ac71f5d
CY
36912009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3692
3693 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3694 call for Sparc64.
3695
3fe53a83
AR
36962009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3697
3698 * nsfns.m:
3699 * nsgui.h:
3700 * nsmenu.m:
3701 * nsselect.m:
3702 * nsterm.h:
3703 * nsterm.m: Remove '23' comments that indicated code added during
3704 update from emacs-20 -> emacs-23.
3705
10f87c6f 37062009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3707
3708 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3709 ns_alternate_modifier. (Bug#1217)
a3b53a85 3710
c7cef62d
AR
3711 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3712 Display all shortcuts, including those w/o super modifier.
3713
575fb8bd
AR
3714 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3715
918b848b
CY
37162009-01-22 Chong Yidong <cyd@stupidchicken.com>
3717
3718 * fileio.c (Vwrite_region_post_annotation_function)
3719 (Vwrite_region_annotation_buffers): New vars.
3720 (build_annotations_unwind): Just reset
3721 Vwrite_region_annotation_buffers.
3722 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3723 Call write-region-post-annotation-function.
3724 (build_annotations): Add to Vwrite_region_annotation_buffers if
3725 buffer changes.
3726
a39e2539
AR
37272009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3728
3729 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3730 Tiger.
51d861de
SM
3731 * nsfns.m (ns_do_applescript):
3732 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3733
35ed44db
AR
37342009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3735
3736 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3737
cbe0b5bf
AR
37382009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3739
3740 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3741
6049d3a0
AR
3742 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3743
3744 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3745 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3746 handle Ctrl-tab. (Bug#1841)
3747 (ns_get_color): Use unsigned long long for scanned hex string value.
3748 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3749 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3750 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3751 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3752 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3753 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3754 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3755
d3810c21 3756 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3757 DPI. (Bug#1316)
d3810c21
AR
3758 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3759 values in onTiger section.
4c7077c3 3760
e301e634
CY
37612009-01-19 Chong Yidong <cyd@stupidchicken.com>
3762
7f82490b
CY
3763 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3764 Check return value of font_spec_from_name.
64cc3cf6 3765 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3766
3767 * font.c (font_spec_from_name): Return Qnil if font name could not
3768 be parsed.
3769 (font_parse_name): Treat a `?' character as part of an XLFD.
3770
e301e634
CY
3771 * fns.c (Fsubstring): Doc fix.
3772
1c0db158
KH
37732009-01-19 Kenichi Handa <handa@m17n.org>
3774
51d861de 3775 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3776 (ftfont_list): Likewise.
3777
acf20901
JB
37782009-01-18 Juanma Barranquero <lekktu@gmail.com>
3779
fff4e459
JB
3780 * dbusbind.c (Fdbus_register_signal):
3781 * process.c (conv_sockaddr_to_lisp):
3782 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3783
acf20901
JB
3784 * callproc.c (Fgetenv_internal): Doc fix.
3785
e7abcdfb
CY
37862009-01-16 Chong Yidong <cyd@stupidchicken.com>
3787
3788 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3789 it is not even used.
3790
b60861e6
GM
37912009-01-16 Glenn Morris <rgm@gnu.org>
3792
3793 * font.c (Ffont_variation_glyphs): Silence compiler.
3794
8db52afe
JB
37952009-01-15 Juanma Barranquero <lekktu@gmail.com>
3796
3797 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3798 Reported by David Robinow <drobinow@gmail.com>.
3799
4cddb209
KH
38002009-01-15 Kenichi Handa <handa@m17n.org>
3801
51d861de 3802 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3803
f247f67b
JR
38042009-01-14 Jason Rumney <jasonr@gnu.org>
3805
3806 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3807 never a fontset. (Bug#1562)
f247f67b 3808
f56a4450
KH
38092009-01-14 Kenichi Handa <handa@m17n.org>
3810
3811 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3812 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3813
4e99855e
CY
38142009-01-13 Chong Yidong <cyd@stupidchicken.com>
3815
3816 * font.c (font_clear_prop): If clearing the family, clear the font
3817 width index too.
3818
fff4e459 3819 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3820
24f01470
JB
38212009-01-12 Juanma Barranquero <lekktu@gmail.com>
3822
3823 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3824 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3825 functions, use sizeof.
3826
a41240a3
MR
38272009-01-12 Martin Rudalics <rudalics@gmx.at>
3828
3829 * keyboard.c (read_char): Fix case where last_nonmenu_event
3830 returned a bad value with submenus. (Bug#447)
3831
944636b8
CY
38322009-01-12 Chong Yidong <cyd@stupidchicken.com>
3833
3834 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3835 family, clear the font width index too.
3836
0dad7c6f
JR
38372009-01-11 Jason Rumney <jasonr@gnu.org>
3838
3839 * keyboard.c (cmd_error_internal): Exit when errors occur before
3840 frame creation and not in daemon mode. (Bug#1836)
3841
7c2363af
CY
38422009-01-10 Chong Yidong <cyd@stupidchicken.com>
3843
3844 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3845 of a display vector, backtrack.
3846 (try_window_reusing_current_matrix): Check glyph type before
3847 referencing charpos member.
3848
97b1b294
EZ
38492009-01-10 Eli Zaretskii <eliz@gnu.org>
3850
3851 Fix Bug #876:
3852
3853 * coding.c (inhibit_null_byte_detection): New variable.
3854 (detect_coding, detect_coding_system): Don't pay attention to null
3855 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3856 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3857 <inhibit-iso-escape-detection>: Doc fix.
3858
4624b6e3
JR
38592009-01-09 Jason Rumney <jasonr@gnu.org>
3860
3861 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3862 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3863 Only report Unicode Plane 2 fonts as unicode-sip.
3864
323b840c
CY
38652009-01-09 Chong Yidong <cyd@stupidchicken.com>
3866
51d861de
SM
3867 * xfaces.c (Fx_font_family_list): Delete function.
3868 Move compatibility version to faces.el.
323b840c 3869
51d861de 3870 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3871
eba7400d
MR
38722009-01-09 Martin Rudalics <rudalics@gmx.at>
3873
3874 * frame.c (x_set_frame_parameters): Remember requested value for
3875 fullscreen before it's reset by the parameter handler.
3876
4b09796d
GM
38772009-01-09 Glenn Morris <rgm@gnu.org>
3878
3879 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3880 (last_command_event): ... and update all users.
4b09796d
GM
3881 (last_input_char): For clarity, rename to...
3882 (last_input_event): ... and update all users.
3883 (last-command-char, last-input-char): Move to subr.el as aliases.
3884 * cmds.c, commands.h: Update for last_command_char rename.
3885
14ccea62
CY
38862009-01-08 Chong Yidong <cyd@stupidchicken.com>
3887
51d861de 3888 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3889
5f004711
JR
38902009-01-08 Jason Rumney <jasonr@gnu.org>
3891
3892 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3893 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3894 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3895 Don't declare.
fff4e459 3896 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3897 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3898
b71f6f73
KH
38992009-01-07 Kenichi Handa <handa@m17n.org>
3900
50b06221 3901 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3902 remember the coding system used for decoding in
50b06221
KH
3903 coding_system (Bug#1039).
3904
b71f6f73 3905 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3906 breaking the loop. (Bug#870)
b71f6f73
KH
3907 (decode_coding_utf_16, decode_coding_emacs_mule)
3908 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3909 (decode_coding_charset): Likewise.
3910
56f668f7
MR
39112009-01-05 Martin Rudalics <rudalics@gmx.at>
3912
3913 * frame.c (x_set_frame_parameters): Make sure height (width) get
3914 applied when fullwidth (fullheight) is set. (Bug#1522)
3915
5da9424d
JB
39162009-01-04 Juanma Barranquero <lekktu@gmail.com>
3917
3918 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3919 (utc_base): Declare as ULONGLONG, not long double.
3920 (convert_time_raw): Delete.
3921 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3922 (initialize_utc_base): New function.
3923 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3924 (convert_from_time_t): Use initialize_utc_base; compute result with
3925 64-bit arithmetic.
3926 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3927
c4605e09
EZ
39282009-01-03 Eli Zaretskii <eliz@gnu.org>
3929
9acef61c 3930 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3931 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3932 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3933 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3934 [!subprocesses]: Define.
3935 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3936 (Flist_system_processes, Fsystem_process_attributes)
3937 [!subprocesses]: Call list_system_processes and
3938 system_process_attributes instead of returning Qnil.
3939
9acef61c
JB
3940 * dosfns.c (system_process_attributes, list_system_processes):
3941 New functions.
c4605e09
EZ
3942
3943 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3944
3945 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3946 Don't use the default (no-op) implementation.
3947
8b7d0a16
JR
39482009-01-03 Jason Rumney <jasonr@gnu.org>
3949
a6d46bc1
JR
3950 * keyboard.c (parse_modifiers_uncached): Wheel events are
3951 clicks (bug#687).
3952
8b7d0a16
JR
3953 * w32term.c (x_query_colors, x_query_color): New functions.
3954
3955 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3956 (svg_load_image): Cast returned pointers from dynamically loaded
3957 functions. Eliminate W32 specific code.
3958
bfe11752
DN
39592009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3960
89e2438a
DN
3961 * nsfns.m (x_set_foreground_color, x_set_background_color)
3962 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3963 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3964 x_ prefix instead of ns_. Update references.
3965 (syms_of_nsfns): Add a FIXME comment.
3966
3967 * nsterm.m (x_set_cursor_type): New prototype.
3968 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3969
bfe11752
DN
3970 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3971 for Solaris instead of incorrectly providing Qutime and Qcutime.
3972
031da700
EZ
39732009-01-02 Eli Zaretskii <eliz@gnu.org>
3974
3975 * w32.c (process_times): Compute sum of utime and stime.
3976 (system_process_attributes): Add Qtime to the alist.
3977
3978 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3979 and add them to the alist.
3980
3981 * process.c (top level) <Qtime, Qctime>: New variables.
3982 (syms_of_process): staticpro them.
3983 (Fsystem_process_attributes): Add their documentation to the doc
3984 string.
3985
3986 * process.h: Declare Qtime and Qctime.
3987
df23bf08
JR
39882009-01-02 Jason Rumney <jasonr@gnu.org>
3989
9acef61c 3990 * image.c (Qgobject): New symbol.
df23bf08
JR
3991 (syms_of_image): Initialize it.
3992 (init_svg_functions): Load some functions from gobject library.
3993
5bbdf7aa
DN
39942009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3995
3996 * frame.c (make_terminal_frame): Remove redundant code and useless
3997 block.
3998
63136da6
AS
39992009-01-01 Andreas Schwab <schwab@suse.de>
4000
4001 * process.c (conv_sockaddr_to_lisp): Add workaround for
4002 getsockname bug on BSD.
4003
9ef69046
CY
40042009-01-01 Chong Yidong <cyd@stupidchicken.com>
4005
d6fafbe0
CY
4006 * xfns.c (x_create_tip_frame): Set border width of the X window.
4007
51d861de 4008 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4009
f9c34147
JR
40102009-01-01 Jason Rumney <jasonr@gnu.org>
4011
9acef61c 4012 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4013 Don't block input, as per earlier xterm.c changes.
4014
f5497e45
AR
40152008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4016
4017 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4018 (ns_appkit_version_int): New function.
4019 (x-server-version): Use ns_appkit_version_int and follow 21+
4020 convention of returning 3 integers.
4021
c19cab20
KH
40222008-12-30 Kenichi Handa <handa@m17n.org>
4023
4024 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4025 (CHAR_SURROGATE_PAIR_P): New macro.
4026
4027 * font.h (struct font_driver): New member get_variation_glyphs.
4028
9acef61c 4029 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4030 (Ffont_variation_glyphs): New function.
4031 (syms_of_font): Defsubr it.
4032
4033 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4034 ftfont_variation_glyphs.
4035 (setup_otf_gstring): New function.
4036 (ftfont_drive_otf): Use it.
4037 (ftfont_shape_by_flt): Handle variation selector.
4038 (ftfont_variation_glyphs): New function.
4039
28cd591f
MR
40402008-12-30 Martin Rudalics <rudalics@gmx.at>
4041
4042 * frame.c (Vemacs_iconified): Remove.
4043
7f714baf
JR
40442008-12-30 Jason Rumney <jasonr@gnu.org>
4045
4046 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4047 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4048
9d2d22ab
CY
40492008-12-30 Chong Yidong <cyd@stupidchicken.com>
4050
4051 * indent.c (Fvertical_motion): Don't advance iterator if we have
4052 reseated to the desired position.
4053
4054 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4055 checking for pos match.
4056
545312c2
KH
40572008-12-30 Kenichi Handa <handa@m17n.org>
4058
1ede3eb6
KH
4059 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4060 just get the low 8-bit of the code.
4061
545312c2
KH
4062 * font.c (font_intern_prop): Validate str as multibyte.
4063
bd7bbf29
DN
40642008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4065
31e0750e
DN
4066 * dispextern.h (struct face): Move lface and hash from the middle
4067 of bitfields.
4068
bd7bbf29
DN
4069 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4070
b5672e7c
DN
40712008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4072
4073 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4074 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4075 instead of intervals.h.
4076
d704470f
AS
40772008-12-26 Andreas Schwab <schwab@suse.de>
4078
4079 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4080 cons.
4081
54b33868
MR
40822008-12-26 Martin Rudalics <rudalics@gmx.at>
4083
4084 * textprop.c (Qminibuffer_prompt): New variable.
4085 (syms_of_textprop): Initialize it.
4086 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4087 in minibuffer-prompt face. (Bug#1662)
4088
40b615d6
JR
40892008-12-25 Jason Rumney <jasonr@gnu.org>
4090
4091 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4092
baae5c2d
JR
40932008-12-24 Jason Rumney <jasonr@gnu.org>
4094
4095 * ralloc.c (r_alloc_reset_variable): New function.
4096
4097 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4098 record of what points where. (Bug#716)
baae5c2d 4099
a9051c88
DN
41002008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4101
4102 * minibuf.c (read_minibuf): Follow the non-interactive case when
4103 running as a daemon, before detaching.
4104
8b146312
AS
41052008-12-22 Andreas Schwab <schwab@suse.de>
4106
4107 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4108 * gtkutil.c (free_widget_value): Use xfree instead of free.
4109
56f2de10
MR
41102008-12-22 Martin Rudalics <rudalics@gmx.at>
4111
4112 * frame.c (delete_frame): New function derived from
4113 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4114 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4115 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4116 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4117 * frame.h: Extern delete_frame.
4118 * window.c (window_loop):
4119 * terminal.c (delete_terminal):
4120 * xterm.c (x_connection_closed):
4121 * xfns.c (Fx_hide_tip):
9acef61c 4122 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4123
1fc200d6
JR
41242008-12-21 Jason Rumney <jasonr@gnu.org>
4125
4126 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4127 when character maps to .notdef character.
4128
5e252df2
SM
41292008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4130
4131 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4132
99b72cc4
JR
41332008-12-20 Jason Rumney <jasonr@gnu.org>
4134
4135 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4136 a graphical frame on Windows. (Bug#1325)
99b72cc4 4137
acc49a52
JD
41382008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4139
4140 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4141
6ea15123
CY
41422008-12-20 Chong Yidong <cyd@stupidchicken.com>
4143
4144 * minibuf.c (Fread_buffer): Doc fix.
4145
b2dab6c8
JR
41462008-12-20 Jason Rumney <jasonr@gnu.org>
4147
54ea0c87 4148 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4149 server name in UNC paths. (Bug#719)
54ea0c87 4150
b2dab6c8 4151 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4152 charbuf. (Bug#1035)
b2dab6c8 4153
6d1921be
DN
41542008-12-19 Daniel Engeler <engeler@gmail.com>
4155
4156 * sysdep.c (serial_configure): Fix typo.
4157
53934c98
DN
41582008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4159
4160 * sysdep.c: Include alloca.h.
f4f634e8
DN
4161 (system_process_attributes): Add implementation for Solaris.
4162
4163 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4164
06e111a6
DN
41652008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4166
4167 Reorganize implementation of Flist_system_processes and
4168 Fsystem_process_attributes. No functional changes.
4169 * process.c: Don't #include pwd.h, grp.h and limits.h.
4170 (Flist_system_processes): Just call list_system_processes.
4171 (Fsystem_process_attributes): Just call system_process_attributes.
4172 (procfs_list_system_processes, time_from_jiffies)
4173 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4174 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4175
4176 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4177 (list_system_processes): Rename from
4178 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4179 Provide a do nothing implementation.
4180 (system_process_attributes): Rename from
4181 procfs_list_system_processes.
4182 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4183 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4184
4185 * w32.c (list_system_processes): Rename from
4186 w32_list_system_processes.
4187 (system_process_attributes): Rename from
4188 w32_system_process_attributes.
4189
4190 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4191
4192 * process.h (w32_list_system_processes)
4193 (w32_system_process_attributes): Remove.
362654a6
JB
4194 (list_system_processes, system_process_attributes):
4195 New prototypes.
06e111a6 4196
6a705b23
KH
41972008-12-19 Kenichi Handa <handa@m17n.org>
4198
4199 * xfont.c (xfont_decode_coding_xlfd): New function.
4200 (xfont_encode_coding_xlfd): New function.
4201 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4202 (xfont_list): Decode and encode XLFD by iso-8859-1.
4203 (xfont_match): Likewise.
4204 (xfont_list_family): Likewise.
4205 (xfont_open): Likewise.
4206
d66c0241 4207 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4208 names are utf-8.
4209
d66c0241 4210 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4211 names are utf-8.
4212
5a130941
JD
42132008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4214
4215 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4216 changed.
bfd20325
JD
4217 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4218 clicked on a detached tool bar button.
5a130941 4219
fd95644b
DN
42202008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4221
4222 * emacs.c (main): Print and error and exit when no data is read
4223 from the pipe.
4224
e6eee6ae
JR
42252008-12-17 Jason Rumney <jasonr@gnu.org>
4226
4227 * w32font.c (w32font_has_char): Always return -1.
4228
a35dd56b
KH
42292008-12-16 Kenichi Handa <handa@m17n.org>
4230
4231 * font.c (font_open_entity): Fix previous change.
4232
0e3635c2
DN
42332008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4234
4235 * process.c: Include <limits.h>.
4236
d4835507 42372008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4238
4239 * font.c (font_update_drivers): Fix mistake in reconstructing the
4240 driver list.
4241
42422008-12-16 Chong Yidong <cyd@stupidchicken.com>
4243
4244 * font.c (font_clear_cache): Fix format of font cache data.
4245
e2cbc401
CY
42462008-12-15 Chong Yidong <cyd@stupidchicken.com>
4247
4248 * xftfont.c (xftfont_open): Free Xft font pattern if
4249 XftFontOpenPattern fails.
4250
4251 * xterm.c (x_free_frame_resources): Remove extraneous call to
4252 free_frame_faces.
4253
b131d535
CY
42542008-12-13 Chong Yidong <cyd@stupidchicken.com>
4255
4256 * xterm.c (x_delete_display): Move xim_close_dpy call to
4257 x_delete_terminal.
4258 (x_delete_terminal): Call xim_close_dpy.
4259
e6df5336
JR
42602008-12-13 Jason Rumney <jasonr@gnu.org>
4261
4262 * w32font.c (intern_font_name): New function.
4263 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4264 (w32font_open_internal, Fx_select_font): Decode font name.
4265 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4266
4267 * w32font.h (intern_font_name): Declare new function.
4268
4269 * w32uniscribe.c (add_opentype_font_name_to_list):
4270 Use intern_font_name.
4271
20d68145
CY
42722008-12-13 Chong Yidong <cyd@stupidchicken.com>
4273
9f2554de
CY
4274 * frame.c (Fdelete_frame): Call free_font_driver_list.
4275
3d9bec9a
CY
4276 * font.c (free_font_driver_list): Implement missing function.
4277
20d68145
CY
4278 * w32term.c (w32_term_init): Don't initialize the image cache
4279 here; it will be done in init_frame_faces.
4280
4281 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4282 (struct x_display_info): Remove unused member null_pixel. New
4283 member xim_callback_data.
4284
4285 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4286 (xim_initialize): Save pointer to callback function data.
4287 (xim_close_dpy): Free callback function data. Call XCloseIM,
4288 reverting 2008-11-04 change by David Smith.
4289 (x_term_init): Don't initialize the image cache here; it will be
4290 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4291 (x_delete_display): Free x_dnd_atoms member.
4292
96f9306b
KH
42932008-12-13 Kenichi Handa <handa@m17n.org>
4294
6dec9044
JB
4295 * font.c (font_rescale_ratio): Moved from xfaces.c.
4296 Argument type changed. Handle a font-spec too.
96f9306b 4297 (font_score): Check Vface_font_rescale_alist.
6dec9044 4298 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4299
4300 * xfaces.c (font_rescale_ratio): Moved to font.c.
4301
8d5b4964
CY
43022008-12-13 Chong Yidong <cyd@stupidchicken.com>
4303
4304 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4305
e6df5336
JR
43062008-12-12 Jason Rumney <jasonr@gnu.org>
4307
4308 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4309 Vwindow_system_version to the real w32 major version.
4310
97c6058a
DN
43112008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4312
4313 * term.c (init_tty): Move setting the terminal name before the
4314 potential user: maybe_fatal.
4315
ec4e88d7
CY
43162008-12-11 Chong Yidong <cyd@stupidchicken.com>
4317
d4835507
JB
4318 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4319 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4320
b4233ec9
JR
43212008-12-11 Jason Rumney <jasonr@gnu.org>
4322
8ec71e23 4323 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4324 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4325
b4233ec9 4326 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4327 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4328
011a0143
JB
43292008-12-11 Juanma Barranquero <lekktu@gmail.com>
4330
4331 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4332
3c309f34
JB
43332008-12-11 Juanma Barranquero <lekktu@gmail.com>
4334
4335 * process.c (Fsystem_process_attributes, syms_of_process):
4336 Fix typo in name of Ssystem_process_attributes.
4337 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4338
fedc6ab5
JB
43392008-12-11 Juanma Barranquero <lekktu@gmail.com>
4340
4341 * syntax.c (Fmodify_syntax_entry): Doc fix.
4342
ba3de0e8
JB
43432008-12-10 Juanma Barranquero <lekktu@gmail.com>
4344
4345 * font.c (Ffont_spec): Move usage to end of docstring.
4346
174f1c74
JR
43472008-12-10 Jason Rumney <jasonr@gnu.org>
4348
4349 * w32font.c (Qcham): New symbol.
4350 (font_supported_scripts): Add cham, and comments for other new
4351 scripts in bitfield from OpenType spec.
9d32f818
JR
4352 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4353 contain characters beyond the bmp.
174f1c74 4354
7b649478
KH
43552008-12-10 Kenichi Handa <handa@m17n.org>
4356
4357 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4358 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4359 Qunicode_sip.
4360
2133e2d1
JB
43612008-12-10 Juanma Barranquero <lekktu@gmail.com>
4362
4363 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4364 (Fcoding_system_put): Use QCdefault_char.
4365 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4366
9af886ee
CY
43672008-12-09 Chong Yidong <cyd@stupidchicken.com>
4368
74d819eb
CY
4369 * xftfont.c (syms_of_xftfont): Fix typo.
4370
4ccfa1c0 4371 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4372
7c19d3ae
DN
43732008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4374
4375 * emacs.c (main): Close daemon_pipe on exec.
4376
567826bb
CY
43772008-12-08 Chong Yidong <cyd@stupidchicken.com>
4378
4379 * termchar.h (struct tty): New members termcap_term_buffer and
4380 termcap_strings_buffer.
4381
4382 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4383 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4384 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4385 All callers changed.
4386 (init_tty): Store termcap data and string buffers in new struct
4387 tty members termcap_term_buffer and termcap_strings_buffer.
4388 (delete_tty): Free them.
4ccfa1c0 4389 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4390
aa96c42b
SZ
43912008-12-07 Seiji Zenitani <zenitani@mac.com>
4392
4393 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4394 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4395
b7e1d896
CY
43962008-12-06 Chong Yidong <cyd@stupidchicken.com>
4397
4398 * coding.c (make_conversion_work_buffer): Disable buffer
4399 modification hooks in the work buffer.
4400
b5ec91a5
EZ
44012008-12-05 Eli Zaretskii <eliz@gnu.org>
4402
4403 * process.c (procfs_system_process_attributes): If `nread' has a
4404 negative value, assign zero to it.
4405
a5d2a52b
CY
44062008-12-05 Chong Yidong <cyd@stupidchicken.com>
4407
68c5540b 4408 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4409
7bf1bb21
KH
44102008-12-05 Kenichi Handa <handa@m17n.org>
4411
4412 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4413 second character is a combining character.
4414
2fdc7d00
EZ
44152008-12-05 Eli Zaretskii <eliz@gnu.org>
4416
4417 * process.c (procfs_system_process_attributes): Don't use cmd,
4418 cmdsize, and q without initializing them first.
4419
bf6bfba8
JR
44202008-12-04 Jason Rumney <jasonr@gnu.org>
4421
4422 * w32font.c (w32font_draw): Initialize orig_clip before getting
4423 it, and delete it when finished.
4424
a3b1a468
DN
44252008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4426
4427 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4428 case when running as a daemon before detaching.
4429
8b8be8eb
JB
44302008-12-03 Juanma Barranquero <lekktu@gmail.com>
4431
805f2638 4432 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4433
b1bde622
KH
44342008-12-03 Kenichi Handa <handa@m17n.org>
4435
e500c47d
KH
4436 * font.c (font_at): Set `multibyte' at first.
4437
ca516334
KH
4438 * coding.c (decode_coding_charset): Check type of an element of
4439 vector VALIDS.
7bf1bb21 4440 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4441
4ccfa1c0 4442 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4443 (font_for_char): Likewise.
4444
1e5ecd37
CY
44452008-12-03 Chong Yidong <cyd@stupidchicken.com>
4446
d5b01609 4447 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4448 (font_update_lface): Handle fonts with corrupted size specs,
4449 i.e. non-int and non-float.
d5b01609 4450
11e3a6e4 4451 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4452 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4453 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4454
ab06788b
CY
4455 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4456
1e5ecd37 4457 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4458 underline_minimum_offset for underline position.
1e5ecd37 4459
63c125ab
DN
44602008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4461
4462 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4463
4464 * character.c (c_string_width): Specify the type for LEN.
4465
3a8406e1
KH
44662008-12-03 Kenichi Handa <handa@m17n.org>
4467
4ccfa1c0 4468 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4469 (decode_coding_utf_8): Likewise.
4ccfa1c0 4470 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4471 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4472
651df7d9
CY
44732008-12-02 Chong Yidong <cyd@stupidchicken.com>
4474
4475 * keyboard.c (make_lispy_position): Only use PT if the selected
4476 window is current.
4477
1f625c6c
AS
44782008-12-02 Andreas Schwab <schwab@suse.de>
4479
f7741ce9
AS
4480 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4481
1f625c6c
AS
4482 * doprnt.c (doprnt1): Fix size of charbuf.
4483
92bc2678
CY
44842008-12-02 Chong Yidong <cyd@stupidchicken.com>
4485
4486 * keyboard.c (timer_check): Revert last change.
4487
93b9e8cc
JB
44882008-12-02 Juanma Barranquero <lekktu@gmail.com>
4489
4490 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4491
fd7a37d5
JB
44922008-12-01 Juanma Barranquero <lekktu@gmail.com>
4493
4494 * makefile.w32-in: Update dependencies.
4495 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4496
c115043b
AS
44972008-12-01 Andreas Schwab <schwab@suse.de>
4498
4499 * font.c (register_font_driver): Use xmalloc.
4500 (font_put_frame_data): Likewise.
4501
f5668d2a
CY
45022008-12-01 Chong Yidong <cyd@stupidchicken.com>
4503
860d96be
CY
4504 * xfaces.c (realize_x_face): Make abort condition clearer.
4505
f5668d2a
CY
4506 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4507
379c17e7
CY
45082008-11-30 Chong Yidong <cyd@stupidchicken.com>
4509
4510 * keyboard.c (timer_check): After a timer runs, ensure that the
4511 selected window's buffer is current.
4512
35f36d65
JB
45132008-11-30 Juanma Barranquero <lekktu@gmail.com>
4514
f952c61c
JB
4515 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4516 It was accidentally restored by the Unicode merge.
4517
35f36d65
JB
4518 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4519
b23077df
JB
45202008-11-29 Juanma Barranquero <lekktu@gmail.com>
4521
4522 * w32proc.c: Include "coding.h".
4523 (Fw32_short_file_name): Encode filename passed to Windows API.
4524 (Fw32_long_file_name): Encode filename passed to Windows API and
4525 decode back the result. (Bug#1433)
4526
b8ebe9dd
KH
45272008-11-29 Kenichi Handa <handa@m17n.org>
4528
8cc53f96
KH
4529 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4530 not before accessing it.
4531
b8ebe9dd
KH
4532 * charset.c (Fdefine_charset_internal): After calculating
4533 min_char, max_char, and fastmap, copy the charset structure again.
4534 (encode_char): Fix the previous change.
4535
59bc82c0
SZ
45362008-11-28 Seiji Zenitani <zenitani@mac.com>
4537
4538 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4539
4540 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4541
4542 * nsterm.m (x_set_frame_alpha): New function.
4543
32247e3d
EZ
45442008-11-27 Eli Zaretskii <eliz@gnu.org>
4545
4546 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4547
b003e5ff
JB
45482008-11-27 Juanma Barranquero <lekktu@gmail.com>
4549
4550 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4551 pointer to check_face_name.
4552
708550f5
KH
45532008-11-27 Kenichi Handa <handa@m17n.org>
4554
4555 * category.h (SET_CATEGORY_SET): Call set_category_set.
4556 (set_category_set): Extern it.
4557
4558 * category.c (hash_get_category_set): New function.
4559 (Fmodify_category_entry): Adjusted for the change of
4560 char_table_ref_and_range. Call hash_get_category_set to get a
4561 category set to store in the table.
4562
4563 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4564 Funify_charset.
4565
2ae37cf0 4566 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4567 (DECODE_CHAR): Check if the decoder vector is ready.
4568 (ENCODE_CHAR): Check if the encoder char-table is ready.
4569 (maybe_unify_char): Extern it.
4570
4571 * charset.c (Vchar_unified_charset_table): Delete it.
4572 (inhibit_load_charset_map): New variable.
4573 (temp_charset_work): New variable.
4574 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4575 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4576 New macros.
4577 (load_charset_map): Meaning of control_flag changed. If
4578 inhibit_load_charset_map is nonzero, setup a table in
4579 temp_charset_work.
4580 (load_charset): New argument control_flag.
4581 (map_charset_for_dump): New function.
4582 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4583 map_charset_for_dump.
4584 (Fdefine_charset_internal): If the charset method is MAP, load
4585 mapping tables by calling load_charset.
4586 (Funify_charset): Don't load a mapping table but directly set
4587 Vchar_unify_table.
4588 (maybe_unify_char): New function.
4589 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4590 Handle the case of inhibit_load_charset_map being nonzero.
4591 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4592 Handle the case of inhibit_load_charset_map being nonzero.
4593 (Fclear_charset_maps): Just free temp_charset_work.
4594 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4595 variable.
4596
4597 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4598 change of char_table_ref_and_range.
4599 (char_table_ref_and_range): Change the meaning of argument FROM
4600 and TO. Now the caller must provide initial values for *FROM
4601 and *TO.
4602
4603 * fontset.c (fontset_add): Adjusted for the change of
4604 char_table_ref_and_range.
4605 (fontset_get_font_group): Likewise.
4606 (Ffontset_info): Likewise.
4607
4608 * keymap.c (describe_vector): Adjusted for the change of
4609 char_table_ref_and_range. For char-table, put boundary between
4610 non-ASCII and 8-bit characters.
4611
4612 * print.c (print_object): For bool-vector, delete unnecessary
4613 check of ASCII_BYTE_P.
4614
9196133b
JR
46152008-11-26 Jason Rumney <jasonr@gnu.org>
4616
4617 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4618 leading in font height. (Bug#879)
9196133b 4619
9f688acf
GM
46202008-11-26 Glenn Morris <rgm@gnu.org>
4621
4622 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4623 redefinition with ifdef. (Bug#1383)
4624
90d19aff
AR
46252008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4626
4627 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4628
4ccfa1c0 46292008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4630
4631 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4632 New EmacsView methods.
4633 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4634 Fixes bug #1048,1357,1414.
4635
46362008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4637
4638 Fix bug #1362.
4639 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4640 is not an indexed color.
4641 * nsterm.m (free_indexed_color): Add argument checking.
4642 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4643
e7d5ecb3
CY
46442008-11-24 Chong Yidong <cyd@stupidchicken.com>
4645
4646 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4647 Document confirm-after-completion value for
4648 minibuffer-completion-confirm.
4649
c285743c
JR
46502008-11-24 Jason Rumney <jasonr@gnu.org>
4651
4652 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4653 warning.
4654
b0857706
JR
46552008-11-23 Jason Rumney <jasonr@gnu.org>
4656
4657 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4658 restored before returning.
4659
4660 * w32font.c (check_face_name): New function.
4661 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4662 fonts. (Bug#642)
b0857706 4663
ee50ff07
MR
46642008-11-22 Martin Rudalics <rudalics@gmx.at>
4665
4666 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4667 confirm-nonexistent-file-or-buffer in doc-string.
4668
b8ff72fa
SM
46692008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4670
4671 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4672 Fix copy/paste typo. Add checks.
4673
cee53ed4
KH
46742008-11-21 Kenichi Handa <handa@m17n.org>
4675
4676 * coding.c (detect_coding_iso_2022): Reject invalid composition
4677 sequence.
4678 (DECODE_COMPOSITION_START): If the current source is the last
4679 block, and the current composition doesn't end, regard this
4680 sequence as invalid.
4681 (decode_coding_iso_2022): Handle invalid composition sequence.
4682
f6ef1e65
MR
46832008-11-20 Martin Rudalics <rudalics@gmx.at>
4684
4685 * window.c (coordinates_in_window): Don't return
4686 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4687 line when the window is not the rightmost one. (Bug#1372)
4688
e08b1705
MR
46892008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4690
4691 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4692
ad98e89f
EZ
46932008-11-15 Eli Zaretskii <eliz@gnu.org>
4694
4695 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4696 and bright_bg if noninteractive is non-zero.
4697
fb098a4b
CY
46982008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4699
4700 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4701 x_draw_glyph_string_background.
4702
4703 * w32term.c (x_draw_glyph_string): Likewise.
4704
ce952b6e
CY
47052008-11-15 Chong Yidong <cyd@stupidchicken.com>
4706
4707 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4708 the next glyph string once past the overhang width.
4709
4710 * nsterm.m (ns_draw_glyph_string): Likewise.
4711
4712 * w32term.c (x_draw_glyph_string): Likewise.
4713
26ea7079
CY
47142008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4715
4716 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4717 double file close.
4718
1c33c906
MR
47192008-11-14 Martin Rudalics <rudalics@gmx.at>
4720
4721 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4722 dedicated status of window before attempting to display another
4723 buffer in it.
4724
8fc29035
JB
47252008-11-14 Juanma Barranquero <lekktu@gmail.com>
4726
4727 * msdos.c (Fmsdos_long_file_names):
4728 (syms_of_msdos) <dos-unsupported-char-glyph>:
4729 * dosfns.c (Fint86): Fix typos in docstrings.
4730
55fb4286
EZ
47312008-11-14 Eli Zaretskii <eliz@gnu.org>
4732
4733 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4734
3fda0315
KY
47352008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4736
4737 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4738
7e849c17
CY
47392008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4740
4741 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4742
4743 * frame.h: Negative alpha means "don't touch".
4744
4745 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4746
4747 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4748
b9fd67bd
DN
47492008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4750
4751 * hftctl.c:
4752 * chpdef.h:
4753 * acldef.h: Remove files used only for systems no longer supported.
4754
4755 * Makefile.in: Fix .o alphabetical ordering.
4756 (hftctl.o): Remove dependency, file removed.
4757 (keymap.o, print.o): Depend on charset.h.
4758
d5998e03
KH
47592008-11-10 Kenichi Handa <handa@m17n.org>
4760
2ae37cf0 4761 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4762
be70e183
CY
47632008-11-08 Chong Yidong <cyd@stupidchicken.com>
4764
4765 * dired.c (file_name_completion): If completion_ignore_case is
4766 enabled, ignore case when checking completion-regexp-list.
4767
7cf94eac
EZ
47682008-11-08 Eli Zaretskii <eliz@gnu.org>
4769
4770 * vm-limit.c (get_lim_data): Fix last change.
4771
ee107a89
KH
47722008-11-08 Kenichi Handa <handa@m17n.org>
4773
4774 * character.c (Fget_byte): New function.
4775 (syms_of_character): Defsubr Fget_byte.
4776
5fd15622
CY
47772008-11-07 Chong Yidong <cyd@stupidchicken.com>
4778
4779 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4780 cursor position is valid after scrolling.
4781
13d62fad
JB
47822008-11-06 Juanma Barranquero <lekktu@gmail.com>
4783
4784 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4785
a1dd2936
GM
47862008-11-06 Glenn Morris <rgm@gnu.org>
4787
4788 * xterm.c (handle_one_xevent): Don't let popup menus cause
4789 mouse-autoselect-window related window switching. (Bug#1261)
4790
860cd236
CY
47912008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4792
4793 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4794
653a3150
AS
47952008-11-04 Andreas Schwab <schwab@suse.de>
4796
4797 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4798
870f5cac
CY
47992008-11-03 Chong Yidong <cyd@stupidchicken.com>
4800
4801 * xfns.c (Fx_wm_set_size_hint): New function.
4802
1e02f3cb
MR
48032008-11-03 Martin Rudalics <rudalics@gmx.at>
4804
4805 * textprop.c (Fprevious_single_char_property_change): Return 0
4806 when there's no change in a string. (Bug#1301)
4807
e630dfc6
MR
48082008-11-02 Martin Rudalics <rudalics@gmx.at>
4809
4810 * frame.c (do_switch_frame): New argument NORECORD passed to
4811 Fselect_window.
4812 (Fselect_frame): New argument NORECORD passed to
4813 do_switch_frame.
4814 (Fset_frame_selected_window): New argument NORECORD passed to
4815 Fselect_frame.
4816 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4817 in call of do_switch_frame.
4818 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4819 Handle NORECORD argument in call of Fselect_frame.
4820 * lisp.h (do_switch_frame, Fselect_frame)
4821 (Fset_frame_selected_window): Adjust declarations.
4822 * window.c (select_frame_norecord): New function.
4823 (run_window_configuration_change_hook): Use it and call
4824 Fselect_frame with NORECORD set.
4825 (Fselect_window): Pass NORECORD to Fselect_frame.
4826 (Fset_window_configuration): Handle NORECORD argument in call of
4827 do_switch_frame.
4828 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4829 Fset_frame_selected_window.
4830 * keyboard.c (command_loop_1): Handle NORECORD in call of
4831 Fselect_frame (currently ifdefd).
4832
9020b223
GM
48332008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4834
4835 * emacs.c (USAGE2): Untabify.
4836
793ffee8
SM
48372008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4838
4839 * composite.c (fill_gstring_header): Fix copy/paste typo.
4840
ab6d1131
MR
48412008-10-31 Martin Rudalics <rudalics@gmx.at>
4842
4843 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4844 (Fother_window): Rename argument and rewrite doc-string.
4845 (select_window_norecord): Fix return value. (Bug#1276)
4846
601a9cf1
JB
48472008-10-30 Juanma Barranquero <lekktu@gmail.com>
4848
4849 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4850 new frames overriding foreground for tooltips. Based on similar patch
4851 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4852
813b0652
CY
48532008-10-29 Chong Yidong <cyd@stupidchicken.com>
4854
4855 * emacs.c (Fdaemon_initialized): Initialize nfd.
4856
4414f58f
MR
48572008-10-29 Martin Rudalics <rudalics@gmx.at>
4858
4859 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4860 (Fwindow_text_height): Clarify doc-strings.
4861 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4862 doc-string of window-scroll-functions.
4863
ecdcaa09
RS
48642008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4865
4866 * category.c (syms_of_category): Fix typo in docstring.
4867
23fe745a
JB
48682008-10-28 Juanma Barranquero <lekktu@gmail.com>
4869
4870 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4871 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4872 Fix typos in docstrings.
4873
ff808935
DN
48742008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4875
4876 * emacs.c (daemon_pipe): Make non-static.
4877 (IS_DAEMON): Move definition ...
4878 * lisp.h (IS_DAEMON): ... here.
4879 (daemon_pipe): Declare.
4880 (is_daemon): Remove.
4881 * dispnew.c (init_display): Use IS_DAEMON.
4882
fc012771
SM
48832008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4884
4885 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4886 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4887
4888 * emacs.c (is_daemon): Remove.
4889 (main): Don't set is_daemon.
4890 (IS_DAEMON): New macro.
4891 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4892 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4893 parent exits.
4894 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4895
d8bdbe6f
CY
48962008-10-27 Chong Yidong <cyd@stupidchicken.com>
4897
d1a072bf
CY
4898 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4899 over-sized glyph, draw it with the default glyph width.
4900
e2e325aa
CY
4901 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4902 glyph, draw it with the default glyph width.
4903
4904 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4905 glyph, draw it with the default glyph width.
4906
d8bdbe6f
CY
4907 * xdisp.c (try_scrolling): When computing the distance from the
4908 scroll margin to PT, try moving some distance past the window
4909 bottom before giving up.
4910
7bfac547
MR
49112008-10-27 Martin Rudalics <rudalics@gmx.at>
4912
4913 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4914 (Fset_window_buffer): Explain in doc-string that a window can be
4915 "strongly" dedicated to its buffer.
4916
4ff029f6
DN
49172008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4918
4919 * emacs.c (daemon_name): New variable.
4920 (main): Deal with --daemon=SERVER_NAME.
4921 (Fdaemonp): Return a name if one was passed to --daemon.
4922
5790ef40
DN
49232008-10-26 Romain Francoise <romain@orebokech.com>
4924
f9bd0df9 4925 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4926 (main): Create a pipe before forking, make the parent exit only after
4927 the child has closed its end of the pipe. Move closing the
4928 descriptors ...
4929 (Fdaemon_initialized): ... here. New function.
4930
f5385255
SM
49312008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4932
4d632321
SM
4933 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4934 the previous unoptimized table.
4935
f5385255
SM
4936 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4937 the distinction between non-nil and non-t value of `dedicated'.
4938
6c56a0f3
CY
49392008-10-25 Chong Yidong <cyd@stupidchicken.com>
4940
4941 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4942 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4943
fec89261
MR
49442008-10-25 Martin Rudalics <rudalics@gmx.at>
4945
4946 * window.c (Fget_buffer_window, Fdelete_windows_on)
4947 (Freplace_buffer_in_windows): Make buffer argument optional and
4948 rename to buffer_or_name.
4949
34fcddd0
CY
49502008-10-24 Chong Yidong <cyd@stupidchicken.com>
4951
f5385255
SM
4952 * xdisp.c (handle_single_display_spec, handle_display_prop):
4953 Undo 2005-05-16 change.
34fcddd0
CY
4954 (handle_stop): Pop iterator if it's loaded with an empty string.
4955 (get_overlay_strings_1): Don't save iterator if it's loaded with
4956 an empty string (bug#1201).
4957
064766f2
KH
49582008-10-24 Kenichi Handa <handa@m17n.org>
4959
4960 * ftfont.c (ftfont_otf_features): Fix previous change.
4961 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4962 calling ftfont_otf_features.
4963
f9bd0df9 49642008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4965
4966 * font.c (font_match_p): Fix for the case that a vector of
4967 characters is in script-representative-chars.
4968
1dae9197
MA
49692008-10-24 Michael Albinus <michael.albinus@gmx.de>
4970
4971 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4972 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4973 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4974 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4975 macro. (Bug#1186).
4976
f9bd0df9 49772008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4978
4979 * s/sol2-10.h: New file.
4980
878a4584
JB
49812008-10-23 Juanma Barranquero <lekktu@gmail.com>
4982
4983 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4984 poor beast has survived 9+ years and the jump from xterm.c!).
4985
cd265ca6
MR
49862008-10-23 Martin Rudalics <rudalics@gmx.at>
4987
4988 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4989 Reword doc-string.
f5385255 4990 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4991
472a4dc9
JB
49922008-10-23 Juanma Barranquero <lekktu@gmail.com>
4993
4994 * character.c (syms_of_character) <script-representative-chars>:
4995 <unicode-category-table>: Doc fixes.
4996
159bd5a2
NF
49972008-10-23 Noah Friedman <friedman@splode.com>
4998
4999 * coding.c (make_conversion_work_buffer): Check that
5000 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5001 Fget_buffer_create.
5002
49f9c344
KH
50032008-10-23 Kenichi Handa <handa@m17n.org>
5004
5005 * font.c (font_add_log): Check the values of extra properties.
5006
12bb3111
MR
50072008-10-22 Martin Rudalics <rudalics@gmx.at>
5008
5009 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5010 Reword doc-string.
5011 (Fset_window_parameter): Use NILP.
5012 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5013 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5014
bbeb4e99
JB
50152008-10-22 Juanma Barranquero <lekktu@gmail.com>
5016
5017 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5018
50192008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5020
5021 * nsfns.m (ns_appkit_version): New function.
5022 (x-server-version): Use it.
5023 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5024 (x-server-vendor): Don't check_ns().
5025
5026 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5027
a9b555d3
JB
50282008-10-22 Juanma Barranquero <lekktu@gmail.com>
5029
5030 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5031 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5032
4626499f
KH
50332008-10-22 Kenichi Handa <handa@m17n.org>
5034
e3681952
KH
5035 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5036 scripts.
5037
4626499f
KH
5038 * category.c (word_boundary_p): Check scripts instead of charset.
5039 Handle nil value in word-separating-categories and
5040 word-combining-categories.
5041 (syms_of_category): Fix docstrings of word-separating-categories
5042 and word-combining-categories.
5043
1560f91a
EZ
50442008-10-21 Eli Zaretskii <eliz@gnu.org>
5045
5046 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5047 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5048
f4668441
MR
50492008-10-21 Martin Rudalics <rudalics@gmx.at>
5050
5051 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5052 Rename arg "buffer" to "buffer_or_name".
5053 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5054 it optional.
5055 (no_switch_window): Remove since the return value is not used.
a9b555d3 5056 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5057 Consider window as dedicated when Fwindow_dedicated_p returns a
5058 non-nil value.
5059 * lisp.h: Remove prototype for no_switch_window.
5060
fd75ddb2
JD
50612008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5062
5063 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5064 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5065
07295713
KH
50662008-10-21 Kenichi Handa <handa@m17n.org>
5067
5068 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5069 check Vlatin_extra_code_table.
5070
712adc82
EZ
50712008-10-20 Eli Zaretskii <eliz@gnu.org>
5072
5073 * fileio.c (Fset_file_modes): Doc fix.
5074
f549eb0b
MA
50752008-10-19 Michael Albinus <michael.albinus@gmx.de>
5076
5077 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5078 in arrays.
5079
aac0c6e3
MR
50802008-10-19 Martin Rudalics <rudalics@gmx.at>
5081
5082 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5083 Mention kill-buffer in doc-string.
5084 (Fset_window_buffer): Reinsert tem check removed in last commit.
5085 (Fenlarge_window, Fshrink_window): Have argument names and
5086 doc-string follow Elisp manual more closely.
5087
50882008-10-18 Eli Zaretskii <eliz@gnu.org>
5089
5090 * fileio.c (Fset_file_modes): Doc fix.
5091
50922008-10-18 Martin Rudalics <rudalics@gmx.at>
5093
5094 * window.c (Fwindow_width, Fset_window_start)
5095 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5096 (Fdelete_windows_on, Freplace_buffer_in_windows):
5097 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5098 (Fwindow_dedicated_p): Make window argument optional.
5099 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5100 (Fset_window_buffer): Respect any non-nil dedicated value for
5101 window. Rename "buffer" argument to "buffer_or_name".
5102
51032008-10-18 Ulrich Mueller <ulm@gentoo.org>
5104
5105 * m/sh3.h: New file, machine description for SuperH.
5106
51072008-10-17 Martin Rudalics <rudalics@gmx.at>
5108
5109 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5110
51112008-10-17 Kenichi Handa <handa@m17n.org>
5112
5113 * ftfont.c (ftfont_otf_features): Fix indexing
5114 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5115
51162008-10-16 Magnus Henoch <mange@freemail.hu>
5117
5118 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5119 (Fdbus_call_method_asynchronously): Ditto.
5120 This change makes C-h f display the argument list.
5121
51222008-10-16 Chong Yidong <cyd@stupidchicken.com>
5123
5124 * fileio.c (Fexpand_file_name): Doc fix.
5125
5126 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5127 of :foreground and :background equivalent to unspecified (20.x
5128 compatibility).
5129
51302008-10-15 Eli Zaretskii <eliz@gnu.org>
5131
5132 * buffer.c (syms_of_buffer): Doc fix.
5133
51342008-10-14 Kenichi Handa <handa@m17n.org>
5135
5136 * font.c (font_clear_prop): When clearing font width, clear the
5137 average width field too.
5138
51392008-10-12 Andreas Schwab <schwab@suse.de>
5140
5141 * ftfont.c (ftfont_shape_by_flt): Make static.
5142 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5143
5144 * font.c: Don't include <m17n-flt.h>.
5145
51462008-10-10 Eli Zaretskii <eliz@gnu.org>
5147
5148 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5149
51502008-10-09 Eli Zaretskii <eliz@gnu.org>
5151
5152 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5153 away code.
5154
51552008-10-09 Chong Yidong <cyd@stupidchicken.com>
5156
5157 * dispnew.c (update_text_area): Avoid looping due to large glyph
5158 overhangs (bug#1070).
5159
51602008-10-09 Kenichi Handa <handa@m17n.org>
5161
5162 * fontset.c (face_for_char): If face->fontset is negative, just
5163 return ascii_face.
5164
f5385255
SM
5165 * font.c (font_delete_unmatched): Fix previous change.
5166 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5167
51682008-10-09 Martin Rudalics <rudalics@gmx.at>
5169
5170 * frame.c (Fraise_frame): On text-only terminals select frame in
5171 order to make it visible. (Bug#1061)
5172
51732008-10-08 Chong Yidong <cyd@stupidchicken.com>
5174
5175 * fontset.c (fontset_find_font): Check frame validity.
5176
51772008-10-07 Chong Yidong <cyd@stupidchicken.com>
5178
a9b555d3 5179 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5180 (xg_display_close): Allow Emacs to close all displays (bug#985).
5181
51822008-10-06 Andreas Schwab <schwab@suse.de>
5183
f5385255 5184 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5185
51862008-10-06 Chong Yidong <cyd@stupidchicken.com>
5187
f5385255 5188 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5189
a9b555d3 5190 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5191
5192 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5193 during initialization.
5194
51952008-10-04 Eli Zaretskii <eliz@gnu.org>
5196
5197 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5198 whole thing on MSDOS frames as well as on a TTY.
5199
5200 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5201 well as for TTY.
5202 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5203 well as on a TTY.
5204
5205 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5206 as well as for TTY.
5207
5208 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5209
5210 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5211 MSDOS frames as well.
5212
52132008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5214
5215 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5216 correct arguments.
b71ac3dd 5217 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5218
52192008-10-03 Glenn Morris <rgm@gnu.org>
5220
5221 * emacs.c (USAGE1): Add --daemon.
5222
52232008-10-02 Eli Zaretskii <eliz@gnu.org>
5224
5225 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5226 100, so it's in percents as advertised.
5227
52282008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5229
5230 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5231 (ns_output.current_cursor, ns_output.desired_cursor)
5232 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5233 (FRAME_NEW_CURSOR_COLOR): Remove.
5234
5235 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5236 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5237 enumeration (HOLLOW_BOX_CURSOR, etc.).
5238
5239 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5240 (draw_window_cursor): Simplify code.
f5385255
SM
5241 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5242 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5243 updates manually.
a9b555d3
JB
5244 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5245 Use core Emacs cursor types.
aac0c6e3 5246
b8ff72fa 5247 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5248
52492008-10-02 Martin Rudalics <rudalics@gmx.at>
5250
5251 * process.c (Faccept_process_output): Fix doc-string.
5252
52532008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5254
5255 * gmalloc.c (__sbrk): Also define for uClibc.
5256
5257 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5258 for uClibc.
5259
52602008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5261
5262 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5263 styles.
5264 (nsfont_open): Reenable the cache.
5265
52662008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5267
5268 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5269 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5270
52712008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5272
5273 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5274 a suspended terminal.
5275
52762008-09-30 Michael Albinus <michael.albinus@gmx.de>
5277
5278 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5279
52802008-09-30 Eli Zaretskii <eliz@gnu.org>
5281
5282 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5283
52842008-09-30 Chong Yidong <cyd@stupidchicken.com>
5285
5286 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5287 in a continued line coincides with a line beginning.
5288
52892008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5290
5291 * nsfont.m (nsfont_trait_distance): Fix bug.
5292 (nsfont_list): Return a list rather than a vector (syncs with Handa
5293 changes of 2008-05-14).
5294 (nsfont_open): Improve logging.
5295
52962008-09-29 Andreas Schwab <schwab@suse.de>
5297
5298 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5299
53002008-09-28 Martin Rudalics <rudalics@gmx.at>
5301
5302 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5303 name as char-resolve-modifiers.
5304 Reported by: Markus Triska <markus.triska@gmx.at>
5305
53062008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5307
5308 * dispnew.c (init_display): Return earlier when running as a daemon.
5309
53102008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5311
5312 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5313
53142008-09-27 Eli Zaretskii <eliz@gnu.org>
5315
5316 * composite.c (Fcomposition_get_gstring)
5317 (Fcompose_region_internal, Fcompose_string_internal)
5318 (Ffind_composition_internal): Doc fix.
5319 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5320 (syms_of_composite) <auto-composition-function>: Doc fix.
5321 (syms_of_composite) <composition-function-table>: Doc fix.
5322
53232008-09-25 Chong Yidong <cyd@stupidchicken.com>
5324
5325 * search.c (wordify): New argument for lax word-ends.
5326 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5327
53282008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5329
5330 * lisp.h (is_daemon): Declare.
5331 * dispnew.c (init_display): Do not try to initialize the terminal
5332 when running as a daemon.
5333
53342008-09-22 Chong Yidong <cyd@stupidchicken.com>
5335
5336 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5337 x_display_pixel_height.
5338
53392008-09-22 Martin Rudalics <rudalics@gmx.at>
5340
5341 * undo.c (record_point): Don't call Fundo_boundary for first
5342 change. (Bug#731)
5343
53442008-09-22 Juanma Barranquero <lekktu@gmail.com>
5345
5346 * emacs.c (Fdaemonp): Doc fix.
5347
53482008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5349
5350 * emacs.c (main): Place #ifdef in the proper place.
5351
53522008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5353
5354 * emacs.c (standard_args): Add --daemon.
5355 (main): Disconnect from the terminal when --daemon is passed.
5356 (is_daemon): New variable.
5357 (Fdaemonp): New function.
5358 (syms_of_emacs): Defsubr it.
5359
53602008-09-20 Chong Yidong <cyd@stupidchicken.com>
5361
5362 * xdisp.c (get_next_display_element): Handle string display
5363 correctly when checking for the end of a box run.
5364
53652008-09-20 Glenn Morris <rgm@gnu.org>
5366
5367 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5368 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5369 (Frename_file): Avoid copying to trash if a rename involves
5370 a delete. (Bug#964).
5371
53722008-09-20 Eli Zaretskii <eliz@gnu.org>
5373
5374 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5375 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5376 frames as well as termcap frames.
5377 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5378 get_named_tty.
5379
53802008-09-19 Eli Zaretskii <eliz@gnu.org>
5381
5382 * process.c (procfs_system_process_attributes): Fix cmdline in
5383 case /proc/PID/cmdline is empty.
5384
5385 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5386 x_display_pixel_height.
5387
53882008-09-19 Juanma Barranquero <lekktu@gmail.com>
5389
5390 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5391
5392 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5393 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5394
53952008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5396
5397 * dispextern.h (struct it): Move line_wrap away from the middle of
5398 bitfields. Move voffset in struct iterator_stack_entry after the
5399 bitfields. Move tab_width near after another short.
5400
54012008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5402
5403 * frame.h (struct frame): Move alpha from the middle of bitfields.
5404
5405 * window.h (struct window): Move frozen_window_start_p after the
5406 rest of the bitfields to reduce padding.
5407
54082008-09-18 Chong Yidong <cyd@stupidchicken.com>
5409
5410 * xterm.h (x_display_info): Remove `height' and `width' members.
5411
5412 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5413
5414 * w32term.h (w32_display_info): Remove `height', `width',
5415 `height_in', and `width_in' members.
5416
b8ff72fa
SM
5417 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5418 New functions.
aac0c6e3
MR
5419 (x_calc_absolute_position): Use them.
5420 (x_term_init): Omit removed `height' and `width' members.
5421
b8ff72fa
SM
5422 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5423 New functions.
aac0c6e3
MR
5424 (w32_read_socket, x_calc_absolute_position): Use them.
5425 (w32_initialize_display_info, w32_term_init): Omit removed members
5426 of w32_display_info.
5427
b8ff72fa
SM
5428 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5429 New functions.
5430 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5431
b8ff72fa
SM
5432 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5433 New functions.
aac0c6e3
MR
5434 (x_calc_absolute_position): Use them.
5435 (x_term_init): Omit removed `height' and `width' members.
5436
5437 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5438 (compute_tip_xy):
5439 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5440 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5441 x_display_pixel_width.
5442
54432008-09-18 Kenichi Handa <handa@m17n.org>
5444
5445 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5446 (composition_compute_stop_pos): Fix handling of static composition.
5447 (Fcomposition_get_gstring): Check FROM and TO at first.
5448
54492008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5450
46e722a9 5451 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5452 mixup (YAILOM).
5453
54542008-09-17 Chong Yidong <cyd@stupidchicken.com>
5455
5456 * indent.c (Fvertical_motion): Use position reported by iterator
5457 instead of PT for determining screen motion (bug#943).
5458
54592008-09-17 Romain Francoise <romain@orebokech.com>
5460
5461 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5462
54632008-09-17 Kenichi Handa <handa@m17n.org>
5464
5465 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5466
5467 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5468 if necessary.
5469
54702008-09-16 Kenichi Handa <handa@m17n.org>
5471
5472 * coding.c (make_conversion_work_buffer): Avoid calling
5473 Fget_buffer_create if it is not necessary.
5474
54752008-09-15 Martin Rudalics <rudalics@gmx.at>
5476
5477 * window.c (Fselect_window): Don't update window_select_count and
5478 use_time when norecord is not nil.
5479
54802008-09-14 Kenichi Handa <handa@m17n.org>
5481
5482 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5483 specpdl_ptr.
5484
54852008-09-12 Kenichi Handa <handa@m17n.org>
5486
5487 * indent.c (scan_for_column): Don't handle automatic composition
5488 if the current buffer is not associated with a window.
5489
5490 * composite.c (composition_reseat_it): If the current buffer is
5491 not associated with a window, ignore the automatic composition.
5492 (find_automatic_composition): Likewise.
5493
54942008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5495
5496 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5497 (Fgpm_mouse_stop): Use it.
5498 * termhooks.h (close_gpm): Declare.
5499 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5500 connection if Gpm_GetEvent fails.
5501
5502 * window.c (set_window_buffer): Always preserve current-buffer.
5503
55042008-09-12 Glenn Morris <rgm@gnu.org>
5505
5506 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5507
55082008-09-11 Glenn Morris <rgm@gnu.org>
5509
5510 * charset.c (charset-map-path): Doc fix.
5511
55122008-09-10 Kenichi Handa <handa@m17n.org>
5513
5514 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5515
5516 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5517 compose a grapheme cluster with the preceding base glyph.
5518
5519 * composite.c (composition_compute_stop_pos): Fix previous change.
5520 Reset cmp_it->id to -1 at first.
5521
55222008-09-10 Glenn Morris <rgm@gnu.org>
5523
5524 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5525
55262008-09-09 Chong Yidong <cyd@stupidchicken.com>
5527
5528 * keyboard.c (read_key_sequence): Reapply translation maps when
5529 switching keyboards.
5530
55312008-09-09 Kenichi Handa <handa@m17n.org>
5532
5533 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5534 characters.
5535
5536 * composite.c (FORWARD_CHAR): Fix calculation
5537 of (POSITION).pos_byte.
5538 (composition_compute_stop_pos): Limit the search of composition to
5539 at most 500 characters ahead. If we reach the limit or find a
5540 newline, set cmp_it->ch to -2 and return 0.
5541 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5542
55432008-09-08 Kenichi Handa <handa@m17n.org>
5544
5545 * indent.c (Fvertical_motion): Be sure to set
5546 it_overshoot_expected if it.cmp_it.id is non-negative.
5547
55482008-09-07 Andreas Schwab <schwab@suse.de>
5549
5550 * callproc.c (Fcall_process): Don't hold references to string data
5551 across garbage collection. Move initialisation of new_argv down
5552 to avoid compiler bug.
5553
55542008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5555
5556 * process.c (Fsystem_process_attributes): Doc fix.
5557
55582008-09-07 Chong Yidong <cyd@stupidchicken.com>
5559
5560 * callproc.c (Fcall_process): Canonicalize current directory name.
5561
5562 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5563 iterator advances to the next line if the current line ends in a
5564 continued tab.
5565
55662008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5567
5568 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5569 member to point to cmp_from.
5570
5571 * xdisp.c: Doc fix for references to gidx data member.
5572
55732008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5574
5575 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5576
55772008-09-07 Kenichi Handa <handa@m17n.org>
5578
5579 * composite.c (FORWARD_CHAR): Check STOP after
5580 incrementing (POSITION).pos.
5581
55822008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5583
5584 * process.c (Fsystem_process_attributes): Doc fix.
5585
55862008-09-06 Chong Yidong <cyd@stupidchicken.com>
5587
5588 * keyboard.c (Ftop_level): Doc fix.
5589
55902008-09-06 Eli Zaretskii <eliz@gnu.org>
5591
5592 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5593 minibuffer, don't let lower part of menu invade the echo area.
5594
5595 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5596 "char *q" to access menu text and advance through it. Revert the
5597 change that displayed ">" instead of ASCII character 0x10.
5598
55992008-09-05 Eli Zaretskii <eliz@gnu.org>
5600
5601 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5602 toggle boxes and radio buttons on MS-DOS as well.
5603
56042008-09-05 Kenichi Handa <handa@m17n.org>
5605
5606 * composite.c (autocmp_chars): Check lookback count.
5607 (composition_compute_stop_pos): Set cmp_it->lookback.
5608 (composition_reseat_it): Check lookback count.
5609 (struct position_record): New struct.
5610 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5611 (find_automatic_composition): New function.
5612 (composition_adjust_point): Use find_automatic_composition.
5613
5614 * dispextern.h (struct composition_it): New member lookback.
5615
56162008-09-02 Chong Yidong <cyd@stupidchicken.com>
5617
5618 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5619 if moving by a single line.
5620
56212008-09-02 Andreas Schwab <schwab@suse.de>
5622
5623 * xterm.c (x_delete_display): Fix merge error.
5624
5625 * fileio.c (Fexpand_file_name): Remove unused variables.
5626
56272008-09-02 Eli Zaretskii <eliz@gnu.org>
5628
5629 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5630 storage on all platforms, not just on DOS_NT.
5631
56322008-09-02 Jason Rumney <jasonr@gnu.org>
5633
b8ff72fa
SM
5634 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5635 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5636
56372008-09-01 Chong Yidong <cyd@stupidchicken.com>
5638
5639 * xfaces.c (Finternal_set_alternative_font_family_alist)
5640 (Finternal_set_alternative_font_registry_alist): Properly copy
5641 entire alist structure.
5642
56432008-09-01 Kenichi Handa <handa@m17n.org>
5644
d66c0241 5645 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5646 representative chars of the script is a vector.
d66c0241
JB
5647 (ftfont_list): Handle the case where the representative chars of
5648 the script is a vector.
aac0c6e3
MR
5649
5650 * character.c (syms_of_character): Docstring of
5651 script-representative-chars fixed.
5652
56532008-08-31 Eli Zaretskii <eliz@gnu.org>
5654
5655 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5656 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5657 the menu. Allocate larger buffer for `text', to account for
5658 possible ^C characters.
5659
56602008-08-31 Martin Rudalics <rudalics@gmx.at>
5661
5662 * xdisp.c (prepare_menu_bars): Don't call
5663 Vwindow_size_change_functions with arg Qt.
5664
56652008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5666
5667 * font.h (font_range):
5668 * fileio.c (report_file_error):
46e722a9
SM
5669 * composite.c (composition_update_it): Yet another int/Lisp_Object
5670 mixup (YAILOM).
aac0c6e3
MR
5671
56722008-08-30 Glenn Morris <rgm@gnu.org>
5673
5674 * data.c (Fmake_variable_frame_local): Doc fix.
5675
5676 * frame.c (Fmodify_frame_parameters): Doc fix.
5677
56782008-08-30 Eli Zaretskii <eliz@gnu.org>
5679
5680 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5681 needed by GetTokenInformation.
5682 (w32_system_process_attributes): Check return values of all system
5683 APIs.
5684
5685 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5686 only when the state changes.
5687 (IT_update_begin, IT_update_end): Add termscript trace.
5688
5689 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5690 clipboard is unavailable. Set dst to NULL if it doesn't point to
5691 malloc'ed data.
5692 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5693 passing random values to xfree.
5694
5695 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5696 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5697
56982008-08-29 Jason Rumney <jasonr@gnu.org>
5699
5700 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5701
57022008-08-29 Eli Zaretskii <eliz@gnu.org>
5703
5704 * composite.c (fill_gstring_body): Avoid compiler warnings.
5705
5706 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5707 LGLYPH_SET_CODE to avoid compiler warnings.
5708
2ae37cf0 5709 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5710
5711 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5712
5713 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5714 LGLYPH_SET_CODE.
5715
57162008-08-29 Kenichi Handa <handa@m17n.org>
5717
5718 * fileio.c (report_file_error): Don't downcase the first character
5719 of errstring if it is still unibyte.
5720
57212008-08-29 Kenichi Handa <handa@m17n.org>
5722
5723 These changes are to re-implement the automatic composition so
5724 that it doesn't use text properties.
5725
5726 * Makefile.in (ftfont.o): Depend on composite.h.
5727 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5728
5729 * character.h (Vunicode_category_table): Extern it.
5730
5731 * character.c (Vunicode_category_table): New variable.
5732 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5733
5734 * chartab.c (optimize_sub_char_table): Perform more greedy
5735 optimization.
5736
b8ff72fa
SM
5737 * composite.h (enum composition_method):
5738 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5739 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5740 (Vcomposition_function_table): Extern it.
5741 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5742 (composition_gstring_put_cache, composition_gstring_from_id)
5743 (composition_gstring_p, composition_gstring_width)
5744 (composition_compute_stop_pos, composition_reseat_it)
5745 (composition_update_it, composition_adjust_point): Extern them.
5746 (Fcomposition_get_gstring): EXFUN it.
5747
d66c0241 5748 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5749 (Vcomposition_function_table)
5750 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5751 (gstring_hash_table, gstring_work, gstring_work_headers):
5752 New variables.
aac0c6e3
MR
5753 (gstring_lookup_cache, composition_gstring_put_cache)
5754 (composition_gstring_from_id, composition_gstring_p)
5755 (composition_gstring_width, fill_gstring_header)
5756 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5757 (composition_reseat_it, composition_update_it)
b8ff72fa 5758 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5759 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5760 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5761 Defsubr compostion_get_gstring.
5762
5763 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5764 cmp_id.
5765 (struct glyph_string): Delete the member gidx. New members
5766 cmp_id, cmp_from, and cmp_to.
5767 (enum it_method): Delete GET_FROM_COMPOSITION.
5768 (struct composition_it): New struct.
5769 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5770 Delete c, len, cmp_id, cmp_len in u.comp.
5771
5772 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5773 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5774 (enum lglyph_indices): Likewise.
b8ff72fa 5775 (font_range): Adjust extern.
aac0c6e3
MR
5776 (font_fill_lglyph_metrics): Extern it.
5777
5778 * font.c (QCf): New variable.
5779 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5780 (font_prepare_composition): Delete this function.
5781 (font_range): Type and arguments changed.
5782 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5783 (font_fill_lglyph_metrics): New function.
b8ff72fa 5784 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5785 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5786 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5787 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5788
5789 * fontset.h (font_for_char): Extern it.
5790
5791 * fontset.c (font_for_char): New function.
5792
5793 * ftfont.c: Include composite.h.
5794 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5795 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5796
5797 * indent.c: Include composite.h and dispextern.h.
5798 (check_composition): Delete this function.
5799 (scan_for_column): Handle composition by
5800 composition_compute_stop_pos, composition_reseat_it, and
5801 composition_update_it.
5802 (compute_motion): Likewise.
5803 (Fvertical_motion): Fix checking of composition.
5804
5805 * keyboard.c (adjust_point_for_property): Check composition by
5806 composition_adjust_point.
5807
b8ff72fa 5808 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5809 struct glyph_string.
5810
b8ff72fa
SM
5811 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5812 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5813 struct glyph.
5814 (produce_composite_glyph): Likewise.
5815
b8ff72fa
SM
5816 * w32term.c (x_draw_composite_glyph_string_foreground):
5817 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5818 (x_draw_glyph_string): Likewise.
5819
5820 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5821 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5822
5823 * xdisp.c: Include font.h.
5824 (it_props): Delete the entry for Qauto_composed.
5825 (init_iterator): Initialize it->cmp_it.id to -1.
5826 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5827 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5828 (handle_auto_composed_prop): Delete it.
5829 (handle_composition_prop): Handle only static composition.
5830 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5831 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5832 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5833 (pop_it): Likewise.
5834 (get_next_element): Delete next_element_from_composition.
5835 (CHAR_COMPOSED_P): New macro.
5836 (get_next_display_element): For automatic composition, get a face
5837 from the font in the glyph-string.
5838 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5839 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5840 (next_element_from_string): Check if the character at the current
5841 position is composed by CHAR_COMPOSED_P.
5842 (next_element_from_buffer): Likewise.
d66c0241
JB
5843 (next_element_from_composition): Adjust for the change of struct it.
5844 Update it->cmp_it.
b8ff72fa
SM
5845 (dump_glyph): Adjust for the change of struct glyph.
5846 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5847 it and struct glyph. Don't handle automatic composition here.
5848 (fill_gstring_glyph_string): New function.
5849 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5850 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5851 (BUILD_GSTRING_GLYPH_STRING): New macro.
5852 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5853 automatic composition.
b8ff72fa 5854 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5855 struct glyph.
b8ff72fa 5856 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5857
b8ff72fa 5858 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5859 the change of struct glyph_string.
5860 (x_draw_glyph_string): Likewise.
5861
58622008-08-29 Glenn Morris <rgm@gnu.org>
5863
5864 * buffer.c (word-wrap): Doc fix.
5865 * xdisp.c (truncate-partial-width-windows): Doc fix.
5866 Increase default to 50.
5867
58682008-08-29 Chong Yidong <cyd@stupidchicken.com>
5869
5870 * xdisp.c (update_tool_bar_unwind): New function.
5871 (update_tool_bar): Temporarily set selected frame before building
5872 tool-bar items.
5873
58742008-08-28 Michael Albinus <michael.albinus@gmx.de>
5875
5876 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5877 snprintf, respectively.
5878 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5879
58802008-08-28 Chong Yidong <cyd@stupidchicken.com>
5881
5882 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5883 LDFLAGS to GNUstep CC invocation.
5884
58852008-08-27 Chong Yidong <cyd@stupidchicken.com>
5886
5887 * indent.c (Fvertical_motion): Revert last change. Handle the
5888 general case where we are moving forward, and PT spans multiple
5889 screen lines.
5890
5891 * eval.c (find_handler_clause): Temporarily increase
5892 max-lisp-eval-depth while printing the backtrace buffer, to
5893 guarantee that help-mode code can run.
5894
58952008-08-27 Eli Zaretskii <eliz@gnu.org>
5896
5897 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5898 colors under -rv.
5899 (IT_set_frame_parameters): Don't swap foreground and background
5900 colors if `(reverse . t)' is present in the frame properties.
5901 (internal_terminal_init): Call init_frame_faces only for the
5902 initial frame.
5903
59042008-08-27 Andreas Schwab <schwab@suse.de>
5905
5906 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5907
59082008-08-27 Andreas Schwab <schwab@suse.de>
5909
5910 * search.c (search_buffer): Set char_base to zero only at the end.
5911
59122008-08-27 Kenichi Handa <handa@m17n.org>
5913
b8ff72fa 5914 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5915
59162008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5917
5918 * xterm.c (x_term_init): Temporarily hide the partially
5919 initialized terminal while calling vendor-specific-keysyms.
5920
59212008-08-26 Eli Zaretskii <eliz@gnu.org>
5922
5923 * msdos.c (internal_terminal_init): Most initializations done only
5924 once, especially initial_screen_colors[] and termscript open.
5925
59262008-08-26 Chong Yidong <cyd@stupidchicken.com>
5927
5928 * eval.c (Fcondition_case): Doc fix.
5929
5930 * widgetprv.h (EmacsFramePart): Change font member to the new font
5931 struct.
5932
5933 * widget.c: Include character.h and font.h for XSETFONT.
5934 (setup_frame_gcs): Compute X font id from font struct, just once.
5935
59362008-08-26 Eli Zaretskii <eliz@gnu.org>
5937
5938 * term.c (get_named_tty): Fix last change.
5939
59402008-08-26 Chong Yidong <cyd@stupidchicken.com>
5941
5942 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5943 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5944
59452008-08-25 Eli Zaretskii <eliz@gnu.org>
5946
5947 * frame.c (do_switch_frame): Mark previously displayed frame as
5948 obscured for FRAME_MSDOS_P frames as well.
5949
59502008-08-24 Eli Zaretskii <eliz@gnu.org>
5951
5952 * frame.c (make_terminal_frame): Initialize f->terminal,
5953 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5954 Set the top frame to newly created frame.
5955 (Fmake_terminal_frame): Reuse the_only_display_info.
5956
5957 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5958 estimating available memory.
5959
b97439ce 59602008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5961
5962 * nsterm.m (ns_draw_window_cursor): Don't call
5963 NSDisableScreenUpdates and NSEnableScreenUpdates on
5964 non-NS_IMPL_COCOA systems.
5965
59662008-08-23 Andreas Schwab <schwab@suse.de>
5967
5968 * process.c (procfs_system_process_attributes): Fix use of
5969 uninitialized variables.
5970
59712008-08-23 Eli Zaretskii <eliz@gnu.org>
5972
5973 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5974
5975 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5976 calling tty-set-up-initial-frame-faces.
5977
b8ff72fa
SM
5978 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5979 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5980
5981 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5982 addition to output_termcap.
5983
5984 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5985
5986 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5987 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5988 highlight.
5989
5990 * process.c [!subprocesses]: Define QCname.
5991 (syms_of_process): Intern and staticpro it.
5992
5993 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5994 Adjust for changes in encoding/decoding routines.
5995 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5996 encode_coding and decode_coding.
5997
b8ff72fa 5998 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5999
6000 * dosfns.c: Include frame.h before termhooks.h.
6001 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6002 variable termscript.
6003
6004 * s/msdos.h (USER_FULL_NAME): Define.
6005 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6006
6007 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6008 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6009 pw->pw_gecos.
6010
6011 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6012 SELECTED_FRAME as additional (1st) argument.
6013 (tty_read_avail_input): Handle output_msdos_raw in
6014 addition to output_termcap.
6015
6016 * msdos.c: Include frame.h before termhooks.h.
6017 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6018 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6019 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6020 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6021 (IT_set_terminal_modes, IT_reset_terminal_modes)
6022 (IT_set_frame_parameters): Use tty->termscript instead of a global
6023 variable termscript.
6024 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6025 global variable terminal_coding. Don't refer to
6026 Vnonascii_translation_table.
6027 (internal_terminal_init): Set Vwindow_system in current_kboard.
6028 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6029 Announce date and time of session start, if termscript is open.
6030 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6031 term.c:init_tty). Open termscript only of not already open.
6032 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6033 here instead of dos_ttraw. Don't initialize display if this is an
6034 initial tty. Don't set FRAME_FONT.
6035 (Vwindow_system_version): Bump to 23.
6036 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6037 is available, set up mouse_position_hook.
6038 (dos_ttraw, IT_set_terminal_modes): If called with initial
6039 terminal, do nothing.
6040 (IT_set_frame_parameters): Handle the Qtty_type frame
6041 parameter by calling internal_terminal_init.
6042 (dos_set_window_size, show_mouse_face)
6043 (clear_mouse_face, IT_note_mode_line_highlight)
6044 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6045 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6046 (initialize_msdos_display): New function.
6047 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6048 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6049 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6050 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6051 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6052 (request_sigio, unrequest_sigio): Don't define, now defined on
6053 sysdep.c.
6054 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6055
6056 * term.c [MSDOS]: Include msdos.h.
6057 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6058 conditional to DOS_NT. Allow only one call to this function in a
6059 session. Don't allocate a new struct tty_display_info; instead,
6060 reuse the_only_display_info. Call get_tty_size to get screen
6061 dimensions. Call init_baud_rate to set bad_rate.
6062 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6063 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6064 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6065 (get_tty_terminal, get_named_tty, Ftty_type)
6066 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6067 output_termcap.
b8ff72fa
SM
6068 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6069 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6070 only when subprocesses are supported.
aac0c6e3
MR
6071
6072 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6073 f->output_data.x.
6074 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6075 terminal devices.
6076
5582fbc7 6077 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6078 x_output.
6079 (FRAME_FONT): Use output_data.tty.
6080 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6081 (struct x_display_info): Rename from display_info. Update all users in
6082 msdos.c.
aac0c6e3 6083 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6084 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6085 (dos_ttraw): Update prototype.
6086
6087 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6088 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6089
60902008-08-23 Jason Rumney <jasonr@gnu.org>
6091
6092 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6093 (fn_TIFFSetDirectory): New library function used.
6094 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6095 (tiff_load): Use :index to select among multiple images. Set count
6096 property when multiple images exist.
6097 (gif_format): Use :index, not :image.
6098
60992008-08-23 Chong Yidong <cyd@stupidchicken.com>
6100
6101 * xdisp.c (try_scrolling): Check INT_MAX instead of
6102 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6103 to obtain INT_MAX.
6104
61052008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6106
6107 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6108
61092008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6110
6111 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6112 GNUstep library location.
6113
61142008-08-21 Chong Yidong <cyd@stupidchicken.com>
6115
6116 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6117 before using it.
6118
6119 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6120
61212008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6122
6123 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6124 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6125 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6126 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6127 (EmacsApp-cursor_blink_handler): Remove declaration.
6128 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6129 match 01 Feb 2008 changes in xterm.c.
6130 (ns_read_socket): Add cast to avoid warning.
6131 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6132 GNUstep.
6133
61342008-08-20 Chong Yidong <cyd@stupidchicken.com>
6135
6136 * xselect.c (x_get_foreign_selection): Return nil if desired
6137 selection could not be obtained, instead of signalling an error.
6138
61392008-08-20 David Reitter <david.reitter@gmail.com>
6140
6141 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6142 * nsterm.m: Remove ns-specific code for cursor blinking.
6143 (ns_draw_window_cursor): Clear cursor properly rather than
6144 redrawing the area. Respect width of bar cursors.
6145 These changes enable the use of generic blink-cursor-mode and
6146 generic cursor types in NS and support smooth cursor movements (do
6147 not blink off after command).
6148 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6149 Nextstep, too.
6150
61512008-08-19 Kenichi Handa <handa@m17n.org>
6152
6153 * font.c (Vfont_log_deferred): New variable.
6154 (font_add_log): Check Vfont_log_deferred.
6155 (font_deferred_log): New function.
6156
6157 * font.h (font_deferred_log): Extern it.
6158
6159 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6160 for sorting.
6161 (face_for_char): Use deferred log.
6162
61632008-08-18 Kenichi Handa <handa@m17n.org>
6164
6165 * fontset.c (face_for_char): Add font log.
6166
6167 * font.c (font_add_log): Add the font properties :script, :lang,
6168 and :otf in the log.
6169
61702008-08-17 Chong Yidong <cyd@stupidchicken.com>
6171
6172 * xdisp.c: Remove dead code.
6173 (handle_invisible_prop, next_overlay_string): Defer call to
6174 setup_for_ellipsis.
6175 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6176
61772008-08-15 Chong Yidong <cyd@stupidchicken.com>
6178
6179 * xfaces.c (lookup_derived_face): Properly handle possible zero
6180 return value of get_lface_attributes.
6181 (merge_faces): Don't tell lookup_derived_face to signal an error
6182 if face is not found.
6183
6184 * dired.c (Fdirectory_files): Doc fix.
6185
6186 * process.c (make_process): Initialize kill_without_query struct
6187 member.
6188
61892008-08-15 Eli Zaretskii <eliz@gnu.org>
6190
6191 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6192 Alternative calculation of totphys for Visual Studio 6.
6193
6194 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6195
6196 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6197 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6198 All users changed.
6199 (stat): Only root directory passed to GetDriveType. Allow RAM
6200 disk as well as local fixed disk when w32-get-true-file-attributes
6201 is set to `local'.
6202 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6203 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6204 (w32_cached_id, w32_add_to_cache): New functions.
6205 (get_name_and_id): Look account names in the cache before calling
6206 lookup_account_sid.
6207 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6208 New initialization flags.
6209 (globals_of_w32): Initialize them to zero.
6210 (w32_system_process_attributes): Use w32_cached_id and
6211 w32_add_to_cache.
6212
62132008-08-14 Lawrence Mitchell <wence@gmx.li>
6214
6215 * lread.c (Fread_char, Fread_char_exclusive): If no character
6216 event is read before timeout is reached, return nil, rather than
6217 converting to a number.
6218
62192008-08-14 Chong Yidong <cyd@stupidchicken.com>
6220
6221 * fns.c (use_dialog_box): Doc fix.
6222
6223 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6224 on OS X.
6225
62262008-08-13 Chong Yidong <cyd@stupidchicken.com>
6227
6228 * frame.c (Qns_parse_geometry): New var.
6229 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6230
62312008-08-11 Chong Yidong <cyd@stupidchicken.com>
6232
6233 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6234 space character in calculating tabs.
6235
62362008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6237
6238 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6239
62402008-08-10 Glenn Morris <rgm@gnu.org>
6241
6242 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6243 silence gcc "limited range of data type" warnings in some
6244 make_fixnum_or_float calls.
6245
62462008-08-09 Eli Zaretskii <eliz@gnu.org>
6247
6248 * w32.c (w32_system_process_attributes): If the process does not
6249 exist, return nil.
6250
6251 * w32.c: Include thelp32.h, psapi.h and coding.h.
6252 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6253 declarations.
6254 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6255 (Process32Next_Proc): New typedefs.
6256 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6257 (g_b_init_process32_next, g_b_init_open_thread_token)
6258 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6259 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6260 (g_b_init_get_process_working_set_size)
6261 (g_b_init_global_memory_status_ex): New static variables.
6262 (globals_of_w32): Initialize them.
6263 (create_toolhelp32_snapshot, process32_first, process32_next)
6264 (open_thread_token, impersonate_self, revert_to_self)
6265 (get_process_memory_info, get_process_working_set_size)
6266 (global_memory_status, global_memory_status_ex): New wrapper
6267 functions.
6268 (w32_list_system_processes, w32_system_process_attributes)
6269 (enable_privilege, restore_privilege, ltime, process_times):
6270 New functions.
6271 (convert_time_raw): New function.
6272 (convert_time): Remove conversion of FILETIME into time in 100
6273 nsec units, call convert_time_raw instead.
6274
6275 * process.h (w32_list_system_processes, w32_system_process_attributes):
6276 Add prototypes.
6277 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6278 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6279 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6280 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6281
6282 * process.c (Fsystem_process_attributes): Doc fix.
6283
62842008-08-08 Chong Yidong <cyd@stupidchicken.com>
6285
6286 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6287 a continued multi-char glyph; if so, advance to the actual glyph.
6288
62892008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6290
6291 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6292
6293 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6294 (.m.o): Use it.
6295 * config.in: Regenerate.
6296
62972008-08-07 Chong Yidong <cyd@stupidchicken.com>
6298
6299 * xdisp.c (redisplay_window): Revert last change.
6300 (try_window): Check bottom scroll margin too.
6301
63022008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6303
6304 * config.in: Regenerate.
6305
6306 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6307 -list-load-path-shadows'.
6308 (nsgui.h): Reduce number of things depending on it.
6309
63102008-08-06 Chong Yidong <cyd@stupidchicken.com>
6311
6312 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6313 instead of window-end which does the wrong thing at eob.
6314 (try_cursor_movement): Minor optimization.
6315 (redisplay_window): If scroll margin is defined, don't assume
6316 window doesn't need scrolling.
6317
63182008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6319
6320 * config.in: Regenerate.
6321
6322 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6323 (mostlyclean): Don't delete *.d under NS.
6324
6325 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6326
63272008-08-06 Kenichi Handa <handa@m17n.org>
6328
6329 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6330
63312008-08-06 Andreas Schwab <schwab@suse.de>
6332
6333 * config.in: Regenerate.
6334
63352008-08-05 Chong Yidong <cyd@stupidchicken.com>
6336
6337 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6338 forcing a window start.
6339
6340 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6341 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6342
63432008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6344
6345 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6346 argument.
6347
63482008-08-05 Juanma Barranquero <lekktu@gmail.com>
6349
6350 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6351 <scroll-down-aggressively, before-change-functions>:
6352 <after-change-functions>: Reflow docstrings.
6353
63542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6355 Ken Raeburn <raeburn@gnu.org>
6356
6357 Dock menu customization, based on a patch by Ken Raeburn, plus some
6358 other fixes.
6359 * nsmenu.m (dockMenu): New variable.
6360 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6361
6362 * nsterm.h (dockMenu): Declare.
6363
6364 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6365 (ns_term_init): Initialize dockMenu.
6366 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6367 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6368 left.
6369
6370 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6371
63722008-08-04 Chong Yidong <cyd@stupidchicken.com>
6373
6374 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6375
6376 * config.in: Regenerate.
6377
63782008-08-04 Seiji Zenitani <zenitani@mac.com>
6379
6380 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6381
63822008-08-04 Chong Yidong <cyd@stupidchicken.com>
6383
6384 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6385
63862008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6387
6388 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6389
6390 * keyboard.h: Comment an #endif.
6391
6392 * lisp.h (have_menus_p): Adjust comment.
6393
6394 * menu.c (find_and_return_menu_selection): Fix comparison with
6395 client_data.
6396
6397 * nsmenu.m (popup_activated_flag): New variable.
6398 (popup_activated): New function.
6399 (menu-or-popup-active-p): New exported lisp definition.
6400 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6401 when popup done.
6402 (ns_popup_dialog): Set popup_activated_flag.
6403
6404 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6405 version for GNUstep (handled by conditional typedef in nsterm.m).
6406 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6407 in rgb.txt).
6408
6409 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6410
6411 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6412
6413 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6414
6415 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6416 shortcircuit if popup_activated like GTK and X toolkit.
6417
6418 * m/inter386.h: Change DARWIN to DARWIN_OS.
6419
6420 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6421 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6422 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6423 comment on NO_SOCK_SIGIO.
6424
64252008-08-03 Chong Yidong <cyd@stupidchicken.com>
6426
6427 * nsterm.m (windowDidResize): Remove stopModal call.
6428
64292008-08-03 Andreas Schwab <schwab@suse.de>
6430
6431 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6432 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6433
64342008-08-02 Chong Yidong <cyd@stupidchicken.com>
6435
6436 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6437 Don't use uninitialized pointer variable when using getrlimit.
6438
64392008-08-02 Jason Rumney <jasonr@gnu.org>
6440
6441 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6442
64432008-08-02 Eli Zaretskii <eliz@gnu.org>
6444
6445 * alloc.c (NSTATICS): Bump to 0x640.
6446
6447 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6448
6449 * lisp.h: Add prototype for directory_files_internal.
6450
6451 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6452 New functions.
6453 (syms_of_process): Defsubr them. Add initializations for various
6454 Q* symbols used in procfs_system_process_attributes.
6455 (procfs_list_system_processes, procfs_system_process_attributes)
6456 [HAVE_PROCFS]: New functions.
6457 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6458 (procfs_get_total_memory): New functions.
6459
64602008-08-01 Juanma Barranquero <lekktu@gmail.com>
6461
6462 * xfaces.c (Fx_load_color_file): Fix previous change;
6463 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6464
64652008-08-01 Michael Albinus <michael.albinus@gmx.de>
6466
6467 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6468
64692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6470
6471 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6472
64732008-08-01 Chong Yidong <cyd@stupidchicken.com>
6474
6475 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6476
6477 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6478 define NSApplicationDelegateReplySuccess.
6479 (EmacsView -converstationIdentifier): Use long instead of
6480 NSInteger for GNUstep, since it doesn't have NSInteger.
6481
6482 * xmenu.c: Revert last change.
6483
6484 * keyboard.h: Fix last change.
6485
64862008-08-01 Juanma Barranquero <lekktu@gmail.com>
6487
6488 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6489 on Windows.
6490
64912008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6492
6493 Warning clearing and clean-up in NS port.
6494 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6495 Add prototypes.
6496 * nsgui.h (FACE_DEFAULT): Remove, unused.
6497 (XGCValues): Change colors to unsigned long.
6498 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6499 nsterm.m.
6500 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6501 (ns_list_fonts): Remove, unused.
6502 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6503 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6504 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6505 (nsfont_draw): Compare face colors to 0, not nil.
6506 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6507 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6508 (-addSubmenuWithTitle:): Use NSMenuItem class.
6509 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6510 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6511 (ns_clip_to_row): Make gc arg a BOOL.
6512 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6513 ns_clip_to_row() call.
6514 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6515 used). Cast FRAME_FONT assignments.
6516 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6517 (ns_string_to_lispmod): Change arg to const char.
6518 (ns_term_init): Use NSMenuItem class.
6519 (EmacsApp -openFile:): Move to different section of file.
6520 (EmacsApp -application:openFiles:): Don't return a value, call
6521 -replyToOpenOrPrint:.
6522 (EmacsView -keyDown:): Fix up cast.
6523 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6524 (EmacsView -menuDown:): Cast tag in call to
6525 find_and_call_menu_selection().
6526 (ns_list_fonts): Remove, unused.
6527 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6528 (ns_fontname_to_xlfd): Make static.
6529 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6530 Remove prototypes (now in keyboard.h).
6531 (next_menubar_widget_id): Remove, unused.
6532 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6533 Remove prototypes (now in keyboard.h).
6534 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6535
65362008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6537
6538 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6539 (floatfns.o): Depend on syssignal.h.
6540 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6541
6542 * systty.h: Fix previous change that removed BSD_TERMIOS.
6543 Add comments to #ifdefs.
6544
65452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6546
6547 * w32fns.c (w32-load-color-file): Remove.
6548 (x-open-connection): Use renamed Fx_load_color_file.
6549 * xfaces.c (x-load-color-file): Add.
6550 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6551 Emacs.clr.
6552 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6553
65542008-07-31 Michael Albinus <michael.albinus@gmx.de>
6555
6556 * dbusbind.c (Fdbus_call_method_asynchronously)
6557 (Fdbus_method_error_internal): New defuns.
6558 (xd_read_message): Handle also reply messages.
6559 (Vdbus_registered_functions_table): Extend docstring.
6560
65612008-07-31 Juanma Barranquero <lekktu@gmail.com>
6562
6563 * keyboard.c (gobble_input): Fix previous change.
6564
65652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6566
6567 * bitmaps/README:
6568 * xfns.c:
6569 * termcap.c:
6570 * term.c:
6571 * syswait.h:
6572 * systty.h:
6573 * systime.h:
6574 * syssignal.h:
6575 * sysdep.c:
6576 * process.h:
6577 * process.c:
6578 * print.c:
6579 * ndir.h:
6580 * lread.c:
6581 * keyboard.c:
6582 * getpagesize.h:
6583 * floatfns.c:
6584 * fileio.c:
6585 * emacs.c:
6586 * doc.c:
6587 * dispnew.c:
6588 * dired.c:
6589 * data.c:
6590 * callproc.c:
6591 * buffer.c:
6592 * README:
6593 * Makefile.in:
6594 * s/template.h:
6595 * s/msdos.h:
6596 * m/vax.h: Remove VMS support.
6597 * s/vms.h:
6598 * vlimit.h:
6599 * uaf.h:
6600 * temacs.opt:
6601 * param.h:
6602 * ioctl.h: Remove file.
6603
66042008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6605
6606 * s/ms-w32.h (MULTI_KBOARD): Remove.
6607 * xterm.c:
6608 * xselect.c:
6609 * xfns.c:
6610 * window.c:
6611 * w32term.c:
6612 * w32fns.c:
6613 * terminal.c:
6614 * termhooks.h:
6615 * term.c:
6616 * sysdep.c:
6617 * keyboard.h:
6618 * keyboard.c:
6619 * frame.h:
6620 * frame.c:
6621 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6622 * config.in: Regenerate.
6623
66242008-07-30 Jason Rumney <jasonr@gnu.org>
6625
6626 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6627
6628 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6629 (w32font_open_internal): Get unicode version of textmetrics.
6630 Don't enable or disable glyph indices here.
6631 (w32font_open): Disable use of glyph indices.
6632
6633 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6634
66352008-07-30 Chong Yidong <cyd@stupidchicken.com>
6636
6637 * minibuf.c (Vread_buffer_function): Doc fix.
6638
66392008-07-30 John Paul Wallington <jpw@pobox.com>
6640
6641 * minibuf.c (read_buffer_completion_ignore_case): New var.
6642 (Fread_buffer): Use it.
6643
66442008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6645
6646 * systty.h (sensemode): Remove empty #if. Remove reference to
6647 BSD_TERMIOS, unused.
6648
6649 * sysdep.c: Remove reference to DGUX.
6650 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6651
6652 * config.in: Regenerate.
6653
66542008-07-30 Jason Rumney <jasonr@gnu.org>
6655
6656 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6657
66582008-07-29 Jason Rumney <jasonr@gnu.org>
6659
6660 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6661 is populated.
6662 (uniscribe_encode_char): Always use uniscribe.
6663 Avoid using context if cache is populated.
6664
66652008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6666
6667 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6668 open menu.
6669
6670 * gtkutil.c (menu_nav_ended): Remove.
6671 (create_menus): Remove signal connect for menu_nav_ended.
6672
66732008-07-28 Chong Yidong <cyd@stupidchicken.com>
6674
6675 * xdisp.c (redisplay_window): Check return value of
6676 compute_window_start_on_continuation_line before forcing a window
6677 start.
6678
66792008-07-28 Jason Rumney <jasonr@gnu.org>
6680
6681 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6682
6683 * w32term.c (w32_enable_unicode_output, cleartype_active):
6684 Remove obsolete display options.
6685 (x_draw_glyph_string_background): Don't use old cleartype_active
6686 workaround.
6687 (w32_initialize): Remove cleartype_active initialization.
6688 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6689
66902008-07-28 Andreas Schwab <schwab@suse.de>
6691
6692 * lisp.h (init_weak_hash_tables, syms_of_font)
6693 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6694 (remove_hash_entry): Don't declare.
6695 * eval.c (maybe_call_debugger): Make static and move before use.
6696 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6697 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6698 * xterm.h (x_set_frame_alpha): Declare.
6699
67002008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6701
6702 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6703 (create_menus): Connect selection-done to menu_nav_ended.
6704
67052008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6706
6707 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6708 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6709 parameter with read of 'alpha' one.
6710 (Qns_frame_parameter): Remove.
5582fbc7 6711 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6712 (next-selection-coding-system, Vselection_coding_system)
6713 (Vnext_selection_coding_system): Drop.
6714
67152008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6716
6717 * nsfns.m (do-applescript, do_applescript): Rename to
6718 ns-do-applescript, ns_do_applescript, and move within file.
6719
67202008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6721
6722 Remove support for Mac Carbon.
6723 * mactoolbox.c:
6724 * macterm.h:
6725 * macterm.c:
6726 * macselect.c:
6727 * macmenu.c:
6728 * macgui.h:
6729 * macfns.c:
6730 * mac.c: Remove file.
6731 * s/darwin.h:
6732 * m/intel386.h:
6733 * xfaces.c:
6734 * xdisp.c:
6735 * window.c:
6736 * tparam.c:
6737 * termhooks.h:
6738 * termcap.c:
6739 * term.c:
6740 * syssignal.h:
6741 * sysselect.h:
6742 * sysdep.c:
6743 * process.c:
6744 * lread.c:
6745 * lisp.h:
6746 * keyboard.c:
6747 * image.c:
6748 * fringe.c:
6749 * frame.h:
6750 * frame.c:
6751 * fontset.c:
6752 * font.h:
6753 * font.c:
6754 * fns.c:
6755 * fileio.c:
6756 * emacs.c:
6757 * dispnew.c:
6758 * dispextern.h:
6759 * config.in:
6760 * atimer.c:
2ae37cf0 6761 * Makefile.in: Remove code for Carbon.
aac0c6e3 6762
f0131492 67632008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6764
6765 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6766
67672008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6768
6769 * macterm.h (kCGBitmapByteOrder32Host): New define for
6770 non-universal SDKs.
6771
6772 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6773 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6774
6775 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6776 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6777
67782008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6779
6780 * w32inevt.c: Include dispextern.h.
6781
67822008-07-26 Andreas Schwab <schwab@suse.de>
6783
6784 * print.c (print_object): Fix off-by-one in last change.
6785
67862008-07-25 Juanma Barranquero <lekktu@gmail.com>
6787
6788 * term.c (syms_of_term): Don't initialize default_orig_pair,
6789 default_set_foreground and default_set_background on Windows.
6790
67912008-07-25 Jason Rumney <jasonr@gnu.org>
6792
6793 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6794 ScriptItemize. Clean up return value checking. Remove unused
6795 variables.
6796 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6797 shaping engine.
6798
6799 * w32font.c (w32font_has_char): Handle the case where we can't
6800 determine the script for a character.
6801
68022008-07-25 Chong Yidong <cyd@stupidchicken.com>
6803
6804 * term.c (syms_of_term): Initialize default_orig_pair,
6805 default_set_foreground, and default_set_background.
6806
6807 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6808 clash (bug#86).
6809 (getloadavg): Callers changed.
6810
6811 * image.c (svg_load_image): Fix last change.
6812 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6813 image size is valid. Use g_object_unref instead of deprecated
6814 rsvg_handle_free to free rsvg handle.
6815 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6816
68172008-07-25 Jason Rumney <jasonr@gnu.org>
6818
6819 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6820 surrogates before looking up glyph index.
6821 (w32font_text_extents): Encode as surrogates if falling back to
6822 functions that need UTF-16 wide chars.
6823
6824 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6825 BMP as surrogates before looking up glyph index.
6826
68272008-07-25 Chong Yidong <cyd@stupidchicken.com>
6828
6829 * image.c (svg_load_image): Check for failure in return value of
6830 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6831
68322008-07-25 Jason Rumney <jasonr@gnu.org>
6833
6834 * w32font.c (Fx_select_font): Reverse sense of second arg.
6835
68362008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6837
6838 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6839 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6840
6841 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6842 (PURESIZE): Use it.
6843
68442008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6845
6846 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6847 * m/alpha.h (TEXT_END):
6848 * m/ibmrs6000.h (TEXT_END):
6849 * m/macppc.h (TEXT_END):
6850 * s/darwin.h (TEXT_END):
6851 * s/msdos.h (TEXT_END): Remove, unused.
6852 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6853 * s/cygwin.h: Remove comment.
6854
6855 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6856 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6857 * m/intel386.h (DOT_GLOBAL_START):
6858 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6859 (USG): Remove, file not used on USG platforms.
6860
6861 * Makefile.in (HAVE_X11): Remove empty #else.
6862
68632008-07-24 Andreas Schwab <schwab@suse.de>
6864
6865 * fileio.c (Finsert_file_contents): Properly adjust undo list
6866 after format conversion.
6867
68682008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6869
6870 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6871 (menu_nav_ended): Remove.
6872 (create_menus): Remove signal connect for menu_nav_ended.
6873 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6874 create_menus.
6875 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6876
68772008-07-23 Jason Rumney <jasonr@gnu.org>
6878
6879 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6880 with opened font.
6881 (w32font_open): Set font type to gdi.
6882
6883 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6884
68852008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6886
6887 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6888 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6889 defines it.
6890 * unexec.c (ADDR_CORRECT): Define unconditionally.
6891
6892 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6893
6894 * unexec.c: Remove code depending on !COFF and USG, the file is
6895 not used for such systems.
6896
6897 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6898 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6899 (LD_SWITCH_SYSTEM_1): Remove, update users.
6900
6901 * s/darwin.h (DATA_END):
6902 * m/intel386.h (DATA_END):
6903 * m/ibmrs6000.h (DATA_END):
6904 * m/alpha.h (DATA_END): Remove, unused.
6905
6906 * config.in: Regenerate.
6907 * s/ms-w32.h (subprocesses): Define unconditionally.
6908 * s/template.h (subprocesses): Update comment.
6909 * s/vms.h (subprocesses):
6910 * s/usg5-4.h (subprocesses):
6911 * s/hpux10-20.h (subprocesses):
6912 * s/gnu-linux.h (subprocesses):
6913 * s/cygwin.h (subprocesses):
6914 * s/bsd-common.h (subprocesses):
6915 * s/aix4-2.h (subprocesses):
6916 * s/darwin.h (subprocesses): Do not define, defined by default now.
6917
6918 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6919 Remove all references.
6920 (temacs): Add GNUstep specific ld flags.
6921
6922 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6923 similarly to what X does.
6924
69252008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6926
6927 * nsfns.m (x-list-fonts): Remove.
6928 (syms_of_nsfns): Drop the x-list-fonts declaration.
6929 * nsterm.m: Get rid of remaining "//" comments.
6930
69312008-07-22 Chong Yidong <cyd@stupidchicken.com>
6932
6933 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6934
6935 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6936 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6937 (Fns_own_selection_internal, Fx_disown_selection_internal)
6938 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6939
6940 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6941 ... */' style of docstrings. Doc fixes.
6942
69432008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6944
6945 * terminfo.c (UP, BC, PC): Undo previous change.
6946
6947 * nsfns.m: Rename ns prefixed functions/variables to the
6948 corresponding x versions. Update references.
6949
69502008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6951
6952 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6953
69542008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6955
6956 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6957 Remove forwarding functions.
6958 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6959 non-static.
6960 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6961 non-static.
6962 (ns_frame_parm_handlers): Use the new names.
6963 (syms_of_nsfns): Move to the end of file.
6964
6965 * nsterm.m (syms_of_nsterm): Move to the end of file.
6966
6967 * dispnew.c (init_display): Remove code for X10.
6968
69692008-07-22 Jason Rumney <jasonr@gnu.org>
6970
6971 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6972 bare drive.
6973
69742008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6975
6976 * nsterm.m (syms_of_nsterm): Remove debugging println.
6977
69782008-07-22 David Reitter <david.reitter@gmail.com>
6979
6980 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6981 Carbon implementation of the same functionality: execute arbitrary
6982 AppleScript code.
6983
69842008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6985
6986 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6987 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6988 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6989 (Fx_display_mm_height, Fx_display_mm_width)
6990 (Fx_display_backing_store, Fx_display_visual_class)
6991 (Fx_display_save_under, Fx_open_connection)
6992 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6993 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6994 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6995 (Fx_display_pixel_width, Fx_display_pixel_height)
6996 (Fx_display_usable_bounds, Fx_display_planes)
6997 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6998 ... */' style of docstrings.
6999
70002008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7001
7002 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7003 on this platform.
7004 (mips):
7005 * m/iris4d.h (mips): Do not define.
7006 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7007
7008 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7009
7010 * image.c:
7011 * nsfns.m:
7012 * nsselect.m:
7013 * nsterm.h:
7014 * nsterm.m: Rename ns prefixed functions/variables to the
7015 corresponding x versions. Update references.
7016
7017 * m/ibms390x.h (NO_REMAP): Do not undefine.
7018
7019 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7020
70212008-07-21 Chong Yidong <cyd@stupidchicken.com>
7022
7023 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7024 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7025 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7026 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7027 (Fns_display_mm_height, Fns_display_mm_width)
7028 (Fns_display_backing_store, Fns_display_visual_class)
7029 (Fns_display_save_under, Fns_open_connection)
7030 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7031 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7032 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7033 (Fns_display_pixel_width, Fns_display_pixel_height)
7034 (Fns_display_usable_bounds, Fx_display_planes)
7035 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7036
70372008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7038
7039 * print.c (print_object): Check print_depth before searching for
7040 circularities.
7041
70422008-07-21 Michael Albinus <michael.albinus@gmx.de>
7043
7044 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7045 only sprintf.
7046
70472008-07-21 Kenichi Handa <handa@m17n.org>
7048
7049 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7050
70512008-07-20 Andreas Schwab <schwab@suse.de>
7052
7053 * syntax.c (find_start_pos, find_start_value)
7054 (find_start_value_byte, find_start_begv, find_defun_start)
7055 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7056
70572008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7058
7059 * s/sol2-3.h: Insert contents of s/sol2.h.
7060 (LD_SWITCH_SYSTEM): Remove redundant definition.
7061 * s/sol2.h: Remove, unused.
7062
70632008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7064
7065 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7066
70672008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7068
7069 * Makefile.in (ns_appdir): Fix typo in find command.
7070
70712008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7072
7073 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7074
7075 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7076 added not supported anymore.
7077
7078 * s/usg5-4-2.h (LIBS_SYSTEM):
7079 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7080
7081 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7082 * s/lynxos.h (GETPGRP_NO_ARG):
7083 * s/hpux10-20.h (NO_SIOCTL_H):
7084 * s/gnu.h (GETPGRP_NO_ARG):
7085 * s/gnu-linux.h (NO_SIOCTL_H):
7086 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7087 * s/cygwin.h (GETPGRP_NO_ARG):
7088 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7089 (C_DEBUG_SWITCH): Remove duplicate definition.
7090
7091 * m/ibms390.h: Remove boilerplate comments.
7092
7093 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7094
7095 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7096 (wait_reading_process_output): Remove code for SunOS, platform not
7097 supported anymore. Use SOLARIS2 instead of sun.
7098
70992008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7100
7101 * font.c (font_open_by_name): Under NS, default lface height to zero.
7102 (font_open_for_lface): Under NS, set size based on frame fontsize.
7103 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7104 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7105
71062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7107
7108 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7109 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7110 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7111 YES/NO.
7112 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7113 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7114 * Makefile.in (clean): Clear out build destination dir.
7115
71162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7117
7118 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7119 xterm, xselect.
7120 * lisp.h: Remove declaration of hash_remove.
7121 * nsgui.h: Remove redefinitions of hash_remove.
7122 * fns.c (hash_remove): Rename to hash_remove_from_table.
7123
71242008-07-19 Seiji Zenitani <zenitani@mac.com>
7125
7126 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7127 strdup() the family UTF8String before modifying it.
7128
71292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7130
7131 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7132 NS_FACE_BACKGROUND with 0 instead of nil.
7133 * nsfont.m (nsfont_draw): Same.
7134
71352008-07-19 Chong Yidong <cyd@stupidchicken.com>
7136
7137 * nsfns.m (ns_set_background_color): Fix crash.
7138
71392008-07-18 Chong Yidong <cyd@stupidchicken.com>
7140
7141 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7142
71432008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7144
7145 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7146
71472008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7148
7149 * gtkutil.c: Include <config.h> instead of "config.h".
7150
7151 * lisp.h (Foverlay_buffer): Add EXFUN.
7152
7153 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7154 child process to complete child_setup. Undo 2005-09-21 change.
7155
7156 * s/darwin.h: Mention setsid after vfork.
7157
71582008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7159
7160 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7161 Depend on macgui.h.
7162
7163 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7164 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7165
7166 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7167 and f19.
7168 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7169
7170 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7171 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7172 Remove enumerators.
7173
7174 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7175 Check if FACE_FROM_ID returns NULL.
7176
71772008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7178
7179 * w32inevt.c (change_frame_size): Remove extern declaration.
7180 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7181 change_frame_size.
7182
71832008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7184
7185 * getloadavg.c: Revert last change (2008-07-15).
7186
71872008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7188
7189 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7190 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7191 from configure.
7192
71932008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7194
7195 * s/sol2.h:
7196 * s/sol2-4.h: Reorganize conditionals.
7197
7198 * ecrt0.c: Remove code depending on m68000, not used anymore.
7199
7200 * fns.c (hash_remove): Make static.
7201 * lisp.h (hash_remove): Don't prototype.
7202
7203 * m/ibmrs6000.h:
7204 * m/ibms390x.h:
7205 * m/macppc.h: Remove boilerplate comments.
7206
7207 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7208 Solaris, which does not need them.
7209
7210 * m/vax.h: Remove comments about unsupported systems.
7211
7212 * s/darwin.h: Reorganize ifdefs.
7213
72142008-07-17 Andreas Schwab <schwab@suse.de>
7215
7216 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7217
72182008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7219
7220 Use SDATA. Follow coding convention of placing operators at
7221 beginning of next line rather than end of previous line, and placing
7222 spaces around infix operators.
7223
7224 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7225 in case it was defined already.
7226 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7227 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7228 ns_default.
7229 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7230 Lisp_Objects.
7231 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7232 (ns_defined_color, ns_color_to_lisp): Declare.
7233 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7234 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7235 it's accepted even with USE_LISP_UNION_TYPE.
7236 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7237 (update_frame_tool_bar): Remove apparently obsolete tests for
7238 non-integerness of f->tool_bar_lines.
7239 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7240 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7241 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7242 (nsfont_open): Don't confuse NULL for Qnil.
7243 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7244 * menu.h (find_and_call_menu_selection):
7245 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7246 (find_and_return_menu_selection): Always return something.
7247 * frame.h: Include dispextern.h for Display_Info.
7248 (display_x_get_resource): Declare.
7249
72502008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7251
7252 * syntax.c: Remove stdio.h include accidentally introduced in
7253 Emacs.app commit.
7254 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7255 NS_IMPL_COCOA.
7256 * keyboard.c (handle_async_input, input_available_signal): Remove
7257 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7258
72592008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7260
7261 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7262 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7263 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7264 Use SDATA.
7265
7266 * keymap.c: Remove all NS-specific code.
7267 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7268 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7269 where_is_preferred_modifier, return a different value depending on how
7270 preferred is the binding.
7271 (where_is_internal): Adjust accordingly.
7272 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7273 Adjust to new preferred_sequence_p.
7274 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7275 * keyboard.c (parse_solitary_modifier): Not static any more.
7276 * keyboard.h (parse_solitary_modifier): Declare.
7277
72782008-07-16 Andreas Schwab <schwab@suse.de>
7279
7280 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7281 of easymenu.
7282
72832008-07-16 Chong Yidong <cyd@stupidchicken.com>
7284
7285 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7286 that we don't move off the line.
7287
72882008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7289
7290 * keyboard.c (Qsuper): Remove.
7291 (parse_menu_item): Don't call where_is_internal specially for NS.
7292
72932008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7294
7295 * s/gnu-linux.h: Remove boilerplate comments.
7296
7297 * m/alpha.h (__ELF__): Consolidate conditions.
7298
7299 * m/m68k.h (linux): Use GNU_LINUX instead.
7300 Remove boilerplate comments.
7301
7302 * m/intel386.h: Undo refactoring from previous change.
7303 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7304 too, remove dead code.
7305 (linux): Use GNU_LINUX instead.
7306
73072008-07-16 Jason Rumney <jasonr@gnu.org>
7308
7309 * w32gui.h: Repeat 26 June changes lost by last change.
7310
73112008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7312
7313 * systty.h: Remove code for Aix on 386, unsupported platform.
7314
7315 * s/ms-w32.h: Remove boilerplate comments.
7316 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7317
7318 * s/gnu-linux.h (TERM): Remove support.
7319 (HAVE_SYSVIPC): Remove, unused.
7320 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7321 for this system.
7322
7323 * process.c: Remove support for IRIS, unused.
7324 Remove support for TERM, not relevant anymore.
7325
7326 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7327 used with the definition.
7328
7329 * s/aix4-2.h (static): Do not undef.
7330
7331 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7332 only used on Aix.
7333 (HAVE_SYSVIPC): Remove, unused.
7334
7335 * m/hp800.h (CANNOT_DUMP): Do not undef.
7336
7337 * m/alpha.h: Fix comment.
7338
7339 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7340 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7341 used by this configuration.
7342 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7343 * unexec.c: Remove code depending on HPUX and
7344 USG_SHARED_LIBRARIES, not used with this file. Remove code
7345 depending on IRIS, unused. Remove if 0-ed code.
7346
7347 * s/template.h: Remove comments about static.
7348
7349 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7350 Remove if 0-ed code.
7351 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7352 were the same as the default.
7353 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7354 Remove boilerplate comments.
7355 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7356 (HAVE_SYSVIPC): Remove, unused.
7357 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7358
7359 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7360 Remove boilerplate comments.
7361 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7362 Remove boilerplate comments.
7363 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7364 Remove boilerplate comments.
7365 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7366
7367 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7368 USG systems which do not use DATA_SEG_BITS.
7369 Refactor code. Remove boilerplate comments.
7370
7371 * m/ibms390.h:
7372 * m/m68k.h:
7373 * s/bsd-common.h:
7374 * s/cygwin.h:
7375 * s/darwin.h:
7376 * s/freebsd.h:
7377 * s/gnu.h:
7378 * s/msdos.h: Remove boilerplate comments.
7379
7380 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7381 do not use this file.
aac0c6e3
MR
7382 (IRIS_4D): Remove, unused.
7383
7384 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7385 do not use this file.
aac0c6e3
MR
7386 (SIGN_EXTEND_CHAR):
7387 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7388 * unexmips.c: Remove file, unused.
7389
7390 * editfns.c (Fuser_full_name): Replace the only use of
7391 USER_FULL_NAME with its value.
7392 * config.in: Regenerate.
7393
73942008-07-16 David Reitter <david.reitter@gmail.com>
7395
7396 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7397 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7398
73992008-07-16 Glenn Morris <rgm@gnu.org>
7400
7401 * emacs.c (system-type): Doc fix.
7402
74032008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7404
7405 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7406 If the cache doesn't work, let's fix it, rather than work around it.
7407
74082008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7409
7410 * Makefile.in: Correct additions for nsfont.o in last commit.
7411 * nsfont.m: New file (forgot last commit).
7412
74132008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7414
7415 * callproc.c (set_initial_environment): Initialize
7416 Vprocess_environment under CANNOT_DUMP (fixes crash when
7417 batch-compiling for bootstrap).
7418
74192008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7420 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7421
7422 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7423 fix crash due to different init order.
7424
74252008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7426
7427 Changes and additions for NeXTstep windowing system (Cocoa and
7428 GNUstep) support.
7429
7430 * Makefile.in:
7431 * config.in: Support defines and build commands for NS port.
7432 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7433 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7434 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7435 windowing.
7436 (struct face): Add synth_ital field.
7437 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7438 (init_display): Initialize Vinitial_window_system to "ns" when so
7439 compiled.
7440 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7441 (display_arg): Use under NS.
7442 (main): Under NS, allocate autorelease pool and handle command line
7443 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7444 (standard_args): Add NS-specific args.
7445 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7446 * font.c (DEFAULT_ENCODING): New variable.
7447 (font_find_for_lface): Use it.
7448 (syms_of_font): Load syms_of_nsfont under NS.
7449 * font.h: Declare nsfont_driver when compiled under NS.
7450 * fontset.c: When compiling under NS, include nsterm.h.
7451 (fontset_from_font): Autoconstruct fontset under NS.
7452 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7453 symbol, document and use it.
7454 (do_switch_frame): When for_deletion under Cocoa, add
7455 Fraise_frame(Qnil).
7456 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7457 (x_get_arg): Allow "yes" and "no" as boolean values.
7458 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7459 Qright under Cocoa.
7460 (focus-follows-mouse): Default to 0 under NS.
7461 * frame.h (enum output_method): Add output_ns.
7462 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7463 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7464 (FRAME_WINDOW_P): NS-specific definition.
7465 * fringe.c (max_used_fringe_bitmap): Make public.
7466 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7467 (getloadavg): Use NeXT code under descendant OS's.
7468 * image.c (includes and header section, x_create_bitmap_from_data)
7469 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7470 (image_background_transparent, x_clear_image_1)
7471 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7472 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7473 (x_to_xcolors, x_from_xcolors, x_disable_image)
7474 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7475 other GUIs, including XPM support using code originally written for
7476 Carbon GUI.
7477 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7478 using NS API.
7479 (image_ascent): Use font metrics macros instead of direct struct field
7480 access.
7481 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7482 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7483 Also, handle NS as GTK for menu bar purposes.
7484 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7485 toolkit where they differ.
7486 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7487 use cachelist, still needed under NS.
7488 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7489 (struct widget_value): Define it here for menu.c.
7490 * keymap.c (includes): Include modifier internals.
7491 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7492 NS.
7493 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7494 support for preferring sequences using certain modifiers, specified by
7495 the FIRSTONLY argument.
7496 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7497 under NS GNUstep implementation.
7498 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7499 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7500 * menu.c: Include nsterm.h under NS.
7501 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7502 (free_menubar_widget_tree_value, update_submenu_strings)
7503 (find_and_call_menu_selection): Treat NS as X and NT.
7504 (find_and_return_menu_selection): New function, used for popup menus.
7505 * nsgui.h:
7506 * nsterm.h:
7507 * nsfns.m:
7508 * nsimage.m:
7509 * nsmenu.m:
7510 * nsselect.m:
7511 * nsterm.m: New files.
7512 * process.c (wait_reading_process_output): Under NS, call ns_select()
7513 instead of plain select().
7514 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7515 beginning of buffer.
7516 * sysselect.h (init_process): Rename when compiling under Cocoa to
7517 avoid name conflict.
7518 * termhooks.h (display_info): Add ns_display_info to union.
7519 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7520 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7521 COCOA environment.
7522 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7523 unexec() signature. (Note, this will dump, but the resulting file
7524 crashes; unexosx is used instead; keeping around for reference and
7525 possible aid in getting dump working under GNUstep.)
7526 * w32gui.h (button_type, widget_value): Remove definitions (now in
7527 keyboard.h).
7528 * window.c: Include nsterm.h when compiling under NS.
7529 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7530 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7531 other GUI windowing systems.
7532 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7533 GTK.
7534 (x_consider_frame_title): Under NS, set icon type and frame
7535 modified-state indicator; use ns_set_name_as_filename() when using
7536 formatted title.
7537 (update_window_cursor): Make public when compiling under NS.
7538 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7539 (hourglass_atimer, Vhourglass_delay
7540 * xfaces.c (header section, init_frame_faces, clear_font_table)
7541 (defined_color, unload_color, x_face_list_fonts)
7542 (prepare_face_for_display): Add NS support parallel to other GUIs.
7543 Emulate GCs like other non-X GUIs.
7544 (split_font_name): Don't lowercase font name under NS.
7545 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7546 under NS.
7547 * s/darwin.h: Add support for compilation under NS.
7548
75492008-07-15 Jason Rumney <jasonr@gnu.org>
7550
7551 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7552 (w32_show_hourglass): Rename from show_hourglass.
7553 (w32_hide_hourglass): Rename from hide_hourglass.
7554 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7555 (Vhourglass_delay): Declare extern.
7556 (hourglass_started): Remove.
7557
7558 * xdisp.c (Vhourglass_delay): Remove static.
7559 (hourglass_started, start_hourglass, cancel_hourglass):
7560 Don't include these versions on WINDOWSNT.
7561
75622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7563
7564 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7565 variables (formerly in xfns.c).
7566 (show_hourglass, hide_hourglass): New prototypes (same).
7567 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7568 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7569 in xfns.c).
7570 (syms_of_xdisp): Declare/initialize display-hourglass,
7571 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7572 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7573 formerly in xfns.c.
7574 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7575 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7576 (start_hourglass, cancel_hourglass): Remove.
7577 (show_hourglass, hide_hourglass): Remove prototypes and static
7578 modifiers.
7579 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7580 hourglass_atimer, hourglass_shown_p declaration/initialization.
7581 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7582 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7583 (start_hourglass, cancel_hourglass): Remove.
7584 (show_hourglass, hide_hourglass): Remove prototypes and static
7585 modifiers.
7586 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7587 hourglass_atimer, hourglass_shown_p declaration/initialization.
7588 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7589 (DEFAULT_HOURGLASS_DELAY): Remove.
7590 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7591 hourglass_shown_p declaration/initialization.
7592
75932008-07-14 Jason Rumney <jasonr@gnu.org>
7594
7595 * w32fns.c (w32_get_arg): Remove wrapper function.
7596 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7597 directly.
7598 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7599
76002008-07-14 Kenichi Handa <handa@m17n.org>
7601
7602 * xfont.c (xfont_open): Add workaround for X's bug.
7603
76042008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7605
7606 * fontset.c: Include <stdio.h> unconditionally.
7607
76082008-07-13 Michael Albinus <michael.albinus@gmx.de>
7609
7610 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7611 for filtering.
7612
76132008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7614
7615 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7616
7617 * m/macppc.h:
7618 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7619
7620 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7621 (SPECIAL_EMACS_INT):
7622 * m/ia64.h (SPECIAL_EMACS_INT):
7623 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7624 * s/gnu.h (NLIST_STRUCT):
7625 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7626 * s/gnu-linux.h (LINUX):
7627 * s/msdos.h (HAVE_FACES):
7628 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7629
7630 * systty.h:
7631 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7632 anymore.
7633
76342008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7635
7636 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7637 always defined as int.
7638
7639 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7640 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7641 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7642 * s/freebsd.h (HAVE_WAIT_HEADER):
7643 * s/bsd-common.h (HAVE_UNION_WAIT):
7644 * s/aix4-2.h (HAVE_WAIT_HEADER):
7645 * m/mips.h (HAVE_UNION_WAIT):
7646 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7647 (COFF, static): Do not define, they are undefined later in the file.
7648
7649 * process.c (update_status): Don't use a union.
7650 (status_convert):
7651 (sigchld_handler): Use int instead of WAITTYPE.
7652
76532008-07-12 Chong Yidong <cyd@stupidchicken.com>
7654
7655 * indent.c (Fvertical_motion): Restore hscroll before moving to
7656 goal column.
7657
76582008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7659
7660 * lisp.h: Remove left over code.
7661
76622008-07-11 Andreas Schwab <schwab@suse.de>
7663
7664 * lisp.h: Fix logic in last change.
7665
7666 * menu.h: New file.
7667 * menu.c: Include it.
7668 * xmenu.c: Likewise.
7669 * Makefile.in: Update dependencies.
7670
76712008-07-11 Kenichi Handa <handa@m17n.org>
7672
7673 * fontset.c (fontset_from_font): Cancel the previous change.
7674
76752008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7676
7677 * lisp.h:
7678 * w32heap.c:
7679 * emacs.c:
7680 * alloc.c: Replace all references of NO_UNION_TYPE with
7681 USE_LISP_UNION_TYPE.
7682
7683 * m/xtensa.h (NO_UNION_TYPE):
7684 * m/vax.h (NO_UNION_TYPE):
7685 * m/template.h (NO_UNION_TYPE):
7686 * m/sparc.h (NO_UNION_TYPE):
7687 * m/mips.h (NO_UNION_TYPE):
7688 * m/macppc.h (NO_UNION_TYPE):
7689 * m/m68k.h (NO_UNION_TYPE):
7690 * m/iris4d.h (NO_UNION_TYPE):
7691 * m/intel386.h (NO_UNION_TYPE):
7692 * m/ibms390x.h (NO_UNION_TYPE):
7693 * m/ibms390.h (NO_UNION_TYPE):
7694 * m/ibmrs6000.h (NO_UNION_TYPE):
7695 * m/ia64.h (NO_UNION_TYPE):
7696 * m/hp800.h (NO_UNION_TYPE):
7697 * m/arm.h (NO_UNION_TYPE):
7698 * m/amdx86-64.h (NO_UNION_TYPE):
7699 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7700 defining it the same.
7701
77022008-07-10 Chong Yidong <cyd@stupidchicken.com>
7703
7704 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7705
77062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7707
7708 * fileio.c:
7709 * sysdep.c
7710 * systty.h:
7711 * m/ibmrs6000.h:
7712 * m/iris4d.h:
7713 * s/aix4-2.h:
7714 * s/freebsd.h:
7715 * s/gnu-linux.h:
7716 * s/hpux10-20.h:
7717 * s/hpux11.h:
7718 * s/netbsd.h:
7719 * s/sol2-3.h:
7720 * s/sol2-4.h:
7721 * s/sol2.h:
7722 * s/usg5-4.h:
7723 * s/vms.h: Remove references to unused variables.
7724
77252008-07-10 Andreas Schwab <schwab@suse.de>
7726
7727 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7728 pattern before matching the generic family.
7729
77302008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7731
7732 * unexec.c:
7733 * s/vms.h:
7734 * s/usg5-4-2.h:
7735 * s/sol2-5.h:
7736 * s/freebsd.h:
7737 * s/darwin.h: Remove dead code.
7738
7739 * m/template.h:
7740 * m/sparc.h:
7741 * m/mips.h:
7742 * m/m68k.h:
7743 * m/iris4d.h:
7744 * m/intel386.h:
7745 * m/ibms390x.h:
7746 * m/ibms390.h:
7747 * m/ia64.h:
7748 * m/hp800.h:
7749 * m/arm.h:
7750 * m/amdx86-64.h: Remove dead code and references to unused
7751 and compiler defined symbols.
7752
7753 * unexmips.c:
7754 * unexelf.c: Remove references to desupported systems.
7755
7756 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7757
7758 * m/powermac.h: Remove boilerplate comments.
7759 (NO_REMAP): Remove unused definition.
7760
7761 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7762 define them.
7763
77642008-07-10 Kenichi Handa <handa@m17n.org>
7765
7766 * xfont.c (xfont_open): Log the reason of failure.
7767
77682008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7769
7770 * fontset.c (fontset_get_font_group):
7771 * font.c (font_check_otf): Specify argument types.
7772
77732008-07-09 Kenichi Handa <handa@m17n.org>
7774
7775 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7776 non-ASCII char is found.
7777
7778 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7779 (reorder_font_vector): Change the arg preferred_family to font.
7780 Prefer the spec matching with font.
7781 (fontset_get_font_group): New function.
7782 (fontset_find_font): Change the format of an element of a realized
7783 fontset. Use fontset_get_font_group.
7784 (fontset_font): Try the current fontset, the default fontset, the
7785 fallbacks of the current fontset, and the fallbacks of the default
7786 fontset in this order.
7787 (face_for_char): Delete the shortcut to use the current font.
7788 (fontset_from_font): Don't set fonts for Latin in the fontset.
7789
7790 * font.h (font_make_object, font_match_p): Adjust prototypes.
7791
7792 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7793
7794 * font.c (font_make_object): New arg entity and pixelsize.
7795 (font_check_otf_features, font_check_otf): New functions.
7796 (font_match_p): Check :lang, :script, and :otf properties.
7797
7798 * xfont.c (xfont_open): Adjust it for the change of
7799 font_make_object.
7800 (xfont_text_extents): Fix initial setting of metrics.
7801
7802 * ftfont.c (struct ftfont_info): New member index, delete member
7803 fc_charset_idx. Make the member order compatible with struct
7804 xftfont_info.
7805 (fc_charset_table): Change charset names to registry names.
7806 (ftfont_pattern_entity): Delete the args registry and
7807 fc_charset_idx. Change the value of :font-entity property
7808 to (FONTNAME . INDEX). Always set :registry property to
7809 `iso10646-1'.
7810 (struct ftfont_cache_data): New struct.
7811 (ftfont_lookup_cache): New arg for_face.
7812 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7813 (ftfont_driver): Set the member otf_capability.
7814 (ftfont_get_charset): Adjust it for the change of
7815 fc_charset_table.
7816 (OTF_TAG_SYM): New macro.
7817 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7818 for the change of fc_charset_table.
7819 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7820 ftfont_pattern_entity. Add FC_INDEX to objset.
7821 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7822 and ftfont_pattern_entity.
7823 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7824 font_make_object, struct ftfont_info.
7825 (ftfont_has_char): Use ftfont_get_fc_charset.
7826 (ftfont_otf_features, ftfont_otf_capability): New functions.
7827 (ftfont_shape): Use ftfont_get_otf.
7828 (ftfont_text_extents): Fix initial setting of metrics.
7829
7830 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7831 member order compatible with struct ftfont_info.
7832 (xftfont_open): Add FC_CHARSET to the pattern. Set
7833 xftfont_info->ft_size. Don't unlock the face. Check BDF
7834 properties if appropriate.
7835 (xftfont_close): Unlock the face.
7836 (xftfont_anchor_point, xftfont_shape): Deleted.
7837 (syms_of_xftfont): Don't set members anchor_point and shape of
7838 xftfont_driver.
7839
7840 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7841 font_make_object.
7842
7843 * w32font.c (w32font_open): Adjust it for the change of
7844 font_make_object.
7845 (w32font_open_internal): Don't set properties of font_object here.
7846
78472008-07-08 Chong Yidong <cyd@stupidchicken.com>
7848
7849 * macfns.c (x_create_tip_frame):
7850 * w32fns.c (x_create_tip_frame):
7851 * xfns.c (x_create_tip_frame): Pass parameter argument to
7852 face-set-after-frame-default.
7853
7854 * xfaces.c (Finternal_merge_in_global_face): Save merged
7855 attributes for the default face back into the face vector.
7856
78572008-07-08 Andreas Schwab <schwab@suse.de>
7858
7859 * fontset.h: Declare fontset_from_font. Don't declare
7860 new_fontset_from_font and fontset_from_font_name.
7861 * xterm.c: Include "fontset.h".
7862 * Makefile.in (xterm.o): Update dependencies.
7863
78642008-07-08 Glenn Morris <rgm@gnu.org>
7865
7866 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7867 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7868
78692008-07-07 Chong Yidong <cyd@stupidchicken.com>
7870
7871 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7872 (x_set_frame_parameters): Don't bind it.
7873
78742008-07-07 Juanma Barranquero <lekktu@gmail.com>
7875
7876 * w32fns.c (map_w32_filename): Declare extern.
7877
78782008-07-07 Jason Rumney <jasonr@gnu.org>
7879
7880 * w32term.c (WS_EX_LAYERED): Define if not already.
7881
78822008-07-06 Chong Yidong <cyd@stupidchicken.com>
7883
7884 * xfaces.c (set_font_frame_param): Don't try to set the font
7885 parameter if it is still unspecified in the lface.
7886
78872008-07-05 Chong Yidong <cyd@stupidchicken.com>
7888
7889 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7890 face if it didn't already exist.
7891
7892 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7893
78942008-07-05 Andreas Schwab <schwab@suse.de>
7895
7896 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7897
78982008-07-05 Chong Yidong <cyd@stupidchicken.com>
7899
7900 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7901 word-wrapping.
7902 (IT_DISPLAYING_WHITESPACE): New macro.
7903 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7904 when word-wrapping. Simplify word-wrapping logic. Use correct
7905 pixel positions when saving copies of the iterator.
7906 (display_line): Use proper wrap point if the last character on a
7907 line was preceded by whitespace.
7908
79092008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7910
7911 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7912
79132008-07-04 Kenichi Handa <handa@m17n.org>
7914
7915 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7916
7917 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7918
79192008-07-02 Jason Rumney <jasonr@gnu.org>
7920
7921 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7922 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7923
7924 * xdisp.c (next_element_from_display_vector): Move assignment out
7925 of if statement.
7926
79272008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7928
7929 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7930
7931 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7932 (syms_of_fileio): Initialize and export them.
7933 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7934
7935 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7936 (Fsystem_move_file_to_trash): New function.
7937 (syms_of_w32fns): Export it to lisp.
7938
79392008-07-01 Jason Rumney <jasonr@gnu.org>
7940
7941 * w32font.c (w32font_text_extents): Don't count overhang as part
7942 of width.
7943
79442008-06-30 Miles Bader <miles@gnu.org>
7945
7946 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7947 Add `avoid_cursor_p' field.
7948
7949 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7950 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7951 (append_glyph, append_composite_glyph, produce_image_glyph)
7952 (append_stretch_glyph): Initialize avoid_cursor_p.
7953 (get_it_property): Rename from `get_line_height_property'.
7954 (x_produce_glyphs): Use get_it_property.
7955 (handle_line_prefix, push_display_prop): New functions.
7956 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7957 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7958 New variables.
7959 (syms_of_xdisp): Initialize them.
7960
79612008-06-30 Kenichi Handa <handa@m17n.org>
7962
7963 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7964 XftDefaultSubstitute (they are called in XftFontMatch).
7965 (xftfont_open): Fix args to ftfont_font_format.
7966
7967 * ftfont.c (fc_charset_table): New member lang.
7968 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7969 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7970 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7971 (ftfont_open): Fix args to ftfont_font_format.
7972 (ftfont_font_format): New arg filename.
7973
79742008-06-30 Chong Yidong <cyd@stupidchicken.com>
7975
7976 * xfaces.c (Finternal_merge_in_global_face): If default face was
7977 modified, realize it again. Update the font face attribute.
7978
79792008-06-29 Jason Rumney <jasonr@gnu.org>
7980
7981 * w32term.c (x_set_frame_alpha): Fix logic.
7982
79832008-06-29 Kenichi Handa <handa@m17n.org>
7984
7985 * fontset.c (Finternal_char_font): Return font-object instead of
7986 font-name.
7987
7988 * composite.c (get_composition_id): Fix the width calculation for TAB.
7989
79902008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7991
7992 * indent.c (Fvertical_motion): Properly handle float column arg.
7993
79942008-06-28 Jason Rumney <jasonr@gnu.org>
7995
7996 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7997 (pfnSetLayeredWindowAttributes): New function pointer.
7998 (w32_initialize): Initialize it when supported.
7999 (x_set_frame_alpha): New function.
8000
8001 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8002 (w32_frame_parm_handlers): Set alpha handler.
8003
8004 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8005
80062008-06-27 Jason Rumney <jasonr@gnu.org>
8007
8008 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8009 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8010 (w32_to_x_charset, x_to_w32_charset)
8011 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8012 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8013 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8014 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8015 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8016 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8017 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8018 (Qw32_charset_unicode): Remove.
8019 (syms_of_w32fns): Update for above changes.
8020
8021 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8022 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8023 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8024 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8025 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8026 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8027 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8028 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8029 (syms_of_w32font): Update for above changes.
8030
80312008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8032
8033 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8034 removed #if.
8035 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8036
80372008-06-26 Juanma Barranquero <lekktu@gmail.com>
8038 Eli Zaretskii <eliz@gnu.org>
8039
8040 * makefile.w32-in (LOCAL_FLAGS):
8041 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8042
8043 * sysdep.c (_spawnlp, _getpid):
8044 Declare with explicit _cdecl instead of _CRTAPI1.
8045
8046 * editfns.c (Fget_internal_run_time):
8047 Check for WINDOWSNT with #ifdef, not #if.
8048
80492008-06-26 Jason Rumney <jasonr@gnu.org>
8050
8051 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8052
8053 * w32term.c (x_draw_glyph_string_foreground)
8054 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8055 Use FONT_HANDLE macro.
8056 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8057
8058 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8059 (uniscribe_encode_char): Use FONT_HANDLE macro.
8060
8061 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8062 (w32font_text_extents): Use precast w32_font.
8063 (w32font_close): Free cached metrics.
8064 (w32font_open_internal): Allocate space for name on stack.
8065
80662008-06-26 Chong Yidong <cyd@stupidchicken.com>
8067
8068 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8069
80702008-06-26 Jason Rumney <jasonr@gnu.org>
8071
8072 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8073 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8074
80752008-06-26 Juanma Barranquero <lekktu@gmail.com>
8076
8077 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8078
80792008-06-26 Jason Rumney <jasonr@gnu.org>
8080
8081 * w32bdf.c, w32bdf.h: Remove obsolete files.
8082
8083 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8084
8085 * w32gui.h: Don't include w32bdf.h.
8086 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8087 Remove obsolete font support.
8088
8089 * w32font.h (struct w32font_info): Remove compat_w32_font.
8090 Add hfont member.
8091 (FONT_COMPAT): Remove obsolete macro.
8092
8093 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8094 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8095 (w32font_open_internal): Remove compat code. Set new hfont member.
8096 (Fx_select_font): Use new hfont member.
8097
8098 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8099 (uniscribe_encode_char): Use new hfont member.
8100
8101 * w32term.c (x_draw_glyph_string_foreground)
8102 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8103 (x_draw_glyph_string): Use metrics in w32font_info.
8104
81052008-06-26 Kenichi Handa <handa@m17n.org>
8106
8107 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8108
81092008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8110
8111 * unexnext.c:
8112 * m/ews4800.h:
8113 * m/hp9000s300.h:
8114 * m/ibm370aix.h:
8115 * m/mips-siemens.h:
8116 * m/ncr386.h:
8117 * m/next.h:
8118 * m/pmax.h:
8119 * m/powerpcle.h:
8120 * m/tandem-s2.h:
8121 * s/386bsd.h:
8122 * s/bsd386.h:
8123 * s/bsd4-1.h:
8124 * s/bsd4-2.h:
8125 * s/bsdos2-1.h:
8126 * s/bsdos2.h:
8127 * s/bsdos3.h:
8128 * s/bsdos4.h:
8129 * s/nextstep.h:
8130 * s/ultrix4-3.h:
8131 * s/usg5-0.h:
8132 * s/usg5-2-2.h:
8133 * s/usg5-2.h:
8134 * s/usg5-4-3.h:
8135 * s/ux4800.h:
8136 * s/uxpds.h:
8137 * s/uxpv.h: Remove support for obsolete systems.
8138 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8139 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8140 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8141 Remove, insert contents in s/aix4-2.h.
8142 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8143 * s/bsd4-3.h: Rename to ...
8144 * s/bsd-common.h: ... this.
8145 * data.c:
8146 * doc.c:
8147 * ecrt0.c:
8148 * emacs.c:
8149 * fileio.c:
8150 * floatfns.c:
8151 * keyboard.c:
8152 * mem-limits.h:
8153 * print.c:
8154 * process.c:
8155 * sysdep.c:
8156 * syssignal.h:
8157 * systty.h:
8158 * syswait.h:
8159 * term.c:
8160 * unexec.c:
8161 * unexelf.c:
8162 * unexhp9k800.c:
8163 * m/hp800.h:
8164 * m/ibmrs6000.h:
8165 * m/mips.h:
8166 * m/vax.h:
8167 * s/darwin.h:
8168 * s/freebsd.h:
8169 * s/gnu.h:
8170 * s/ms-w32.h:
8171 * s/msdos.h:
8172 * s/netbsd.h:
8173 * s/template.h: Remove references to obsolete variables.
8174
8175 * Makefile.in: Add dependencies for all unexec files.
8176 (admindir): Remove unused variable.
8177 (UNEXEC_SRC): Remove references.
8178
81792008-06-25 Chong Yidong <cyd@stupidchicken.com>
8180
8181 * xfns.c (x_default_font_parameter): If Xft is available, first
8182 try Monospace-12 for the default font.
8183
81842008-06-25 Jason Rumney <jasonr@gnu.org>
8185
8186 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8187
81882008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8189
8190 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8191
8192 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8193
81942008-06-25 Juanma Barranquero <lekktu@gmail.com>
8195
8196 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8197 <scroll-conservatively>: Fix typo in docstring.
8198
8199 * xselect.c (Fx_send_client_event): Doc fix.
8200
82012008-06-25 Kenichi Handa <handa@m17n.org>
8202
8203 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8204
8205 * font.c (font_parse_fcname): Remove unused variables.
8206 (font_sort_entites): Delete the arg SPEC. Caller changed.
8207 Fix for the case of ! best_only.
8208 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8209
8210 * lisp.h (Fstring_to_unibyte): EXFUN it.
8211
8212 * character.h (str_to_unibyte): Extern it.
8213
8214 * character.c (str_to_unibyte): New function.
8215
8216 * fns.c (Fstring_to_unibyte): New function.
8217 (syms_of_fns): Defsubr it.
8218
82192008-06-24 Kenichi Handa <handa@m17n.org>
8220
8221 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8222 DPI too.
8223 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8224
82252008-06-24 Andreas Schwab <schwab@suse.de>
8226
8227 * Makefile.in (${lispsource}loaddefs.el): Rename from
8228 ../lisp/loaddefs.el.
8229 (bootstrap-clean): Do what distclean does but don't remove
8230 Makefile.
8231 (distclean): Depend on bootstrap-clean and remove Makefile.
8232
82332008-06-24 Chong Yidong <cyd@stupidchicken.com>
8234
8235 * buffer.h (struct buffer): New member word_wrap.
8236
8237 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8238 word-wrap.
8239 (init_buffer_once): Initialize them.
8240
8241 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8242 line_wrap enum possessing three possible values.
8243
8244 * termopts.h: Replace truncate_partial_width_windows with
8245 Vtruncate_partial_width_windows.
8246
8247 * dispnew.c (direct_output_for_insert): Avoid direct output when
8248 inserting a space with word wrap on.
8249
8250 * indent.c (compute_motion): Obey integer values of
8251 truncate-partial-width-windows.
8252
8253 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8254 replacing truncate_partial_width_windows.
8255 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8256 truncate only if the window width is below that integer.
8257 (start_display, resize_mini_window, produce_stretch_glyph)
8258 (display_string, move_it_in_display_line_to): Use line_wrap.
8259 (back_to_previous_visible_line_start, reseat_1): Reset
8260 string_from_display_prop_p.
8261 (display_line): Extend default face to end of line when wrapping.
8262
82632008-06-24 Kim F. Storm <storm@cua.dk>
8264
8265 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8266 to wrap continued lines at word boundaries.
8267
82682008-06-24 Jason Rumney <jasonr@gnu.org>
8269
8270 * font.c (Ffont_face_attributes): Multiply pixel size before point
8271 conversion to avoid multiplying rounding error.
8272
82732008-06-23 Jason Rumney <jasonr@gnu.org>
8274
8275 * w32term.c (x_draw_glyph_string_background)
8276 (x_draw_glyph_string): Remove old bdf font code.
8277
8278 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8279
82802008-06-22 Kenichi Handa <handa@m17n.org>
8281
8282 * font.c (font_find_for_lface): Try the adstyle specified in
8283 the property of LFACE_FONT of LFACE (if any).
8284
82852008-06-21 Seiji Zenitani <zenitani@mac.com>
8286 Ryo Yoshitake <ryo@shiftmode.net>
8287
8288 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8289
82902008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8291
8292 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8293 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8294 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8295 (witness-emacs): Remove.
8296 (lisp, shortlisp): Move loaddefs.el earlier.
8297 (mostlyclean): Forget about witness-emacs.
8298
82992008-06-22 Glenn Morris <rgm@gnu.org>
8300
8301 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8302 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8303
83042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8305
8306 * Makefile.in (PRECOMP): Remove.
8307 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8308 (witness-emacs): Run `compile-first'.
8309 (.el.elc): Use the new compile-onefile target.
8310
83112008-06-21 Kenichi Handa <handa@m17n.org>
8312
8313 * xftfont.c (xftfont_open): Handle QCembolden only when
8314 FC_EMBOLDEN is defined.
8315
83162008-06-21 Andreas Schwab <schwab@suse.de>
8317
8318 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8319 (.el.elc): Likewise.
8320
83212008-06-21 Miles Bader <miles@gnu.org>
8322
8323 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8324 build dir, not the lisp source dir.
8325
83262008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8327
8328 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8329 (bootstrapclean): Remove.
8330 (.el.elc): New rule.
8331 (PRECOMP): New var.
8332 (../lisp/subdirs.el): Remove.
8333 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8334 (witness-emacs): New target.
8335 (mostlyclean): Remove witness-emacs as well.
8336 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8337 Add witness-emacs dependency.
8338
83392008-06-20 Chong Yidong <cyd@stupidchicken.com>
8340
8341 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8342 defined by the font.
8343
83442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8345
8346 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8347 (bootstrap-clean): New target that keeps TAGS around.
8348 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8349 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8350
83512008-06-20 Jason Rumney <jasonr@gnu.org>
8352
8353 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8354 Remove obsolete font code.
8355
8356 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8357 to determine language support.
8358
83592008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8360
8361 * sysdep.c (cfsetspeed): New fun extracted from the code.
8362 (cfmakeraw): Move before first use.
8363
83642008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8365
8366 * sysdep.c (cfmakeraw): Provide fallback implementation.
8367 (serial_configure): Provide fallback implementation of cfsetspeed.
8368
83692008-06-20 Kenichi Handa <handa@m17n.org>
8370
8371 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8372 the pattern.
8373
8374 * fontset.c (fontset_from_font): Copy font_spec before changing
8375 the elements.
8376
8377 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8378
83792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8380
8381 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8382 for explicit `font' parameters.
8383
8384 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8385
83862008-06-19 Kenichi Handa <handa@m17n.org>
8387
8388 * frame.c: Include <ctype.h>.
8389 (x_set_font_backend): Allow spacing characters in the X resource
8390 for FontBackend.
8391
83922008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8393
8394 * w32fns.c, xfns.c (Qfont_param): New var.
8395 (syms_of_w32fns): Initialize it.
8396 (x_default_font_parameter): Record explicit `font' into
8397 `font-parameter'.
8398
83992008-06-18 Kenichi Handa <handa@m17n.org>
8400
8401 * font.c (font_parse_xlfd): Fix previous change.
8402 (font_parse_fcname): Don't use :fc-unknown-spec.
8403 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8404 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8405 (font_add_log): Prepend the driver name to the resulting fonts.
8406
8407 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8408 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8409 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8410
8411 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8412 (QCembolden): New variables.
8413 (syms_of_xftfont): DEFSYM them.
8414 (xftfont_open): Call XftFontMatch. Don't trust the result of
8415 XftTextExtents8 if the pixel_size is less than 5.
8416
84172008-06-18 Andreas Schwab <schwab@suse.de>
8418
8419 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8420 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8421
84222008-06-18 Jason Rumney <jasonr@gnu.org>
8423
8424 * w32font.c (w32font_list, w32font_match): Add logging.
8425
8426 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8427
84282008-06-17 Chong Yidong <cyd@stupidchicken.com>
8429
8430 * font.c (font_parse_fcname): Store divider characters for
8431 unknown-spec list. For known key symbols, intern using correct
8432 symbol name.
8433
84342008-06-17 Kenichi Handa <handa@m17n.org>
8435
8436 * xfaces.c (realize_default_face): If the frame is not on window
8437 system, set the fontset of face to nil.
8438
84392008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8440
8441 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8442
84432008-06-16 Juanma Barranquero <lekktu@gmail.com>
8444
8445 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8446 (build_font_name_from_vector): Delete externs.
8447
8448 * xfaces.c (struct font_name): Don't declare.
8449
84502008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8451
8452 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8453
84542008-06-16 Chong Yidong <cyd@stupidchicken.com>
8455
8456 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8457
84582008-06-16 Juanma Barranquero <lekktu@gmail.com>
8459
8460 * font.c (Ffont_spec): Fix usage in docstring.
8461 (Ffont_face_attributes): Doc fix.
8462
84632008-06-16 Andreas Schwab <schwab@suse.de>
8464
8465 * font.c (Ffont_face_attributes): Fix definition.
8466
84672008-06-16 Jason Rumney <jasonr@gnu.org>
8468
8469 * font.h (font_style_symbolic_from_value): Remove.
8470
8471 * font.c (font_style_symbolic_from_value): Remove.
8472 (font_style_symbolic): Revert to pre 2008-06-13 version.
8473
8474 * w32font.c (w32_to_fc_weight): New function.
8475 (w32font_full_name, logfont_to_fcname): Use it.
8476
84772008-06-16 Kenichi Handa <handa@m17n.org>
8478
8479 * font.c (font_check_object): Delete it.
8480 (font_clear_cache): Check if a font-object is alive.
8481 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8482 font-object to nil.
8483 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8484 (font_at): Don't call font_check_object.
8485 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8486
84872008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8488
8489 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8490
84912008-06-16 Chong Yidong <cyd@stupidchicken.com>
8492
8493 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8494
84952008-06-15 Chong Yidong <cyd@stupidchicken.com>
8496
8497 * font.c (font_parse_fcname): Only one decimal point.
8498 (font_unparse_fcname): Handle data in family and foundry indices
8499 as symbols, not strings.
8500 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8501
8502 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8503
8504 * font.h (font_unparse_gtkname): Add prototype.
8505
85062008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8507
8508 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8509
85102008-06-15 Andreas Schwab <schwab@suse.de>
8511
8512 * font.c (font_update_drivers): Fix crash when no drivers match.
8513
85142008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8515
8516 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8517 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8518
85192008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8520
8521 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8522
85232008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8524
8525 * process.c (Fserial_process_configure, Fprocess_send_eof):
8526 Use EQ to compare Lisp_Objects.
8527
85282008-06-13 Jason Rumney <jasonr@gnu.org>
8529
8530 * w32fns.c (Fw32_select_font): Remove old font API function.
8531
8532 * w32font.c (logfont_to_fcname): New function.
8533 (Fx_select_font): New font dialog function compatible with
8534 GTK/fontconfig version.
8535
8536 * font.c (font_style_symbolic_from_value): New function.
8537 (font_style_symbolic): Use it.
8538
8539 * font.h (font_style_symbolic_from_value): Declare new function.
8540
85412008-06-13 Juanma Barranquero <lekktu@gmail.com>
8542
8543 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8544 <font-width-table>: Fix typos in docstrings.
8545
85462008-06-13 Daniel Engeler <engeler@gmail.com>
8547
8548 These changes add serial port access.
8549 * process.c: Add HAVE_SERIAL.
8550 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8551 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8552 (list_processes_1, select_wrapper, Fstop_process)
8553 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8554 (status_notify): Modify to handle serial processes.
8555 [HAVE_SERIAL] (Fserial_process_configure)
8556 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8557 New functions.
8558 * process.h (struct Lisp_Process): Add `type'.
8559 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8560 New functions.
8561 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8562 serial ports.
b71ac3dd 8563 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8564 * w32.h: Add FILE_SERIAL.
8565 (struct _child_process): Add ovl_read, ovl_write.
8566
85672008-06-13 Kenichi Handa <handa@m17n.org>
8568
8569 * dispextern.h (enum lface_attribute_index): New member
8570 LFACE_FOUNDRY_INDEX.
8571
8572 * font.c (font_score): Delete arg alternate_families. Check only
8573 weight, slant, width, and size. Ignore the difference of alias
8574 style symbols.
8575 (font_sort_entites): Adjust for the above change. Reflect the
8576 order of font-driver to scores.
8577 (font_list_entities): Don't check alternate_familes here.
8578 (font_clear_prop): Handle foundry.
8579 (font_update_lface): Don't parse "foundry-family" form here.
8580 Handle FONT_FOUNDRY_INDEX.
8581 (font_find_for_lface): Likewise. Handle alternate families here.
8582 If registry is nil, try iso8859-1 and ascii-0.
8583 (font_open_for_lface): Pay attention to size in ENTITY.
8584 (font_open_by_name): Simplify by calling font_load_for_lface.
8585 (free_font_driver_list): Delete it.
8586 (font_update_drivers): Preserve the order of backends.
8587 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8588 of font_score and font_sort_entites.
8589 (font_update_sort_order): Likewise.
8590
8591 * xfaces.c (LFACE_FOUNDRY): New macro.
8592 (check_lface_attrs): Check foundry.
8593 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8594 (merge_face_vectors): Check foundry.
8595 (merge_face_ref): Likewise.
8596 (Finternal_set_lisp_face_attribute): Likewise.
8597 (x_update_menu_appearance): Likewise.
8598 (Finternal_get_lisp_face_attribute): Likewise.
8599 (lface_hash): Likewise.
8600 (lface_same_font_attributes_p): Likewise.
8601 (x_supports_face_attributes_p): Likewise.
8602 (tty_supports_face_attributes_p): Likewise.
8603 (Finternal_set_alternative_font_family_alist): Intern strings.
8604 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8605 (realize_default_face): Set LFACE_FOUNDRY (lface).
8606
8607 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8608 font-driver at first.
8609
8610 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8611
86122008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8613
8614 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8615
86162008-06-12 Jim Meyering <meyering@redhat.com>
8617
8618 Make unexec_free handle NULL the same way free does.
8619 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8620
86212008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8622
8623 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8624 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8625 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8626 (WEAK_ALIAS): Simplify.
8627 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8628 when searching a unibyte buffer.
8629
86302008-06-12 Chong Yidong <cyd@stupidchicken.com>
8631
8632 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8633
86342008-06-12 Juanma Barranquero <lekktu@gmail.com>
8635
8636 * w32font.c: Include ctype.h.
8637
86382008-06-11 Jason Rumney <jasonr@gnu.org>
8639
8640 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8641 misreported as space.
8642 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8643 as aliases for registry iso10646-1.
8644
86452008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8646
8647 * buffer.c (clone_per_buffer_values): Skip `name'.
8648
86492008-06-11 Chong Yidong <cyd@stupidchicken.com>
8650
8651 * font.c (font_parse_fcname): Fix last change; accept decimal
8652 points in font size.
8653
86542008-06-10 Jason Rumney <jasonr@gnu.org>
8655
8656 * w32uniscribe.c (add_opentype_font_name_to_list):
8657 Skip non unicode fonts.
8658
86592008-06-10 Chong Yidong <cyd@stupidchicken.com>
8660
8661 * xfns.c (Fx_font_dialog): New function.
8662
8663 * gtkutil.c (xg_dialog_response_cb): Rename from
8664 xg_file_response_callback.
8665 (pop_down_dialog): Rename from pop_down_file_dialog.
8666 (xg_get_file_name): Callers changed.
8667 (xg_get_font_name): New function.
8668
8669 * gtkutil.h (xg_get_font_name): Insert prototype.
8670
86712008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8672
8673 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8674 x_underline_minimum_display_offset.
8675 (syms_of_xdisp): Declare it here rather than in xterm.c.
8676 * dispextern.h (underline_minimum_offset): Declare it.
8677 * w32term.c (x_draw_glyph_string): Use it.
8678 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8679 (syms_of_xterm): Don't declare it any more.
8680 (x_draw_glyph_string): Adjust to the new name.
8681
86822008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8683
8684 * xterm.c (x_underline_minimum_display_offset): New var.
8685 (x_draw_glyph_string): Use it.
8686 (syms_of_xterm): Declare it.
8687
86882008-06-10 Chong Yidong <cyd@stupidchicken.com>
8689
8690 * font.c (font_parse_fcname): Accept GTK-style font names too.
8691
86922008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8693
8694 * dired.c (file_name_completion): Don't return t if the match is exact
8695 but with different capitalization.
8696 * minibuf.c (Ftry_completion): Simplify.
8697
8698 * window.c (Vwindow_point_insertion_type): New var.
8699 (set_window_buffer): Use it.
8700 (syms_of_window): Init and export it to Lisp.
8701
87022008-06-10 Kenichi Handa <handa@m17n.org>
8703
8704 * font.h (font_intern_prop): Prototype adjusted.
8705
8706 * font.c (font_intern_prop): New arg force_symbol.
8707 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8708 Adjust for the change of font_intern_prop.
8709
8710 * ftfont.c (ftfont_pattern_entity):
8711 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8712 (w32_registry):
8713 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8714 the change of font_intern_prop.
8715
87162008-06-09 Juanma Barranquero <lekktu@gmail.com>
8717
8718 * w32menu.c (digest_single_submenu): Declare extern.
8719
87202008-06-09 Jason Rumney <jasonr@gnu.org>
8721
8722 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8723
8724 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8725 (parse_single_submenu): Remove.
8726 (digest_single_submenu): Remove.
8727 (syms_of_w32menu): Don't initialise variables that have moved
8728 to menu.c.
8729 (set_frame_menubar): Sync with version in xmenu.c.
8730 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8731
8732 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8733 Make static again.
8734
87352008-06-09 Jason Rumney <jasonr@gnu.org>
8736
8737 Changes to w32 files related to the move of common menu code
8738 to menu.c on 2008-06-08 by Chong Yidong.
8739
8740 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8741 defs to w32gui.h.
8742 (single_keymap_panes, push_menu_item, push_menu_pane):
8743 Make globally visible.
8744
8745 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8746 (local_free, malloc_widget_value, free_widget_value)
8747 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8748 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8749 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8750 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8751 (menu_items, menu_items_allocated, menu_items_used)
8752 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8753 (init_menu_items, finish_menu_items, discard_menu_items)
8754 (grow_menu_items, push_submenu_start, push_submenu_end)
8755 (push_left_right_boundary, push_menu_pane, push_menu_item)
8756 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8757 (free_menubar_widget_tree_value, parse_single_submenu)
8758 (update_submenu_strings): Remove functions.
8759 (xmalloc_widget_value): Remove and declare extern.
8760
8761 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8762 (OBJ1): Build it.
8763
8764 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8765 (local_heap, local_alloc, local_free, malloc_widget_value)
8766 (free_widget_value): Define here.
8767
87682008-06-09 Kenichi Handa <handa@m17n.org>
8769
8770 * font.h (Qascii_0): Extern it.
8771
8772 * font.c (Qascii_0): New variable.
8773 (syms_of_font): DEFSYM it.
8774 (font_open_by_name): If the registry "iso8859-1" fails, try also
8775 "ascii-0".
8776
8777 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8778
87792008-06-08 Kenichi Handa <handa@m17n.org>
8780
8781 * .gdbinit (xfont): New command.
8782
87832008-06-08 Andreas Schwab <schwab@suse.de>
8784
8785 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8786 * Makefile.in (menu.o): Update dependencies.
8787
8788 * Makefile.in (obj): Always add menu.o.
8789 * emacs.c (main): Always call syms_of_menu.
8790 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8791
87922008-06-08 Chong Yidong <cyd@stupidchicken.com>
8793
8794 * Makefile.in: Compile menu.c.
8795
8796 * lisp.h: Declare syms_of_menu.
8797
8798 * emacs.c (main): Call syms_of_menu.
8799
8800 * keyboard.h: Relocate platform-independent menu definitions from
8801 xmenu.c.
8802
8803 * menu.c: New file. Relocate platform-independent menu
8804 definitions from xmenu.c. Suggested by Adrian Robert.
8805
8806 * xmenu.c: Remove platform-independent menu definitions.
8807 (menu_items menu_items_inuse, menu_items_allocated)
8808 (menu_items_used, menu_items_n_panes)
8809 (menu_items_submenu_depth): Move to keyboard.h.
8810 (init_menu_items, finish_menu_items, unuse_menu_items)
8811 (discard_menu_items, restore_menu_items, save_menu_items)
8812 (grow_menu_items, push_submenu_start, push_submenu_end)
8813 (push_left_right_boundary, push_menu_pane, push_menu_item)
8814 (keymap_panes, single_keymap_panes, single_menu_item)
8815 (list_of_panes, list_of_items, find_and_call_menu_selection)
8816 (xmalloc_widget_value, free_menubar_widget_value_tree)
8817 (parse_single_submenu, digest_single_submenu)
8818 (update_submenu_strings): Move to menu.c.
8819
88202008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8821
8822 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8823
88242008-06-06 Miles Bader <miles@gnu.org>
8825
8826 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8827 face, not frame default.
8828
88292008-06-05 Martin Rudalics <rudalics@gmx.at>
8830
8831 * window.c (pop_up_windows, pop_up_frames)
8832 (display_buffer_reuse_frames, Vpop_up_frame_function)
8833 (Vdisplay_buffer_function, Veven_window_heights)
8834 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8835 (Vspecial_display_function, Vsame_window_buffer_names)
8836 (Vsame_window_regexps, split_height_threshold)
8837 (Vsplit_window_preferred_function): Move those vars to window.el.
8838 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8839 (Fdisplay_buffer): Move those functions to window.el.
8840 (syms_of_window): Remove corresponding declarations.
8841 (display_buffer): New function.
8842 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8843 * dispnew.c (Flast_nonminibuf_frame): New function.
8844 * buffer.c (Fpop_to_buffer): Move to window.el.
8845
88462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8847
8848 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8849
88502008-06-05 Kenichi Handa <handa@m17n.org>
8851
8852 * coding.c (detect_coding): Fix previous change.
8853 (detect_coding_system): Likewise.
8854
88552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8856
8857 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8858
8859 * keymap.c (Vminibuffer_local_filename_must_match_map):
8860 Rename from Vminibuffer_local_must_match_filename_map.
8861 (syms_of_keymap):
8862 * minibuf.c (Fcompleting_read): Adjust accordingly.
8863 * commands.h: Rename declaration as well.
8864
88652008-06-05 Kenichi Handa <handa@m17n.org>
8866
8867 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8868 family name.
8869 (Ffont_put): Likewise.
8870
8871 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8872 current font-spec.
8873
8874 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8875 is unspecified.
8876
8877 * xfaces.c (realize_x_face): If the font-related face attributes
8878 are the same as those of default face, realize a new fontset from
8879 default->fontset.
8880 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8881
88822008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8883
8884 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8885 (move_it_in_display_line): New wrapper.
8886
8887 * window.c (window_scroll_pixel_based_preserve_x)
8888 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8889 (window_scroll_pixel_based, window_scroll_line_based):
8890 Use them to preserve column positions.
8891 (syms_of_window): Initialize them.
8892
8893 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8894 (HPOS . VPOS) pair.
8895
8896 * dispextern.h (move_it_in_display_line): Declare.
8897
88982008-06-05 Juanma Barranquero <lekktu@gmail.com>
8899
8900 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8901 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8902 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8903
89042008-06-04 Juanma Barranquero <lekktu@gmail.com>
8905
8906 * window.c (Fset_window_parameter): Doc fix.
8907 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8908
89092008-06-04 Joakim Verona <joakim@verona.se>
8910
8911 * window.h (struct window): Add new member window_parameters.
8912
8913 * window.c (Fwindow_parameters, Fwindow_parameter)
8914 (Fset_window_parameter): New defuns.
8915 (syms_of_window): Defsubr the new defuns.
8916 (make_window): Initialize window_parameters to nil.
8917
89182008-06-04 John Paul Wallington <jpw@pobox.com>
8919
8920 * eval.c (Fdefmacro): Doc fix.
8921
89222008-06-04 Kenichi Handa <handa@m17n.org>
8923
8924 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8925 Be sure to call setup_coding_system when we find a proper coding system.
8926 (detect_coding_system): Fix handling of coding->head_ascii.
8927
89282008-06-03 Andreas Schwab <schwab@suse.de>
8929
8930 * font.c (font_prop_validate_spacing): Fix last change.
8931
89322008-06-03 Kenichi Handa <handa@m17n.org>
8933
8934 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8935 (font_parse_fcname): Fix handling of unknown key.
8936
8937 * xfont.c (xfont_list): Try an alias.
8938
8939 * charset.c (char_charset): Return NULL if the arg charset_list is
8940 specified and C doesn't belong to any of them.
8941
89422008-06-02 Chip Coldwell <coldwell@redhat.com>
8943
8944 * font.c (font_pixel_size): Don't take cdr of an integer.
8945
89462008-06-02 Jim Meyering <meyering@redhat.com>
8947
8948 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8949 * alloc.c (xfree): Return right away for a NULL arg.
8950 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8951 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8952 * mac.c (create_apple_event_from_event_ref): Likewise.
8953 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8954 Likewise.
8955 * doprnt.c (doprnt1): Likewise.
8956 * frame.c (frame): Likewise.
8957 * keyboard.c (wipe_kboard): Likewise.
8958 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8959 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8960 * term.c (tty_default_color_capabilities, maybe_fatal)
8961 (delete_tty): Likewise.
8962 * w16select.c (string): Likewise.
8963 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8964 * w32bdf.c (w32_free_bdf_font): Likewise.
8965 * w32fns.c (w32_unload_font): Likewise.
8966 * w32font.c (w32font_close): Likewise.
8967 * window.c (size_window): Likewise.
8968 * xselect.c (receive_incremental_selection): Likewise.
8969 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8970 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8971 * w32.c (stat): Likewise.
8972
8973 Remove useless if-before-free tests.
8974 * editfns.c (Fset_time_zone_rule): Likewise.
8975 * lread.c (nosuffix): Likewise.
8976 * ralloc.c (get_bloc): Likewise.
8977 * regex.c (reg_free): Likewise.
8978 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8979 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8980 * xsmfns.c (smc_save_yourself_CB): Likewise.
8981
89822008-06-02 Kenichi Handa <handa@m17n.org>
8983
8984 * font.c (font_find_for_lface): Handle float font size.
8985 (font_open_for_lface): Likewise.
8986
8987 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8988 comparing the properties.
8989
89902008-06-01 Jason Rumney <jasonr@gnu.org>
8991
8992 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8993 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8994 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8995 Don't add empty script list.
8996 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8997
89982008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8999
9000 * Makefile.in (dot, dotdot): Remove, update users.
9001 ".." has been used elsewhere in the file for a long time.
9002 (LIBXT_STATIC): Remove conditional based on unused variable.
9003
90042008-06-01 Miles Bader <miles@gnu.org>
9005
9006 * xfaces.c (Vface_remapping_alist): New variable.
9007 (syms_of_xfaces): Initialize it.
9008 (enum named_merge_point_kind): New type.
9009 (struct named_merge_point): Add `named_merge_point_kind' field.
9010 (push_named_merge_point): Make cycle detection respect different
9011 named-merge-point kinds.
9012 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9013 Remove face-name alias resolution.
9014 (lface_from_face_name): New definition using
9015 `lface_from_face_name_no_resolve'.
9016 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9017 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9018 (get_lface_attributes): New definition that layers face-remapping on
9019 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9020 (lookup_basic_face): New function.
9021 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9022 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9023 `get_lface_attributes'.
9024 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9025 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9026 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9027
9028 * xdisp.c (init_iterator): Pass base_face_id through
9029 `lookup_basic_face' when we actually use it as a face-id.
9030 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9031 DEFAULT_FACE_ID.
9032
9033 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9034 lookup the initial face-id.
9035
9036 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9037
90382008-06-01 Juanma Barranquero <lekktu@gmail.com>
9039
9040 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9041 (Fremove_text_properties): Fix typos in docstrings.
9042
90432008-05-31 Kenichi Handa <handa@m17n.org>
9044
9045 * font.c (font_list_entities): Fix the car part of data to be
9046 stored in the cache.
9047
9048 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9049
90502008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9051
9052 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9053 Add a `test' argument so another predicate than `equal' can be used.
9054 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9055 (map_char_table): Remove unused vars `c' and `i'.
9056 * lisp.h (Foptimize_char_table): Adjust declaration.
9057 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9058
90592008-05-30 Kenichi Handa <handa@m17n.org>
9060
9061 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9062 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9063 defined.
9064
90652008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9066
9067 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9068 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9069 frame-local settings for the same variable.
9070
90712008-05-30 Kenichi Handa <handa@m17n.org>
9072
9073 * fontset.c (Ffont_info): Move to font.c.
9074 (syms_of_fontset): Delete defsubr of Sfont_info.
9075
9076 * font.c (font_style_to_value, font_score): Delete casting of the
9077 args to xstcasecmp.
9078 (register_font_driver): Increment num_font_drivers only when
9079 registering the driver globally.
9080 (Ffont_info): Move from fontset.c. Handle a font object too.
9081 (syms_of_font): Defsubr Sfont_info.
9082
90832008-05-29 Kenichi Handa <handa@m17n.org>
9084
9085 * coding.h (enum define_coding_utf8_arg_index): New enum.
9086 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9087 coding_attr_utf_bom.
9088 (enum utf_bom_type): Rename from utf_16_bom_type.
9089 (struct utf_16_spec): Adjust for the above change.
9090 (struct coding_system): Add utf_8_bom in `spec' union.
9091
9092 * coding.c (CODING_UTF_8_BOM): New macro.
9093 (enum coding_category): Delete coding_category_utf_8, add
9094 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9095 coding_category_utf_8_sig.
9096 (CATEGORY_MASK_UTF_8): Delete it.
9097 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9098 (CATEGORY_MASK_UTF_8_SIG): New macros.
9099 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9100 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9101 CATEGORY_MASK_UTF_8_SIG.
9102 (CATEGORY_MASK_UTF_8): New macro.
9103 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9104 (detect_coding_utf_8): Check BOM.
9105 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9106 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9107 (encode_coding_utf_16): Likewise.
9108 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9109 (detect_coding, detect_coding_system): Handle utf-8-auto.
9110 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9111 (syms_of_coding): Fix setting up of Vcoding_category_table.
9112
91132008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9114
9115 * process.c (Faccept_process_output): If `millisec' is non-nil,
9116 `seconds' default to 0.
9117 (wait_reading_process_output): Also return non-nil if we read output
9118 from a non-running process.
9119
91202008-05-29 Jason Rumney <jasonr@gnu.org>
9121
9122 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9123 `raster' specified.
9124 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9125 in the uniscribe backend, but disallow any font that has no
9126 unicode subrange support.
9127
91282008-05-29 Juanma Barranquero <lekktu@gmail.com>
9129
9130 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9131 Fix typos in docstrings.
9132
91332008-05-29 Kenichi Handa <handa@m17n.org>
9134
9135 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9136 (Fx_family_fonts): Set frame correctly.
9137
91382008-05-28 Jason Rumney <jasonr@gnu.org>
9139
9140 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9141
91422008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9143
9144 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9145 calling build_annotations.
9146
91472008-05-28 Juanma Barranquero <lekktu@gmail.com>
9148
9149 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9150 (Fencode_coding_string):
9151 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9152 <latin-extra-code-table>: Fix typos in docstrings.
9153 (syms_of_coding) <coding-system-alist>: Doc fix.
9154 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9155
91562008-05-28 Kenichi Handa <handa@m17n.org>
9157
9158 * fontset.c (Ffont_info): Don't call font_close_object.
9159
9160 * font.c (font_parse_family_registry): Use Ffont_put to validate
9161 foundry and family.
9162 (font_delete_unmatched): Don't check spacing.
9163 (font_list_entities): Add spacing to the spec to list fonts.
9164
9165 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9166 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9167
9168 * coding.c (encode_coding_raw_text): Fix previous change.
9169 (encode_coding_object): When the dst_object is a buffer and is
9170 different from src_object, move gap to PT.
9171
91722008-05-27 Chong Yidong <cyd@stupidchicken.com>
9173
9174 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9175
91762008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9177
9178 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9179 all branches. Compute it differently.
9180
9181 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9182
91832008-05-27 Juanma Barranquero <lekktu@gmail.com>
9184
9185 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9186 into "else if () ... else ...".
9187
91882008-05-27 Jason Rumney <jasonr@gnu.org>
9189
9190 * w32font.c (w32font_open_internal): Determine if glyph indices
9191 are likely to work here.
9192
91932008-05-27 Chong Yidong <cyd@stupidchicken.com>
9194
9195 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9196 draw overlap glyphs with appropriate highlighting.
9197
91982008-05-27 Kenichi Handa <handa@m17n.org>
9199
9200 * xfont.c (xfont_open): Fix calculation of font->average_width.
9201
92022008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9203
9204 * casefiddle.c (casify_object): Try to guess better whether the
9205 argument is a byte or a char.
9206
92072008-05-26 Andreas Schwab <schwab@suse.de>
9208
9209 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9210 Always send multiples of format size.
9211
9212 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9213
92142008-05-26 Jason Rumney <jasonr@gnu.org>
9215
9216 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9217 (compute_metrics): Don't set failure if we just cleared the cache.
9218 (w32_weight_table): Remove unused variable.
9219 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9220 backwards compatibility.
9221
92222008-05-25 Kenichi Handa <handa@m17n.org>
9223
9224 * w32term.c (x_draw_glyph_string):
9225 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9226
9227 * xfaces.c: Delete unused function prototypes.
9228 (xstrlwr, font_frame): Delete them.
9229 (clear_face_cache): Delete unused variable.
9230
9231 * xftfont.c (xftfont_open): Delete unused variable.
9232 If underline_thickness is not 1, adjust underline_position.
9233
9234 * ftxfont.c (ftxfont_open): Delete unused variable.
9235
9236 * fontset.c (face_for_char): Optimize for the case of no charset
9237 property.
9238
9239 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9240 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9241 (otf_open, font_otf_capability, generate_otf_features)
9242 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9243 Comment out by surrounding "#if 0" and "#endif" for the moment.
9244 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9245 (syms_of_font): Codes for accessing above commented out.
9246
92472008-05-24 Eli Zaretskii <eliz@gnu.org>
9248
9249 * w32proc.c: Include dispextern.h.
9250
9251 * w32.c: Include dispextern.h.
9252
92532008-05-23 Juanma Barranquero <lekktu@gmail.com>
9254
9255 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9256 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9257 Fix typos in docstrings.
9258
92592008-05-23 Jason Rumney <jasonr@gnu.org>
9260
9261 * xsmfns.c: Remove includes that are already included by config.h.
9262
92632008-05-23 Kenichi Handa <handa@m17n.org>
9264
9265 * charset.c (Qemacs, charset_emacs): New variables.
9266 (char_charset): Fix for non-Unicode characters.
9267 (syms_of_charset): Define charset_emacs.
9268
9269 * w32term.c (x_draw_glyph_string): Be sure to update
9270 s->underline_thickness and s->underline_position. Be sure to draw
9271 underline within the current line area.
9272
9273 * xterm.c (x_draw_glyph_string): Be sure to update
9274 s->underline_thickness and s->underline_position. Be sure to draw
9275 underline within the current line area.
9276
9277 * fontset.c: Delete unused variables and add casting for char *
9278 throughout the file.
9279 (fontset_font): Try the fallback fonts of the current fontset
9280 before consulting the default fontset.
9281
9282 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9283
9284 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9285
92862008-05-22 Jason Rumney <jasonr@gnu.org>
9287
9288 * font.c: Don't include strings.h.
9289
9290 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9291
9292 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9293 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9294 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9295 to call xstrcasecmp.
9296
9297 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9298
9299 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9300
9301 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9302
9303 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9304
93052008-05-22 Kenichi Handa <handa@m17n.org>
9306
9307 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9308
9309 * font.c (font_prop_validate_style): Adjust for the format
9310 change of font_style_table.
9311
9312 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9313 two args.
9314
9315 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9316 two args.
9317
93182008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9319
9320 * minibuf.c (keys_of_minibuf): Delete.
9321 * lisp.h (keys_of_minibuf): Delete.
9322 * emacs.c (main): Don't call keys_of_minibuf.
9323
93242008-05-22 Kenichi Handa <handa@m17n.org>
9325
9326 * ftfont.c (ftfont_resolve_generic_family): Rename from
9327 ftfont_list_generic_family. Return a single family for each
9328 generic family.
9329 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9330 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9331 Call font_add_log.
9332 (ftfont_match): Call font_add_log.
9333
9334 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9335 (FONT_DEBUG): Define it.
9336 (font_add_log): Extern it.
9337 (font_assert): Rename from xassert.
9338
9339 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9340 (xfont_list_family): Call font_add_log.
9341 (xfont_match): Likewise.
9342 (memq_no_quit): Delete.
9343
9344 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9345 call of Ffont_xlfd_name.
9346
9347 * xfaces.c (struct table_entry, slant_table, weight_table)
9348 (swidth_table): Move to font.c.
9349
9350 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9351 xassert are changed to font_assert. Delete many unused variables.
9352 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9353 New variables.
9354 (struct table_entry): Move from xfaces.c and modified.
9355 (weight_table, slant_table, width_table): Move from xfaces.c and
9356 contents adjusted for the change of struct table_entry.
9357 (font_style_to_value, font_style_symbolic): Adjust for the
9358 format change of font_style_table.
9359 (font_parse_family_registry): Don't overwrite existing foundry and
9360 family of font_spec.
9361 (font_score): Fix calculation of diff for sizes.
9362 (font_sort_entites): Call font_add_log.
9363 (font_delete_unmatched): Return a newly created list.
9364 (font_list_entities): Fix previous change. Call font_add_log.
9365 (font_matching_entity, font_open_entity, font_close_entity):
9366 Call font_add_log.
9367 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9368 (Finternal_set_font_style_table): Delete.
9369 (BUILD_STYLE_TABLE): New macro.
9370 (build_style_table): New function.
9371 (Vfont_log, font_log_env_checked): New variables.
9372 (font_add_log): New function.
9373 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9374 Declare Lisp variables "font-weight-table", "font-slant-table",
9375 "font-width-table", and "font-log". Initialize font_style_table.
9376
93772008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9378
9379 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9380
93812008-05-21 Seiji Zenitani <zenitani@mac.com>
9382 Ryo Yoshitake <ryo@shiftmode.net>
9383
9384 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9385 (Vframe_alpha_lower_limit): New variable.
9386 (x_set_alpha): New function.
9387
9388 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9389
9390 * xfns.c (x-create-frame, Qalpha):
9391 Initialize the frame parameter `alpha'.
9392 * xterm.c (OPAQUE, OPACITY): New.
9393 (x_set_frame_alpha): New function.
9394 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9395
9396 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9397 * w32fns.c (w32_frame_parm_handlers): Likewise.
9398
93992008-05-20 Jason Rumney <jasonr@gnu.org>
9400
9401 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9402 truetype fonts to opentype list.
9403
94042008-05-20 Juanma Barranquero <lekktu@gmail.com>
9405
9406 * fontset.c (Ffontset_info): Doc fix.
9407 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9408 <ignore-relative-composition>: Fix typos in docstrings.
9409
9410 * font.c (syms-of-font) <font-encoding-alist>:
9411 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9412 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9413 (Ffont_otf_alternates): Doc fixes.
9414
94152008-05-20 Kenichi Handa <handa@m17n.org>
9416
9417 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9418 font.h through out the file.
9419 (FONT_DRIVERS): Rename from FONTOBJ.
9420 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9421 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9422
9423 * emacs.c (main): Call syms_of_font unconditionally.
9424
9425 * font.h (find_font_encoding): Extern it.
9426
9427 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9428 fontset.c.
9429 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9430 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9431 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9432 only when HAVE_WINDOW_SYSTEM is defined.
9433 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9434 when HAVE_WINDOW_SYSTEM is defined.
9435
9436 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9437 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9438
9439 * xfaces.c: Include font.h unconditionally.
9440 (merge_face_ref, merge_face_vectors)
9441 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9442
94432008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9444
9445 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9446 indirect_variable.
9447 * eval.c (lisp_indirect_variable): New fun.
9448 (Fuser_variable_p): Use it.
9449
94502008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9451
9452 * lisp.h (indirect_variable):
9453 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9454 Use Lisp_Symbol pointers rather than Lisp_Object.
9455 Adjust callers.
9456 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9457 To this end, change calling-convention.
9458
9459 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9460 if some non-hidden buffers are selected by string&pred.
9461
94622008-05-19 Chong Yidong <cyd@stupidchicken.com>
9463
9464 * process.c (wait_reading_process_output): Always check status
9465 when in batch mode.
9466
94672008-05-19 Kenichi Handa <handa@m17n.org>
9468
9469 * font.c (font_list_entities): Fix handling of cache.
9470 (font_matching_entity): Likewise.
9471
9472 * ftfont.c (cs_iso8859_1): Delete.
9473 (ft_face_cache): New variable.
9474 (struct ftfont_info): New member fc_charset_idx.
9475 (ftfont_build_basic_charsets): Delete.
9476 (fc_charset_table): New variable.
9477 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9478 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9479 Callers changed.
9480 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9481 (ftfont_spec_pattern): New argument fc_charset_idx.
9482 Check registry more rigidly. Change callers.
9483 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9484 change of :font-entity property of the font.
9485
9486 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9487 property of the font.
9488
94892008-05-18 Juanma Barranquero <lekktu@gmail.com>
9490
9491 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9492 (Funencodable_char_position, Fcheck_coding_systems_region)
9493 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9494 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9495 (Ffind_operation_coding_system, Fset_coding_system_priority)
9496 (Fcoding_system_eol_type): Doc fixes.
9497
94982008-05-17 Glenn Morris <rgm@gnu.org>
9499
9500 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9501
95022008-05-16 Eli Zaretskii <eliz@gnu.org>
9503
9504 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9505 and st_gid.
9506
9507 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9508 HAVE_WINDOW_SYSTEM is not defined.
9509
9510 * xfaces.c (merge_face_ref, merge_face_vectors)
9511 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9512 HAVE_WINDOW_SYSTEM is defined.
9513 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9514
95152008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9516
9517 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9518
95192008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9520
9521 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9522
95232008-05-15 Kenichi Handa <handa@m17n.org>
9524
9525 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9526 preference.
9527
95282008-05-15 Glenn Morris <rgm@gnu.org>
9529
9530 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9531
95322008-05-15 Chong Yidong <cyd@stupidchicken.com>
9533
9534 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9535 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9536
9537 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9538
95392008-05-15 Kenichi Handa <handa@m17n.org>
9540
9541 * ftfont.c (ftfont_list): Downcase family name to check generic
9542 families.
9543
9544 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9545 font-spec for QCfont value.
9546
9547 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9548 buffer. Check the return value of it.
9549
95502008-05-14 Jason Rumney <jasonr@gnu.org>
9551
9552 * w32term.c (w32_get_glyph_overhangs): Remove.
9553 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9554
95552008-05-14 Kenichi Handa <handa@m17n.org>
9556
9557 * font.c (font_prop_validate): Make nil a valid value.
9558 (font_clear_cache): Check if the cached vector of entities is nil
9559 or not.
9560
95612008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9562
9563 * emacs.c (main_thread): Conditionalize on
9564 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9565 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9566
9567 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9568 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9569 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9570
95712008-05-14 Kenichi Handa <handa@m17n.org>
9572
9573 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9574 has no corresponding coding system.
9575
95762008-05-14 Jason Rumney <jasonr@gnu.org>
9577
9578 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9579
9580 * w32font.h (w32font_open_internal): Update declaration.
9581
9582 * w32font.c (w32font_open_internal): Change last argument from
9583 w32font_info struct to font object. Fill in font object from
9584 font_entity. Get Outline metrics if possible. Use them to
9585 calculate underline position and thickness. Use xlfd name as name
9586 property. Don't set codepage.
9587 (w32font_open): Pass font_object to w32font_open_internal. Don't
9588 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9589 (w32font_draw): Use s->font.
9590 (clear_cached_metrics): Don't clear non-existent blocks.
9591
9592 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9593 font was not found.
9594 (x_draw_glyph_string): Use underline position and thickness from font.
9595
9596 * w32uniscribe.c (uniscribe_open): Pass font_object to
9597 w32font_open_internal.
9598
95992008-05-14 Kenichi Handa <handa@m17n.org>
9600
9601 These changes are to delete all legacy font-handling codes, and
9602 make Emacs use only font-backends.
9603
9604 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9605 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9606
9607 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9608
9609 * charset.h (Vcharset_non_preferred_head)
9610 (Vcurrent_iso639_language): Extern them.
9611
9612 * charset.c (Vcharset_non_preferred_head): New variable.
9613 (Vcurrent_iso639_language): New variable.
9614 (syms_of_charset): Declare it as a Lisp variable.
9615 (char_charset): Don't check non preferred charsets. As a last
9616 resort, return charset_unicode.
9617 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9618
9619 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9620 conditionals. Don't check enable_font_backend. Delete all codes
9621 used only when USE_FONT_BACKEND is not defined.
9622
9623 * dispextern.h (struct glyph_string): Change type of `font' to
9624 `struct font *'.
9625 (struct glyph_string): New member underline_position and
9626 underline_thickness.
9627 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9628 (struct face): Change type of `font' to `struct font *'. Remove
9629 members `font_name', `font_info_id'.
9630 (per_char_metric, encode_char): Delete externs.
9631 (calc_pixel_width_or_height): Adjust the prototype.
9632
9633 * emacs.c (enable_font_backend): Delete extern.
9634 (main): Don't set enable_font_backend. Don't check the command
9635 line argument "-disable-font-backend".
9636
9637 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9638 (enum font_property_index): New members FONT_DPI_INDEX,
9639 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9640 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9641 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9642 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9643 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9644 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9645 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9646 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9647 (struct font_spec, struct font_entity): New structs.
9648 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9649 (struct font): Many members from old "struct font_info" moved to
9650 here. Members font and entity deleted.
9651 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9652 the new font-related objects.
9653 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9654 (CHECK_FONT_GET_OBJECT): Likewise.
9655 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9656 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9657 (struct font_driver): New members case_sensitive anc check. Type
9658 of the member list and open changed.
9659 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9660 (font_symbolic_width, font_find_object, font_get_spec)
9661 (font_set_lface_from_name): Delete extern.
9662 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9663
9664 * font.c: Include <strings.h>.
9665 (enable_font_backend): Delete it.
9666 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9667 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9668 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9669 (null_string): Delete it.
9670 (null_vector): Make it static.
9671 (font_family_alist): Delete it.
9672 (Qnormal): Extern it.
9673 (QCextra, QClanguage): Delete it.
9674 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9675 (font_make_spec, font_make_entity, font_make_object)
9676 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9677 the string. Callers changed.
9678 (font_pixel_size): Adjusted for the format change of font-related
9679 objects.
9680 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9681 (font_style_to_value, font_style_symbolic): New function.
9682 (build_font_family_alist): Delete it.
9683 (font_registry_charsets): Use Fassoc_string instead of
9684 assq_no_quit.
9685 (font_prop_validate_symbol): Don't return null_string.
9686 (font_prop_validate_style): Adjusted for the change of
9687 style-related values in a font vector.
9688 (font_property_table): Delete entries for QClanguage and
9689 QCantialias, add entries for QCavgwidth.
9690 (get_font_prop_index): Delete the 2nd argument FROM.
9691 (font_prop_validate): Arguments changed.
9692 (font_put_extra): Adjusted for the change of font-related objects.
9693 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9694 (font_parse_fcname, font_unparse_fcname)
9695 (font_prepare_composition): Likewise.
9696 (font_parse_family_registry): Renamed from font_merge_old_spec.
9697 (otf_open): Delete the 1st arg entity.
9698 (font_otf_capability): Adjusted for the above change.
9699 (font_score): New arg alternate_families. Adjusted for the change
9700 of font-related objects.
9701 (font_sort_entites): New arg best_only.
9702 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9703 Delete them.
9704 (font_match_p): Check alternate families.
9705 (font_find_object): Delete it.
9706 (font_check_object): New function.
9707 (font_clear_cache): Adjusted for the change of font-related objects.
9708 (font_delete_unmatched): New arg.
9709 (font_list_entities): Call font_driver->list with a spec that
9710 doesn't specify style-related properties.
9711 (font_matching_entity): Arguments changed. Caller changed.
9712 (font_open_entity): Adjusted for the change of font-related objects.
9713 (font_close_object, font_has_char, font_encode_char)
9714 (font_get_name, font_get_spec): Likewise.
9715 (font_spec_from_name, font_clear_prop, font_update_lface):
9716 New functions.
9717 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9718 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9719 (font_at): Adjusted for the change of font-related objects.
9720 (font_range): New function.
9721 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9722 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9723 (Fcopy_font_spec, Fmerge_font_spec): New function.
9724 (Ffont_family_list): Renamed from list-families.
9725 (Finternal_set_font_style_table): Arguments changed.
9726 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9727 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9728 change of font-related objects.
9729 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9730
9731 * fontset.h (struct font_info): Delete it. Most members go to
9732 struct font.
9733 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9734 (enum FONT_SPEC_INDEX): Delete it.
9735 (font_info, list_fonts_func, load_font_func, query_font_func)
9736 (set_frame_fontset_func, find_ccl_program_func)
9737 (get_font_repertory_func, new_fontset_from_font_name): Delete
9738 externs.
9739 (fontset_from_font_name): Extern it.
9740 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9741 (FONT_INFO_FROM_FACE): Deleted.
9742 (face_for_font): Adjust prototype.
9743
9744 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9745 conditionals. Don't check enable_font_backend. Delete all codes
9746 used only when USE_FONT_BACKEND is not defined.
9747 (get_font_info_func, list_font_func, load_font_func)
9748 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9749 (get_font_repertory_func): Delete them.
9750 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9751 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9752 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9753 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9754 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9755 (fontset_compare_rfontdef): New function.
9756 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9757 rfont-defs by qsort. Adjusted for the change of font-group vector.
9758 (load_font_get_repertory): Deleted.
9759 (fontset_find_font): Use new macros to ref/set elements of
9760 font-def and rfont-def.
9761 (fontset_font): Fix the timing of remembering that no font for C.
9762 (free_face_fontset): Do nothing if the face has no fontset.
9763 (face_suitable_for_char_p): Use new macros to ref/set elements of
9764 rfont-def.
9765 (face_for_char): Likewise. Call face_for_char with font_object.
9766 (fs_load_font): Delete. Delete #pragma surrounding it.
9767 (fs_query_fontset): Use strcasecmp instead of strcmp.
9768 (generate_ascii_font_name): Adjusted for the format change of
9769 font-spec.
9770 (Fset_fontset_font): Likewise. Use new macros to set elements of
9771 font-def.
9772 (Fnew_fontset): Use font_unparse_xlfd to generate
9773 FONTSET_ASCII (fontset).
9774 (new_fontset_from_font_name): Deleted.
9775 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9776 a fontset is already created for the font. FIx updating of
9777 Vfontset_alias_alist.
9778 (fontset_ascii_font): Deleted.
9779 (Ffont_info): Adjusted for the format change of font-spec.
9780 (Finternal_char_font): Likewise.
9781 (Ffontset_info): Likewise.
9782 (syms_of_fontset): Don't check load_font_func.
9783
9784 * fns.c (internal_equal): Handle PREV_FONT.
9785
9786 * frame.h: Delete USE_FONT_BACKEND conditional.
9787
9788 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9789 conditionals. Don't check enable_font_backend. Delete all codes
9790 used only when USE_FONT_BACKEND is not defined.
9791 (x_set_font): Call x_new_font, not x_new_fontset2.
9792 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9793 already set for the frame.
9794
9795 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9796 a font-entity by font_make_entity. Use font_intern_prop instead
9797 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9798 font property. If a font is scalable, set avgwidth property to 0.
9799 Set font-entity property by font_put_extra.
9800 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9801 (ffont_driver): Adjusted for the change of struct font_driver.
9802 (ftfont_spec_pattern): New function.
9803 (ftfont_list): Return a list, not vector.
9804 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9805 (ftfont_list_family): Don't downcase names.
9806 (ftfont_free_entity): Deleted.
9807 (ftfont_open): Return a font-object. Adjusted for the change of
9808 struct font. Get underline_thickness and underline_position from
9809 font property. Don't update dpyinfo->smallest_font_height and
9810 dpyinfo->smallest_char_width.
9811 (ftfont_close): Don't free `struct font'.
9812 (ftfont_has_char): Adjusted for the format change of font-entity.
9813 (ftfont_encode_char, ftfont_text_extents): Likewise.
9814
9815 * ftxfont.c (ftxfont_list): Return a list, not vector.
9816 (ftxfont_open): Return a font-object. Adjusted for the change of
9817 struct font. Get underline_thickness and underline_position from
9818 font property. Don't update dpyinfo->smallest_font_height and
9819 dpyinfo->smallest_char_width.
9820 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9821 (ftxfont_draw): Adjusted for the change of struct font.
9822
9823 * image.c (image_ascent): Don't include "charset.h". Include
9824 "character.h" and "font.h".
9825
9826 * lisp.h (enum pvec_type): New member PREV_FONT.
9827 (Fassoc_string): EXFUN it.
9828
9829 * print.c: Include font.h.
9830 (print_object): Handle font-related objects.
9831
9832 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9833 conditionals. Don't check enable_font_backend. Delete all codes
9834 used only when USE_FONT_BACKEND is not defined.
9835 (handle_auto_composed_prop): Do nothing if it->f is not on a
9836 window system. Check how many following characters can be
9837 displayed by the same font.
9838 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9839 'struct font *'.
9840 (get_char_face_and_encoding): Assign the whole encoding task to
9841 the `encode-char' method of a font driver.
9842 (fill_composite_glyph_string): Adjusted for the change of `struct
9843 face' and `struct glyph_string'.
9844 (fill_glyph_string): Likewise.
9845 (get_per_char_metric): Arguments changed.
9846 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9847 and `struct glyph_string'.
9848 (produce_stretch_glyph, calc_line_height_property)
9849 (x_produce_glyphs): Likewise.
9850
9851 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9852 conditionals. Don't check enable_font_backend. Delete all codes
9853 used only when USE_FONT_BACKEND is not defined. Use
9854 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9855 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9856 (Qp): Extern them.
9857 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9858 Deleted.
9859 (struct font_name): Deleted.
9860 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9861 (compare_fonts_by_sort_order): New function.
9862 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9863 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9864 Deleted.
9865 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9866 compare_fonts_by_sort_order.
9867 (Fx_font_family_list): Call Ffont_family_list.
9868 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9869 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9870 (face_symbolic_slant, face_symbolic_swidth)
9871 (split_font_name_into_vector, build_font_name_from_vector)
9872 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9873 (font_rescale_ratio, split_font_name, build_font_name)
9874 (free_font_names, sort_fonts, x_face_list_fonts)
9875 (face_font_available_p, sorted_font_list, cmp_font_names)
9876 (font_list_1, concat_font_list, font_list, remove_duplicates):
9877 Deleted.
9878 (Fx_list_fonts): Use Ffont_list.
9879 (LFACE_AVGWIDTH): Deleted.
9880 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9881 by FONTP.
9882 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9883 (set_lface_from_font_name): Delete it.
9884 (set_lface_from_font): Renamed from
9885 set_lface_from_font_and_fontset. Caller changed. Don't set
9886 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9887 for face.
9888 (merge_face_vectors): Copy font-spec if necessary.
9889 Clear properties of the font-spec if necessary.
9890 (merge_face_ref): Clear properties of the font-spec if necessary.
9891 (Finternal_set_lisp_face_attribute): Likewise.
9892 (set_font_frame_param): Use font_load_for_lface to load a
9893 font-object, and call Fmodify_frame_parameters with it.
9894 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9895 font name by Ffont_xlfd_name.
9896 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9897 QCslant, and QCwidth.
9898 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9899 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9900 Compare fonts by EQ.
9901 (lookup_non_ascii_face): Deleted.
9902 (face_for_font): The 2nd argument changed.
9903 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9904 Check atomic font properties by case insensitive.
9905 (realize_non_ascii_face): Set face->overstrike correctly.
9906 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9907 (dump_realized_face): Get font name from
9908 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9909
9910 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9911 conditionals. Don't check enable_font_backend. Delete all codes
9912 used only when USE_FONT_BACKEND is not defined.
9913 (xic_create_xfontset): Original code deleted and renamed from
9914 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9915 (x_make_gc): Don't set GCFont in GCs.
9916 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9917 opened by "fixed".
9918 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9919 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9920 get_font_repertory_func.
9921
9922 * xfont.c: Include <stdlib.h> and "ccl.h".
9923 (struct xfont_info): New structure.
9924 (xfont_query_font): Deleted.
9925 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9926 moved from xterm.c.
9927 (xfont_driver): Adjusted for the change of struct font_driver.
9928 (compare_font_names): New function.
9929 (xfont_list_pattern): Sort font names case insensitively. Make
9930 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9931 (xfont_list): Return a list, not vector.
9932 (xfont_match): If the font doesn't have QCname property, generate
9933 a name from the other font properties.
9934 (xfont_open): Return a font-object. Adjusted for the change of
9935 struct font. Get underline_thickness and underline_position from
9936 font property. Don't update dpyinfo->smallest_font_height and
9937 dpyinfo->smallest_char_width.
9938 (xfont_close): Don't free struct font.
9939 (xfont_prepare_face): Adjusted for the change of struct font.
9940 (xfont_done_face): Deleted.
9941 (xfont_has_char): Adjusted for the change of struct font.
9942 (xfont_encode_char, xfont_draw): Likewise.
9943 (xfont_check): New function.
9944
9945 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9946 callback function.
9947 (xftfont_match): Adjusted for the format change of font-entity.
9948 (xftfont_open): Adjusted for the format change of font-entity and
9949 font-object. Adjusted for the change of struct font. Return a
9950 font-object. Don't update dpyinfo->smallest_font_height and
9951 dpyinfo->smallest_char_width.
9952 (xftfont_close): Block input while calling XftFontClose.
9953 (xftfont_prepare_face): Don't block input while calling
9954 xftfont_get_colors. Adjusted for the change of struct font.
9955 (xftfont_shape): Return value of error case fixed.
9956
9957 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9958
9959 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9960 conditionals.
9961 (FONT_WIDTH): Return (f)->max_width.
9962 (struct x_display_info): Delete member `font'.
9963 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9964 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9965 (struct x_output): Change type of `font' to `struct font *'.
9966
9967 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9968 conditionals. Don't check enable_font_backend. Delete all codes
9969 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9970 (x_per_char_metric, x_encode_char): Deleted.
9971 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9972 (x_compute_glyph_string_overhangs): Adjusted for the change of
9973 `struct face'.
9974 (x_draw_glyph_string_foreground)
9975 (x_draw_composite_glyph_string_foreground): Likewise.
9976 (x_draw_glyph_string): Likewise. Use font->underline_position and
9977 font->underline_thickness.
9978 (x_new_font): Renamed from x_new_fontset2.
9979 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9980 (x_check_font): Call `check' method of a font driver.
9981 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9982 (x_query_font, x_get_font_repertory): Deleted.
9983 (x_find_ccl_program): Renamed and moved to xfont.c.
9984 (x_redisplay_interface): Adjusted for the change of `struct
9985 redisplay_interface'.
9986
9987 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9988 conditionals. Don't check enable_font_backend. Delete all codes
9989 used only when USE_FONT_BACKEND is not defined. Surround non-used
9990 code by "#ifdef OLD_FONT" and "endif".
9991 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9992
9993 * w32font.h (struct w32font_info): New member.
9994 (FONT_COMPAT): New macro.
9995 (w32font_open_internal): Prototype adjusted.
9996
9997 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9998 OLD_FONT" and "endif".
9999
10000 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10001 conditionals. Don't check enable_font_backend. Delete all codes
10002 used only when USE_FONT_BACKEND is not defined.
10003 (w32font_open): Return a font-object. Make a font-object by
10004 font_make_object. Adjusted for the change of struct w32font_info.
10005 (w32font_close): Don't free struct font. Adjusted for the change
10006 of struct w32font_info.
10007 (w32font_encode_char, w32font_text_extents, w32font_draw):
10008 Adjusted for the change of struct w32font_info.
10009 (w32font_draw): Likewise.
10010 (w32font_list_internal): Return a list, not vector.
10011 (w32font_open_internal): Change the 4th arg to font-object.
10012 Adjusted for the change of struct w32font_info and font-object format.
10013 (add_font_name_to_list): Don't downcase names.
10014 (w32_enumfont_pattern_entity): Make a font-entity by
10015 font_make_entity. Adjusted for the format change of font-entity.
10016 Use FONT_SET_STYLE to set a style-related font property. If a
10017 font is scalable, set avgwidth property to 0. Set font-entity
10018 property by font_put_extra.
10019 (font_matches_spec): Adjusted for the format change of font-entity.
10020 (w32_weight_table, w32_decode_weight): New variables.
10021 (w32_encode_weight): New function.
10022 (fill_in_logfont): Adjusted for the format change of font-spec.
10023 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10024 weight value.
10025 (w32font_driver): Adjusted for the change of struct font_driver.
10026
10027 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10028 conditionals. Don't check enable_font_backend. Surround non-used
10029 code by "#ifdef OLD_FONT" and "endif".
10030 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10031 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10032
10033 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10034 conditionals. Don't check enable_font_backend. Delete all codes
10035 used only when USE_FONT_BACKEND is not defined. Surround non-used
10036 code by "#ifdef OLD_FONT" and "endif".
10037
10038 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10039 (uniscribe_open): Return value changed to font-object.
10040 Adjusted for the format change of font-object.
10041 (uniscribe_otf_capability): Adjusted for the change of struct font.
10042 (add_opentype_font_name_to_list): Don't downcase names.
10043 (uniscribe_font_driver): Adjusted for the change of struct
10044 font_driver.
10045
100462008-05-13 Chong Yidong <cyd@stupidchicken.com>
10047
10048 * dispnew.c (update_frame_1): Check if tty output is still valid
10049 before flushing it.
10050
100512008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10052
10053 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10054 to Gtk+ menus.
10055
100562008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10057
10058 * dired.c (file_name_completion): Tweak the code so as to always do it
10059 in a single pass. Tighten the scope of some variables.
10060
10061 * dired.c (Qdefault_directory): New var.
10062 (file_name_completion): Use it instead of Fexpand_file_name.
10063 (syms_of_dired): Initialize it.
10064
100652008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10066
10067 * fileio.c (double_dollars): Remove dead code.
10068
100692008-05-10 Eli Zaretskii <eliz@gnu.org>
10070
10071 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10072 Mention w32-get-true-file-attributes in doc string.
10073
10074 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10075
100762008-05-09 Glenn Morris <rgm@gnu.org>
10077
10078 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10079 2008-04-23.
10080
100812008-05-09 Eli Zaretskii <eliz@gnu.org>
10082
10083 Support for reporting owner and group of each file on MS-Windows:
10084 * dired.c (stat_uname, stat_gname): New functions, with special
10085 implementation for w32.
10086 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10087
10088 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10089 (dflt_group_name): New static variable.
10090 (dflt_group): Rename from the_group.
10091 (init_user_info): Init dflt_group fields. Get user's group name
10092 from LookupAccountSid.
10093 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10094 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10095 New initialization states.
10096 (globals_of_w32): Initialize them to zero. Initialize the default
10097 group name to "None".
10098 (GetFileSecurity_Name): New global var, the name of the function
10099 to call for GetFileSecurity.
10100 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10101 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10102 (get_file_security, get_security_descriptor_owner)
10103 (get_security_descriptor_group, is_valid_sid)
10104 (get_file_security_desc, get_rid, get_name_and_id)
10105 (get_file_owner_and_group): New functions.
10106 (stat): Use get_file_security_desc and get_file_owner_and_group to
10107 report the owner and primary group of each file. Don't ignore the
10108 high 32 bits of file's size, now that st_size is 64-bit wide.
10109 Fix test when to get true file attributes.
10110 (init_user_info): Use get_rid instead of equivalent inline code.
10111 (fstat): Don't ignore the high 32 bits of file's size.
10112
101132008-05-09 Chong Yidong <cyd@stupidchicken.com>
10114
10115 * image.c (png_load): Use correct bit-depth for setting background
10116 color.
10117
101182008-05-08 Eli Zaretskii <eliz@gnu.org>
10119
10120 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10121 epa-hook.elc.
10122
101232008-05-08 Juanma Barranquero <lekktu@gmail.com>
10124
10125 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10126
101272008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10128
10129 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10130 because the original parameters are in pure storage now.
10131 (mac_window): Remove unused params. Update callers.
10132
101332008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10134
10135 * lread.c (substitute_object_recurse): Use lower-level primitives.
10136 Don't signal errors when traversing sub-char-tables.
10137 Don't loop over all the possible characters when traversing char-tables.
10138
10139 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10140 just like we do in print.c.
10141
101422008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10143
10144 * minibuf.c (Ftry_completion): Remove code left over from when we used
10145 scmp instead of Fcompare_strings.
10146
101472008-05-04 Juanma Barranquero <lekktu@gmail.com>
10148
10149 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10150
101512008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10152
10153 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10154 Create bitmap context in native byte order.
10155
10156 * macterm.c (XDrawLine)
10157 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10158 context in native byte order.
10159
101602008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10161
10162 * config.in: Regenerate.
10163
10164 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10165 New definitions for Image I/O support.
10166 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10167 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10168 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10169 (mac_data_provider_release_data, image_load_image_io)
10170 [USE_MAC_IMAGE_IO]: New functions.
10171 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10172 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10173 (init_image_func_pointer) [MAC_OSX]: Remove function.
10174 (image_load_quartz2d) [MAC_OSX]: Check availability of
10175 CGImageCreateWithPNGDataProvider at compile time.
10176 Use lowercase `false' for boolean constant.
10177 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10178 Use image_load_image_io.
10179 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10180 Don't check MyCGImageCreateWithPNGDataProvider.
10181 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10182 Don't call init_image_func_pointer.
10183
10184 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10185
10186 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10187 Make variable non-static.
10188 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10189 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10190
10191 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10192 (RED_FROM_ULONG): Mask off higher bits.
10193 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10194
10195 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10196 Include AvailabilityMacros.h.
10197 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10198 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10199
102002008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10201
10202 * chartab.c (Fset_char_table_range): If range is t, really set all
10203 chars to that value.
10204
102052008-05-03 Eli Zaretskii <eliz@gnu.org>
10206
10207 * dired.c (Ffile_attributes): Don't allow the device number become
10208 negative.
10209
102102008-05-02 Daiki Ueno <ueno@unixuser.org>
10211
10212 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10213
102142008-05-02 Juri Linkov <juri@jurta.org>
10215
10216 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10217 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10218 DEFAULT argument as a list of default values in docstrings.
10219
102202008-05-01 Chong Yidong <cyd@stupidchicken.com>
10221
10222 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10223
102242008-05-01 Martin Rudalics <rudalics@gmx.at>
10225
10226 * dispnew.c (change_frame_size_1): Preserve small windows when
10227 shrinking frames by calling set_window_height|width with third
10228 arg 2.
10229
10230 * window.h (struct window): Replace field too_small_ok by field
10231 resize_proportionally.
10232
10233 * window.c (make_window): Initialize resize_proportionally.
10234 (enlarge_window): Temporarily set resize_proportionally to make
10235 sure that shrink_windows does scale the window proportionally.
10236 (shrink_windows): When window has resize_proportionally set try
10237 to shrink it proportionally by stealing from other windows.
10238 (struct saved_window, Fset_window_configuration)
10239 (compare_window_configurations): Handle resize_proportionally.
10240 (WINDOW_TOTAL_SIZE): New macro.
10241 (window_min_size, shrink_windows, size_window): Use it.
10242 (check_min_window_sizes): Remove. Invalid values of
10243 window-min-height|width are handled by window_min_size_2 now.
10244 (size_window, Fsplit_window, enlarge_window)
10245 (adjust_window_trailing_edge, grow_mini_window): Don't call
10246 check_min_window_sizes.
10247 (window_min_size_2, window_min_size_1, window_min_size):
10248 New argument safe_p for retrieving "safe" minimum sizes.
10249 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10250 (adjust_window_trailing_edge, grow_mini_window):
10251 Adjust arguments of window_min_size... functions.
10252 (shrink_windows): Argument min_size removed. New argument
10253 safe_p allows shrinking windows to their safe minimum sizes.
10254 Calculate minimum size and decide whether a window shall be
10255 deleted for each window individually.
10256 (size_window): When nodelete_p equals 2, tell shrink_windows to
10257 delete windows only if their new minimum size is no more safe.
10258 (shrink_window_lowest_first): Call window_min_size_1 to make
10259 sure to preserve modeline of bottom-most window when resizing
10260 the minibuffer.
10261 (Fset_window_configuration, Fcurrent_window_configuration)
10262 (compare_window_configurations): Do not handle
10263 window-min-height|width any more.
10264 (syms_of_window): Clarify window-min-height|width doc-strings.
10265
102662008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10267
10268 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10269 some more. Copy some of the code from Ftry_completions.
10270 Remove special case code that dates back to initial revision when the
10271 slash was only added when necessary and that can't trigger nowadays.
10272
102732008-04-27 Kenichi Handa <handa@m17n.org>
10274
10275 * font.c (font_prop_validate): Signal `error' instead of `font'.
10276
102772008-04-29 Jason Rumney <jasonr@gnu.org>
10278
10279 * w32fns.c (Fw32_battery_status): New defun.
10280 (syms_of_w32fns): Defsubr it.
10281
102822008-04-28 Andreas Schwab <schwab@suse.de>
10283
10284 * dired.c (file_name_completion): Fix another mixing of encoded
10285 and decoded names.
10286
102872008-04-28 Juanma Barranquero <lekktu@gmail.com>
10288
10289 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10290
102912008-04-27 Juanma Barranquero <lekktu@gmail.com>
10292
10293 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10294
102952008-04-27 Andreas Schwab <schwab@suse.de>
10296
10297 * dired.c (file_name_completion): Fix inappropriate mixing of
10298 encoded and decoded names.
10299
10300 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10301
10302 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10303
103042008-04-26 Eli Zaretskii <eliz@gnu.org>
10305
10306 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10307 2008-03-31, it's not needed anymore with `struct stat' definition
10308 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10309 for the same reasons.
10310
103112008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10312
10313 * m/sparc.h: Additional redefinitions for GNU/Linux.
10314
103152008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10316
10317 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10318 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10319 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10320 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10321 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10322 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10323 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10324 Likewise.
10325
10326 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10327 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10328 (mac_ax_number_of_characters): Add externs.
10329 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10330 [USE_MAC_TSM]: Likewise.
10331 (mac_handle_text_input_event) [MAC_OSX]:
10332 Handle kEventTextInputOffsetToPos for no active input area case.
10333 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10334 (mac_handle_document_access_event)
10335 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10336 (install_application_handler) [MAC_OSX]: Register handlers for
10337 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10338 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10339 Register mac_handle_document_access_event.
10340
10341 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10342 Make functions non-static.
10343
103442008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10345
10346 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10347 (read_file_name_completion_ignore_case, insert_default_directory)
10348 (Qdefault_directory): Move to minibuffer.el.
10349 (Fread_file_name): Call the new `read-file-name' instead.
10350
103512008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10352
10353 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10354 Make function non-static.
10355 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10356 Remove function.
10357 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10358 Move to mactoolbox.c.
10359 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10360
10361 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10362 (mac_rect_make): New macro.
10363
10364 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10365 instead of float.
10366 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10367 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10368 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10369 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10370 CGRectMake.
10371 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10372 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10373 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10374 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10375 instead of WindowRef in argument type.
10376 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10377 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10378 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10379 instead of DISPLAY. All uses changed.
10380 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10381 (x_calc_absolute_position): Simplify so as not to use
10382 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10383
10384 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10385 instead of WindowRef in argument type.
10386 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10387 [TARGET_API_MAC_CARBON]: Remove externs.
10388 (create_apple_event, mac_event_parameters_to_lisp)
10389 [TARGET_API_MAC_CARBON]: Add externs.
10390
10391 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10392 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10393 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10394 is clicked.
10395 (x_activate_menubar): Remove extern for saved_menu_event_location.
10396 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10397 Move from mac.c.
10398
103992008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10400
10401 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10402 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10403
104042008-04-23 Jason Rumney <jasonr@gnu.org>
10405
10406 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10407 attributes only for local files.
10408
10409 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10410 default to Qlocal.
10411
104122008-04-22 Juri Linkov <juri@jurta.org>
10413
10414 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10415 read-buffer-to-switch instead of using the letter "B".
10416
104172008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10418
10419 * fileio.c (Qdefault_directory): New variable.
10420 (Fread_file_name): Use it to pass `dir' to the completion functions.
10421
104222008-04-20 Chong Yidong <cyd@stupidchicken.com>
10423
10424 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10425
104262008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10427
10428 * keyboard.c (Vpre_help_message): Remove.
10429 (show_help_echo): Remove default C code.
10430
10431 * dired.c (directory_files_internal, file_name_completion):
10432 Only call ENCODE_FILE if the string is indeed decoded.
10433
104342008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10435
10436 * Makefile.in (TOOLKIT_DEFINES): Remove.
10437 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10438
104392008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10440
10441 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10442 (mactoolbox.o): New target.
10443
10444 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10445 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10446
10447 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10448 Use mac_set_frame_window_background instead of XSetWindowBackground.
10449 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10450 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10451 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10452 instead of SetWindowTitleWithCFString.
10453 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10454 Move function to mactoolbox.c.
10455 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10456 Use mac_set_window_modified instead of SetWindowModified.
10457 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10458 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10459 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10460 FrontNonFloatingWindow. Use mac_activate_window instead of
10461 ActivateWindow. Use mac_active_non_floating_window instead of
10462 ActiveNonFloatingWindow.
10463 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10464 Use mac_show_hourglass and mac_hide_hourglass.
10465 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10466 instead of GetGlobalMouse.
10467 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10468 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10469 Use mac_bring_window_to_front instead of BringToFront.
10470 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10471 mactoolbox.c.
10472 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10473 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10474 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10475 mactoolbox.c.
10476
10477 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10478 (XtPointer): Move typedef from macmenu.c.
10479 (enum button_type): Move enum from macmenu.c.
10480 (widget_value): Move typedef from macmenu.c.
10481 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10482 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10483 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10484 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10485 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10486 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10487 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10488 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10489 (Selection): Move typedef from macselect.c.
10490 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10491 macterm.c.
10492 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10493 (mac_is_window_collapsed, mac_bring_window_to_front)
10494 (mac_send_window_behind, mac_hide_window, mac_show_window)
10495 (mac_collapse_window, mac_front_non_floating_window)
10496 (mac_active_non_floating_window, mac_activate_window)
10497 (mac_move_window_structure, mac_move_window, mac_size_window)
10498 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10499
10500 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10501 (enum mac_menu_kind): Move enum to mactoolbox.c.
10502 (min_menu_id): Move variable to mactoolbox.c.
10503 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10504 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10505 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10506 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10507 [TARGET_API_MAC_CARBON]: Likewise.
10508 (XtPointer): Move typedef to macgui.h.
10509 (enum button_type): Move enum to macgui.h.
10510 (widget_value): Move typedef to macgui.h.
10511 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10512 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10513 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10514 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10515 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10516 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10517 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10518 (popup_activated_flag): Make variable non-static.
10519 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10520 (add_menu_item, fill_menu, dispose_menus):
10521 Move functions to mactoolbox.c.
10522 (restore_show_help_function, menu_target_item_handler)
10523 (install_menu_target_item_handler, mac_handle_dialog_event)
10524 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10525 [TARGET_API_MAC_CARBON]: Likewise.
10526 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10527 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10528 (find_and_call_menu_selection, name_is_separator): Make function
10529 non-static.
10530 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10531 to mactoolbox.c.
10532 (set_frame_menubar): Don't call install_menu_quit_handler.
10533 (menu_item_selection): New variable.
10534 (mac_menu_show): Use create_and_show_popup_menu.
10535 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10536 selection but set variable menu_item_selection. All uses changed.
10537 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10538 Call install_menu_quit_handler. Move to mactoolbox.c.
10539
10540 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10541 (Selection): Move typedef to macgui.h.
10542 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10543 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10544 Make variables non-static.
10545 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10546 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10547 Make functions non-static.
10548 (Vmac_service_selection) [MAC_OSX]: Likewise.
10549 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10550 (mac_valid_selection_target_p, mac_clear_selection)
10551 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10552 (mac_put_selection_value, mac_selection_has_target_p)
10553 (mac_get_selection_value, mac_get_selection_target_list)
10554 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10555 Move functions to mactoolbox.c.
10556 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10557 Likewise.
10558 (copy_scrap_flavor_data, mac_handle_service_event)
10559 (install_service_handler) [MAC_OSX]: Likewise.
10560 (syms_of_macselect) <Vmac_dnd_known_types>:
10561 Use mac_dnd_default_known_types.
10562
10563 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10564 Move to mactoolbox.c.
10565 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10566 (Fx_selection_owner_p): Add EXFUN.
10567 (install_window_handler, remove_window_handler, XSetWindowBackground):
10568 Remove externs.
10569 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10570 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10571 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10572 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10573 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10574 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10575 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10576 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10577 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10578 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10579 (mac_valid_selection_target_p, mac_clear_selection)
10580 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10581 (mac_put_selection_value, mac_selection_has_target_p)
10582 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10583 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10584 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10585 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10586 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10587 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10588 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10589 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10590 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10591
10592 * mactoolbox.c: New file.
10593
105942008-04-18 Jason Rumney <jasonr@gnu.org>
10595
10596 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10597
105982008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10599
10600 * character.c (Fmultibyte_char_to_unibyte):
10601 Return latin1 chars unchanged.
10602
10603 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10604 relocated if it points to `name'.
10605
106062008-04-17 Kenichi Handa <handa@m17n.org>
10607
10608 * data.c (Faset): Allow setting a multibyte character in an
10609 ASCII-only unibyte string.
10610
10611 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10612
106132008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10614
10615 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10616 done in config.h.
10617
106182008-04-16 Juanma Barranquero <lekktu@gmail.com>
10619
10620 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10621 (Fchar_direction): Add usage in the docstring.
10622
106232008-04-15 Chong Yidong <cyd@stupidchicken.com>
10624
10625 * keyboard.c (read_key_sequence): Remove always-true checks.
10626
106272008-04-14 Jason Rumney <jasonr@gnu.org>
10628
10629 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10630 compatibility struct, for better underline positioning.
10631
106322008-04-13 David Hansen <david.hansen@gmx.net>
10633
10634 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10635 string.
10636
106372008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10638
10639 * m/hp800.h (XUINT, XSET): Remove.
10640
106412008-04-12 Juanma Barranquero <lekktu@gmail.com>
10642
10643 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10644 previous change.
10645
106462008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10647
10648 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10649 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10650
106512008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10652
10653 * keymap.h (map_keymap_canonical): Declare.
10654 * xmenu.c (single_keymap_panes): Use it.
10655
106562008-04-11 Glenn Morris <rgm@gnu.org>
10657
10658 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10659 set the target's value to that of the alias.
10660
106612008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10662
10663 * term.c (set_tty_color_mode): Left over typo.
10664
106652008-04-10 Michael Albinus <michael.albinus@gmx.de>
10666
10667 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10668 only after check for file name handler functions. Signal, when
10669 native functionality is not supported.
10670 (syms_of_fileio): Declare it unconditionally.
10671
106722008-04-10 Jason Rumney <jasonr@gnu.org>
10673
10674 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10675 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10676
10677 * w32.c (logon_network_drive): Also logon to remote drives that
10678 are mapped to drive letters.
10679
106802008-04-10 Glenn Morris <rgm@gnu.org>
10681
10682 * xdisp.c (truncate-partial-width-windows): Doc fix.
10683
106842008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10685
10686 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10687 Move functions to minibuffer.el.
10688 (syms_of_fileio): Don't declare them.
10689
106902008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10691
10692 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10693 (syms_of_minibuf): Remove its initialization.
10694
10695 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10696
106972008-04-09 Juanma Barranquero <lekktu@gmail.com>
10698
10699 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10700
107012008-04-09 Jason Rumney <jasonr@gnu.org>
10702
10703 * makefile.w32-in (distclean): Delete makefile too.
10704 (maintainer-clean): New target.
10705
10706 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10707
10708 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10709 for new font backend and composite cases.
10710
107112008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10712
10713 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10714 Most of the code moved to run_timers.
10715 (do_pending_atimers): Call run_timers.
10716 (run_timers): New function.
10717
10718 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10719 run atimers.
10720
10721 * process.c (wait_reading_process_output): The same as above.
10722
107232008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10724
10725 * minibuf.c (last_exact_completion): Remove variable.
10726 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10727 (complete_and_exit_1, complete_and_exit_2)
10728 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10729 (Fdisplay_completion_list, display_completion_list_1)
10730 (Fminibuffer_completion_help, Fself_insert_and_exit)
10731 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10732 minibuffer.el.
10733 (syms_of_minibuf): Remove corresponding initializations.
10734
10735 * keyboard.c (Qdeactivate_mark): New var.
10736 (command_loop_1): Use it to call `deactivate-mark'.
10737 (syms_of_keyboard): Initialize it.
10738
10739 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10740 to another frame.
10741 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10742 Don't call set_tty_color_mode.
10743 (store_frame_param): Reset previous_frame rather than call
10744 set_tty_color_mode.
10745 * term.c (set_tty_color_mode): Rewrite.
10746 * dispextern.h (set_tty_color_mode): New type.
10747 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10748
107492008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10750
10751 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10752 for generic chars, which do not exist any more in emacs-unicode.
10753
107542008-04-08 Michael Albinus <michael.albinus@gmx.de>
10755
10756 * coding.c (detect_coding_emacs_mule)
10757 (Ffind_operation_coding_system): Fix typo.
10758
107592008-04-08 Jason Rumney <jasonr@gnu.org>
10760
10761 * w32uniscribe.c (SNAME): Extract only symbol name.
10762
10763 * w32font.h (struct w32_metric_cache): New struct.
10764 (w32font_info): Use it.
10765 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10766 (CACHE_BLOCKSIZE): New constants.
10767
10768 * w32font.c (Qja, Qko, Qzh): New symbols.
10769 (syms_of_w32font): Initialise them.
10770 (font_matches_spec): Use them to filter by language.
10771 (recompute_cached_metrics): Remove function.
10772 (compute_metrics, clear_cached_metrics): New functions.
10773 (w32font_encode_char): Use them to manage metric cache.
10774 (w32font_text_extents): Cache metrics for all glyphs on demand.
10775 Delay converting glyph indices to WORD until needed.
10776 (w32font_open_internal): Initialize metric cache to empty.
10777 (registry_to_w32_charset): Charset should always be a symbol.
10778 (fill_in_logfont, list_all_matching_fonts): Family should
10779 always be a symbol.
10780
107812008-04-06 Jason Rumney <jasonr@gnu.org>
10782
10783 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10784 Give up if glyph indices not supported. Use uniscribe obtained
10785 ABC widths for individual metrics. Map glyph clusters back to
10786 characters using fClusterStart flag. Return number of glyphs
10787 produced, not chars processed.
10788 (uniscribe_shape): Map char at FROM to current glyph.
10789
107902008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10791
10792 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10793 Use SetMenuItemHierarchicalMenu.
10794
107952008-04-05 Jason Rumney <jasonr@gnu.org>
10796
10797 * image.c (pbm_load): Allow color values up to 65535.
10798 Throw an error if max_color_idx is outside the supported range.
10799 Report an error when image size is invalid.
10800 Read two bytes at a time when raw images have max_color_idx above 255.
10801
108022008-04-05 Eli Zaretskii <eliz@gnu.org>
10803
10804 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10805 cFileName a file name that includes `?' characters, use the 8+3
10806 alias in cAlternateFileName instead.
10807
108082008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10809
10810 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10811 append "CCL: Quitted" when the CCL program is quitted.
10812 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10813
10814 * ccl.h (struct ccl_program): New member quit_silently.
10815
108162008-04-05 Chong Yidong <cyd@stupidchicken.com>
10817
10818 * search.c (compile_pattern_1): Treat non-nil and non-string of
10819 search-spaces-regexp as nil.
10820
10821 * minibuf.c (Fassoc_string): Tweak docstring.
10822
108232008-04-05 Eli Zaretskii <eliz@gnu.org>
10824
10825 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10826 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10827 2008-03-14 to force inode be positive.
10828
10829 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10830 _S_* ones, since we now use our own sys/stat.h.
10831 (stat, fstat): Don't mangle the inode number.
10832 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10833
108342008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10835
10836 * frame.h (struct frame): Give one more bit to `visible' since we use
10837 values larger than 1 to indicate obscured frames on ttys.
10838
10839 * keymap.c (Qkeymap_canonicalize): New var.
10840 (Fmap_keymap_internal): New fun.
10841 (describe_map): Use keymap-canonicalize.
10842
10843 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10844 (Fundo_boundary): Set them.
10845 (syms_of_undo): Initialize them.
10846 (record_point): Use them instead of last_point_position*.
10847 (last_undo_buffer): Change type.
10848
108492008-04-04 Jason Rumney <jasonr@gnu.org>
10850
10851 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10852 (recompute_cached_metrics): Don't set ascent and descent per char.
10853
10854 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10855 (uniscribe_check_otf): Add GC protection before consing.
10856 Rearrange loop for counting features.
10857
108582008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10859
10860 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10861 buffer with byte-size of source buffer.
10862
108632008-04-03 Chong Yidong <cyd@stupidchicken.com>
10864
10865 * callint.c (Fcall_interactively): Handle temporary region even
10866 when shift-select-mode is off.
10867
108682008-04-03 Jason Rumney <jasonr@gnu.org>
10869
10870 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10871
108722008-04-03 Kenichi Handa <handa@m17n.org>
10873
10874 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10875 (CATEGORY_MASK_UTF_16): Likewise.
10876 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10877 binary file.
10878 (detect_coding): Add null-byte detection for a binary file.
10879 (detect_coding_system): Likewise.
10880
108812008-04-03 Jason Rumney <jasonr@gnu.org>
10882
10883 * w32uniscribe.c: New file.
10884
10885 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10886
10887 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10888
10889 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10890 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10891 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10892 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10893 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10894 (Qphonetic): New symbols.
10895 (syms_of_w32font): Initialize them.
10896 (font_supported_scripts): Use them.
10897 (w32font_list_family): List all charsets.
10898 (w32font_text_extents, recompute_cached_metrics): Fix metric
10899 calculations.
10900 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10901 Give opentype fonts their own format.
10902 (font_matches_spec): New arguments backend and logfont.
10903 Handle :otf spec for uniscribe backend.
10904 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10905 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10906
10907 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10908 font backend.
10909 (globals_of_w32fns): Initialize uniscribe font backend.
10910
10911 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10912 dependencies.
10913 (w32uniscribe.$(O)): New file to build.
10914 (FONT_OBJ): Include w32uniscribe.$(O).
10915 (LIBS): Add uniscribe libraries.
10916
10917 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10918
109192008-04-02 Chong Yidong <cyd@stupidchicken.com>
10920
10921 * callint.c (Vshift_select_mode): New var.
10922 (Finteractive): Document new ^ spec.
10923 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10924 is present.
10925
10926 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10927 (command_loop_1): Avoid running the direct display versions of
10928 forward-char and backward-char if shift-selection may occur.
10929 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10930 shift-translation takes place.
10931
10932 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10933 avoid clobbering by define-minor-mode.
10934
10935 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10936 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10937
10938 * syntax.c (Fforward_word): Add ^ interactive spec.
10939
10940 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10941 (Fscroll_right): Add ^ interactive spec.
10942
109432008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10944
10945 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10946
10947 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10948
10949 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10950
109512008-03-31 Juri Linkov <juri@jurta.org>
10952
10953 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10954
109552008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10956
10957 * gtkutil.c (xg_set_geometry): Fix indentation.
10958 (xg_resize_outer_widget): Remove.
10959 (x_wm_size_hint_off): Fix indentation.
10960 (xg_frame_set_char_size): Call flush_and_sync after
10961 gtk_window_resize.
10962 (x_wm_set_size_hint): Pass NULL as geometry window to
10963 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10964 Add menu bar and tool bar height to base height.
10965 (xg_update_frame_menubar, free_frame_menubar)
10966 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10967 (update_frame_tool_bar, free_frame_tool_bar):
10968 Change xg_resize_outer_widget to xg_frame_set_char_size.
10969
109702008-03-30 Michael Albinus <michael.albinus@gmx.de>
10971
10972 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10973 (Fdbus_call_method): New parameter TIMEOUT.
10974 (dbus-send-signal): Optimize UNGCPRO call.
10975
109762008-03-29 Juri Linkov <juri@jurta.org>
10977
10978 * window.c (Fdisplay_buffer): Move call to
10979 Vsplit_window_preferred_function out of conditions that check
10980 if window is eligible for vertical splitting.
10981 When Vsplit_window_preferred_function is non-nil, call it and use
10982 its non-nil return value as window. Otherwise, continue doing
10983 vertical splitting using Fsplit_window with arg horflag=nil.
10984 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10985 default value from `split-window' to nil.
10986
109872008-03-29 Juri Linkov <juri@jurta.org>
10988
10989 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10990 for interactive code letters 'b' and 'B'.
10991
109922008-03-29 Eli Zaretskii <eliz@gnu.org>
10993
10994 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10995 multibyte string.
10996
109972008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10998
10999 * keyboard.c (pending_funcalls): New var.
11000 (timer_check): Run it.
11001 (syms_of_keyboard): Initialize it.
11002 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11003 (Vdelete_terminal_functions): New vars.
11004 (syms_of_terminal): Initialize them.
11005 (Fdelete_terminal): Run delete-terminal-functions.
11006 * xdisp.c (safe_eval): Rewrite.
11007 (safe_call2): New fun.
11008 * frame.c (Qdelete_frame_functions): New var.
11009 (syms_of_frame): Initialize it.
11010 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11011 * lisp.h (safe_call2, pending_funcalls): Declare.
11012
110132008-03-28 Andreas Schwab <schwab@suse.de>
11014
11015 * indent.c (Fmove_to_column): Move declaration before statements.
11016
110172008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11018
11019 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11020 (struct frame): Use bit fields for boolean vars.
11021
11022 * process.c (server_accept_connection): Simplify naming.
11023 (emacs_get_tty_pgrp): Use SDATA.
11024
11025 * coding.c (decode_coding_object): Fix last change.
11026
110272008-03-27 Jason Rumney <jasonr@gnu.org>
11028
11029 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11030
110312008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11032
11033 * charset.c (Fdefine_charset_internal): Change the way of
11034 registering charsets in Vcharset_order_list.
11035 (syms_of_charset): Make the charset `eight-bit' supplementary.
11036
110372008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11038
11039 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11040 operations, to avoid having the difference between pointers
11041 overflow.
11042
110432008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11044
11045 * indent.c (check_display_width): New fun.
11046 (scan_for_column): Use it.
11047
11048 * data.c (syms_of_data): Mark most-positive-fixnum and
11049 most-negative-fixnum as constants.
11050
11051 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11052
11053 * indent.c (scan_for_column): Extract from current_column_1.
11054 Merge with the same code from Fmove_to_column.
11055 (current_column_1, Fmove_to_column): Use it.
11056
110572008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11058
11059 * keymap.c (map_keymap_internal): New fun.
11060 (map_keymap): Use it.
11061 (Fmap_keymap_internal): New fun.
11062 (Fmap_keymap): Remove left-out test from before make_save_value.
11063
11064 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11065
11066 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11067 Use XCAR/XCDR.
11068
11069 * process.h (struct Lisp_Process): Remove filter_multibyte.
11070 * process.c (QCfilter_multibyte): Remove.
11071 (setup_process_coding_systems): Don't use filter_multibyte.
11072 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11073 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11074 (Fset_process_filter_multibyte): Change the coding-system to
11075 approximate the previous behavior.
11076 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11077 coding-system.
11078
11079 * coding.c (decode_coding_object): When not decoding into a buffer,
11080 obey the coding system's preference of (uni|multi)byte.
11081
110822008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11083
11084 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11085 every char is changed and has a different byte-length.
11086 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11087 Fix int -> EMACS_INT.
11088
110892008-03-23 David Hansen <david.hansen@gmx.net>
11090
11091 * dbusbind.c (xd_read_message): Remove extra copying of message
11092 strings. Check for NULL `interface' or `member'.
11093
110942008-03-22 Eli Zaretskii <eliz@gnu.org>
11095
11096 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11097 cFileName a file name that includes `?' characters, use the 8+3
11098 alias in cAlternateFileName instead.
11099
111002008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11101
11102 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11103
111042008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11105
11106 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11107 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11108 work on current_buffer only instead (that was already the case
11109 for some of the code anyway).
11110 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11111 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11112 (SET_PT, SET_PT_BOTH): Adjust.
11113 * intervals.h (set_point, temp_set_point, set_point_both)
11114 (temp_set_point_both): Remove redundant declarations.
11115
111162008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11117
11118 * fileio.c (Finsert_file_contents):
11119 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11120 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11121 when buffer != current_buffer anyway.
11122
111232008-03-20 Andreas Schwab <schwab@suse.de>
11124
11125 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11126 as default.
11127
111282008-03-19 Jason Rumney <jasonr@gnu.org>
11129
11130 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11131 (syms_of_w32fns): Initialize them.
11132 (HOURGLASS_ID): New constant.
11133 (x_window_to_frame): Don't check hourglass_window.
11134 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11135 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11136 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11137 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11138 Only change the cursor if hourglass is not active.
11139 (Fx_create_frame): Initialize frame's current_cursor.
11140 (hourglass_atimer): Remove.
11141 (hourglass_started): New function.
11142 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11143 (show_hourglass): Adapt to w32, changing argument to frame.
11144
11145 * w32term.h (struct w32_output): Remove hourglass_window.
11146 Add current_cursor.
11147
11148 * eval.c (call_debugger, Fsignal):
11149 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11150 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11151 (Fexecute_extended_command, cancel_hourglass_unwind):
11152 * minibuf.c (read_minibuf):
11153 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11154
111552008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11156
11157 * window.c (run_funs): New fun.
11158 (run_window_configuration_change_hook): Use it to run the buffer-local
11159 and the global part of the hook.
11160
11161 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11162 (unwind_format_mode_line): Restore selected window.
11163 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11164
111652008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11166
11167 * editfns.c (Fchar_equal): Check they are valid characters.
11168
11169 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11170
111712008-03-17 Andreas Schwab <schwab@suse.de>
11172
11173 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11174 against a charset.
11175
11176 * lisp.h (Fbuffer_list): Declare.
11177
111782008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11179
aac0c6e3
MR
11180 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11181 handlebox_widget is != 0.
11182
111832008-03-16 Juri Linkov <juri@jurta.org>
11184
11185 * callint.c (Fcall_interactively): For interactive code letters
11186 'b' and 'B' put the buffer list into the list of default "future"
11187 values of the minibuffer.
11188
111892008-03-16 Andreas Schwab <schwab@suse.de>
11190
11191 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11192 modifiers.
11193
11194 * regex.c (re_match_2_internal): Correct matching of a charset
11195 against latin-1 characters.
11196
111972008-03-16 Kenichi Handa <handa@m17n.org>
11198
11199 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11200 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11201 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11202 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11203 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11204 CHAR_STRING_ADVANCE.
11205 (produce_chars): Fix for the case that the source and the
11206 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11207 instead of CHAR_STRING_ADVANCE.
11208 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11209 STRING_CHAR_ADVANCE.
11210
112112008-03-15 Andreas Schwab <schwab@suse.de>
11212
11213 * regex.c (re_match_2_internal): Correct matching of eight bit
11214 characters in unibyte strings.
11215
112162008-03-15 Martin Rudalics <rudalics@gmx.at>
11217
11218 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11219 at end of range when it coincides with the end of the buffer.
11220
112212008-03-14 Eli Zaretskii <eliz@gnu.org>
11222
11223 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11224
11225 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11226
112272008-03-14 Jason Rumney <jasonr@gnu.org>
11228
11229 * editfns.c (initial_tz): New variable.
11230 (syms_of_editfns): Initialize it.
11231 (Fset_time_zone_rule): Set it when first called.
11232 Use it when TZSTRING is nil.
11233
11234 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11235 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11236 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11237 (globals_of_w32fns): Initialize them.
11238 (compute_tip_xy): Use them to position tooltips.
11239
112402008-03-14 Glenn Morris <rgm@gnu.org>
11241
11242 * emacs.c (main): Revert previous change.
11243 (standard_args): Revert -internal-script back to -scriptload,
11244 and remove the long-option form.
11245
112462008-03-13 Glenn Morris <rgm@gnu.org>
11247
11248 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11249 Remove option -enable-font-backend.
11250
112512008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11252
11253 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11254
112552008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11256
11257 * xterm.c (x_connection_closed): For GTK: If this is the last
11258 terminal just exit without closing the display.
11259
112602008-03-11 Jason Rumney <jasonr@gnu.org>
11261
11262 * w32font.c (w32font_full_name): Use floor to round.
11263
f0131492 112642008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11265
11266 * sound.c (alsa_configure): Declare vol at beginning of block.
11267
11268 * fontset.c (Ffontset_info): Remove extra semicolon.
11269
112702008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11271
11272 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11273 size of resulting string.
11274
112752008-03-10 Jason Rumney <jasonr@gnu.org>
11276
11277 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11278
112792008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11280
11281 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11282 Don't pretend as if characters with display property haven't been
11283 consumed for string-replacing-string case.
11284
112852008-03-08 Kim F. Storm <storm@cua.dk>
11286
11287 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11288 (get_next_display_element, next_element_from_string)
11289 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11290
112912008-03-08 Andreas Schwab <schwab@suse.de>
11292
11293 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11294
112952008-03-06 Jason Rumney <jasonr@gnu.org>
11296
11297 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11298 when charset not specified. Only translate ANSI to unicode when
11299 font_type is truetype.
11300 (w32font_coverage_ok): New function.
11301 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11302
113032008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11304
11305 * lread.c (Fread_char): Resolve modifiers.
11306 (Fread_char_exclusive): Likewise.
11307
11308 * character.c (char_resolve_modifier_mask): New function.
11309 (char_string): Use char_resolve_modifier_mask.
11310 (Fchar_resolve_modifiers): New function.
11311 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11312 function.
11313
113142008-03-04 Jason Rumney <jasonr@gnu.org>
11315
11316 * makefile.w32-in: Always include w32font.c in the build.
11317 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11318
113192008-03-04 Andreas Schwab <schwab@suse.de>
11320
11321 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11322 (versionclean): Likewise.
11323
113242008-03-04 Juanma Barranquero <lekktu@gmail.com>
11325
11326 * .cvsignore: Add oo.
11327
113282008-03-03 Andreas Schwab <schwab@suse.de>
11329
11330 * coding.c (decode_coding_object): Inhibit gap shrinking while
11331 decoding in place.
11332
113332008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11334
11335 * w32term.c: Remove unused include "gnu.h".
11336 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11337
11338 * gnu.h: Rename to ...
11339 * emacs-icon.h: ... this.
11340 * xterm.c: Use emacs-icon.h instead of gnu.h.
11341 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11342
113432008-03-03 Juanma Barranquero <lekktu@gmail.com>
11344
11345 * w32font.c: Include math.h.
11346
113472008-03-03 Jason Rumney <jasonr@gnu.org>
11348
11349 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11350 Compute options separately.
11351 (w32font_open_internal): Set glyph_idx before caching metrics.
11352
11353 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11354 Define if system headers don't.
11355 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11356 (w32font_encode_char): Don't declare here.
11357
11358 * w32font.c (Quniscribe, QCformat): New symbols.
11359 (syms_of_w32font): Define them.
11360 (w32font_has_char): Indicate uncertainty.
11361 (w32font_encode_char): Encode as glyph point. Make static.
11362 (recompute_cached_metrics): New function.
11363 (w32font_open_internal): Use it. Set font to use glyph points
11364 initially. Set format based on type of font.
11365 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11366 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11367 on it. Set format based on information available here.
11368 (add_font_entity_to_list): Identify backend based on opentype_only.
11369
113702008-03-02 Andreas Schwab <schwab@suse.de>
11371
11372 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11373
11374 * coding.c (decode_coding_big5, produce_chars):
11375 Fix typos in last change.
11376
113772008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11378
11379 * gnu.h: New icon.
11380
113812008-03-02 Kenichi Handa <handa@m17n.org>
11382
11383 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11384 `dos', don't decode '\r' if that is the last in the source.
11385 (decode_coding_utf_16, decode_coding_emacs_mule)
11386 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11387 (decode_coding_raw_text, decode_coding_charset): Likewise.
11388 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11389
113902008-03-01 Jason Rumney <jasonr@gnu.org>
11391
11392 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11393
113942008-03-01 Kim F. Storm <storm@cua.dk>
11395
11396 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11397
113982008-03-01 Jason Rumney <jasonr@gnu.org>
11399
11400 * w32font.c (w32font_full_name): New function.
11401 (w32font_open_internal): Use it.
11402
114032008-03-01 Kim F. Storm <storm@cua.dk>
11404
11405 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11406
114072008-03-01 Jason Rumney <jasonr@gnu.org>
11408
11409 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11410
114112008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11412
11413 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11414 xg_frame_resized when the event is for the edit widget.
11415
11416 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11417
11418 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11419 set_char_size.
11420 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11421 operations on widgets here. Just set frame size if needed.
11422 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11423 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11424 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11425 the whole frame.
11426 (xg_create_tool_bar): Move attachment of the tool bar to
11427 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11428 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11429
114302008-03-01 Jason Rumney <jasonr@gnu.org>
11431
11432 * w32fns.c (w32_msg_pump): Disable debug code.
11433
114342008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11435
11436 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11437
114382008-02-29 Chong Yidong <cyd@stupidchicken.com>
11439
11440 * xdisp.c (next_overlay_string): Don't set
11441 overlay_strings_at_end_processed_p if we're currently reading from
11442 a display string.
11443
114442008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11445
11446 * xdisp.c (get_overlay_strings_1): Fix typo.
11447
114482008-02-29 Chong Yidong <cyd@stupidchicken.com>
11449
11450 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11451
114522008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11453
11454 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11455
11456 * xdisp.c (display_mode_element): Cancel the previous change.
11457 (decode_mode_spec): Likewise.
11458 (handle_auto_composed_prop): Don't make composition if it->string
11459 is a string.
11460
114612008-02-27 Kim F. Storm <storm@cua.dk>
11462
11463 * lisp.h (GLYPH): Change type from int to struct with separate char
11464 and face_id members.
11465 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11466 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11467 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11468 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11469 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11470 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11471 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11472 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11473 handle new Lisp glyph code encoding, either an integer or a cons.
11474
11475 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11476 (GLYPH_ALIAS): Delete.
11477 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11478 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11479 (GLYPH_FROM_CHAR): Replace macro by ...
11480 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11481
11482 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11483 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11484 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11485 (GLYPH_INVALID_P): New macro.
11486 (spec_glyph_lookup_face): Update prototype.
11487
11488 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11489 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11490 new glyph code encoding.
11491 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11492 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11493
11494 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11495 Adapt to new glyph type and new glyph code encoding.
11496
11497 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11498
11499 * indent.c (current_column, current_column_1, Fmove_to_column)
11500 (compute_motion): Adapt to new glyph code encoding.
11501
11502 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11503
115042008-02-27 Chong Yidong <cyd@stupidchicken.com>
11505
11506 * process.c (wait_reading_process_output): Check for window
11507 changes caused by timers.
11508 Suggested by Johan Bockgård.
11509
115102008-02-27 Glenn Morris <rgm@gnu.org>
11511
11512 * emacs.c (USAGE1): Add `--disable-font-backend'.
11513
115142008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11515
11516 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11517 is made to the buffer.
11518
115192008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11520
11521 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11522 (face_at_string_position):
11523 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11524 (face_at_string_position):
11525 * xdisp.c (display_string, next_overlay_change):
11526 * buffer.h (overlays_at):
11527 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11528 Update callers.
11529
115302008-02-26 Chong Yidong <cyd@stupidchicken.com>
11531
11532 * editfns.c (Fformat): Doc fix.
11533
115342008-02-26 Juanma Barranquero <lekktu@gmail.com>
11535
11536 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11537 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11538 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11539
115402008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11541
11542 * buffer.c (Fbuffer_swap_text): New function.
11543 (syms_of_buffer): Defsubr it.
11544
115452008-02-25 Chong Yidong <cyd@stupidchicken.com>
11546
11547 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11548
115492008-02-25 Jason Rumney <jasonr@gnu.org>
11550
11551 * w32font.c (w32font_draw): Draw one character at a time when padding.
11552
115532008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11554
11555 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11556 Handle a nil arg. Use run_window_configuration_change_hook.
11557 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11558 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11559 Use run_window_configuration_change_hook.
11560
115612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11562
11563 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11564 1-pixel width.
11565
115662008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11567
11568 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11569 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11570 if the glyph in the font is zero pixel with.
11571
11572 * dispextern.h (struct glyph_string): New member padding_p.
11573
11574 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11575
11576 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11577
11578 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11579
11580 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11581
11582 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11583
115842008-02-25 Jason Rumney <jasonr@gnu.org>
11585
11586 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11587
115882008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11589
11590 Allow fine-grained image-cache flushing.
11591 * dispextern.h (struct image): Add `dependencies' field.
11592 (clear_image_caches): Change arg to Lisp_Object.
11593 * image.c (make_image): Initialize `dependencies' field.
11594 (clear_image_cache): Change arg to allow fine-grained flushing.
11595 Perform the flush even if image-cache-eviction-delay is nil.
11596 (clear_image_caches): Change arg to Lisp_Object.
11597 (Fclear_image_cache): Expand meaning of the argument.
11598 (mark_image): Mark `dependencies' field.
11599 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11600 (lface_hash): Use XHASH rather than XFASTINT.
11601 (face_at_buffer_position): Fix int -> EMACS_INT position.
11602 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11603 (select_frame_for_redisplay): Remove code duplication.
11604 (redisplay_internal): Adapt arg to call to clear_image_caches.
11605
116062008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11607
11608 * s/vms4-0.h:
11609 * s/vms4-2.h:
11610 * s/vms4-4.h:
11611 * s/vms5-5.h: Remove, unused.
11612
11613 * s/irix5-2.h:
11614 * s/irix6-0.h:
11615 * s/riscos5.h:
11616 * s/mach-bsd4-3.h:
11617 * m/mips4.h: Remove files for obsolete systems.
11618
11619 * Makefile.in:
11620 * filelock.c:
11621 * unexmips.c:
11622 * m/hp9000s300.h:
11623 * m/iris4d.h:
11624 * s/aix3-1.h:
11625 * s/hpux.h:
11626 * s/msdos.h:
11627 * s/usg5-0.h:
11628 * s/usg5-2-2.h:
11629 * s/usg5-2.h:
11630 * s/usg5-3.h: Remove references to obsolete variables.
11631
11632 * s/irix5-0.h: Remove, move all the contents ...
11633 * s/irix6-5.h: ... here. Simplify.
11634 * config.in: Regenerate.
11635
116362008-02-24 Jason Rumney <jasonr@gnu.org>
11637
11638 * w32term.c (x_draw_glyph_string_background): Clear the background
11639 manually when cleartype is in use.
11640 (x_draw_glyph_string_foreground): Draw text transparently when
11641 cleartype is in use.
11642
11643 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11644 a font into it unless we have to.
11645
116462008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11647
11648 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11649 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11650
aac0c6e3
MR
116512008-02-18 Jason Rumney <jasonr@gnu.org>
11652
11653 * w32fns.c (Fw32_shell_execute): Encode parameters.
11654
116552008-02-09 Eli Zaretskii <eliz@gnu.org>
11656
11657 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11658
116592008-02-05 Juanma Barranquero <lekktu@gmail.com>
11660
11661 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11662
116632008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11664
11665 * xterm.c (x_set_offset): Don't change the gravity if
11666 CHANGE_GRAVITY is -1.
11667
116682008-02-23 Chong Yidong <cyd@stupidchicken.com>
11669
11670 * fileio.c (auto_save_error_occurred): New var.
11671 (auto_save_error): Set it.
11672 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11673 error occurred.
11674
116752008-02-23 Eli Zaretskii <eliz@gnu.org>
11676
11677 * w32.c (globals_of_w32): Add initializations for
11678 g_b_init_get_sid_sub_authority and
11679 g_b_init_get_sid_sub_authority_count.
11680
116812008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11682
11683 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11684 (font_parse_xlfd): Use them for sanity check.
11685 (Finternal_set_font_style_table): Make sure the table is bijective.
11686
11687 Consolidate the image_cache to the terminal struct.
11688 * termhooks.h (P_): Remove redundant def.
11689 (struct terminal): New field `image_cache'.
11690 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11691 of FRAME_X_IMAGE_CACHE.
11692 * xterm.h (struct x_display_info): Remove image_cache field.
11693 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11694 * w32term.h (struct w32_display_info): Remove image_cache field.
11695 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11696 * macterm.h (struct mac_display_info): Remove image_cache field.
11697 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11698 * xterm.c (x_term_init):
11699 * w32term.c (w32_term_init):
11700 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11701 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11702 Remove declarations.
11703 (clear_image_caches, mark_image_cache): New declarations.
11704 * xfaces.c (clear_face_cache):
11705 * xdisp.c (redisplay_internal): Use clear_image_caches.
11706 * image.c (clear_image_cache): Don't check that a frame is on
11707 a window-system before checking if it shares the same cache.
11708 (clear_image_caches): New function.
11709 (Fclear_image_cache): Use it.
11710 (mark_image): Move from allo.c.
11711 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11712 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11713 (mark_object): Don't call mark_image_cache for frames.
11714 (mark_terminals): Call mark_image_cache.
11715
11716 * lisp.h (Fdelete_terminal): Declare.
11717
11718 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11719 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11720 wrong_type_argument.
11721
117222008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11723
11724 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11725 malayalam.el, and tamil.el. Add sinhala.el.
11726
117272008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11728
11729 * xterm.c (x_connection_closed): Consolidate identical tests.
11730 (x_delete_terminal): Don't crash if called via x_connection_closed.
11731
117322008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11733
11734 * xdisp.c (decode_mode_spec): New arg string.
11735 (display_mode_element): Adjust for the above change.
11736
117372008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11738
11739 * callint.c (Fcall_interactively): Use AREF.
11740
117412008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11742
11743 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11744
117452008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11746
11747 * xfns.c (Fx_show_tip): Set string to " " if empty.
11748
117492008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11750
11751 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11752 with Qt.
11753
117542008-02-17 Kenichi Handa <handa@m17n.org>
11755
11756 * ftfont.c (ftfont_shape): Return Lispy number.
11757
11758 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11759 for GCs.
11760 (Finternal_set_font_selection_order): Call font_update_sort_order
11761 only when enable_font_backend is set.
11762 (realize_x_face): Set face->font_info to that of default face only
11763 when enable_font_backend is set.
11764
11765 * xdisp.c (handle_composition_prop): Set it->c to the fist
11766 character of the composed region.
11767 (fill_composite_glyph_string): Set base_face->font_info to
11768 s->font_info. Get a face for ascii from base_face->ascii_face.
11769 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11770 with a face already decided.
11771 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11772 non-negative.
11773 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11774 call font_prepare_composition unconditionally.
11775
11776 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11777
11778 * xterm.h (struct x_display_info): New member font.
11779
11780 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11781 (x_set_mouse_face_gc, x_new_font): Likewise.
11782 (x_term_init): Setup display_info->font.
11783 (x_delete_terminal): Free display_info->font.
11784
11785 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11786
11787 * ftxfont.c (ftxfont_default_fid): Delete it.
11788 (ftxfont_open): Set xfont->fid to 0.
11789 (ftxfont_end_for_frame): Clear data specific to the frame and the
11790 font-driver.
11791
11792 * xftfont.c (xftfont_default_fid): Delete it.
11793 (xftfont_open): Set xfont->fid to 0.
11794
11795 * fontset.c (FONTSET_OBJLIST): New macro.
11796 (fontset_find_font): Update font-object list of the fontset.
11797 (free_realized_fontset): New function.
11798 (free_face_fontset): Call free_realized_fontset.
11799 (Ffont_info): Call font_close_object only when enable_font_backend
11800 is set.
11801
11802 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11803 [HAVE_NTGUI]: Include w32term.h.
11804 [MAC_OS]: Include macterm.ch.
11805 (font_otf_ValueRecord): Use make_number.
11806 (font_finish_cache): Fix handling of reference count.
11807 (font_clear_cache): Update num_fonts.
11808 (font_open_entity): Update smallest_char_width and
11809 smallest_font_height of the frame.
11810 (font_close_object): Update num_fonts.
11811 (Fclear_font_cache): Fix finding the target cache data.
11812
118132008-02-16 Glenn Morris <rgm@gnu.org>
11814
11815 * fontset.c (Finternal_char_font): Fix compilation warning.
11816
118172008-02-16 Eli Zaretskii <eliz@gnu.org>
11818
11819 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11820 instead of char arrays. Enlarge the size of array passed to
11821 get_token_information.
11822
11823 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11824 warnings.
11825
118262008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11827
11828 * .gdbinit: Don't set `args', it breaks gdb --args.
11829
118302008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11831
11832 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11833 within a narrowed buffer.
11834
118352008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11836
11837 * coding.c (decode_coding_object, encode_coding_object):
11838 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11839
118402008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11841
11842 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11843 hardcoding 1.
11844 (detect_coding_system):
11845 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11846 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11847 * insdel.c (insert_from_gap):
11848 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11849 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11850 (string_to_multibyte):
11851 * character.c (chars_in_text, multibyte_chars_in_text):
11852 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11853
11854 * character.h (FETCH_STRING_CHAR_ADVANCE)
11855 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11856 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11857 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11858
11859 * casefiddle.c (casify_region): Only call after-change and composition
11860 functions on the part of the region that was changed.
11861
11862 * keyboard.c (read_avail_input):
11863 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11864
118652008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11866
11867 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11868 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11869
118702008-02-11 Juanma Barranquero <lekktu@gmail.com>
11871
11872 * w32menu.c (push_submenu_start, push_submenu_end)
11873 (push_left_right_boundary, push_menu_pane, push_menu_item):
11874 * keyboard.c (read_key_sequence): Don't pass args with side effects
11875 to AREF, it fails when compiling with -DENABLE_CHECKING.
11876
118772008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11878
11879 * Makefile.in (${lispsource}international/charprop.el):
11880 Delete this target.
11881
11882 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11883 emacs-unicode-2.
11884
118852008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11886
11887 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11888
118892008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11890
11891 * frame.c (Qnoelisp): New symbol.
11892 (syms_of_frame): Initialize it.
11893 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11894 harmless Elisp code, from a strong `force' from x_connection_closed.
11895 * frame.h (Qnoelisp): Declare.
11896 * xterm.c (x_connection_closed): Pass `noelisp'.
11897
11898 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11899 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11900 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11901 rather than `int' for the type of `type'.
11902
119032008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11904
11905 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11906
11907 * Makefile.in (GNUC): Remove support for gcc-1.x.
11908
119092008-02-10 Richard Stallman <rms@gnu.org>
11910
11911 * lisp.h (ASET): Use AREF, not ASLOT.
11912
119132008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11914
11915 * lisp.h (ASET): Check bounds.
11916
119172008-02-10 Glenn Morris <rgm@gnu.org>
11918
11919 * buffer.c (mode-name): Doc fix.
11920
119212008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11922
11923 * Makefile.in:
11924 * emacs.c:
11925 * gmalloc.c:
11926 * keyboard.c:
11927 * lisp.h:
11928 * m/ibm370aix.h:
11929 * process.c:
11930 * regex.c:
11931 * s/hpux.h:
11932 * sysdep.c:
11933 * sysselect.h:
11934 * systty.h:
11935 * unexec.c:
11936 * w32term.c:
11937 * xsmfns.c:
11938 * xterm.c: Remove code that deals with obsolete variables.
11939
11940 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11941
11942 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11943 nothing else needs it anymore.
11944
119452008-02-09 Eli Zaretskii <eliz@gnu.org>
11946
11947 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11948 instead of unibyte_char_to_multibyte.
11949
119502008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11951
11952 * s/gnu-linux.h: Remove commented out code.
11953
11954 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11955
11956 * Makefile.in: Update what RMS says about using autoconf.
11957 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11958 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11959 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11960 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11961
119622008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11963
11964 * keymap.c (Fkey_description): Move side effect outside of macro call.
11965
11966 * xfaces.c (Finternal_make_lisp_face):
11967 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11968
11969 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11970 (syms_of_fontset): Use ASET.
11971
11972 * fns.c (concat): Move side effect outside of macro call.
11973 (hash_clear): Use ASET.
11974
119752008-02-08 Richard Stallman <rms@gnu.org>
11976
11977 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11978 If FORCE, and frame has a surrogate minibuffer for another frame,
11979 delete the other frame first.
11980
119812008-02-07 Timo Savola <timo.savola@iki.fi>
11982
11983 * xterm.c (x_detect_focus_change): Handle embed client message.
11984 (handle_one_xevent): Ditto.
11985 (handle_one_xevent): If embedded and we get a button press/release,
11986 request focus.
11987 (xembed_set_info, xembed_send_message): New functions.
11988 (x_make_frame_visible): Call xembed_set_info if embedded.
11989 (x_make_frame_invisible): Call xembed_set_info if embedded.
11990 (x_term_init): Initialize Xatom_XEMBED.
11991 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11992 (x_iconify_frame): Ditto.
11993
11994 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11995 (enum xembed_info, enum xembed_message, enum xembed_focus)
11996 (enum xembed_modifier, enum xembed_accelerator): New.
11997 (xembed_set_info, xembed_send_message): Declare.
11998 (FRAME_X_EMBEDDED_P): New.
11999
12000 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12001 gtk_plug_new.
12002
12003 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12004 window ID of a frame.
12005 (x_window): Reparent frame if embedded.
12006 (Fx_create_frame): Don't set border width if embedded.
12007
12008 * emacs.c (USAGE3): Add --parent-id.
12009 (standard_args): Ditto.
12010
120112008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12012
12013 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12014
120152008-02-07 Jim Meyering <meyering@redhat.com>
12016
12017 Use "do...while (0)", not "if (1)...else" in macro definitions.
12018 The latter provokes a warning from gcc about the empty else, when
12019 followed by ";". Also, without that trailing semicolon, it would
12020 silently swallow up any following statement.
12021 * syntax.h (SETUP_SYNTAX_TABLE)
12022 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12023 * buffer.h (DECODE_POSITION): Likewise.
12024 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12025 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12026 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12027 (FETCH_CHAR_ADVANCE): Likewise.
12028 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12029
120302008-02-07 Jim Meyering <meyering@redhat.com>
12031
12032 * lread.c [lint]: Don't include <sys/inode.h>.
12033
120342008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12035
12036 * xselect.c (x_handle_dnd_message):
12037 * xmenu.c (digest_single_submenu, xmenu_show):
12038 * xdisp.c (with_echo_area_buffer_unwind_data)
12039 (format_mode_line_unwind_data, unwind_format_mode_line)
12040 (display_menu_bar):
12041 * eval.c (Ffetch_bytecode):
12042 * doc.c (store_function_docstring):
12043 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12044 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12045 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12046
120472008-02-07 Kenichi Handa <handa@m17n.org>
12048
12049 * ftxfont.c (ftxfont_open): Don't set
12050 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12051
12052 * ftfont.c (ftfont_open): Fix previous change.
12053
120542008-02-06 Jason Rumney <jasonr@gnu.org>
12055
12056 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12057 Use cached metrics for ASCII characters.
12058 (w32font_open_internal): Don't set font's owning_frame.
12059 Cache metrics for ASCII characters.
12060
12061 * w32font.h (struct w32font_info): Add ascii_metrics.
12062 Remove owning_frame.
12063
120642008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12065
12066 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12067 to negative value.
12068
12069 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12070
12071 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12072
12073 * charset.c (syms_of_charset): Set QCtest and Qeq.
12074
120752008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12076
12077 * process.c (Fstart_process):
12078 * callproc.c (Fcall_process): Handle the case where
12079 Funhandled_file_name_directory returns nil.
12080
12081 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12082 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12083 * font.c (check_gstring): Use them and AREF to access the vector before
12084 we know it's really a gstring.
12085 (Ffont_shape_text): Fix typo.
46e722a9 12086 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12087
12088 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12089 Declare.
12090
12091 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12092
120932008-02-05 Jason Rumney <jasonr@gnu.org>
12094
12095 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12096 Set smallest_font_height and smallest_char_width in display info.
12097
120982008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12099
12100 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12101
121022008-02-05 Miles Bader <miles@gnu.org>
12103
12104 * xfaces.c (get_lface_attributes, merge_named_face)
12105 (lookup_named_face, lookup_derived_face, realize_named_face):
12106 Revert 2008-02-01 change by cyd@stupidchicken.com.
12107
121082008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12109
12110 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12111 fallback fonts.
12112 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12113
121142008-02-04 Jason Rumney <jasonr@gnu.org>
12115
12116 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12117 set full_name.
12118 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12119
121202008-02-03 Jason Rumney <jasonr@gnu.org>
12121
12122 * makefile.w32-in (OBJ1): Include font.o here.
12123 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12124
121252008-02-02 Jason Rumney <jasonr@gnu.org>
12126
12127 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12128
121292008-02-01 Jason Rumney <jasonr@gnu.org>
12130
12131 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12132
12133 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12134
121352008-02-01 Andreas Schwab <schwab@suse.de>
12136
12137 * Makefile.in (shortlisp, lisp): Update for rename of
12138 ../lisp/language/myanmar.el.
12139
121402008-02-01 Chong Yidong <cyd@stupidchicken.com>
12141
12142 * xfaces.c (get_lface_attributes): Delete function.
12143 (merge_named_face, lookup_named_face, lookup_derived_face)
12144 (realize_named_face): Call lface_from_face_name directly, and use
12145 the fact that merge_face_vectors does not alter its FROM argument.
12146
121472008-02-01 Jason Rumney <jasonr@gnu.org>
12148
12149 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12150 input in the default locale. Handle non-Unicode multibyte input.
12151
121522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12153
12154 * fontset.c (reorder_font_vector): Exclude nil elements from the
12155 font group. Don't try multiple fonts.
12156 (fontset_font): Adjust for the above change.
12157 (Finternal_char_font): Return nil if the found font doesn't
12158 contain the character ch.
12159
12160 * Makefile.in (lisp, shortlisp): Add cham.el.
12161
121622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12163
12164 * font.h (FONTP): Make it return 1 also for a font-object.
12165
12166 * .gdbinit (xfontset): New function.
12167
12168 * font.c (font_find_for_lface): Check if the character C is
12169 supported or not only for the first font.
12170
12171 * fontset.c (reorder_font_vector): Fix typo.
12172 (fontset_find_font): Don't add a font-spec specifying a script.
12173 Use 0 (not Qt) for the indication of empty font-group. Change the
12174 format of RFONT-DEF. Return Qt if no font in the font-group
12175 support the character.
12176 (fontset_font): Adjust for the above change. If no font was
12177 found the character, remember that.
12178 (face_for_char): Adjust for the change of RFONT-DEF.
12179 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12180 no font for the target.
12181 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12182
121832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12184
12185 * font.c (font_load_for_face): Handle the case that the font in
12186 face->lface is a string.
12187
121882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12189
12190 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12191
121922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12193
12194 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12195 Fix previous change. If the frame is not on a window system,
12196 signal an error.
12197
121982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12199
12200 * coding.c (decode_coding_object, encode_coding_object): Adjust
12201 marker positions after conversion.
12202
12203 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12204
122052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12206
12207 * font.c (font_find_for_lface): Fix the handling of the return
12208 value of font_has_char.
12209 (Ffont_shape_text): Fix previous change.
12210
12211 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12212 (fontset_ref_and_range): Delete it.
12213 (fontset_find_font): Call char_table_ref_and_range instead of
12214 FONTSET_REF_AND_RANGE.
12215 (make_fontset): Don't setup font groups of Latin here.
12216 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12217 (new_fontset_from_font): Make the specified font the default for
12218 all Latin characters.
12219
122202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12221
12222 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12223 is on a window system before accessing the fontset of the frame.
12224
122252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12226
12227 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12228
12229 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12230 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12231
12232 * font.c (Ffont_shape_text): If the font driver doesn't have a
12233 shaper function, make zero-width glyphs to have at least one-pixel
12234 width. Fix setting of `to' field of glyphs.
12235
122362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12237
12238 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12239 glyphs.
12240
12241 * font.h (struct font_driver): Improve docstring of member `shape'.
12242
122432008-02-01 Kenichi Handa <handa@m17n.org>
12244
12245 * composite.c (syms_of_composite): Fix docstring of
12246 auto-composition-function.
12247
12248 * font.h (LGLYPH_SIZE): New macro.
12249
12250 * font.c (Ffont_fill_gstring): Stop filling when a character not
12251 supported by the font is found.
12252 (Ffont_shape_text): When a shape callback function returns nil,
12253 try at most two more times with larger gstring.
12254 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12255
12256 * xdisp.c (handle_auto_composed_prop): Change the argument to
12257 auto-composition-function.
12258
12259 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12260 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12261 Lispy glyph and store it in the lgstring.
12262
12263 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12264
12265 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12266
122672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12268
12269 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12270
12271 * fontset.c (Vfont_encoding_charset_alist): New variable.
12272 (syms_of_fontset): DEFVAR it.
12273 (reorder_font_vector, fontset_find_font): Optimize for the case of
12274 no need of reordering.
12275 (face_for_char): Map the charset property by
12276 Vfont_encoding_charset_alist.
12277
122782008-02-01 Jason Rumney <jasonr@gnu.org>
12279
12280 * w32font.c (logfonts_match): Don't check adstyle here.
12281 (font_matches_spec): Check here against physical font instead.
12282 (add_font_entity_to_list): Avoid some substitutions.
12283
12284 * font.c (font_parse_fcname): Default weight and slant to normal.
12285 (font_score): Prefer normal fonts if weight or slant unspecified.
12286 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12287 match freetype scores.
12288
122892008-02-01 Jason Rumney <jasonr@gnu.org>
12290
12291 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12292 font, as it may have been deleted.
12293 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12294 most common hyphenless variation.
12295 (logfonts_match): Check generic family.
12296 (font_matches_spec): Don't check generic family here.
12297 (fill_in_logfont): Set generic family based on adstyle.
12298
12299 * w32font.h (w32font_get_cache): Update declaration.
12300
123012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12302
12303 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12304
12305 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12306 If none of the new drivers are available, call font_update_drivers
12307 with the old drivers.
12308
12309 * w32font.c (w32font_get_cache): Adjust the argument type.
12310
12311 * xfont.c (xfont_get_cache): Adjust the argument type.
12312
12313 * font.h (struct font_driver): Change argument type of get_cache.
12314
12315 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12316
12317 * font.c (Ffont_get): Fix arguments to Fassoc.
12318 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12319 (font_clear_cache): New function.
12320 (font_list_entities, font_matching_entity): Use font_get_cache.
12321 (font_update_drivers): Call font_clear_cache when finishing a driver.
12322
12323 * fontset.c (fontset_find_font): Fix previous change.
12324
123252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12326
12327 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12328 dpyinfo->font_table.
12329 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12330 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12331
12332 * font.c (font_at): Handle the case that the arg C is negative.
12333 Handle the unibyte case.
12334 (Ffont_at): Call font_at with the arg C -1.
12335
12336 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12337 the position here, and call font_at with the arg C -1.
12338 Don't check the range of the existing composition at the point.
12339
123402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12341
12342 * fontset.c (fontset_add): New args charset_id and family.
12343 Change caller.
12344 (load_font_get_repertory, fontset_find_font): Assume that
12345 font_spec is always a font-spec object.
12346 (Fset_fontset_font): Always store a font-spec object in a fontset.
12347
12348 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12349 instead of get_property_and_range.
12350
123512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12352
12353 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12354 (xftfont_open): Don't keep locking face.
12355 (xftfont_close): Don't unlock face.
12356 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12357
12358 * fontset.c (fontset_find_font): Don't prefer a font of
12359 supplementary charset.
12360
123612008-02-01 Kenichi Handa <handa@m17n.org>
12362
12363 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12364 script, langsys_tag to langsys, new member script.
12365 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12366 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12367 listing to the script specified in that property. Fix arg to
12368 OTF_check_features.
12369
123702008-02-01 Jason Rumney <jasonr@gnu.org>
12371
12372 * w32font.h: New file.
12373
12374 * w32font.c: Include it.
12375 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12376 (w32font_open): Set owning_frame.
12377 (w32font_text_extents): Use owning_frame.
12378 (struct font_callback_data): Add opentype_only field.
12379 (add_font_entity_to_list): Use it to filter fonts.
12380 Don't check against full name.
12381 (w32font_list_internal): New function.
12382 (w32font_list): Use it.
12383 (w32font_match_internal): New function.
12384 (w32font_match): Use it.
12385 (w32font_open_internal): New function.
12386 (w32font_open): Use it.
12387 (w32font_get_cache, w32font_close, w32font_has_char)
12388 (w32font_encode_char, w32font_text_extents, w32font_draw):
12389 Make non-static.
12390
12391 * makefile.w32-in (w32font.o): Depend on w32font.h.
12392
123932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12394
12395 * charset.c (Fdefine_charset_internal): Record a supplementary
12396 charset at the tail of Vcharset_order_list.
12397
12398 * font.c (Ffont_shape_text): Fix the return value.
12399
12400 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12401
12402 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12403
124042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12405
12406 * ftfont.c (struct OpenTypeSpec): New struct.
12407 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12408 (ftfont_get_open_type_spec): New function.
12409 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12410
12411 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12412
124132008-02-01 Jason Rumney <jasonr@gnu.org>
12414
12415 * w32font.c (add_font_entity_to_list): Compare only the beginning
12416 of full name.
12417
124182008-02-01 Kenichi Handa <handa@m17n.org>
12419
12420 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12421 Never return HANDLED_RECOMPUTE_PROPS.
12422
124232008-02-01 Kenichi Handa <handa@m17n.org>
12424
12425 * font.c (font_gstring_produce): Delete it.
12426
12427 * composite.h (COMPOSITION_METHOD):
12428 Handle COMPOSITION_WITH_GLYPH_STRING.
12429
124302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12431
12432 * xfont.c (Qx): Delete.
12433 (syms_of_xfont): Don't initialize Qx.
12434
12435 * composite.h (enum composition_method):
12436 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12437
124382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12439
12440 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12441 (choose_face_font): Accept new form of font-spec.
12442
12443 * frame.h (font_driver_list): Declare it unconditionally.
12444 (struct frame): Define members font_driver_list and font_data_list
12445 unconditionally.
12446
12447 * fontset.c: Include "font.h" unconditionally.
12448 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12449 (Fset_fontset_font): Accept a font-spec object.
12450
12451 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12452 PIXEL_SIZE part a wild card.
12453
12454 * dispextern.h (struct glyph_string): Define members clip and
12455 num_clips unconditionally.
12456 (struct face): Define members font_info and extra unconditionally.
12457
12458 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12459 ftfont_info only when HAVE_LIBOTF is defined.
12460
124612008-02-01 Andreas Schwab <schwab@suse.de>
12462
12463 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12464 and end.
12465
124662008-02-01 Jason Rumney <jasonr@gnu.org>
12467
12468 * w32font.c (w32font_driver): Add new fields.
12469
124702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12471
12472 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12473 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12474 (LIBES): Add @M17N_FLT_CFLAGS@.
12475
12476 * composite.c (compose_text): Don't treat the new style
12477 composition specially.
12478
12479 * emacs.c (main): Call syms_of_font unconditionally.
12480
12481 * font.h (FONT_ENTITY_NOT_LOADABLE)
12482 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12483 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12484 (struct font_driver): New member shape.
12485 (font_registry_charsets): Extern it.
12486 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12487 (font_otf_capability, font_drive_otf): Delete their externs.
12488
12489 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12490 (font_charset_alist, font_registry_charsets): Move from xfont.c
12491 and rename.
12492 (font_prop_validate_otf): New function.
12493 (font_property_table): Register it for QCotf.
12494 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12495 (font_drive_otf): Delete.
12496 (font_prepare_composition): New arg F. Adjust for the change of
12497 lispy gstring.
12498 (font_find_for_lface): New arg C.
12499 (font_load_for_face): Adjust for the change of font_find_for_lface.
12500 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12501 lispy gstring.
12502 (Ffont_shape_text): New function.
12503 (Fopen_font): If the font size is not given, use 12-pixel.
12504 (Ffont_at): New arg STRING.
12505 (syms_of_font): Initalize font_charset_alist.
12506 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12507 conditionally.
12508
12509 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12510 fonts of the same font-spec. Change the format of RFONT-DEF.
12511 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12512 Adjust for the change of RFONT-DEF.
12513 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12514
12515 * ftfont.h: New file.
12516
12517 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12518 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12519 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12520 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12521 font_otf_capability and font_drive_otf, set ftfont_shape.
12522 (ftfont_list): Adjust for the change of :otf property value.
12523 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12524 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12525 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12526 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12527 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12528 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12529
12530 * w32term.c (x_draw_composite_glyph_string_foreground):
12531 Adjust for the change of lispy gstring.
12532
12533 * xdisp.c (handle_composition_prop): Adjust for the change of
12534 lispy gstring. Call a function for auto-composition with the
12535 third arg it->window.
12536 (fill_composite_glyph_string): Adjust for the change of lispy string.
12537 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12538
12539 * xfaces.c (set_font_frame_param): Adjust for the change of
12540 font_find_for_lface.
12541
12542 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12543 (xfont_registry_charsets): Likewise. Change caller.
12544 (syms_of_xfont): Don't handle x_font_charset_alist.
12545
12546 * xftfont.c: Include "ftfont.h".
12547 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12548 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12549 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12550 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12551 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12552 Set xftfont_driver.shape to xftfont_shape.
12553
12554 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12555 the change of lispy gstring.
12556
125572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12558
12559 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12560
125612008-02-01 Jason Rumney <jasonr@gnu.org>
12562
12563 * w32font.c (w32font_draw): Fill background manually.
12564
125652008-02-01 Jason Rumney <jasonr@gnu.org>
12566
12567 * font.c (Qfontp): Remove unused symbol.
12568 (QCantialias): New symbol.
12569 (syms_of_font): Define it.
12570 (font_property_table): Set a validator for QCantialias.
12571
12572 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12573 Define if not already.
12574 (QCfamily): Share with xfaces.c.
12575 (Qstandard, Qsubpixel, Qnatural): New symbols.
12576 (syms_of_w32font): Define them. Don't define QCfamily here.
12577 (w32_antialias_type, lispy_antialias_type): New functions.
12578 (w32_enumfont_pattern_entity): New arg requested_font.
12579 Set antialias parameter if non-default was requested.
12580 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12581
125822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12583
12584 * lread.c (read1): Undo the previous change.
12585
125862008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12587
12588 * frame.c (Fdelete_frame): Call font_update_drivers only when
12589 USE_FONT_BACKEND is defined.
12590
125912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12592
12593 * font.h (struct font_bitmap): New member bits_per_pixel.
12594 (struct font_driver): New members start_for_frame and end_for_frame.
12595 (struct font_data_list): New struct.
12596 (font_put_frame_data, font_get_frame_data): Extern them.
12597
12598 * frame.h (struct frame): New member font_data_list.
12599
12600 * font.c (font_update_drivers): Call driver->start_for_frame and
12601 driver->end_for_frame at proper timings.
12602 (font_put_frame_data, font_get_frame_data): New functions.
12603 (Ffont_spec): Add usage in the docstring.
12604
12605 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12606 (Fdelete_frame): Call font_update_drivers.
12607
12608 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12609 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12610 (xftfont_get_xft_draw): New function.
12611 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12612 (xftfont_end_for_frame): New function.
12613 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12614
12615 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12616 Change argument. Cache GCs in the per-frame data.
12617 (struct ftxfont_frame_data): New struct.
12618 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12619 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12620 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12621 (ftxfont_end_for_frame): New function.
12622 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12623
12624 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12625
126262008-02-01 Kenichi Handa <handa@m17n.org>
12627
12628 * xselect.c (Vselection_coding_system)
12629 (Vnext_selection_coding_system): Delete them.
12630 (syms_of_xselect): Don't declare selection-coding-system and
12631 next-selection-coding-system. They are declared in select.el.
12632
126332008-02-01 Jason Rumney <jasonr@gnu.org>
12634
12635 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12636
12637 * w32fns.c: Include imm.h.
12638 (get_composition_string_fn, get_ime_context_fn): New optional
12639 system functions.
12640 (globals_of_w32fns): Load them from imm32.dll.
12641 (ignore_ime_char): New flag.
12642 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12643 WM_IME_ENDCOMPOSITION messages.
12644
12645 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12646 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12647
126482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12649
12650 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12651 (READCHAR_REPORT_MULTIBYTE): New macro.
12652 (readchar): New 2nd arg MULTIBYTE.
12653 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12654 Make symbol's name multibyte according to the multibyteness of the
12655 source.
12656
126572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12658
12659 * xfaces.c (face_for_overlay_string): Call lookup_face with
12660 correct arguments (fix of synching with the trunk).
12661
126622008-02-01 Kenichi Handa <handa@m17n.org>
12663
12664 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12665 (font_prop_validate_non_neg, font_prop_validate_spacing):
12666 Delete argument prop_index.
12667 (font_property_table): Change arguments to validater. Change Callers.
12668 (font_lispy_object): Delete.
12669 (font_at): Use font_find_object instead fo font_lispy_object.
12670
126712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12672
12673 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12674 and file names.
12675
126762008-02-01 Jason Rumney <jasonr@gnu.org>
12677
12678 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12679 (font_matches_spec): Remove debug output.
12680 (add_font_entity_to_list): Avoid using substituted fonts.
12681
126822008-02-01 Jason Rumney <jasonr@gnu.org>
12683
12684 * doc.c (Fsnarf_documentation):
12685 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12686
126872008-02-01 Miles Bader <miles@gnu.org>
12688
12689 * dispextern.h (struct glyph_row): Only define "clip" field if
12690 HAVE_WINDOW_SYSTEM is defined.
12691
126922008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12693
12694 Fix up multi-tty merge.
12695
12696 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12697 and indentation.
12698
12699 * xfaces.c (free_realized_face, clear_face_gcs):
12700 Include font_done_for_face in the input_blocked section, just in case.
12701
12702 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12703 (get_char_face_and_encoding): Undo last change and remove the *other*
12704 duplicate definition (i.e. keep the one that's better scoped and that
12705 includes code for the font-backend).
12706
12707 * terminal.c (create_terminal): Default keyboard_coding to
12708 `no-conversion' and terminal_coding to `undecided'.
12709
12710 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12711
12712 * fontset.c (free_realized_fontsets): Check that the table entry does
12713 contain a fontset before trying to compare it to `base'.
12714
12715 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12716 syms_of_charset, and syms_of_coding earlier because init_window_once
12717 now needs Vcoding_system_hash_table to be setup.
12718
12719 * coding.h (default_buffer_file_coding): Remove.
12720
12721 * coding.c (default_buffer_file_coding): Remove.
12722 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12723 than ->symbol, and use the terminal-local coding system.
12724 (syms_of_coding): Don't setup the coding-systems that are not
12725 terminal-local.
12726 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12727
12728 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12729 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12730
12731 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12732 in chartab.c and were re-added here by mistake.
12733 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12734
12735 * doc.c (Fsnarf_documentation):
12736 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12737 src to etc.
12738
12739 * ChangeLog.10: Add mistakenly removed entry.
12740
127412008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12742
12743 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12744
127452008-02-01 Miles Bader <miles@gnu.org>
12746
12747 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12748 Add extra args to FACE_FOR_CHAR.
12749
127502008-02-01 Kenichi Handa <handa@m17n.org>
12751
12752 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12753 in sequence.
12754
12755 * chartab.c (map_sub_char_table, map_char_table): If the range
12756 contains just one character, call the function with that character
12757 even if the depth is not 3.
12758
127592008-02-01 Jason Rumney <jasonr@gnu.org>
12760
12761 * w32font.c (w32font_text_extents): Calculate metrics for the
12762 whole string.
12763
127642008-02-01 Jason Rumney <jasonr@gnu.org>
12765
12766 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12767
127682008-02-01 Jason Rumney <jasonr@gnu.org>
12769
12770 * w32term.c (x_set_glyph_string_clipping): Use
12771 get_glyph_string_clip_rects.
12772 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12773 Adjust for the change of struct glyph_string.
12774
12775 * w32font.c (w32font_draw): Do clipping here.
12776
127772008-02-01 Kenichi Handa <handa@m17n.org>
12778
12779 * xftfont.c (xftfont_draw): Adjust for the change of struct
12780 glyph_string.
12781
12782 * xterm.c (x_set_glyph_string_clipping): Use
12783 get_glyph_string_clip_rects.
12784 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12785 Adjust for the change of struct glyph_string.
12786
12787 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12788 the resulting clip(s}.
12789 (expose_overlaps): Add arg r. Change callers. Set it to
12790 row->clip temporarily.
12791 (expose_window): Redraw rows overlapping the exposed area.
12792
12793 * dispextern.h (struct glyph_row): New member clip.
12794 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12795 clip_height, new member clip, and num_clips.
12796
127972008-02-01 Kenichi Handa <handa@m17n.org>
12798
12799 * data.c (Fchar_or_string_p): Fix docstring.
12800
128012008-02-01 Kenichi Handa <handa@m17n.org>
12802
12803 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12804 create a temporary XftDraw object.
12805
128062008-02-01 Kenichi Handa <handa@m17n.org>
12807
12808 * font.c (Ffontp): Fix docstring.
12809
12810 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12811 strong evidence of ISO-2022.
12812
128132008-02-01 Kenichi Handa <handa@m17n.org>
12814
12815 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12816 SYNTAX_ENTRY_FOLLOW_PARENT.
12817
128182008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12819
12820 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12821 its type.
12822 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12823 Update to the new type of weak_hash_tables and next_weak.
12824
12825 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12826 a plain C pointer to Lisp_Hash_Table.
12827
12828 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12829 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12830 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12831 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12832 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12833 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12834 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12835 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12836 (GC_EQ): Remove since they've been identical to their non-GC_
12837 alter-egos ever since the markbit was eradicated.
12838
12839 * alloc.c:
12840 * buffer.c:
12841 * buffer.h:
12842 * data.c:
12843 * fileio.c:
12844 * filelock.c:
12845 * fns.c:
12846 * frame.h:
12847 * lisp.h:
12848 * macterm.c:
12849 * print.c:
12850 * process.c:
12851 * w32fns.c:
12852 * w32menu.c:
12853 * w32term.c:
12854 * xfns.c:
12855 * xmenu.c:
12856 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12857
128582008-02-01 Kenichi Handa <handa@m17n.org>
12859
12860 * chartab.c (map_sub_char_table): Make it work for the top-level
12861 char-table. Fix handling of parent char-table.
12862 (map_char_table): Adjust for the above change.
12863
128642008-02-01 Jason Rumney <jasonr@gnu.org>
12865
12866 * w32font.c (Qgdi): Rename from Qw32.
12867
128682008-02-01 Jason Rumney <jasonr@gnu.org>
12869
12870 * w32bdf.c (get_quoted_string): Make function static.
12871
128722008-02-01 Kenichi Handa <handa@m17n.org>
12873
12874 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12875 bigger ascent and descent than those of the font, use them as
12876 font's ascent and descent.
12877
128782008-02-01 Kenichi Handa <handa@m17n.org>
12879
12880 * Makefile.in (${lispsource}international/charprop.el): Move this
12881 target within "#ifdef HAVE_UNIDATA" and "#endif".
12882
128832008-02-01 Kenichi Handa <handa@m17n.org>
12884
12885 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12886 (shortlisp): Add ../lisp/language/tai-viet.el.
12887
128882008-02-01 Ulrich Mueller <ulm@gentoo.org>
12889
12890 * Makefile.in (${lispsource}international/charprop.el): Depend on
12891 temacs${EXEEXT}.
12892
128932008-02-01 Jason Rumney <jasonr@gnu.org>
12894
12895 * w32font.c (w32font_close): Delete the GDI font object.
12896
12897 * w32menu.c: Include character.h.
12898
12899 * w32proc.c: Likewise.
12900
12901 * w32select.c: Likewise.
12902
12903 * makefile.w32-in (w32proc.o): Depend on character.h.
12904
129052008-02-01 Jason Rumney <jasonr@gnu.org>
12906
12907 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12908
12909 * w32menu.c (syms_of_w32menu): Likewise.
12910
12911 * w32proc.c (syms_of_ntproc): Likewise.
12912
12913 * w32select.c (syms_of_w32select): Likewise.
12914
12915 * w32term.c (syms_of_w32term): Likewise.
12916
129172008-02-01 Jason Rumney <jasonr@gnu.org>
12918
12919 * w32font.c (w32font_draw): Delete brush after using it.
12920
129212008-02-01 Jason Rumney <jasonr@gnu.org>
12922
12923 * w32font.c (w32font_open): Don't set font_idx.
12924 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12925 to font settings.
12926 (w32font_draw): Fill background explicitly.
12927
129282008-02-01 Jason Rumney <jasonr@gnu.org>
12929
12930 * w32term.c (w32_initialize): Don't call w32font_initialize.
12931
12932 * w32font.c (w32font_info): Remove subranges.
12933 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12934 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12935 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12936 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12937 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12938 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12939 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12940 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12941 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12942 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12943 New symbols.
12944 (font_callback_data): New struct.
12945 (w32font_list, w32font_match): Use it.
12946 (w32font_open): Don't populate subranges.
12947 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12948 (w32font_encode_char): Always return unicode code-point as-is.
12949 (w32font_text_extents): Supply a transformation matrix to
12950 GetGlyphOutline. Never look up by glyph index. Avoid looping
12951 twice. Use unicode version of GetTexExtentPoint32 instead of
12952 glyph index version.
12953 (set_fonts_frame): Remove.
12954 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12955 set frame parameter. Use backward compatible fake foundries.
12956 Save generic family in extra slot under QCfamily. Make width slot
12957 constant. Save QCspacing value. Save list of scripts instead of
12958 binary subranges.
12959 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12960 (add_font_entity_to_list): Use font_callback_data struct. Filter
12961 unwanted fonts.
12962 (add_one_font_entity_to_list): Use font_callback_data struct.
12963 (w32_registry): Default to iso10646_1.
12964 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12965 string font registries. Don't fill in font name if it is a generic
12966 family name, fill family instead. Use spacing, family and script
12967 extra info to fill pitch, family and charset fields.
12968 (list_all_matching_fonts): Use font_callback_data struct.
12969 (unicode_range_for_char): Remove.
12970 (font_supported_scripts): New function.
12971 (w32font_initialize): Remove.
12972 (syms_of_w32font): Update which symbols are defined.
12973
129742008-02-01 Jason Rumney <jasonr@gnu.org>
12975
12976 * font.c (font_pixel_size): Reverse assq_no_quit args.
12977
12978 * w32term.h (FONT_WIDTH): Report max width, not average.
12979 (FONT_MAX_WIDTH): Remove.
12980 (FONT_AVG_WIDTH): New macro.
12981
12982 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12983 redefinition of FONT_WIDTH.
12984
12985 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12986 (w32_cache_char_metrics): Use FONT_WIDTH.
12987
12988 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12989
129902008-02-01 Jason Rumney <jasonr@gnu.org>
12991
12992 * w32font.c (w32font_open): Make lfHeight negative.
12993
12994 * w32fns.c (x_default_font_parameter): Use new style font name.
12995 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12996
129972008-02-01 Jason Rumney <jasonr@gnu.org>
12998
12999 * w32font.c (QCsubranges): New symbol.
13000 (w32font_open, w32font_has_char): Get subranges from subproperty
13001 of extra.
13002 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13003 (syms_of_w32font): Define :subranges symbol.
13004
13005 * font.c (font_put_extra): Expose externally.
13006
13007 * font.h (font_put_extra): Move declaration from font.c.
13008
13009 * font.c (Ffont_get): Use font driver to determine otf capability.
13010 (adjust_anchor): Check if driver defines anchor_point before using.
13011
13012 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13013 (w32font_draw): Use options.
13014 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13015 Fix detection of truetype fonts.
13016 (registry_to_w32_charset): Handle charsets other than iso8859-1
13017 expressed as lisp symbols.
13018 (w32_registry): Express charset as lisp symbol.
13019 (fill_in_logfont): Reverse pixel and point height logic.
13020 Don't set width here. Set quality to default.
13021
13022 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13023 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13024
13025 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13026 Remove redundant loop and allocation.
13027
13028 * makefile.w32-in (font.o, w32font.o): New objects.
13029 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13030 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13031
13032 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13033 STORE_XCHARB a valid l-value.
13034
13035 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13036 calculations for non-Truetype fonts.
13037 (x_draw_glyph_string): Sync with xterm.c.
13038 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13039 Remove redundant code.
13040 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13041
13042 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13043 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13044
13045 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13046 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13047
13048 * w32font.c: New file for w32 font backend.
13049
130502008-02-01 Kenichi Handa <handa@m17n.org>
13051
13052 * term.c: Don't include "buffer.h" twice.
13053
130542008-02-01 Kenichi Handa <handa@m17n.org>
13055
13056 * character.c (Funibyte_string): New function.
13057 (syms_of_character): Defsubr it.
13058
130592008-02-01 Jason Rumney <jasonr@gnu.org>
13060
13061 * w32term.c [USE_FONT_BACKEND]:
13062 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13063 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13064 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13065 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13066 (x_free_frame_resources): Sync with xterm.c.
13067
130682008-02-01 Andreas Schwab <schwab@suse.de>
13069
13070 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13071 char-table size.
13072
130732008-02-01 Kenichi Handa <handa@m17n.org>
13074
13075 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13076
130772008-02-01 Kenichi Handa <handa@m17n.org>
13078
13079 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13080 font_otf_gpos, add font_drive_otf.
13081
13082 * fontset.c (fontset_find_font): Pay attention to font size
13083 specified for a font.
13084 (reorder_font_vector): Check contents of font_def.
13085
13086 * font.c (struct otf_list): Delete it.
13087 (otf_list): Make it a lisp variable.
13088 (otf_open): Use lispy otf_list.
13089 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13090 (check_otf_features): New function.
13091 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13092 New functions.
13093 (font_drive_otf): New function merging font_otf_gsub and
13094 font_otf_gpos.
13095 (font_open_for_lface): New arg spec. Change argument order.
13096 (font_load_for_face): Adjust for the change of font_open_for_lface.
13097 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13098 Ffont_otf_gpos.
13099 (syms_of_font): Staticpro otf_list. Delete defsubr of
13100 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13101
13102 * xfaces.c (set_font_frame_param): Adjust for the change of
13103 font_open_for_lface.
13104
13105 * font.h (font_open_for_lface): Adjust prototype.
13106 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13107 member otf_drive.
13108 (font_otf_gsub, font_otf_gpos): Delete externs.
13109 (font_drive_otf): Extern it.
13110
131112008-02-01 Kenichi Handa <handa@m17n.org>
13112
13113 * font.c (font_at): If the window W is not on a window system,
13114 return Qnil.
13115
13116 * coding.c (produce_chars, encode_coding): Don't call
13117 insert_from_gap if no characters to produce.
13118
131192008-02-01 Kenichi Handa <handa@m17n.org>
13120
13121 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13122 Fclear_face_cache.
13123
13124 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13125
131262008-02-01 Miles Bader <miles@gnu.org>
13127
13128 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13129 Parse "--disable-font-backend" option.
13130 (standard_args): Add "--disable-font-backend" option.
13131
131322008-02-01 Kenichi Handa <handa@m17n.org>
13133
13134 * fontset.c (fontset_find_font): New function.
13135 (fontset_font): Use fontset_find_font.
13136 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13137 Register the specified font for all Latin characters.
13138 (new_fontset_from_font): Register the specified font for all Latin
13139 characters.
13140 (dump_fontset): For a realized fontset, include the base fontset
13141 name in the returned vector.
13142
131432008-02-01 Kenichi Handa <handa@m17n.org>
13144
13145 * character.h (CHAR_STRING): Cast C to unsigned on calling
13146 char_string.
13147
13148 * character.c (char_string): Type of arg C changed to unsigned.
13149 Signal an error if C is an invalid character code.
13150
13151 * editfns.c (general_insert_function, Fchar_to_string):
13152 Use CHARACTERP, not INTEGERP.
13153
131542008-02-01 Kenichi Handa <handa@m17n.org>
13155
13156 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13157 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13158
13159 * regex.c (analyse_first): Fix for multibyte characters in "case
13160 charset:" and "case categoryspec:".
13161
131622008-02-01 Andreas Schwab <schwab@suse.de>
13163
13164 * Makefile.in (LIBES): Move standard libraries to the end.
13165
131662008-02-01 Kenichi Handa <handa@m17n.org>
13167
13168 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13169 nonzero, don't shrink the buffer nextb.
13170
13171 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13172
13173 * coding.c (coding_alloc_by_making_gap): New arg offset.
13174 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13175 offset.
13176 (decode_coding_iso_2022): Update coding->safe_charsets.
13177 (decode_coding_gap): Temporarily set
13178 current_buffer->text->inhibit_shrinking to 1.
13179
131802008-02-01 Kenichi Handa <handa@m17n.org>
13181
13182 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13183 indexing into elements of s->cmp and s->char2b.
13184
131852008-02-01 Juanma Barranquero <lekktu@gmail.com>
13186
13187 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13188
131892008-02-01 Kenichi Handa <handa@m17n.org>
13190
13191 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13192 target_multibyte instead of multibyte.
13193 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13194 (bcmp_translate): Change the argument name from multibyte to
13195 target_multibyte.
13196
131972008-02-01 Kenichi Handa <handa@m17n.org>
13198
13199 These changes are to compile a regexp into a pattern that can be
13200 used both for multibyte and unibyte targets.
13201
13202 * Makefile.in (search.o): Depend on charset.h.
13203
13204 * character.c (multibyte_char_to_unibyte_safe): New function.
13205
13206 * search.c: Include "charset.h".
13207 (compile_pattern_1): Delete argument multibyte. Don't set
13208 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13209 (compile_pattern): Don't compare cp->buf.target_multibyte.
13210 Compare cp->buf.charset_unibyte.
13211 (compile_pattern): Set cp->buf.target_multibyte.
13212
13213 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13214
13215 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13216
13217 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13218 multibyte. Change callers.
13219 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13220 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13221 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13222 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13223 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13224 (regex_compile): Make the compiled pattern usable both for
13225 multibyte and unibyte targets.
13226 (analyse_first): Make the fastmap usable both for multibyte and
13227 unibyte targets.
13228 (TRANSLATE_VIA_MULTIBYTE): Delete.
13229 (re_match_2_internal): Pay attention to the case that the
13230 multibyteness of bufp and target may be different.
13231
132322008-02-01 Kenichi Handa <handa@m17n.org>
13233
13234 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13235 empty box occupy at least one column width.
13236
132372008-02-01 Miles Bader <miles@gnu.org>
13238
13239 * Makefile.in: Remove redundant HAVE_XFT clause.
13240
132412008-02-01 Kenichi Handa <handa@m17n.org>
13242
13243 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13244
132452008-02-01 Kenichi Handa <handa@m17n.org>
13246
13247 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13248 being nil.
13249
132502008-02-01 Kenichi Handa <handa@m17n.org>
13251
13252 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13253
132542008-02-01 Kenichi Handa <handa@m17n.org>
13255
13256 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13257
132582008-02-01 Kenichi Handa <handa@m17n.org>
13259
13260 * search.c (simple_search): Fix previous change.
13261
132622008-02-01 Kenichi Handa <handa@m17n.org>
13263
13264 * xftfont.c (ftfont_font_format): Extern declaration.
13265
13266 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13267
13268 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13269 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13270
13271 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13272 (ftfont_font_format): Fix previous change.
13273
13274 * font.h (Ffont_xlfd_name): EXFUN it.
13275
13276 * font.c (font_parse_xlfd): Fix the array size of `f'.
13277 (register_font_driver): Use EQ to compare driver->type.
13278
13279 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13280 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13281 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13282
132832008-02-01 Kenichi Handa <handa@m17n.org>
13284
13285 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13286 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13287
132882008-02-01 Kenichi Handa <handa@m17n.org>
13289
13290 * xfont.c (xfont_open): Set font->format.
13291
13292 * xftfont.c (xftfont_open): Set font->format.
13293
13294 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13295 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13296 (ftfont_open): Set font->format.
13297 (ftfont_font_format): New function.
13298
13299 * font.h (struct font): New member format.
13300
13301 * font.c (Qopentype): New variable.
13302 (syms_of_font): Defsym it.
13303 (Fquery_font): Change the format of the last element of the return
13304 value.
13305
133062008-02-01 Kenichi Handa <handa@m17n.org>
13307
13308 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13309 last resort.
13310
133112008-02-01 Kenichi Handa <handa@m17n.org>
13312
13313 * coding.c (detect_coding_charset): Fix detection of multi-byte
13314 charset.
13315
133162008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13317
13318 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13319
133202008-02-01 Kenichi Handa <handa@m17n.org>
13321
13322 * xdisp.c (get_next_display_element): Set it->face_id for the
13323 first component of a composition.
13324 (x_produce_glyphs): Check if the font is changed or not for composition.
13325
133262008-02-01 Kenichi Handa <handa@m17n.org>
13327
13328 * fontset.c (Qlatin): New variable.
13329 (syms_of_fontset): Define it as a lisp symbol.
13330 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13331
133322008-02-01 Kenichi Handa <handa@m17n.org>
13333
13334 * font.c (font_unparse_fcname): Pay attention to the case that
13335 some of font property is a null string.
13336
133372008-02-01 Kenichi Handa <handa@m17n.org>
13338
13339 * term.c: Include "composite.h".
13340 (encode_terminal_code): Output all components of composition.
13341 Check the size of encode_terminal_src.
13342 (produce_glyphs): For composition, call produce_composite_glyph.
13343 (append_composite_glyph, produce_composite_glyph): New functions.
13344
13345 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13346 is not found, get font_info from the current ascii face.
13347
133482008-02-01 Kenichi Handa <handa@m17n.org>
13349
13350 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13351 buffer-file-name to Qnil before calling insert_from_buffer.
13352
13353 * font.c (font_unparse_fcname): Pay attention to the case that
13354 foundry is a null string.
13355
133562008-02-01 Kenichi Handa <handa@m17n.org>
13357
13358 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13359
13360 * font.c (Qunicode_sip): New variable.
13361 (syms_of_font): Declare it as a Lisp symbol.
13362
13363 * font.h (Qunicode_sip): Extern it.
13364
133652008-02-01 Kenichi Handa <handa@m17n.org>
13366
13367 * composite.c (get_composition_id): Pay attention to TAB component.
13368
13369 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13370 TAB. Adjust for the change of s->char2b which always points to
13371 the first element of allocated memory.
13372
13373 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13374
13375 * xdisp.c (handle_composition_prop): Set it->c to the first
13376 non-TAB component.
13377 (fill_composite_glyph_string): Change argument.
13378 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13379 (x_produce_glyphs): Fix handling of left/right padding.
13380
133812008-02-01 Kenichi Handa <handa@m17n.org>
13382
13383 * coding.c (detect_coding_system): Fix for handling off
13384 inhibit_iso_escape_detection. Fix for the case that no coding
13385 system is defined for a specific coding category.
13386
133872008-02-01 Kenichi Handa <handa@m17n.org>
13388
13389 * font.c (font_matching_entity): Delete unused local var.
13390
13391 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13392 opening a font.
13393
13394 * fileio.c (Finsert_file_contents): On recovering a file, assume
13395 Unix-like eol.
13396 (choose_write_coding_system): On auto-saving a file, force
13397 Unix-like eol.
13398
13399 * coding.c (setup_coding_system): Fix setting of
13400 coding->common_flags based on eol_type.
13401 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13402 inherit from it.
13403
134042008-02-01 Kenichi Handa <handa@m17n.org>
13405
13406 * alloc.c (NSTATICS): Increas to 0x600.
13407
134082008-02-01 Kenichi Handa <handa@m17n.org>
13409
13410 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13411 (ftfont_list): Don't check :name property.
13412 (ftfont_match): New function.
13413 (ftfont_pattern_entity): If the pattern doesn't contain
13414 FC_SPACING, don't assume FC_MONO.
13415
13416 * font.h (struct font_driver): New member `match'.
13417 (font_update_drivers): Adjust prototype.
13418
13419 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13420 property of FONT.
13421 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13422 them unconditionally.
13423 (font_matching_entity): New function.
13424 (font_open_by_name): Try font_matching_entity if exact match is
13425 not found.
13426 (font_update_drivers): Delete the arg FONT. Return a list of
13427 actually used backends. Don't free faces, font caches here.
13428 Don't store data in frame parameters. Don't call x_set_font.
13429 (Ffont_spec): Store :name property as is.
13430 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13431 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13432 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13433 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13434 Call font->driver->otf_gsub instead of font_otf_gsub.
13435
13436 * frame.c (x_set_font_backend): Do more works that were done in
13437 font_update_drivers before.
13438
13439 * xfont.c (xfont_match): New function.
13440 (xfont_driver): Set xfont_driver.match to xfont_match.
13441 (xfont_draw): Set font in GC if necessary.
13442
13443 * ftxfont.c (ftxfont_match): New function.
13444 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13445
13446 * xftfont.c (xftfont_match): New function.
13447 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13448
134492008-02-01 Kenichi Handa <handa@m17n.org>
13450
13451 * font.h (struct font): New member scalable.
13452 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13453 (font_otf_gsub): Adjust prototype.
13454
13455 * font.c (font_otf_capability): Fix handling of the default langsys.
13456 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13457 Check the contents of SPEC.
13458 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13459 (check_gstring): New function.
13460 (REPLACEMENT_CHARACTER): New macro.
13461 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13462 glyph codes of GSTRING.
13463 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13464 (font_prepare_composition): Set cmp->glyph_len.
13465 (font_open_entity): Set font->scalable.
13466 (Ffont_get): Handle :otf property.
13467 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13468 functions.
13469 (Fquery_font): Use font->font.full_name.
13470 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13471 Sfont_otf_alternates.
13472
13473 * ftfont.c (ftfont_open): Set font->font.full_name and
13474 font->font.name properly. Fix calculation of font->font.height
13475 and font->min_width.
13476
13477 * ftxfont.c (ftxfont_create_gcs): New function.
13478 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13479 (ftxfont_draw_backgrond): Fix filling region.
13480 (ftxfont_default_fid): New function.
13481 (ftxfont_open): Set xfont->fid to the return value of
13482 ftxfont_default_fid.
13483 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13484 (ftxfont_done_face): Free only GCs that are created by
13485 ftxfont_create_gcs.
13486 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13487
13488 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13489 Clip to src->width, etc (not src->clip_XXX).
13490
13491 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13492 FontBackend frame parameter.
13493
134942008-02-01 Kenichi Handa <handa@m17n.org>
13495
13496 * font.h (struct font_driver_list): New member `on'.
13497 (Fclear_font_cache): EXFUN it.
13498 (font_update_drivers): Extern it.
13499
13500 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13501 (font_list_entities): Check driver_list->on.
13502 (register_font_driver): Initalize `on' member to 0.
13503 (font_update_drivers): New function.
13504 (Fclear_font_cache): Check driver_list->on.
13505
13506 * frame.h (Qfont_backend): Extern it.
13507 (x_set_font_backend): Extern it.
13508
13509 * frame.c (Qfont_backend): New variable.
13510 (frame_parms): New element for font-backend.
13511 (x_set_font_backend): New function.
13512
13513 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13514 FontBackend frame parameter.
13515 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13516 x_set_font_backend.
13517
13518 * xfont.c (xfont_list): Don't try listing by :name property if the
13519 name is not for XLFD.
13520
135212008-02-01 Kenichi Handa <handa@m17n.org>
13522
13523 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13524 (LGLYPH_SET_TO): New macros.
13525 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13526 element of G is vector or not.
13527 (font_at): Extern it.
13528
13529 * font.c: Include window.h.
13530 (font_lispy_object): New function.
13531 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13532 end of valid glyph.
13533 (font_close_object): Fix getting (struct font *).
13534 (font_at): New function.
13535 (Ffont_get): If FONT is a font-object, get entity from it.
13536 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13537 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13538 range check.
13539 (Ffont_at): New function.
13540 (syms_of_font): Defsubr Sfont_at.
13541
13542 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13543 before the entry for Qcomposition.
13544 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13545 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13546 the font in gstring.
13547 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13548 LGLYPH_FORM (g) to detect the end of valid glyph.
13549 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13550 we are composing with gstring.
13551
13552 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13553 Check if adjustment is vector or not.
13554
13555 * Makefile.in (font.o): Make it depends on window.h.
13556
135572008-02-01 Kenichi Handa <handa@m17n.org>
13558
13559 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13560 adjustment is vector or not.
13561
135622008-02-01 Miles Bader <miles@gnu.org>
13563
13564 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13565
135662008-02-01 Kenichi Handa <handa@m17n.org>
13567
13568 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13569 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13570 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13571
13572 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13573 (DEVICE_DELTA): Fix typo.
13574 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13575 LGLYPH format.
13576
13577 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13578 the change of LGLYPH format.
13579
135802008-02-01 Kenichi Handa <handa@m17n.org>
13581
13582 * ftfont.c (ftfont_list): Fix typo.
13583 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13584
135852008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13586
13587 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13588
13589 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13590 xftface_info is non-NULL.
13591
135922008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13593
13594 * ftfont.c (ftfont_list): Move misplaced #endif.
13595
135962008-02-01 Kenichi Handa <handa@m17n.org>
13597
13598 * ftfont.c (ftfont_list): Pay attention to the case that
13599 FC_CAPABILITY is not defined.
13600
136012008-02-01 Kenichi Handa <handa@m17n.org>
13602
13603 * xftfont.c (xftfont_open): Set charset related members to -1.
13604
13605 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13606 QCname.
13607 (ftfont_open): Set charset related members to -1.
13608
13609 * fontset.c (Votf_script_alist): New variable.
13610 (syms_of_fontset): Initialize it.
13611 (fontset_font): Delete unused variable.
13612
13613 * fontset.h (Votf_script_alist): Extern it.
13614
13615 * font.c (font_find_for_lface): Optimize code.
13616
13617 * font.h (font_close_object, font_merge_old_spec): Extern them.
13618
136192008-02-01 Kenichi Handa <handa@m17n.org>
13620
13621 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13622 (syms_of_font): Initialize them.
13623 (font_pixel_size): Allow float value in dpi.
13624 (font_prop_validate_type): Delete.
13625 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13626 Change caller.
13627 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13628 (font_prop_validate_extra): Delete.
13629 (font_prop_validate_spacing): New function.
13630 (font_property_table): Add elements for all known properties.
13631 (get_font_prop_index): Rename from check_font_prop_name. New
13632 argument FROM. Change caller.
13633 (font_prop_validate): Validate all known properties.
13634 (font_put_extra): Delete argument force. Change caller.
13635 (font_expand_wildcards): Make it static. Fix the way of shrinking
13636 the possible range.
13637 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13638 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13639 Change caller.
13640 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13641 (font_parse_fcname): Delete argument merge. Fix parsing of point
13642 size. Don't validate properties values here. Change caller.
13643 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13644 (font_open_by_name): Delete unused variable.
13645 (Ffont_spec): Likewise. Validate property values.
13646 (Ffont_match_p): New function.
13647
13648 * font.h (QCscalable): Extern it.
13649 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13650
13651 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13652
13653 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13654 (xfont_list_pattern): New function.
13655 (xfont_list): Use xfont_list_pattern.
13656
136572008-02-01 Kenichi Handa <handa@m17n.org>
13658
13659 * font.h (Flist_fonts): EXFUN it.
13660
136612008-02-01 Jason Rumney <jasonr@gnu.org>
13662
13663 * w32term.c (w32_initialize): Add back smoothing_type and
13664 smoothing_enabled definitions.
13665
136662008-02-01 Kenichi Handa <handa@m17n.org>
13667
13668 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13669 s->face->font on determining underline position.
13670
136712008-02-01 Kenichi Handa <handa@m17n.org>
13672
13673 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13674 (font_has_char): Accept font-object too.
13675 (font_find_for_lface): Try at first with a size specified in face.
13676
136772008-02-01 Kenichi Handa <handa@m17n.org>
13678
13679 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13680 font_open_by_name.
13681
136822008-02-01 Kenichi Handa <handa@m17n.org>
13683
13684 * font.h (QCspacing, QCdpi): Extern them.
13685 (enum font_spacing): New enum.
13686 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13687
13688 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13689 (QCspacing, QCdpi): New variables.
13690 (syms_of_font): Initialize them.
13691 (font_pixel_size): New function.
13692 (font_put_extra): New function.
13693 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13694 in FONT_EXTRA.
13695 (font_parse_fcname): Handle enumerated values (e.g. bold).
13696 Fix handling font size. Add QCname property that contains only
13697 unknown properties.
13698 (font_score): Change argument. Change caller. Pay attention to
13699 FONT_PIXEL_SIZE_QUANTUM.
13700 (font_sort_entites, font_list_entities, font_find_for_lface)
13701 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13702 (Ffont_spec): Add QCname property that contains only unknown properties.
13703
13704 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13705 include weight in listing pattern, instead check weight of each
13706 listed font. Don't include scalable in pattern. Pay attention to
13707 FONT_PIXEL_SIZE_QUANTUM.
13708
137092008-02-01 Kenichi Handa <handa@m17n.org>
13710
13711 * font.c (font_parse_fcname): Fix parsing of point-size.
13712 (font_unparse_fcname): Produce symbolic names for style properties.
13713 (font_list_entities): Handle float size correctly.
13714 (font_open_by_name): Prefer `normal' property values if the name
13715 doesn't specify them.
13716
13717 * fontset.c (Finternal_char_font): Use font_get_name, not
13718 Ffont_xlfd_name.
13719
13720 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13721 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13722 pattern. Don't force scalable.
13723
13724 * xftfont.c (xftfont_open): For generating a name, start from
13725 96-byte buffer.
13726
137272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13728
13729 * frame.h (x_new_fontset2): Fix prototype.
13730
137312008-02-01 Kenichi Handa <handa@m17n.org>
13732
13733 * font.h (struct font_driver): Delete member parse_name.
13734 (font_match_p, font_get_spec, font_parse_fcname)
13735 (font_unparse_fcname): Extern them.
13736 (font_get_name): Adjust prototype.
13737
13738 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13739 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13740 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13741 unnecessary checks for weight, slant, and swidth.
13742 (font_parse_fcname): New function.
13743 (font_unparse_fcname): New function.
13744 (font_parse_name): New function.
13745 (font_match_p): New function.
13746 (font_get_name): Change return value to Lisp string.
13747 (font_get_spec): New function.
13748 (Qunspecified, Qignore_defface): Don't extern them.
13749 (font_find_for_lface): Assume that LFACE is fully specified.
13750 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13751 object, use it for FACE.
13752 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13753 driver->parse_name.
13754 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13755
13756 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13757 prototype.
13758
13759 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13760 argument F. Don't call Fnew_fontset. Instead, directly call
13761 make_fontset.
13762
13763 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13764
13765 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13766 of x_new_fontset2.
13767
13768 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13769 (Qsans__serif): New variables.
13770 (ftfont_generic_family_list): New variable.
13771 (syms_of_ftfont): Initialize the above variables.
13772 (ftfont_pattern_entity): Delete argument NAME.
13773 (ftfont_list_generic_family): New function.
13774 (ftfont_parse_name): Delete this function.
13775 (ftfont_list): Try generic family only when FcFontList found no font.
13776 (ftfont_list_family): Fix args to FcObjectSetBuild.
13777
13778 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13779 object in attrs[LFACE_FONT_INDEX].
13780 (set_lface_from_font_name): Cancel all changes for font-backend.
13781 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13782 function.
13783 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13784 font object in QCfont attribute.
13785 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13786 (realize_default_face) [USE_FONT_BACKEND]: Call
13787 set_lface_from_font_and_fontset.
13788
13789 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13790 "fixed", and signal error here if no suitable font was found.
13791
13792 * xfont.c (xfont_parse_name): Delete this function.
13793
13794 * xftfont.c (xftfont_open): Change coding style of error
13795 handling. Generate fontconfig's fontname pattern.
13796
13797 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13798 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13799
13800 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13801 Both args FONTSET and FONT_OBJECT must be existing ones.
13802
138032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13804
13805 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13806
138072008-02-01 Kenichi Handa <handa@m17n.org>
13808
13809 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13810
13811 * font.h (struct font): Fix typo.
13812
13813 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13814 XLFD_XXX_INDEX.
13815 (enum xlfd_field_mask): New enum.
13816 (intern_font_field): Changed argument. Change caller. If digits
13817 are followed by non-digits, return a symbol.
13818 (font_expand_wildcards): New function.
13819 (font_parse_xlfd): Fix wildcard handling.
13820 (Ffont_spec): If :name is specified, reflect the info in the other
13821 properties.
13822
13823 * ftfont.c (ftfont_pattern_entity): Fix typo.
13824 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13825 locale.
13826
138272008-02-01 Kenichi Handa <handa@m17n.org>
13828
13829 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13830
13831 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13832 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13833 registry doesn't specify encoding part.
13834 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13835 (font_open_by_name): At first try parsing the name.
13836 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13837 as Lisp symbols.
13838
13839 * fontset.c (reorder_font_vector): Pay attention to the case that
13840 the 3rd element of font_def is nil.
13841 (fontset_font): For the default fontset, append one more fontset
13842 elements for a script-based font specification. Don't add script
13843 attribute on finding a font.
13844 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13845 font name.
13846 (fontset_ascii_font): If a font can't be opened, return nil.
13847
13848 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13849 (ftfont_pattern_entity): New function.
13850 (ftfont_get_cache): Assume that freetype_font_cache is already
13851 initialized.
13852 (ftfont_list): Handle the case that a file is specified in font
13853 name. Use ftfont_pattern_entity to generate entities.
13854 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13855 (syms_of_ftfont): Initialize freetype_font_cache.
13856
13857 * xftfont.c (xftfont_open): Make the font name fontconfig's
13858 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13859 (xftfont_close): Free font->font.name if not NULL.
13860
13861 * xfont.c (xfont_list): If script is specified for a font, return
13862 null_vector.
13863 (xfont_list_family): Declare argument type.
13864
13865 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13866 name, set LFACE_FONT (lface) to nil.
13867
13868 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13869 return Qnil.
13870
138712008-02-01 Kenichi Handa <handa@m17n.org>
13872
13873 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13874 (standard_args): Add "-enable-font-backend".
13875
138762008-02-01 Kenichi Handa <handa@m17n.org>
13877
13878 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13879 (struct xftdraw_list, xftdraw_list): Delete them.
13880 (register_xftdraw, check_xftdraw): Delete them.
13881 (xftfont_prepare_face): Don't call register_xftdraw.
13882 (xftfont_done_face): Don't call check_xftdraw.
13883 (xftfont_draw): Get background color only when with_background is
13884 nonzero.
13885
13886 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13887
138882008-02-01 Kenichi Handa <handa@m17n.org>
13889
13890 These changes are for the new font handling codes.
13891
13892 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13893 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13894 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13895 (FONTSRC, FONTOBJ): New variables.
13896 (obj): Add $(FONTOBJ).
13897 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13898 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13899 @LIBOTF_LIBS@.
13900 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13901 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13902
13903 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13904
13905 * character.h (Vscript_representative_chars): Extern it.
13906
13907 * character.c (Vscript_representative_chars): New variable.
13908 (syms_of_character): Declare it as a Lisp variable.
13909
13910 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13911 enable_font_backend is nonzero, accept the composition method
13912 COMPOSITION_WITH_GLYPH_STRING.
13913
13914 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13915 enumeration COMPOSITION_WITH_GLYPH_STRING.
13916
13917 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13918 members clip_x, clip_y, clip_width, and clip_height.
13919 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13920
13921 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13922 --enable-font-backend. Call syms_of_font.
13923
13924 * fns.c (assoc_no_quit): New function.
13925
13926 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13927 (face_for_font, new_fontset_from_font)
13928 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13929
13930 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13931 (fontset_font, fontset_ascii, face_for_char)
13932 (make_fontset_for_ascii_face, Ffont_info)
13933 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13934 is nonzero, use font-backend mechanism.
13935 (find_font_encoding): Make it non-static.
13936 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13937 New functions.
13938
13939 * frame.h (struct frame): New members resx and resy.
13940 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13941 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13942
13943 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13944 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13945
13946 * lisp.h (assoc_no_quit): Extern it.
13947
13948 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13949 Through out the file, use FONT_INFO_FROM_FACE instead of
13950 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13951 rif->per_char_metric.
13952 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13953 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13954 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13955 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13956 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13957 nonzero, use font-backend mechanism.
13958 (get_per_char_metric): New function.
13959
13960 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13961 (set_lface_from_font_name)
13962 (set_font_frame_param, free_realized_face)
13963 (prepare_face_for_display, clear_face_gcs)
13964 (Finternal_set_font_selection_order, realize_x_face)
13965 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13966 font-backend mechanism.
13967 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13968 (load_face_font) [USE_FONT_BACKEND]: Abort.
13969 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13970 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13971
13972 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13973 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13974 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13975 nonzero, register all available font drivers. Call
13976 x_default_font_parameter for deciding a font.
13977 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13978
13979 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13980 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13981 (x_set_glyph_string_clipping_exactly)
13982 (x_compute_glyph_string_overhangs)
13983 (x_draw_glyph_string_foreground)
13984 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13985 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13986 enable_font_backend is nonzero, use font-backend mechanism.
13987 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13988
139892008-02-01 Kenichi Handa <handa@m17n.org>
13990
13991 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13992 system_eol_type.
13993 (syms_of_coding): Initialize system_eol_type.
13994
13995 * process.c (Fset_process_coding_system): Inherit system's eol
13996 format if necessary.
13997
139982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13999
14000 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14001
140022008-02-01 Kenichi Handa <handa@m17n.org>
14003
14004 * coding.c (decode_eol): Pay attention to buffer relocation in
14005 del_range_2.
14006 (decode_coding): Call decode_eol before restoring undo_list.
14007
140082008-02-01 Kenichi Handa <handa@m17n.org>
14009
14010 * charset.c (Fdefine_charset_internal): Fix setting of
14011 emacs_mule_bytes.
14012
140132008-02-01 Kenichi Handa <handa@m17n.org>
14014
14015 * keyboard.c (read_char): Check if C is a character or not before
14016 looking up Vkeyboard_translate_table.
14017
140182008-02-01 Kenichi Handa <handa@m17n.org>
14019
14020 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14021 condition to terminate the loop.
14022
140232008-02-01 Kenichi Handa <handa@m17n.org>
14024
14025 * coding.c (produce_composition): Compare charbuf[i] instead of
14026 args[i] against 0.
14027 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14028
140292008-02-01 Kenichi Handa <handa@m17n.org>
14030
14031 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14032 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14033 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14034 detect_coding.
14035 (emacs_mule_char): Handle old style (Emacs 20) component character
14036 of a composition.
14037 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14038 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14039 composition rule.
14040 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14041
140422008-02-01 Kenichi Handa <handa@m17n.org>
14043
14044 * coding.c (encode_coding_ccl): Allocate destination dynamically
14045 when necessary.
14046
140472008-02-01 Kenichi Handa <handa@m17n.org>
14048
14049 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14050 the loop. When quitted, show a proper error message.
14051
140522008-02-01 Kenichi Handa <handa@m17n.org>
14053
14054 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14055 src->clip_head and src->clip_tail temporarily instead of src->hl.
14056
14057 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14058 character sequence.
14059 (Fccl_execute_on_string): Use ASET, not XSET.
14060
140612008-02-01 Kenichi Handa <handa@m17n.org>
14062
14063 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14064
140652008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * coding.c (decode_coding): Fix the condition of terminating the
14068 decoding loop.
14069
140702008-02-01 Kenichi Handa <handa@m17n.org>
14071
14072 * data.c (Faset): On setting a character bigger than 255 in a
14073 unibyte string, signal an error instead of make the string multibyte.
14074
140752008-02-01 Kenichi Handa <handa@m17n.org>
14076
14077 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14078 made by a mapping table.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14083 not.
14084 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14085 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14086
14087 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14088 s->face is NULL or not.
14089
140902008-02-01 Kenichi Handa <handa@m17n.org>
14091
14092 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14093 (x_draw_glyph_string): Fix drawing of right_overhang and
14094 left_overhang around/on cursor.
14095
14096 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * coding.c (Fdefine_coding_system_internal)
14105 (Fdefine_coding_system_alias): Avoid a duplicated element in
14106 Vcoding_system_alist.
14107
141082008-02-01 Kenichi Handa <handa@m17n.org>
14109
14110 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14111
14112 * coding.c (Qcoding_system_define_form): New variable.
14113 (syms_of_coding): Intern and staticpro it.
14114 (Fcoding_system_p): Check Qcoding_system_define_form.
14115 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14116
14117 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14118 Fcoding_system_p.
14119 (CHECK_CODING_SYSTEM): If ID is not available, call
14120 Fcheck_coding_system.
14121 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14122 Try also Fcheck_coding_system.
14123
141242008-02-01 Kenichi Handa <handa@m17n.org>
14125
14126 * coding.c (code_conversion_restore): GCPRO arg.
14127
141282008-02-01 Kenichi Handa <handa@m17n.org>
14129
14130 * character.c (lisp_string_width): Check multibyteness of STRING.
14131
141322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14133
14134 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14135 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14136 (decode_mac_font_name): Use decode_coding_c_string instead of
14137 decode_coding.
14138 (x_load_font): Initialize fontp->fontset to -1. Set
14139 fontp->encoding_type.
14140
141412008-02-01 Kenichi Handa <handa@m17n.org>
14142
14143 * search.c (search_buffer): Give up BM search on case-fold-search
14144 if one of a target character has a case-equivalence of different
14145 byte length even if that target charcter is an ASCII.
14146 (simple_search): Fix calculation of byte length of matched text.
14147 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14148
141492008-02-01 Kenichi Handa <handa@m17n.org>
14150
14151 * coding.c (decode_coding): Fix handling of invalid bytes.
14152
141532008-02-01 Kenichi Handa <handa@m17n.org>
14154
14155 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14156 Unicode characters.
14157
141582008-02-01 Kenichi Handa <handa@m17n.org>
14159
14160 * coding.c (encode_coding_object): If a pre-write-conversion
14161 function makes a new buffer, kill it.
14162
141632008-02-01 Kenichi Handa <handa@m17n.org>
14164
14165 * coding.c (QCascii_compatible_p): New variable.
14166 (syms_of_coding): Initialize it.
14167 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14168 calling string_char.
14169 (record_conversion_result): Add `default:' case.
14170 (coding_charset_list): Delete unused variable `coding_type'.
14171 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14172 property in the plist of the coding system.
14173 (Fcoding_system_put): Check QCascii_compatible_p.
14174
141752008-02-01 Miles Bader <miles@gnu.org>
14176
14177 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14178 removed calculation of frame `f', as it's now used.
14179
141802008-02-01 Kenichi Handa <handa@m17n.org>
14181
14182 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14183 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14184 (UNIDATA): New variable.
14185 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14186 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14187 $(RUN_TEMACS) unconditionally.
14188
141892008-02-01 Kenichi Handa <handa@m17n.org>
14190
14191 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14192 (admindir): New variable.
14193 ($(lispsource)international/charprop.el): New target.
14194
141952008-02-01 Miles Bader <miles@gnu.org>
14196
14197 * character.c (chars-in-region): Remove obsolete function.
14198 (syms_of_character): Remove its initialization.
14199
142002008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14201
14202 * w32select.c (validate_coding_system)
14203 (setup_windows_coding_system): New functions.
14204 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14205 setup_windows_coding_system.
14206 (setup_config, Fw32_get_clipboard_data): Use
14207 validate_coding_system.
14208 (Fx_selection_exists): Move call to setup_config to a place
14209 where signals are allowed.
14210
14211 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14212 (Fcheck_coding_system): Add declarations.
14213
142142008-02-01 Kenichi Handa <handa@m17n.org>
14215
14216 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14217
142182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14219
14220 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14221 string as the second argument for x_new_fontset.
14222
142232008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14226 (encode_coding_object): Use safe_call instead of call2.
14227
142282008-02-01 Kenichi Handa <handa@m17n.org>
14229
14230 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14231
14232 * Makefile.in (lisp): Include charprop.el.
14233
142342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14235
14236 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14237 Not sure if it's unnecessary.
14238
142392008-02-01 Steven Tamm <steventamm@mac.com>
14240
14241 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14242 some possibly unnecessary fontset checking code that crashed
14243 when creating a new frame.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14248 lookup_face.
14249
14250 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14251
14252 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14253
142542008-02-01 Kenichi Handa <handa@m17n.org>
14255
14256 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14257 (coding_charset_list): New function.
14258
14259 * coding.h (coding_charset_list): Extern it.
14260
142612008-02-01 Kenichi Handa <handa@m17n.org>
14262
14263 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14264 concatenation of family and registry.
14265
142662008-02-01 Kenichi Handa <handa@m17n.org>
14267
14268 * character.h (BYTE8_STRING): Fix typo.
14269
14270 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14271 string to multibyte (sync to HEAD).
14272
14273 * casefiddle.c (casify_region): Handle changes in byte-length
14274 using replace_range_2 (sync to HEAD).
14275
142762008-02-01 Andreas Schwab <schwab@suse.de>
14277
14278 * chartab.c (map_char_table): GCPRO table and arg.
14279
142802008-02-01 Kenichi Handa <handa@m17n.org>
14281
14282 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14283 already at limit.
14284
142852008-02-01 Kenichi Handa <handa@m17n.org>
14286
14287 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14288 instead of fast_c_string_match_ignore_case.
14289 (find_font_encoding): Change argument to Lisp_Object. Use
14290 fast_string_match_ignore_case instead of
14291 fast_c_string_match_ignore_case. Change caller.
14292
142932008-02-01 Kenichi Handa <handa@m17n.org>
14294
14295 * xdisp.c (get_next_display_element): In unibyte case, decide to
14296 display in octal form by checking a character by
14297 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14298
14299 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14300
14301 * character.c (unibyte_has_multibyte_table): New variable.
14302
14303 * character.h (unibyte_has_multibyte_table): Extern it.
14304 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14305
143062008-02-01 Kenichi Handa <handa@m17n.org>
14307
14308 * coding.c (encode_coding_iso_2022): Fix handling of charset
14309 annotation.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * coding.c (setup_coding_system): If coding_system is nil, use
14314 Qundecided.
14315 (Fterminal_coding_system): Return nil if terminal coding system is
14316 `undecided'.
14317 (syms_of_coding): Define coding-system `undecided' here. Setup
14318 terminal_coding as `undecided'.
14319
143202008-02-01 Kenichi Handa <handa@m17n.org>
14321
14322 * xdisp.c (message_dolog, set_message_1): Call
14323 unibyte_char_to_multibyte with arg type int.
14324
14325 * lread.c (read1): Fix reading of a char-table.
14326
14327 * print.c (print_object): Include sub char-table in circularities
14328 detection.
14329
143302008-02-01 Kenichi Handa <handa@m17n.org>
14331
14332 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14333 Append the found sequences in car of ARGS instead of prepending.
14334
143352008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 * fileio.c (report_file_error): Make a unibyte string from
14338 strerror (errorno).
14339 (Fsubstitute_in_file_name): Fix the arg to
14340 unibyte_char_to_multibyte. It is evaluated twice.
14341
143422008-02-01 Kenichi Handa <handa@m17n.org>
14343
14344 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14345
143462008-02-01 Kenichi Handa <handa@m17n.org>
14347
14348 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14349 BOM is not found.
14350 (detect_coding, detect_coding_system): Optimization for ISO-2022
14351 when no 8-bit data is found.
14352
143532008-02-01 Jason Rumney <jasonr@gnu.org>
14354
14355 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14356
143572008-02-01 Kenichi Handa <handa@m17n.org>
14358
14359 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14360 CHARS.
14361
143622008-02-01 Steven Tamm <steventamm@mac.com>
14363
14364 * macterm.c (mac_encode_char): Add charset argument and update
14365 to use encoding_type.
14366 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14367 switch to pure fontset.
14368 (decode_mac_font_name): Temporarily remove decoding.
14369 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14370 (x_load_font): Temporarily remove encoding.
14371
143722008-02-01 Kenichi Handa <handa@m17n.org>
14373
14374 * xfaces.c (Fface_font): If frame is not on a window system,
14375 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14376 refer to face->font.
14377 (split_font_name_into_vector, build_font_name_from_vector)
14378 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14379 when HAVE_WINDOW_SYSTEM is defined.
14380
143812008-02-01 Kenichi Handa <handa@m17n.org>
14382
14383 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14384 (x_produce_glyphs): Fix setting of members of cmp in case
14385 cmp->glyph_len is zero.
14386
14387 * fontset.c (Fset_fontset_font): Fix docstring.
14388 (Ffontset_info): Make it backward compatible. New arg ALL.
14389
143902008-02-01 Kim F. Storm <storm@cua.dk>
14391
14392 * process.c (read_process_output): Grow decoding_buf when needed;
14393 this could cause a crash in allocate_string and compact_small_strings.
14394
143952008-02-01 Kenichi Handa <handa@m17n.org>
14396
14397 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14398
143992008-02-01 Kenichi Handa <handa@m17n.org>
14400
14401 * coding.c (setup_coding_system): Set coding->common_flags
14402 correctly for raw-text.
14403 (consume_chars): On encoding unibyte text by raw-text, don't check
14404 multibyte form.
14405 (encode_coding): On encoding by raw-text, never use translation tables.
14406
14407 * fileio.c (e_write): Short cut for the case of no encoding.
14408
144092008-02-01 Kenichi Handa <handa@m17n.org>
14410
14411 * coding.c (detect_coding, detect_coding_system): Delete unused
14412 variables.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14417 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14418
144192008-02-01 Kenichi Handa <handa@m17n.org>
14420
14421 * coding.c (Ffind_coding_systems_region_internal): Include
14422 raw-text and no-conversion in the result.
14423
144242008-02-01 Kenichi Handa <handa@m17n.org>
14425
14426 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14427 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14428 FONT_DEF.
14429 (font_def_arg, add_arg, from_arg, to_arg): New args.
14430 (set_fontset_font): Change argument.
14431 (Fset_fontset_font): Fix for the case that TARGET is a script
14432 name and charset name.
14433 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14434
144352008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * fontset.c (fontset_font): Rename from fontset_face. Change return
14438 value.
14439 (face_suitable_for_char_p, face_for_char): Adjust for the change
14440 of fontset_font.
14441 (make_fontset_for_ascii_face): Fix setting of the fontset element
14442 for ASCII.
14443 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14444 to get a font name.
14445 (Ffontset_info): Adjust for the change of fontset_font.
14446
14447 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14448
14449 * character.h (LEADING_CODE_LATIN_1_MIN)
14450 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14451
144522008-02-01 Kenichi Handa <handa@m17n.org>
14453
14454 * editfns.c (check_translation): New function.
14455 (Ftranslate_region_internal): Handle M:N mapping.
14456
144572008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14460
144612008-02-01 Kenichi Handa <handa@m17n.org>
14462
14463 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14464 goto invalid_code.
14465 (decode_coding_iso_2022): Fix handling of invalid designation.
14466
14467 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14468 after calling code_conversion_save.
14469
144702008-02-01 Kenichi Handa <handa@m17n.org>
14471
14472 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14473
14474 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14475
14476 * fontset.c: Include "intervals.h".
14477 (fontset_face): Fix comparing of Lisp_Objects.
14478 (free_face_fontset, new_fontset_from_font_name): Fix
14479 Lisp_Object/int mixup.
14480
14481 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14482
14483 * coding.c: Add many prototypes for static functions.
14484 (get_translation_table): Allow max_lookup to be NULL.
14485 (decode_coding, Ffind_coding_systems_region_internal)
14486 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14487 get_translation_table with max_lookup NULL.
14488
144892008-02-01 Kenichi Handa <handa@m17n.org>
14490
14491 * coding.c (get_translation_table): Declare it as Lisp_Object.
14492 (LOOKUP_TRANSLATION_TABLE): New macro.
14493 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14494 instead of CHAR_TABLE_REF.
14495
144962008-02-01 Kenichi Handa <handa@m17n.org>
14497
14498 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14499 annotation data format.
14500 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14501 Change arguments FROM and TO to single argument NCHARS. Change caller.
14502 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14503 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14504 (decode_coding_ccl, decode_coding_charset): Pay attention to
14505 coding->charbuf_used.
14506 (get_translation): New function.
14507 (produce_chars): New arguments translation_table and last_block.
14508 Translate characters here. Return number of carryover chars.
14509 Change caller.
14510 (produce_composition): New argument pos. Change caller.
14511 Adjust for the change of annotation data format.
14512 (produce_charset, produce_annotation): Likewise.
14513 (decode_coding, encode_coding): Don't call translate_chars.
14514 (consume_chars): New arg translation_table. Change caller.
14515 (translate_chars): Delete.
14516 (syms_of_coding): Make translation-table's number of extra slots 2.
14517
145182008-02-01 Kenichi Handa <handa@m17n.org>
14519
14520 * search.c (simple_search): Fix setting this_pos_byte in backward
14521 search.
14522
14523 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14524 byte sequence.
14525 (detect_coding_ccl): Fix setting of the variable valids.
14526
145272008-02-01 Kenichi Handa <handa@m17n.org>
14528
14529 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14530
14531 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14532
14533 * editfns.c (Ftranslate_region_internal): Rename from
14534 Ftranslate_region. Accept a char-table in TABLE.
14535 (syms_of_editfns): Defsubr Stranslate_region_internal.
14536
14537 * xfaces.c (set_lface_from_font_name): If a font is specified for
14538 a frame, generate a fontset from the font.
14539 (build_scalable_font_name): If the scalable font is requested for
14540 a specific size, don't change that size.
14541 (try_font_list): Try a scalable font also in the case that a
14542 pattern string is specified.
14543
145442008-02-01 Kenichi Handa <handa@m17n.org>
14545
14546 * xfaces.c (Fface_font): New optional arg CHARACTER.
14547
145482008-02-01 Kenichi Handa <handa@m17n.org>
14549
14550 * charset.h (CHARSET_OFFSET): New macro.
14551
145522008-02-01 Kenichi Handa <handa@m17n.org>
14553
14554 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14555
14556 * fontset.c (fontset_face): Handle the case that repertory is a
14557 char-table.
14558 (find_font_encoding): Return nil for unknown encoding.
14559 (Fset_fontset_font): Ignore a font of unknown encoding.
14560
145612008-02-01 Kenichi Handa <handa@m17n.org>
14562
14563 * keymap.c (describe_vector): Handle default value of a char table.
14564
14565 * fontset.c (fontset_face): Handle fallback fonts correctly.
14566 (Ffontset_info): Return infomation about fallback fonts.
14567
145682008-02-01 Kenichi Handa <handa@m17n.org>
14569
14570 * fontset.c (FONTSET_DEFAULT): New macro.
14571 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14572 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14573 the case that it is nil.
14574 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14575 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14576
14577 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14578 subset or superset.
14579
145802008-02-01 Kenichi Handa <handa@m17n.org>
14581
14582 * emacs.c (main): Call init_charset after syms_of_XXX.
14583
14584 * charset.c (Vcharset_map_directory): Delete.
14585 (Vcharset_map_path): New variable.
14586 (load_charset_map_from_file): Use Vcharset_map_path instead.
14587 (init_charset): Initialize Vcharset_map_path.
14588 (syms_of_charset): Delete declaration of "charset-map-directory",
14589 add declaration of "charset-map-path".
14590
145912008-02-01 Kenichi Handa <handa@m17n.org>
14592
14593 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14594 ASCII only string.
14595
14596 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14597
14598 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14599 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14600
146012008-02-01 Kenichi Handa <handa@m17n.org>
14602
14603 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14604
14605 * coding.c (QCmnemonic, QCdefalut_char)
14606 (QCdecode_translation_table, QCencode_translation_table)
14607 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14608 (get_translation_table): Return a list of translation tables if
14609 necessary.
14610 (decode_coding): Call get_translation_table with ENCODEP 0.
14611 (char_encodable_p): If translation_table is non-nil, always call
14612 translate_char.
14613 (Fdefine_coding_system_internal): Accept list of translation
14614 tables as :encode-translation-table and :decode-translation-table.
14615 (Fcoding_system_put): New function.
14616 (syms_of_coding): Declare new symbols. Defsubr
14617 Scoding_system_put.
14618 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14619 typically JISX0212.
14620
14621 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14622 when the charset is superset type.
14623
14624 * character.c (translate_char): Accept list of translation tables.
14625
146262008-02-01 Kenichi Handa <handa@m17n.org>
14627
14628 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14629 (CODING_ATTR_TRANS_TBL): New macro.
14630
14631 * coding.c (get_translation_table): New function.
14632 (translate_chars): Fix the bug of skipping annotation data.
14633 (decode_coding, encode_coding): Utilize get_translation_table.
14634 (char_encodable_p, Funencodable_char_position): Translate char if
14635 necessary.
14636 (Ffind_coding_systems_region_internal)
14637 (Fcheck_coding_systems_region): Setup translation table for encode
14638 in a coding system attribute vector in advance.
14639 (Fdefine_coding_system_internal): Allow a symbol as translation
14640 table. For shift-jis type coding system, allow 4th charset.
14641
146422008-02-01 Kenichi Handa <handa@m17n.org>
14643
14644 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14645
14646 * xdisp.c (get_next_display_element): Pass -1 as POS to
14647 FACE_FOR_CHAR if displaying a C-string.
14648
146492008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * composite.c (get_composition_id): Handle xoff and yoff in a
14652 composition rule.
14653
14654 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14655 (struct composition): New member lbearing and rbearing.
14656
14657 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14658 (x_get_glyph_overhangs): Handle a composition glyph.
14659 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14660
14661 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14662 composition glyph.
14663
146642008-02-01 Kenichi Handa <handa@m17n.org>
14665
14666 * print.c: Include charset.h.
14667 (Vprint_charset_text_property): New variable.
14668 (Qdefault): Extern it.
14669 (PRINT_STRING_NON_CHARSET_FOUND)
14670 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14671 (print_check_string_result): New variable.
14672 (print_check_string_charset_prop): New function.
14673 (print_prune_charset_plist): New variable.
14674 (print_prune_string_charset): New function.
14675 (print_object): Call print_prune_string_charset if
14676 Vprint_charset_text_property is not t.
14677 (print_interval): Print nothing if interval->plist is nil.
14678 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14679 variable. Init and staticpro print_prune_charset_plist.
14680
146812008-02-01 Kenichi Handa <handa@m17n.org>
14682
14683 * fontset.c (new_fontset_from_font_name): Use the specified font
14684 for all characters in the new fontset.
14685
14686 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14687 OBJECT args.
14688
14689 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14690 OBJECT args for composition too.
14691
14692 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14693 OBJECT args.
14694
146952008-02-01 Kenichi Handa <handa@m17n.org>
14696
14697 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14698
14699 * fontset.c (reorder_font_vector): Adjust for the change of
14700 FONT_DEF format.
14701 (fontset_face): New arg id. Change caller.
14702 (face_for_char): New args pos and object.
14703 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14704 (fs_query_fontset): Check NAME by Fassoc too.
14705 (Fset_fontset_font): Allow non-XLFD font name.
14706 (Ffontset_info): Adjust for the change of FONT_DEF format.
14707
14708 * fontset.h (face_for_char): Adjust prototype.
14709
14710 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14711 (append_space, extend_face_to_end_of_line)
14712 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14713 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14714
14715 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14716 POS and OBJECT args.
14717
14718 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14719 POS and OBJECT args.
14720
147212008-02-01 Jason Rumney <jasonr@gnu.org>
14722
14723 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14724 of GlobalAlloc'ed memory.
14725
147262008-02-01 Kenichi Handa <handa@m17n.org>
14727
14728 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14729
14730 * charset.h (charset_table_used): Delete extern.
14731
14732 * charset.c (charset_table_used): Make it static.
14733 (map_charset_chars): Fix args to c_function with.
14734
14735 * chartab.c (map_sub_char_table_for_charset): Fix args to
14736 c_function with.
14737
14738 * coding.h (enum coding_result_code): Delete
14739 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14740
14741 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14742 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14743 (Vlast_code_conversion_error): New variables.
14744 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14745 (ONE_MORE_BYTE): Record error if any instead of signaling an
14746 error. If non-ASCII multibyte char is found, return the negative
14747 value of the code. All callers changed to check it.
14748 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14749 (record_conversion_result): New function. Change all codes setting
14750 coding->result to call this function.
14751 (detect_coding_utf_8, decode_coding_utf_8)
14752 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14753 Don't use the local variable incomplete.
14754 (emacs_mule_char): Change the second arg to `const'.
14755 (decode_coding): Fix of flushing out unprocessed data.
14756 (make_conversion_work_buffer): Fix making of a work buffer.
14757 (decode_coding_object): Return coding->dst_object.
14758
14759 * fontset.c (set_fontset_font): Fix args.
14760
14761 * lisp.h (CHARACTERBITS): Define as 22.
14762
14763 * process.c (send_process): Be sure to set coding->src_multibyte.
14764
14765 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14766
147672008-02-01 Kenichi Handa <handa@m17n.org>
14768
14769 * xdisp.c (handle_auto_composed_prop): Give limit to
14770 Fnext_single_char_property_change.
14771
147722008-02-01 Kenichi Handa <handa@m17n.org>
14773
14774 * composite.c (syms_of_composite): Don't make the composition hash
14775 table weak.
14776
14777 * fontset.c (Fset_fontset_font): Fix docstring.
14778
14779 * lisp.h (detect_coding_system): Adjust prototype.
14780
14781 * fileio.c (kill_workbuf_unwind): Delete this function.
14782 (Finsert_file_contents): Adjust the call of detect_coding_system.
14783 Get conversion_buffer by code_conversion_save. Use the macro
14784 CODING_MAY_REQUIRE_DECODING. After decoding, update
14785 coding_system.
14786
14787 * coding.h (make_conversion_work_buffer): Delete extern.
14788 (code_conversion_save): Extern it.
14789
14790 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14791 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14792 (decode_coding_utf_8): Don't do eol converion.
14793 (detect_coding_utf_16): Check coding->src_chars, not
14794 coding->src_bytes. Add heuristics for those that have no signature.
14795 (decode_coding_emacs_mule, decode_coding_iso_2022)
14796 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14797 Don't do eol converion.
14798 (adjust_coding_eol_type): Return a new coding system.
14799 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14800 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14801 each change.
14802 (decode_coding): Pay attention to undo_list. Do eol conversion for
14803 all types of coding-systems (if necessary).
14804 (Vcode_conversion_work_buf_list): Delete it.
14805 (Vcode_conversion_reused_workbuf): Rename from
14806 Vcode_conversion_reused_work_buf.
14807 (Vcode_conversion_workbuf_name): New variable.
14808 (reused_workbuf_in_use): New variable.
14809 (make_conversion_work_buffer): Delete the arg DEPTH.
14810 (code_conversion_restore): Change argument to cons.
14811 (code_conversion_save): Delete the argument BUFFER. Change callers.
14812 (detect_coding_system): New argument src_chars. Change callers.
14813 Fix for utf-16 detection.
14814 (init_coding_once): Don't use ISO_carriage_return.
14815 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14816 reused_workbuf_in_use.
14817
148182008-02-01 Kenichi Handa <handa@m17n.org>
14819
14820 * keymap.c (store_in_keymap): Pay attention to the case that idx
14821 is a cons specifying a character range.
14822
148232008-02-01 Kenichi Handa <handa@m17n.org>
14824
14825 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14826 HANDLED_RECOMPUTE_PROPS.
14827
14828 * coding.c (Fdefine_coding_system_internal): Fix checking of
14829 ascii compatibility.
14830
148312008-02-01 Kenichi Handa <handa@m17n.org>
14832
14833 * charset.c (find_charsets_in_text): Delete unused locale variable.
14834 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14835
14836 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14837 Resync charset_list to Vemacs_mule_charset_list.
14838
14839 * keymap.c (store_in_keymap): Pay attention to the case that idx
14840 is a cons specifying a character range.
14841
148422008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * composite.c (update_compositions): Bind inhibit-read-only, etc
14845 to t before calling remove-list-of-text-properties.
14846
14847 * print.c (print_object): Always print ASCII chars as is.
14848
148492008-02-01 Kenichi Handa <handa@m17n.org>
14850
14851 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14852
14853 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14854 is a char table.
14855
148562008-02-01 Kenichi Handa <handa@m17n.org>
14857
14858 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14859
148602008-02-01 Kenichi Handa <handa@m17n.org>
14861
14862 * xfaces.c (set_lface_from_font_name): Fix for the case that
14863 FONTNAME is not fontset name.
14864
148652008-02-01 Kenichi Handa <handa@m17n.org>
14866
14867 * fns.c (base64_encode_1): Fix previous change.
14868
148692008-02-01 Kenichi Handa <handa@m17n.org>
14870
14871 * fontset.c (set_fontset_font): New function.
14872 (Fset_fontset_font): If a font is specified for a charset, use
14873 map_charset_chars to store the font spec in a fontset.
14874
148752008-02-01 Kenichi Handa <handa@m17n.org>
14876
14877 * fontset.c (fontset_face): Create a fallback fontset on demand.
14878 (make_fontset): Don't create a fallback fontset here.
14879 (free_face_fontset): Free a fallback fontset (if any) too.
14880 (n_auto_fontsets): Delete this variable.
14881 (auto_fontset_alist): New variable.
14882 (new_fontset_from_font_name): Check auto_fontset_alist.
14883 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14884 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14885 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14886 Defsubr Sfontset_list_all.
14887
148882008-02-01 Kenichi Handa <handa@m17n.org>
14889
14890 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14891
148922008-02-01 Kenichi Handa <handa@m17n.org>
14893
14894 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14895
148962008-02-01 Kenichi Handa <handa@m17n.org>
14897
14898 * editfns.c (Fgoto_char): Fix docstring.
14899
149002008-02-01 Kenichi Handa <handa@m17n.org>
14901
14902 * insdel.c (insert_from_gap): Adjust intervals correctly.
14903
149042008-02-01 Jason Rumney <jasonr@gnu.org>
14905
14906 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14907 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14908 (w32_initialize): Try to load it.
14909 (x_get_font_repertory): Use it if available.
14910 (w32_encode_char): Add shortcut for unicode output.
14911
14912 * w32fns.c (w32_load_system_font): Default charset to -1.
14913 (x_to_w32_charset): Match all fonts for unicode.
14914 (w32_to_x_charset): New parameter matching. Don't return partial
14915 or wildcard charsets.
14916 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14917 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14918 (w32_to_x_font): Match charset to real charset.
14919 (enum_font_cb2): Always list unicode versions.
14920
14921 * makefile.w32-in (temacs): Increase EMHEAP.
14922
149232008-02-01 Jason Rumney <jasonr@gnu.org>
14924
14925 * w32term.c (w32_encode_char): New charset parameter.
14926 font_info.encoding becomes encoding_type.
14927 (x_get_font_repertory): New function. Warning: stub only!
14928 (x_new_font): Return quickly if font already set.
14929 (x_new_fontset): fontsetname parameter is Lisp_Object.
14930 Use new fs_query_fontset. Try new_fontset_from_font_name.
14931 Use fontset_name for return value.
14932
14933 * w32term.h: Declare x_get_font_repertory.
14934
14935 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14936 place of find_charset_in_text. Use encode_coding_object in place
14937 of encode_coding.
14938 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14939 decode_coding.
14940
14941 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14942 of x_new_fontset.
14943 (w32_load_system_font): Initialize charset as unicode.
14944 font_info.encoding becomes encoding_type.
14945 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14946 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14947 (syms_of_w32fns): Set get_font_repertory_func.
14948
14949 * w32console.c: Include character.h. Use terminal_encode_buffer
14950 from term.c.
14951 (write_glyphs): Use new version of encode_terminal_code. Use
14952 encode_coding_object in place of encode_coding.
14953
14954 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14955 encoding becomes encoding_type.
14956
14957 * term.c (terminal_encode_buffer): Make externally visible.
14958
14959 * makefile.w32-in: Add character.h dependancies.
14960 (character.o, chartab.o): New targets.
14961
149622008-02-01 Kenichi Handa <handa@m17n.org>
14963
14964 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14965 CODING_ID_EOL_TYPE.
14966
149672008-02-01 Andreas Schwab <schwab@suse.de>
14968
14969 * coding.c (produce_chars): Revert last change.
14970
149712008-02-01 Kenichi Handa <handa@m17n.org>
14972
14973 * charset.h (charset_unicode): Extern it.
14974
14975 * charset.c (string_xstring_p): Check by (C >= 0x100).
14976 (find_charsets_in_text): Change format of the arc CHARSETS. New
14977 arg MULTIBYTE.
14978 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14979 change of find_charsets_in_text.
14980 (Fsplit_char): Fix doc. Never return unknown.
14981
14982 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14983
14984 * coding.c (Fdefine_coding_system_alias): Update
14985 Vcoding_system_list.
14986
14987 * fontset.c (load_font_get_repertory): Pay attention to the case
14988 that ENCODING of a font is specified by a char-table.
14989
14990 * xterm.c (x_get_font_repertory): Handle the case that the
14991 encoding of font is other than Unicode.
14992
149932008-02-01 Kenichi Handa <handa@m17n.org>
14994
14995 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14996 if a character is encodable by the terminal coding system. If
14997 not, produces proper number of `?'s. Update
14998 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14999 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15000
150012008-02-01 Kenichi Handa <handa@m17n.org>
15002
15003 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15004 variables.
15005 (encode_terminal_code): Change argument. Encode multiple
15006 characters at once. Store the result of encoding in
15007 terminal_encode_buffer.
15008 (write_glyphs, insert_glyphs): Adjust for the change of
15009 encode_terminal_code.
15010 (term_init): Initialize terminal_encode_buffer and
15011 terminal_encode_buf_size.
15012
15013 * coding.c (consume_chars): If coding->src_object is nil, don't
15014 check annotation.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * character.c (char_string): Use ASCII_CHAR_P instead of
15019 SINGLE_BYTE_CHAR_P.
15020
150212008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * xdisp.c (handle_auto_composed_prop): Check if the last
15024 characters of auto-composed region is newly composed with the
15025 following characters.
15026 (handle_composition_prop): Fix checking of point being inside
15027 composition.
15028
150292008-02-01 Kenichi Handa <handa@m17n.org>
15030
15031 * fns.c (concat): Don't change multibyteness of the result by
15032 concatenating an 8-bit character.
15033
15034 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15035 multibyteness of the result when newelt is an 8-bit character.
15036
150372008-02-01 Dave Love <fx@gnu.org>
15038
15039 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15040 EMACS_INT.
15041
15042 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15043
15044 * xfaces.c (face_numeric_value): Declare dim size_t.
15045 (Finternal_lisp_face_equal_p): Remove unused f.
15046
15047 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15048 (MATRIX_ROW): Remove unused vars.
15049 (draw_glyphs, x_insert_glyphs, fast_find_position)
15050 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15051 byte/char counts.
15052
15053 * regex.c (regex_compile): Remove unused var.
15054
15055 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15056
15057 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15058 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15059
15060 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15061
15062 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15063
15064 * fileio.c (Fwrite_region): Remove unused var.
15065
15066 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15067 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15068
15069 * composite.c (Fremove_list_of_text_properties): Declare.
15070
15071 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15072 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15073 (coding_inherit_eol_type): Remove unused attrs.
15074 (detect_coding): Cast arg of detect_eol.
15075
15076 * charset.c (syms_of_charset): Remove unused var p.
15077 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15078 byte/char counts.
15079
15080 * casetab.c (set_case_table): Remove unused var.
15081
15082 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15083 unused vars.
15084
150852008-02-01 Dave Love <fx@gnu.org>
15086
15087 * xterm.c (x_bitmap_mask): Declare.
15088
150892008-02-01 Dave Love <fx@gnu.org>
15090
15091 * xterm.c (x_term_init): Fix type error.
15092
15093 * lisp.h: Add Funibyte_char_to_multibyte.
15094
15095 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15096 (Fset_coding_system_priority): Doc fix.
15097
15098 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15099
15100 * indent.c (check_composition): Make start and end EMACS_INT.
15101
15102 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15103
15104 * xdisp.c (handle_composition_prop, check_point_in_composition):
15105 Make buffer positions EMACS_INT.
15106
15107 * composite.c (find_composition, run_composition_function)
15108 (update_compositions, Ffind_composition_internal): Make buffer
15109 positions EMACS_INT.
15110
15111 * composite.h (find_composition, update_compositions): Make
15112 position args EMACS_INT.
15113
15114 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15115
15116 * intervals.c (get_property_and_range):
15117 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15118
15119 * unexalpha.c: Don't include varargs.h.
15120
151212008-02-01 Dave Love <fx@gnu.org>
15122
15123 * coding.h (ENCODE_UTF_8): New.
15124
15125 * Makefile.in (gtkutil.o): Depend on coding.h.
15126
15127 * coding.c (Fset_coding_system_priority): Doc fix.
15128
151292008-02-01 Kenichi Handa <handa@m17n.org>
15130
15131 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15132 the case of auto saving.
15133
151342008-02-01 Andreas Schwab <schwab@suse.de>
15135
15136 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15137 `range' from GC.
15138
151392008-02-01 Kenichi Handa <handa@m17n.org>
15140
15141 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15142
151432008-02-01 Kenichi Handa <handa@m17n.org>
15144
15145 * fileio.c (choose_write_coding_system): Return a decided coding system.
15146 (Fwrite_region): Set Vlast_coding_system_used to the return value
15147 of choose_write_coding_system.
15148
151492008-02-01 Kenichi Handa <handa@m17n.org>
15150
15151 * charset.c (Fset_charset_priority): Pay attention to duplicated
15152 arguments.
15153
15154 * coding.c (QCcategory): New variable.
15155 (syms_of_coding): Defsym it. Set all elements of
15156 Vcoding_category_table and their symbol values.
15157 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15158 coding-category-XXX, and coding-category-list.
15159 (Fdefine_coding_system_internal): Add category in the plist.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * callproc.c (Fcall_process): Handle carryover correctly.
15164
15165 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15166 (raw_text_coding_system): Check NILP (coding_system).
15167 (coding_inherit_eol_type): Check NILP (coding_system) and
15168 NILP (parent).
15169 (consume_chars): Fix for the case of raw-text.
15170
15171 * process.c (read_process_output): Handle carryover correctly.
15172
151732008-02-01 Dave Love <fx@gnu.org>
15174
15175 * regex.c (re_search_2): Fix last change.
15176
151772008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15180 target_multibyte. Even in a unibyte case, return a converted
15181 multibyte char.
15182 (GET_CHAR_AFTER): New macro.
15183 (PATFETCH): Translate via multibyte char.
15184 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15185 (SETUP_MULTIBYTE_RANGE): New macro.
15186 (regex_compile): Setup compiled code so that its multibyteness
15187 matches that of a target. Fix the handling of "[X-YZ]" using
15188 SETUP_MULTIBYTE_RANGE.
15189 (analyse_first) <charset>: For filling fastmap for all multibyte
15190 characters, don't check by BASE_LEADING_CODE_P.
15191 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15192 the same as RE_MULTIBYTE_P (bufp) now.
15193 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15194 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15195 (TRANSLATE_VIA_MULTIBYTE): New macro.
15196 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15197 It is the same as RE_MULTIBYTE_P (bufp) now.
15198 <exactn>: Translate via multibyte.
15199 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15200 translate it.
15201 <charset, charset_not>: Fetch a character by
15202 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15203 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15204 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15205 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15206 by GET_CHAR_AFTER.
15207 (bcmp_translate): Likewise.
15208
15209 * search.c (compile_pattern): Check the member target_multibyte,
15210 not the member multibyte of buf.
15211
15212 * lread.c (read1): While reading a string, set force_singlebyte
15213 and force_multibyte correctly.
15214
15215 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15216 up of unibyte_to_multibyte_table.
15217
152182008-02-01 Kenichi Handa <handa@m17n.org>
15219
15220 * coding.c (setup_coding_system): If coding has
15221 post-read-conversion or pre-write-conversion, set
15222 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15223 respectively.
15224 (decode_coding_gap): Run post-read-conversion if any.
15225
15226 * fileio.c (Finsert_file_contents): Even if we read into a
15227 unibyte buffer, check if we must decode the result or not.
15228
152292008-02-01 Kenichi Handa <handa@m17n.org>
15230
15231 * coding.c (make_conversion_work_buffer): Change the work buffer
15232 name to the same one as that of Emacs 21.
15233
152342008-02-01 Kenichi Handa <handa@m17n.org>
15235
15236 * coding.h (make_conversion_work_buffer): Adjust prototype.
15237 (code_conversion_restore): Don't extern it.
15238
15239 * coding.c (detected_mask): Delete unused variable.
15240 (decode_coding_iso_2022): Pay attention to the byte sequence of
15241 CTEXT extended segment, and retain those bytes as is.
15242 (decode_coding_ccl): Delete unused variable `valids'.
15243 (setup_coding_system): Delete unused variable `category'.
15244 (consume_chars): Delete unused variable `category'. Make it work
15245 for non-multibyte case.
15246 (make_conversion_work_buffer): Change argument.
15247 (saved_coding): Delete unused variable.
15248 (code_conversion_restore): Don't check saved_coding->destination.
15249 (code_conversion_save): New function.
15250 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15251 instead of record_unwind_protect.
15252 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15253 (detect_coding_system): Delete unused variable `mask'.
15254 (Fdefine_coding_system_internal): Delete unused variable id.
15255
15256 * fileio.c (kill_workbuf_unwind): New function.
15257 (Finsert_file_contents): On replacing, call
15258 make_conversion_work_buffer with correct args, and call
15259 record_unwind_protect with the first arg kill_workbuf_unwind.
15260
15261 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15262
152632008-02-01 Kenichi Handa <handa@m17n.org>
15264
15265 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15266 (fontset_add): Fix for the case that TO is less than TO1.
15267 (Ffontset_info): Don't use fallback fontset on checking the
15268 default fontset.
15269 (dump_fontset): New function for debugging.
15270
15271 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15272 coding_type is Qcharset.
15273
152742008-02-01 Kenichi Handa <handa@m17n.org>
15275
15276 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15277 (map_char_table): Don't inherit the value from the parent on
15278 initializing VAL. Adjust for the above change.
15279
152802008-02-01 Kenichi Handa <handa@m17n.org>
15281
15282 * coding.c (Qsignature, Qendian): Delete these variables.
15283 (syms_of_coding): Don't initialize them.
15284 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15285 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15286 detect_info->found.
15287 (decode_coding_utf_16): Don't detect BOM here.
15288 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15289 is NOT utf_16_without_bom.
15290 (setup_coding_system): For a coding system of type utf-16, check
15291 if the attribute :endian is Qbig or not (not nil or not), and set
15292 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15293 (detect_coding): If coding type is utf-16 and BOM detection is
15294 required, detect it.
15295 (Fdefine_coding_system_internal): For a coding system of type
15296 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15297
152982008-02-01 Kenichi Handa <handa@m17n.org>
15299
15300 * coding.c (coding_set_source): Fix for the case that the current
15301 buffer is different from coding->src_object.
15302 (decode_coding_object): Don't use the conversion work buffer if
15303 DST_OBJECT is a buffer.
15304
153052008-02-01 Dave Love <fx@gnu.org>
15306
15307 * lread.c (read_emacs_mule_char) [len==2]: Index
15308 emacs_mule_charset correctly.
15309
153102008-02-01 Dave Love <fx@gnu.org>
15311
15312 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15313 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15314 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15315 treated specially.)
15316 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15317 (detected_mask): Remove Big5 bits.
15318
153192008-02-01 Kenichi Handa <handa@m17n.org>
15320
15321 The following changes are to make the font rescaling facility
15322 compatible with Emacs 21.
15323
15324 * xfaces.c (Vface_font_rescale_alist): Rename from
15325 Vface_resizing_fonts.
15326 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15327 (font_rescale_ratio): Rename from font_resizing_ratio.
15328 (split_font_name): Set font->rescale_ratio.
15329 (better_font_p): Pay attention to font->rescale_ratio.
15330 (build_scalable_font_name): Likewise. Change RESX, and RESY
15331 fields.
15332 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15333
153342008-02-01 Kenichi Handa <handa@m17n.org>
15335
15336 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15337 (Qutf_16_le): Remove these variables.
15338 (syms_of_coding): Don't DEFSYM them.
15339 (decode_coding_utf_16): Fix handling of BOM.
15340 (encode_coding_utf_16): Fix handling of BOM.
15341
153422008-02-01 Kenichi Handa <handa@m17n.org>
15343
15344 * fileio.c (Finsert_file_contents): On replacing, before decoding
15345 the file into the work buffer, set point of the work buffer to the end.
15346
153472008-02-01 Dave Love <fx@gnu.org>
15348
15349 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15350
153512008-02-01 Dave Love <fx@gnu.org>
15352
15353 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15354 and fix C types.
15355
153562008-02-01 Kenichi Handa <handa@m17n.org>
15357
15358 * xdisp.c (SKIP_GLYPHS): New macro.
15359 (set_cursor_from_row): Pay attention to string display properties.
15360
15361 * category.c (copy_category_entry): Fix for the case that RANGE
15362 is an integer.
15363
15364 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15365
15366 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15367
153682008-02-01 Kenichi Handa <handa@m17n.org>
15369
15370 * charset.c (Fcharset_id_internal): New function.
15371 (syms_of_charset): Defsubr it.
15372
15373 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15374 with the last arg charset_list acquired from coding.
15375 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15376 the attribute coding_attr_ccl_valids.
15377
15378 * coding.h (enum define_coding_ccl_arg_index): Set the first
15379 member coding_arg_ccl_decoder to coding_arg_max.
15380
15381 * ccl.h (ccl_driver): Adjust prototype.
15382
15383 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15384 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15385 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15386 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15387 last arg Qnil.
15388
153892008-02-01 Kenichi Handa <handa@m17n.org>
15390
15391 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15392 call encode_char.
15393
15394 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15395
153962008-02-01 Dave Love <fx@gnu.org>
15397
15398 * composite.c (syms_of_composite): Make composition_hash_table weak.
15399
154002008-02-01 Kenichi Handa <handa@m17n.org>
15401
15402 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15403 (font_name_registry): Don't extern them.
15404 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15405
15406 * fontset.h (Qfontset): Don't extern it.
15407 (new_fontset_from_font_name): Extern it.
15408
15409 * fontset.c: Give 8 extra slots to fontset objects.
15410 (Qfontset_info): New variable.
15411 (syms_of_fontset): Defsym it.
15412 (FONTSET_FALLBACK): New macro.
15413 (fontset_face): Try also the default fontset.
15414 (make_fontset): Realize a fallback fontset from the default fontset.
15415 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15416 using split_font_name_into_vector and build_font_name_from_vector.
15417 (Fset_fontset_font): Access the elements of font_spec by enum
15418 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15419 name by using split_font_name_into_vector.
15420 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15421 generate a proper font name from the fontset name. Update
15422 Vfontset_alias_alist.
15423 (n_auto_fontsets): New variable.
15424 (new_fontset_from_font_name): New function.
15425 (Ffont_info): Store the information about fonts generated from the
15426 default fontset in the first extra slot of the returned char-table.
15427
15428 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15429 (font_name_registry): Delete function.
15430 (split_font_name_into_vector): New function.
15431 (build_font_name_from_vector): New function.
15432 (font_list): The argument REGISTRY is now a list of registry names.
15433 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15434 specifies an explicit font name, return the name as is. Make a
15435 list of registy names.
15436
15437 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15438 of x_new_fontset.
15439 (Fx_create_frame): Don't call x_new_fontset here. Just use
15440 x_list_fonts to check the existence of fonts.
15441
15442 * xterm.h (x_new_fontset): Adjust prototype.
15443
15444 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15445 string. Use new_fontset_from_font_name to create a fontset from a
15446 font name.
15447
154482008-02-01 Kenichi Handa <handa@m17n.org>
15449
15450 * syntax.c (Vfind_word_boundary_function_table): New name for
15451 Vnext_word_boundary_function_table.
15452 (find-word-boundary-function-table): New name for
15453 next-word-boundary-function-table.
15454
154552008-02-01 Dave Love <fx@gnu.org>
15456
15457 * Makefile.in: Fix some dependencies.
15458
15459 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15460 set it to nil before returning.
15461
15462 * composite.c (update_compositions): Fix type error.
15463
15464 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15465
154662008-02-01 Kenichi Handa <handa@m17n.org>
15467
15468 * xterm.c (x_new_font): Optimize for the case that the font is
15469 already set for the frame.
15470
154712008-02-01 Kenichi Handa <handa@m17n.org>
15472
15473 * chartab.c (char_table_ascii): Check if the char table contents
15474 is sub-char-table or not.
15475 (char_table_set, char_table_set_range): Fix argument to
15476 char_table_ascii.
15477
15478 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15479 (detect_coding_utf_8, detect_coding_utf_16)
15480 (detect_coding_emacs_mule, detect_coding_iso_2022)
15481 (detect_coding_sjis, detect_coding_big5)
15482 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15483 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15484 sequence is valid in this coding system. Change callers.
15485 (MAX_ANNOTATION_LENGTH): New macro.
15486 (ADD_ANNOTATION_DATA): New macro.
15487 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15488 ADD_ANNOTATION_DATA. Change the format of annotation data.
15489 (ADD_CHARSET_DATA): New macro.
15490 (emacs_mule_char): New argument ID. Change callers.
15491 (decode_coding_emacs_mule, decode_coding_iso_2022)
15492 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15493 Produce charset annotation data in coding->charbuf.
15494 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15495 to charset annotation data in coding->charbuf.
15496 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15497 coding->common_flags if the coding system is iso-2022 based and
15498 uses designation.
15499 (produce_composition): Adjust for the new annotation data format.
15500 (produce_charset): New function.
15501 (produce_annotation): Handle charset annotation.
15502 (handle_composition_annotation, handle_charset_annotation): New
15503 functions.
15504 (consume_chars): Handle charset annotation. Utilize the above two
15505 functions.
15506 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15507 buffer, get the deleted text as a string and set
15508 coding->src_object to that string.
15509 (detect_coding, detect_coding_system): Use the new struct
15510 coding_detection_info.
15511
15512 * coding.h (struct coding_detection_info): New structure.
15513 (struct coding_system): Adjust prototype of the member `detector'.
15514 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15515
155162008-02-01 Kenichi Handa <handa@m17n.org>
15517
15518 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15519
155202008-02-01 Dave Love <fx@gnu.org>
15521
15522 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15523 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15524 to new local and nullify apropos_accumulate before returning.
15525 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15526
155272008-02-01 Kenichi Handa <handa@m17n.org>
15528
15529 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15530 correctly.
e3eea1fc 15531
aac0c6e3
MR
155322008-02-01 Dave Love <fx@gnu.org>
15533
15534 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15535
155362008-02-01 Kenichi Handa <handa@m17n.org>
15537
15538 The following changes are to make character composition happen
15539 automatically on displaying.
15540
15541 * Makefile.in (lisp, shortlisp): Add composite.elc.
15542
15543 * composite.h (Qauto_composed, Vauto_composition_function)
15544 (Qauto_composition_function): Extern them.
15545
15546 * composite.c (Vcomposition_function_table)
15547 (Qcomposition_function_table): Delete variables.
15548 (Qauto_composed, Vauto_composition_function)
15549 (Qauto_composition_function): New variables.
15550 (run_composition_function): Don't call
15551 compose-chars-after-function.
15552 (update_compositions): Clear `auto-composed' text property.
15553 (compose_chars_in_text): Delete this function.
15554 (syms_of_composite): Staticpro Qauto_composed and
15555 Qauto_composition_function. Declare Vauto_composition_function as
15556 a Lisp variable.
15557
15558 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15559
15560 * xdisp.c (it_props): Add an entry for Qauto_composed.
15561 (handle_auto_composed_prop): New function.
15562
15563 * xselect.c (selection_data_to_lisp_data): Don't call
15564 compose_chars_in_text.
15565
155662008-02-01 Dave Love <fx@gnu.org>
15567
15568 * keyboard.c (read_char): Modify checking around use of
15569 Vkeyboard_translate_table.
15570
15571 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15572 and fix C types.
15573
155742008-02-01 Kenichi Handa <handa@m17n.org>
15575
15576 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15577 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15578 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15579 the case that the last byte is '\r' correctly.
15580 (decode_coding): Flush out the unprocessed data correctly.
15581 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15582
155832008-02-01 Dave Love <fx@gnu.org>
15584
15585 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15586 Add XK_ISO... case.
15587 (xaw_scroll_callback): Revert last change.
15588
155892008-02-01 Kenichi Handa <handa@m17n.org>
15590
15591 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15592
155932008-02-01 Kenichi Handa <handa@m17n.org>
15594
15595 * xfaces.c (Vface_resizing_fonts): New variable.
15596 (struct font_name): New member `resizing_ratio'.
15597 (font_resizing_ratio): New function.
15598 (split_font_name): Set font->resizing_ratio.
15599 (better_font_p): Pay attention to font->resizing_ratio.
15600 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15601 RESX, and RESY fields.
15602 (try_alternative_families): Try scalable fonts if
15603 Vscalable_fonts_allowed is not Qt.
15604 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15605
156062008-02-01 Dave Love <fx@gnu.org>
15607
15608 * xterm.c (xaw_scroll_callback): Cast correctly.
15609
156102008-02-01 Dave Love <fx@gnu.org>
15611
15612 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15613 (lispy_kana_keys): Comment out.
15614 (make_lispy_event) [XK_kana_A]: Comment out.
15615
15616 * xterm.c (xaw_scroll_callback): Cast call_data.
15617 (XTread_socket): Deal with ASCII keysyms.
15618 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15619
156202008-02-01 Dave Love <fx@gnu.org>
15621
15622 * xterm.c (Vx_keysym_table): New.
15623 (syms_of_xterm): Initialize it.
15624 (XTread_socket): Use it.
15625 From head: Eliminate incorrect optimization that tried to avoid
15626 decoding the output of X*LookupString.
15627 (x_get_font_repertory): Delete charset declaration.
15628
156292008-02-01 Kenichi Handa <handa@m17n.org>
15630
15631 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15632 return 0.
15633 (Fdefine_coding_system_internal): Setup
15634 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15635
156362008-02-01 Dave Love <fx@gnu.org>
15637
15638 * coding.c (Fcheck_coding_system): Doc fix.
15639
15640 * editfns.c (Finsert_byte): Return a proper value.
15641
156422008-02-01 Kenichi Handa <handa@m17n.org>
15643
15644 * coding.c (decode_coding): Fix args to translate_chars. Pay
15645 attention to Vstandard_translation_table_for_decode.
15646 (encode_coding): Fix args to translate_chars. Pay attention to
15647 Vstandard_translation_table_for_encode.
15648
15649 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15650 SINGLE_BYTE_CHAR_P.
15651
15652 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15653 not by SINGLE_BYTE_CHAR_P.
15654
15655 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15656 SINGLE_BYTE_CHAR_P.
15657
15658 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15659 SINGLE_BYTE_CHAR_P.
15660
15661 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15662 by SINGLE_BYTE_CHAR_P.
15663
15664 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15665 SINGLE_BYTE_CHAR_P.
15666
156672008-02-01 Dave Love <fx@gnu.org>
15668
15669 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15670
156712008-02-01 Dave Love <fx@gnu.org>
15672
15673 * fns.c (Flanginfo): Fix typo.
15674
15675 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15676
156772008-02-01 Kenichi Handa <handa@m17n.org>
15678
15679 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15680 (detect_coding_emacs_mule, detect_coding_iso_2022)
15681 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15682 incomplete byte sequence. Don't update *mask when correctly detected.
15683 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15684 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15685 (detect_coding, detect_coding_system): Adjust for the changes above.
15686
156872008-02-01 Kenichi Handa <handa@m17n.org>
15688
15689 * character.c (char_string): Rename from
15690 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15691 (string_char): Rename from string_char.
15692
15693 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15694 if C is greater than MAX_3_BYTE_CHAR.
15695 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15696 string_char instead of string_char_with_unification.
15697
156982008-02-01 Dave Love <fx@gnu.org>
15699
15700 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15701
157022008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 * keymap.c (push_key_description): Pay attention to force_multibyte.
15705
15706 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15707
157082008-02-01 Dave Love <fx@gnu.org>
15709
15710 * charset.c (define_charset_internal): Rename `supprementary'.
15711
15712 * Makefile.in (lisp, shortlisp): Remove latin-N.
15713
157142008-02-01 Dave Love <fx@gnu.org>
15715
15716 * xfns.c (x_window, x_window): Use use_xim.
15717
15718 * xterm.c (use_xim): Initialize.
15719 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15720 (x_term_init): Maybe set use_xim.
15721
15722 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15723
157242008-02-01 Kenichi Handa <handa@m17n.org>
15725
15726 * search.c (search_buffer): Fix case-fold-search of multibyte
15727 characters.
15728 (boyer_moore): Rename the last argument to char_high_bits.
15729
157302008-02-01 Kenichi Handa <handa@m17n.org>
15731
15732 * xdisp.c (display_string): Fix for the case of zero width glyph.
15733
15734 * xfns.c (x_set_font): Change the error message of the case that
15735 x_new_fontset returns Qt.
15736
15737 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15738 (Finternal_set_lisp_face_attribute): Use signal_error for the
15739 error of invalid fontset.
15740
15741 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15742 fontset, return Qt.
15743
157442008-02-01 Dave Love <fx@gnu.org>
15745
15746 * unexelf.c (unexec): Make .got handling not SGI-specific.
15747
15748 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15749
15750 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15751
15752 * keyboard.c (read_key_sequence): Fix type error.
15753
15754 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15755 type error.
15756
15757 * fontset.c (fontset_add): Return Lisp_Object.
15758
157592008-02-01 Dave Love <fx@gnu.org>
15760
15761 * charset.h (charset_ordered_list_tick): Declare extern.
15762
157632008-02-01 Kenichi Handa <handa@m17n.org>
15764
15765 The following changes (and some of 2008-02-01 changes of mine) are
15766 for handling syntax, category, and case conversion for unibyte
15767 characters by converting them to multibyte on the fly. With these
15768 changes, we don't have to setup syntax and case tables for unibyte
15769 characters in each language environment.
15770
15771 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15772 multibyte if necessary.
15773
15774 * bytecode.c (Fbyte_code): Likewise.
15775
15776 * character.h (LEADING_CODE_LATIN_1_MIN)
15777 (LEADING_CODE_LATIN_1_MAX): New macros.
15778 (unibyte_to_multibyte_table): Extern it.
15779 (unibyte_char_to_multibyte): New macro.
15780 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15781 (CHAR_LEADING_CODE): New macro.
15782 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15783
15784 * character.c (unibyte_to_multibyte_table): New variable.
15785 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15786 (multibyte_char_to_unibyte): If C is an eight-bit character,
15787 convert it to the corresponding byte value.
15788
15789 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15790 not 1, signals an error. Update the elements of
15791 unibyte_to_multibyte_table.
15792 (init_charset_once): Initialize unibyte_to_multibyte_table.
15793 (syms_of_charset): Define the charset `iso-8859-1'.
15794
15795 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15796 as is without converting it to unibyte. In a unibyte buffer,
15797 convert C to multibyte before checking the syntax.
15798
15799 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15800
15801 * minibuf.c (Fminibuffer_complete_word): Use the macro
15802 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15803
15804 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15805
15806 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15807 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15808 that is zero, convert an eight-bit char to multibyte.
15809 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15810 non-emacs case.
15811 (PATFETCH): Convert an eight-bit char to multibyte.
15812 (HANDLE_UNIBYTE_RANGE): New macro.
15813 (regex_compile): Setup the compiled pattern for multibyte chars
15814 even if the given regex string is unibyte. Use PATFETCH_RAW
15815 instead of PATFETCH in many places. To handle `charset'
15816 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15817 only for ASCII chars.
15818 (analyse_first) <exactn>: Simplify because the compiled pattern
15819 is multibyte.
15820 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15821 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15822 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15823 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15824 multibyte always 1.
15825 (re_search_2): In emacs, set the locale variable multibyte to 1,
15826 otherwise to 0. New local variable target_multibyte. Check it
15827 to decide the multibyteness of STR1 and STR2. If
15828 target_multibyte is zero, convert unibyte chars to multibyte
15829 before translating and checking fastmap.
15830 (TARGET_CHAR_AND_LENGTH): New macro.
15831 (re_match_2_internal): In emacs, set the locale variable multibyte
15832 to 1, otherwise to 0. New local variable target_multibyte. Check
15833 it to decide the multibyteness of STR1 and STR2. Use
15834 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15835 <charset, charset_not>: If multibyte is nonzero, check fastmap
15836 only for ASCII chars. Call bcmp_translate with
15837 target_multibyte, not with multibyte.
15838 <begline>: Declare the local variable C as `unsigned'.
15839 (bcmp_translate): Change the last arg name to target_multibyte.
15840
15841 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15842 the regexp pattern and the matching target. Set cp->buf.multibyte
15843 to the multibyteness of the regexp pattern. Set
15844 cp->but.target_multibyte to the multibyteness of the matching target.
15845 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15846 FETCH_STRING_CHAR_ADVANCE.
15847 (Freplace_match): Convert unibyte chars to multibyte.
15848
15849 * syntax.c (char_quoted, back_comment, scan_words)
15850 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15851 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15852 unibyte chars to multibyte.
15853 (skip_chars): Delete the arg syntaxp, and move the code for
15854 handling syntaxes to skip_syntaxes. Change callers.
15855 Fix the case that the multibyteness of STRING and the current
15856 buffer doesn't match.
15857 (skip_syntaxes): New function.
15858 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15859 SINGLE_BYTE_CHAR_P.
15860
158612008-02-01 Kenichi Handa <handa@m17n.org>
15862
15863 * xfaces.c (QCfontset): New variable.
15864 (LFACE_FONTSET): New macro.
15865 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15866 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15867 (Finternal_set_lisp_face_attribute)
15868 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15869 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15870 check also LFACE_FONTSET_INDEX.
15871 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15872 attrs[LFACE_FONT_INDEX].
15873 (syms_of_xfaces): Intern and staticpro QCfontset.
15874
15875 * dispextern.h (enum lface_attribute_index): New member
15876 LFACE_FONTSET_INDEX.
15877
15878 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15879
158802008-02-01 Kenichi Handa <handa@m17n.org>
15881
15882 * coding.c (coding_set_destination): Fix coding->destination for
15883 the case converting a region.
15884 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15885 (encode_coding_object): Fix coding->dst_pos and
15886 coding->dst_pos_byte for the case converting a region.
15887
15888 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15889
15890 * character.h (BYTE8_STRING): New macro.
15891
15892 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15893
158942008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15897 characters by octal form.
15898
15899 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15900
15901 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15902 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15903 _fetch_multibyte_char_len.
15904 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15905
15906 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15907
15908 * casefiddle.c (casify_object): Simplify. Handle the case that
15909 the case conversion change the byte length.
15910 (casify_region): Likewise.
15911
15912 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15913
15914 * character.c (_fetch_multibyte_char_len): Delete this variable.
15915 (syms_of_character): Setup Vprintable_chars.
15916
15917 * editfns.c (Fchar_equal): Fix for the unibyte case.
15918 (Finsert_byte): New function.
15919 (syms_of_editfns): Defsubr it.
15920
15921 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15922 of direct code 0x3ffff.
15923
15924 * search.c (Freplace_match): Fix for the unibyte case.
15925
159262008-02-01 Kenichi Handa <handa@m17n.org>
15927
15928 * lread.c (safe_to_load_p): Fix the logic.
15929
15930 * syntax.c (scan_words): Don't treat characters belonging to
15931 different scripts as constituting a word.
15932
15933 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15934
15935 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15936
15937 * emacs.c (main): In the case of --unibyte, instead of aborting on
15938 finding non-empty buffer, make it unibyte.
15939
159402008-02-01 Kenichi Handa <handa@m17n.org>
15941
15942 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15943 to create a fontset.
15944
159452008-02-01 Dave Love <fx@gnu.org>
15946
15947 * character.c (Funibyte_char_to_multibyte): Doc fix.
15948
15949 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15950
159512008-02-01 Kenichi Handa <handa@m17n.org>
15952
15953 * fontset.c (fontset_add): Make the type `int'.
15954 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15955
15956 * character.c (unibyte_char_to_multibyte)
15957 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15958 charset_unibyte, not charset_primary.
15959
15960 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15961
15962 * charset.c (charset_unibyte): Rename from charset_primary.
15963 (Funibyte_charset): Rename from Fprimary_charset.
15964 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15965 (syms_of_charset): Adjust for the above changes.
15966
15967 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15968 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15969 it->multibyte_p is zero.
15970
15971 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15972 Delete extern.
15973
159742008-02-01 Kenichi Handa <handa@m17n.org>
15975
15976 * coding.c (Fdefine_coding_system_internal): Fix category setting
15977 for a coding system of type iso-2022.
15978
159792008-02-01 Kenichi Handa <handa@m17n.org>
15980
15981 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15982
159832008-02-01 Kenichi Handa <handa@m17n.org>
15984
15985 * syntax.c (Vnext_word_boundary_function_table): New variable.
15986 (next-word-boundary-function-table): Declare it as a Lisp variable
15987 in syms_of_syntax.
15988 (scan_words): Call functions in Vnext_word_boundary_function_table
15989 if any.
15990
15991 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15992
15993 * fontset.c (fs_load_font): If fontp->charset is not negative,
15994 return fontp without setting its members.
15995
159962008-02-01 Dave Love <fx@gnu.org>
15997
15998 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15999
16000 * m/sparc.h (HAVE_ALLOCA): Delete.
16001
16002 * s/irix6-5.h: Don't include strings.h.
16003 (bcopy, bzero, bcmp): Don't undef.
16004
16005 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16006
16007 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16008 (TIOCSIGSEND): Don't test IRIX6.
16009 (bcopy, bzero, bcmp): Define conditionally.
16010
160112008-02-01 Kenichi Handa <handa@m17n.org>
16012
16013 * buffer.c (Qas, Qmake, Qto): New variables.
16014 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16015 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16016
16017 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16018 we are inserting a process output into a multibyte buffer.
16019
16020 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16021 multibyte_char_to_unibyte.
16022
16023 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16024 by the primary charset, make it eight-bit char.
16025 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16026
16027 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16028 (charset_8_bit__control, charset_8_bit_graphic)
16029 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16030 (define_charset_internal): New function.
16031 (syms_of_charset): Call define_charset_internal for pre-defined
16032 charsets.
16033
16034 * charset.h (charset_8_bit): Extern it.
16035
16036 * coding.c (make_conversion_work_buffer): Adjust for the change
16037 of Fset_buffer_multibyte.
16038 (encode_coding_raw_text): Increment p0 in the loop.
16039
16040 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16041
16042 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16043 for the change of Fset_buffer_multibyte.
16044
16045 * fns.c (Fstring_to_multibyte): New function.
16046 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16047
160482008-02-01 Dave Love <fx@gnu.org>
16049
16050 * xfns.c (x_put_x_image): Declare args.
16051
16052 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16053 (try_font_list): Declare an arg.
16054
16055 * xdisp.c (message2_nolog, set_message): Declare an arg.
16056
16057 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16058
16059 * syntax.c (scan_sexps_forward): Declare an arg.
16060
16061 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16062 Declare an arg.
16063
16064 * lisp.h (Fnew_fontset): Declare.
16065
16066 * keymap.c (push_key_description): Call CHARACTERP correctly.
16067
16068 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16069 (face_for_char): Delete unused vars.
16070 (Fset_fontset_font): Doc fix. Delete unused vars.
16071
16072 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16073
16074 * composite.c (update_compositions): Declare arg.
16075
16076 * cm.c (calccost, cmgoto): Declare args.
16077
16078 * charset.c: Remove `emacs' conditional. Doc fixes.
16079 (map_char_table_for_charset): Declare.
16080
16081 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16082
16083 * ccl.c: Remove `emacs' conditional.
16084
160852008-02-01 Kenichi Handa <handa@m17n.org>
16086
16087 The following changes are to allow specifying multiple font
16088 patterns for a character range (specified by script or charset).
16089
16090 * Makefile.in (abbrev.o): Depend on syntax.h.
16091 (xfaces.o): Depend on charset.h.
16092
16093 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16094 SINGLE_BYTE_CHAR_P.
16095
16096 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16097
16098 * character.h (Vchar_script_table): Extern it.
16099
16100 * character.c (Vscript_alist): Delete.
16101 (Vchar_script_table, Qchar_script_table): New variable.
16102 (syms_of_character): Declare Vchar_script_table as a lisp variable
16103 and initialize it.
16104
16105 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16106 have property char-table-extra-slots, make no extra slot.
16107
16108 * dispextern.h (struct face): Delete member `charset'.
16109 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16110 SINGLE_BYTE_CHAR_P.
16111 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16112 Add prototypes.
16113 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16114 (generate_ascii_font_name): Rename from generate_ascii_font.
16115
16116 * fontset.h (get_font_repertory_func): New prototype.
16117 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16118 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16119
16120 * fontset.c (Qprepend, Qappend): New variables.
16121 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16122 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16123 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16124 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16125 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16126 (load_font_get_repertory): New functions.
16127 (fontset_set): Delete.
16128 (fontset_face): New arg FACE. Return face ID, not face.
16129 Complete re-write to handle new fontset structure. Change caller.
16130 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16131 (face_for_char): Don't call lookup_face.
16132 (make_fontset_for_ascii_face): New arg FACE.
16133 (fs_load_font): New arg CHARSET_ID. Don't check
16134 Vfont_encoding_alist here.
16135 (find_font_encoding): New function.
16136 (list_fontsets): Use STRINGP, not ! NILP.
16137 (accumulate_script_ranges): New function.
16138 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16139 re-written to handle new fontset structure.
16140 (Ffontset_font): Return a copy of element.
16141 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16142 docstring of font-encoding-alist.
16143
16144 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16145 (Fset_fotset_font): Fix arguments to 5.
16146
16147 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16148
16149 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16150 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16151 (highlight_trailing_whitespace): Adjust for the change of
16152 lookup_named_face.
16153
16154 * xfaces.c: Include charset.h.
16155 (load_face_font): Delete argument C. Change caller.
16156 (generate_ascii_font_name): Rename from generate_ascii_font.
16157 (font_name_registry): New function.
16158 (cache_face): Store ascii faces before non-ascii faces in buckets.
16159 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16160 Lookup only ascii faces.
16161 (lookup_non_ascii_face): New function.
16162 (lookup_named_face): Delete argument C. Change caller.
16163 (lookup_derived_face): Delete argument C. Change caller.
16164 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16165 a string, just call font_list with it.
16166 (choose_face_font): Delete arguments FACE and C. New arg
16167 FONT_SPEC. Change caller.
16168 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16169 Change caller.
16170 (realize_non_ascii_face): New function.
16171 (realize_x_face): Call load_face_font here.
16172 (realize_tty_face): Delete argument C. Change caller.
16173 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16174 get a face ID.
16175 (dump_realized_face): Don't print charset of FACE.
16176
16177 * xfns.c (x_set_font): Always call x_new_fontset and
16178 store_frame_parameter.
16179 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16180 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16181
16182 * xterm.h (x_get_font_repertory): Extern it.
16183
16184 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16185 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16186 it->multibyte_p is zero.
16187 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16188 (x_new_fontset): If FONTSETNAME doesn't match any existing
16189 fontsets, create a new one.
16190 (x_get_font_repertory): New function.
16191
161922008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * coding.c (Ffind_coding_systems_region_internal): Detect an
16195 ASCII only string correctly.
16196
16197 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16198 version is 0.
16199
162002008-02-01 Kenichi Handa <handa@m17n.org>
16201
16202 * lread.c: Include "coding.h".
16203 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16204 (load_each_byte, unread_char): New variables.
16205 (readchar_backlog): Delete.
16206 (readchar): Return a character unless load_each_byte is nonzero.
16207 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16208 cons. If unread_char is not -1, simply return it.
16209 (unreadchar): Handle the case that readcharfun is
16210 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16211 (read_multibyte): Delete.
16212 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16213 (read_emacs_mule_char): New functions.
16214 (Fload): Even if the file doesn't have the extension ".elc", if
16215 safe_to_load_p returns a positive version number, assume that the
16216 file contains bytecompiled code. If the version is less than 22,
16217 load the file while decoding multibyte sequences by emacs-mule.
16218 (readevalloop): Don't use readchar_backlog.
16219 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16220 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16221 (read_escape): Delete the arg BYTEREP.
16222 (read1): Set load_each_byte to 1 temporarily while handling
16223 #@NUMBER. Don't call read_multibyte.
16224 (read_vector): Call Fread with a cons. If readcharfun is
16225 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16226 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16227 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16228 and Qload_force_doc_strings.
16229
162302008-02-01 Kenichi Handa <handa@m17n.org>
16231
16232 * xdisp.c (face_before_or_after_it_pos): Call
16233 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * character.h (TRAILING_CODE_P): New macro.
16238 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16239 (string_char_with_unification): Fix prototype.
16240 (Vscript_alist): Extern it.
16241
16242 * character.c (Vscript_alist): New variable.
16243 (string_char_with_unification, str_as_unibyte)
16244 (string_escape_byte8): Add `const' to local variables.
16245 (syms_of_character): Declare script-alist as a Lisp variable.
16246
16247 * charset.h (Vcharset_ordered_list): Extern it.
16248 (charset_ordered_list_tick): Extern it.
16249 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16250 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16251 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16252 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16253 (Funify_charset): Adjust for the change of Funify_charset.
16254
16255 * charset.c (charset_ordered_list_tick): New variable.
16256 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16257 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16258 deunify intead of unify a charset.
16259 (string_xstring_p): Add `const' to local variables.
16260 (find_charsets_in_text): Add `const' to arguments and local variables.
16261 (encode_char): Adjust for the change of Funify_charset. Fix
16262 detecting of invalid code.
16263 (Fset_charset_priority): Increment charset_ordered_list_tick.
16264 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16265 and TO_CODE.
16266
16267 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16268 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16269 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16270 (decode_coding_ccl, consume_chars)
16271 (Ffind_coding_systems_region_internal)
16272 (Fcheck_coding_systems_region): Add `const' to local variables.
16273
16274 * print.c (print_object): Use octal form for printing the
16275 contents of a bool vector.
16276
162772008-02-01 Dave Love <fx@gnu.org>
16278
16279 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16280 <version == 20>: Refuse to load.
16281
162822008-02-01 Dave Love <fx@gnu.org>
16283
16284 * fns.c: Move coding.h.
16285 (Qcodeset, Qdays, Qmonths): New.
16286 (concat): Use CHARACTERP instead of INTEGERP.
16287 (Flocale_codeset): Delete.
16288 (Flanginfo): New function.
16289 (syms_of_fns): Change accordingly.
16290
16291 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16292
162932008-02-01 Dave Love <fx@gnu.org>
16294
16295 * casetab.c (init_casetab_once, init_casetab_once): Fix
16296 CHAR_TABLE_SET call.
16297
16298 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16299
16300 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16301
16302 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16303 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16304 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16305
16306 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16307
16308 * coding.c (ENCODE_DESIGNATION, decode_eol)
16309 (make_conversion_work_buffer, code_conversion_restore)
16310 (Fdefine_coding_system_internal): Convert Lisp types.
16311 (code_conversion_restore): Use EQ, not ==.
16312 (Fencode_coding_string): Fix code_convert_string call.
16313
16314 * coding.h (code_convert_region): Fix prototype.
16315
16316 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16317
16318 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16319 (Ffontset_info): Convert Lisp types.
16320
16321 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16322
16323 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16324
16325 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16326
16327 * chartab.c: Include "...h", not <...h> in some cases.
16328
16329 * callproc.c (Fcall_process): Remove unused variables.
16330
163312008-02-01 Dave Love <fx@gnu.org>
16332
16333 * coding.c (Fset_coding_system_priority): Allow null arg list.
16334
163352008-02-01 Dave Love <fx@gnu.org>
16336
16337 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16338 (Fself_insert_and_exit): Use CHARACTERP.
16339
16340 * callproc.c (Fcall_process): Remove unused vars.
16341
16342 * xterm.c (XTread_socket): Add extra dead keysyms.
16343
16344 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16345
16346 * dispextern.h: Remove prototypes for redraw_frame,
16347 redraw_garbaged_frames.
16348
16349 * cmds.c (Fself_insert_command): Use CHARACTERP.
16350
16351 * chartab.c (make_sub_char_table): Remove unused var.
16352 (Fset_char_table_default, Fmap_char_table): Doc fix.
16353
16354 * keymap.c (access_keymap): Remove generic char code.
16355 (push_key_description): Use CHARACTERP.
16356
163572008-02-01 Dave Love <fx@gnu.org>
16358
16359 * charset.c: Doc fixes.
16360 (Funify_charset): Extra checking.
16361
163622008-02-01 Dave Love <fx@gnu.org>
16363
16364 * lread.c: Remove some unused variables.
16365 (safe_to_load_p): If safe, return the magic number version byte.
16366 (Fload): Maybe use load-with-code-conversion.
16367
163682008-02-01 Kenichi Handa <handa@m17n.org>
16369
16370 * category.c (Fmodify_category_entry): Don't modify the contents
16371 of category_set for characters out of the range. Avoid
16372 unnecessary modification.
16373
16374 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16375 Vchar_unify_table. The default value of the table is now nil.
16376
16377 * character.c (syms_of_character): Setup Vchar_width_table for
16378 eight-bit-control and raw-byte chars.
16379
16380 * charset.h (enum define_charset_arg_index): Delete
16381 charset_arg_parents and add charset_arg_subset and
16382 charset_arg_superset.
16383 (enum charset_attr_index): Delete charset_parents and add
16384 charset_subset and charset_superset.
16385 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16386 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16387 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16388 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16389 (CHARSET_SUPERSET): New macros.
16390 (charset_work): Extern it.
16391 (ENCODE_CHAR): Use charset_work.
16392 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16393 (map_charset_chars): Extern it.
16394
16395 * charset.c (load_charset_map): Set the default value of encoder
16396 and deunifier char-tables to nil.
16397 (map_charset_chars): Change argument. Change callers. Use
16398 map_char_table_for_charset instead of map_char_table.
16399 (Fmap_charset_chars): New optional args from_code and to_code.
16400 (Fdefine_charset_internal): Adjust for the change of
16401 `define-charset' (:parents -> :subset or :superset).
16402 (charset_work): New variable.
16403 (encode_char, syms_of_charset): Adjust for the change of
16404 Fdefine_charset_internal.
16405 (Ffind_charset_string): Setup the vector `charsets' correctly.
16406
16407 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16408 the previous change.
16409 (char_table_ref_and_range): Adjust for the above change.
16410 (map_sub_char_table_for_charset): New function.
16411 (map_char_table_for_charset): New function.
16412
16413 * keymap.c (describe_vector): Handle a char-table directly here.
16414 (describe_char_table): Delete.
16415
16416 * lisp.h (map_charset_chars): Delete.
16417
164182008-02-01 Dave Love <fx@gnu.org>
16419
16420 * fns.c (count_combining): Comment out (unused).
16421 (Flocale_codeset): New.
16422 (syms_of_fns): Defsubr it.
16423
16424 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16425 (size_t): Remove.
16426
164272008-02-01 Dave Love <fx@gnu.org>
16428
16429 * Makefile.in (chartab.o): Depend on charset.h.
16430
164312008-02-01 Kenichi Handa <handa@m17n.org>
16432
16433 * character.c (syms_of_character): Set the default value of
16434 Vprintable_chars to Qnil.
16435
164362008-02-01 Dave Love <fx@gnu.org>
16437
16438 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16439
164402008-02-01 Kenichi Handa <handa@m17n.org>
16441
16442 * charset.c (load_charset_map): Handle the case that from < to
16443 correctly.
16444
16445 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16446 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16447 Pay attention to raw-8-bit chars.
16448
164492008-02-01 Kenichi Handa <handa@m17n.org>
16450
16451 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16452 It is not bytecompiled now.
16453
16454 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16455 (charset_jisx0208): New variables.
16456 (Fdefine_charset_internal): Setup them if appropriate.
16457 (init_charset_once): Initialize them to -1.
16458
16459 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16460 (charset_jisx0208): Extern them.
16461
16462 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16463 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16464 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16465 (setup_iso_safe_charsets): Fix arguments to Fassq.
16466 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16467 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16468 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16469 (encode_coding_iso_2022): Change the 1st arg to
16470 ENCODE_ISO_CHARACTER to a variable.
16471
164722008-02-01 Kenichi Handa <handa@m17n.org>
16473
16474 * charset.h (enum define_charset_arg_index): New enums
16475 charset_arg_min_code and charset_arg_max_code.
16476 (struct charset): New member char_index_offset.
16477
16478 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16479 Take charset->char_index_offset into account.
16480 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16481 args[charset_arg_max_code]. Setup charset.char_index_offset.
16482 (syms_of_charset): Fix args to Fdefine_charset_internal.
16483
164842008-02-01 Dave Love <fx@gnu.org>
16485
16486 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16487
164882008-02-01 Dave Love <fx@gnu.org>
16489
16490 * coding.c: Doc fixes.
16491 (Fcoding_system_aliases): Fix return value.
16492 (Qmac): Remove (duplicated) definition.
16493
164942008-02-01 Dave Love <fx@gnu.org>
16495
362654a6
JB
16496 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16497 New functions.
aac0c6e3
MR
16498
16499 * character.c (Fstring): Doc fix.
16500
16501 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16502
362654a6 16503 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16504 (font-encoding-alist): Doc fix.
16505
165062008-02-01 Dave Love <fx@gnu.org>
16507
16508 * term.c (costs_set): Declare static, non-initialized for pcc.
16509 (encode_terminal_code): Remove unused var.
16510
16511 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16512 for K&R.
16513
16514 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16515
16516 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16517 (suffixes): Move out of make_subsidiaries for K&R.
16518
16519 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16520
16521 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16522
165232008-02-01 Dave Love <fx@gnu.org>
16524
16525 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16526
16527 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16528
165292008-02-01 Yong Lu <lyongu@asia-infonet.com>
16530
16531 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16532
16533 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16538 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16539
165402008-02-01 Kenichi Handa <handa@m17n.org>
16541
16542 * coding.c (decode_coding_charset): Adjust for the change of
16543 Fdefine_coding_system_internal.
16544 (Fdefine_coding_system_internal): For a coding system of
16545 `charset' type, store a list of charset IDs in
16546 `charset_attr_charset_valids' element of coding attributes.
16547
165482008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16551 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16552 caller. Handle 2-byte and 3-byte charsets correctly.
16553 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16554 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16555 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16556 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16557 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16558 sequence.
16559 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16560 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16561 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16562 and alt&rule composition.
16563 (decode_coding_iso_2022): Handle composition correctly.
16564 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16565
16566 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16567 re-defining a charset. If the charset has :emacs-mule-id, setup
16568 emacs_mule_bytes.
16569 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16570
165712008-02-01 Kenichi Handa <handa@m17n.org>
16572
16573 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16574 (encode_coding_big5, encode_coding_charset): If coding requires safe
16575 encoding, produce a character specified by
16576 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16577
165782008-02-01 Dave Love <fx@gnu.org>
16579
16580 * xterm.c (XSetIMValues): Declare.
16581
16582 * process.c: Conditionally include sys/wait.h, pty.h.
16583
16584 * print.c (print_object): Fix print format for 64-bit systems.
16585
16586 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16587
16588 * buffer.c (emacs_strerror): Declare.
16589
16590 * fontset.c (Fclear_face_cache): Declare.
16591 (accumulate_font_info): Comment-out (unused).
16592 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16593 variables.
16594
16595 * character.h (string_escape_byte8): Declare.
16596
16597 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16598 unused vars.
16599 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16600 (Fmap_charset_chars): Doc fix.
16601
16602 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16603 (Fset_coding_system_priority, Fset_coding_system_priority)
16604 (Fdefine_coding_system_internal): Doc fix.
16605
166062008-02-01 Dave Love <fx@gnu.org>
16607
16608 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16609
166102008-02-01 Kenichi Handa <handa@m17n.org>
16611
16612 * character.c (string_escape_byte8): Make multibyte string with
16613 correct size.
16614
16615 * charset.c (Fmake_char): Delete unnecessary code.
16616
166172008-02-01 Kenichi Handa <handa@m17n.org>
16618
16619 * xfns.c (x_encode_text): Allocate coding.destination here, and
16620 call encode_coding_object with dst_object Qnil.
16621
16622 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16623 multibyte form correctly.
16624
16625 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16626 against Vfont_encoding_alist.
16627
16628 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16629 handling of charset list.
16630 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16631 (decode_coding_object): Move point to coding->dst_pos before
16632 calling post-read-conversion function.
16633 (encode_coding_object): Give correct arguments to
16634 pre-write-conversion. Ignore the return value of
16635 pre-write-conversion function. Pay attention to the case that
16636 pre-write-conversion changes the current buffer. If dst_object is
16637 Qt, even if coding->src_bytes is zero, allocate at least one byte
16638 to coding->destination.
16639
16640 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16641
16642 * charset.c (Fmake_char): Make it more backward compatible.
16643 (Fmap_charset_chars): Fix docstring.
16644
166452008-02-01 Dave Love <fx@gnu.org>
16646
16647 * coding.c: Doc fixes.
16648 (Fdefine_coding_system_alias): Use names, not symbols, in
16649 coding-system-alist.
16650
166512008-02-01 Kenichi Handa <handa@m17n.org>
16652
16653 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16654 of calling free_realized_face.
16655
166562008-02-01 Yong Lu <lyongu@asia-infonet.com>
16657
16658 * charset.c (read_hex): Don't treat SPC as a comment starter.
16659 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16660 (Fdecode_char): Fix typo.
16661
166622008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * charset.h (struct charset): New member `code_space_mask'.
16665
16666 * coding.c (coding_set_source): Delete the local variable beg_byte.
16667 (encode_coding_charset, Fdefine_coding_system_internal):
16668 Delete the local variable charset.
16669 (Fdefine_coding_system_internal): Setup
16670 attrs[coding_attr_charset_valids] correctly.
16671
16672 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16673 member to check if CODE is valid or not.
16674 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16675 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16676 is within the range of charset->min_code and carset->max_code.
16677
166782008-02-01 Dave Love <fx@gnu.org>
16679
16680 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16681
16682 * dispextern.h (generate_ascii_font): Fix return type.
16683
16684 * xfaces.c (generate_ascii_font): Fix arg declaration.
16685
16686 * coding.c (coding_inherit_eol_type)
16687 (Fset_terminal_coding_system_internal)
16688 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16689
166902008-02-01 Kenichi Handa <handa@m17n.org>
16691
16692 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16693 multiple charsets correctly.
16694
166952008-02-01 Kenichi Handa <handa@m17n.org>
16696
16697 * search.c (boyer_moore): Fix handling of multibyte character
16698 translation.
16699
16700 * xdisp.c (display_mode_element): When the variable `elt' is
16701 changed, update `this' and `lisp_string'.
16702
167032008-02-01 Kenichi Handa <handa@m17n.org>
16704
16705 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16706
16707 * callproc.c (Fcall_process): Be sure to give the current buffer
16708 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16709
16710 * charset.c (struct charset_map_entries): New struct.
16711 (load_charset_map): Rename from parse_charset_map. New args
16712 entries and n_entries. Change caller.
16713 (load_charset_map_from_file): Rename from load_charset_map.
16714 Change caller. New arg control_flag. Call load_charset_map at
16715 the tail.
16716 (load_charset_map_from_vector): New function.
16717 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16718 (encode_char): If the charset is compact, change a character index
16719 to a code point.
16720
16721 * coding.c (coding_alloc_by_making_gap): Check the case that the
16722 source and destination are the same correctly.
16723 (decode_coding_raw_text): Set coding->consumed_char and
16724 coding->consumed to 0.
16725 (produce_chars): If coding->chars_at_source is nonzero, update
16726 coding->consumed_char and coding->consumed before calling
16727 alloc_destination.
16728 (Fdefine_coding_system_alias): Register ALIAS in
16729 Vcoding_system_alist.
16730 (syms_of_coding): Define `no-conversion' coding system at the tail.
16731
16732 * fileio.c (Finsert_file_contents): Set coding_system instead of
16733 val. If the current buffer is multibyte, always call
16734 decode_coding_gap.
16735
16736 * xfaces.c (try_font_list): Give higher priority to fontset's
16737 family than face's family.
16738
167392008-02-01 Kenichi Handa <handa@m17n.org>
16740
16741 * callproc.c (Fcall_process): Be sure to give the current buffer
16742 to decode_coding_c_string.
16743
16744 * xfaces.c (try_font_list): Give a family specified in a fontset
16745 higher priority than a family specified in a face.
16746
167472008-02-01 Kenichi Handa <handa@m17n.org>
16748
16749 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16750 Fix arguments to insert_from_buffer.
16751
16752 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16753
167542008-02-01 Kenichi Handa <handa@m17n.org>
16755
16756 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16757 (decode_coding_gap): Set coding->dst_multibyte correctly.
16758
167592008-02-01 Kenichi Handa <handa@m17n.org>
16760
16761 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16762 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16763 (encode_coding_utf_16): Substitute coding->default_char for
16764 non-Unicode characters.
16765 (decode_coding): Don't call record_insert here.
16766 (setup_coding_system): Initialize `surrogate' of
16767 coding->spec.utf_16 to 0.
16768 (EMIT_ONE_BYTE): Fix for multibyte case.
16769
16770 * insdel.c (insert_from_gap): Call record_insert.
16771
167722008-02-01 Kenichi Handa <handa@m17n.org>
16773
16774 * casefiddle.c (casify_region): Fix multibyte case.
16775
16776 * character.c (c_string_width): Add return type `int'.
16777 (char_string_with_unification): Delete arg ADVANCED.
16778
16779 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16780 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16781 (CHAR_STRING_ADVANCE): Make it do-while statement.
16782
16783 * chartab.c (sub_char_table_set_range): Optimize for the case
16784 DEPTH == 3. Add workaround code for a GCC optimization bug.
16785
16786 * charset.c (parse_charset_map): Remove an unused variable.
16787
16788 * coding.c: Delete unused variables.
16789
16790 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16791 earlier. If inserted is zero and the coding system doesn't
16792 require flushing, don't call decode_coding_gap.
16793
16794 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16795
167962008-02-01 Kenichi Handa <handa@m17n.org>
16797
16798 The following changes are for using Unicode as an internal
16799 character model, and use UTF-8 format for buffer/string
16800 representation.
16801
16802 * .gdbinit (xchartable): Adjust for the change of char table structure.
16803 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16804
16805 * Makefile.in (obj): Add character.o and chartab.o.
16806 (lisp, shortlisp): Remove utf-8.elc.
16807 (*.o): For many files, change dependency on charset.h to
16808 character.h, and add dependency on character.h.
16809 (character.o, chartab.o): New targets.
16810
16811 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16812 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16813 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16814 of "charset.h".
16815
16816 * dired.c, filelock.c: Include "character.h".
16817
16818 * alloc.c: Include "character.h" instead of "charset.h".
16819 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16820 (syms_of_alloc): Remove defsubr for Smake_char_table.
16821
16822 * buffer.c: Include "character.h" instead of "charset.h", don't
16823 include "coding.h".
16824 (Fset_buffer_multibyte): Adjust for UTF-8.
16825
16826 * buffer.h: EXFUN Fbuffer_live_p.
16827
16828 * callproc.c: Include "character.h" instead of "charset.h".
16829 (Fcall_process): Big change for the new code-conversion APIs.
16830
16831 * casetab.c: Include "character.h" instead of "charset.h".
16832 (set_canon, set_identity, shuffle): Adjust for the new
16833 map_char_table spec.
16834 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16835 accessing the char table structure.
16836
16837 * chartab.c: New file that implements char table.
16838
16839 * category.c: Include "character.h".
16840 (copy_category_entry): New function.
16841 (copy_category_table): Call map_char_table and copy_category_entry.
16842 (Fmake_category_table): Initialize all top-level slots.
16843 (char_category_set): New function.
16844 (modify_lower_category_set): Delete.
16845 (Fmodify_category_entry): Call char_table_ref_and_range.
16846
16847 * category.h (CATEGORY_SET): Just call char_category_set.
16848
16849 * ccl.c: Include "character.h".
16850 (Qccl, Qcclp): New variables.
16851 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16852 it's less than 256.
16853 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16854 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16855 and DST type.
16856 (ccl_driver): Change types of argument, adjust code accordingly.
16857 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16858 ccl_driver.
16859 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16860
16861 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16862 New members src_multibyte, dst_multibyte, consumed, and produced.
16863 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16864 (CODING_SPEC_CCL_PROGRAM): New macro.
16865 (ccl_driver): Update prototype.
16866 (Qccl, Qcclp, Fccl_program_p): Extern them.
16867 (CHECK_CCL_PROGRAM): New macro.
16868
16869 * character.c, character.h, chartab.c: New files.
16870
16871 * charset.c: Mostly re-written. Move character and multibyte sequence
16872 handling codes to character.c.
16873
16874 * charset.h: Mostly re-written. Move character and multibyte sequence
16875 handling codes to character.h.
16876
16877 * coding.c, coding.h: Mostly re-written.
16878
16879 * composite.c: Include "character.h" instead of "charset.h".
16880 (CHAR_WIDTH): Move to character.h.
16881 (HASH_KEY, HASH_VALUE): Delete.
16882
16883 * composite.h (enum composition_method): Change order of enumeration
16884 symbols.
16885
16886 * data.c: Include "character.h" instead of "charset.h".
16887 (Faref): Call CHAR_TABLE_REF for a char table.
16888 (Faset): Call CHAR_TABLE_SET for a char table.
16889
16890 * dispextern.h (free_realized_face, check_face_attribytes)
16891 (generate_ascii_font): Extern them.
16892 (free_realized_multibyte_face): Delete extern.
16893
16894 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16895 table structure.
16896
16897 * editfns.c: Include "character.h" instead of "charset.h".
16898 (Fchar_to_string): Always call CHAR_STRING.
16899
16900 * emacs.c (main): Call init_charset_once, init_charset,
16901 syms_of_chartab, and syms_of_character.
16902
16903 * fileio.c: Include "character.h" instead of "charset.h".
16904 (Finsert_file_contents): Big change for the new code-conversion API.
16905 (choose_write_coding_system, Fwrite_region): Likewise.
16906 (build_annotations_2): Delete.
16907 (e_write): Big change for the new code-conversion API.
16908
16909 * fns.c: Include "character.h" instead of "charset.h".
16910 (copy_sub_char_table): Move to chartab.c.
16911 (Fcopy_sequence): Call copy_char_table for a char table.
16912 (concat): Delete codes calling count_multibyte.
16913 (string_char_to_byte, string_byte_to_char): Adjust for the new
16914 multibyte form.
16915 (internal_equal): Adjust for the change of char table structure.
16916 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16917 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16918 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16919 (char_table_translate, optimize_sub_char_table)
16920 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16921 chartab.c.
16922 (char_table_ref_and_index): Delete.
16923 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16924 (Fmd5): Call preferred_coding_system instead of accessing
16925 Vcoding_category_list. Adjust for the new code-conversion API.
16926 (syms_of_fns): Move defsubr for char table related functions to
16927 chartab.c.
16928
16929 * fontset.c: Mostly re-written.
16930
16931 * fontset.h (struct font_info): Change type of the member encoding_type.
16932 (enum FONT_SPEC_INDEX): New enum.
16933 (fontset_font_pattern, fs_load_font): Update prototype.
16934 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16935
16936 * indent.c: Include "character.h" instead of "charset.h".
16937 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16938
16939 * insdel.c: Include "character.h" instead of "charset.h".
16940 (copy_text): Don't refer to Vnonascii_translation_table.
16941 (insert_from_gap): New function.
16942
16943 * keyboard.c: Include "character.h" instead of "charset.h".
16944 (command_loop_1): Never call direct_output_forward_char before
16945 a non-ASCII character.
16946 (read_char): If Vkeyboard_translate_table is a char table, always
16947 translate a character.
16948
16949 * keymap.c: Include "character.h".
16950 (store_in_keymap): Handle the case that IDX is a cons.
16951 (Fdefine_key): Handle the case that KEY is a cons and the car part
16952 is also a cons (range).
16953 (push_key_description): Adjust for the new character code.
16954 (describe_vector): Call describe_char_table for a char table.
16955 (describe_char_table): New function.
16956
16957 * keymap.h (describe_char_table): Extern it.
16958
16959 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16960 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16961 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16962 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16963 Delete.
16964 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16965 structure.
16966 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16967 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16968 (CHARTAB_SIZE_BITS_3): New macros.
16969 (chartab_size): Extern it.
16970 (struct Lisp_Char_Table): Re-design.
16971 (struct Lisp_Sub_Char_Table): New structure.
16972 (HASH_KEY, HASH_VALUE): Move from fns.c.
16973 (CHARACTERBITS): Define as 22.
16974 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16975 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16976 (GC_SUB_CHAR_TABLE_P): New macro.
16977 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16978 (code_convert_string_norecord): Deleted extern.
16979 (init_character_once, syms_of_character, init_charset)
16980 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16981
16982 * lread.c: Include "character.h".
16983 (read_multibyte): New arg NBYTES.
16984 (read_escape): Change the meaning of returned *BYTEREP.
16985 (to_multibyte): Delete.
16986 (read1): Adjust the handling of char table and string.
16987
16988 * print.c: Include "character.h" instead of "charset.h".
16989 (print_string): Convert 8-bit raw bytes to octal form by
16990 string_escape_byte8.
16991 (print_object): Adjust for the new multibyte form. Print 8-bit
16992 raw bytes always in octal form. Handle sub char table correctly.
16993
16994 * process.c: Include "character.h" instead of "charset.h".
16995 (read_process_output, send_process): Adjust for the new
16996 code-conversion API.
16997
16998 * puresize.h (BASE_PURESIZE): Increase.
16999
17000 * regex.c: Include "character.h" instead of "charset.h".
17001 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17002 (regex_compile): Accept a range whose starting and ending
17003 character have different leading bytes.
17004 (analyse_first): Adjust for the above change.
17005
17006 * search.c: Include "character.h" instead of "charset.h".
17007 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17008 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17009
17010 * syntax.c: Include "character.h" instead of "charset.h".
17011 (syntax_parent_lookup): Delete.
17012 (Fmodify_syntax_entry): Accept a cons as CHAR.
17013 (skip_chars): Adjust for the new multibyte form.
17014 (init_syntax_once): Call char_table_set_range instead of directly
17015 accessing the structure of a char table.
17016
17017 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17018 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17019 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17020 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17021
17022 * term.c: Include "buffer.h" and "character.h".
17023 (encode_terminal_code, write_glyphs): Adjust for the new
17024 code-conversion API.
17025 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17026
17027 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17028
17029 * xdisp.c: Include "character.h".
17030 (get_next_display_element): Adjust for the new multibyte form.
17031 (disp_char_vector): Adjust for the new char table structure.
17032 (decode_mode_spec_coding): Adjust for the new structure of
17033 coding system.
17034 (decode_mode_spec): Adjust for the new code-conversion API.
17035
17036 * xfaces.c: Include "character.h" instead of "charset.h".
17037 (load_face_font): Adjust for the change of choose_face_font and
17038 FS_LOAD_FONT.
17039 (generate_ascii_font): New function.
17040 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17041 (set_font_frame_param): Adjust for the change of choose_face_font.
17042 (free_realized_face): Make it public.
17043 (free_realized_faces_for_fontset): Rename from
17044 free_realized_multibyte_face. Free also faces realized for ASCII.
17045 (choose_face_font): Change arguments. Adjust for the change of
17046 fontset_font_pattern and FS_LOAD_FONT.
17047
17048 * xfns.c: Include "character.h".
17049 (x_encode_text): Adjust for the new code-conversion API.
17050
17051 * xselect.c: Don't include "charset.h".
17052 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17053
17054 * xterm.c: Include "character.h".
17055 (x_encode_char): New argument CHARSET. Change caller.
17056 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17057 Call ENCODE_CHAR instead of SPLIT_CHAR.
17058 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17059 CHAR_WIDTH instead of CHARSET_WIDTH.
17060 (XTread_socket): Adjust for the new code-conversion API.
17061 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17062 (x_load_font): Adjust for the change of struct font.
17063
170642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17065
17066 * xfaces.c (face_at_buffer_position): Remove unused vars.
17067
170682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17069
17070 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17071 Fix overflow checking.
17072
170732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17074
17075 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17076 Cancel previous change.
17077
170782008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17079
17080 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17081 ccl->eight_bit_control. Fix check for buffer overflow.
17082 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17083 (ccl_driver): Initialize extra_bytes to 0.
17084
170852008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17086
17087 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17088 return it ORed with ctrl_modifier.
17089
170902008-01-29 Miles Bader <miles@gnu.org>
17091
17092 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17093
170942008-01-28 Jason Rumney <jasonr@gnu.org>
17095
17096 * w32.c (stat): Don't double check for networked drive.
17097
170982008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17099
17100 * window.c (run_window_configuration_change_hook): New function.
17101 Code extracted from set_window_buffer. Set the selected frame.
17102 (set_window_buffer): Use it.
17103 * window.h (run_window_configuration_change_hook): Declare.
17104 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17105
17106 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17107
171082008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17109
17110 * Makefile.in: Remove references to unused macros.
17111
171122008-01-26 Eli Zaretskii <eliz@gnu.org>
17113
17114 * w32.c (g_b_init_get_sid_sub_authority)
17115 (g_b_init_get_sid_sub_authority_count): New static variables.
17116 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17117 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17118 (init_user_info): Use them to retrieve uid and gid.
17119 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17120 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17121 st_uid and st_gid of the file.
17122
171232008-01-26 Jason Rumney <jasonr@gnu.org>
17124
17125 * w32.c (logon_network_drive): New function.
17126 (stat): Use it.
17127
171282008-01-26 Chong Yidong <cyd@stupidchicken.com>
17129
17130 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17131 invisible text covered with an ellipsis.
17132
171332008-01-25 Richard Stallman <rms@gnu.org>
17134
17135 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17136 jump back to beginning. Move some other initializations after that.
17137 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17138 New variables.
17139 (syms_of_xdisp): Init them.
17140
17141 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17142
17143 * buffer.c (reset_buffer_local_variables):
17144 Implement `permanent-local-hook'.
17145 (Qpermanent_local_hook): New variable.
17146 (syms_of_buffer): Init and staticpro it.
17147
171482008-01-25 Michael Albinus <michael.albinus@gmx.de>
17149
17150 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17151
171522008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17153
17154 * fns.c (Fclrhash): Return TABLE.
17155
171562008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17157
17158 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17159 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17160 is set even without positional changes.
17161 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17162
17163 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17164
171652008-01-23 Jason Rumney <jasonr@gnu.org>
17166
17167 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17168
17169 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17170 the unicode range available in MULE by locale-coding-system.
17171 Improve dbcs lead byte detection. Set event timestamp and modifiers
17172 earlier.
17173
171742008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17175
17176 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17177 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17178 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17179 when used on child processes.
17180
171812008-01-21 Michael Albinus <michael.albinus@gmx.de>
17182
17183 * dbusbind.c (Fdbus_method_return_internal): Rename from
17184 Fdbus_method_return.
17185 (Fdbus_unregister_object): Move to dbus.el.
17186 (Fdbus_call_method, Fdbus_method_return_internal)
17187 (Fdbus_send_signal): Improve debug messages.
17188
171892008-01-20 Martin Rudalics <rudalics@gmx.at>
17190
17191 * undo.c (undo_inhibit_record_point): New variable.
17192 (syms_of_undo): Initialize it.
17193 (record_point): Don't record point when undo_inhibit_record_point
17194 is set.
17195
171962008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17197
17198 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17199
17200 * xdisp.c (Qauto_hscroll_mode): New var.
17201 (syms_of_xdisp): Initialize it.
17202 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17203 window's buffer.
17204 (hscroll_windows): Don't check automatic_hscrolling_p here.
17205
17206 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17207 vscroll if we're setting window-buffer to the value it already has.
17208
172092008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17210
17211 * m/intel386.h: Remove references to XENIX.
17212
172132008-01-17 Andreas Schwab <schwab@suse.de>
17214
17215 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17216 instead of HAVE_X86_64_LIB64_DIR.
17217 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17218
172192008-01-17 Glenn Morris <rgm@gnu.org>
17220
17221 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17222 to HAVE_X86_64_LIB64_DIR.
17223
172242008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17225
17226 * s/irix3-3.h:
17227 * s/irix4-0.h:
17228 * s/386-ix.h:
17229 * s/domain.h:
17230 * s/hpux9-x11r4.h:
17231 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17232
17233 * sysdep.c: Remove code containing references to symbols defined
17234 by unsupported systems.
17235
172362008-01-16 Glenn Morris <rgm@gnu.org>
17237
17238 * coding.c (select-safe-coding-system-function): Doc fix.
17239
172402008-01-15 Glenn Morris <rgm@gnu.org>
17241
17242 * config.in: Revert 2008-01-13 change: this is a generated file.
17243
172442008-01-13 Tom Tromey <tromey@redhat.com>
17245
17246 * lisp.h: Fix typo.
17247
172482008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17249
17250 * m/sequent-ptx.h:
17251 * m/sequent.h:
17252 * s/ptx.h:
17253 * s/ptx4-2.h:
17254 * s/ptx4.h: Remove files for systems no longer supported.
17255
17256 * callproc.c (Fcall_process): Fix previous change.
17257
172582008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17259
17260 * unexsunos4.c: Remove file, system not supported anymore.
17261
17262 * m/mips.h:
17263 * m/intel386.h:
17264 * callproc.c:
17265 * config.in:
17266 * ecrt0.c:
17267 * emacs.c:
17268 * fileio.c:
17269 * frame.c:
17270 * getpagesize.h:
17271 * keyboard.c:
17272 * lread.c:
17273 * process.c:
17274 * puresize.h:
17275 * sysdep.c:
17276 * systty.h:
17277 * syswait.h:
17278 * unexec.c:
17279 * xdisp.c:
17280 * alloc.c: Remove code containing references to symbols defined by
17281 unsupported systems.
17282
172832008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17284
17285 * coding.c (detect_coding_mask): Fix previous change.
17286
172872008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17288
17289 * coding.c (detect_coding_iso2022): New arg
17290 latin_extra_code_state. Allow Latin extra codes only
17291 when *latin_extra_code_state is nonzero.
17292 (detect_coding_mask): If there is a NULL byte, detect the encoding
17293 as UTF-16 or binary. If Latin extra codes exist, detect the
17294 encoding as ISO-2022 only when there's no other proper encoding is
17295 found.
17296
172972008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17298
17299 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17300 #ifdef MAC_OS.
17301
173022008-01-08 Richard Stallman <rms@gnu.org>
17303
17304 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17305
173062008-01-06 Nick Roberts <nickrob@snap.net.nz>
17307
17308 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17309 menu bar in parentheses.
17310
173112008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17312
17313 * m/7300.h:
17314 * m/acorn.h:
17315 * m/alliant-2800.h:
17316 * m/alliant.h:
17317 * m/alliant1.h:
17318 * m/alliant4.h:
17319 * m/altos.h:
17320 * m/amdahl.h:
17321 * m/apollo.h:
17322 * m/att3b.h:
17323 * m/aviion-intel.h:
17324 * m/aviion.h:
17325 * m/celerity.h:
17326 * m/clipper.h:
17327 * m/cnvrgnt.h:
17328 * m/convex.h:
17329 * m/cydra5.h:
17330 * m/delta88k.h:
17331 * m/dpx2.h:
17332 * m/dual.h:
17333 * m/elxsi.h:
17334 * m/f301.h:
17335 * m/gould-np1.h:
17336 * m/gould.h:
17337 * m/i860.h:
17338 * m/ibmps2-aix.h:
17339 * m/ibmrt-aix.h:
17340 * m/ibmrt.h:
17341 * m/irist.h:
17342 * m/is386.h:
17343 * m/isi-ov.h:
17344 * m/mega68.h:
17345 * m/mg1.h:
17346 * m/news-r6.h:
17347 * m/news-risc.h:
17348 * m/news.h:
17349 * m/nh3000.h:
17350 * m/nh4000.h:
17351 * m/ns16000.h:
17352 * m/ns32000.h:
17353 * m/nu.h:
17354 * m/orion.h:
17355 * m/orion105.h:
17356 * m/paragon.h:
17357 * m/pfa50.h:
17358 * m/plexus.h:
17359 * m/pyramid.h:
17360 * m/pyrmips.h:
17361 * m/sh3el.h:
17362 * m/sps7.h:
17363 * m/sr2k.h:
17364 * m/stride.h:
17365 * m/sun1.h:
17366 * m/sun2.h:
17367 * m/sun3-68881.h:
17368 * m/sun3-fpa.h:
17369 * m/sun3-soft.h:
17370 * m/sun3.h:
17371 * m/sun386.h:
17372 * m/symmetry.h:
17373 * m/tad68k.h:
17374 * m/tahoe.h:
17375 * m/targon31.h:
17376 * m/tek4300.h:
17377 * m/tekxd88.h:
17378 * m/tower32.h:
17379 * m/tower32v3.h:
17380 * m/ustation.h:
17381 * m/wicat.h:
17382 * m/xps100.h:
17383 * s/cxux.h:
17384 * s/cxux7.h:
17385 * s/dgux.h:
17386 * s/dgux4.h:
17387 * s/dgux5-4-3.h:
17388 * s/dgux5-4r2.h:
17389 * s/esix.h:
17390 * s/esix5r4.h:
17391 * s/hiuxmpp.h:
17392 * s/hiuxwe2.h:
17393 * s/iris3-5.h:
17394 * s/iris3-6.h:
17395 * s/isc2-2.h:
17396 * s/isc3-0.h:
17397 * s/isc4-0.h:
17398 * s/isc4-1.h:
17399 * s/newsos5.h:
17400 * s/newsos6.h:
17401 * s/osf1.h:
17402 * s/osf5-0.h:
17403 * s/riscix1-1.h:
17404 * s/riscix12.h:
17405 * s/sco4.h:
17406 * s/sco5.h:
17407 * s/sunos4-0.h:
17408 * s/sunos4-1.h:
17409 * s/sunos413.h:
17410 * s/sunos4shr.h:
17411 * s/umax.h:
17412 * s/unipl5-2.h:
17413 * s/xenix.h:
17414 * cxux-crt0.s:
17415 * unexapollo.c:
17416 * unexconvex.c:
17417 * unexenix.c:
17418 * unexsni.c: Remove files for systems no longer supported.
17419
17420 * m/intel386.h: Remove references to unsupported systems.
17421
17422 * w32.c (get_emacs_configuration): Remove reference to i860.
17423
17424 * sysdep.c: Remove dead code.
17425
174262008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17427
17428 * s/rtu.h:
17429 * m/masscomp.h: Remove files. Platform is obsolete.
17430
174312008-01-04 Michael Albinus <michael.albinus@gmx.de>
17432
17433 * dbusbind.c (Fdbus_method_return): New function.
17434 (xd_read_message): Add the serial number to the event.
17435 (Fdbus_register_method): Activate the function.
17436
174372008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17438
17439 * keyboard.c (read_key_sequence): Fix typo.
17440
174412008-01-03 Michael Albinus <michael.albinus@gmx.de>
17442
17443 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17444 (xd_signature, xd_append_arg): Handle element type detection for
17445 empty arrays.
17446 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17447 SDATA () calls; this must be solved more general.
17448 (Fdbus_register_signal): Use SBYTES instead of strlen.
17449
174502008-01-03 Magnus Henoch <magnus@zemdatav>
17451
17452 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17453 unsigned int for byte values (necessary for big-endian platform).
17454 (Fdbus_call_method): Handle the case of no returned arguments.
17455
174562007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17457
17458 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17459
174602007-12-31 Magnus Henoch <mange@freemail.hu>
17461
17462 * dbusbind.c (xd_signature): Signature of variant is just "v".
17463
174642007-12-30 Michael Albinus <michael.albinus@gmx.de>
17465
17466 * dbusbind.c: Fix several errors and compiler warnings.
17467 Reported by Tom Tromey <tromey@redhat.com>.
17468 (XD_ERROR, XD_DEBUG_MESSAGE)
17469 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17470 (xd_append_arg): Part for basic D-Bus types rewritten.
17471 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17472 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17473 appropriate.
17474 (xd_read_message): Return Qnil. Don't signal an error; it is not
17475 useful during event reading.
17476 (Fdbus_register_signal): Signal an error if the check for
17477 FUNCTIONP fails.
17478 (Fdbus_register_method): New function. The implementation is not
17479 complete, the call of the function signals an error therefore.
17480 (Fdbus_unregister_object): New function, renamed from
17481 Fdbus_unregister_signal. The initial check signals an error, if
17482 the object is not well formed.
17483
174842007-12-30 Richard Stallman <rms@gnu.org>
17485
17486 * textprop.c (get_char_property_and_overlay):
17487 Signal error if POSITION is out of range in a buffer.
17488
174892007-12-29 Martin Rudalics <rudalics@gmx.at>
17490
17491 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17492 because the original parameters are in pure storage now.
17493
174942007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17495
17496 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17497
174982007-12-22 Eli Zaretskii <eliz@gnu.org>
17499
17500 * callint.c (syms_of_callint) <command-history>: Add reference to
17501 history-length in the doc string.
17502
175032007-12-17 Jason Rumney <jasonr@gnu.org>
17504
17505 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17506 before passing as wParam.
17507
175082007-12-22 Michael Albinus <michael.albinus@gmx.de>
17509
17510 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17511 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17512 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17513 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17514 as number.
17515 (Fdbus_call_method): Fix docstring.
17516
175172007-12-21 Michael Albinus <michael.albinus@gmx.de>
17518
17519 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17520 New macros.
17521 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17522 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17523 Simplify.
17524 (xd_signature): New function.
17525 (xd_append_arg): Compute also signatures. Major rewrite.
17526 (xd_retrieve_arg): Make debug messages friendly.
17527 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17528 Check for signatures of arguments.
17529
175302007-12-19 Michael Albinus <michael.albinus@gmx.de>
17531
17532 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17533 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17534 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17535 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17536 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17537 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17538 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17539 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17540 (xd_retrieve_value): Remove. Functionality included in ...
17541 (xd_append_arg): New function.
17542 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17543
175442007-12-16 Michael Albinus <michael.albinus@gmx.de>
17545
17546 * dbusbind.c (top): Include <stdio.h>.
17547 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17548 dbus_message_new_method_call and dbus_message_new_signal.
17549 (Fdbus_register_signal): Rename unique_name to uname.
17550 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17551 non-existing unique name. Fix typos in matching rule. Return an
17552 object which is useful in Fdbus_unregister_signal.
17553 (Fdbus_unregister_signal): Reimplementation, in order to remove
17554 only the corresponding entry.
17555 (Vdbus_registered_functions_table): Change the order of entries.
17556 Apply these changes in xd_read_message and Fdbus_register_signal.
17557
175582007-12-16 Andreas Schwab <schwab@suse.de>
17559
17560 * fileio.c (Finsert_file_contents): Fix overflow check to not
17561 depend on undefined integer overflow.
17562
175632007-12-14 Jason Rumney <jasonr@gnu.org>
17564
17565 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17566 for characters above 127.
17567
175682007-12-13 Jason Rumney <jasonr@gnu.org>
17569
17570 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17571 before dereferencing array.
17572 (lookup_vk_code): Remove zero comparison.
17573
175742007-12-14 Michael Albinus <michael.albinus@gmx.de>
17575
17576 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17577 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17578 Use `unsigned int' instead of `uint'.
17579 (xd_read_message, Fdbus_register_signal): Split expressions into
17580 multiple lines before operators "&&" and "||", according to the
17581 GNU Coding Standards.
17582
175832007-12-14 Eli Zaretskii <eliz@gnu.org>
17584
17585 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17586
175872007-12-12 Juri Linkov <juri@jurta.org>
17588
17589 * buffer.c (Frename_buffer): In interactive spec replace
17590 `read-buffer' with `read-string' that uses `buffer-name-history'
17591 as history, and the current buffer's name as default.
17592
175932007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17594
17595 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17596 manipulating the backtrace manually.
17597 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17598 (struct backtrace, backtrace_list): Remove.
17599 (command_loop_1): Remove dead var `no_direct'.
17600
17601 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17602 preserve non-built-in buffer-local variables.
17603 (Fkill_all_local_variables): Don't re-create&re-set permanent
17604 buffer-local variables.
17605
176062007-12-09 Juri Linkov <juri@jurta.org>
17607
17608 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17609 Lisp code that uses `read-buffer' with current buffer as default.
17610
176112007-12-08 Michael Albinus <michael.albinus@gmx.de>
17612
17613 * dbusbind.c (xd_read_message): Generate an event for every
17614 registered handler. There might be several handlers registered
17615 for the same signal.
17616 (Fdbus_register_signal): Don't overwrite a registration for the
17617 same signal. Add a new registration if handlers are different.
17618 (Vdbus_registered_functions_table): Rework doc string.
17619
176202007-12-07 Michael Albinus <michael.albinus@gmx.de>
17621
17622 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17623 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17624 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17625 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17626 Unify argument lists.
17627 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17628 arguments and hash table keys. Use unique name for service.
17629 (Fdbus_unregister_signal): Remove checks.
17630 (Vdbus_registered_functions_table): Fix doc string.
17631
176322007-12-05 Magnus Henoch <mange@freemail.hu>
17633
17634 * process.c (make_process): Initialize pty_flag to 0.
17635
176362007-12-05 Jason Rumney <jasonr@gnu.org>
17637
17638 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17639 specified XBMs.
17640
176412007-12-05 Richard Stallman <rms@gnu.org>
17642
17643 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17644
176452007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17646
17647 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17648 New variable.
17649 (mac_try_close_socket) [MAC_OSX]: New function.
17650 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17651 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17652
17653 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17654 Use mac_try_close_socket.
17655
176562007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17657
17658 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17659 reloc_base.
17660 (copy_dysymtab): Compute relocation base here.
17661 (rebase_reloc_address) [__ppc64__]: New function.
17662 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17663 changed.
17664
176652007-12-05 Jason Rumney <jasonr@gnu.org>
17666
17667 * w32proc.c (sys_spawnve): Quote args with wildcards.
17668
176692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17670
17671 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17672 __objc_* sections.
17673 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17674
176752007-12-05 Michael Albinus <michael.albinus@gmx.de>
17676
17677 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17678 Move check for Vdbus_registered_functions_table to
17679 xd_read_queued_messages.
17680 (xd_read_queued_messages): Protect xd_read_message calls by
17681 internal_condition_case_1.
17682
176832007-12-04 Michael Albinus <michael.albinus@gmx.de>
17684
17685 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17686 Qdbus_system_bus and Qdbus_session_bus, respectively.
17687 (Vdbus_intern_symbols): Remove.
17688 (Vdbus_registered_functions_table): New hash table.
17689 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17690 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17691 Rewrite in order to manage registered functions by hash table
17692 Vdbus_registered_functions_table.
17693
176942007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17695
17696 * xterm.c: Update URL to Window Manager Specification in comment.
17697
176982007-12-02 Michael Albinus <michael.albinus@gmx.de>
17699
17700 * config.in (HAVE_DBUS): Add.
17701
17702 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17703 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17704 (obj): Add $(DBUS_OBJ).
17705 (LIBES): Add $(DBUS_LIBS).
17706 (dbusbind.o): New target.
17707
17708 * dbusbind.c: New file.
17709
17710 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17711
17712 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17713 (Qdbus_event): New Lisp symbol.
17714 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17715 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17716 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17717
17718 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17719
177202007-12-01 Richard Stallman <rms@gnu.org>
17721
17722 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17723
177242007-11-30 Jason Rumney <jasonr@gnu.org>
17725
17726 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17727 (w32con_reset_terminal_modes): Clear screen buffer.
17728 (w32_face_attributes): Don't use color indexes that are out of range.
17729 Only reverse the default colors.
17730
17731 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17732 WINDOWSNT.
17733
17734 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17735
177362007-11-29 Jason Rumney <jasonr@gnu.org>
17737
17738 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17739 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17740 if the terminal colors are initialized.
17741 (unspecified_fg, unspecified_bg): Remove unused declarations.
17742
177432007-11-29 Andreas Schwab <schwab@suse.de>
17744
17745 * keyboard.c (apply_modifiers): Fix typo.
17746
177472007-11-29 Richard Stallman <rms@gnu.org>
17748
17749 * keymap.c (Fcurrent_local_map): Doc fix.
17750
177512007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17752
17753 * s/gnu-kfreebsd.h: New file.
17754
177552007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17756
17757 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17758 Don't cast redundantly.
17759
17760 * keyboard.c (KEY_TO_CHAR): New macro.
17761 (parse_modifiers, apply_modifiers): Accept integer arguments.
17762 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17763 for chars and symbol keys.
17764 After doing such remapping, apply function-key-map again.
17765
177662007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17767
17768 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17769 compiled anymore.
17770
177712007-11-26 Andreas Schwab <schwab@suse.de>
17772
17773 * process.c (list_processes_1): Fix indentation level of the
17774 command column.
17775
177762007-11-23 Andreas Schwab <schwab@suse.de>
17777
17778 * editfns.c (Fformat): Handle %c specially since it requires the
17779 argument to be of type int.
17780
177812007-11-23 Markus Triska <markus.triska@gmx.at>
17782
17783 * emacs.c (main): Call init_editfns before init_process, since
17784 init_process sets Vprocess_connection_type depending on OS release.
17785
177862007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17787
17788 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17789 (find_symbol_value): Use do_symval_forwarding.
17790
17791 * data.c (set_internal): Set the value in the `cons-cell' (for
17792 Buffer_Local_values) not only for frame-local variables.
17793
177942007-11-22 Andreas Schwab <schwab@suse.de>
17795
17796 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17797 values to sprintf.
17798 * keymap.c (Fsingle_key_description): Likewise.
17799 * print.c (print_object): Likewise.
17800
178012007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17802
17803 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17804 file for image is nil.
17805
178062007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17807
17808 * term.c: Include stdarg.h.
17809 (fatal): Implement using varargs.
17810 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17811
178122007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17813
17814 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17815 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17816 Update call to buffer_slot_type_mismatch.
17817 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17818 (buffer_slot_type_mismatch): Update.
17819 * buffer.c (buffer_local_types): Remove.
17820 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17821 (defvar_per_buffer): Set the type in the buffer_objfwd.
17822
178232007-11-21 Jason Rumney <jasonr@gnu.org>
17824
17825 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17826 CreateFileMapping returns NULL on failure.
17827
178282007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17829
17830 * search.c (Fset_match_data): Remove the `evaporate' feature.
17831 (unwind_set_match_data): Don't use the `evaporate' feature.
17832
178332007-11-21 Jason Rumney <jasonr@gnu.org>
17834
17835 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17836
17837 * w32console.c (w32con_write_glyphs): Remove unused variables.
17838
178392007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17840
17841 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17842
17843 * s/darwin.h (MULTI_KBOARD): Remove.
17844
17845 * macfns.c (x_create_tip_frame, Fx_create_frame)
17846 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17847
178482007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17849
17850 * buffer.c (Fbuffer_local_value): Remove redundant test.
17851 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17852 than in `current-buffer' to match the comment.
17853 Do the swap using swap_in_global_binding.
17854
17855 * data.c (store_symval_forwarding, set_internal):
17856 * eval.c (specbind): Remove dead code.
17857
17858 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17859 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17860 Since we do not want to see internal Lisp_*fwd objects here.
17861
178622007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17863
17864 * sysdep.c (init_system_name): Use getaddrinfo if available.
17865
17866 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17867 (x_scroll_bar_note_movement): start, end, with, height in struct
17868 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17869
178702007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17871
17872 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17873
178742007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17875
17876 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17877 This undoes Richard's change of 14-Oct-2002.
17878
17879 * alloc.c (allocate_other_vector):
17880 * lisp.h (allocate_other_vector): Remove.
17881
17882 * window.c (struct save_window_data): Move non-lisp data to the end
17883 and make it `int' rather than Lisp_Object.
17884 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17885 Done wrap/unwrap integer values.
17886 (Fset_window_configuration, compare_window_configurations):
17887 Update use of fields to their new types.
17888
17889 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17890 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17891 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17892 (SET_SCROLL_BAR_X_WINDOW): Remove.
17893 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17894 Access the new x_window field directly.
17895 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17896 Don't wrap/unwrap integers into Lisp_Objects.
17897 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17898 (x_scroll_bar_report_motion):
17899 Don't wrap/unwrap integers into Lisp_Objects.
17900 (x_term_init): Use SDATA.
17901 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17902 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17903 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17904 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17905 * xfns.c (x_set_background_color):
17906 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17907 Access the new x_window field directly.
17908
17909 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17910 (allocate_pseudovector): Make non-static.
17911
17912 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17913 (allocate_pseudovector): Declare.
17914 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17915
179162007-11-15 Andreas Schwab <schwab@suse.de>
17917
17918 * editfns.c (Fformat): Correctly format EMACS_INT values.
17919 Also take precision into account when formatting an integer.
17920
17921 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17922
179232007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17924
17925 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17926 (syms_of_keyboard): Defsubr it.
17927
17928 * data.c (swap_in_global_binding): Fix longstanding bug where
17929 store_symval_forwarding was not called with the right second argument,
17930 thus causing objfwd-ing from being dropped.
17931
179322007-11-14 Juanma Barranquero <lekktu@gmail.com>
17933
17934 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17935 (Fx_display_pixel_height, Fx_display_planes)
17936 (Fx_display_color_cells, Fx_server_max_request_size)
17937 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17938 (Fx_display_visual_class, Fx_display_save_under):
17939 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17940 (Fx_display_pixel_height, Fx_display_planes)
17941 (Fx_display_color_cells, Fx_server_max_request_size)
17942 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17943 (Fx_display_mm_height, Fx_display_mm_width)
17944 (Fx_display_backing_store, Fx_display_visual_class)
17945 (Fw32_select_font, Fx_display_save_under):
17946 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17947 (Fx_display_pixel_height, Fx_display_planes)
17948 (Fx_display_color_cells, Fx_server_max_request_size)
17949 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17950 (Fx_display_save_under): Fix typos in docstrings.
17951
179522007-11-14 Juanma Barranquero <lekktu@gmail.com>
17953
17954 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17955 corresponding to deleted entries; they are an implementation detail.
17956 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17957 Remove variables.
17958 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17959 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17960 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17961 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17962 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17963 (Fw32_define_rgb_color, Fw32_load_color_file)
17964 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17965 Fix typos in docstrings.
17966 (Fx_server_version): Reflow docstring.
17967 (Fw32_shell_execute): Doc fixes.
17968
179692007-11-13 Juanma Barranquero <lekktu@gmail.com>
17970
17971 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17972 if w32_parse_hot_key returned nil.
17973
179742007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17975
17976 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17977
179782007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17979
aac0c6e3
MR
17980 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17981
17982 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17983
17984 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17985 Remove W32_SCROLL_BAR_CLICK_EVENT.
17986
17987 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17988 Add MULTIMEDIA_KEY_EVENT.
17989
17990 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17991 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17992 (make_lispy_event) [WINDOWSNT]: Use it to translate
17993 MULTIMEDIA_KEY_EVENT.
17994
17995 * w32term.h (WM_APPCOMMAND): Define if not already.
17996 (GET_APPCOMMAND_LPARAM): Likewise.
17997
17998 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17999 WM_APPCOMMAND.
18000
18001 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18002 (syms_of_w32fns): Export and initialize it.
18003 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18004
180052007-11-09 Chong Yidong <cyd@stupidchicken.com>
18006
18007 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18008 twice.
18009
18010 * xdisp.c (handle_face_prop): Fix last change.
18011
180122007-11-09 Richard Stallman <rms@gnu.org>
18013
18014 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18015 not just for after-strings and before-strings.
18016 Call face_for_overlay_string and pass the overlay to it.
18017 (handle_display_prop): Determine whether property came from an overlay.
18018 Pass OVERLAY arg to handle_single_display_spec.
18019 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18020 (load_overlay_strings): Fill in it->string_overlays.
18021 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18022
18023 * xfaces.c (face_for_overlay_string): Function renamed from
18024 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18025
18026 * dispextern.h (struct it): New elt string_overlays.
18027 New elt from_overlay, also in stack.
18028 Rearrange a few elements.
18029 (face_for_overlay_string): Decl renamed from
18030 face_at_buffer_position_no_overlays, and add argument.
18031
180322007-11-09 Richard Stallman <rms@gnu.org>
18033
18034 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18035 to get the base face for an overlay string.
18036
18037 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18038
18039 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18040
18041 * xdisp.c (handle_stop): Move some code out of loop.
18042
180432007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18044
18045 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18046 Fix conversion from Lisp object to ATSUFontID.
18047
180482007-11-09 Jason Rumney <jasonr@gnu.org>
18049
18050 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18051
180522007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18053
18054 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18055 Don't assume regions are aligned to page boundary.
18056 (print_load_command_name): Add LC_UUID if defined.
18057
180582007-11-09 Richard Stallman <rms@gnu.org>
18059
18060 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18061
180622007-11-07 Jason Rumney <jasonr@gnu.org>
18063
18064 * s/windows95.h: Remove.
18065
180662007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18067
18068 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18069 abort with a message on unhandled store_type values.
18070
180712007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18072
18073 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18074 Remove HAVE_X11R5 and HAVE_X11R4.
18075
180762007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18077
18078 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18079
180802007-11-01 Johan Bockgård <bojohan@gnu.org>
18081
18082 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18083 Don't set s->stippled_p here, since it has already been set by
18084 x_set_glyph_string_gc from x_draw_glyph_string.
18085
180862007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18087
18088 * sunfns.c: Remove file.
18089
18090 * m/sun386.h:
18091 * m/sun2.h:
18092 * m/sparc.h: Remove Sun windows code.
18093
180942007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18095
18096 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18097 (init_keyboard): Set current_kboard's window-system to nil.
18098 (tty_read_avail_input): Typo.
18099 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18100
181012007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18102
18103 * s/usg5-4.h:
18104 * s/usg5-3.h:
18105 * s/ptx.h:
18106 * m/is386.h:
18107 * m/ibmps2-aix.h:
18108 * Makefile.in: Remove all mentions of X10.
18109
18110 * dispnew.c (syms_of_display): Don't mention version 10.
18111
181122007-10-28 Juanma Barranquero <lekktu@gmail.com>
18113
18114 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18115 ($(BLD)/abbrev.$(O)): Remove.
18116
181172007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18118
18119 Rewrite abbrev.c in Elisp.
18120 * image.c (Qcount): Don't declare as extern.
18121 (syms_of_image): Initialize and staticpro `Qcount'.
18122 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18123 * emacs.c (main): Don't call syms_of_abbrev.
18124 * Makefile.in (obj): Remove abbrev.o.
18125 (abbrev.o): Remove.
18126 * abbrev.c: Remove.
18127
181282007-10-26 Martin Rudalics <rudalics@gmx.at>
18129
18130 * window.c (window_min_size_2): Don't count header-line.
18131
181322007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18133
18134 * frame.h (struct frame): Move all bit fields after the first bit
18135 field to take advantage of the available space. Group all the
18136 chars together to reduce wasted space due to padding.
18137
181382007-10-26 Juanma Barranquero <lekktu@gmail.com>
18139
18140 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18141
18142 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18143 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18144 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18145 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18146 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18147 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18148 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18149 (last_marked, mark_object_loop_halt): Make static.
18150
18151 * frame.c (syms_of_frame) <delete-frame-functions>:
18152 Fix typo in docstring.
18153
181542007-10-25 Juanma Barranquero <lekktu@gmail.com>
18155
18156 * w32.c (init_environment): Fix tiny memory leak.
18157 (w32_get_resource): Remove unused variable `ok'.
18158
181592007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18160
18161 Make `window-system' into a keyboard-local variable (rather than
18162 frame-local as done originally by multi-tty).
18163
18164 * keyboard.h (struct kboard): Add Vwindow_system.
18165 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18166 (mark_kboards): Mark Vwindow_system.
18167
18168 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18169 (init_display): Don't set the obsolete `window-system' frame-param.
18170
18171 * xterm.c (x_term_init):
18172 * w32term.c (w32_create_terminal):
18173 * term.c (init_tty): Set Vwindow_system.
18174 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18175 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18176
18177 * xfns.c (Fx_create_frame, x_create_tip_frame):
18178 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18179 * macfns.c (Fx_create_frame):
18180 Don't set the obsolete `window-system' frame-param.
18181
18182 * frame.h (Qwindow_system): Remove.
18183 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18184 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18185
181862007-10-24 Richard Stallman <rms@gnu.org>
18187
18188 * frame.c (x_figure_window_size): For fullscreen case,
18189 set USPosition | PPosition without clobbering rest of window_prompting.
18190
18191 * keyboard.c (Fcurrent_idle_time): Doc fix.
18192
18193 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18194
181952007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18196
18197 * process.c (unwind_request_sigio): Only define if __ultrix__.
18198
18199 * callproc.c (child_setup): Remove spurious *.
18200
18201 * lisp.h (Fget_text_property): Declare.
18202 (have_menus_p): Declare it here rather than in sys-dep header files.
18203 * macterm.h (have_menus_p):
18204 * msdos.h (have_menus_p):
18205 * xterm.h (have_menus_p): Remove.
18206
18207 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18208 (Fmake_variable_frame_local): Just check the variable's const-ness
18209 rather than checking nil or t.
18210
182112007-10-22 Jason Rumney <jasonr@gnu.org>
18212
18213 * w32fns.c: Include math.h.
18214 (w32_abort): Declaration moved to nt/config.nt.
18215
18216 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18217 (abort): Redefinition moved to nt/config.nt.
18218
18219 * m/windowsnt.h: Remove.
18220
182212007-10-22 Juanma Barranquero <lekktu@gmail.com>
18222
18223 * emacs.c (Fdump_emacs): Fix typo in message.
18224 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18225 <installation-directory>: Reflow docstring.
18226
182272007-10-22 Juri Linkov <juri@jurta.org>
18228
18229 * minibuf.c: Allow minibuffer default to be a list of default values.
18230 With empty input use the first element of this list as returned default.
18231 (string_to_object)
18232 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18233 (read_minibuf): If defalt is cons, set histstring to its car.
18234 (Fread_string): If default_value is cons, set val to its car.
18235 (Fread_buffer): If def is cons, use its car.
18236 (Fcompleting_read): If defalt is cons, set val to its car.
18237
182382007-10-21 Michael Albinus <michael.albinus@gmx.de>
18239
18240 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18241
182422007-10-20 Juanma Barranquero <lekktu@gmail.com>
18243
18244 * doc.c (Fdocumentation): Check for advice in all cases.
18245
182462007-10-19 Chong Yidong <cyd@stupidchicken.com>
18247
18248 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18249
182502007-10-19 Richard Stallman <rms@gnu.org>
18251
18252 * doc.c (Fdocumentation): Check for and handle an advised function.
18253
182542007-10-19 Juanma Barranquero <lekktu@gmail.com>
18255
18256 * process.c (Fset_process_filter): Doc fix.
18257
182582007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18259
18260 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18261 which caused key-translation-map to applied repeatedly (thus breaking
18262 double-mode).
18263
182642007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18265
18266 * xselect.c (x_own_selection, x_handle_selection_clear)
18267 (x_clear_frame_selections):
18268 * w32menu.c (list_of_panes, list_of_items):
18269 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18270 * textprop.c (validate_plist, interval_has_all_properties)
18271 (interval_has_some_properties, interval_has_some_properties_list)
18272 (add_properties, text_property_list):
18273 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18274 * minibuf.c (Fassoc_string):
18275 * macselect.c (x_own_selection, x_clear_frame_selections)
18276 (Fx_disown_selection_internal):
18277 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18278 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18279
182802007-10-17 Chong Yidong <cyd@stupidchicken.com>
18281
18282 * process.c: Link to libs for calling res_init() if available.
18283 (Fmake_network_process): Call res_init() before getaddrinfo or
18284 gethostbyname, if possible.
18285
182862007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18287
18288 * lread.c (read1): Set pvectype for char_tables.
18289
18290 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18291 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18292 Add type checks.
18293 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18294
18295 * alloc.c (free_misc): Use XMISCTYPE.
18296 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18297
182982007-10-17 Glenn Morris <rgm@gnu.org>
18299
18300 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18301 (syms_of_minibuf): Add Qcompletion_ignore_case.
18302 * dired.c (Qcompletion_ignore_case): Change to external.
18303 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18304 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18305 (Fread_file_name): Use it rather than intern'ing.
18306
18307 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18308 (Fread_coding_system): Ignore case of user input.
18309
183102007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18311
18312 * xdisp.c (handle_display_prop): Ignore display specs after
18313 replacing one when string text is being replaced.
18314 (handle_single_display_spec): Pretend as if characters with display
18315 property haven't been consumed only when buffer text is being replaced.
18316
183172007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18318
18319 * xfns.c (Fx_create_frame, Fx_display_list):
18320 * window.c (window_fixed_size_p, enlarge_window)
18321 (shrink_window_lowest_first):
18322 * macterm.c (init_font_name_table):
18323 * macfns.c (Fx_create_frame, Fx_display_list):
18324 * lread.c (close_load_descs):
18325 * keyboard.c (read_char_x_menu_prompt):
18326 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18327 * coding.c (code_convert_region_unwind): Test the type of an object
18328 rather than just !NILP before extracting data from it.
18329
18330 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18331
18332 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18333 (XMISCANY): New macro.
18334 (XMISCTYPE): Use it.
18335 (struct Lisp_Misc_Any): New type.
18336 (union Lisp_Misc): Use it.
18337 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18338 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18339 (find_symbol_value, set_internal, default_value, Fset_default)
18340 (Fmake_variable_buffer_local, Fmake_local_variable)
18341 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18342 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18343 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18344 * alloc.c (allocate_buffer): Set the size and tag.
18345 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18346 Use XMISCANY.
18347 (die): Follow the GNU convention for error messages.
18348 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18349 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18350 tag any more.
18351 (set_buffer_internal_1):
18352 * frame.c (store_frame_param):
18353 * eval.c (specbind):
18354 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18355
18356 * doc.c (Fsnarf_documentation): Simplify.
18357
183582007-10-14 Juanma Barranquero <lekktu@gmail.com>
18359
18360 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18361 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18362
183632007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18364
18365 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18366
183672007-10-14 Juanma Barranquero <lekktu@gmail.com>
18368
18369 * eval.c (do_autoload): Don't save autoloads.
18370
18371 * data.c (Ffset): Save autoload of the function being set.
18372
183732007-10-07 John Paul Wallington <jpw@pobox.com>
18374
18375 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18376 parameter before setting up faces.
18377
183782007-10-13 Eli Zaretskii <eliz@gnu.org>
18379
18380 * ccl.c (Fregister_code_conversion_map):
18381 * keyboard.c (append_tool_bar_item): Reformat last change.
18382
18383 * lisp.h (eabs): Rename from `abs'. All callers changed.
18384
183852007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18386
18387 * buffer.c (add_overlay_mod_hooklist):
18388 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18389 * fontset.c (make_fontset):
18390 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18391 (append_tool_bar_item):
18392 * macmenu.c (grow_menu_items):
18393 * w32menu.c (grow_menu_items):
18394 * xmenu.c (grow_menu_items): Use larger_vector.
18395
183962007-10-13 Eli Zaretskii <eliz@gnu.org>
18397
18398 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18399 selected frame'' on MSDOS).
18400
184012007-10-12 Martin Rudalics <rudalics@gmx.at>
18402
18403 * frame.c (Qexplicit_name): New variable.
18404 (x_report_frame_params): Report it in parameter alist.
18405 (syms_of_frame): Intern and staticpro it.
18406
184072007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18408
18409 * macfns.c (x_create_tip_frame): Set terminal for frame.
18410
184112007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18412
18413 * frame.c (Qenvironment): Remove.
18414 (syms_of_frame) <Qenvironment>: Don't initialize.
18415 (Fdelete_frame): Don't treat the `environment' param specially.
18416 * frame.h (Qenvironment): Don't declare.
18417 * callproc.c (set_initial_environment): Don't set unused frame param.
18418
18419 * frame.c (Fframe_with_environment): Remove.
18420 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18421
18422 * lisp.h (Fframe_with_environment): Don't declare.
18423
184242007-10-10 Juanma Barranquero <lekktu@gmail.com>
18425
18426 * indent.c (indent_tabs_mode, last_known_column)
18427 (last_known_column_modified): Make static.
18428 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18429
184302007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18431
18432 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18433
184342007-10-09 Jason Rumney <jasonr@gnu.org>
18435
18436 * w32term.c (x_set_window_size): Disable code that attempts to tell
18437 Lisp code about a size change before it actually happens.
18438
184392007-10-09 Richard Stallman <rms@gnu.org>
18440
18441 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18442 return HANDLED_RETURN.
18443
184442007-10-08 Martin Rudalics <rudalics@gmx.at>
18445
18446 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18447 when there's an unread command event.
18448
18449 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18450 window autoselection act appropriately when leaving selected frame.
18451 (syms_of_frame): Initialize focus_follows_mouse.
18452 * frame.h (focus_follows_mouse): Extern it.
18453 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18454 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18455 * msdos.c (dos_rawgetc): Likewise.
18456 * w32term.c (w32_read_socket): Likewise.
18457 * xterm.c (handle_one_xevent): Likewise.
18458 * xdisp.c (syms_of_xdisp): In doc-string of
18459 mouse-autoselect-window mention focus-follows-mouse.
18460
184612007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18462
18463 * macterm.c (mac_load_query_font): Fix missing return value.
18464 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18465 Add BLOCK_INPUT.
18466
184672007-10-08 Richard Stallman <rms@gnu.org>
18468
18469 * xdisp.c (get_window_cursor_type): Implement documented behavior
18470 for cursor-in-non-selected-windows = t.
18471
184722007-10-08 Jason Rumney <jasonr@gnu.org>
18473
18474 * w32.c (w32_get_resource): Always close registry keys.
18475
184762007-10-08 Jason Rumney <jasonr@gnu.org>
18477
18478 * makefile.w32-in (LIBS): Add COMCTL32.
18479
18480 * w32fns.c (globals_of_w32fns): Init common controls.
18481
184822007-10-08 Richard Stallman <rms@gnu.org>
18483
18484 * image.c (our_memory_buffer): Rename from omfib_buffer.
18485
184862007-10-08 Richard Stallman <rms@gnu.org>
18487
18488 * buffer.c (Foverlays_at): Doc fix.
18489
184902007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18491
18492 * fns.c (Fplist_put): Preserve uneven tail data.
18493
184942007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18495
18496 * termhooks.h (enum event_kind): Remove trailing comma.
18497
18498 * frame.h (enum): Remove trailing comma.
18499
185002007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18501
18502 * w32proc.c (delete_child): Don't terminate threads of zombies.
18503
185042007-10-08 Martin Rudalics <rudalics@gmx.at>
18505
18506 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18507
18508 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18509 last-repeatable-command.
18510 (init_kboard): Initialize Vlast_repeatable_command.
18511 (command_loop_1): Set it to real_this_command unless that was
18512 bound to an input event.
18513 (mark_kboards): Mark it.
18514
185152007-10-08 Richard Stallman <rms@gnu.org>
18516
18517 * eval.c (condition-case): Doc fix.
18518
185192007-10-08 Masatake YAMATO <jet@gyve.org>
18520
18521 * xfaces.c (tty_supports_face_attributes_p): Fix code
18522 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18523 was copied and not edited.
18524
185252007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18526
18527 Add new `input-decode-map' keymap and use it for terminal
18528 escape sequences.
18529 * keyboard.h (struct kboard): Add Vinput_decode_map.
18530 Remove Vlocal_key_translation_map.
18531 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18532 (init_kboard): Init input-decode-map.
18533 Replace local-key-translation-map back with key-translation-map.
18534 (syms_of_keyboard): Declare input-decode-map.
18535 Remove local-key-translation-map. Update docstrings.
18536 (mark_kboards): Mark Vinput_decode_map.
18537 Don't mark Vlocal_key_translation_map.
18538 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18539 Replace local-key-translation-map back with key-translation-map.
18540 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18541 Bind in input-decode-map rather than function-key-map.
18542
18543 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18544 This was made redundant by the previous introduction of XSETPVECTYPE.
18545
185462007-10-09 Richard Stallman <rms@gnu.org>
18547
18548 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18549
185502007-09-29 Richard Stallman <rms@gnu.org>
18551
18552 * eval.c (internal_condition_case_2, internal_condition_case_1)
18553 (internal_condition_case): Reenable abort if x_catching_errors ()
18554 to see if that really happens and why.
18555
185562007-10-06 Andreas Schwab <schwab@suse.de>
18557
18558 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18559
185602007-10-04 Juanma Barranquero <lekktu@gmail.com>
18561
18562 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18563
185642007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18565
18566 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18567
185682007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18569
18570 * window.h (struct window):
18571 * window.c (struct save_window_data, struct saved_window):
18572 * termhooks.h (struct terminal):
18573 * process.h (struct Lisp_Process):
18574 * frame.h (struct frame):
18575 * buffer.h (struct buffer):
18576 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18577 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18578 The size field of (pseudo)vectors is now unsigned.
18579 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18580
18581 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18582 Turn `count' into an integer.
18583
18584 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18585 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18586 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18587 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18588 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18589
18590 * alloc.c (allocate_pseudovector): New fun.
18591 (ALLOCATE_PSEUDOVECTOR): New macro.
18592 (allocate_window, allocate_terminal, allocate_frame)
18593 (allocate_process): Use it.
18594 (mark_vectorlike): New function.
18595 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18596 (mark_terminals): Use it.
18597 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18598 (Fmake_byte_code): Use XSETPVECTYPE.
18599
18600 * frame.c (Fframe_parameters): Minor simplification.
18601
18602 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18603
18604 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18605
18606 * buffer.c (Fget_buffer_create, init_buffer_once):
18607 * lread.c (defsubr):
18608 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18609
18610 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18611 defined differently in the m/*.h files.
18612 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18613 (XSETPVECTYPE): New macro.
18614 (XSETPSEUDOVECTOR): Use it.
18615
18616 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18617 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18618
18619 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18620 * lread.c (defvar_per_buffer):
18621 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18622
18623 * window.c (candidate_window_p): Only consider as visible frames that
18624 are on the same terminal.
18625
18626 * m/ibms390x.h (MARKBIT): Remove unused macro.
18627
186282007-10-01 Juanma Barranquero <lekktu@gmail.com>
18629
18630 * lread.c (Fload): Fix typo in docstring.
18631
186322007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18633
18634 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18635 of a non-zero value can't yield zero.
18636
186372007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18638
18639 * term.c (term_clear_mouse_face, term_mouse_highlight)
18640 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18641
18642 * print.c (safe_debug_print): Use XHASH.
18643
18644 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18645 Lisp elements such as tags.
18646 (XHASH): New macro.
18647 (EQ): Use it.
18648 (SREF, SSET, STRING_COPYIN): Use SDATA.
18649 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18650
18651 * alloc.c (mark_terminal): Remove left-over declaration.
18652 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18653 (allocate_vectorlike): Remove type argument. Adjust callers.
18654 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18655 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18656
18657 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18658 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18659 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18660 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18661 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18662 Use them.
18663
18664 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18665 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18666 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18667
186682007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18669
18670 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18671 loaded by default.
18672
186732007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18674
18675 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18676 on this tty.
18677 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18678
18679 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18680 Update all users.
18681 (handle_one_term_event): Use Gpm_DrawPointer.
18682 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18683 Signal errors instead of returning nil. Always return nil.
18684 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18685 Make it a noop if gpm-mouse was not activated.
18686 (syms_of_term): Update names.
18687
186882007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18689
18690 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18691 (init_sys_modes): Check that gpm_tty is the current tty.
18692
18693 * alloc.c (allocate_terminal): Set the vector size to only count the
18694 lisp fields. Initialize those to nil.
18695 (mark_object): Don't treat terminals specially.
18696 (mark_terminal): Remove.
18697 (mark_terminals): Use mark_object instead.
18698
18699 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18700 the GC to the beginning.
18701
18702 * indent.h:
18703 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18704
18705 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18706
187072007-09-25 Jason Rumney <jasonr@gnu.org>
18708
18709 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18710
18711 * w32console.c (create_w32cons_output): Remove.
18712
18713 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18714
18715 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18716 (reset_sys_modes): Use reset_terminal_modes_hook.
18717
187182007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18719
18720 * eval.c (do_autoload): Don't output any message.
18721
187222007-09-24 Juri Linkov <juri@jurta.org>
18723
18724 * emacs.c (standard_args): Change priority of "--no-splash"
18725 from 40 to 3. Add "--no-desktop" with the same priority.
18726
187272007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18728
18729 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18730 and optimize the case where they are all 1.
18731
187322007-09-23 Johannes Weiner <hannes@saeurebad.de>
18733
18734 * lisp.h (abs): Define if not defined.
18735 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18736 Don't define `abs', since it's defined in lisp.h.
18737
187382007-09-22 Eli Zaretskii <eliz@gnu.org>
18739
18740 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18741 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18742 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18743 (init_tty): Use DEV_TTY instead of "/dev/tty".
18744 [WINDOWSNT]: No need to protect from NAME arg being null.
18745
187462007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18747
18748 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18749 up the tty state.
18750
187512007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18752
18753 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18754 (gpm_tty): Change its type.
18755 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18756 (gpm_tty): Change its type and initialize it.
18757 (Fterm_open_connection): Check the frame is indeed a tty.
18758 Use the new gpm_tty.
18759 (Fterm_close_connection): Use the new gpm_tty.
18760 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18761 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18762
187632007-09-21 Juanma Barranquero <lekktu@gmail.com>
18764
18765 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18766 underline_color, to draw strike-through.
18767
187682007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18769
18770 * lisp.h (allocate_terminal): Declare.
18771
18772 * window.c (candidate_window_p): Consider frames that are being placed
18773 by the user as somewhere between visible and iconified.
18774 (window_loop): Prefer windows on the current frame.
18775 (Fselect_window): Move the use of select-frame to the beginning so we
18776 can just delegate all the work (it'll call us back anyway).
18777
18778 * frame.c (Qdisplay_environment_variable):
18779 * frame.h (Qdisplay_environment_variable): Delete.
18780
18781 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18782 of the first arg, since that value may be a union.
18783
18784 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18785 parameter rather than Qdisplay_environment_variable. If all else
18786 fails, look for DISPLAY in initial-environment.
18787
187882007-09-21 Glenn Morris <rgm@gnu.org>
18789
18790 * Makefile.in (emacstool): Remove target.
18791 (lisp, shortlisp): Remove termdev.elc.
18792
187932007-09-21 Markus Triska <markus.triska@gmx.at>
18794
18795 * xterm.c (x_delete_display): Compile session management conditionally.
18796
187972007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18798
18799 * callproc.c (getenv_internal_1): New function.
18800 (getenv_internal): Use it.
18801 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18802
18803 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18804 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18805 (Fset_terminal_parameter): Work with dead terminals as well.
18806 (Fmodify_terminal_parameters): Remove.
18807
18808 * terminal.c (get_terminal): Handle terminals.
18809 Make sure the terminal returned is live.
18810 (create_terminal): Use allocate_terminal.
18811 (mark_terminals): Move to alloc.c.
18812 (delete_terminal): Use terminal->name as liveness status.
18813 NULL out fields after freeing their contents.
18814 Don't deallocate the object.
18815 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18816 rather than an int.
18817 (Fterminal_live_p): Accept non-integer arguments.
18818 (Fterminal_list): Return terminal objects rather than an ints.
18819
18820 * alloc.c (enum mem_type): New member for `terminal' objects.
18821 (allocate_terminal): New function.
18822 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18823 Handle terminals.
18824 (mark_terminal): New fun.
18825 (mark_terminals): Move from terminal.c.
18826
18827 * term.c (get_tty_terminal): Don't treat output_initial specially.
18828 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18829 (delete_tty): Use terminal->name as liveness status.
18830
18831 * termhooks.h (struct terminal): Make it into a pseudovector.
18832 Remove `deleted' replaced by checking `name's nullness.
18833
18834 * print.c (print_object): Handle terminals.
18835
18836 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18837 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18838
18839 * frame.c (make_terminal_frame):
18840 * keyboard.c (tty_read_avail_input):
18841 * w32term.c (x_delete_terminal):
18842 * xfns.c (Fx_create_frame, x_create_tip_frame):
18843 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18844
188452007-09-20 Glenn Morris <rgm@gnu.org>
18846
18847 * process.c (Fmake_network_process): Doc fix.
18848
188492007-09-19 Jason Rumney <jasonr@gnu.org>
18850
18851 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18852
188532007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18854
18855 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18856 Fix a C warning regarding variable constness.
18857
18858 * xterm.c (handle_one_xevent): Fix a C warning.
18859
188602007-09-18 Jason Rumney <jasonr@gnu.org>
18861
18862 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18863
188642007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18865
18866 * gtkutil.c (gdpy_def): New variable.
18867 (xg_initialize): Initialize gdpy_def.
18868 (xg_display_close): If no other display exists, set gdpy_def to a
18869 new connection.
18870
188712007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18872
18873 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18874 when we have no file name for the icon.
18875 (xg_tool_bar_expose_callback): Remove.
18876 (xg_create_tool_bar): Don't connect expose signal to
18877 xg_tool_bar_expose_callback.
18878 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18879
188802007-09-16 Andreas Schwab <schwab@suse.de>
18881
18882 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18883 values instead of zapping them.
18884
188852007-09-14 Glenn Morris <rgm@gnu.org>
18886
18887 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18888 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18889 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18890 scope and rename to omfib_buffer for clarity.
18891 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18892
188932007-09-14 Kenichi Handa <handa@m17n.org>
18894
18895 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18896
188972007-09-13 Jason Rumney <jasonr@gnu.org>
18898
18899 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18900
18901 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18902
18903 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18904 (mac_term_init): Call here instead, passing rif.
18905
189062007-09-13 Glenn Morris <rgm@gnu.org>
18907
18908 * s/hpux.h: No longer define `static' as nothing.
18909
189102007-09-13 Johan Bockgård <bojohan@gnu.org>
18911
18912 * callint.c (Fcall_interactively): Remove unused var `fun'.
18913
189142007-09-12 Romain Francoise <romain@orebokech.com>
18915
18916 * window.c (prefer_window_split_horizontally, display_buffer):
18917 Revert 2007-09-08 change.
18918
189192007-09-12 Glenn Morris <rgm@gnu.org>
18920
18921 * alloca.c: Remove file.
18922 * Makefile.in (alloca): Do not undef.
18923 (allocaobj, alloca.o): Remove.
18924 (otherobj): Remove allocaobj.
18925 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18926 * regex.c (C_ALLOCA): Remove all references and code that was only
18927 used when this was defined.
18928 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18929 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18930 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18931
18932 * Makefile.in (SOURCES, unlock, relock): Delete.
18933
18934 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18935 (menu_grab_callback): All uses changed.
18936
18937 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18938 (x_reply_selection_request): All uses changed.
18939
189402007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18941
18942 * lread.c (load_warn_old_style_backquotes): Change message to look
18943 better when it appears in the middle of byte-compiler messages.
18944
189452007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18946
18947 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18948
18949 * xterm.c (x_create_terminal): Add comment.
18950
18951 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18952
189532007-09-10 Richard Stallman <rms@gnu.org>
18954
18955 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18956
189572007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18958
18959 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18960 (DEFUN): Document `intspec', use it instead of `prompt'.
18961
18962 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18963
18964 * data.c (Finteractive_form): If the interactive specification starts
18965 with a `(', use it as a Lisp form.
18966
18967 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18968 name and file modes.
18969
18970 * callint.c (Fcall_interactively): Comment fixes.
18971
189722007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18973
18974 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18975 and compiled functions.
18976
189772007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18978
18979 * window.c (prefer_window_split_horizontally): New variable.
18980 (display_buffer): Consider splitting window horizontally depending
18981 on prefer_window_split_horizontally.
18982
189832007-09-08 Eli Zaretskii <eliz@gnu.org>
18984
18985 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18986
189872007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18988
18989 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18990
18991 * frame.c (x_set_frame_parameters): Check number is positive before
18992 using XFASTINT.
18993
18994 * window.c (freeze_window_start): Don't presume selected_window holds
18995 a window object.
18996 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18997
189982007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18999
19000 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19001
190022007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19003
19004 * window.c (Vsplit_window_preferred_function): New var.
19005 (Fdisplay_buffer): Use it.
19006 (syms_of_window): Export, and initialize it.
19007
190082007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19009
19010 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19011
190122007-09-06 Glenn Morris <rgm@gnu.org>
19013
19014 * gtkutil.c (menu_grab_callback) <cnt>:
19015 * xselect.c (x_reply_selection_request) <cnt>: Move static
19016 variable to file scope.
19017
190182007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19019
19020 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19021 consistent values of selected_frame and selected_window.
19022
190232007-09-04 Jason Rumney <jasonr@gnu.org>
19024
19025 * w32console.c (initialize_w32_display): Zero unused hooks.
19026
190272007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19028
19029 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19030 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19031
190322007-09-04 Jason Rumney <jasonr@gnu.org>
19033
19034 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19035 in w32console.c. Set up input. Remove XXX comments that have been
19036 confirmed as correct.
19037
19038 * s/ms-w32.h (MULTI_KBOARD): Define.
19039
19040 * w32console.c (one_and_only_w32cons): Remove.
19041 (initialize_w32_display): Take terminal argument.
19042
19043 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19044 initialize_w32_display.
19045 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19046
19047 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19048
19049 * keyboard.c (discard_mouse_events): Discard it.
19050 (make_lispy_event): Translate it to a lisp event.
19051 (lispy_wheel_names): Add wheel-left and right events.
19052 (syms_of_keyboard): Enlarge wheel_syms.
19053
19054 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19055 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19056
19057 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19058
19059 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19060 from WM_MOUSEHWHEEL.
19061 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19062
19063 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19064 terminal.
19065
19066 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19067 keyboard for the terminal.
19068
190692007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19070
19071 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19072 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19073 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19074 and resume-tty-function to resume-tty-hook.
19075 (Fsuspend_tty, Fresume_tty): Use new names.
19076
190772007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19078
19079 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19080 if it starts with "n:".
19081
190822007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19083
19084 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19085
190862007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19087
19088 * frame.h:
19089 * frame.c (Qterm_environment_variable): Remove.
19090 (syms_of_frame): Don't init and staticpro it.
19091
19092 * callproc.c (getenv_internal): Remove special case for $TERM.
19093
19094 * callproc.c (Vinitial_environment): New variable.
19095 (set_initial_environment): Initialize it.
19096 (syms_of_callproc): Declare it.
19097 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19098 TERM under which a process runs is never related to the TERM in which
19099 Emacs is running.
19100
191012007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19102
19103 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19104 * s/darwin.h: ... do it here.
19105
191062007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19107
19108 * lisp.h (set_initial_environment): Rename from set_global_environment.
19109
19110 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19111 removed by mistake on the multi-tty branch.
19112
19113 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19114 (Fmodify_frame_parameters): Return a value.
19115
19116 * image.c (png_load): Comment-out var only used in commented-out code.
19117
19118 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19119 before passing it to mark_object.
19120
19121 * xfaces.c (internal_resolve_face_name): Return a value.
19122 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19123
19124 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19125 (x_icon): Comment-out var only used in commented-out code.
19126
191272007-08-29 Romain Francoise <romain@orebokech.com>
19128
19129 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19130 QUIT hasn't been provided.
19131
191322007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19133
19134 * callproc.c (child_setup, getenv_internal): Use the
19135 display-environment-variable and term-environment-variable frame params.
19136 (set_initial_environment): Initialise Vprocess_environment.
19137
19138 * config.in: Disable multi-keyboard support on a mac.
19139
19140 * frame.c (Qterm_environment_variable)
19141 (Qdisplay_environment_variable): New variables.
19142 (syms_of_frame): Intern and staticpro them.
19143 (Fmake_terminal_frame): Disable output method test.
19144
19145 * frame.h: Declare them here.
19146
19147 * macfns.c (x_set_mouse_color): Get rif from the frame.
19148 (x_set_tool_bar_lines): Don't use updating_frame.
19149 (mac_window): Add 2 new parameters for consistency with other systems.
19150 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19151 frame parameters following what is done in X11 and w32. Don't use
19152 FRAME_MAC_DISPLAY_INFO.
19153 (Fx_open_connection, start_hourglass): Remove window-system check.
19154 (x_create_tip_frame): Get the keyboard from the terminal.
19155
19156 * macmenu.c: Reorder includes.
19157 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19158
19159 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19160 terminal parameter.
19161 (x_clear_frame): Add a frame parameter.
19162 (note_mouse_movement): Get rif from the frame.
19163 (mac_term_init): Initialize the terminal.
19164 (mac_initialize): Make static and move terminal initialization ...
19165 (mac_create_terminal): ... to this new function.
19166
19167 * macterm.h (struct mac_display_info): Add terminal.
19168 (mac_initialize): Delete declaration.
19169
19170 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19171
19172 * sysdep.c: Comment out text after #endif.
19173
19174 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19175 is defined. Better initialize ttys in windows. Use terminal
19176 specific mouse_position_hook.
19177
19178 * termhooks.h (union display_info): Add mac_display_info.
19179
19180 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19181 Set the default minibuffer frame, window_system and the rest of the
19182 frame parameters following what is done in X11.
19183
19184 * w32term.c (w32_initialize): Make static.
19185
19186 * xselect.c (x_handle_selection_clear): Only access
19187 terminal->kboard when MULTI_KBOARD is defined.
19188
19189 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19190 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19191
191922007-08-29 Jason Rumney <jasonr@gnu.org>
19193
19194 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19195 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19196
19197 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19198 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19199
19200 * keyboard.c (restore_kboard_configuration): Only define when
19201 MULTI_KBOARD defined.
19202
19203 * makefile.w32-in: Update dependancies from Makefile.in.
19204 (OBJ1): Add terminal.$(O)
19205
19206 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19207 Don't define function body.
19208 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19209
19210 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19211
19212 * w32.c (request_sigio, unrequest_sigio): Remove.
19213
19214 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19215 (w32con_clear_frame, w32con_clear_end_of_line)
19216 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19217 (w32con_delete_glyphs, w32con_set_terminal_window)
19218 (scroll_line, w32_sys_ring_bell): Add frame arg.
19219 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19220 Add terminal arg.
19221 (PICK_FRAME): Remove.
19222 (w32con_write_glyphs): Use frame specific terminal coding.
19223 (one_and_only_w32cons): New global variable.
19224 (initialize_w32_display): Use it for storing hooks.
19225 (create_w32cons_output): New function.
19226
19227 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19228 arg a frame.
19229
19230 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19231 Set window_system.
19232 (x_set_tool_bar_lines): Don't use updating_frame.
19233 (Fx_create_frame): Set terminal and ref count.
19234 (Fx_open_connection): Remove window-system check.
19235
19236 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19237
19238 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19239 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19240 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19241 Add frame arg.
19242 (x_delete_terminal, w32_create_terminal): New functions.
19243 (w32_term_init): Create a terminal.
19244 (w32_initialize): Move terminal specific initialization to
19245 w32_create_terminal.
19246
19247 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19248 (w32_clear_rect, w32_clear_area): Use background from frame.
19249 (w32_display_info): Add terminal.
19250 (w32_sys_ring_bell, x_delete_display): Declare here.
19251
19252 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19253
19254 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19255
192562007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19257
19258 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19259 Fix get_named_tty calls for the controlling tty.
19260
192612007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19262
19263 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19264
192652007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19266
19267 * term.c (tty_insert_glyphs): Add missing first parameter.
19268
192692007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19270
19271 * buffer.c (Fbuffer_list, Fbury_buffer):
19272 Take frame->buried_buffer_list into account.
19273
19274 * cm.c (current_tty): New variable, for cmputc().
19275 (cmputc): Use it.
19276 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19277 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19278 (cmgoto): Add tty parameter. Pass it on to calccost().
19279 Use emacs_tputs() instead of tputs().
19280
19281 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19282 tputs().
19283 (current_tty): New variable, for cmputc().
19284 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19285
19286 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19287 (internal_condition_case, internal_condition_case_1)
19288 (internal_condition_case_2): Don't abort when x_catching_errors.
19289
19290 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19291 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19292 prevent crashes caused by bogus longjmps in read_char.
19293
19294 * keymap.h (Fset_keymap_parent): Add EXFUN.
19295
19296 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19297 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19298 Remove redundant definition.
19299
19300 * macfns.c (x_set_mouse_color, x_make_gc):
19301 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19302
19303 * w32term.c (x_free_frame_resources):
19304 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19305 (w32_initialize): Use the accessor macros for terminal characteristics.
19306
19307 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19308 Use the accessor macros for terminal characteristics.
19309 * msdos.c (internal_terminal_init): Use the accessor macros for
19310 terminal characteristics.
19311 (ScreenVisualBell, internal_terminal_init):
19312 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19313
19314 * termopts.h (no_redraw_on_reenter): Declare.
19315
19316 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19317 (mark_terminals, mark_ttys): Declare.
19318 (Fgarbage_collect): Call them.
19319 (mark_object): Mark buried_buffer_list.
19320
19321 * prefix-args.c: Include stdlib.h for exit.
19322
19323 * syssignal.h: Add comment.
19324
19325 * indent.c: Include stdio.h.
19326
19327 * window.h (Vinitial_window_system): Declare.
19328 (Vwindow_system): Delete declaration.
19329
19330 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19331
19332 * image.c (lookup_image): Don't initialize `c' until the xasserts
19333 have been run.
19334
19335 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19336 FRAME_FOREGROUND_PIXEL.
19337
19338 * print.c (print_preprocess): Don't lose print_depth levels while
19339 iterating.
19340
19341 * widget.c (update_from_various_frame_slots):
19342 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19343
19344 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19345 frames.
19346 (window_internal_height): Remove bogus make_number call.
19347 (init_window_once): Call make_terminal_frame with two zero parameters.
19348
19349 * fileio.c (Fread_file_name): Update comment.
19350
19351 * callint.c (Fcall_interactively):
19352 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19353 Make sure it is correctly unwound.
19354
19355 * xsmfns.c (x_session_close): New function.
19356
19357 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19358 Delete declarations.
19359
19360 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19361 (x_output): Remove background_pixel and foreground_pixel fields.
19362 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19363 (x_delete_device, x_session_close): Declare.
19364
19365 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19366 (read_filtered_event): Call `read_char' with a local
19367 `wrong_kboard_jmpbuf'.
19368
19369 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19370 Don't call single_kboard_state. Use FRAME_RIF.
19371
19372 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19373 systems.
19374
19375 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19376 (Fframe_with_environment, Fset_input_meta_mode)
19377 (Fset_quit_char): EXFUN.
19378 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19379 (init_sys_modes, reset_sys_modes): Update prototypes.
19380 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19381
19382 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19383 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19384 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19385 Delete declarations.
19386 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19387 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19388 New declarations.
19389
19390 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19391 already does that during init_display(). Call syms_of_keymap
19392 before syms_of_keyboard. Call `syms_of_terminal'.
19393 Call set_initial_environment, not set_process_environment.
19394 (shut_down_emacs): Call reset_all_sys_modes() instead of
19395 reset_sys_modes().
19396
19397 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19398 (internal_resolve_face_name, resolve_face_name_error): New functions.
19399 (resolve_face_name): Protect against loops and errors thrown by Fget.
19400 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19401 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19402
19403 * scroll.c: Replace CURTTY() with local variables throughout the
19404 file (where applicable).
19405 (calculate_scrolling, calculate_direct_scrolling)
19406 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19407 characteristics.
19408
19409 * keymap.c (Vfunction_key_map): Remove.
19410 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19411 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19412 (Vkey_translation_map): Remove.
19413 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19414 (Fdescribe_buffer_bindings)
19415 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19416 Update for terminal-local key-translation-map.
19417
19418 * Makefile.in (callproc.o): Update dependencies.
19419 (lisp, shortlisp): Add termdev.elc.
19420 (obj): Add terminal.o.
19421 (terminal.o): Add dependencies.
19422 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19423 (data.o, fns.o): Add termhooks.h dependency.
19424 (SOME_MACHINE_LISP): Add dnd.elc.
19425 (minibuf.o): Fix typo.
19426 Update dependencies.
19427
19428 * data.c (do_symval_forwarding, store_symval_forwarding)
19429 (find_symbol_value): Use the selected frame's keyboard, not
19430 current_kboard.
19431
19432 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19433 Vwindow_system.
19434
19435 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19436 Fmenu_bar_open.
19437 (syms_of_xmenu): Update defsubr.
19438 (mouse_position_for_popup, Fx_popup_menu)
19439 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19440 (set_frame_menubar, free_frame_menubar)
b97439ce 19441 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19442 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19443 an X frame.
19444
19445 * xselect.c (x_own_selection): Abort if not an X frame.
19446 (some_frame_on_display): Check if it is an X frame.
19447 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19448
19449 * coding.c: Include frame.h and termhooks.h.
19450 (terminal_coding, keyboard_coding): Delete.
19451 (Fset_terminal_coding_system_internal)
19452 (Fset_keyboard_coding_system_internal)
19453 (Fkeyboard_coding_system)
19454 (Fterminal_coding_system): Add a terminal parameter.
19455 Get terminal_coding from the terminal.
19456 (init_coding_once): Don't call setup_coding_system here.
19457
19458 * dispextern.h (set_scroll_region, turn_off_insert)
19459 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19460 (tty_clear_end_of_line, tty_setup_colors)
19461 (delete_tty, updating_frame)
19462 (produce_special_glyphs, produce_glyphs, write_glyphs)
19463 (insert_glyphs): Remove.
19464 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19465 (tty_turn_off_highlight, get_tty_size): Add declaration.
19466 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19467
19468 * frame.h (enum output_method): Add output_initial.
19469 (struct x_output): Delete.
19470 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19471 Access foreground_pixel and background_pixel directly from the frame.
19472 (tty_display): Delete.
19473 (struct frame): Add buried_buffer_list, foreground_pixel,
19474 background_pixel and terminal. Delete kboard.
19475 (union output_data): Add tty.
19476 (FRAME_KBOARD): Get the kboard from the terminal.
19477 (FRAME_INITIAL_P): New macro.
19478 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19479 (Qterm_environment_variable, Qdisplay_environment_variable)
19480 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19481 New declarations.
19482
19483 * termchar.h (tty_output, tty_display_info): New structures.
19484 (tty_list): Declare.
19485 (FRAME_TTY, CURTTY): New macros.
19486 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19487 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19488 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19489 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19490
19491 * callproc.c: Include frame.h and termhooks.h, for terminal
19492 parameters.
19493 (add_env): New function.
19494 (child_setup): Use it.
19495 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19496 (getenv_internal): Fix get_terminal_param call.
19497 (Fgetenv_internal, egetenv): Update doc.
19498 (syms_of_callproc): Initialize Vprocess_environment to nil.
19499 Register and initialize them. Remove obsolete defvars. Update doc
19500 strings.
19501 (child_setup): Handle Vlocal_environment_variables.
19502 (getenv_internal): Add terminal parameter.
19503 Handle Vlocal_environment_variables.
19504 (Fgetenv_internal): Add terminal parameter.
19505 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19506 environment in a frame (not terminal) parameter. Update doc strings.
19507 (set_initial_environment): Rename from set_global_environment.
19508 Store Emacs environment in initial frame parameter.
19509
19510 * xdisp.c (redisplay_internal): Update references to
19511 `previous_terminal_frame'.
19512 (display_mode_line, Fformat_mode_line): Replace calls to
19513 `push_frame_kboard' with `push_kboard'.
19514 (get_glyph_string_clip_rects): Add extra parentheses and
19515 braces to prevent compiler warnings.
19516 (calc_pixel_width_or_height): Add xassert to check that the
19517 frame is alive. Don't call `lookup_image' on a termcap frame.
19518 (message2_nolog, message3_nolog, redisplay_internal)
19519 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19520 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19521 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19522 (Fx_display_pixel_width, Fx_display_pixel_height)
19523 (Fx_display_planes, Fx_display_color_cells)
19524 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19525 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19526 (Fx_display_backing_store, Fx_display_visual_class)
19527 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19528 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19529
19530 * xfns.c (x_set_foreground_color x_set_background_color)
19531 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19532 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19533 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19534 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19535 terminal that is being deleted.
19536 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19537 frame parameter, and make sure it overrides any user-supplied setting.
19538 (Fx_close_connection, Fx_synchronize): Unify argument names with
19539 the rest of the DEFUNs.
19540
19541 * dispnew.c (Fsend_string_to_terminal): Update call to
19542 `get_tty_terminal'.
19543 (Fredraw_frame, Fsend_string_to_terminal)
19544 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19545 FRAME_TERMCAP_P and FRAME_TTY.
19546 (window_change_signal): Don't believe width/height values that are
19547 impossibly small.
19548 (Vinitial_window_system): Rename from Vwindow_system.
19549 (termscript, Wcm, rif): Delete.
19550
19551 * termhooks.h (struct terminal): New struct containing the
19552 previously global text display hooks and new members NAME,
19553 DELETED and PARAM_ALIST.
19554 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19555 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19556 (FRAME_RIF): New macros.
19557 (get_terminal_param, get_device): New declarations.
19558 (termscript): Delete declaration.
19559
19560 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19561 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19562 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19563 FRAME_FOREGROUND_PIXEL.
19564 (x_fully_uncatch_errors): Disable definition.
19565 (x_scroll_bar_expose): Fix reference to foreground pixel.
19566 (XTread_socket): Disable loop on all X displays.
19567 (x_delete_terminal): Don't set terminal->deleted and let
19568 delete_terminal delete the frames on the terminal.
19569 (x_delete_display): Doc update to reflect changes in
19570 delete_terminal.
19571 (x_display_info) <terminal>: Move member earlier in the struct.
19572 (deleting_tty): Remove old variable.
19573 (Fsuspend_tty): Call clear_tty_hooks.
19574 (Fresume_tty, init_tty): Call set_tty_hooks.
19575 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19576 errors on X frames.
19577 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19578 (handle_one_xevent): Initialize `f' to NULL.
19579 (x_delete_terminal, x_create_terminal): New functions.
19580 (XTset_terminal_modes, XTreset_terminal_modes)
19581 (XTread_socket, x_connection_closed, x_term_init)
19582 (x_term_init, x_delete_display): Add terminal parameter.
19583 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19584 X connections.
19585
19586 * frame.c: Include termchar.h.
19587 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19588 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19589 (Qdisplay_environment_variable): New vars.
19590 (Fframep): Deal with output_initial.
19591 (Fframe-live-p): Doc fix.
19592 (Fwindow-system): New function.
19593 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19594 (make_terminal_frame): Don't create frames on a terminal that is
19595 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19596 (store_frame_param): Check for found_for_frame before calling XFRAME.
19597 (Fmake_terminal_frame): Handle NULL tty names correctly.
19598 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19599 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19600 frames to refer to a deleted frame in their 'environment parameter.
19601 (Fframe_with_environment): New function.
19602 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19603 (get_future_frame_param): New function.
19604 (Fmake_terminal_frame): Use it.
19605 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19606
19607 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19608 * sysdep.c (reset_sys_modes): Update for renames.
19609
19610 * keyboard.c (tty_read_avail_input): New function.
19611 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19612 (syms_of_keyboard): Defsubr them.
19613 (Fset_input_meta_mode, Fset_quit_char): New functions.
19614 (Fset_input_mode): Split to above functions.
19615 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19616 parameter. Use it in call to `read_char'.
19617 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19618 Set wrong_kboard_jmpbuf correctly in recursive calls.
19619 Use current_kboard to access Vkeyboard_translate_table.
19620 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19621 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19622 Update longjmp invocations. Remember the original current_kboard,
19623 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19624 changes it. Comment out unnecessary calls to
19625 `record_single_kboard_state' and `any_kboard_state'.
19626 Update recursive calls.
19627 (wrong_kboard_jmpbuf): Remove global variable.
19628 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19629 Handle deleted interrupted_kboards correctly; that is a legal
19630 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19631 and read_char calls. Abort if interrupted_kboard died in read_char.
19632 (any_kboard_state, single_kboard_state)
19633 (push_frame_kboard): Remove function.
19634 (pop_kboard): Switch out of single_kboard mode if the kboard has
19635 been deleted. Remove unused variable. Help debugging by not
19636 changing current_kboard unnecessarily. Set current_kboard to the
19637 kboard of the selected frame when the stored kboard object has
19638 been deleted before pop_kboard.
19639 (temporarily_switch_to_single_kboard): Change first parameter to a
19640 frame pointer. Throw an error when caller wants to change kboards
19641 while in single_kboard mode. Don't push_kboard if we weren't in
19642 single kboard state. Don't pop_kboard if we popped into any
19643 kboard state.
19644 (restore_kboard_configuration): Abort if pop_kboard changed the
19645 kboard in single_kboard mode. Call pop_kboard only after setting
19646 up single_kboard mode.
19647 (Frecursive_edit): Switch to single_kboard mode only in nested
19648 command loops.
19649 (cmd_error, command_loop, command_loop_1, timer_check):
19650 Comment out unnecessary call to `any_kboard_state' and
19651 `record_single_kboard_state'.
19652 (delete_kboard): Exit single_kboard mode if we have just deleted
19653 that kboard. Use FRAME_KBOARD.
19654 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19655 `fatal_error_signal'.
19656 (record_single_kboard_state): Don't push_kboard if we weren't in
19657 single kboard state. Don't pop_kboard if we popped into any
19658 kboard state.
19659 (push_frame_kboard): Rename to push_kboard.
19660 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19661 (read_avail_input): Read input from all terminals.
19662 (mark_kboards): Also mark Vkeyboard_translate_table.
19663 (kbd_buffer_store_event_hold): Simplify condition.
19664 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19665 (Vkeyboard_translate_table): Move to struct kboard.
19666 (init_kboard): Initialize Vkeyboard_translate_table.
19667 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19668 Vkeyboard_translate_table. Update doc strings. Update docs of
19669 local-function-key-map and function-key-map.
19670
19671 * terminal.c: New file.
19672
19673 * term.c: Include errno.h.
19674 (Vring_bell_function, device_list, initial_device)
19675 (next_device_id, ring_bell, update_begin, update_end)
19676 (set_terminal_window, cursor_to, raw_cursor_to)
19677 (clear_to_end, clear_frame, clear_end_of_line)
19678 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19679 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19680 (syms_of_term): Move their initialization to terminal.c.
19681 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19682 (Ftty_display_color_cells)
19683 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19684 (clear_tty_hooks, set_tty_hooks)
19685 (init_tty, maybe_fatal): New functions.
19686 (Ftty_type): Return nil if terminal is not on a tty instead of
19687 throwing an error. Doc update.
19688 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19689 Doc update. Initialize new subrs and variables.
19690 (delete_tty): Use terminal->deleted.
19691 (tty_set_terminal_modes): Rename from set_terminal_modes.
19692 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19693 (set_scroll_region): Rename to `tty_set_scroll_region'.
19694 (turn_on_insert): Rename to `tty_turn_on_insert'.
19695 (turn_off_insert): Rename to `tty_turn_off_insert'.
19696 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19697 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19698 (toggle_highligh): Rename to `tty_toggle_highlight'.
19699 (background_highlight): Rename to `tty_background_highlight'.
19700 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19701 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19702 (tty_set_scroll_region, tty_background_highlight)
19703 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19704 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19705 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19706 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19707 Add static modifier.
19708 (tty_reset_terminal_modes, tty_set_terminal_window)
19709 (tty_set_scroll_region, tty_background_highlight)
19710 (tty_highlight_if_desired, tty_cursor_to)
19711 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19712 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19713 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19714 renames.
19715
197162007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19717
19718 * keyboard.c: Qrtl is new.
19719 (parse_tool_bar_item): Handle :rtl keyword.
19720 (syms_of_keyboard): Intern :rtl keyword.
19721
19722 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19723
19724 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19725 so no Lisp code is executed.
19726 (file_for_image, find_rtl_image): New functions.
19727 (xg_get_image_for_pixmap): Use file_for_image.
19728 (update_frame_tool_bar): If direction is RTL, use RTL image if
19729 defined. Use Gtk stock images if defined.
19730
197312007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19732
19733 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19734 for nonexistent or zero-width glyph in composition glyph.
19735
197362007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19737
19738 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19739
19740 * xdisp.c (Finvisible_p): New function.
19741 (syms_of_xdisp): defsubr it.
19742
197432007-08-24 Juanma Barranquero <lekktu@gmail.com>
19744
19745 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19746 Doc fixes.
19747
197482007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19749
19750 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19751
197522007-08-24 Martin Rudalics <rudalics@gmx.at>
19753
19754 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19755 whether decoding has modified buffer contents.
19756
197572007-08-24 Jason Rumney <jasonr@gnu.org>
19758
19759 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19760 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19761 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19762 (init_svg_functions) [HAVE_NTGUI]: New function.
19763 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19764 (svg_load_image): Use them.
19765 (svg_load_image) [HAVE_NTGUI]: Implement background.
19766
197672007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19768
19769 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19770 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19771 (LIBX): Remove @RSVG_LIBS@.
19772 (LIBES): Add $(RSVG_LIBS).
19773
19774 * image.c (svg_load_image): Blend with specified background if exists.
19775 Use IMAGE_BACKGROUND. Add Mac OS Support.
19776
19777 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19778 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19779 Remove macros.
19780 [MAC_OSX] (socket_callback): Do nothing.
19781 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19782 ReceiveNextEvent.
19783 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19784 socket_callback.
19785 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19786
197872007-08-22 Glenn Morris <rgm@gnu.org>
19788
19789 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19790
197912007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19792
19793 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19794
19795 * image.c: Add support for SVG images. Some additional comments
19796 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19797 (svg_image_p): New function to test for SVG image.
19798 (svg_load): New function to load SVG image.
19799 (svg_load_image): New function, helper for svg_load.
19800 (Qsvg): New Lisp_object.
19801 (svg_keyword_index): New enum.
19802 (svg_format): New static `image_keyword' struct.
19803 (svg_type): New static `image_type' struct.
19804 (librsvg/rsvg.h): Include it.
19805
198062007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19807
19808 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19809
198102007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19811
19812 * lread.c (Qold_style_backquotes): New var.
19813 (syms_of_lread): Init and staticpro it.
19814 (load_warn_old_style_backquotes): New fun.
19815 (Fload): Use them to warn about old style backquotes.
19816 (end_of_file_error, Fload): Remove unused vars.
19817
19818 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19819
19820 * lread.c (Vold_style_backquotes): New var.
19821 (syms_of_lread): Init and export it to Elisp.
19822 (read1): Set it when we find an old-style (back)quote.
19823
198242007-08-22 Jason Rumney <jasonr@gnu.org>
19825
19826 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19827
198282007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19829
19830 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19831
198322007-08-19 Richard Stallman <rms@gnu.org>
19833
19834 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19835
198362007-08-19 Andreas Schwab <schwab@suse.de>
19837
19838 * alloc.c (pure): Round PURESIZE up.
19839
198402007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19841
19842 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19843 active frame.
19844
198452007-08-16 Richard Stallman <rms@gnu.org>
19846
19847 * eval.c (Fcommandp): Add parens to clarify.
19848
19849 * minibuf.c (Fall_completions): Use enum for type of table.
19850
19851 * emacs.c (USAGE2): Improve text.
19852
198532007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19854
19855 * term.c (tty_default_color_capabilities): Declare static
19856 variables in file scope, to avoid HPUX compiler problem.
19857
198582007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19859
19860 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19861 to gtk_toolbar_insert.
19862
198632007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19864
19865 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19866
19867 * insdel.c (reset_var_on_error): New fun.
19868 (signal_before_change, signal_after_change):
19869 Use it to reset (after|before)-change-functions to nil in case of error.
19870 Bind inhibit-modification-hooks to t.
19871 Don't bind (after|before)-change-functions to nil while they run.
19872
198732007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19874
19875 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19876 filling pixmap with stippled background.
19877
198782007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19879
19880 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19881 Don't use invisible frame as parent window for repositioning.
19882
198832007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19884
19885 * print.c (new_backquote_output): Rename from old_backquote_output.
19886 (print): Inverse its logic (according to its name) so as to match the
19887 behavior of new_backquote_flag in lread.c.
19888
198892007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19890
19891 * gmalloc.c (posix_memalign): New function.
19892
19893 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19894 ActivateControl/DeactivateControl here.
19895 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19896 frame-notice-user-settings is non-nil.
19897 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19898 for kEventParamFMFontStyle.
19899 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19900 mac_pass_command_to_system and mac_pass_control_to_system here.
19901 (XTread_socket): Call ActivateControl/DeactivateControl here.
19902 (XTread_socket) [TARGET_API_MAC_CARBON]:
19903 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19904 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19905 for window repositioning.
19906
199072007-08-08 Glenn Morris <rgm@gnu.org>
19908
19909 * Replace `iff' in doc-strings and comments.
19910
199112007-08-07 Chong Yidong <cyd@stupidchicken.com>
19912
19913 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19914
199152007-08-07 Martin Rudalics <rudalics@gmx.at>
19916
19917 * fileio.c (Finsert_file_contents): Run format-decode and
19918 after_insert_file_functions on entire buffer when REPLACE is
19919 non-nil and inhibit modification_hooks and point_motion_hooks.
19920 For consistency, run after_insert_file_functions iff something
19921 got inserted. Move signal_after_change and update_compositions
19922 after code running after_insert_file_functions. Make sure that
19923 undo_list doesn't record intermediate steps of the decoding process.
19924
199252007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19926
19927 * emacs.c (main)
19928 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19929 Call malloc_enable_thread on interactive startup.
19930
19931 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19932 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19933 [USE_PTHREAD]: Conditionalize with it.
19934 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19935 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19936 New functions.
19937
199382007-08-06 Chong Yidong <cyd@stupidchicken.com>
19939
19940 * xdisp.c (redisplay_window): When restoring original buffer
19941 position, make sure it is still valid.
19942
19943 * image.c (png_load): Ignore png-supplied background color.
19944
199452007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19946
19947 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19948 Use kCFAbsoluteTimeIntervalSince1970.
19949
19950 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19951 New variable.
19952 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19953 event loop should be quit.
19954 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19955 Quit dialog event loop if quit_dialog_event_loop is set.
19956
19957 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19958 (Selection): New typedef. Use instead of ScrapRef.
19959 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19960 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19961 (mac_clear_selection): Rename from clear_scrap.
19962 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19963 scrap_has_target_type. All uses changed.
19964 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19965 (mac_selection_has_target_p): New functions.
19966 (mac_put_selection_value): Rename from put_scrap_string.
19967 (mac_get_selection_value): Rename from get_scrap_string.
19968 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19969 (put_scrap_private_timestamp, scrap_has_target_type)
19970 (get_scrap_private_timestamp): Remove functions.
19971 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19972 (x_own_selection, x_get_local_selection):
19973 Use mac_valid_selection_value_p.
19974 (x_own_selection): Don't use put_scrap_private_timestamp.
19975 Record OWNERSHIP-INFO into Vselection_alist instead.
19976 (x_get_local_selection): Don't check type if request is local.
19977 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19978 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19979
199802007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19981
19982 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19983 add comment explaining why.
19984
199852007-08-03 Richard Stallman <rms@gnu.org>
19986
19987 * fileio.c (Fvisited_file_modtime): Use make_time.
19988
199892007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19990
19991 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19992 build.
19993
199942007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19995
19996 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19997
199982007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19999
20000 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20001
200022007-07-30 Richard Stallman <rms@gnu.org>
20003
20004 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20005
200062007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20007
20008 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20009
200102007-07-28 Nick Roberts <nickrob@snap.net.nz>
20011
20012 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20013 remote default-directory.
20014
20015 * buffer.c (mode-line-format): Update doc string.
20016
200172007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20018
20019 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20020 scroll bar gap.
20021 (x_scroll_bar_create): Set bar->fringe_extended_p.
20022 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20023 on frame edge. Check fringe background extension. Don't clear
20024 extended fringe background area.
20025
20026 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20027 (w32_fill_area): Enclose multiple statements with do ... while (0).
20028
20029 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20030 Extend fringe background to scroll bar gap.
20031 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20032 Set bar->fringe_extended_p.
20033 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20034 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20035 background extension. Don't clear extended fringe background area.
20036
20037 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20038 New member fringe_extended_p.
20039
200402007-07-25 Glenn Morris <rgm@gnu.org>
20041
20042 * Relicense all FSF files to GPLv3 or later.
20043
20044 * COPYING: Switch to GPLv3.
20045
200462007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20047
20048 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20049
20050 * data.c (Finteractive_form): Check for the presence of an
20051 `interactive-form' symbol property more thoroughly.
20052
20053 * data.c (Finteractive_form): Use an `interactive-form' property if
20054 present, analogous to the function-documentation property.
20055
200562007-07-24 Jason Rumney <jasonr@gnu.org>
20057
20058 * w32fns.c (x_real_positions): Get real position from OS instead of
20059 calculating it.
20060
200612007-07-23 Jason Rumney <jasonr@gnu.org>
20062
20063 * filelock.c (current_lock_owner): Allow for @ sign in username.
20064
200652007-07-22 Nick Roberts <nickrob@snap.net.nz>
20066
20067 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20068 remote default-directory.
20069
20070 * buffer.c (mode-line-format): Describe above case in doc string.
20071
200722007-07-20 Eli Zaretskii <eliz@gnu.org>
20073
20074 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20075 Define if not defined.
20076
200772007-07-18 Jason Rumney <jasonr@gnu.org>
20078
20079 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20080
200812007-07-18 Richard Stallman <rms@gnu.org>
20082
20083 * data.c (Fsetq_default): Doc fix.
20084
20085 * eval.c (Fsetq): Doc fix.
20086
200872007-07-18 Juanma Barranquero <lekktu@gmail.com>
20088
20089 * coding.c (Ffind_operation_coding_system):
20090 * eval.c (For, Fand): Doc fixes.
20091 Reported by Johan Bockgård.
20092
200932007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20094
20095 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20096
20097 * xterm.h: Declare x_ewmh_activate_frame.
20098
20099 * xterm.c (x_ewmh_activate_frame): New function.
20100 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20101
201022007-07-17 Martin Rudalics <rudalics@gmx.at>
20103
20104 * window.c (Fdisplay_buffer): If largest or LRU window is the
20105 only window, split it even if it is not eligible for splitting.
20106 This restores the original behavior broken by the 2007-07-15
20107 change.
20108
201092007-07-17 Glenn Morris <rgm@gnu.org>
20110
20111 * abbrev.c (abbrev_check_chars): New function.
20112 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20113 Call abbrev_check_chars to check abbrev characters are word
20114 constituents. Doc fix.
20115
201162007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20117
20118 * process.c (Fstart_process, Fmake_network_process)
20119 (read_process_output): Fix up last changes.
20120
201212007-07-16 Eli Zaretskii <eliz@gnu.org>
20122
20123 * makefile.w32-in (clean): Don't delete *~.
20124
201252007-07-16 Andreas Schwab <schwab@suse.de>
20126
20127 * window.c (Fdisplay_buffer): Use NILP.
20128 (Fset_window_scroll_bars): Likewise.
20129
201302007-07-15 Martin Rudalics <rudalics@gmx.at>
20131
20132 * window.c (window_min_size_2): New function.
20133 (window_min_size_1, size_window, Fdisplay_buffer)
20134 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20135 windows without mode- or header-lines when window-min-height is
20136 too small.
20137 (size_window): Reset nodelete_p after testing it, following an
20138 earlier note by Kim F. Storm.
20139 (display_buffer): Do not set split_height_threshold to twice the
20140 value of window_min_height to avoid changing the value of a
20141 customizable variable. Rather explicitly check whether the
20142 height of the window that shall be splitted is at least as large
20143 as split_height_threshold.
20144 (Fwindow_full_width_p): New defun.
20145 (syms_of_window): Defsubr it.
20146
20147 * window.h: Add EXFUN for Fwindow_full_width_p.
20148
201492007-07-14 Jason Rumney <jasonr@gnu.org>
20150
20151 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20152
201532007-07-14 Richard Stallman <rms@gnu.org>
20154
20155 * eval.c (maybe_call_debugger): New function.
20156 (find_handler_clause): Use maybe_call_debugger.
20157 Call it when the handler says `debug'.
20158 Eliminate DEBUGGER_VALUE_PTR.
20159 (Fsignal): Eliminate debugger_value.
20160 (Qdebug): New variable.
20161 (syms_of_eval): Initialize it.
20162
201632007-07-14 Juanma Barranquero <lekktu@gmail.com>
20164
20165 * eval.c (Fprogn):
20166 * keyboard.c (Ftrack_mouse):
20167 * print.c (Fwith_output_to_temp_buffer):
20168 * window.c (Fsave_window_excursion): Doc fix.
20169
201702007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20171
20172 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20173
201742007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20175
20176 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20177 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20178 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20179 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20180 Remove unused encoding_carryover.
20181 * process.c: Adjust all functions accordingly.
20182
201832007-07-12 Richard Stallman <rms@gnu.org>
20184
20185 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20186
201872007-07-11 Jason Rumney <jasonr@gnu.org>
20188
20189 * makefile.w32-in (LIBS): Include OLE32.
20190
20191 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20192 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20193
201942007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20195
20196 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20197 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20198 from a Lisp_Object into a bare pointer.
20199 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20200 Adjust the code correspondingly.
20201
20202 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20203
20204 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20205 (term_show_mouse_face): Remove unused var `j'.
20206 (handle_one_term_event): Remove unused vars `i' and `j'.
20207 Don't cast return value of ttyname since it's not necessary.
20208
202092007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20210
20211 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20212 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20213
20214 * fns.c (map_char_table): Use an array of int for `indices' rather than
20215 an array of Lisp_Objects (which are only ever integers anyway).
20216 (Fmap_char_table): Update caller.
20217 * lisp.h: Update prototype.
20218 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20219 * fontset.c (Ffontset_info):
20220 * casetab.c (set_case_table): Update callers.
20221
20222 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20223
20224 * keymap.c (struct accessible_keymaps_data)
20225 (struct where_is_internal_data): New structures.
20226 (accessible_keymaps_1, where_is_internal_1): Use them to change
20227 interface to adhere to the one used by map_keymap.
20228 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20229 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20230
20231 * keymap.h (map_keymap_function_t): More informative prototype.
20232
202332007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20234
20235 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20236 (looking_at_1): Don't change search_regs and last_thing_searched
20237 if `inhibit-changing-match-data' is non-nil.
20238 (string_match_1, search_buffer, set_search_regs): Likewise.
20239 (syms_of_search): Add Lisp level definition for
20240 `inhibit-changing-match-data' and set it to nil.
20241 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20242 start and end of the match, instead of using values in search_regs.
20243
202442007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20245
20246 * minibuf.c (Fcompleting_read): New value `confirm-only'
20247 for `require-match'.
20248
202492007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20250
20251 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20252 part of the 2007-06-27 change to syms_of_fileio.
20253
202542007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20255
20256 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20257 Check WINDOWP before using XWINDOW. Consolidate return statements.
20258
202592007-06-27 Richard Stallman <rms@gnu.org>
20260
20261 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20262
202632007-06-27 Juanma Barranquero <lekktu@gmail.com>
20264
20265 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20266
202672007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20268
20269 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20270 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20271 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20272 (_free_internal, memalign): Use them.
20273 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20274 Initialize to PTHREAD_MUTEX_INITIALIZER.
20275 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20276 (morecore_nolock): Rename from morecore. All uses changed.
20277 Use only nolock versions of internal allocation functions.
20278 (_malloc_internal_nolock, _realloc_internal_nolock)
20279 (_free_internal_nolock): New functions created from
20280 _malloc_internal, _realloc_internal, and _free_internal.
20281 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20282 Copy hook value to automatic variable before its use.
20283 (memalign): Copy hook value to automatic variable before its use.
20284
202852007-06-26 Kenichi Handa <handa@m17n.org>
20286
20287 * coding.c (Ffind_operation_coding_system): Docstring improved.
20288 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20289
202902007-06-25 David Kastrup <dak@gnu.org>
20291
20292 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20293 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20294 cater for additional parameter.
20295
20296 * keymap.h: Adjust number of parameters to `current-active-maps'.
20297
20298 * doc.c (Fsubstitute_command_keys): Adjust call of
20299 `current-active-maps'.
20300
203012007-06-25 David Kastrup <dak@gnu.org>
20302
20303 * callint.c (Fcall_interactively): Make the parsing of interactive
20304 specs somewhat more readable.
20305
203062007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20307
20308 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20309 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20310 if extended background has already been filled.
20311
203122007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20313
20314 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20315 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20316
20317 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20318 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20319 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20320 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20321 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20322 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20323 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20324 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20325 Run timers during dialog popup.
20326 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20327
203282007-06-21 Jason Rumney <jasonr@gnu.org>
20329
20330 * image.c (convert_mono_to_color_image): Swap fore and background.
20331
203322007-06-20 Jason Rumney <jasonr@gnu.org>
20333
20334 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20335 (w32_free_bdf_font): Unmap memory not handle.
20336
203372007-06-20 Sam Steingold <sds@gnu.org>
20338
20339 * gmalloc.c (__morecore): Fix the declaration to comply with the
20340 definition.
20341
203422007-06-20 Juanma Barranquero <lekktu@gmail.com>
20343
20344 * w32term.c (w32_delete_display): Remove leftover declaration.
20345 (w32_define_cursor, w32_initialize): Make static.
20346
20347 * w32.c (_wsa_errlist): Fix typo in error message.
20348 (init_environment): Ignore any environment variable from the
20349 registry having a null value.
20350
203512007-06-20 Glenn Morris <rgm@gnu.org>
20352
20353 * Makefile.in (LIBGIF): Default to -lgif.
20354
203552007-06-17 Jason Rumney <jasonr@gnu.org>
20356
20357 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20358 unicode strings.
20359
203602007-06-16 Juanma Barranquero <lekktu@gmail.com>
20361
20362 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20363 Fix typo in docstring.
20364
203652007-06-16 Eli Zaretskii <eliz@gnu.org>
20366
20367 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20368 and their keybindings.
20369
203702007-06-15 Chong Yidong <cyd@stupidchicken.com>
20371
20372 * composite.c (update_compositions): Fix last fix.
20373
203742007-06-14 Jason Rumney <jasonr@gnu.org>
20375
20376 * w32.c (get_process_times_fn): New function pointer.
20377 (globals_of_w32): Intialize it if present in kernel32.dll.
20378 (w32_get_internal_run_time): New function.
20379
20380 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20381
203822007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20383
20384 * composite.c (update_compositions): Check the validness of
20385 compositions.
20386
203872007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20388
20389 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20390 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20391
20392 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20393 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20394
20395 * macgui.h (USE_MAC_TOOLBAR): New define.
20396
20397 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20398 Return immediately unless popup is activated.
20399
20400 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20401 background to scroll bar gap.
20402 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20403 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20404 scroll bars on frame edge. Check fringe background extension.
20405 Don't clear extended fringe background area.
20406 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20407 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20408 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20409 [USE_MAC_TOOLBAR]: New macros.
20410 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20411 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20412 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20413 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20414 [USE_MAC_TOOLBAR]: New functions.
20415 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20416 manually if previous repositioning has failed.
20417 (mac_handle_keyboard_event): Use precomputed event kind.
20418 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20419 as tool bar item click. Handle mouse movement over tool bar items.
20420
20421 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20422 toolbar_win_gravity.
20423 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20424 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20425 Add externs.
20426
20427 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20428 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20429
204302007-06-14 Chong Yidong <cyd@stupidchicken.com>
20431
20432 * image.c (search_image_cache): Remove unused variable.
20433
204342007-06-13 Chong Yidong <cyd@stupidchicken.com>
20435
20436 * xfns.c, xmenu.c: Link to xaw3d if available.
20437
204382007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20439
20440 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20441 frame_foreground and frame_background.
20442
20443 * image.c (lookup_image): Save frame foreground and background colors.
20444 (search_image_cache): Check if saved and current frame colors match.
20445
204462007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20447
20448 * regex.c (regex_compile): Remove the `regnum' counter.
20449 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20450
204512007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20452
20453 * term.c: Include intervals.h to declare Fget_text_property.
20454
204552007-06-10 Jason Rumney <jasonr@gnu.org>
20456
20457 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20458
204592007-06-08 Juanma Barranquero <lekktu@gmail.com>
20460
20461 * callint.c (Fcall_interactively):
20462 * editfns.c (Fdelete_and_extract_region):
20463 * fileio.c (Fread_file_name):
20464 * fns.c (Fmapconcat):
20465 * keyboard.c (cmd_error_internal):
20466 * keymap.c (Fkey_description):
20467 * lread.c (openp):
20468 * minibuf.c (read_minibuf):
20469 * search.c (wordify):
20470 * sunfns.c (sel_read):
20471 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20472 * xfns.c (x_default_scroll_bar_color_parameter):
20473 * xmenu.c (menu_help_callback):
20474 * xselect.c (Fx_get_atom_name):
20475 * xterm.c (x_term_init): Use empty_unibyte_string.
20476
204772007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20478
20479 * alloc.c (init_strings): Initialize canonical empty strings.
20480 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20481 canonical empty string when the requested size is 0.
20482
20483 * emacs.c (empty_unibyte_string): Rename from empty_string.
20484 (empty_multibyte_string): New canonical empty string.
20485 (syms_of_emacs): Don't initialize empty_string.
20486
20487 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20488 string, if appropriate.
20489 (empty_unibyte_string, empty_multibyte_string): New externs.
20490 (empty_string): Remove extern.
20491
20492 * lread.c (syms_of_lread): Use empty_unibyte_string.
20493
204942007-06-07 Jason Rumney <jasonr@gnu.org>
20495
20496 * s/ms-w32.h: Don't define HAVE_TZNAME.
20497
20498 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20499
205002007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20501
20502 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20503
20504 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20505 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20506
20507 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20508 Don't call next handler.
20509 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20510 Remove argument. Install handler to application.
20511 (set_frame_menubar): Don't change deep_p.
20512 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20513 FRAME_OUTER_TO_INNER_DIFF_Y.
20514 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20515 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20516 [HAVE_DIALOGS]: New macros.
20517 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20518 Use them.
20519 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20520
20521 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20522 init_service_handler. All callers changed. Return OSStatus value.
20523
20524 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20525 All callers changed so as not to call SetPortWindowPort.
20526 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20527 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20528 mac_draw_string_common.
20529 (mac_draw_image_string_qd): Likewise.
20530 (mac_draw_string_common): Use them. Add INLINE.
20531 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20532 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20533 GetGlobalMouse.
20534 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20535 and FRAME_OUTER_TO_INNER_DIFF_Y.
20536 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20537 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20538 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20539 repositioning window to mac_handle_window_event.
20540 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20541 saving window location to mac_handle_window_event
20542 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20543 (install_menu_target_item_handler): Remove argument in extern.
20544 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20545 Also accept command events.
20546 (do_keystroke): New function created from XTread_socket.
20547 (init_command_handler): Remove functions.
20548 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20549 and save window location by kEventWindowShowing and kEventWindowHiding
20550 handlers here. Don't call next handler for window state change and
20551 focus events.
20552 (mac_handle_application_event, mac_handle_keyboard_event)
20553 [TARGET_API_MAC_CARBON]: New functions.
20554 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20555 kEventWindowShowing and kEventWindowHiding events. Move installation
20556 of mouse, font, text input and menu target item handlers to
20557 install_application_handler.
20558 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20559 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20560 New function.
20561 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20562 Register it.
20563 (XTread_socket) [TARGET_API_MAC_CARBON]:
20564 Consolidate SendEventToEventTarget calls.
20565 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20566 Move application activation handler to mac_handle_application_event.
20567 Move keyboard handler to mac_handle_keyboard_event.
20568 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20569 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20570 init_command_handler. Call install_application_handler.
20571
20572 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20573 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20574
205752007-06-07 Glenn Morris <rgm@gnu.org>
20576
20577 * emacs.c (main): Use `emacs-copyright' in --version output.
20578
205792007-06-06 Chong Yidong <cyd@stupidchicken.com>
20580
20581 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20582
205832007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20584
20585 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20586
20587 * macgui.h: Replace WindowPtr with WindowRef.
20588
20589 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20590 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20591 Replace ControlHandle with ControlRef.
20592 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20593
20594 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20595 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20596 Replace ControlHandle with ControlRef.
20597 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20598 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20599
20600 * macterm.h (struct scroll_bar): Rename member control_handle_low
20601 and control_handle_high to control_ref_low and control_ref_high.
20602 All uses changed.
20603 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20604 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20605 respectively. All uses changed.
20606 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20607 (install_window_handler, remove_window_handler): Replace WindowPtr
20608 with WindowRef in externs.
20609
206102007-06-05 Juanma Barranquero <lekktu@gmail.com>
20611
20612 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20613
206142007-06-03 Nick Roberts <nickrob@snap.net.nz>
20615
20616 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20617
20618 * frame.c (Fmouse_position, Fmouse_pixel_position):
20619 Condition on HAVE_GPM too.
20620
20621 * term.c (term_mouse_highlight): Remove unused variables.
20622 (Fterm_open_connection): Set gpm_zerobased to 1.
20623 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20624 Use zero based co-ordinates.
20625 (handle_one_term_event): Report a drag as mouse movement too.
20626
20627 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20628
206292007-06-03 Chong Yidong <cyd@stupidchicken.com>
20630
20631 * image.c (search_image_cache): New function. Require background
20632 color match if background color is unspecified in the image spec.
20633 (uncache_image, lookup_image): Use it.
20634
206352007-06-01 Juanma Barranquero <lekktu@gmail.com>
20636
20637 * window.c (Fshrink_window): Reflow docstring.
20638
206392007-06-02 Chong Yidong <cyd@stupidchicken.com>
20640
20641 * Version 22.1 released.
20642
206432007-06-01 Richard Stallman <rms@gnu.org>
20644
20645 * xfns.c (x_encode_text): Add GCPRO.
20646
206472007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20648
20649 * xfns.c (x_set_name_internal): Save encoded name before
20650 x_encode_text in case string data is relocated.
20651
206522007-05-31 Richard Stallman <rms@gnu.org>
20653
20654 * buffer.c (syms_of_buffer): Doc fix.
20655
206562007-05-30 Nick Roberts <nickrob@snap.net.nz>
20657
20658 * sysdep.c (init_sys_modes): Add rather than replace with
20659 O_NONBLOCK.
20660
20661 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20662 term_mouse_moveto.
20663
20664 * termhooks.h (term_mouse_moveto): New extern.
20665
20666 * term.c (mouse_face_window): Rename...
20667 (Qmouse_face_window): ...to this.
20668 (term_show_mouse_face, term_clear_mouse_face)
20669 (term_mouse_highlight): Use Qmouse_face_window.
20670 (term_mouse_moveto): New function.
20671 (term_mouse_position): Make it work.
20672 (syms_of_term): Uncomment assignment to mouse_position_hook.
20673 Staticpro Qmouse_face_window.
20674
206752007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20676
20677 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20678 around current_column call.
20679
206802007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20681
20682 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20683 * xdisp.c (next_element_from_buffer):
20684 * window.c (delete_window):
20685 * term.c (term_mouse_highlight):
20686 * msdos.c (getdefdir):
20687 * macterm.c (mac_create_bitmap_from_bitmap_data)
20688 (init_font_name_table):
20689 * fns.c (Fsxhash):
20690 * data.c (Fmake_local_variable):
20691 * ccl.c (ccl_driver): Likewise.
20692
206932007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20694
20695 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20696 Call mac_wakeup_from_rne on window size change.
20697
206982007-05-25 Chong Yidong <cyd@stupidchicken.com>
20699
20700 * image.c (uncache_image): Fix typo.
20701
207022007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20703
20704 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20705
207062007-05-22 Richard Stallman <rms@gnu.org>
20707
20708 * xterm.c (x_connection_closed): Remove NO_RETURN.
20709
207102007-05-22 Martin Rudalics <rudalics@gmx.at>
20711
20712 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20713
207142007-05-21 Chong Yidong <cyd@stupidchicken.com>
20715
20716 * image.c (uncache_image): New function.
20717 (Fimage_refresh): New function.
20718
207192007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20720
20721 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20722
207232007-05-20 Nick Roberts <nickrob@snap.net.nz>
20724
20725 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20726 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20727
207282007-05-20 Nick Roberts <nickrob@snap.net.nz>
20729
20730 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20731 conditional on [HAVE_GPM_H].
20732
207332007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20734
20735 * syntax.c (skip_chars): Update syntax-table only after we checked that
20736 the new location is valid.
20737
207382007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20739
20740 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20741 mac_get_window_bounds.
20742
207432007-05-20 Nick Roberts <nickrob@snap.net.nz>
20744
20745 * Makefile.in (LIBGPM): Allow it to be set from configure.
20746 If set then link Emacs with it.
20747
20748 * config.in: Regenerate.
20749
20750 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20751 New externs.
20752
20753 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20754 Include gpm.h.
20755 (handle_one_term_event, term_gpm): New externs.
20756
20757 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20758 and allow it to be interrupted by SIGIO.
20759
20760 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20761 (wait_reading_process_output): Wait on gpm_fd too.
20762 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20763 (add_gpm_wait_descriptor_called_flag): New variable.
20764 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20765
20766 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20767 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20768 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20769 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20770 (make_lispy_event): Add case GPM_CLICK_EVENT.
20771 (read_avail_input): Handle mouse input.
20772
20773 * term.c (write_glyphs_with_face): New function.
20774 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20775 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20776 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20777 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20778 (last_mouse_x, last_mouse_y): New variables.
20779 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20780 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20781 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20782 (Fterm_close_connection): New functions.
20783 (term_init): Initialise mouse_face_window.
20784
207852007-05-19 Chong Yidong <cyd@stupidchicken.com>
20786
20787 * xdisp.c (redisplay_window): If first window line is a
20788 continuation line, recompute the new window start instead of
20789 recentering.
20790
207912007-05-18 Glenn Morris <rgm@gnu.org>
20792
20793 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20794 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20795
207962007-05-17 Glenn Morris <rgm@gnu.org>
20797
20798 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20799
208002007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20801
20802 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20803 dead key repeat and up events.
20804
208052007-05-14 Chong Yidong <cyd@stupidchicken.com>
20806
20807 * image.c (pbm_load): Check image size for monochrome pbm.
20808
208092007-05-13 Chong Yidong <cyd@stupidchicken.com>
20810
20811 * xterm.c (XTread_socket): Revert last change.
20812
208132007-05-12 Chong Yidong <cyd@stupidchicken.com>
20814
20815 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20816
20817 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20818
208192007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20820
20821 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20822 mixup (YAILOM).
20823
208242007-05-07 Andreas Schwab <schwab@suse.de>
20825
20826 * keymap.c (Flookup_key): Fix typo in last change.
20827
208282007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20829
20830 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20831 mapping for unibyte strings.
20832
208332007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20834
20835 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20836 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20837
208382007-04-29 Richard Stallman <rms@gnu.org>
20839
20840 * insdel.c (replace_range): For undo, record insertion first.
20841
208422007-04-29 Andreas Schwab <schwab@suse.de>
20843
20844 * lisp.h (VECSIZE): Use OFFSETOF.
20845
208462007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20847
20848 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20849 disabled lines.
20850
208512007-04-28 Richard Stallman <rms@gnu.org>
20852
20853 * lread.c (read_escape): In a string, \s is always space.
20854
208552007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20856
20857 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20858
20859 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20860 submenu for menu bar items.
20861
20862See ChangeLog.10 for earlier changes.
20863
20864;; Local Variables:
20865;; coding: utf-8
20866;; add-log-time-zone-rule: t
aac0c6e3
MR
20867;; End:
20868
76b6f707 20869 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20870
20871 This file is part of GNU Emacs.
20872
20873 GNU Emacs is free software: you can redistribute it and/or modify
20874 it under the terms of the GNU General Public License as published by
20875 the Free Software Foundation, either version 3 of the License, or
20876 (at your option) any later version.
20877
20878 GNU Emacs is distributed in the hope that it will be useful,
20879 but WITHOUT ANY WARRANTY; without even the implied warranty of
20880 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20881 GNU General Public License for more details.
20882
20883 You should have received a copy of the GNU General Public License
20884 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20885
20886;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40