* character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
[bpt/emacs.git] / src / ChangeLog
CommitLineData
62a6e103
AS
12009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2
3 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
4 ignored second argument. All callers changed.
5 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7 * xdisp.c (string_char_and_length): Likewise.
8
b0ca0f33
DN
92009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
10
11 * xterm.c (x_new_font):
12 * print.c (print_object):
13 * cmds.c (Fself_insert_command): Move declarations before statements.
14
dd5a6279
CY
152009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
16
17 * s/cygwin.h: Remove unneeded linker flags.
18
4a8e097d
JD
192009-11-20 Jan Djärv <jan.h.d@swipnet.se>
20
0d1d0d26
JD
21 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
22
23 * xsettings.h: Declare xsettings_get_system_font.
24
25 * xsettings.c (xsettings_get_system_font): New function.
26 (init_gconf): No use initiating gconf unless we have Xft also.
27 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
28 HAVE_GCONF.
29
4a8e097d
JD
30 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
31 add a blank entry so it doesn't collapse into nothing.
32
8ab1650e
SM
332009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
34
35 * lread.c (Funintern): Comment out last change.
36
82c602f0
RS
372009-11-19 Richard Stallman <rms@gnu.org>
38
39 * lread.c (Funintern): Error if symbol is t or nil.
40
87e32266
SM
412009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
42
43 * insdel.c (make_gap_larger): Don't make as many assumptions about the
44 representation of Lisp integers.
45 Reported by MJ Chan <mjchan.inbox@gmail.com>.
46
1b9ac145
AS
472009-11-17 Andreas Schwab <schwab@linux-m68k.org>
48
49 * lisp.h: Remove declaration of Ffont_get_system_font.
50 * xfns.c: Move include of "xsettings.h".
51 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
52
dfb3c4c6
JD
532009-11-17 Jan Djärv <jan.h.d@swipnet.se>
54
87e32266
SM
55 * xsettings.c (something_changedCB, Ffont_get_system_font):
56 Check use_system_font.
dfb3c4c6
JD
57 (syms_of_xsettings): DEFVAR font-use-system-font.
58
9370c1d8
AS
592009-11-17 Andreas Schwab <schwab@linux-m68k.org>
60
25fe851a
AS
61 * xfns.c (x_default_font_parameter): Remove dead assignment.
62
9370c1d8
AS
63 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
64
637fa988
JD
652009-11-17 Jan Djärv <jan.h.d@swipnet.se>
66
87e32266 67 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 68 not have FC_LCD_*. #define them if not there.
a6eb20d8 69
87e32266 70 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 71
637fa988
JD
72 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
73
74 * xterm.c (handle_one_xevent): Call xft_settings_event for
75 ClientMessage, PropertyNotify and DestroyNotify.
76 (x_term_init): If we have XFT, get DPI from Xft.dpi.
77 Call xsettings_initialize.
78
79 * xftfont.c (xftfont_fix_match): New function.
80 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
81 Call xftfont_fix_match after XftFontMatch.
82
83 * xfont.c (xfont_driver): Initialize all members.
84
87e32266
SM
85 * xfns.c (x_default_font_parameter):
86 Try font from Ffont_get_system_font.
637fa988
JD
87 Do not get font from x_default_parameter if we got one from
88 Ffont_get_system_font.
87e32266 89 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
90
91 * w32font.c (w32font_driver): Initialize all members.
92
93 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
94
95 * lisp.h: Declare syms_of_xsettings.
96
87e32266
SM
97 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
98 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
99
100 * ftfont.c (ftfont_filter_properties): New function.
101
102 * frame.c (x_set_font): Remove unused variable lval.
103
87e32266 104 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
105
106 * font.c (font_put_extra): Don't return if val is nil, it means
107 boolean option is off.
108 (font_parse_fcname): Collect all extra properties in extra_props
109 and call filter_properties for all drivers with extra_props and
110 font as parameter.
87e32266
SM
111 (font_open_entity): Do not use cache, it does not pick up new
112 fontconfig settings like hinting.
637fa988
JD
113 (font_load_for_lface): If spec had a name in it, store it in entity.
114
115 * emacs.c (main): Call syms_of_xsettings
116
117 * config.in: HAVE_GCONF is new.
118
119 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
120 xsettings.o is new.
121
5a942932
KH
1222009-11-17 Kenichi Handa <handa@m17n.org>
123
124 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
125 back to the default font in case that no suitable font is found.
126
b7c7a4d1
SM
1272009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
128
129 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
130 Suggested by Chad Brown <yandros@mit.edu>.
131 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
132
072f1e39
JD
1332009-11-16 Jan Djärv <jan.h.d@swipnet.se>
134
135 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
136
5d1e70a2
AS
1372009-11-14 Andreas Schwab <schwab@linux-m68k.org>
138
87e32266 139 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 140
a53cfbe5
JD
1412009-11-14 Jan Djärv <jan.h.d@swipnet.se>
142
473a99b7
JD
143 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
144 has a parent.
145
a53cfbe5
JD
146 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
147 dependency files in deps/. Include those files into Makefile.
148
149 * config.in: Generated (AUTO_DEPEND).
150
f04bb9b2
MA
1512009-11-13 Michael Albinus <michael.albinus@gmx.de>
152
b7c7a4d1 153 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
154 Vdbus_registered_functions_table, because it contains also
155 properties. Fix docstring.
b7c7a4d1 156 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 157
8f11f7ec
SM
1582009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
159
160 * alloc.c (mark_object): Don't reprocess marked strings.
161 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
162 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
163
8a605fe8
KH
1642009-11-13 Kenichi Handa <handa@m17n.org>
165
8f11f7ec 166 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
167 semantics of Vword_combining_categories.
168 (Vword_combining_categories): Describe the slight change of the
169 semantics.
170
241c4680
EZ
1712009-11-13 Eli Zaretskii <eliz@gnu.org>
172
173 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
174
175 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
176
5d58e44c
SM
1772009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
178
179 * xdisp.c (syms_of_xdisp): Fix typo in last change.
180
5e13f9d3
JB
1812009-11-12 Juanma Barranquero <lekktu@gmail.com>
182
183 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
184
cf54c754
DR
1852009-11-11 David Reitter <david.reitter@gmail.com>
186
187 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
188 variables to fix 2009-11-09 change.
189
a4ada374
DN
1902009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
191
91433552
DN
192 * process.c (ifflag_def): Make flag_sym constant.
193 (Fnetwork_interface_info): Use a constant pointer.
194 (ifflag_table):
195 * xfns.c (cursor_bits):
196 * xdisp.c (power_letter):
197 * termcap.c (speeds, esctab):
198 * sysdep.c (baud_convert):
199 * keyboard.c (lispy_accent_codes, modifier_names):
200 * image.c (xbm_format, xpm_format, pbm_format, png_format)
201 (jpeg_format, tiff_format, gif_format, svg_format)
202 (interlace_start, interlace_increment, gs_format):
203 * gtkutil.c (separator_names):
204 * fringe.c (swap_nibble):
205 * fns.c (base64_value_to_char, base64_char_to_value):
206 * fileio.c (make_temp_name_tbl):
207 * coding.c (suffixes): Make constant.
208
f4265f6c
DN
209 * frame.c (make_initial_frame):
210 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
211 build_string.
212 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
213
04420943
DN
214 * s/freebsd.h:
215 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
216
0a5d24ae
DN
217 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
218 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
219
a4ada374
DN
220 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
221 * xterm.c (syms_of_xterm):
222 * xfaces.c (syms_of_xfaces):
223 * xdisp.c (syms_of_xdisp):
224 * lread.c (syms_of_lread):
225 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
226 build_string.
91433552 227
a4ada374
DN
228 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
229
af98fc7f
SM
2302009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
231
8ab1650e 232 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 233
e90292a9
JD
2342009-11-10 Jan Djärv <jan.h.d@swipnet.se>
235
236 * keyboard.h: Declare timer_check.
237
238 * keyboard.c (timer_check_2): New function that does what the old
239 timer_check did.
240 (timer_check): Call timer_check_2 until -1 or a non-zero time is
241 returned, i.e. don't return -1 with timers pending.
242
243 * process.c: Remove extern declaration of timer_check.
244
245 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
246 even if timer_check returned -1.
247
af98fc7f
SM
248 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
249 xg_dialog_data.
e90292a9
JD
250 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
251 the event loop.
252 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
253 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
254 Destroy the dialog after xg_dialog_run.
255
045b83c0
SM
2562009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
257
258 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
259
1fb99a3a
JD
2602009-11-10 Jan Djärv <jan.h.d@swipnet.se>
261
262 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
263
04e452cb
JB
2642009-11-09 Juanma Barranquero <lekktu@gmail.com>
265
266 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
267
ef7417fd
SM
2682009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
269
270 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
271 w32menu.c, and nsmenu.m.
272 Simplify the obsolete case where position is nil.
273 (cleanup_popup_menu): New function, moved from nsmenu.m.
274 (struct skp): Remove slot `notreal'.
275 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
276 adjust callers.
277 (single_menu_item): Adjust call to parse_menu_item.
278 (syms_of_menu): Defsubr x-popup-menu.
279 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
280 (keymap_panes): Don't export any more.
281 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
282 (xmenu_show): Declare.
283 * keyboard.c (parse_menu_item): Remove arg `notreal'.
284 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
285 * keyboard.h (parse_menu_item): Update declaration.
286 * xmenu.c (Fx_popup_menu): Remove.
287 (syms_of_xmenu): Don't defsubr x-popup-menu.
288 * w32menu.c (Fx_popup_menu): Remove.
289 (syms_of_w32menu): Don't defsubr x-popup-menu.
290 * nsmenu.m (cleanup_popup_menu): Remove.
291 (ns_menu_show): Rename from ns_popup_menu and remove all the code
292 moved to menu.c's Fx_popup_menu.
293 (Fx_popup_menu): Remove.
294 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
295 menu_items (it's done in menu.c already).
296
424d6179
SM
2972009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
298
299 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
300 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
301
c0df13a6 3022009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
303
304 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 305 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
306 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
307 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
308
2de9f71c
SM
3092009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
310
311 Let integers use up 2 tags to give them one extra bit and thus double
312 their range.
313 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
314 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
315 New macros.
316 (enum Lisp_Type): Use them. Give explicit values.
317 (Lisp_Type_Limit): Remove.
318 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
319 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
320 Pay attention to USE_2_TAGS_FOR_INTS.
321 (INTEGERP): Use LISP_INT_TAG_P.
322 * fns.c (internal_equal): Simplify the default case.
323 (sxhash): Use case_Lisp_Int.
324 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
325 any more.
326 (Ftype_of): Use case_Lisp_Int.
327 (store_symval_forwarding): Take into account the fact that Ints can
328 now have more than one tag.
329 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
330 buffer_slot_type_mismatch):
331 * xfaces.c (face_attr_equal_p):
332 * print.c (print_object):
333 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
334 Use case_Lisp_Int.
335
323637a2
EZ
3362009-11-06 Eli Zaretskii <eliz@gnu.org>
337
7ac65b38
EZ
338 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
339
323637a2
EZ
340 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
341 warning.
342
e511451f
JD
3432009-11-06 Jan Djärv <jan.h.d@swipnet.se>
344
345 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
346
347 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
348
349 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
350 ButtonPressRelease and MotionNotify (bug#4870).
351
5e2327cf
DN
3522009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
353
5adc433e
DN
354 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
355
d67b4f80
DN
356 * xterm.c (syms_of_xterm):
357 * xselect.c (syms_of_xselect):
358 * xmenu.c (syms_of_xmenu):
359 * xfns.c (syms_of_xfns):
360 * xfaces.c (syms_of_xfaces):
361 * xdisp.c (syms_of_xdisp):
362 * window.c (syms_of_window):
363 * w32fns.c (syms_of_w32fns):
364 * undo.c (syms_of_undo):
365 * textprop.c (syms_of_textprop):
366 * terminal.c (syms_of_terminal):
367 * syntax.c (syms_of_syntax):
368 * sound.c (syms_of_sound):
369 * search.c (syms_of_search):
370 * print.c (syms_of_print):
371 * minibuf.c (syms_of_minibuf):
372 * macros.c (syms_of_macros):
373 * keymap.c (syms_of_keymap, initial_define_key)
374 (initial_define_lispy_key):
375 * keyboard.c (syms_of_keyboard):
376 * insdel.c (syms_of_insdel):
377 * image.c (syms_of_image):
378 * fringe.c (syms_of_fringe):
379 * frame.c (syms_of_frame):
380 * fontset.c (syms_of_fontset):
381 * fns.c (syms_of_fns):
382 * fns.c (syms_of_fns):
383 * fileio.c (syms_of_fileio):
384 * fileio.c (syms_of_fileio):
385 * eval.c (syms_of_eval):
386 * doc.c (syms_of_doc):
387 * dispnew.c (syms_of_display):
388 * dired.c (syms_of_dired):
389 * dbusbind.c (syms_of_dbusbind):
390 * data.c (syms_of_data):
391 * composite.c (syms_of_composite):
392 * coding.c (syms_of_coding):
393 * cmds.c (syms_of_cmds):
394 * charset.c (define_charset_internal, syms_of_character):
395 * ccl.c (syms_of_ccl):
396 * category.c (syms_of_category, init_category_once):
397 * casetab.c (syms_of_casetab):
398 * casefiddle.c (syms_of_casefiddle):
399 * callint.c (syms_of_callint):
400 * bytecode.c (syms_of_bytecode):
401 * buffer.c (keys_of_buffer, syms_of_buffer):
402 * alloc.c (syms_of_alloc):
403 * process.c (syms_of_process, init_process):
404 * lread.c (syms_of_lread, init_obarray):
405 * font.c (build_style_table):
406 * emacs.c (syms_of_emacs, main): Replace calls to intern with
407 intern_c_string, calls to make_pure_string with
408 make_pure_c_string. Use pure_cons instead of Fcons.
409
5e2327cf
DN
410 * process.c (socket_options): Make it const.
411 (set_socket_option, init_process): Use a const pointer.
412
413 * lread.c (intern_c_string): New function.
414 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
415 (defvar_int): Uset it. Make the name const char*.
416
417 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
418 (defvar_int): Update prototypes.
419 (DEFUN, EXFUN): Support for prototypes is now required.
420 (intern_c_string): New prototype.
421 (struct Lisp_Subr): Make symbol_name constant.
422
423 * font.c (struct table_entry): Remove unused member. Make NAMES
424 constant.
425 (weight_table, slant_table, width_table): Make constant.
426
427 * emacs.c (struct standard_args): Make name and longname constant.
428
429 * character.h (DEFSYM): Use intern_c_string.
430
a56eaaef
DN
4312009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
432
433 * alloc.c (make_pure_c_string): New function.
434
435 * eval.c (Fautoload): Purecopy all arguments.
436
f6a07420
KH
4372009-11-05 Kenichi Handa <handa@m17n.org>
438
439 * fileio.c (Finsert_file_contents): Be sure set coding-system of
440 the buffer in case of replace.
441
5d28d4b1
DN
4422009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
443
444 * puresize.h (BASE_PURESIZE): Increase to 1620000.
445
b349d111
SM
4462009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
447
d528b1ce
SM
448 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
449 when applicable (bug#4851).
450
b349d111
SM
451 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
452 (P_): Support for prototypes is now required.
453
c38eb027
CY
4542009-10-31 Chong Yidong <cyd@stupidchicken.com>
455
456 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
457 (Bug#4827).
458
0405f8d9
EZ
4592009-10-30 Eli Zaretskii <eliz@gnu.org>
460
d528b1ce 461 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 462
ca0a881a
DN
4632009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
464
465 * puresize.h (BASE_PURESIZE): Increase to 1470000.
466
d528b1ce
SM
467 * lread.c (Fload): Purecopy the file name when building
468 Vpreloaded_file_list.
ca0a881a 469
47e0e0e4
JR
4702009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
471
472 * w32fns.c (syms_of_w32fns): Change default value of
473 w32-scroll-lock-modifier to nil. (Bug#2827)
474
057bce6f
JB
4752009-10-26 Juanma Barranquero <lekktu@gmail.com>
476
782a943e 477 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 478
242bc74c
AS
4792009-10-26 Andreas Schwab <schwab@redhat.com>
480
481 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
482
522d013a
JB
4832009-10-26 Juanma Barranquero <lekktu@gmail.com>
484
485 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
486 For delta < 0, skip check that only makes sense when the mini-window
487 is going to be enlarged. (Bug#4534)
488
18060980
CY
4892009-10-25 Chong Yidong <cyd@stupidchicken.com>
490
491 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
492 string in menu maps (Bug#4471).
493
fec8f0fe
CY
4942009-10-24 Chong Yidong <cyd@stupidchicken.com>
495
496 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
497 FRAME_NS_VIEW on terminal frames (Bug#4765).
498
10d66ec0
AS
4992009-10-24 Andreas Schwab <schwab@linux-m68k.org>
500
1cae01f7
AS
501 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
502 DBUS_TYPE_UINTnn separately to get proper sign extension.
503
58a12889
AS
504 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
505 can properly handle unsigned types.
d528b1ce 506 (make_uid, make_gid): Remove.
58a12889 507
987c9327
AS
508 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
509 types again.
510
522d013a 511 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
512 (system_process_attributes): Likewise.
513
905a9ed3
DN
5142009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
515
516 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
517
518 * eval.c (Fautoload): Purecopy the filename. Simplify.
519
520 * category.c (Fdefine_category): Purecopy docstring.
521
a599b3e8
AS
5222009-10-23 Andreas Schwab <schwab@linux-m68k.org>
523
7b792fc9
AS
524 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
525
a599b3e8
AS
526 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
527
b35ac83e
CY
5282009-10-23 Chong Yidong <cyd@stupidchicken.com>
529
530 * window.c (Fwindow_edges, Fwindow_pixel_edges)
531 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
532 (Bug#4775).
533
e8903e00
SM
5342009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
535
536 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
537 (init_fileio_once):
538 * lisp.h (init_fileio_once): Remove.
539 * emacs.c (main): Don't call init_fileio_once.
540
8f43cbf3
DN
5412009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
542
543 * puresize.h (BASE_PURESIZE): Increase to 1430000.
544
26898943
AS
5452009-10-21 Andreas Schwab <schwab@linux-m68k.org>
546
547 * doprnt.c (doprnt): Fix overflow check.
548
5c646d5a
JD
5492009-10-21 Jan Djärv <jan.h.d@swipnet.se>
550
3132a7ea
JD
551 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
552
5c646d5a
JD
553 * xterm.h (x_wait_for_event): Declare it.
554
555 * xterm.c (pending_event_wait): New variable.
556 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
557 see pending_event_wait.eventtype.
558 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
559 (x_new_font): Call change_frame_size with new rows/columns before we
560 try to resize the frame.
5c646d5a 561 (x_wait_for_event): New function.
d528b1ce
SM
562 (x_set_window_size_1): Don't change gravity unless change_gravity
563 is set.
5c646d5a
JD
564 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
565 don't change frame size, instead wait for the ConfigureNotify.
566 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
567 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
568 (x_initialize): Initialize pending_event_wait.
569
570 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
571 size.
572
573 * widget.c (EmacsFrameSetValues): Add comment.
574 (EmacsFrameSetCharSize): Just call x_set_window_size.
575
576 * gtkutil.c (xg_frame_set_char_size): Flush events and call
577 x_wait_for_event.
d528b1ce 578 (flush_and_sync): Remove again.
5c646d5a
JD
579 (xg_get_font_name): Suggest monospace if no previous font is known.
580
e9c1637d
SM
5812009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
582
583 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 584 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 585
5a72cccb
YM
5862009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
587
588 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
589 processing pending events when event is filtered for input method.
ab04798f 590 (Bug#3681)
5a72cccb 591
2629aa37
JB
5922009-10-20 Juanma Barranquero <lekktu@gmail.com>
593
594 * fns.c: Add #endif accidentally removed in previous change.
595
c3417a74
DN
5962009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
597
598 * fns.c: Remove code for unsupported system: MAC_OS.
599 * image.c: Likewise. Include setjmp.h.
600
9685cef2
JD
6012009-10-19 Jan Djärv <jan.h.d@swipnet.se>
602
603 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
604 pixel -1 (bug #4742).
605
d7306fe6
DN
6062009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
607
019d2c4c
DN
608 * process.c (create_pty): Remove conditionals for no longer
609 supported systems: UNIPLUS and RTU.
610
ee6bacd4
DN
611 * xterm.c:
612 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
613
d7306fe6
DN
614 * alloc.c: Do not define struct catchtag.
615 * eval.c: Move struct catchtag definition ...
616 * lisp.h: ... here.
617
618 * image.c: Move png.h #include earlier to avoid warnings.
619
620 * xterm.c:
621 * xsmfns.c:
622 * xselect.c:
623 * xrdb.c:
624 * xmenu.c:
625 * xftfont.c:
626 * xfont.c:
627 * xfns.c:
628 * xfaces.c:
629 * xdisp.c:
630 * window.c:
631 * widget.c:
632 * w32xfns.c:
633 * w32uniscribe.c:
634 * w32term.c:
635 * w32select.c:
636 * w32reg.c:
637 * w32proc.c:
638 * w32menu.c:
639 * w32inevt.c:
640 * w32heap.c:
641 * w32font.c:
642 * w32fns.c:
643 * w32console.c:
644 * w32.c:
645 * w16select.c:
646 * vm-limit.c:
647 * unexsol.c:
648 * unexec.c:
649 * unexcw.c:
650 * unexaix.c:
651 * undo.c:
652 * tparam.c:
653 * textprop.c:
654 * terminfo.c:
655 * terminal.c:
656 * termcap.c:
657 * term.c:
658 * syntax.c:
659 * sound.c:
660 * sheap.c:
661 * search.c:
662 * scroll.c:
663 * region-cache.c:
664 * regex.c:
665 * ralloc.c:
666 * process.c:
667 * print.c:
b024548b
DN
668 * nsterm.m:
669 * nsselect.m:
670 * nsmenu.m:
671 * nsimage.m:
672 * nsfont.m:
673 * nsfns.m:
d7306fe6
DN
674 * msdos.c:
675 * minibuf.c:
676 * menu.c:
677 * marker.c:
678 * macros.c:
679 * keymap.c:
680 * keyboard.c:
681 * intervals.c:
682 * insdel.c:
683 * indent.c:
684 * gtkutil.c:
685 * ftxfont.c:
686 * ftfont.c:
687 * fringe.c:
688 * frame.c:
689 * fontset.c:
690 * font.c:
691 * fns.c:
692 * floatfns.c:
693 * filelock.c:
694 * fileio.c:
695 * emacs.c:
696 * editfns.c:
697 * dosfns.c:
698 * doprnt.c:
699 * doc.c:
700 * dispnew.c:
701 * dired.c:
702 * dbusbind.c:
703 * data.c:
704 * composite.c:
705 * coding.c:
706 * cmds.c:
707 * cm.c:
708 * chartab.c:
709 * charset.c:
710 * character.c:
711 * ccl.c:
712 * category.c:
713 * casetab.c:
714 * casefiddle.c:
715 * callproc.c:
716 * callint.c:
717 * bytecode.c:
718 * buffer.c:
719 * atimer.c: Include setjmp.h. (Bug#4643)
720
fd5f21e6
SM
7212009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
722
4c0354d7
SM
723 Remove leftover table unibyte_to_multibyte_table.
724 * character.c (unibyte_to_multibyte_table): Remove.
725 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
726 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
727 * character.h (UNIBYTE_TO_CHAR): New macro.
728 (MAKE_CHAR_MULTIBYTE): Use it.
729 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
730 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
731 (message_dolog, set_message_1):
732 * search.c (Freplace_match):
733 * editfns.c (Fcompare_buffer_substrings):
734 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
735 (concat):
736 * insdel.c (copy_text, count_size_as_multibyte):
737 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
738 * term.c (produce_glyphs):
739 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
740 * regex.c (RE_CHAR_TO_MULTIBYTE):
741 * cmds.c (internal_self_insert):
742 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
743
fd5f21e6
SM
744 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
745
4418646e
DN
7462009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
747
748 * puresize.h (BASE_PURESIZE): Increase to 1310000.
749
35f5c1d2
JB
7502009-10-16 Juanma Barranquero <lekktu@gmail.com>
751
752 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
753
a0cd8f6b
AR
7542009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
755
756 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
757 still needed under Tiger.
758
759 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
760
761 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
762 __Apple__.
763
764 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
765
01a8d3fa
KH
7662009-10-15 Kenichi Handa <handa@m17n.org>
767
768 * print.c (print_object): Escape a symbol like "2E10" too.
769
bf6c75c9 7702009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
771
772 Cleanups and changes for 64-bit compile under Snow Leopard.
773 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
774
775 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
776
c5959062 777 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
778 (ns_findfonts, nsfont_list_family): Use long format in printf, and
779 cast argument.
780 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 781 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
782
783 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
784
785 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
786 where appropriate.
787
788 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
789 where appropriate.
6e4780c5
JB
790 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
791 Use stringWithUTF8String.
bf6c75c9
AR
792 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
793
6e4780c5
JB
794 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
795 Add formal protocol mention to inheritance.
bf6c75c9
AR
796 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
797
6e4780c5
JB
798 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
799 Fix printf format.
bf6c75c9
AR
800 (ns_query_color): Use CGFloat where appropriate.
801 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
802 (EmacsScroller-mouseDown:) Use long format in printf, and cast
803 argument.
804
3d87f118
AR
805 * config.in (NS_HAVE_NSINTEGER): Drop.
806
a95c8102
AR
807 * dbusbind.c (dbus-method-return-internal)
808 (dbus-method-error-internal): Use long format in printf, and cast
809 argument.
810
811 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
812 in printf, and cast argument.
813
6873acca 814 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
815 cast argument.
816
9ec6f100
GM
8172009-10-11 Glenn Morris <rgm@gnu.org>
818
819 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
820
5be883cd
JD
8212009-10-08 Jan Djärv <jan.h.d@swipnet.se>
822
823 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
824 menu bar with a small width so it doesn't enlarge the frame.
825
d7a39b51
JB
8262009-10-08 Juanma Barranquero <lekktu@gmail.com>
827
828 * fontset.c (Fset_fontset_font): Fix typos in error messages.
829
0c2b6f8e
GM
8302009-10-06 Glenn Morris <rgm@gnu.org>
831
832 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
833 SOME_MACHINE_LISP (this enters indirectly via DOC).
834
e02131a2
EZ
8352009-10-05 Eli Zaretskii <eliz@gnu.org>
836
837 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
838
b4744254
EZ
8392009-10-04 Eli Zaretskii <eliz@gnu.org>
840
841 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
842 Doc fix.
843
dbf64827
JB
8442009-10-03 Martin Rudalics <rudalics@gmx.at>
845
846 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
847
e9a0aef8
MA
8482009-10-02 Michael Albinus <michael.albinus@gmx.de>
849
d528b1ce 850 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
851 used anymore outside fileio.c.
852
853 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
854
64eb2b56
JB
8552009-10-01 Juanma Barranquero <lekktu@gmail.com>
856
857 * lisp.h (Qdelete_directory_internal):
858 Declare, instead of Qdelete_directory.
859
860 * w32fns.c (Fsystem_move_file_to_trash): Use it.
861
9d28c33e
SM
8622009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
863
864 * eval.c (Fcalled_interactively_p): Add `kind' argument.
865
9d8f3bd9
MA
8662009-10-01 Michael Albinus <michael.albinus@gmx.de>
867
9d28c33e 868 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
869 Fdelete_directory. It is not a command anymore. It has no file
870 name handler.
871
9694740b
SM
8722009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
873
874 * xdisp.c (get_next_display_element): Use an enum in last change.
875
748e162f
KH
8762009-09-28 Kenichi Handa <handa@m17n.org>
877
9694740b 878 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
879 unibyte_display_via_language_environment in handling
880 Vnobreak_char_display.
881
17efd58d
AR
8822009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
883
884 * nsterm.h (ns_app_name): New extern variable.
885
886 * nsterm.m (ns_app_name): New variable.
887 (ns_term_init): Set and use it.
888 (ns_term_shutdown): Use it.
889
890 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
891 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
892
893 * nsfns.m (ns_set_name_iconic, ns_set_name)
894 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
895 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
896
9694740b
SM
897 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
898 Remove double-casting in client_data comparison.
31c2d412 899
3208cb35
YM
9002009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
901
902 * keyboard.c (make_lispy_event): Remember last wheel direction.
903 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
904
b7d552d6
GM
9052009-09-26 Glenn Morris <rgm@gnu.org>
906
907 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
908 internal.elc. Add term/pc-win.elc.
909 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
910 term/x-win.elc.
911 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
912 term/w32-win.elc.
913 (NS_SUPPORT): New.
914 (lisp): Add NS_SUPPORT.
915 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
916
4ff670a8
DR
9172009-09-25 David Reitter <david.reitter@gmail.com>
918
919 * nsmenu.m (EmacsMenu-clear): Recognize application menu
920 on Mac OS X 10.6+ (bug#4513).
921
feabfb6c
JB
9222009-09-24 Juanma Barranquero <lekktu@gmail.com>
923
924 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
925 some parts of Emacs code (like font selection) don't grok them.
926 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 927
de59072a
AS
9282009-09-24 Andreas Schwab <schwab@redhat.com>
929
930 * coding.c (decode_coding_iso_2022): Fix operator precedence.
931
a489517b
JB
9322009-09-24 Juanma Barranquero <lekktu@gmail.com>
933
934 * dired.c (Fdirectory_files): Fix typo in docstring.
935
0592970c
AR
9362009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
937
938 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
939 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
940 (EmacsScroller-setPosition:portion:whole:): Remove -display call
941 under GNUstep.
942 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
943
944 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
945 glyph advancement.
946
48e8a88b
AR
9472009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
948
949 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 950 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
951
952 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
953 deleted (bug #4492).
954
e14f0a78
AR
955 * nsfont.m (Vns_reg_to_script): New lisp variable.
956 (syms_of_nsfont): Declare it.
957 (ns_registry_to_script): New function.
958 (ns_get_req_script): Call it.
959 (ns_findfonts): Don't give up on non-unicode registry.
960
961 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
962
5b650faa
SM
9632009-09-20 Tom Tromey <tromey@redhat.com>
964
965 * eval.c (find_handler_clause): Make stack-trace-on-error work in
966 batch mode (bug#4228).
967
a489517b 9682009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
969
970 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 971 carefully. (Bug #4339)
0bae4e09 972
fcfe06f3
CY
9732009-09-18 Chong Yidong <cyd@stupidchicken.com>
974
d798ba87 975 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 976
31642728
AR
9772009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
978
979 * emacs.c (inhibit_x_resources): Update doc string for NS.
980 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 981 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
982
983 * nsterm.h (ns_no_defaults): Remove.
984
985 * nsterm.m (ns_no_defaults): Remove.
986 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
987 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
988 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
989 don't update the NSWindow itself.
990 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 991 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
992
993 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
994 ns_use_qd_smoothing.
995
996 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
997 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 998 (x-close-connection): Drop PSFlush() under OS X.
a489517b 999 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1000
8686ac71
JB
10012009-09-17 Juanma Barranquero <lekktu@gmail.com>
1002
1003 * emacs.c (inhibit_x_resources): New variable.
1004 (main) [HAVE_NS]: Don't process --quick command line option.
1005 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1006
1007 * lisp.h (inhibit_x_resources): Declare it extern.
1008
1009 * w32reg.c (x_get_string_resource):
1010 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1011
e227ba05
EZ
10122009-09-17 Eli Zaretskii <eliz@gnu.org>
1013
362654a6
JB
1014 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1015 Add lisp/term/internal.elc.
e227ba05 1016
742d40e8
SM
10172009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1018
1019 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1020 (bug#4461).
1021
005bd5a2
DN
10222009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1023
1024 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1025
1026 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1027 (OBJECTS_MACHINE): Remove, unused.
1028
f9af9719
SM
10292009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1030
1031 * frame.c (x_get_resource_string): Remove unused.
1032
0307c7d2
JD
10332009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1034
1035 * xterm.c (x_new_font): Call change_frame_size before calling
1036 x_set_window_size, in case frame size won't change.
1037
1038 * frame.c (x_set_font): Remove dead code.
1039
428b13d6
SM
10402009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1041
1042 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1043
5766c380
SM
10442009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1045
1046 * lread.c (Fload): Don't output a message after loading an obsolete
1047 package any more (done in Lisp now).
1048
2fd0161b
CY
10492009-09-12 Chong Yidong <cyd@stupidchicken.com>
1050
1051 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1052
bc5e75b6
SM
10532009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1054
1055 * keymap.c (Fwhere_is_internal): Use nconc2.
1056
c31c985e
AM
10572009-09-11 Alan Mackenzie <acm@muc.de>
1058
1059 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1060 batch mode.
1061
78012bd2
AS
10622009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1063
1064 * xdisp.c (display_mode_element): Detect cycles.
1065
9d889332
SM
10662009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1067
1068 * keymap.c (where_is_internal): Don't erroneously return nil right after
1069 filling the cache.
1070 (where_is_internal_1): Fix up typo.
1071
7ab5d780
GM
10722009-09-11 Glenn Morris <rgm@gnu.org>
1073
1074 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1075 share a common doc-string.
1076
5238a749
SM
10772009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1078
66d77eda
SM
1079 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1080 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1081
5238a749
SM
1082 * keymap.c (QCadvertised_binding): New constant.
1083 (syms_of_keymap): Initialize it.
1084 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1085 if applicable.
1086
19f48442
SM
10872009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1088
50d4ba39
SM
1089 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1090 (parse_menu_item): Streamline since bindings are recomputed all the
1091 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1092 more and don't support lmenu's menu-alias any more either.
1093
a88a5372
SM
1094 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1095 (where_is_internal): Strip it down to only traverse the keymaps.
1096 Move the cache handling from Fwhere_is_internal to here.
1097 (Fwhere_is_internal): Move the handling of remapping and the choice of
1098 the best binding from where_is_internal to here.
1099 Unify the cached/noncached paths, so remapping is also handled
1100 correctly when the cache is used, and so the cache can be used to
1101 speed up remap-handling when applicable.
1102 Give preference to non-remapped bindings.
1103 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1104 non-remapped bindings.
1105 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1106 command remapping.
1107
19f48442
SM
1108 * xdisp.c (display_mode_element): Move list length limit from 50 to
1109 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1110
599498c3 11112009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1112
1113 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1114
f9b7b5ac
SM
11152009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1116
a53af587
JB
1117 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1118 (Bug#4334)
1119
f9b7b5ac
SM
1120 * keymap.c (where_is_internal): Filter out shadowed remappings.
1121 Assume that where_is_internal returns unshadowed bindings to simplify
1122 the code and get rid of the gotos. Use ASIZE.
1123
04f4b72d
JD
11242009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1125
4da146f2
JD
1126 * xterm.c (x_focus_changed): If we get a focusout and pointer
1127 is invisible, make it visible.
1128
04f4b72d
JD
1129 * xterm.h: Remove condition for declaration of
1130 x_*_window_to_frame.
1131
7cef7ce3
SM
11322009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1133
1134 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1135 initial terminal as well.
1136
a54fa5b7
JD
11372009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1138
1139 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1140 x_menubar_window_to_frame.
a54fa5b7
JD
1141
1142 * xterm.c: Remove declarations also in xterm.h
1143 (XTmouse_position): Do not return valid positions
1144 for clicks in the menubar and the toolbar for Gtk+.
1145
1146 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1147 if the widget for the event has the same top level as a frame,
1148 return the frame.
1149 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1150 internal windows, bug #4122.
1151 (x_non_menubar_window_to_frame): Remove.
1152
5a021dd0
GM
11532009-09-02 Glenn Morris <rgm@gnu.org>
1154
1155 * buffer.c (default-major-mode): Move most of the doc from here...
1156 (major-mode): ... to here.
1157
548fe2f3
NR
11582009-08-30 Nick Roberts <nickrob@snap.net.nz>
1159
1160 * process.c (wait_reading_process_output): Keep the descriptor
1161 when pty is used by a non-child process, e.g., in I/O buffer of
1162 GDB this allows inferior to be restarted.
1163
e0840eef
EZ
11642009-08-29 Eli Zaretskii <eliz@gnu.org>
1165
1166 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1167 both branches into one.
1168
82e98df4
SM
11692009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1170
1171 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1172 (main): Use enable-multibyte-characters rather than
1173 default-enable-multibyte-characters. Output a warning message when
1174 running a unibyte session.
1175
890617cb
YM
11762009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1177
1178 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1179 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1180 (copy_data_segment): Also copy __program_vars section.
1181 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1182 (dump_it) [LC_DYLD_INFO]: Use it.
1183
1184 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1185
e7adeadc
EZ
11862009-08-28 Eli Zaretskii <eliz@gnu.org>
1187
1188 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1189 $(SRC)/buildobj.h.
1190 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1191 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1192 $(SRC)/buildobj.h.
1193 (clean): Add buildobj.h.
1194
3ed8bbdc
TZ
11952009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1196
1197 * print.c (print_object): Set escapeflag to 1 when printing
1198 hashtable keys and values.
1199
155a6764
SM
12002009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1201
1202 * lread.c (read_integer): Use doubles (and potentially return a float
1203 number) as we do in string-to-number.
1204 (read1): Use strtol to read integers, signal errors on strtol's
1205 overflow and use floats if strtol's output is too large for
1206 Elisp integers.
1207
877610de
EZ
12082009-08-27 Eli Zaretskii <eliz@gnu.org>
1209
1210 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1211 (make-buildobj-SH): Fix last change.
1212 (SRC): Move to before where it's first used.
1213
ef73e7be
KH
12142009-08-27 Kenichi Handa <handa@m17n.org>
1215
550c8289
KH
1216 * process.c (send_process): Use encode_coding_object instead of
1217 encode_coding_string to perform eol-conversion even if the string
1218 is unibyte.
1219
60afa08d
KH
1220 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1221 character.
1222
ef73e7be 1223 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1224 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1225
7b3a82d7
DN
12262009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1227
5654bf63
DN
1228 * callproc.c (Fcall_process): Remove always true #if.
1229
7b3a82d7
DN
1230 * lisp.h: Replace #if 0 code for checking with text pointing to
1231 the --enable-checking configure flag.
1232
1233 * emacs.c (main): Mention the --enable-profiling configure flag
1234 instead of using CFLAGS.
1235
878bde49
KR
12362009-08-26 Ken Raeburn <raeburn@raeburn.org>
1237
1238 * Makefile.in (buildobj.h): New target.
1239 (doc.o): Depend on it.
1240 (temacs${EXEEXT}): Don't generate buildobj.lst.
1241 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1242 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1243 ($(BLD)/doc.$(O)): Depend on it.
1244 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1245 provided by Eli Zaretskii.)
1246 ($(TEMACS)): Don't generate buildobj.lst.
1247 * doc.c: Include buildobj.h.
1248 (buildobj): New static variable.
1249 (Fsnarf_documentation): Use it, instead of opening and reading
1250 buildobj.lst.
1251
1574224c
MA
12522009-08-25 Michael Albinus <michael.albinus@gmx.de>
1253
1254 * dbusbind.c (Fdbus_call_method)
1255 (Fdbus_call_method_asynchronously): Use English numeric format for
1256 timeout values in doc string.
1257
d9da2f45
KH
12582009-08-25 Kenichi Handa <handa@m17n.org>
1259
ef73e7be
KH
1260 * alloc.c (mark_char_table): New function.
1261 (mark_object): Use mark_char_table for a char-table.
1262
d9da2f45
KH
1263 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1264 (CHAR_TABLE_REF): Use it.
1265
c8edcc01
KR
12662009-08-23 Ken Raeburn <raeburn@raeburn.org>
1267
1268 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1269 before invoking the newly build emacs to check for load-path
1270 shadowing.
1271
7763401b
GM
12722009-08-22 Glenn Morris <rgm@gnu.org>
1273
1274 * Makefile.in (bootstrap_exe): New variable.
1275 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1276 Use ${bootstrap_exe}.
1277
729eadda
EZ
12782009-08-22 Eli Zaretskii <eliz@gnu.org>
1279
1280 * coding.h (encode_coding_string): Don't encode unibyte strings.
1281 (Bug#4047)
1282
eb4c6ace
MA
12832009-08-22 Michael Albinus <michael.albinus@gmx.de>
1284
1285 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1286
1287 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1288 intended as hotfix only.
1289 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1290
36e34d1b
AR
12912009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1292
1293 * nsterm.m (ns_get_color): Update documentation properly for last
1294 change, and clean up loose ends in the code left by it. Fix
1295 longstanding bug with 16-bit hex parsing, and add support for
1296 yet another X11 format (rgb:r/g/b) for compatibility.
1297 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1298 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1299
f983eb8a
SM
13002009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1301
1302 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1303
3f56d3c6
MA
13042009-08-20 Michael Albinus <michael.albinus@gmx.de>
1305
1306 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1307 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1308 (xd_initialize, xd_pending_messages): Check, whether
1309 $DBUS_SESSION_BUS_ADDRESS is set.
1310
fb641d68
YM
13112009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1312
1313 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1314
1315 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1316
cf59a374
GM
13172009-08-20 Glenn Morris <rgm@gnu.org>
1318
1319 * emacs.c (system-type): Doc fix.
1320
1373f3be
SM
13212009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1322
1323 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1324 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1325
058ed861
MA
13262009-08-18 Michael Albinus <michael.albinus@gmx.de>
1327
1373f3be
SM
1328 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1329 New functions.
058ed861
MA
1330 (xd_initialize): Revert change from 2009-08-16.
1331
563a866e 13322009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1333
1334 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1335 font-group vector, return nil.
5fc05db0 1336
e42bdf01
CY
13372009-08-17 Chong Yidong <cyd@stupidchicken.com>
1338
1339 * process.c (status_notify): Don't perform redisplay.
1340 (Fdelete_process, list_processes_1, process_send_signal):
1341 Expliticly perform redisplay.
1342 (wait_reading_process_output): Always check process status, but
1343 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1344
4230ab74
KR
13452009-08-17 Ken Raeburn <raeburn@raeburn.org>
1346
1373f3be 1347 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1348 (XFLOAT_INIT): New macro for storing a float value.
1349 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1350 * fns.c (sxhash): Copy out the value of a float in order to
1351 examine its bytes.
1352 * dbusbind.c (xd_append_arg): Likewise.
1353
4230ab74
KR
1354 * emacs.c (main): Don't call syms_of_data twice.
1355
a0645cdd
MA
13562009-08-16 Michael Albinus <michael.albinus@gmx.de>
1357
1358 * dbusbind.c (xd_initialize): Add connection file descriptor to
1359 input_wait_mask, in order to let select() detect, whether a new
1360 message has been arrived.
ca4f31ea 1361 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1362
485db0ba
MA
13632009-08-15 Michael Albinus <michael.albinus@gmx.de>
1364
1373f3be
SM
1365 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1366 New functions.
485db0ba
MA
1367
1368 * lisp.h (xd_pending_messages): Declare.
1369
1370 * keyboard.c (readable_events): Call xd_pending_messages.
1371
b5b98ff4
CY
13722009-08-15 Chong Yidong <cyd@stupidchicken.com>
1373
1373f3be 1374 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1375
f8354c6e
CY
1376 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1377
b5b98ff4
CY
1378 * buffer.c (set_buffer_internal_1)
1379 (swap_out_buffer_local_variables): Check for unbound local
1380 variables (Bug#4138).
1381
8b9fc636
EZ
13822009-08-14 Eli Zaretskii <eliz@gnu.org>
1383
1384 * process.c (create_pty): Fix last change.
1385
ce959360
CY
13862009-08-13 Chong Yidong <cyd@stupidchicken.com>
1387
1388 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1389 (xbm_load_image): Caller changed.
64b807c9 1390 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1391
c7baf7e9
NR
13922009-08-13 Nick Roberts <nickrob@snap.net.nz>
1393
1394 * process.c (create_pty): New function.
1395 (Fstart_process): Use it to allow Emacs to just associate a pty
1396 with the buffer. See associated change in gdb-mi.el.
1397 (list_processes_1): Deal with no program name.
1398 (start_process_unwind): Use pid == -2 to mean no process.
1399
1ac9108a
SM
14002009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1401
1402 * cmds.c (nonundocount): New global variable.
1403 (keys_of_cmds): Initialize it.
1404 (Fself_insert_command): Use it to combine upto 20 sequential chars
1405 into a single undo entry, just like the Qself_insert_command code in
1406 keyboard.c does.
1407 Call frame_make_pointer_invisible, also like the Qself_insert_command
1408 code in keyboard.c does.
1409 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1410 than its own local replacement for it.
1411
e267324c
KR
14122009-08-10 Ken Raeburn <raeburn@raeburn.org>
1413
1ac9108a 1414 * fns.c (concat): Don't re-set string length to its current value.
77437343 1415
1ac9108a
SM
1416 * coding.h (decode_coding_string, encode_coding_string):
1417 Use SBYTES macro.
f0bed503 1418
1ac9108a 1419 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1420 (doprnt): Merge with doprnt1, discarding lispstrings code.
1421 * lisp.h (doprnt_lisp): Don't declare.
1422
416e006d
JL
14232009-08-07 Juri Linkov <juri@jurta.org>
1424
1425 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1426
6f7d5780
DN
14272009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1428
1429 * print.c (syms_of_print): Undo previous change.
1430
f19a0f5b
TZ
14312009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1432
1433 * lread.c (read1, syms_of_lread): Read hashtables back from the
1434 readable format.
1435
1436 * print.c (print_preprocess, print_object): Print hashtables fully
1437 and readably.
1438 (syms_of_print): Provide 'hashtable-print-readable.
1439
b9173dc2
AR
14402009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1441
1442 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1443 no family set.
1444 (nsfont_open): Handle case when entity has no family.
1445
1586503c
AR
14462009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1447
1448 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1449 element, not a list, for match case.
1450
087048cd
KH
14512009-07-28 Kenichi Handa <handa@m17n.org>
1452
1453 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1454 rigidly.
1455
1456 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1457 font_parse_xlfd. Check font properties more rigidly.
1458
780c2506
DN
14592009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1460
31fd7c5c
JB
1461 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1462 bsd-common.h.
780c2506 1463
a8c0cc18
KH
14642009-07-27 Kenichi Handa <handa@m17n.org>
1465
1466 * xfaces.c (face_with_height): Call font_clear_prop.
1467
4fbe2306
CY
14682009-07-26 Chong Yidong <cyd@stupidchicken.com>
1469
111d9af3
CY
1470 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1471
1472 * xterm.c (x_term_init): Use Qx.
1473
4fbe2306
CY
1474 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1475
1ac9108a 1476 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1477 (ns_get_color): Revert 2009-07-16 change.
1478
beb0b7f9
EZ
14792009-07-25 Eli Zaretskii <eliz@gnu.org>
1480
1481 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1482 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1483
2baf5e76
KR
14842009-07-25 Ken Raeburn <raeburn@raeburn.org>
1485
1ac9108a
SM
1486 * coding.h (decode_coding_string, encode_coding_string):
1487 Use SCHARS macro.
8890e5f5 1488
2baf5e76 1489 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1490 (load_depth): Delete.
2baf5e76
KR
1491 (Qload_in_progress): New variable.
1492 (load_unwind): Don't reference load_depth or load_in_progress.
1493 (Fload): Likewise; specbind Qload_in_progress instead.
1494 (init_lread): Don't initialize load_depth.
1495 (syms_of_lread): Initialize and protect Qload_in_progress.
1496
1395c6f5
AR
14972009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1498
1499 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1500
4e2f36cf
AR
15012009-07-23 Yavor Doganov <yavor@gnu.org>
1502
1503 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1504
5dd9a6f7
AR
15052009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1506
1507 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1508 Bugs 3792, 3720, 2402.
1509 (ns_lookup_indexed_color): Check for bad index.
1510 (ns_index_color): Init unused slot to 0.
1511 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1512 Bug 3714, possibly 3082.
5dd9a6f7 1513
c902b920
JR
15142009-07-22 Jason Rumney <jasonr@gnu.org>
1515
1ac9108a
SM
1516 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1517 Position IME window at cursor (Bug#2570).
c902b920
JR
1518 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1519 (globals_of_w32fns): Dynamically load functions required above.
1520
1521 * w32term.c (w32_draw_window_cursor): Send message to reposition
1522 any IME window.
1523
090101cf
CY
15242009-07-21 Chong Yidong <cyd@stupidchicken.com>
1525
1526 * fileio.c: Revert 2009-07-16 changes.
1527 (Vauto_save_include_big_deletions): New variable.
1528 (Fdo_auto_save): Disable auto-save only if
1529 auto-save-include-big-deletions is nil.
1530
e6583e3d
CY
15312009-07-21 Chong Yidong <cyd@stupidchicken.com>
1532
1533 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1534 the overflowed pixels into account (Bug#3879).
1535
ece435a5
KR
15362009-07-21 Ken Raeburn <raeburn@raeburn.org>
1537
1538 * lread.c (load_depth): New variable.
1539 (Fload, load_unwind, init_lread): Set it to the load recursion
1540 depth; set load_in_progress as a simple boolean based on the
1541 current load_depth. (Bug#3892)
1542
40b2d973
AR
15432009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1544
1545 * nsfont.m (ns_has_attribute): Remove.
1546 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1547
10be7e0d
JL
15482009-07-18 Juri Linkov <juri@jurta.org>
1549
1550 * process.c (Fset_process_query_on_exit_flag): Mention killing
1551 a buffer in docstring.
1552
fa055055
KH
15532009-07-17 Kenichi Handa <handa@m17n.org>
1554
1555 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1556
042f7b69
YM
15572009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1558
1559 * nsfns.m (Fns_set_alpha): Remove function.
1560 (syms_of_nsfns): Don't defsubr it.
1561
1562 * nsterm.m (ns_get_color): Remove incompatible color formats.
1563 (ns_color_to_lisp): Generate #rrggbb color format string.
1564
4be941e3
RS
15652009-07-16 Richard Stallman <rms@gnu.org>
1566
1567 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1568 (Fset_buffer_auto_saved): Handle save_length = -2.
1569
4e6b227d
CY
15702009-07-16 Chong Yidong <cyd@stupidchicken.com>
1571
1572 * xterm.c (Qx_gtk_map_stock): New var.
1573
1574 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1575 of calling intern each time.
1576
a1856973
YM
15772009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1578
1579 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1580 does tiling.
1581
1582 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1583
497e54d8
KH
15842009-07-14 Kenichi Handa <handa@m17n.org>
1585
72d36834
KH
1586 * font.c (font_vconcat_entity_vectors): New function.
1587 (struct font_sort_data): New member font_driver_preference.
1588 (font_compare): Check font_driver_preference.
1589 (font_sort_entities): The format of the first argument changed.
1590 (font_delete_unmatched): Likewise.
1591 (font_list_entities): The return type changed.
1592 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1593 (font_find_for_lface): Adjuste for the above changes.
1594 Don't suppress the checking of C even if the repertory supports it.
1595 (Flist_fonts): Adjust for the above changes.
72d36834 1596
1ac9108a
SM
1597 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1598 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1599 Reject a font who has adstyle property that is different from a
1600 langname derived from registry property.
1ac9108a 1601 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1602
b6046155
EZ
16032009-07-13 Eli Zaretskii <eliz@gnu.org>
1604
1605 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1606 local copy of dirfilename.
1607
fb6b6049
KH
16082009-07-13 Kenichi Handa <handa@m17n.org>
1609
e2402a5e
KH
1610 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1611 against max_char.
1612
fb6b6049
KH
1613 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1614 calling XSYMBOL (sym).
1615
65156807
EZ
16162009-07-11 Eli Zaretskii <eliz@gnu.org>
1617
1ac9108a
SM
1618 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1619 New function.
1620 (directory_files_internal) [WINDOWSNT]:
1621 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1622 the filesystem of the directory is fast or slow.
1623
1624 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1625 file name.
1626 (is_slow_fs): New function.
1627 (stat): Use it to determine whether to issue more system calls to
1628 get accurate file attributes, when w32-get-true-file-attributes is
1629 `local'.
1630
e0ab5fcf
JD
16312009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1632
1633 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1634 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1635 parameter font-parameter as default to the font dialog.
1636
784ceded
KH
16372009-07-10 Kenichi Handa <handa@m17n.org>
1638
1639 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1640
fb8edc0b
EZ
16412009-07-09 Eli Zaretskii <eliz@gnu.org>
1642
1ac9108a 1643 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1644
fb8edc0b
EZ
1645 * w32.c (stat): Treat UNC file names as residing on remote
1646 drives. (Bug#3542)
1647
635c75b1
KH
16482009-07-09 Kenichi Handa <handa@m17n.org>
1649
1650 * fontset.c (fontset_find_font): Fix previous change.
1651
c1d5ce94
MA
16522009-07-08 Michael Albinus <michael.albinus@gmx.de>
1653
1654 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1655 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1656 error flag.
1657
edb61b39
KH
16582009-07-08 Kenichi Handa <handa@m17n.org>
1659
374bf7e4
KH
1660 * fontset.c (fontset_find_font): Fix the logic of handling
1661 charset_matched.
1662 (font_for_char): Delete unused var.
1663 (generate_ascii_font_name): Delete it.
1664
edb61b39
KH
1665 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1666
1667 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1668 (encode_coding_sjis): Fix the code range check.
1669
0f3f018c
CY
16702009-07-07 Chong Yidong <cyd@stupidchicken.com>
1671
1672 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1673 (Fexpand_file_name): Copy string data properly (Bug#3772).
1674
fcaf6f3a
JD
16752009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1676
1677 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1678 first MapNotify.
1679
6809ca75
KH
16802009-07-07 Kenichi Handa <handa@m17n.org>
1681
1682 * character.h (unibyte_has_multibyte_table): Delete extern.
1683 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1684
1685 * charset.c (Fset_charset_priority): Update charset_unibyte.
1686 (syms_of_charset): Initialize charset_unibyte.
1687
1688 * character.c (unibyte_has_multibyte_table): Delete it.
1689 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1690 charset_unibyte.
1691 (multibyte_char_to_unibyte_safe): Likewise.
1692 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1693
1ac9108a 1694 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1695 (x_produce_glyphs): Likewise.
1696
1697 * .gdbinit (xcharset): Fix the treating $arg0.
1698
ad9e2d54
EZ
16992009-07-04 Eli Zaretskii <eliz@gnu.org>
1700
1701 Emulation of `getloadavg' on MS-Windows.
1702 * w32.c: Include float.h
1703 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1704 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1705 (get_native_system_info, get_system_times): New functions.
1706 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1707 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1708 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1709 g_b_init_get_system_times, and num_of_processors.
1710
0a3472c7
JR
17112009-07-03 Jason Rumney <jasonr@gnu.org>
1712
1713 * w32term.c (w32_initialize): Use standard types.
1714
80904120
EZ
17152009-07-03 Eli Zaretskii <eliz@gnu.org>
1716
1717 * dired.c (Ffile_attributes): Decode user and group names by the
1718 locale's encoding. (Bug#3443)
1719
6978862d
DN
17202009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1721
f8d23104
DN
1722 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1723 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1724
1725 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1726
1727 * term.c (init_tty): Remove spurious #ifdef.
1728
6978862d
DN
1729 * m/mips.h: Mention this file is also used for netbsd.
1730 * m/pmax.h: Remove file.
1731
e044e4fc
JD
17322009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1733
1734 * xterm.h (struct x_display_info): Add invisible_cursor.
1735 (struct x_output): Add current_cursor.
1736
1737 * xterm.c (XTtoggle_invisible_pointer): New function.
1738 (x_define_frame_cursor): Don't define cursor if invisible or the
1739 same as before. Set current_cursor.
1740 (x_create_terminal): Set toggle_invisible_pointer_hook.
1741
1742 * xfns.c (make_invisible_cursor): New function.
1743 (x_set_mouse_color): Call make_invisible_cursor.
1744 Set current_cursor.
1745 (x_window): Set current_cursor.
1746
1747 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1748
1749 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1750 inserting a character.
1751 (read_avail_input): Call frame_make_pointer_visible.
1752
1753 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1754 (frame_make_pointer_invisible, frame_make_pointer_visible):
1755 New functions.
e044e4fc
JD
1756 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1757
1758 * frame.h: Declare frame_make_pointer_invisible and
1759 frame_make_pointer_visible.
1760 (struct frame): Add pointer_invisible.
1761
574c8efa
JD
17622009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1763
7b507248
JD
1764 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1765 frame isn't visible.
1766 (xg_frame_resized): If width/height is -1, get size of window
1767 from X server.
1768
1769 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1770 for MapNotify.
1771
835bdaa7 1772 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1773 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1774 (flush_and_sync): Reintroduce.
574c8efa 1775
3f1c6666 17762009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1777
31fd7c5c 1778 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1779
1780 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1781 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1782
1783 * frame.h: Declare Qsticky.
1784
cad9ef74
JD
1785 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1786
1787 * nsfns.m (ns_frame_parm_handlers): Ditto.
1788
1789 * frame.c: Declare Qsticky.
1790 (frame_parms): Add sticky.
1791
1792 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1793
1794 * xterm.h: Declare x_set_sticky.
1795
1796 * xterm.c (x_set_sticky): New function.
1797
69b16610
JD
1798 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1799 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1800 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1801
1802 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1803
1804 * frame.c: Qmaximized is new.
1805 (x_set_frame_parameters): Do not handle fullscreen specially.
1806 Only set width and height if explicitly set.
1807 (x_set_fullscreen): Handle Qmaximized.
1808 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1809 (syms_of_frame): Initialize Qmaximized.
1810
1ac9108a
SM
1811 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1812 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1813
1814 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1815 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1816 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1817 set gravity to NorthWestGravity when USE_GTK.
1818 (set_wm_state): New function.
31fd7c5c 1819 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1820 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1821 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1822 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1823 to x_real_positions and x_fullscreen_adjust.
1824
1825 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1826 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1827 flush_and_sync.
1828 (xg_height_changed): New function.
1829 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1830 and gtk_window_set_policy. Set frame gravity after parsing the
1831 geometry string.
3f1c6666
JD
1832 (xg_update_frame_menubar, free_frame_menubar)
1833 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1834 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1835 Remove calls to xg_frame_set_char_size.
1836
fd503d99
KH
18372009-07-01 Kenichi Handa <handa@m17n.org>
1838
1839 * keyboard.c (decode_keyboard_code): New function.
1840 (tty_read_avail_input): Decode the input bytes if necessary.
1841
1ac9108a
SM
1842 * coding.c (setup_coding_system):
1843 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1844 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1845 use Qno_conversion.
1846
24ed93fb
YM
18472009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1848
1849 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1850
99061dfc
CY
18512009-06-30 Chong Yidong <cyd@stupidchicken.com>
1852
1ac9108a 1853 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1854
ff90fbde
JR
18552009-06-30 Jason Rumney <jasonr@gnu.org>
1856
1857 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1858 is already loaded.
1859 Set user model ID if supported (bug#1849).
1860
5f445726
JM
18612009-06-29 Jim Meyering <meyering@redhat.com>
1862
1863 Remove useless if-before-xfree test.
1864 * nsfont.m (nsfont_close): Remove useless test.
1865 * term.c (delete_tty): Likewise.
1866 * w32.c (system_process_attributes): Likewise.
1867 * w32font.c (w32font_close): Likewise.
1868 * xfaces.c (x_free_gc): Likewise.
1869 * xselect.c (buffer): Likewise.
1870
b9607587
AS
18712009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1872
1873 * process.c (send_process): Keep decoded string in a local
1874 variable and protect it from GC. (Bug#3521)
1875
89ba96f4
EZ
18762009-06-28 Eli Zaretskii <eliz@gnu.org>
1877
1878 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1879 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1880
098a1589
CY
18812009-06-28 Chong Yidong <cyd@stupidchicken.com>
1882
485422be
CY
1883 * xdisp.c (start_display, handle_face_prop)
1884 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1885 (redisplay_window, try_window_id, produce_image_glyph):
1886 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1887
098a1589
CY
1888 * xterm.c (x_update_window_begin, x_new_focus_frame)
1889 (x_scroll_bar_handle_click, handle_one_xevent)
1890 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1891 (x_make_frame_visible, x_make_frame_invisible)
1892 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1893 code chunks that are now obsolete.
1894
78c38319
MA
18952009-06-28 Michael Albinus <michael.albinus@gmx.de>
1896
1897 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1898 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1899 for hours, when optimzation is enabled.
1900 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1901 (xd_read_message): Make them static.
1902
4189ed40
CY
19032009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1904
1905 * term.c (turn_on_face): Allow simultaneously bold and dim
1906 terminal faces (Bug#3530).
1907
cd9b5e16
CY
19082009-06-27 Chong Yidong <cyd@stupidchicken.com>
1909
4e23bedb
CY
1910 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1911
cd9b5e16
CY
1912 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1913 truncation glyphs (Bug#3686).
1914
07cc3c35
GM
19152009-06-27 Glenn Morris <rgm@gnu.org>
1916
1917 * m/pmax.h: Restore file, with only netbsd portions.
1918
31fd7c5c 19192009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1920
cd9b5e16 1921 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1922
42d4a64f
KH
19232009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1924
1925 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1926 the arg FORCE_SYMBOL.
1927
930fe55b 19282009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1929
1930 * fontset.c (fontset_find_font): When a usable rfont_def is found
1931 in a fallback font-group, make it the first element of the group.
1932
57ebc3fd
CY
19332009-06-24 Chong Yidong <cyd@stupidchicken.com>
1934
1935 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1936
f084f942
KH
19372009-06-24 Kenichi Handa <handa@m17n.org>
1938
1939 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1940 set for C.
1941 (fontset_font): Record the availability of a font for C both in
1942 the realized fontsets of the current one and the default one.
1943
2f686c87
DN
19442009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1945
1946 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1947 conditional, it is always defined on AIX.
1948
666e158e
MB
19492009-06-23 Miles Bader <miles@gnu.org>
1950
1951 * window.c (Vrecenter_redisplay): New variable.
1952 (syms_of_window): Initialize it.
1953 (Qtty): New extern declaration.
1954 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1955
c6da7cd2
JM
19562009-06-23 Jim Meyering <meyering@redhat.com>
1957
1ac9108a
SM
1958 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1959 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1960 pointer dereferences are guaranteed to be valid.
c6da7cd2 1961
678dca3d
KH
19622009-06-23 Kenichi Handa <handa@m17n.org>
1963
74d75424
KH
1964 * emacs.c (main): Call init_font ().
1965
1966 * font.h (Vfont_log): Extern it.
1967 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1968
1969 * font.c (font_sort_entities, font_list_entities)
1970 (font_matching_entity, font_open_entity)
1971 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1972 (Vfont_log): Delete static.
1973 (font_log_env_checked): Delete this variable.
1974 (font_add_log): Don't check font_log_env_checked.
1975 (font_deferred_log): Check Vfont_log.
1976 (init_font): New function.
1977
678dca3d
KH
1978 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1979
1980 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1981
1982 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1983
1984 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1985
1986 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1987 (face_for_char): Don't call font_deferred_log here.
1988 (font_for_char): Likewise.
1989
8a668709
CY
19902009-06-22 Chong Yidong <cyd@stupidchicken.com>
1991
9a01ee33
CY
1992 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1993 rather than its background_width for drawing the overline and
1994 underline (Bug#489).
1995
1996 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1997 rather than its background_width for drawing the overline and
1998 underline (Bug#489).
ec7c9926
CY
1999 (xg_default_icon_file): New variable.
2000 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2001 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2002
8a668709
CY
2003 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2004 (load_overlay_strings): Remove externs.
2005 (fast_find_position): Function deleted.
2006 (mouse_face_from_buffer_pos): New function, based on
2007 fast_find_position. Correctly handle before-strings,
2008 display-strings, and after-strings (Bug#1220).
2009 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2010
4d4c02d8
CY
20112009-06-21 Chong Yidong <cyd@stupidchicken.com>
2012
1ac9108a 2013 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2014 (move_it_in_display_line_to, move_it_in_display_line_to)
2015 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2016
70243478
CY
20172009-06-21 Chong Yidong <cyd@stupidchicken.com>
2018
2019 * Branch for 23.1.
2020
13087e59
JR
20212009-06-21 Jason Rumney <jasonr@gnu.org>
2022
2023 * w32term.c (keyboard_codepage): New static variable.
2024 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2025 (w32_read_socket) [WM_CHAR]: Use it to decode character
2026 input (bug#3237).
2027 (w32_initialize): Initialize it.
2028 (codepage_for_locale): New function.
2029
4735b74e
KR
20302009-06-20 Ken Raeburn <raeburn@raeburn.org>
2031
2032 * process.c (status_message): Pass Faset index argument as a lisp
2033 object, so as to work with USE_LISP_UNION_TYPE.
2034
0e727afa
YM
20352009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2036
2037 * coding.c (Ffind_coding_systems_region_internal):
2038 Cache checked characters.
2039
cf299835
KH
20402009-06-18 Kenichi Handa <handa@m17n.org>
2041
1ac9108a 2042 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2043
90f20d94
AS
20442009-06-18 Andreas Schwab <aschwab@redhat.com>
2045
2046 * xdisp.c (redisplay_internal): Check that the frame is still
2047 live after redisplay of its windows.
2048 (redisplay_windows): Check that the window is still live.
2049
7f1faf1c
KH
20502009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2051
2052 * coding.c (detect_coding_utf_16): Fix previous change.
2053
cc13543e
KH
20542009-06-16 Kenichi Handa <handa@m17n.org>
2055
2056 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2057 UTF-16 by checking the dispersion of Eth and Oth bytes.
2058
977b85f4
AS
20592009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2060
2061 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2062
66bd43d1
KH
20632009-06-15 Kenichi Handa <handa@m17n.org>
2064
2065 * process.c (status_message): Fix previous change. Be sure to
2066 decode a localized string.
2067
cb5ca9c5
YM
20682009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2069
2070 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2071 add comment explaining why.
2072
ec7709ba 20732009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2074
ec7709ba 2075 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2076
4b7f335c
AR
20772009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2078
2079 * nsfont.m (ns_attribute_value): Remove.
2080 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2081 (ns_has_attribute): Shrink the normal range.
2082 (ns_findfonts): Don't worry about requested spec in determining
2083 need for synthItal.
e41820ee 2084 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2085
73b26103
SZ
20862009-06-14 Seiji Zenitani <zenitani@mac.com>
2087
2088 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2089
5753e4da
KH
20902009-06-11 Kenichi Handa <handa@m17n.org>
2091
2092 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2093 overhang for the static composition case.
2094
3561b671
KH
20952009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2096
5753e4da
KH
2097 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2098 overhang for the automatic composition case.
2099
3561b671
KH
2100 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2101 composition case.
2102
852bbd41
CY
21032009-06-10 Chong Yidong <cyd@stupidchicken.com>
2104
2105 * xdisp.c (get_next_display_element): When handling wrap-prefix
2106 and line-prefix, treat \n as a control character (bug#3502).
2107
9903d1e6
KH
21082009-06-10 Kenichi Handa <handa@m17n.org>
2109
2110 * font.c (font_parse_family_registry): Fix for one-char foundry.
2111 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2112
0bcbaaaa
CY
21132009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2114
2115 * process.c (status_message): Fix handling of multibyte signal
2116 string (Bug#3499).
2117
40aa3f13
JM
21182009-06-09 Jim Meyering <meyering@redhat.com>
2119
1f80c7e2
CY
2120 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2121 color name is missing.
40aa3f13 2122
72d51285
KH
21232009-06-09 Kenichi Handa <handa@m17n.org>
2124
2125 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2126 FROM-CODE and TO-CODE are codepoints of CHARSET.
2127
c1d04d84
AR
21282009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2129
2130 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2131
21322009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2133
2134 Changes to support :script/:lang/:otf in NS font driver.
2135 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2136 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2137 indicate not part of font driver interface, and change callers.
2138 (ns_get_family): Remove pointless null check.
2139 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2140 ns_spec_to_descriptor, ns_descriptor_to_entity.
2141 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2142 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2143 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2144 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2145 (ns_get_req_script, ns_accumulate_script_ranges)
2146 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2147 New functions.
2148 (nsfont_list, nsfont_match): Use ns_findfonts.
2149 (nsfont_open): Use font descriptor instead of traits.
2150 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2151 (dump_glyphstring): Rename to ns_dump_glyphstring.
2152
c7eb9816
AR
2153 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2154
c1d04d84
AR
2155 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2156
2157 * fontset.c (fontset_from_font): Remove NS-specific code.
2158
ec7709ba 21592009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2160
2161 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2162 nonactive windows.
2163
31fd7c5c 21642009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2165
1ac9108a 2166 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2167
68852c13 21682009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2169
2170 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2171
6756cd1d
CY
21722009-06-07 Chong Yidong <cyd@stupidchicken.com>
2173
2174 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2175 account for the overflowing of newlines into the last glyph on the
2176 display line (Bug#3482).
2177
28bf482a
DR
21782009-06-05 David Reitter <david.reitter@gmail.com>
2179
ec7709ba
JB
2180 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2181 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2182 Fns_selection_exists_p, Fns_selection_owner_p.
2183
fdb55376
JR
21842009-06-03 Jason Rumney <jasonr@gnu.org>
2185
2186 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2187 available. (Bug#3379)
2188
05129fbe
KH
21892009-05-29 Kenichi Handa <handa@m17n.org>
2190
1ac9108a
SM
2191 * coding.c (get_translation_table):
2192 Check Venable_character_translation.
05129fbe 2193
ec7709ba 21942009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2195
ec7709ba
JB
2196 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2197 (x_make_frame_visible): Move frame to front rather than calling
15891144 2198 ns_raise_frame().
ec7709ba 2199 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2200 isn't key window.
ec7709ba 2201 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2202 drawRect may be called by NSView even if the frame is hidden.
2203
ec7709ba
JB
2204 * nsfns.m (Fx_create_frame): Follow other ports in
2205 determining visibility; default to t. Ensure async_visible is set.
15891144 2206
21f73755
EZ
22072009-05-23 Eli Zaretskii <eliz@gnu.org>
2208
2209 * dired.c (Ffile_attributes): Doc fix.
2210
34001e41
CY
22112009-05-22 Chong Yidong <cyd@stupidchicken.com>
2212
2213 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2214
46306a17
SM
22152009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2216
2217 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2218 and xfont_scratch_props.
2219 (syms_of_xfont): Do it here instead.
2220 (xfont_find_ccl_program): Delete, unused.
2221 (xfont_open): Delete unused var `i'.
2222
ef6e0694
KH
22232009-05-21 Kenichi Handa <handa@m17n.org>
2224
2225 * fontset.c (Qlatin): Don't make it static.
2226
46306a17
SM
2227 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2228 New functions.
ef6e0694
KH
2229 (xfont_scripts_cache, xfont_scratch_props): New variables.
2230 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2231 (xfont_list_pattern): Argument changed. Callers changed.
2232 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2233 (xfont_list): Don't reject a font spec with :script property.
2234 (xfont_has_char): Fix setting of encoding.
2235 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2236 xfont_scratch_props.
2237
22382009-05-19 Kenichi Handa <handa@m17n.org>
2239
46306a17 2240 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2241 Callers changed.
2242
22432009-05-18 Kenichi Handa <handa@m17n.org>
2244
2245 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2246
ac71ced7
SM
22472009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2248
2249 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2250 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2251
1c6d1051
YM
22522009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2253
2254 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2255 (x_delete_terminal): Dissociate resource database from display and
2256 then call XrmDestroyDatabase before closing display.
2257
9b9b779c
AR
22582009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2259
2260 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2261 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2262 whether selected frame is viable before raising it (based on patch
2263 by David Reitter), and improve commentary.
2264 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2265
cccd42d5
KH
22662009-05-15 Kenichi Handa <handa@m17n.org>
2267
2268 * font.c (Ffont_spec): Check arguments.
2269
337fbd17
CY
22702009-05-14 Chong Yidong <cyd@stupidchicken.com>
2271
2272 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2273 weight when testing attributes (Bug#3282).
2274
47a6002f
JD
22752009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2276
2277 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2278 what we expect to get in the next ConfigureNotify event.
2279
9cb363db
YM
2280 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2281 before Xft one (Bug#1696).
2282
b9126609
CY
22832009-05-07 David Reitter <david.reitter@gmail.com>
2284
2285 * nsfns.m (Fx_display_planes): Compute bitplanes using
2286 NSBitsPerPixelFromDepth (Bug#3207).
2287
27a69fd9
CY
22882009-05-10 Chong Yidong <cyd@stupidchicken.com>
2289
2290 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2291
00f37552
TTN
22922009-05-10 Ulrich Mueller <ulm@gentoo.org>
2293
2294 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2295
2d82a920
DR
22962009-05-07 David Reitter <david.reitter@gmail.com>
2297
ec7709ba
JB
2298 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2299 Respect mouse face background.
2d82a920 2300
46b0d52d
DR
23012009-05-07 David Reitter <david.reitter@gmail.com>
2302
ec7709ba
JB
2303 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2304 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2305 in ns_update_begin and ns_update_end.
2306
ce1b23bb
SM
23072009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2308
5996e1b7
SM
2309 * nsfns.m (ns_get_screen): Rewrite.
2310 Don't presume selected-frame is of type `ns'.
2311
ba98e3a0
SM
2312 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2313 all drivers.
2314
ce1b23bb
SM
2315 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2316
bcda200f
YM
23172009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2318
2319 * keyboard.h (add_user_signal): Fix typo in extern.
2320
2321 * lisp.h (add_user_signal): Remove extern.
2322
2323 * unexelf.c (unexec): Consider a section to precede the .bss section
2324 if its addresses overlap that of .bss.
2325 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2326 instead of dumping process.
2327
864660a2
SM
23282009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2329
2330 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2331
50da4e56
SM
23322009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2333
2334 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2335
51520a1a
DN
23362009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2337
2338 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2339 any statements.
2340
409ea3a1
AS
23412009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2342
59c4c60f
AS
2343 * process.c (read_process_output): Make sure the current buffer is
2344 always restored.
2345
409ea3a1
AS
2346 * coding.c (record_conversion_result): Don't modify
2347 Vlast_code_conversion_error for successful result.
2348 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2349
56f00ed2
KH
23502009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2351
2352 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2353 (load_charset_map): Remove unnecessary code.
56f00ed2 2354
4491c9d2
DR
23552009-04-30 David Reitter <david.reitter@gmail.com>
2356
35f5b128 2357 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2358 through f24.
2359
6970f632
CY
23602009-04-30 Chong Yidong <cyd@stupidchicken.com>
2361
2362 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2363
2364 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2365 face_at_buffer_position.
2366 (face_before_or_after_it_pos, get_next_display_element)
2367 (note_mouse_highlight): Update face_at_buffer_position call.
2368
2369 * term.c (term_mouse_highlight):
2370 * msdos.c (IT_note_mouse_highlight):
2371 * fontset.c (Finternal_char_font):
35f5b128 2372 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2373
2374 * dispextern.h (face_at_buffer_position): Update prototype.
2375
0c616f63
KH
23762009-04-30 Kenichi Handa <handa@m17n.org>
2377
35f5b128 2378 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2379
ad3aaf33
AS
23802009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2381
2382 * callproc.c (Fcall_process): Fix GC protection. Make sure
2383 current buffer is always restored.
2384
c3c963a0
YM
23852009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2386
2387 * atimer.c (init_atimer): Also clear stopped_atimers.
2388
2389 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2390
7e3386cb
YM
2391 * process.c (create_process): Clean up merger residues of
2392 2008-07-17 change.
2393
91f68422
CY
23942009-04-29 Ulrich Mueller <ulm@gentoo.org>
2395
2396 * lread.c (Vread_circle): New variable.
2397 (read1): Disable recursive read if Vread_circle is nil.
2398
24b34550
KH
23992009-04-29 Kenichi Handa <handa@m17n.org>
2400
2401 * fontset.h (set_default_ascii_font): Delete extern.
2402
2403 * fontset.c (set_default_ascii_font): Delete this unused function.
2404
2405 * frame.c (x_set_font): When ARG is a font-object, check if the
2406 font-object matches with the ASCII font-spec of the frame's
9c358bda 2407 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2408
77bf07e1
AS
24092009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2410
2411 * fns.c (Flocale_info): Protect vector from GC during decoding.
2412
2413 * process.c (Fstart_process): Protect argv strings from GC during
2414 encoding.
2415
2c55aacf
AS
24162009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2417
2418 * sysdep.c: Include <ctype.h>.
2419
b892d3c9
DR
24202009-04-27 David Reitter <david.reitter@gmail.com>
2421
35f5b128 2422 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2423 Remove commented-out code.
2424
9d0644c4
JB
24252009-04-26 Johan Bockgård <bojohan@gnu.org>
2426
2427 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2428
b7053016
JR
24292009-04-25 Jason Rumney <jasonr@gnu.org>
2430
2431 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2432
4e8231f3
YM
24332009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2434
2435 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2436 Swap bytes in short integer if fringe bitmap width > 8.
2437
493dcf2c
KH
24382009-04-23 Kenichi Handa <handa@m17n.org>
2439
2440 * xfaces.c (Fx_list_fonts): If a font size is specified in
2441 PATTERN, set it in returned scalable fonts.
2442
401e9e57
CY
24432009-04-22 Chong Yidong <cyd@stupidchicken.com>
2444
708e05dc
CY
2445 * keyboard.c (Fset_input_meta_mode): Doc fix.
2446
2447 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2448
1ac9108a 2449 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2450
2451 * coding.c (Fterminal_coding_system): Doc fix.
2452
2453 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2454 (Fx_display_pixel_height, Fx_display_planes)
2455 (Fx_display_color_cells, Fx_server_max_request_size)
2456 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2457 (Fx_display_mm_height, Fx_display_mm_width)
2458 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2459 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2460 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2461 (check_x_display_info): Handle terminal objects instead of
2462 terminal ids.
2463
401e9e57
CY
2464 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2465 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2466 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2467 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2468
df80c7f0
KH
24692009-04-21 Kenichi Handa <handa@m17n.org>
2470
5a8f12af 2471 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2472 (font_score): Check AVGWIDTH too.
908567ef 2473
df80c7f0
KH
2474 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2475 worst case.
1ac9108a
SM
2476 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2477 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2478
705af33f
JR
24792009-04-19 Jason Rumney <jasonr@gnu.org>
2480
2481 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2482 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2483
2484 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2485 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2486 get_phys_cursor_geometry.
2487
b71ac3dd 2488 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2489 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2490 using get_phys_cursor_geometry.
2491
2492 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2493 correctly calculated.
2494
dc2933eb
JD
24952009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2496
1ac9108a
SM
2497 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2498 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2499 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2500 is deprecated.
2501
973e7849
AS
25022009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2503
2504 * font.c (font_put_frame_data): Use xfree instead of free.
2505
314d66f4
JB
25062009-04-17 Juanma Barranquero <lekktu@gmail.com>
2507
2508 * w32font.c (Qja, Qko): Remove declarations.
2509 (syms_of_w32font): Don't DEFSYM them.
2510
cf702558
CY
25112009-04-17 Chong Yidong <cyd@stupidchicken.com>
2512
2513 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2514
2515 * font.h (Qja, Qko): Extern them.
2516
2517 * ftfont.c (Qja, Qko): Remove declarations.
2518
2519 * xfont.c (Qja, Qko): Remove declarations.
2520
b50504f5
KH
25212009-04-17 Kenichi Handa <handa@m17n.org>
2522
bde25748
KH
2523 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2524 string from a vector to handle Latin-1 characters correctly.
2525
b50504f5
KH
2526 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2527 entity even if the cache hits.
2528
f4646fff
AS
25292009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2530
2531 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2532 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2533
e7deaab0
AS
2534 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2535 * lisp.h: Adjust prototypes.
2536
0a0e7d49
CY
25372009-04-16 Chong Yidong <cyd@stupidchicken.com>
2538
2539 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2540 change (Bug#3003).
2541
3c908a57
KH
25422009-04-16 Kenichi Handa <handa@m17n.org>
2543
1ac9108a 2544 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2545
2546 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2547 adstyle.
2548
2549 * ftfont.c (Qja, Qko): Don't make them static.
2550 (enum ftfont_cache_for): New enum.
2551 (fc_charset_table): Undo the previous change.
2552 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2553 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2554 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2555 non-scarable font, try to get AVERAGE_WIDTH.
2556 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2557 Change ft_face_cache from a list of a hash-table. Don't check
2558 `ja' and `ko' adstyle here.
2559 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2560 FTFONT_CACHE_FOR_CHARET.
2561 (ftfont_get_charset): Undo the previous change.
1ac9108a 2562 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2563 (ftfont_close): Likewise.
2564 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2565
2566 * font.c (font_sort_entites): Change the meaning of the arg
2567 BEST-ONLY. Don't optimize for VEC of lenght 1.
2568 (font_select_entity): Just return the value of font_sort_entites.
2569
2570 * xfaces.c (merge_face_vectors): Reflect font properties in
2571 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2572 font_clear_prop if a face attribute doesn't change.
2573
3c908a57
KH
2574 * charset.h (charset_ksc5601): Extern it.
2575
2576 * charset.c (charset_ksc5601): New variable.
2577 (Fdefine_charset_internal): Set charset_ksc5601.
2578 (init_charset_once): Initialize charset_ksc5601 to -1.
2579
d65859c3
DN
25802009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2581
2582 * fileio.c (history_delete_duplicates): Remove unused declaration.
2583
2584 * callint.c (history_delete_duplicates): New declaration.
2585 (Fcall_interactively): Remove command history duplicates when
2586 history_delete_duplicates is true.
2587
3ba010e5
EZ
25882009-04-14 Eli Zaretskii <eliz@gnu.org>
2589
2590 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2591
06f19b91
KH
25922009-04-14 Kenichi Handa <handa@m17n.org>
2593
2594 * font.c (Ffont_info): Fix docstring. Fix the second element of
2595 the returned value (bug#2949).
2596
2cce8bfc
CY
25972009-04-14 Chong Yidong <cyd@stupidchicken.com>
2598
2599 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2600
d156542d
KH
26012009-04-14 Kenichi Handa <handa@m17n.org>
2602
2603 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2604 encoding charset is ascii_compatible.
2605
2606 * charset.c (Fdefine_charset_internal): Make charset
2607 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2608 code_offset is 0, and covers all ASCII characters.
2609
86fa089e
SM
26102009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2611
2612 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2613 (ns_string_to_pasteboard_internal):
2614 * nsmenu.m (process_dialog):
2615 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2616 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2617 * lisp.h (Fx_load_color_file): Declare.
2618
a8a3728b
KH
26192009-04-13 Kenichi Handa <handa@m17n.org>
2620
1ac9108a 2621 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2622 (font_select_entity): Suppress the code to optimize for the same
2623 kind of fonts.
2624 (font_load_for_lface): Get a font that supports at least ASCII
2625 characters.
2626
2627 * ftfont.c (Qja, Qko): New variables.
2628 (fc_charset_table): Delete uniquifier data for iso8859-1.
2629 (ftfont_get_latin1_charset): New function.
2630 (get_adstyle_property): New function.
2631 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2632 bitmap fonts.
2633 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2634 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2635 `ko' or `ja'.
2636 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2637 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2638 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2639 property.
2640 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2641 (syms_of_ftfont): DEFSYM Qja and Qko.
2642
483670b5
KH
26432009-04-09 Kenichi Handa <handa@m17n.org>
2644
12b55765
KH
2645 * charset.c (map_charset_chars): For a charset of `superset'
2646 method, fix calculation of code range.
2647
483670b5
KH
2648 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2649 from the list of extra properties.
2650 (font_clear_prop): Be sure to delete `:name' font property.
2651
57d3b93b
KH
26522009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2653
b4b2c2ca
YM
2654 * dispnew.c (redraw_overlapping_rows): Fix detection of
2655 overlapping for topmost and bottommost rows.
2656
1ac9108a 2657 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2658
472c3609
JR
26592009-04-06 Jason Rumney <jasonr@gnu.org>
2660
2661 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2662
ab193662
KH
26632009-04-06 Kenichi Handa <handa@m17n.org>
2664
2665 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2666
2667 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2668
0c26f026
KH
26692009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2670
2671 * ftfont.c (ftfont_open): Fix checking of the return value of
2672 FT_Load_Char. Fix setting font->underline_thickness.
2673
e173bbce
CY
26742009-04-04 Chong Yidong <cyd@stupidchicken.com>
2675
2676 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2677 (Fterminal_parameters, Fterminal_parameter)
2678 (Fset_terminal_parameter): In doc string, refer to terminal
2679 objects rather than terminal ids.
2680
693a2698
EZ
26812009-04-04 Eli Zaretskii <eliz@gnu.org>
2682
2683 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2684 ret_lim_data. (Bug#2867)
2685
d5221487
CY
26862009-04-03 Chong Yidong <cyd@stupidchicken.com>
2687
2688 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2689 so they don't get wider than the window, matching 2006-01-23
2690 change to the partner function in xdisp.c (Bug#2800).
2691
223509a3
KH
26922009-04-03 Kenichi Handa <handa@m17n.org>
2693
2694 * print.c (print_object): Make each lowest sub_char_table start a
2695 new line (Bug#2866).
2696
74fcd0b1
KH
26972009-04-02 Kenichi Handa <handa@m17n.org>
2698
2699 * fontset.c (fontset_font): Record no-font when a fontset
2700 explicitly tells not to try another font-specs.
2701
c542407d
SM
27022009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2703
2704 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2705
e3869731
KH
27062009-03-30 Kenichi Handa <handa@m17n.org>
2707
d8d2f142
KH
2708 * fontset.c (fontset_from_font): Specify only registry in a
2709 font-spec for all characters supported by that registry.
2710
e3869731
KH
2711 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2712 even if HAVE_M17N_FLT is not defined.
2713
5da5f805
CY
27142009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2715
2716 * ftfont.c: Conditionalize prototyping and use of
2717 ftfont_variation_glyphs.
2718
ab226c50
SM
27192009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2720
9628fed7
SM
2721 * frame.c (delete_frame): Work around compiler bug.
2722
2723 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2724 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2725 Some more EMACS_INT.
2726 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2727
2728 * xdisp.c (dump_glyph): Fix typo.
2729
ae19ba7c
SM
2730 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2731 (adjust_markers_gap_motion, adjust_markers_for_delete)
2732 (adjust_markers_for_insert, adjust_point)
2733 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2734 (make_gap, copy_text, count_size_as_multibyte, insert)
2735 (insert_and_inherit, insert_before_markers)
2736 (insert_before_markers_and_inherit, insert_1)
2737 (count_combining_before, count_combining_after, insert_1_both)
2738 (insert_from_string, insert_from_string_before_markers)
2739 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2740 (insert_from_buffer_1, adjust_after_replace)
2741 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2742 (replace_range_2, del_range, del_range_1, del_range_byte)
2743 (del_range_both, del_range_2, modify_region)
2744 (prepare_to_modify_buffer, signal_before_change)
2745 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2746 for buffer positions and sizes.
2747 * lisp.h: Adjust prototypes accordingly.
2748
2749 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2750 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2751 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2752
ab226c50
SM
2753 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2754
46dfb8fb
JD
27552009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2756
2757 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2758 lines and columns so we keep the same pixel height and width.
2759
2760 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2761 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2762 (x_handle_net_wm_state): New function to update frame parameter
2763 fullscreen.
2764 (x_term_init): Initialize atoms for _NET_WM_STATE.
2765
2766 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2767
d347e494
SM
27682009-03-27 Kevin Ryde <user42@zip.com.au>
2769
2770 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2771 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2772 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2773 (Fgpm_mouse_stop): Pass that new parameter.
2774 * termhooks.h (close_gpm): Adjust prototype.
2775
84db11d6
SM
27762009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2777
c95a5008
SM
2778 * lisp.h (Fx_focus_frame): Declare.
2779
84db11d6
SM
2780 * callint.c (Fcall_interactively): For '^' just delegate the work to
2781 handle-shift-selection.
2782 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2783
0a1958d6
CY
27842009-03-24 Chong Yidong <cyd@stupidchicken.com>
2785
0bfdff23
CY
2786 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2787
0a1958d6
CY
2788 * data.c (Qinteractive_form): New variable.
2789 (Finteractive_form): Use it.
2790
2791 * eval.c (Fcommandp): Use Qinteractive_form.
2792
58aec0d6
JR
27932009-03-24 Jason Rumney <jasonr@gnu.org>
2794
2795 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2796 Calculate total size precisely. Decode environment variables
2797 before substituting. (Bug#38)
2798
553dd618
KH
27992009-03-24 Kenichi Handa <handa@m17n.org>
2800
2801 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2802 encoding (Bug#2722).
553dd618 2803
c39ea606
JD
28042009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2805
2806 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2807 that gdpy is set.
2808
bc9b2b5e
AM
28092009-03-22 Alan Mackenzie <acm@muc.de>
2810
2811 * callint.c (Finteractive): Clarify the doc string - even
2812 promptless elements need \n separators.
2813
9f995a76
JR
28142009-03-22 Jason Rumney <jasonr@gnu.org>
2815
2816 * w32term.c (syms_of_w32term): Doc fix for
2817 x-use-underline-position-properties.
2818
22749e9a
EZ
28192009-03-21 Eli Zaretskii <eliz@gnu.org>
2820
2821 * w32.c (getpwuid): Change argument type to unsigned.
2822 (struct w32_id): Change type of `rid' member to unsigned.
2823 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2824 argument ID to unsigned. All callers changed.
2825 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2826
e00553bf
EZ
28272009-03-20 Eli Zaretskii <eliz@gnu.org>
2828
2829 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2830 negative, produce a float value.
2831
2832 * dired.c (make_uid, make_gid): New functions.
2833 (Ffile_attributes): Use them to avoid negative UID and GID.
2834
f761d6b6
JB
28352009-03-20 Juanma Barranquero <lekktu@gmail.com>
2836
2837 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2838 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2839 Fix typos in docstrings.
2840
d507f8d7
KH
28412009-03-19 Kenichi Handa <handa@m17n.org>
2842
2843 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2844 changed, use font_load_for_lface to get a new font object.
2845 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2846
2847 * frame.c (x_set_font): Handle the case that ARG is a cons.
2848
c68845e0
GM
28492009-03-19 Glenn Morris <rgm@gnu.org>
2850
2851 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2852
bfa49dd1
CY
28532009-03-19 Chong Yidong <cyd@stupidchicken.com>
2854
2855 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2856
8458d4c1
KH
28572009-03-19 Kenichi Handa <handa@m17n.org>
2858
2859 * charset.c (load_charset_map_from_file): When a mapfile can't be
2860 loaded, signal an error.
2861
78e7d1fe
EZ
28622009-03-18 Eli Zaretskii <eliz@gnu.org>
2863
2864 * dired.c (Ffile_attributes): Make sure UID and GID are always
2865 positive, even if the value is too large for a positive EMACS_INT.
2866 Doc fix.
2867
2868 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2869
5da9fdfa
YM
28702009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2871
2872 * xmenu.c (xdialog_show): Move Fredisplay call ...
2873 (Fx_popup_dialog): ... here.
2874
7519c40d
SM
28752009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2876
2877 * dired.c (file_name_completion): Disable the first optimization just
2878 installed, since it is not implemented correctly.
2879
2cd298e2
SM
28802009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2881
2882 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2883 only if the entry can affect bestmatch.
2cd298e2
SM
2884 Stop the search early, as Ftry_completion already does.
2885
48d37adf
CY
28862009-03-17 Chong Yidong <cyd@stupidchicken.com>
2887
e10c9c93 2888 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2889
9286b16a
CY
28902009-03-15 Chong Yidong <cyd@stupidchicken.com>
2891
2892 * keyboard.c (parse_menu_item): Don't display remappings as menu
2893 equivalent bindings (Bug#788).
2894
f7b146dc
JR
28952009-03-15 Jason Rumney <jasonr@gnu.org>
2896
2897 * w32term.h (WM_EMACS_PAINT): New message.
2898 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2899 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2900 before passing to lisp thread. (Bug#950)
2901
f761d6b6 29022009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2903
d93f9575
CY
2904 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2905 variable as it was never reset.
2906 (ns_term_init): Remove initialization of Lisp-settable defaults
2907 and ns_expand_space.
2908 (-setPanelFromDefaultValues): Remove ns_expand_space.
2909 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2910 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2911 i.e. no additional spacing, similar to Carbon port.
2912
d93f9575
CY
2913 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2914 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2915
305018ec
JD
29162009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2917
2918 * sound.c (alsa_configure): Remove call to deprecated
2919 snd_pcm_sw_params_set_xfer_align.
2920
f761d6b6 29212009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2922
2923 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2924 after clicking in a detached tool bar.
2925 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2926
46e722a9
SM
29272009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2928
348db3dd
SM
2929 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2930 int/Lisp_Object mixup).
46e722a9 2931
a3d16f39
KH
29322009-03-13 Kenichi Handa <handa@m17n.org>
2933
2934 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2935 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2936 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2937 (set_fontset_font): Change ARG to a vector. Handle range_list in
2938 ARG correctly.
2939 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2940 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2941 the above change.
2942 (fontset_from_font): Fix previous change.
fe24f56a 2943 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2944 entry. If FONTSET is the default fontset, don't set the extra
2945 slot of the returning char-table.
2946
b066e6b6
JB
29472009-03-12 Juanma Barranquero <lekktu@gmail.com>
2948
2949 * nsfns.m (Fx_close_connection): Doc fix.
2950 (Fns_do_applescript): Reflow docstring.
2951 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2952 (Fx_display_pixel_width, Fx_display_pixel_height)
2953 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2954 Fix typos in docstrings.
2955 (Fns_set_alpha): Fix typos in error messages.
2956
d472514e 29572009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2958
d472514e 2959 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2960 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2961 were used for such events.
2962
d472514e
JB
2963 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2964 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2965
d472514e 2966 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2967 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2968
fb930676
KH
29692009-03-11 Kenichi Handa <handa@m17n.org>
2970
ff85581a
KH
2971 * font.h (font_open_by_spec): Extern it.
2972
c50b7e98
KH
2973 * font.c (font_open_by_spec): New function.
2974 (font_open_by_name): Use font_open_by_spec.
2975
fb930676
KH
2976 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2977 fontset of the frame.
2978
2979 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2980 modify the default font of frames that use this fontset.
2981 (num_auto_fontsets): New variable.
2982 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2983 name. Be sure to set FONTSET_ASCII to the correct font name.
2984 (update_auto_fontset_alist): New function.
2985
df4e8455
JB
29862009-03-11 Juanma Barranquero <lekktu@gmail.com>
2987
2988 * makefile.w32-in: Update dependencies.
2989
0a375797
AR
29902009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2991
2992 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2993
61313fa3
SM
29942009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2995
2996 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2997
b55103fb
CY
29982009-03-10 Chong Yidong <cyd@stupidchicken.com>
2999
3000 * lread.c (Feval_buffer): Doc fix.
3001
dde2559c
KH
30022009-03-09 Kenichi Handa <handa@m17n.org>
3003
3004 * charset.c (Qfile_name_handler_alist): Extern it.
3005 (load_charset_map_from_file): Temporarily bind
3006 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3007
df4e8455 30082009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3009
47f588bb
GM
3010 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3011 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3012
4ddf94bd
AR
30132009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3014
4c9bdfc2
AR
3015 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3016 (x_set_window_size): Change back to calculated method of setting
3017 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3018 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3019 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3020
fe41ae9e
AR
3021 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3022
4c9bdfc2
AR
3023 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3024 accelerator in parens under GNUstep.
3025
825d0875
KH
30262009-03-06 Kenichi Handa <handa@m17n.org>
3027
3028 These changes are to detect incorrect composition sequence without
f3b3be74 3029 looking ahead the source. (Bug#2370)
825d0875
KH
3030
3031 * coding.h: Include "composite.h".
3032 (enum compisition_state): New enum.
3033 (struct compisition_status): New struct.
3034 (struct iso_2022_spec): New member cmp_status.
3035 (struct emacs_mule_spec): New struct.
3036 (struct coding_system): New members ctext_extended_segment_len and
3037 embedded_utf_8. Change the union member
3038 spec.emacs_mule_full_support to spec.emacs_mule.
3039
3040 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3041 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3042 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3043 (ADD_COMPOSITION_DATA): New arg nbytes.
3044 (emacs_mule_char): New arg cmp_status.
3045 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3046 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3047 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3048 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3049 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3050 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3051 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3052 (EMACS_MULE_COMPOSITION_END): New macro.
3053 (emacs_mule_finish_composition): New function.
3054 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3055 (decode_coding_emacs_mule): Avoid long looking ahead while
3056 handling composition.
3057 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3058 (ENCODE_COMPOSITION_RULE): New macro.
3059 (finish_composition): New function.
3060 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3061 (DECODE_COMPOSITION_START): New implementation.
3062 (DECODE_COMPOSITION_END): Likewise.
3063 (STORE_COMPOSITION_RULE): New macro.
3064 (decode_coding_iso_2022): Avoid long looking ahead while handling
3065 composition, CTEXT extended segment, and embedded UTF-8.
3066 (setup_coding_system): For a coding of type iso-2022, reset
3067 CODING_ISO_EXTSEGMENT_LEN (coding) and
3068 CODING_ISO_EMBEDDED_UTF_8 (coding).
3069 (get_translation): Delete arguments last_block, from_nchars,
3070 to_nchars. Callers changed.
3071 (produce_chars): Don't modify charbuf. Adjusted for the change of
3072 get_translation.
98a326f7 3073 (produce_composition): Adjust for the new annotation sequence.
825d0875 3074 (handle_composition_annotation): Likewise.
98a326f7 3075 (consume_chars): Adjust for the change of get_translation.
825d0875 3076
ccbc4452
AR
30772009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3078
4ddf94bd 3079 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3080
988a7ddb
KH
30812009-03-05 Kenichi Handa <handa@m17n.org>
3082
3083 * font.c (font_select_entity): New function.
3084 (font_find_for_lface): Use font_select_entity to select a font.
3085
3086 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3087 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3088 font with C restriction.
3089
98a326f7 30902009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3091
be1bce46 3092 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3093
10ea2b82
JR
30942009-03-04 Jason Rumney <jasonr@gnu.org>
3095
2c93b248 3096 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3097 characters that have already been read. (Bug#2569)
2c93b248 3098
10ea2b82
JR
3099 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3100 Log an error message if check_image_size failed.
3101 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3102 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3103
71a0c011
EZ
31042009-03-02 Eli Zaretskii <eliz@gnu.org>
3105
3106 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3107 when decoding process output.
3108
2f63bba8
RS
31092009-03-01 Richard M Stallman <rms@gnu.org>
3110
3111 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3112
3113 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3114
0a9564cb
EZ
31152009-02-28 Eli Zaretskii <eliz@gnu.org>
3116
3117 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3118 (decode_coding_emacs_mule, decode_coding_iso_2022)
3119 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3120 (decode_coding_raw_text, decode_coding_charset)
3121 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3122 Honor inhibit-eol-conversion. (Bug #2186)
3123
449148b3
JR
31242009-02-28 Jason Rumney <jasonr@gnu.org>
3125
3126 * coding.c (detect_coding_charset): If not checking latin extra,
3127 fail on characters between 0x80 and 0xA0. (Bug#2354)
3128
a4aee864
EZ
31292009-02-28 Eli Zaretskii <eliz@gnu.org>
3130
3131 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3132 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3133
d88bee5a
GM
31342009-02-27 Glenn Morris <rgm@gnu.org>
3135
3136 * callint.c (Finteractive): Doc fix.
3137
a808f22d
KH
31382009-02-27 Kenichi Handa <handa@m17n.org>
3139
3140 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3141
caf8d60c
CY
31422009-02-27 Chong Yidong <cyd@stupidchicken.com>
3143
3144 * font.c (font_style_to_value): Set value for unknown symbols to
3145 100 instead of 255.
b61137ea
CY
3146 (weight_table, slant_table, width_table): Treat "unspecified" as
3147 the default value.
caf8d60c 3148
1a0de25c
JB
31492009-02-26 Juanma Barranquero <lekktu@gmail.com>
3150
3151 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3152
8fc45744
JB
31532009-02-25 Juanma Barranquero <lekktu@gmail.com>
3154
107bd7d1
JB
3155 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3156 error as soon as a recursive load is detected.
8fc45744 3157
f097e223
AR
31582009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3159
3160 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3161 before caching.
3162
8810a12f
KH
31632009-02-24 Kenichi Handa <handa@m17n.org>
3164
3165 * fontset.c (fontset_find_font): Fix the condition for checking
3166 unavailable font.
3167
2c7d1565
GM
31682009-02-24 Glenn Morris <rgm@gnu.org>
3169
3170 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3171 whitespace that confuses documentation.
3172
a20878b6
MB
31732009-02-23 Miles Bader <miles@gnu.org>
3174
3175 * process.c (Flist_system_processes, Fprocess_attributes)
3176 (syms_of_process): Rename `system-process-attributes' to
3177 `process-attributes'.
3178
b3b58c01
AS
31792009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3180
1b3b981b
AS
3181 * coding.h (struct coding_system): Make safe_charsets a pointer to
3182 unsigned char.
3183 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3184 being 255.
3185 (SAFE_CHARSET_P): Likewise.
3186 (setup_iso_safe_charsets): Properly setup safe_charsets.
3187 (Fdefine_coding_system_internal): Likewise.
3188 (setup_coding_system): Likewise. Remove unneeded casts.
3189 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3190 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3191 unneeded casts.
3192
b3b58c01
AS
3193 * insdel.c (del_range_2): Don't modify gap contents when called
3194 from decode_coding_object. (Bug#1809)
3195
0b6f228c
CY
31962009-02-21 Chong Yidong <cyd@stupidchicken.com>
3197
3198 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3199 Qfont_object.
3200 (Ftype_of): Recognize font objects.
3201
3202 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3203
3204 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3205 moved to data.c.
3206
52f8870b
AR
32072009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3208
3209 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3210 async_iconified. Based on a patch by Christian Lynbech
3211 <christian.lynbech@tieto.com>.
3212 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3213
7087d5e9
GM
32142009-02-20 Glenn Morris <rgm@gnu.org>
3215
3216 * syntax.c (Fskip_chars_forward): Fix doc typo.
3217
41d2ceef
CY
32182009-02-20 Chong Yidong <cyd@stupidchicken.com>
3219
3220 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3221
1a3b7ca6
CY
32222009-02-19 Chong Yidong <cyd@stupidchicken.com>
3223
3224 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3225
73cce38d
KH
32262009-02-19 Kenichi Handa <handa@m17n.org>
3227
3228 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3229 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3230
a51092ee
DN
32312009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3232
3233 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3234
c423ecca
KH
32352009-02-18 Kenichi Handa <handa@m17n.org>
3236
3237 * font.c (font_check_otf_features): Fix handling of `nil' element.
3238 (Ffont_spec): Describe :lang and :otf in the docstring.
3239
4c1958f4
AS
32402009-02-16 Andreas Schwab <schwab@suse.de>
3241
3242 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3243 string.
3244
5704f39a
KH
32452009-02-16 Kenichi Handa <handa@m17n.org>
3246
3247 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3248 (Bug#1723)
5704f39a 3249
8f0085aa
CY
32502009-02-14 Chong Yidong <cyd@stupidchicken.com>
3251
a057d86a 3252 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3253
3254 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3255 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3256
aff01dd9
EZ
32572009-02-14 Eli Zaretskii <eliz@gnu.org>
3258
3259 * msdos.c (MAX_SCREEN_BUF): New macro.
3260 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3261 Encode the entire run of glyphs sharing the same face, instead of
3262 doing that one glyph at a time (fixes a bug with displaying
3263 double-size characters).
3264
ba301db3
AR
32652009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3266
3267 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3268
3269 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3270 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3271 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3272
3273 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3274 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3275
51d861de
SM
32762009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3277
3278 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3279 invisible areas.
3280
7fed8996
JR
32812009-02-12 Jason Rumney <jasonr@gnu.org>
3282
631ea4fb
JR
3283 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3284 (add_font_entity_to_list): Call check_face_name even when family
3285 is unspecified.
3286
cb4a3e42
JR
3287 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3288 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3289 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3290
7fed8996 3291 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3292 raster fonts. (Bug#2219)
7fed8996 3293
895416e3
KH
32942009-02-12 Kenichi Handa <handa@m17n.org>
3295
3296 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3297 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3298 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3299 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3300 (find_automatic_composition): While looking forward and backward,
3301 check static composition. Fix where to stop looking forward.
3302 (composition_adjust_point): Fix checking of static composition.
3303 (Fcomposition_get_gstring): Pay attention to
1dacf998 3304 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3305
3306 * lisp.h (fast_looking_at): Extern it.
3307
3308 * search.c (fast_looking_at): New function.
3309
51d861de 3310 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3311 <struct glyph>.u.cmp.to.
3312 (append_composite_glyph): Likewise.
3313
51d861de 3314 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3315 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3316 composition.
51d861de 3317 (append_composite_glyph): Adjust for the change of
895416e3
KH
3318 <strcut glyph>.u.cmp.to.
3319
8510724d
JB
33202009-02-11 Juanma Barranquero <lekktu@gmail.com>
3321
3322 * casetab.c (init_casetab_once):
3323 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3324 * font.c (font_update_lface):
3325 * fontset.c (Fnew_fontset):
3326 * ftfont.c (ftfont_drive_otf):
3327 * xfont.c (xfont_open):
3328 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3329
294fa707
SM
33302009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3331
3332 * fileio.c (Fwrite_region): !NILP -> CONSP.
3333
b5bfebec
AS
33342009-02-10 Andreas Schwab <schwab@suse.de>
3335
3336 * process.c (send_process): Properly relocate pointer into data
adab88bd 3337 when using encoded data. (Bug#2272)
b5bfebec 3338
cb84a2be
KH
33392009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3340
3341 * coding.c (detect_coding_charset): Fix previous change.
3342
89e09428
JR
33432009-02-08 Jason Rumney <jasonr@gnu.org>
3344
3345 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3346 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3347
4470a277
AS
33482009-02-07 Andreas Schwab <schwab@suse.de>
3349
3350 * unexelf.c (unexec): Fix error message.
3351
3175b12a
AR
33522009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3353
3354 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3355 when modal window is active. (Bug #2152)
3175b12a
AR
3356 (applicationShouldTerminate:): Remove now-unneeded while loop
3357 around NSRunAlertPanel.
3358
3359 * nsmenu.m (popupSession): New file-global variable.
3360 (pop_down_menu): End the popupSession before closing dialog.
3361 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3362 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3363 don't query NSApp for events (just sleep instead).
3364
8434d0b8
EZ
33652009-02-07 Eli Zaretskii <eliz@gnu.org>
3366
51d861de
SM
3367 * coding.c (syms_of_coding) <translation-table-for-input>:
3368 Modify doc string to discourage use for character code unification.
8434d0b8 3369
aa82edfd
CY
33702009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3371
3372 * atimer.c (run_timers): Update pending_atimers.
3373
2d283c7c
CY
33742009-02-06 Chong Yidong <cyd@stupidchicken.com>
3375
eb306cab
CY
3376 * image.c (svg_load_image): Fix last change.
3377
2d283c7c
CY
3378 * xfns.c (Fx_create_frame): Signal an error if no font is
3379 found (Bug#2147).
3380
4d8e170e
JB
33812009-02-05 Juanma Barranquero <lekktu@gmail.com>
3382
3383 * character.c (syms_of_character) <script-representative-chars>:
3384 Fix typo in docstring.
3385
c96169a0
AR
33862009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3387
3388 * nsmenu.m (pop_down_menu): New function.
3389 (ns_popup_dialog): Call it on unwind.
3390 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3391 call timer_check() (Bug#2154).
3392 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3393 handling_signal is set.
3394 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3395
31fd7c5c 3396 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3397
3398 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3399
3400 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3401
51d861de
SM
3402 * keyboard.c (poll_for_input_1, handle_async_input):
3403 Set handling_signal under HAVE_NS.
c96169a0 3404
aacd8ba1
GM
34052009-02-04 Glenn Morris <rgm@gnu.org>
3406
3407 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3408
4cb75c4b
KH
34092009-02-04 Kenichi Handa <handa@m17n.org>
3410
3411 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3412
3413 * charset.c (Fchar_charset): New optional arg restriction.
3414
3415 * coding.h (coding_system_charset_list): Extern it.
3416
3417 * coding.c (coding_system_charset_list): New function.
3418
3419 * composite.c: Include coding.h and termhooks.h.
3420 (composition_gstring_p): Fix for the terminal case.
3421 (composition_gstring_width): Likewise.
3422 (fill_gstring_body): Likewise.
3423 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3424 the frame.
3425 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3426 is within a composition.
867d4bb3 3427 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3428
3429 * term.c (encode_terminal_code): Fix handling of composition.
3430 (produce_composite_glyph): For static composition, get pixel_width
3431 from struct composition.
3432
826ba17e
AS
34332009-02-02 Andreas Schwab <schwab@suse.de>
3434
3435 * unexelf.c (unexec): Handle unaligned bss offset.
3436
8ad093db
AR
34372009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3438
3439 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3440 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3441
8ad093db
AR
3442 * keyboard.c (handle_interrupt): Don't call
3443 quit_throw_to_read_char() under NS.
d0a76a6e 3444
8ad093db
AR
3445 * blockinput.h: Remove NS-specific code.
3446
4d18a7a2
DN
34472009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3448
db878925
DN
3449 * dispnew.c (window_change_signal): Don't try to get the size of a
3450 suspended tty frame.
3451 * term.c (Fresume_tty): Resize if the size has changed while the
3452 tty was suspended.
3453
4d18a7a2
DN
3454 * alloc.c (mark_stack): Properly conditionalize previous change.
3455
8984df7c
JB
34562009-01-30 Juanma Barranquero <lekktu@gmail.com>
3457
3458 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3459 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3460 Remove; this code is not used on Windows.
3461
75f4f1ac
EZ
34622009-01-30 Eli Zaretskii <eliz@gnu.org>
3463
3464 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3465 EOLs that also has stray ^M characters.
3466
07a1e794
JB
34672009-01-30 Juanma Barranquero <lekktu@gmail.com>
3468
3469 * atimer.c (run_timers, alarm_signal_handler):
3470 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3471 * w32inevt.c (w32_console_read_socket):
3472 * w32term.c (w32_read_socket):
3473 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3474
a8b11cc9
CY
34752009-01-30 Chong Yidong <cyd@stupidchicken.com>
3476
3477 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3478 Initialize it as a relative filename pattern.
3479 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3480 (Fcall_process_region): Simplify temp file creation using
3481 temporary-file-directory.
3482
c279587b
EZ
34832009-01-29 Eli Zaretskii <eliz@gnu.org>
3484
3485 * msdos.c: Rename pending_signals to msdos_pending_signals.
3486 (sig_suspender, sigprocmask): Adjust.
3487
a8fe3242
CY
34882009-01-29 Chong Yidong <cyd@stupidchicken.com>
3489
3490 * keyboard.c (pending_signals): New var.
3491 (poll_for_input, input_available_signal, init_keyboard): Set it.
3492 (process_pending_signals): New function.
3493
3494 * lisp.h (QUIT): Check pending_signals instead of
3495 interrupt_input_pending. Use process_pending_signals.
3496
51d861de 3497 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3498
51d861de 3499 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3500
3501 * sysdep.c (emacs_write): Use process_pending_signals.
3502
3503 * xterm.c (XTread_socket): Update pending_signals.
3504
3505 * w32term.c (w32_read_socket): Update pending_signals.
3506
3507 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3508
6570a1c4
KH
35092009-01-29 Kenichi Handa <handa@m17n.org>
3510
3511 * xftfont.c (xftfont_has_char): New function.
3512 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3513
d72a4afa
AR
35142009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3515
3516 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3517 under GNUstep.
3518 (ns_query_color): New declaration.
3519
3520 * nsterm.m (ns_confirm_quit): New variable.
3521 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3522 (EmacsApp-applicationShouldTerminate:): Use it.
3523 (EmacsPrefsController): Let user set it.
3524 (ns_query_color): New function.
3525 (ns_defined_color): Use it.
3526 (ns_initialize): Drop.
3527 (ns_term_init): Add two lines from ns_initialize(), and set
3528 input_interrupt_mode to nil.
3529
3530 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3531 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3532
9fe78804
KH
35332009-01-28 Kenichi Handa <handa@m17n.org>
3534
3535 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3536 (fontset_get_font_group): Remember that no font-group is specified
3537 for C.
9fe78804 3538
fa57de36
CY
35392009-01-27 Chong Yidong <cyd@stupidchicken.com>
3540
930600e9
CY
3541 * fns.c (concat): Check for string overflow (bug#1787).
3542
fa57de36
CY
3543 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3544 Quadruple undo limits (bug#1501).
3545
7179ce7b
KH
35462009-01-27 Kenichi Handa <handa@m17n.org>
3547
3548 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3549 directly use GT_Get_Char_index.
3550
3551 * xftfont.c (struct xftfont_info): New member `index'.
3552
3553 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3554 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3555
5be8fcc0
CY
35562009-01-26 Kenichi Handa <handa@m17n.org>
3557
3558 * fontset.c (fontset_find_font): Fix handling of non-cons return
3559 value of fontset_get_font_group.
3560 (fontset_font): Revert last change.
3561
19ae3e61
JR
35622009-01-26 Jason Rumney <jasonr@gnu.org>
3563
3564 * w32font.c (w32font_list_internal): Return quickly if registry is
3565 unknown. Simplify final return.
3566 (add_font_entity_to_list): Break complex logic down into more
3567 manageable chunks. Move unknown registry check to
3568 w32font_list_internal.
3569
8612b71a
AR
35702009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3571
3572 Changes to remove Feval calls from GUI under NS.
3573
d8038940
JB
3574 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3575 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3576 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3577
3578 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3579 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3580 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3581 instead of NON_ASCII_KEYSTROKE_EVENT.
3582 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3583 (EmacsApp-applicationShouldTerminate:): Query user.
3584 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3585 instead of Feval.
3586
3587 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3588
3589 * keyboard.c (kbd_buffer_get_event): Check for it.
3590 (keys_of_keyboard): Define lispy keys for
3591 ns-put/unput-working-text.
3592
3593 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3594 versions.
3595 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3596
6288ae55
CY
35972009-01-25 Chong Yidong <cyd@stupidchicken.com>
3598
3599 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3600 setting current_buffer directly. (Bug#2044)
6288ae55 3601
289e7f8f
CY
36022009-01-24 Chong Yidong <cyd@stupidchicken.com>
3603
5ce87308 3604 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3605 any work. (Bug#1952, bug#1990).
5ce87308 3606
64cc3cf6 3607 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3608
b3243e6f
AR
36092009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3610
3611 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3612 (ns_no_defaults): New declaration.
3613 (main): Use it.
e0d2e69a 3614
d900b2af 3615 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3616
d900b2af 3617 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3618
d900b2af
AR
3619 * nsterm.m (ns_no_defaults): New variable.
3620 (ns_initialize): Don't read defaults when ns_no_defaults.
3621 (EmacsView-readSelectionFromPasteboard:)
3622 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3623 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3624 (ns_dumpglyphs_stretch): New function.
3625 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3626 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3627
e0d2e69a
AR
3628 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3629
3ac71f5d
CY
36302009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3631
3632 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3633 call for Sparc64.
3634
3fe53a83
AR
36352009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3636
3637 * nsfns.m:
3638 * nsgui.h:
3639 * nsmenu.m:
3640 * nsselect.m:
3641 * nsterm.h:
3642 * nsterm.m: Remove '23' comments that indicated code added during
3643 update from emacs-20 -> emacs-23.
3644
10f87c6f 36452009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3646
3647 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3648 ns_alternate_modifier. (Bug#1217)
a3b53a85 3649
c7cef62d
AR
3650 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3651 Display all shortcuts, including those w/o super modifier.
3652
575fb8bd
AR
3653 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3654
918b848b
CY
36552009-01-22 Chong Yidong <cyd@stupidchicken.com>
3656
3657 * fileio.c (Vwrite_region_post_annotation_function)
3658 (Vwrite_region_annotation_buffers): New vars.
3659 (build_annotations_unwind): Just reset
3660 Vwrite_region_annotation_buffers.
3661 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3662 Call write-region-post-annotation-function.
3663 (build_annotations): Add to Vwrite_region_annotation_buffers if
3664 buffer changes.
3665
a39e2539
AR
36662009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3667
3668 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3669 Tiger.
51d861de
SM
3670 * nsfns.m (ns_do_applescript):
3671 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3672
35ed44db
AR
36732009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3674
3675 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3676
cbe0b5bf
AR
36772009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3678
3679 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3680
6049d3a0
AR
3681 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3682
3683 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3684 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3685 handle Ctrl-tab. (Bug#1841)
3686 (ns_get_color): Use unsigned long long for scanned hex string value.
3687 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3688 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3689 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3690 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3691 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3692 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3693 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3694
d3810c21 3695 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3696 DPI. (Bug#1316)
d3810c21
AR
3697 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3698 values in onTiger section.
4c7077c3 3699
e301e634
CY
37002009-01-19 Chong Yidong <cyd@stupidchicken.com>
3701
7f82490b
CY
3702 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3703 Check return value of font_spec_from_name.
64cc3cf6 3704 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3705
3706 * font.c (font_spec_from_name): Return Qnil if font name could not
3707 be parsed.
3708 (font_parse_name): Treat a `?' character as part of an XLFD.
3709
e301e634
CY
3710 * fns.c (Fsubstring): Doc fix.
3711
1c0db158
KH
37122009-01-19 Kenichi Handa <handa@m17n.org>
3713
51d861de 3714 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3715 (ftfont_list): Likewise.
3716
acf20901
JB
37172009-01-18 Juanma Barranquero <lekktu@gmail.com>
3718
fff4e459
JB
3719 * dbusbind.c (Fdbus_register_signal):
3720 * process.c (conv_sockaddr_to_lisp):
3721 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3722
acf20901
JB
3723 * callproc.c (Fgetenv_internal): Doc fix.
3724
e7abcdfb
CY
37252009-01-16 Chong Yidong <cyd@stupidchicken.com>
3726
3727 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3728 it is not even used.
3729
b60861e6
GM
37302009-01-16 Glenn Morris <rgm@gnu.org>
3731
3732 * font.c (Ffont_variation_glyphs): Silence compiler.
3733
8db52afe
JB
37342009-01-15 Juanma Barranquero <lekktu@gmail.com>
3735
3736 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3737 Reported by David Robinow <drobinow@gmail.com>.
3738
4cddb209
KH
37392009-01-15 Kenichi Handa <handa@m17n.org>
3740
51d861de 3741 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3742
f247f67b
JR
37432009-01-14 Jason Rumney <jasonr@gnu.org>
3744
3745 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3746 never a fontset. (Bug#1562)
f247f67b 3747
f56a4450
KH
37482009-01-14 Kenichi Handa <handa@m17n.org>
3749
3750 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3751 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3752
4e99855e
CY
37532009-01-13 Chong Yidong <cyd@stupidchicken.com>
3754
3755 * font.c (font_clear_prop): If clearing the family, clear the font
3756 width index too.
3757
fff4e459 3758 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3759
24f01470
JB
37602009-01-12 Juanma Barranquero <lekktu@gmail.com>
3761
3762 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3763 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3764 functions, use sizeof.
3765
a41240a3
MR
37662009-01-12 Martin Rudalics <rudalics@gmx.at>
3767
3768 * keyboard.c (read_char): Fix case where last_nonmenu_event
3769 returned a bad value with submenus. (Bug#447)
3770
944636b8
CY
37712009-01-12 Chong Yidong <cyd@stupidchicken.com>
3772
3773 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3774 family, clear the font width index too.
3775
0dad7c6f
JR
37762009-01-11 Jason Rumney <jasonr@gnu.org>
3777
3778 * keyboard.c (cmd_error_internal): Exit when errors occur before
3779 frame creation and not in daemon mode. (Bug#1836)
3780
7c2363af
CY
37812009-01-10 Chong Yidong <cyd@stupidchicken.com>
3782
3783 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3784 of a display vector, backtrack.
3785 (try_window_reusing_current_matrix): Check glyph type before
3786 referencing charpos member.
3787
97b1b294
EZ
37882009-01-10 Eli Zaretskii <eliz@gnu.org>
3789
3790 Fix Bug #876:
3791
3792 * coding.c (inhibit_null_byte_detection): New variable.
3793 (detect_coding, detect_coding_system): Don't pay attention to null
3794 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3795 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3796 <inhibit-iso-escape-detection>: Doc fix.
3797
4624b6e3
JR
37982009-01-09 Jason Rumney <jasonr@gnu.org>
3799
3800 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3801 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3802 Only report Unicode Plane 2 fonts as unicode-sip.
3803
323b840c
CY
38042009-01-09 Chong Yidong <cyd@stupidchicken.com>
3805
51d861de
SM
3806 * xfaces.c (Fx_font_family_list): Delete function.
3807 Move compatibility version to faces.el.
323b840c 3808
51d861de 3809 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3810
eba7400d
MR
38112009-01-09 Martin Rudalics <rudalics@gmx.at>
3812
3813 * frame.c (x_set_frame_parameters): Remember requested value for
3814 fullscreen before it's reset by the parameter handler.
3815
4b09796d
GM
38162009-01-09 Glenn Morris <rgm@gnu.org>
3817
3818 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3819 (last_command_event): ... and update all users.
4b09796d
GM
3820 (last_input_char): For clarity, rename to...
3821 (last_input_event): ... and update all users.
3822 (last-command-char, last-input-char): Move to subr.el as aliases.
3823 * cmds.c, commands.h: Update for last_command_char rename.
3824
14ccea62
CY
38252009-01-08 Chong Yidong <cyd@stupidchicken.com>
3826
51d861de 3827 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3828
5f004711
JR
38292009-01-08 Jason Rumney <jasonr@gnu.org>
3830
3831 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3832 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3833 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3834 Don't declare.
fff4e459 3835 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3836 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3837
b71f6f73
KH
38382009-01-07 Kenichi Handa <handa@m17n.org>
3839
50b06221 3840 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3841 remember the coding system used for decoding in
50b06221
KH
3842 coding_system (Bug#1039).
3843
b71f6f73 3844 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3845 breaking the loop. (Bug#870)
b71f6f73
KH
3846 (decode_coding_utf_16, decode_coding_emacs_mule)
3847 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3848 (decode_coding_charset): Likewise.
3849
56f668f7
MR
38502009-01-05 Martin Rudalics <rudalics@gmx.at>
3851
3852 * frame.c (x_set_frame_parameters): Make sure height (width) get
3853 applied when fullwidth (fullheight) is set. (Bug#1522)
3854
5da9424d
JB
38552009-01-04 Juanma Barranquero <lekktu@gmail.com>
3856
3857 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3858 (utc_base): Declare as ULONGLONG, not long double.
3859 (convert_time_raw): Delete.
3860 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3861 (initialize_utc_base): New function.
3862 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3863 (convert_from_time_t): Use initialize_utc_base; compute result with
3864 64-bit arithmetic.
3865 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3866
c4605e09
EZ
38672009-01-03 Eli Zaretskii <eliz@gnu.org>
3868
9acef61c 3869 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3870 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3871 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3872 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3873 [!subprocesses]: Define.
3874 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3875 (Flist_system_processes, Fsystem_process_attributes)
3876 [!subprocesses]: Call list_system_processes and
3877 system_process_attributes instead of returning Qnil.
3878
9acef61c
JB
3879 * dosfns.c (system_process_attributes, list_system_processes):
3880 New functions.
c4605e09
EZ
3881
3882 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3883
3884 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3885 Don't use the default (no-op) implementation.
3886
8b7d0a16
JR
38872009-01-03 Jason Rumney <jasonr@gnu.org>
3888
a6d46bc1
JR
3889 * keyboard.c (parse_modifiers_uncached): Wheel events are
3890 clicks (bug#687).
3891
8b7d0a16
JR
3892 * w32term.c (x_query_colors, x_query_color): New functions.
3893
3894 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3895 (svg_load_image): Cast returned pointers from dynamically loaded
3896 functions. Eliminate W32 specific code.
3897
bfe11752
DN
38982009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3899
89e2438a
DN
3900 * nsfns.m (x_set_foreground_color, x_set_background_color)
3901 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3902 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3903 x_ prefix instead of ns_. Update references.
3904 (syms_of_nsfns): Add a FIXME comment.
3905
3906 * nsterm.m (x_set_cursor_type): New prototype.
3907 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3908
bfe11752
DN
3909 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3910 for Solaris instead of incorrectly providing Qutime and Qcutime.
3911
031da700
EZ
39122009-01-02 Eli Zaretskii <eliz@gnu.org>
3913
3914 * w32.c (process_times): Compute sum of utime and stime.
3915 (system_process_attributes): Add Qtime to the alist.
3916
3917 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3918 and add them to the alist.
3919
3920 * process.c (top level) <Qtime, Qctime>: New variables.
3921 (syms_of_process): staticpro them.
3922 (Fsystem_process_attributes): Add their documentation to the doc
3923 string.
3924
3925 * process.h: Declare Qtime and Qctime.
3926
df23bf08
JR
39272009-01-02 Jason Rumney <jasonr@gnu.org>
3928
9acef61c 3929 * image.c (Qgobject): New symbol.
df23bf08
JR
3930 (syms_of_image): Initialize it.
3931 (init_svg_functions): Load some functions from gobject library.
3932
5bbdf7aa
DN
39332009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3934
3935 * frame.c (make_terminal_frame): Remove redundant code and useless
3936 block.
3937
63136da6
AS
39382009-01-01 Andreas Schwab <schwab@suse.de>
3939
3940 * process.c (conv_sockaddr_to_lisp): Add workaround for
3941 getsockname bug on BSD.
3942
9ef69046
CY
39432009-01-01 Chong Yidong <cyd@stupidchicken.com>
3944
d6fafbe0
CY
3945 * xfns.c (x_create_tip_frame): Set border width of the X window.
3946
51d861de 3947 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3948
f9c34147
JR
39492009-01-01 Jason Rumney <jasonr@gnu.org>
3950
9acef61c 3951 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3952 Don't block input, as per earlier xterm.c changes.
3953
f5497e45
AR
39542008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3955
3956 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3957 (ns_appkit_version_int): New function.
3958 (x-server-version): Use ns_appkit_version_int and follow 21+
3959 convention of returning 3 integers.
3960
c19cab20
KH
39612008-12-30 Kenichi Handa <handa@m17n.org>
3962
3963 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3964 (CHAR_SURROGATE_PAIR_P): New macro.
3965
3966 * font.h (struct font_driver): New member get_variation_glyphs.
3967
9acef61c 3968 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3969 (Ffont_variation_glyphs): New function.
3970 (syms_of_font): Defsubr it.
3971
3972 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3973 ftfont_variation_glyphs.
3974 (setup_otf_gstring): New function.
3975 (ftfont_drive_otf): Use it.
3976 (ftfont_shape_by_flt): Handle variation selector.
3977 (ftfont_variation_glyphs): New function.
3978
28cd591f
MR
39792008-12-30 Martin Rudalics <rudalics@gmx.at>
3980
3981 * frame.c (Vemacs_iconified): Remove.
3982
7f714baf
JR
39832008-12-30 Jason Rumney <jasonr@gnu.org>
3984
3985 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3986 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3987
9d2d22ab
CY
39882008-12-30 Chong Yidong <cyd@stupidchicken.com>
3989
3990 * indent.c (Fvertical_motion): Don't advance iterator if we have
3991 reseated to the desired position.
3992
3993 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3994 checking for pos match.
3995
545312c2
KH
39962008-12-30 Kenichi Handa <handa@m17n.org>
3997
1ede3eb6
KH
3998 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3999 just get the low 8-bit of the code.
4000
545312c2
KH
4001 * font.c (font_intern_prop): Validate str as multibyte.
4002
bd7bbf29
DN
40032008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4004
31e0750e
DN
4005 * dispextern.h (struct face): Move lface and hash from the middle
4006 of bitfields.
4007
bd7bbf29
DN
4008 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4009
b5672e7c
DN
40102008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4011
4012 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4013 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4014 instead of intervals.h.
4015
d704470f
AS
40162008-12-26 Andreas Schwab <schwab@suse.de>
4017
4018 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4019 cons.
4020
54b33868
MR
40212008-12-26 Martin Rudalics <rudalics@gmx.at>
4022
4023 * textprop.c (Qminibuffer_prompt): New variable.
4024 (syms_of_textprop): Initialize it.
4025 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4026 in minibuffer-prompt face. (Bug#1662)
4027
40b615d6
JR
40282008-12-25 Jason Rumney <jasonr@gnu.org>
4029
4030 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4031
baae5c2d
JR
40322008-12-24 Jason Rumney <jasonr@gnu.org>
4033
4034 * ralloc.c (r_alloc_reset_variable): New function.
4035
4036 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4037 record of what points where. (Bug#716)
baae5c2d 4038
a9051c88
DN
40392008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4040
4041 * minibuf.c (read_minibuf): Follow the non-interactive case when
4042 running as a daemon, before detaching.
4043
8b146312
AS
40442008-12-22 Andreas Schwab <schwab@suse.de>
4045
4046 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4047 * gtkutil.c (free_widget_value): Use xfree instead of free.
4048
56f2de10
MR
40492008-12-22 Martin Rudalics <rudalics@gmx.at>
4050
4051 * frame.c (delete_frame): New function derived from
4052 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4053 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4054 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4055 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4056 * frame.h: Extern delete_frame.
4057 * window.c (window_loop):
4058 * terminal.c (delete_terminal):
4059 * xterm.c (x_connection_closed):
4060 * xfns.c (Fx_hide_tip):
9acef61c 4061 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4062
1fc200d6
JR
40632008-12-21 Jason Rumney <jasonr@gnu.org>
4064
4065 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4066 when character maps to .notdef character.
4067
5e252df2
SM
40682008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4069
4070 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4071
99b72cc4
JR
40722008-12-20 Jason Rumney <jasonr@gnu.org>
4073
4074 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4075 a graphical frame on Windows. (Bug#1325)
99b72cc4 4076
acc49a52
JD
40772008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4078
4079 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4080
6ea15123
CY
40812008-12-20 Chong Yidong <cyd@stupidchicken.com>
4082
4083 * minibuf.c (Fread_buffer): Doc fix.
4084
b2dab6c8
JR
40852008-12-20 Jason Rumney <jasonr@gnu.org>
4086
54ea0c87 4087 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4088 server name in UNC paths. (Bug#719)
54ea0c87 4089
b2dab6c8 4090 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4091 charbuf. (Bug#1035)
b2dab6c8 4092
6d1921be
DN
40932008-12-19 Daniel Engeler <engeler@gmail.com>
4094
4095 * sysdep.c (serial_configure): Fix typo.
4096
53934c98
DN
40972008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4098
4099 * sysdep.c: Include alloca.h.
f4f634e8
DN
4100 (system_process_attributes): Add implementation for Solaris.
4101
4102 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4103
06e111a6
DN
41042008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4105
4106 Reorganize implementation of Flist_system_processes and
4107 Fsystem_process_attributes. No functional changes.
4108 * process.c: Don't #include pwd.h, grp.h and limits.h.
4109 (Flist_system_processes): Just call list_system_processes.
4110 (Fsystem_process_attributes): Just call system_process_attributes.
4111 (procfs_list_system_processes, time_from_jiffies)
4112 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4113 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4114
4115 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4116 (list_system_processes): Rename from
4117 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4118 Provide a do nothing implementation.
4119 (system_process_attributes): Rename from
4120 procfs_list_system_processes.
4121 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4122 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4123
4124 * w32.c (list_system_processes): Rename from
4125 w32_list_system_processes.
4126 (system_process_attributes): Rename from
4127 w32_system_process_attributes.
4128
4129 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4130
4131 * process.h (w32_list_system_processes)
4132 (w32_system_process_attributes): Remove.
362654a6
JB
4133 (list_system_processes, system_process_attributes):
4134 New prototypes.
06e111a6 4135
6a705b23
KH
41362008-12-19 Kenichi Handa <handa@m17n.org>
4137
4138 * xfont.c (xfont_decode_coding_xlfd): New function.
4139 (xfont_encode_coding_xlfd): New function.
4140 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4141 (xfont_list): Decode and encode XLFD by iso-8859-1.
4142 (xfont_match): Likewise.
4143 (xfont_list_family): Likewise.
4144 (xfont_open): Likewise.
4145
d66c0241 4146 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4147 names are utf-8.
4148
d66c0241 4149 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4150 names are utf-8.
4151
5a130941
JD
41522008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4153
4154 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4155 changed.
bfd20325
JD
4156 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4157 clicked on a detached tool bar button.
5a130941 4158
fd95644b
DN
41592008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4160
4161 * emacs.c (main): Print and error and exit when no data is read
4162 from the pipe.
4163
e6eee6ae
JR
41642008-12-17 Jason Rumney <jasonr@gnu.org>
4165
4166 * w32font.c (w32font_has_char): Always return -1.
4167
a35dd56b
KH
41682008-12-16 Kenichi Handa <handa@m17n.org>
4169
4170 * font.c (font_open_entity): Fix previous change.
4171
0e3635c2
DN
41722008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4173
4174 * process.c: Include <limits.h>.
4175
d4835507 41762008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4177
4178 * font.c (font_update_drivers): Fix mistake in reconstructing the
4179 driver list.
4180
41812008-12-16 Chong Yidong <cyd@stupidchicken.com>
4182
4183 * font.c (font_clear_cache): Fix format of font cache data.
4184
e2cbc401
CY
41852008-12-15 Chong Yidong <cyd@stupidchicken.com>
4186
4187 * xftfont.c (xftfont_open): Free Xft font pattern if
4188 XftFontOpenPattern fails.
4189
4190 * xterm.c (x_free_frame_resources): Remove extraneous call to
4191 free_frame_faces.
4192
b131d535
CY
41932008-12-13 Chong Yidong <cyd@stupidchicken.com>
4194
4195 * xterm.c (x_delete_display): Move xim_close_dpy call to
4196 x_delete_terminal.
4197 (x_delete_terminal): Call xim_close_dpy.
4198
e6df5336
JR
41992008-12-13 Jason Rumney <jasonr@gnu.org>
4200
4201 * w32font.c (intern_font_name): New function.
4202 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4203 (w32font_open_internal, Fx_select_font): Decode font name.
4204 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4205
4206 * w32font.h (intern_font_name): Declare new function.
4207
4208 * w32uniscribe.c (add_opentype_font_name_to_list):
4209 Use intern_font_name.
4210
20d68145
CY
42112008-12-13 Chong Yidong <cyd@stupidchicken.com>
4212
9f2554de
CY
4213 * frame.c (Fdelete_frame): Call free_font_driver_list.
4214
3d9bec9a
CY
4215 * font.c (free_font_driver_list): Implement missing function.
4216
20d68145
CY
4217 * w32term.c (w32_term_init): Don't initialize the image cache
4218 here; it will be done in init_frame_faces.
4219
4220 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4221 (struct x_display_info): Remove unused member null_pixel. New
4222 member xim_callback_data.
4223
4224 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4225 (xim_initialize): Save pointer to callback function data.
4226 (xim_close_dpy): Free callback function data. Call XCloseIM,
4227 reverting 2008-11-04 change by David Smith.
4228 (x_term_init): Don't initialize the image cache here; it will be
4229 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4230 (x_delete_display): Free x_dnd_atoms member.
4231
96f9306b
KH
42322008-12-13 Kenichi Handa <handa@m17n.org>
4233
6dec9044
JB
4234 * font.c (font_rescale_ratio): Moved from xfaces.c.
4235 Argument type changed. Handle a font-spec too.
96f9306b 4236 (font_score): Check Vface_font_rescale_alist.
6dec9044 4237 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4238
4239 * xfaces.c (font_rescale_ratio): Moved to font.c.
4240
8d5b4964
CY
42412008-12-13 Chong Yidong <cyd@stupidchicken.com>
4242
4243 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4244
e6df5336
JR
42452008-12-12 Jason Rumney <jasonr@gnu.org>
4246
4247 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4248 Vwindow_system_version to the real w32 major version.
4249
97c6058a
DN
42502008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4251
4252 * term.c (init_tty): Move setting the terminal name before the
4253 potential user: maybe_fatal.
4254
ec4e88d7
CY
42552008-12-11 Chong Yidong <cyd@stupidchicken.com>
4256
d4835507
JB
4257 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4258 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4259
b4233ec9
JR
42602008-12-11 Jason Rumney <jasonr@gnu.org>
4261
8ec71e23 4262 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4263 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4264
b4233ec9 4265 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4266 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4267
011a0143
JB
42682008-12-11 Juanma Barranquero <lekktu@gmail.com>
4269
4270 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4271
3c309f34
JB
42722008-12-11 Juanma Barranquero <lekktu@gmail.com>
4273
4274 * process.c (Fsystem_process_attributes, syms_of_process):
4275 Fix typo in name of Ssystem_process_attributes.
4276 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4277
fedc6ab5
JB
42782008-12-11 Juanma Barranquero <lekktu@gmail.com>
4279
4280 * syntax.c (Fmodify_syntax_entry): Doc fix.
4281
ba3de0e8
JB
42822008-12-10 Juanma Barranquero <lekktu@gmail.com>
4283
4284 * font.c (Ffont_spec): Move usage to end of docstring.
4285
174f1c74
JR
42862008-12-10 Jason Rumney <jasonr@gnu.org>
4287
4288 * w32font.c (Qcham): New symbol.
4289 (font_supported_scripts): Add cham, and comments for other new
4290 scripts in bitfield from OpenType spec.
9d32f818
JR
4291 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4292 contain characters beyond the bmp.
174f1c74 4293
7b649478
KH
42942008-12-10 Kenichi Handa <handa@m17n.org>
4295
4296 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4297 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4298 Qunicode_sip.
4299
2133e2d1
JB
43002008-12-10 Juanma Barranquero <lekktu@gmail.com>
4301
4302 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4303 (Fcoding_system_put): Use QCdefault_char.
4304 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4305
9af886ee
CY
43062008-12-09 Chong Yidong <cyd@stupidchicken.com>
4307
74d819eb
CY
4308 * xftfont.c (syms_of_xftfont): Fix typo.
4309
4ccfa1c0 4310 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4311
7c19d3ae
DN
43122008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4313
4314 * emacs.c (main): Close daemon_pipe on exec.
4315
567826bb
CY
43162008-12-08 Chong Yidong <cyd@stupidchicken.com>
4317
4318 * termchar.h (struct tty): New members termcap_term_buffer and
4319 termcap_strings_buffer.
4320
4321 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4322 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4323 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4324 All callers changed.
4325 (init_tty): Store termcap data and string buffers in new struct
4326 tty members termcap_term_buffer and termcap_strings_buffer.
4327 (delete_tty): Free them.
4ccfa1c0 4328 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4329
aa96c42b
SZ
43302008-12-07 Seiji Zenitani <zenitani@mac.com>
4331
4332 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4333 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4334
b7e1d896
CY
43352008-12-06 Chong Yidong <cyd@stupidchicken.com>
4336
4337 * coding.c (make_conversion_work_buffer): Disable buffer
4338 modification hooks in the work buffer.
4339
b5ec91a5
EZ
43402008-12-05 Eli Zaretskii <eliz@gnu.org>
4341
4342 * process.c (procfs_system_process_attributes): If `nread' has a
4343 negative value, assign zero to it.
4344
a5d2a52b
CY
43452008-12-05 Chong Yidong <cyd@stupidchicken.com>
4346
68c5540b 4347 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4348
7bf1bb21
KH
43492008-12-05 Kenichi Handa <handa@m17n.org>
4350
4351 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4352 second character is a combining character.
4353
2fdc7d00
EZ
43542008-12-05 Eli Zaretskii <eliz@gnu.org>
4355
4356 * process.c (procfs_system_process_attributes): Don't use cmd,
4357 cmdsize, and q without initializing them first.
4358
bf6bfba8
JR
43592008-12-04 Jason Rumney <jasonr@gnu.org>
4360
4361 * w32font.c (w32font_draw): Initialize orig_clip before getting
4362 it, and delete it when finished.
4363
a3b1a468
DN
43642008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4365
4366 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4367 case when running as a daemon before detaching.
4368
8b8be8eb
JB
43692008-12-03 Juanma Barranquero <lekktu@gmail.com>
4370
805f2638 4371 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4372
b1bde622
KH
43732008-12-03 Kenichi Handa <handa@m17n.org>
4374
e500c47d
KH
4375 * font.c (font_at): Set `multibyte' at first.
4376
ca516334
KH
4377 * coding.c (decode_coding_charset): Check type of an element of
4378 vector VALIDS.
7bf1bb21 4379 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4380
4ccfa1c0 4381 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4382 (font_for_char): Likewise.
4383
1e5ecd37
CY
43842008-12-03 Chong Yidong <cyd@stupidchicken.com>
4385
d5b01609 4386 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4387 (font_update_lface): Handle fonts with corrupted size specs,
4388 i.e. non-int and non-float.
d5b01609 4389
11e3a6e4 4390 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4391 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4392 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4393
ab06788b
CY
4394 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4395
1e5ecd37 4396 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4397 underline_minimum_offset for underline position.
1e5ecd37 4398
63c125ab
DN
43992008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4400
4401 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4402
4403 * character.c (c_string_width): Specify the type for LEN.
4404
3a8406e1
KH
44052008-12-03 Kenichi Handa <handa@m17n.org>
4406
4ccfa1c0 4407 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4408 (decode_coding_utf_8): Likewise.
4ccfa1c0 4409 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4410 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4411
651df7d9
CY
44122008-12-02 Chong Yidong <cyd@stupidchicken.com>
4413
4414 * keyboard.c (make_lispy_position): Only use PT if the selected
4415 window is current.
4416
1f625c6c
AS
44172008-12-02 Andreas Schwab <schwab@suse.de>
4418
f7741ce9
AS
4419 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4420
1f625c6c
AS
4421 * doprnt.c (doprnt1): Fix size of charbuf.
4422
92bc2678
CY
44232008-12-02 Chong Yidong <cyd@stupidchicken.com>
4424
4425 * keyboard.c (timer_check): Revert last change.
4426
93b9e8cc
JB
44272008-12-02 Juanma Barranquero <lekktu@gmail.com>
4428
4429 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4430
fd7a37d5
JB
44312008-12-01 Juanma Barranquero <lekktu@gmail.com>
4432
4433 * makefile.w32-in: Update dependencies.
4434 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4435
c115043b
AS
44362008-12-01 Andreas Schwab <schwab@suse.de>
4437
4438 * font.c (register_font_driver): Use xmalloc.
4439 (font_put_frame_data): Likewise.
4440
f5668d2a
CY
44412008-12-01 Chong Yidong <cyd@stupidchicken.com>
4442
860d96be
CY
4443 * xfaces.c (realize_x_face): Make abort condition clearer.
4444
f5668d2a
CY
4445 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4446
379c17e7
CY
44472008-11-30 Chong Yidong <cyd@stupidchicken.com>
4448
4449 * keyboard.c (timer_check): After a timer runs, ensure that the
4450 selected window's buffer is current.
4451
35f36d65
JB
44522008-11-30 Juanma Barranquero <lekktu@gmail.com>
4453
f952c61c
JB
4454 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4455 It was accidentally restored by the Unicode merge.
4456
35f36d65
JB
4457 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4458
b23077df
JB
44592008-11-29 Juanma Barranquero <lekktu@gmail.com>
4460
4461 * w32proc.c: Include "coding.h".
4462 (Fw32_short_file_name): Encode filename passed to Windows API.
4463 (Fw32_long_file_name): Encode filename passed to Windows API and
4464 decode back the result. (Bug#1433)
4465
b8ebe9dd
KH
44662008-11-29 Kenichi Handa <handa@m17n.org>
4467
8cc53f96
KH
4468 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4469 not before accessing it.
4470
b8ebe9dd
KH
4471 * charset.c (Fdefine_charset_internal): After calculating
4472 min_char, max_char, and fastmap, copy the charset structure again.
4473 (encode_char): Fix the previous change.
4474
59bc82c0
SZ
44752008-11-28 Seiji Zenitani <zenitani@mac.com>
4476
4477 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4478
4479 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4480
4481 * nsterm.m (x_set_frame_alpha): New function.
4482
32247e3d
EZ
44832008-11-27 Eli Zaretskii <eliz@gnu.org>
4484
4485 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4486
b003e5ff
JB
44872008-11-27 Juanma Barranquero <lekktu@gmail.com>
4488
4489 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4490 pointer to check_face_name.
4491
708550f5
KH
44922008-11-27 Kenichi Handa <handa@m17n.org>
4493
4494 * category.h (SET_CATEGORY_SET): Call set_category_set.
4495 (set_category_set): Extern it.
4496
4497 * category.c (hash_get_category_set): New function.
4498 (Fmodify_category_entry): Adjusted for the change of
4499 char_table_ref_and_range. Call hash_get_category_set to get a
4500 category set to store in the table.
4501
4502 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4503 Funify_charset.
4504
2ae37cf0 4505 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4506 (DECODE_CHAR): Check if the decoder vector is ready.
4507 (ENCODE_CHAR): Check if the encoder char-table is ready.
4508 (maybe_unify_char): Extern it.
4509
4510 * charset.c (Vchar_unified_charset_table): Delete it.
4511 (inhibit_load_charset_map): New variable.
4512 (temp_charset_work): New variable.
4513 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4514 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4515 New macros.
4516 (load_charset_map): Meaning of control_flag changed. If
4517 inhibit_load_charset_map is nonzero, setup a table in
4518 temp_charset_work.
4519 (load_charset): New argument control_flag.
4520 (map_charset_for_dump): New function.
4521 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4522 map_charset_for_dump.
4523 (Fdefine_charset_internal): If the charset method is MAP, load
4524 mapping tables by calling load_charset.
4525 (Funify_charset): Don't load a mapping table but directly set
4526 Vchar_unify_table.
4527 (maybe_unify_char): New function.
4528 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4529 Handle the case of inhibit_load_charset_map being nonzero.
4530 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4531 Handle the case of inhibit_load_charset_map being nonzero.
4532 (Fclear_charset_maps): Just free temp_charset_work.
4533 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4534 variable.
4535
4536 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4537 change of char_table_ref_and_range.
4538 (char_table_ref_and_range): Change the meaning of argument FROM
4539 and TO. Now the caller must provide initial values for *FROM
4540 and *TO.
4541
4542 * fontset.c (fontset_add): Adjusted for the change of
4543 char_table_ref_and_range.
4544 (fontset_get_font_group): Likewise.
4545 (Ffontset_info): Likewise.
4546
4547 * keymap.c (describe_vector): Adjusted for the change of
4548 char_table_ref_and_range. For char-table, put boundary between
4549 non-ASCII and 8-bit characters.
4550
4551 * print.c (print_object): For bool-vector, delete unnecessary
4552 check of ASCII_BYTE_P.
4553
9196133b
JR
45542008-11-26 Jason Rumney <jasonr@gnu.org>
4555
4556 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4557 leading in font height. (Bug#879)
9196133b 4558
9f688acf
GM
45592008-11-26 Glenn Morris <rgm@gnu.org>
4560
4561 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4562 redefinition with ifdef. (Bug#1383)
4563
90d19aff
AR
45642008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4565
4566 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4567
4ccfa1c0 45682008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4569
4570 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4571 New EmacsView methods.
4572 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4573 Fixes bug #1048,1357,1414.
4574
45752008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4576
4577 Fix bug #1362.
4578 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4579 is not an indexed color.
4580 * nsterm.m (free_indexed_color): Add argument checking.
4581 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4582
e7d5ecb3
CY
45832008-11-24 Chong Yidong <cyd@stupidchicken.com>
4584
4585 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4586 Document confirm-after-completion value for
4587 minibuffer-completion-confirm.
4588
c285743c
JR
45892008-11-24 Jason Rumney <jasonr@gnu.org>
4590
4591 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4592 warning.
4593
b0857706
JR
45942008-11-23 Jason Rumney <jasonr@gnu.org>
4595
4596 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4597 restored before returning.
4598
4599 * w32font.c (check_face_name): New function.
4600 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4601 fonts. (Bug#642)
b0857706 4602
ee50ff07
MR
46032008-11-22 Martin Rudalics <rudalics@gmx.at>
4604
4605 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4606 confirm-nonexistent-file-or-buffer in doc-string.
4607
b8ff72fa
SM
46082008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4609
4610 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4611 Fix copy/paste typo. Add checks.
4612
cee53ed4
KH
46132008-11-21 Kenichi Handa <handa@m17n.org>
4614
4615 * coding.c (detect_coding_iso_2022): Reject invalid composition
4616 sequence.
4617 (DECODE_COMPOSITION_START): If the current source is the last
4618 block, and the current composition doesn't end, regard this
4619 sequence as invalid.
4620 (decode_coding_iso_2022): Handle invalid composition sequence.
4621
f6ef1e65
MR
46222008-11-20 Martin Rudalics <rudalics@gmx.at>
4623
4624 * window.c (coordinates_in_window): Don't return
4625 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4626 line when the window is not the rightmost one. (Bug#1372)
4627
e08b1705
MR
46282008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4629
4630 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4631
ad98e89f
EZ
46322008-11-15 Eli Zaretskii <eliz@gnu.org>
4633
4634 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4635 and bright_bg if noninteractive is non-zero.
4636
fb098a4b
CY
46372008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4638
4639 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4640 x_draw_glyph_string_background.
4641
4642 * w32term.c (x_draw_glyph_string): Likewise.
4643
ce952b6e
CY
46442008-11-15 Chong Yidong <cyd@stupidchicken.com>
4645
4646 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4647 the next glyph string once past the overhang width.
4648
4649 * nsterm.m (ns_draw_glyph_string): Likewise.
4650
4651 * w32term.c (x_draw_glyph_string): Likewise.
4652
26ea7079
CY
46532008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4654
4655 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4656 double file close.
4657
1c33c906
MR
46582008-11-14 Martin Rudalics <rudalics@gmx.at>
4659
4660 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4661 dedicated status of window before attempting to display another
4662 buffer in it.
4663
8fc29035
JB
46642008-11-14 Juanma Barranquero <lekktu@gmail.com>
4665
4666 * msdos.c (Fmsdos_long_file_names):
4667 (syms_of_msdos) <dos-unsupported-char-glyph>:
4668 * dosfns.c (Fint86): Fix typos in docstrings.
4669
55fb4286
EZ
46702008-11-14 Eli Zaretskii <eliz@gnu.org>
4671
4672 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4673
3fda0315
KY
46742008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4675
4676 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4677
7e849c17
CY
46782008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4679
4680 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4681
4682 * frame.h: Negative alpha means "don't touch".
4683
4684 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4685
4686 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4687
b9fd67bd
DN
46882008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4689
4690 * hftctl.c:
4691 * chpdef.h:
4692 * acldef.h: Remove files used only for systems no longer supported.
4693
4694 * Makefile.in: Fix .o alphabetical ordering.
4695 (hftctl.o): Remove dependency, file removed.
4696 (keymap.o, print.o): Depend on charset.h.
4697
d5998e03
KH
46982008-11-10 Kenichi Handa <handa@m17n.org>
4699
2ae37cf0 4700 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4701
be70e183
CY
47022008-11-08 Chong Yidong <cyd@stupidchicken.com>
4703
4704 * dired.c (file_name_completion): If completion_ignore_case is
4705 enabled, ignore case when checking completion-regexp-list.
4706
7cf94eac
EZ
47072008-11-08 Eli Zaretskii <eliz@gnu.org>
4708
4709 * vm-limit.c (get_lim_data): Fix last change.
4710
ee107a89
KH
47112008-11-08 Kenichi Handa <handa@m17n.org>
4712
4713 * character.c (Fget_byte): New function.
4714 (syms_of_character): Defsubr Fget_byte.
4715
5fd15622
CY
47162008-11-07 Chong Yidong <cyd@stupidchicken.com>
4717
4718 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4719 cursor position is valid after scrolling.
4720
13d62fad
JB
47212008-11-06 Juanma Barranquero <lekktu@gmail.com>
4722
4723 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4724
a1dd2936
GM
47252008-11-06 Glenn Morris <rgm@gnu.org>
4726
4727 * xterm.c (handle_one_xevent): Don't let popup menus cause
4728 mouse-autoselect-window related window switching. (Bug#1261)
4729
860cd236
CY
47302008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4731
4732 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4733
653a3150
AS
47342008-11-04 Andreas Schwab <schwab@suse.de>
4735
4736 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4737
870f5cac
CY
47382008-11-03 Chong Yidong <cyd@stupidchicken.com>
4739
4740 * xfns.c (Fx_wm_set_size_hint): New function.
4741
1e02f3cb
MR
47422008-11-03 Martin Rudalics <rudalics@gmx.at>
4743
4744 * textprop.c (Fprevious_single_char_property_change): Return 0
4745 when there's no change in a string. (Bug#1301)
4746
e630dfc6
MR
47472008-11-02 Martin Rudalics <rudalics@gmx.at>
4748
4749 * frame.c (do_switch_frame): New argument NORECORD passed to
4750 Fselect_window.
4751 (Fselect_frame): New argument NORECORD passed to
4752 do_switch_frame.
4753 (Fset_frame_selected_window): New argument NORECORD passed to
4754 Fselect_frame.
4755 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4756 in call of do_switch_frame.
4757 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4758 Handle NORECORD argument in call of Fselect_frame.
4759 * lisp.h (do_switch_frame, Fselect_frame)
4760 (Fset_frame_selected_window): Adjust declarations.
4761 * window.c (select_frame_norecord): New function.
4762 (run_window_configuration_change_hook): Use it and call
4763 Fselect_frame with NORECORD set.
4764 (Fselect_window): Pass NORECORD to Fselect_frame.
4765 (Fset_window_configuration): Handle NORECORD argument in call of
4766 do_switch_frame.
4767 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4768 Fset_frame_selected_window.
4769 * keyboard.c (command_loop_1): Handle NORECORD in call of
4770 Fselect_frame (currently ifdefd).
4771
9020b223
GM
47722008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4773
4774 * emacs.c (USAGE2): Untabify.
4775
793ffee8
SM
47762008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4777
4778 * composite.c (fill_gstring_header): Fix copy/paste typo.
4779
ab6d1131
MR
47802008-10-31 Martin Rudalics <rudalics@gmx.at>
4781
4782 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4783 (Fother_window): Rename argument and rewrite doc-string.
4784 (select_window_norecord): Fix return value. (Bug#1276)
4785
601a9cf1
JB
47862008-10-30 Juanma Barranquero <lekktu@gmail.com>
4787
4788 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4789 new frames overriding foreground for tooltips. Based on similar patch
4790 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4791
813b0652
CY
47922008-10-29 Chong Yidong <cyd@stupidchicken.com>
4793
4794 * emacs.c (Fdaemon_initialized): Initialize nfd.
4795
4414f58f
MR
47962008-10-29 Martin Rudalics <rudalics@gmx.at>
4797
4798 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4799 (Fwindow_text_height): Clarify doc-strings.
4800 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4801 doc-string of window-scroll-functions.
4802
ecdcaa09
RS
48032008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4804
4805 * category.c (syms_of_category): Fix typo in docstring.
4806
23fe745a
JB
48072008-10-28 Juanma Barranquero <lekktu@gmail.com>
4808
4809 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4810 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4811 Fix typos in docstrings.
4812
ff808935
DN
48132008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4814
4815 * emacs.c (daemon_pipe): Make non-static.
4816 (IS_DAEMON): Move definition ...
4817 * lisp.h (IS_DAEMON): ... here.
4818 (daemon_pipe): Declare.
4819 (is_daemon): Remove.
4820 * dispnew.c (init_display): Use IS_DAEMON.
4821
fc012771
SM
48222008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4823
4824 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4825 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4826
4827 * emacs.c (is_daemon): Remove.
4828 (main): Don't set is_daemon.
4829 (IS_DAEMON): New macro.
4830 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4831 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4832 parent exits.
4833 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4834
d8bdbe6f
CY
48352008-10-27 Chong Yidong <cyd@stupidchicken.com>
4836
d1a072bf
CY
4837 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4838 over-sized glyph, draw it with the default glyph width.
4839
e2e325aa
CY
4840 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4841 glyph, draw it with the default glyph width.
4842
4843 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4844 glyph, draw it with the default glyph width.
4845
d8bdbe6f
CY
4846 * xdisp.c (try_scrolling): When computing the distance from the
4847 scroll margin to PT, try moving some distance past the window
4848 bottom before giving up.
4849
7bfac547
MR
48502008-10-27 Martin Rudalics <rudalics@gmx.at>
4851
4852 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4853 (Fset_window_buffer): Explain in doc-string that a window can be
4854 "strongly" dedicated to its buffer.
4855
4ff029f6
DN
48562008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4857
4858 * emacs.c (daemon_name): New variable.
4859 (main): Deal with --daemon=SERVER_NAME.
4860 (Fdaemonp): Return a name if one was passed to --daemon.
4861
5790ef40
DN
48622008-10-26 Romain Francoise <romain@orebokech.com>
4863
f9bd0df9 4864 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4865 (main): Create a pipe before forking, make the parent exit only after
4866 the child has closed its end of the pipe. Move closing the
4867 descriptors ...
4868 (Fdaemon_initialized): ... here. New function.
4869
f5385255
SM
48702008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4871
4d632321
SM
4872 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4873 the previous unoptimized table.
4874
f5385255
SM
4875 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4876 the distinction between non-nil and non-t value of `dedicated'.
4877
6c56a0f3
CY
48782008-10-25 Chong Yidong <cyd@stupidchicken.com>
4879
4880 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4881 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4882
fec89261
MR
48832008-10-25 Martin Rudalics <rudalics@gmx.at>
4884
4885 * window.c (Fget_buffer_window, Fdelete_windows_on)
4886 (Freplace_buffer_in_windows): Make buffer argument optional and
4887 rename to buffer_or_name.
4888
34fcddd0
CY
48892008-10-24 Chong Yidong <cyd@stupidchicken.com>
4890
f5385255
SM
4891 * xdisp.c (handle_single_display_spec, handle_display_prop):
4892 Undo 2005-05-16 change.
34fcddd0
CY
4893 (handle_stop): Pop iterator if it's loaded with an empty string.
4894 (get_overlay_strings_1): Don't save iterator if it's loaded with
4895 an empty string (bug#1201).
4896
064766f2
KH
48972008-10-24 Kenichi Handa <handa@m17n.org>
4898
4899 * ftfont.c (ftfont_otf_features): Fix previous change.
4900 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4901 calling ftfont_otf_features.
4902
f9bd0df9 49032008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4904
4905 * font.c (font_match_p): Fix for the case that a vector of
4906 characters is in script-representative-chars.
4907
1dae9197
MA
49082008-10-24 Michael Albinus <michael.albinus@gmx.de>
4909
4910 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4911 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4912 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4913 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4914 macro. (Bug#1186).
4915
f9bd0df9 49162008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4917
4918 * s/sol2-10.h: New file.
4919
878a4584
JB
49202008-10-23 Juanma Barranquero <lekktu@gmail.com>
4921
4922 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4923 poor beast has survived 9+ years and the jump from xterm.c!).
4924
cd265ca6
MR
49252008-10-23 Martin Rudalics <rudalics@gmx.at>
4926
4927 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4928 Reword doc-string.
f5385255 4929 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4930
472a4dc9
JB
49312008-10-23 Juanma Barranquero <lekktu@gmail.com>
4932
4933 * character.c (syms_of_character) <script-representative-chars>:
4934 <unicode-category-table>: Doc fixes.
4935
159bd5a2
NF
49362008-10-23 Noah Friedman <friedman@splode.com>
4937
4938 * coding.c (make_conversion_work_buffer): Check that
4939 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4940 Fget_buffer_create.
4941
49f9c344
KH
49422008-10-23 Kenichi Handa <handa@m17n.org>
4943
4944 * font.c (font_add_log): Check the values of extra properties.
4945
12bb3111
MR
49462008-10-22 Martin Rudalics <rudalics@gmx.at>
4947
4948 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4949 Reword doc-string.
4950 (Fset_window_parameter): Use NILP.
4951 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4952 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4953
bbeb4e99
JB
49542008-10-22 Juanma Barranquero <lekktu@gmail.com>
4955
4956 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4957
49582008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4959
4960 * nsfns.m (ns_appkit_version): New function.
4961 (x-server-version): Use it.
4962 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4963 (x-server-vendor): Don't check_ns().
4964
4965 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4966
a9b555d3
JB
49672008-10-22 Juanma Barranquero <lekktu@gmail.com>
4968
4969 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4970 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4971
4626499f
KH
49722008-10-22 Kenichi Handa <handa@m17n.org>
4973
e3681952
KH
4974 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4975 scripts.
4976
4626499f
KH
4977 * category.c (word_boundary_p): Check scripts instead of charset.
4978 Handle nil value in word-separating-categories and
4979 word-combining-categories.
4980 (syms_of_category): Fix docstrings of word-separating-categories
4981 and word-combining-categories.
4982
1560f91a
EZ
49832008-10-21 Eli Zaretskii <eliz@gnu.org>
4984
4985 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4986 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4987
f4668441
MR
49882008-10-21 Martin Rudalics <rudalics@gmx.at>
4989
4990 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4991 Rename arg "buffer" to "buffer_or_name".
4992 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4993 it optional.
4994 (no_switch_window): Remove since the return value is not used.
a9b555d3 4995 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4996 Consider window as dedicated when Fwindow_dedicated_p returns a
4997 non-nil value.
4998 * lisp.h: Remove prototype for no_switch_window.
4999
fd75ddb2
JD
50002008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5001
5002 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5003 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5004
07295713
KH
50052008-10-21 Kenichi Handa <handa@m17n.org>
5006
5007 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5008 check Vlatin_extra_code_table.
5009
712adc82
EZ
50102008-10-20 Eli Zaretskii <eliz@gnu.org>
5011
5012 * fileio.c (Fset_file_modes): Doc fix.
5013
f549eb0b
MA
50142008-10-19 Michael Albinus <michael.albinus@gmx.de>
5015
5016 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5017 in arrays.
5018
aac0c6e3
MR
50192008-10-19 Martin Rudalics <rudalics@gmx.at>
5020
5021 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5022 Mention kill-buffer in doc-string.
5023 (Fset_window_buffer): Reinsert tem check removed in last commit.
5024 (Fenlarge_window, Fshrink_window): Have argument names and
5025 doc-string follow Elisp manual more closely.
5026
50272008-10-18 Eli Zaretskii <eliz@gnu.org>
5028
5029 * fileio.c (Fset_file_modes): Doc fix.
5030
50312008-10-18 Martin Rudalics <rudalics@gmx.at>
5032
5033 * window.c (Fwindow_width, Fset_window_start)
5034 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5035 (Fdelete_windows_on, Freplace_buffer_in_windows):
5036 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5037 (Fwindow_dedicated_p): Make window argument optional.
5038 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5039 (Fset_window_buffer): Respect any non-nil dedicated value for
5040 window. Rename "buffer" argument to "buffer_or_name".
5041
50422008-10-18 Ulrich Mueller <ulm@gentoo.org>
5043
5044 * m/sh3.h: New file, machine description for SuperH.
5045
50462008-10-17 Martin Rudalics <rudalics@gmx.at>
5047
5048 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5049
50502008-10-17 Kenichi Handa <handa@m17n.org>
5051
5052 * ftfont.c (ftfont_otf_features): Fix indexing
5053 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5054
50552008-10-16 Magnus Henoch <mange@freemail.hu>
5056
5057 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5058 (Fdbus_call_method_asynchronously): Ditto.
5059 This change makes C-h f display the argument list.
5060
50612008-10-16 Chong Yidong <cyd@stupidchicken.com>
5062
5063 * fileio.c (Fexpand_file_name): Doc fix.
5064
5065 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5066 of :foreground and :background equivalent to unspecified (20.x
5067 compatibility).
5068
50692008-10-15 Eli Zaretskii <eliz@gnu.org>
5070
5071 * buffer.c (syms_of_buffer): Doc fix.
5072
50732008-10-14 Kenichi Handa <handa@m17n.org>
5074
5075 * font.c (font_clear_prop): When clearing font width, clear the
5076 average width field too.
5077
50782008-10-12 Andreas Schwab <schwab@suse.de>
5079
5080 * ftfont.c (ftfont_shape_by_flt): Make static.
5081 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5082
5083 * font.c: Don't include <m17n-flt.h>.
5084
50852008-10-10 Eli Zaretskii <eliz@gnu.org>
5086
5087 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5088
50892008-10-09 Eli Zaretskii <eliz@gnu.org>
5090
5091 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5092 away code.
5093
50942008-10-09 Chong Yidong <cyd@stupidchicken.com>
5095
5096 * dispnew.c (update_text_area): Avoid looping due to large glyph
5097 overhangs (bug#1070).
5098
50992008-10-09 Kenichi Handa <handa@m17n.org>
5100
5101 * fontset.c (face_for_char): If face->fontset is negative, just
5102 return ascii_face.
5103
f5385255
SM
5104 * font.c (font_delete_unmatched): Fix previous change.
5105 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5106
51072008-10-09 Martin Rudalics <rudalics@gmx.at>
5108
5109 * frame.c (Fraise_frame): On text-only terminals select frame in
5110 order to make it visible. (Bug#1061)
5111
51122008-10-08 Chong Yidong <cyd@stupidchicken.com>
5113
5114 * fontset.c (fontset_find_font): Check frame validity.
5115
51162008-10-07 Chong Yidong <cyd@stupidchicken.com>
5117
a9b555d3 5118 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5119 (xg_display_close): Allow Emacs to close all displays (bug#985).
5120
51212008-10-06 Andreas Schwab <schwab@suse.de>
5122
f5385255 5123 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5124
51252008-10-06 Chong Yidong <cyd@stupidchicken.com>
5126
f5385255 5127 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5128
a9b555d3 5129 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5130
5131 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5132 during initialization.
5133
51342008-10-04 Eli Zaretskii <eliz@gnu.org>
5135
5136 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5137 whole thing on MSDOS frames as well as on a TTY.
5138
5139 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5140 well as for TTY.
5141 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5142 well as on a TTY.
5143
5144 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5145 as well as for TTY.
5146
5147 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5148
5149 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5150 MSDOS frames as well.
5151
51522008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5153
5154 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5155 correct arguments.
b71ac3dd 5156 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5157
51582008-10-03 Glenn Morris <rgm@gnu.org>
5159
5160 * emacs.c (USAGE1): Add --daemon.
5161
51622008-10-02 Eli Zaretskii <eliz@gnu.org>
5163
5164 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5165 100, so it's in percents as advertised.
5166
51672008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5168
5169 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5170 (ns_output.current_cursor, ns_output.desired_cursor)
5171 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5172 (FRAME_NEW_CURSOR_COLOR): Remove.
5173
5174 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5175 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5176 enumeration (HOLLOW_BOX_CURSOR, etc.).
5177
5178 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5179 (draw_window_cursor): Simplify code.
f5385255
SM
5180 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5181 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5182 updates manually.
a9b555d3
JB
5183 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5184 Use core Emacs cursor types.
aac0c6e3 5185
b8ff72fa 5186 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5187
51882008-10-02 Martin Rudalics <rudalics@gmx.at>
5189
5190 * process.c (Faccept_process_output): Fix doc-string.
5191
51922008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5193
5194 * gmalloc.c (__sbrk): Also define for uClibc.
5195
5196 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5197 for uClibc.
5198
51992008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5200
5201 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5202 styles.
5203 (nsfont_open): Reenable the cache.
5204
52052008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5206
5207 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5208 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5209
52102008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5211
5212 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5213 a suspended terminal.
5214
52152008-09-30 Michael Albinus <michael.albinus@gmx.de>
5216
5217 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5218
52192008-09-30 Eli Zaretskii <eliz@gnu.org>
5220
5221 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5222
52232008-09-30 Chong Yidong <cyd@stupidchicken.com>
5224
5225 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5226 in a continued line coincides with a line beginning.
5227
52282008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5229
5230 * nsfont.m (nsfont_trait_distance): Fix bug.
5231 (nsfont_list): Return a list rather than a vector (syncs with Handa
5232 changes of 2008-05-14).
5233 (nsfont_open): Improve logging.
5234
52352008-09-29 Andreas Schwab <schwab@suse.de>
5236
5237 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5238
52392008-09-28 Martin Rudalics <rudalics@gmx.at>
5240
5241 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5242 name as char-resolve-modifiers.
5243 Reported by: Markus Triska <markus.triska@gmx.at>
5244
52452008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5246
5247 * dispnew.c (init_display): Return earlier when running as a daemon.
5248
52492008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5250
5251 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5252
52532008-09-27 Eli Zaretskii <eliz@gnu.org>
5254
5255 * composite.c (Fcomposition_get_gstring)
5256 (Fcompose_region_internal, Fcompose_string_internal)
5257 (Ffind_composition_internal): Doc fix.
5258 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5259 (syms_of_composite) <auto-composition-function>: Doc fix.
5260 (syms_of_composite) <composition-function-table>: Doc fix.
5261
52622008-09-25 Chong Yidong <cyd@stupidchicken.com>
5263
5264 * search.c (wordify): New argument for lax word-ends.
5265 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5266
52672008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5268
5269 * lisp.h (is_daemon): Declare.
5270 * dispnew.c (init_display): Do not try to initialize the terminal
5271 when running as a daemon.
5272
52732008-09-22 Chong Yidong <cyd@stupidchicken.com>
5274
5275 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5276 x_display_pixel_height.
5277
52782008-09-22 Martin Rudalics <rudalics@gmx.at>
5279
5280 * undo.c (record_point): Don't call Fundo_boundary for first
5281 change. (Bug#731)
5282
52832008-09-22 Juanma Barranquero <lekktu@gmail.com>
5284
5285 * emacs.c (Fdaemonp): Doc fix.
5286
52872008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5288
5289 * emacs.c (main): Place #ifdef in the proper place.
5290
52912008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5292
5293 * emacs.c (standard_args): Add --daemon.
5294 (main): Disconnect from the terminal when --daemon is passed.
5295 (is_daemon): New variable.
5296 (Fdaemonp): New function.
5297 (syms_of_emacs): Defsubr it.
5298
52992008-09-20 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * xdisp.c (get_next_display_element): Handle string display
5302 correctly when checking for the end of a box run.
5303
53042008-09-20 Glenn Morris <rgm@gnu.org>
5305
5306 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5307 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5308 (Frename_file): Avoid copying to trash if a rename involves
5309 a delete. (Bug#964).
5310
53112008-09-20 Eli Zaretskii <eliz@gnu.org>
5312
5313 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5314 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5315 frames as well as termcap frames.
5316 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5317 get_named_tty.
5318
53192008-09-19 Eli Zaretskii <eliz@gnu.org>
5320
5321 * process.c (procfs_system_process_attributes): Fix cmdline in
5322 case /proc/PID/cmdline is empty.
5323
5324 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5325 x_display_pixel_height.
5326
53272008-09-19 Juanma Barranquero <lekktu@gmail.com>
5328
5329 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5330
5331 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5332 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5333
53342008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5335
5336 * dispextern.h (struct it): Move line_wrap away from the middle of
5337 bitfields. Move voffset in struct iterator_stack_entry after the
5338 bitfields. Move tab_width near after another short.
5339
53402008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5341
5342 * frame.h (struct frame): Move alpha from the middle of bitfields.
5343
5344 * window.h (struct window): Move frozen_window_start_p after the
5345 rest of the bitfields to reduce padding.
5346
53472008-09-18 Chong Yidong <cyd@stupidchicken.com>
5348
5349 * xterm.h (x_display_info): Remove `height' and `width' members.
5350
5351 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5352
5353 * w32term.h (w32_display_info): Remove `height', `width',
5354 `height_in', and `width_in' members.
5355
b8ff72fa
SM
5356 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5357 New functions.
aac0c6e3
MR
5358 (x_calc_absolute_position): Use them.
5359 (x_term_init): Omit removed `height' and `width' members.
5360
b8ff72fa
SM
5361 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5362 New functions.
aac0c6e3
MR
5363 (w32_read_socket, x_calc_absolute_position): Use them.
5364 (w32_initialize_display_info, w32_term_init): Omit removed members
5365 of w32_display_info.
5366
b8ff72fa
SM
5367 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5368 New functions.
5369 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5370
b8ff72fa
SM
5371 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5372 New functions.
aac0c6e3
MR
5373 (x_calc_absolute_position): Use them.
5374 (x_term_init): Omit removed `height' and `width' members.
5375
5376 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5377 (compute_tip_xy):
5378 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5379 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5380 x_display_pixel_width.
5381
53822008-09-18 Kenichi Handa <handa@m17n.org>
5383
5384 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5385 (composition_compute_stop_pos): Fix handling of static composition.
5386 (Fcomposition_get_gstring): Check FROM and TO at first.
5387
53882008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5389
46e722a9 5390 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5391 mixup (YAILOM).
5392
53932008-09-17 Chong Yidong <cyd@stupidchicken.com>
5394
5395 * indent.c (Fvertical_motion): Use position reported by iterator
5396 instead of PT for determining screen motion (bug#943).
5397
53982008-09-17 Romain Francoise <romain@orebokech.com>
5399
5400 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5401
54022008-09-17 Kenichi Handa <handa@m17n.org>
5403
5404 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5405
5406 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5407 if necessary.
5408
54092008-09-16 Kenichi Handa <handa@m17n.org>
5410
5411 * coding.c (make_conversion_work_buffer): Avoid calling
5412 Fget_buffer_create if it is not necessary.
5413
54142008-09-15 Martin Rudalics <rudalics@gmx.at>
5415
5416 * window.c (Fselect_window): Don't update window_select_count and
5417 use_time when norecord is not nil.
5418
54192008-09-14 Kenichi Handa <handa@m17n.org>
5420
5421 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5422 specpdl_ptr.
5423
54242008-09-12 Kenichi Handa <handa@m17n.org>
5425
5426 * indent.c (scan_for_column): Don't handle automatic composition
5427 if the current buffer is not associated with a window.
5428
5429 * composite.c (composition_reseat_it): If the current buffer is
5430 not associated with a window, ignore the automatic composition.
5431 (find_automatic_composition): Likewise.
5432
54332008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5434
5435 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5436 (Fgpm_mouse_stop): Use it.
5437 * termhooks.h (close_gpm): Declare.
5438 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5439 connection if Gpm_GetEvent fails.
5440
5441 * window.c (set_window_buffer): Always preserve current-buffer.
5442
54432008-09-12 Glenn Morris <rgm@gnu.org>
5444
5445 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5446
54472008-09-11 Glenn Morris <rgm@gnu.org>
5448
5449 * charset.c (charset-map-path): Doc fix.
5450
54512008-09-10 Kenichi Handa <handa@m17n.org>
5452
5453 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5454
5455 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5456 compose a grapheme cluster with the preceding base glyph.
5457
5458 * composite.c (composition_compute_stop_pos): Fix previous change.
5459 Reset cmp_it->id to -1 at first.
5460
54612008-09-10 Glenn Morris <rgm@gnu.org>
5462
5463 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5464
54652008-09-09 Chong Yidong <cyd@stupidchicken.com>
5466
5467 * keyboard.c (read_key_sequence): Reapply translation maps when
5468 switching keyboards.
5469
54702008-09-09 Kenichi Handa <handa@m17n.org>
5471
5472 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5473 characters.
5474
5475 * composite.c (FORWARD_CHAR): Fix calculation
5476 of (POSITION).pos_byte.
5477 (composition_compute_stop_pos): Limit the search of composition to
5478 at most 500 characters ahead. If we reach the limit or find a
5479 newline, set cmp_it->ch to -2 and return 0.
5480 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5481
54822008-09-08 Kenichi Handa <handa@m17n.org>
5483
5484 * indent.c (Fvertical_motion): Be sure to set
5485 it_overshoot_expected if it.cmp_it.id is non-negative.
5486
54872008-09-07 Andreas Schwab <schwab@suse.de>
5488
5489 * callproc.c (Fcall_process): Don't hold references to string data
5490 across garbage collection. Move initialisation of new_argv down
5491 to avoid compiler bug.
5492
54932008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5494
5495 * process.c (Fsystem_process_attributes): Doc fix.
5496
54972008-09-07 Chong Yidong <cyd@stupidchicken.com>
5498
5499 * callproc.c (Fcall_process): Canonicalize current directory name.
5500
5501 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5502 iterator advances to the next line if the current line ends in a
5503 continued tab.
5504
55052008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5506
5507 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5508 member to point to cmp_from.
5509
5510 * xdisp.c: Doc fix for references to gidx data member.
5511
55122008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5513
5514 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5515
55162008-09-07 Kenichi Handa <handa@m17n.org>
5517
5518 * composite.c (FORWARD_CHAR): Check STOP after
5519 incrementing (POSITION).pos.
5520
55212008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5522
5523 * process.c (Fsystem_process_attributes): Doc fix.
5524
55252008-09-06 Chong Yidong <cyd@stupidchicken.com>
5526
5527 * keyboard.c (Ftop_level): Doc fix.
5528
55292008-09-06 Eli Zaretskii <eliz@gnu.org>
5530
5531 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5532 minibuffer, don't let lower part of menu invade the echo area.
5533
5534 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5535 "char *q" to access menu text and advance through it. Revert the
5536 change that displayed ">" instead of ASCII character 0x10.
5537
55382008-09-05 Eli Zaretskii <eliz@gnu.org>
5539
5540 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5541 toggle boxes and radio buttons on MS-DOS as well.
5542
55432008-09-05 Kenichi Handa <handa@m17n.org>
5544
5545 * composite.c (autocmp_chars): Check lookback count.
5546 (composition_compute_stop_pos): Set cmp_it->lookback.
5547 (composition_reseat_it): Check lookback count.
5548 (struct position_record): New struct.
5549 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5550 (find_automatic_composition): New function.
5551 (composition_adjust_point): Use find_automatic_composition.
5552
5553 * dispextern.h (struct composition_it): New member lookback.
5554
55552008-09-02 Chong Yidong <cyd@stupidchicken.com>
5556
5557 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5558 if moving by a single line.
5559
55602008-09-02 Andreas Schwab <schwab@suse.de>
5561
5562 * xterm.c (x_delete_display): Fix merge error.
5563
5564 * fileio.c (Fexpand_file_name): Remove unused variables.
5565
55662008-09-02 Eli Zaretskii <eliz@gnu.org>
5567
5568 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5569 storage on all platforms, not just on DOS_NT.
5570
55712008-09-02 Jason Rumney <jasonr@gnu.org>
5572
b8ff72fa
SM
5573 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5574 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5575
55762008-09-01 Chong Yidong <cyd@stupidchicken.com>
5577
5578 * xfaces.c (Finternal_set_alternative_font_family_alist)
5579 (Finternal_set_alternative_font_registry_alist): Properly copy
5580 entire alist structure.
5581
55822008-09-01 Kenichi Handa <handa@m17n.org>
5583
d66c0241 5584 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5585 representative chars of the script is a vector.
d66c0241
JB
5586 (ftfont_list): Handle the case where the representative chars of
5587 the script is a vector.
aac0c6e3
MR
5588
5589 * character.c (syms_of_character): Docstring of
5590 script-representative-chars fixed.
5591
55922008-08-31 Eli Zaretskii <eliz@gnu.org>
5593
5594 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5595 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5596 the menu. Allocate larger buffer for `text', to account for
5597 possible ^C characters.
5598
55992008-08-31 Martin Rudalics <rudalics@gmx.at>
5600
5601 * xdisp.c (prepare_menu_bars): Don't call
5602 Vwindow_size_change_functions with arg Qt.
5603
56042008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5605
5606 * font.h (font_range):
5607 * fileio.c (report_file_error):
46e722a9
SM
5608 * composite.c (composition_update_it): Yet another int/Lisp_Object
5609 mixup (YAILOM).
aac0c6e3
MR
5610
56112008-08-30 Glenn Morris <rgm@gnu.org>
5612
5613 * data.c (Fmake_variable_frame_local): Doc fix.
5614
5615 * frame.c (Fmodify_frame_parameters): Doc fix.
5616
56172008-08-30 Eli Zaretskii <eliz@gnu.org>
5618
5619 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5620 needed by GetTokenInformation.
5621 (w32_system_process_attributes): Check return values of all system
5622 APIs.
5623
5624 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5625 only when the state changes.
5626 (IT_update_begin, IT_update_end): Add termscript trace.
5627
5628 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5629 clipboard is unavailable. Set dst to NULL if it doesn't point to
5630 malloc'ed data.
5631 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5632 passing random values to xfree.
5633
5634 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5635 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5636
56372008-08-29 Jason Rumney <jasonr@gnu.org>
5638
5639 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5640
56412008-08-29 Eli Zaretskii <eliz@gnu.org>
5642
5643 * composite.c (fill_gstring_body): Avoid compiler warnings.
5644
5645 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5646 LGLYPH_SET_CODE to avoid compiler warnings.
5647
2ae37cf0 5648 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5649
5650 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5651
5652 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5653 LGLYPH_SET_CODE.
5654
56552008-08-29 Kenichi Handa <handa@m17n.org>
5656
5657 * fileio.c (report_file_error): Don't downcase the first character
5658 of errstring if it is still unibyte.
5659
56602008-08-29 Kenichi Handa <handa@m17n.org>
5661
5662 These changes are to re-implement the automatic composition so
5663 that it doesn't use text properties.
5664
5665 * Makefile.in (ftfont.o): Depend on composite.h.
5666 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5667
5668 * character.h (Vunicode_category_table): Extern it.
5669
5670 * character.c (Vunicode_category_table): New variable.
5671 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5672
5673 * chartab.c (optimize_sub_char_table): Perform more greedy
5674 optimization.
5675
b8ff72fa
SM
5676 * composite.h (enum composition_method):
5677 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5678 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5679 (Vcomposition_function_table): Extern it.
5680 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5681 (composition_gstring_put_cache, composition_gstring_from_id)
5682 (composition_gstring_p, composition_gstring_width)
5683 (composition_compute_stop_pos, composition_reseat_it)
5684 (composition_update_it, composition_adjust_point): Extern them.
5685 (Fcomposition_get_gstring): EXFUN it.
5686
d66c0241 5687 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5688 (Vcomposition_function_table)
5689 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5690 (gstring_hash_table, gstring_work, gstring_work_headers):
5691 New variables.
aac0c6e3
MR
5692 (gstring_lookup_cache, composition_gstring_put_cache)
5693 (composition_gstring_from_id, composition_gstring_p)
5694 (composition_gstring_width, fill_gstring_header)
5695 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5696 (composition_reseat_it, composition_update_it)
b8ff72fa 5697 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5698 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5699 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5700 Defsubr compostion_get_gstring.
5701
5702 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5703 cmp_id.
5704 (struct glyph_string): Delete the member gidx. New members
5705 cmp_id, cmp_from, and cmp_to.
5706 (enum it_method): Delete GET_FROM_COMPOSITION.
5707 (struct composition_it): New struct.
5708 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5709 Delete c, len, cmp_id, cmp_len in u.comp.
5710
5711 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5712 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5713 (enum lglyph_indices): Likewise.
b8ff72fa 5714 (font_range): Adjust extern.
aac0c6e3
MR
5715 (font_fill_lglyph_metrics): Extern it.
5716
5717 * font.c (QCf): New variable.
5718 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5719 (font_prepare_composition): Delete this function.
5720 (font_range): Type and arguments changed.
5721 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5722 (font_fill_lglyph_metrics): New function.
b8ff72fa 5723 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5724 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5725 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5726 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5727
5728 * fontset.h (font_for_char): Extern it.
5729
5730 * fontset.c (font_for_char): New function.
5731
5732 * ftfont.c: Include composite.h.
5733 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5734 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5735
5736 * indent.c: Include composite.h and dispextern.h.
5737 (check_composition): Delete this function.
5738 (scan_for_column): Handle composition by
5739 composition_compute_stop_pos, composition_reseat_it, and
5740 composition_update_it.
5741 (compute_motion): Likewise.
5742 (Fvertical_motion): Fix checking of composition.
5743
5744 * keyboard.c (adjust_point_for_property): Check composition by
5745 composition_adjust_point.
5746
b8ff72fa 5747 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5748 struct glyph_string.
5749
b8ff72fa
SM
5750 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5751 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5752 struct glyph.
5753 (produce_composite_glyph): Likewise.
5754
b8ff72fa
SM
5755 * w32term.c (x_draw_composite_glyph_string_foreground):
5756 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5757 (x_draw_glyph_string): Likewise.
5758
5759 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5760 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5761
5762 * xdisp.c: Include font.h.
5763 (it_props): Delete the entry for Qauto_composed.
5764 (init_iterator): Initialize it->cmp_it.id to -1.
5765 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5766 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5767 (handle_auto_composed_prop): Delete it.
5768 (handle_composition_prop): Handle only static composition.
5769 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5770 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5771 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5772 (pop_it): Likewise.
5773 (get_next_element): Delete next_element_from_composition.
5774 (CHAR_COMPOSED_P): New macro.
5775 (get_next_display_element): For automatic composition, get a face
5776 from the font in the glyph-string.
5777 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5778 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5779 (next_element_from_string): Check if the character at the current
5780 position is composed by CHAR_COMPOSED_P.
5781 (next_element_from_buffer): Likewise.
d66c0241
JB
5782 (next_element_from_composition): Adjust for the change of struct it.
5783 Update it->cmp_it.
b8ff72fa
SM
5784 (dump_glyph): Adjust for the change of struct glyph.
5785 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5786 it and struct glyph. Don't handle automatic composition here.
5787 (fill_gstring_glyph_string): New function.
5788 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5789 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5790 (BUILD_GSTRING_GLYPH_STRING): New macro.
5791 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5792 automatic composition.
b8ff72fa 5793 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5794 struct glyph.
b8ff72fa 5795 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5796
b8ff72fa 5797 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5798 the change of struct glyph_string.
5799 (x_draw_glyph_string): Likewise.
5800
58012008-08-29 Glenn Morris <rgm@gnu.org>
5802
5803 * buffer.c (word-wrap): Doc fix.
5804 * xdisp.c (truncate-partial-width-windows): Doc fix.
5805 Increase default to 50.
5806
58072008-08-29 Chong Yidong <cyd@stupidchicken.com>
5808
5809 * xdisp.c (update_tool_bar_unwind): New function.
5810 (update_tool_bar): Temporarily set selected frame before building
5811 tool-bar items.
5812
58132008-08-28 Michael Albinus <michael.albinus@gmx.de>
5814
5815 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5816 snprintf, respectively.
5817 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5818
58192008-08-28 Chong Yidong <cyd@stupidchicken.com>
5820
5821 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5822 LDFLAGS to GNUstep CC invocation.
5823
58242008-08-27 Chong Yidong <cyd@stupidchicken.com>
5825
5826 * indent.c (Fvertical_motion): Revert last change. Handle the
5827 general case where we are moving forward, and PT spans multiple
5828 screen lines.
5829
5830 * eval.c (find_handler_clause): Temporarily increase
5831 max-lisp-eval-depth while printing the backtrace buffer, to
5832 guarantee that help-mode code can run.
5833
58342008-08-27 Eli Zaretskii <eliz@gnu.org>
5835
5836 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5837 colors under -rv.
5838 (IT_set_frame_parameters): Don't swap foreground and background
5839 colors if `(reverse . t)' is present in the frame properties.
5840 (internal_terminal_init): Call init_frame_faces only for the
5841 initial frame.
5842
58432008-08-27 Andreas Schwab <schwab@suse.de>
5844
5845 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5846
58472008-08-27 Andreas Schwab <schwab@suse.de>
5848
5849 * search.c (search_buffer): Set char_base to zero only at the end.
5850
58512008-08-27 Kenichi Handa <handa@m17n.org>
5852
b8ff72fa 5853 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5854
58552008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5856
5857 * xterm.c (x_term_init): Temporarily hide the partially
5858 initialized terminal while calling vendor-specific-keysyms.
5859
58602008-08-26 Eli Zaretskii <eliz@gnu.org>
5861
5862 * msdos.c (internal_terminal_init): Most initializations done only
5863 once, especially initial_screen_colors[] and termscript open.
5864
58652008-08-26 Chong Yidong <cyd@stupidchicken.com>
5866
5867 * eval.c (Fcondition_case): Doc fix.
5868
5869 * widgetprv.h (EmacsFramePart): Change font member to the new font
5870 struct.
5871
5872 * widget.c: Include character.h and font.h for XSETFONT.
5873 (setup_frame_gcs): Compute X font id from font struct, just once.
5874
58752008-08-26 Eli Zaretskii <eliz@gnu.org>
5876
5877 * term.c (get_named_tty): Fix last change.
5878
58792008-08-26 Chong Yidong <cyd@stupidchicken.com>
5880
5881 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5882 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5883
58842008-08-25 Eli Zaretskii <eliz@gnu.org>
5885
5886 * frame.c (do_switch_frame): Mark previously displayed frame as
5887 obscured for FRAME_MSDOS_P frames as well.
5888
58892008-08-24 Eli Zaretskii <eliz@gnu.org>
5890
5891 * frame.c (make_terminal_frame): Initialize f->terminal,
5892 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5893 Set the top frame to newly created frame.
5894 (Fmake_terminal_frame): Reuse the_only_display_info.
5895
5896 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5897 estimating available memory.
5898
b97439ce 58992008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5900
5901 * nsterm.m (ns_draw_window_cursor): Don't call
5902 NSDisableScreenUpdates and NSEnableScreenUpdates on
5903 non-NS_IMPL_COCOA systems.
5904
59052008-08-23 Andreas Schwab <schwab@suse.de>
5906
5907 * process.c (procfs_system_process_attributes): Fix use of
5908 uninitialized variables.
5909
59102008-08-23 Eli Zaretskii <eliz@gnu.org>
5911
5912 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5913
5914 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5915 calling tty-set-up-initial-frame-faces.
5916
b8ff72fa
SM
5917 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5918 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5919
5920 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5921 addition to output_termcap.
5922
5923 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5924
5925 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5926 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5927 highlight.
5928
5929 * process.c [!subprocesses]: Define QCname.
5930 (syms_of_process): Intern and staticpro it.
5931
5932 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5933 Adjust for changes in encoding/decoding routines.
5934 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5935 encode_coding and decode_coding.
5936
b8ff72fa 5937 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5938
5939 * dosfns.c: Include frame.h before termhooks.h.
5940 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5941 variable termscript.
5942
5943 * s/msdos.h (USER_FULL_NAME): Define.
5944 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5945
5946 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5947 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5948 pw->pw_gecos.
5949
5950 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5951 SELECTED_FRAME as additional (1st) argument.
5952 (tty_read_avail_input): Handle output_msdos_raw in
5953 addition to output_termcap.
5954
5955 * msdos.c: Include frame.h before termhooks.h.
5956 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5957 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5958 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5959 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5960 (IT_set_terminal_modes, IT_reset_terminal_modes)
5961 (IT_set_frame_parameters): Use tty->termscript instead of a global
5962 variable termscript.
5963 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5964 global variable terminal_coding. Don't refer to
5965 Vnonascii_translation_table.
5966 (internal_terminal_init): Set Vwindow_system in current_kboard.
5967 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5968 Announce date and time of session start, if termscript is open.
5969 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5970 term.c:init_tty). Open termscript only of not already open.
5971 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5972 here instead of dos_ttraw. Don't initialize display if this is an
5973 initial tty. Don't set FRAME_FONT.
5974 (Vwindow_system_version): Bump to 23.
5975 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5976 is available, set up mouse_position_hook.
5977 (dos_ttraw, IT_set_terminal_modes): If called with initial
5978 terminal, do nothing.
5979 (IT_set_frame_parameters): Handle the Qtty_type frame
5980 parameter by calling internal_terminal_init.
5981 (dos_set_window_size, show_mouse_face)
5982 (clear_mouse_face, IT_note_mode_line_highlight)
5983 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5984 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5985 (initialize_msdos_display): New function.
5986 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5987 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5988 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5989 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5990 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5991 (request_sigio, unrequest_sigio): Don't define, now defined on
5992 sysdep.c.
5993 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5994
5995 * term.c [MSDOS]: Include msdos.h.
5996 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5997 conditional to DOS_NT. Allow only one call to this function in a
5998 session. Don't allocate a new struct tty_display_info; instead,
5999 reuse the_only_display_info. Call get_tty_size to get screen
6000 dimensions. Call init_baud_rate to set bad_rate.
6001 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6002 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6003 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6004 (get_tty_terminal, get_named_tty, Ftty_type)
6005 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6006 output_termcap.
b8ff72fa
SM
6007 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6008 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6009 only when subprocesses are supported.
aac0c6e3
MR
6010
6011 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6012 f->output_data.x.
6013 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6014 terminal devices.
6015
5582fbc7 6016 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6017 x_output.
6018 (FRAME_FONT): Use output_data.tty.
6019 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6020 (struct x_display_info): Rename from display_info. Update all users in
6021 msdos.c.
aac0c6e3 6022 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6023 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6024 (dos_ttraw): Update prototype.
6025
6026 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6027 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6028
60292008-08-23 Jason Rumney <jasonr@gnu.org>
6030
6031 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6032 (fn_TIFFSetDirectory): New library function used.
6033 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6034 (tiff_load): Use :index to select among multiple images. Set count
6035 property when multiple images exist.
6036 (gif_format): Use :index, not :image.
6037
60382008-08-23 Chong Yidong <cyd@stupidchicken.com>
6039
6040 * xdisp.c (try_scrolling): Check INT_MAX instead of
6041 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6042 to obtain INT_MAX.
6043
60442008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6045
6046 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6047
60482008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6049
6050 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6051 GNUstep library location.
6052
60532008-08-21 Chong Yidong <cyd@stupidchicken.com>
6054
6055 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6056 before using it.
6057
6058 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6059
60602008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6061
6062 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6063 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6064 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6065 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6066 (EmacsApp-cursor_blink_handler): Remove declaration.
6067 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6068 match 01 Feb 2008 changes in xterm.c.
6069 (ns_read_socket): Add cast to avoid warning.
6070 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6071 GNUstep.
6072
60732008-08-20 Chong Yidong <cyd@stupidchicken.com>
6074
6075 * xselect.c (x_get_foreign_selection): Return nil if desired
6076 selection could not be obtained, instead of signalling an error.
6077
60782008-08-20 David Reitter <david.reitter@gmail.com>
6079
6080 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6081 * nsterm.m: Remove ns-specific code for cursor blinking.
6082 (ns_draw_window_cursor): Clear cursor properly rather than
6083 redrawing the area. Respect width of bar cursors.
6084 These changes enable the use of generic blink-cursor-mode and
6085 generic cursor types in NS and support smooth cursor movements (do
6086 not blink off after command).
6087 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6088 Nextstep, too.
6089
60902008-08-19 Kenichi Handa <handa@m17n.org>
6091
6092 * font.c (Vfont_log_deferred): New variable.
6093 (font_add_log): Check Vfont_log_deferred.
6094 (font_deferred_log): New function.
6095
6096 * font.h (font_deferred_log): Extern it.
6097
6098 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6099 for sorting.
6100 (face_for_char): Use deferred log.
6101
61022008-08-18 Kenichi Handa <handa@m17n.org>
6103
6104 * fontset.c (face_for_char): Add font log.
6105
6106 * font.c (font_add_log): Add the font properties :script, :lang,
6107 and :otf in the log.
6108
61092008-08-17 Chong Yidong <cyd@stupidchicken.com>
6110
6111 * xdisp.c: Remove dead code.
6112 (handle_invisible_prop, next_overlay_string): Defer call to
6113 setup_for_ellipsis.
6114 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6115
61162008-08-15 Chong Yidong <cyd@stupidchicken.com>
6117
6118 * xfaces.c (lookup_derived_face): Properly handle possible zero
6119 return value of get_lface_attributes.
6120 (merge_faces): Don't tell lookup_derived_face to signal an error
6121 if face is not found.
6122
6123 * dired.c (Fdirectory_files): Doc fix.
6124
6125 * process.c (make_process): Initialize kill_without_query struct
6126 member.
6127
61282008-08-15 Eli Zaretskii <eliz@gnu.org>
6129
6130 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6131 Alternative calculation of totphys for Visual Studio 6.
6132
6133 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6134
6135 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6136 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6137 All users changed.
6138 (stat): Only root directory passed to GetDriveType. Allow RAM
6139 disk as well as local fixed disk when w32-get-true-file-attributes
6140 is set to `local'.
6141 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6142 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6143 (w32_cached_id, w32_add_to_cache): New functions.
6144 (get_name_and_id): Look account names in the cache before calling
6145 lookup_account_sid.
6146 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6147 New initialization flags.
6148 (globals_of_w32): Initialize them to zero.
6149 (w32_system_process_attributes): Use w32_cached_id and
6150 w32_add_to_cache.
6151
61522008-08-14 Lawrence Mitchell <wence@gmx.li>
6153
6154 * lread.c (Fread_char, Fread_char_exclusive): If no character
6155 event is read before timeout is reached, return nil, rather than
6156 converting to a number.
6157
61582008-08-14 Chong Yidong <cyd@stupidchicken.com>
6159
6160 * fns.c (use_dialog_box): Doc fix.
6161
6162 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6163 on OS X.
6164
61652008-08-13 Chong Yidong <cyd@stupidchicken.com>
6166
6167 * frame.c (Qns_parse_geometry): New var.
6168 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6169
61702008-08-11 Chong Yidong <cyd@stupidchicken.com>
6171
6172 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6173 space character in calculating tabs.
6174
61752008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6176
6177 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6178
61792008-08-10 Glenn Morris <rgm@gnu.org>
6180
6181 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6182 silence gcc "limited range of data type" warnings in some
6183 make_fixnum_or_float calls.
6184
61852008-08-09 Eli Zaretskii <eliz@gnu.org>
6186
6187 * w32.c (w32_system_process_attributes): If the process does not
6188 exist, return nil.
6189
6190 * w32.c: Include thelp32.h, psapi.h and coding.h.
6191 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6192 declarations.
6193 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6194 (Process32Next_Proc): New typedefs.
6195 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6196 (g_b_init_process32_next, g_b_init_open_thread_token)
6197 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6198 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6199 (g_b_init_get_process_working_set_size)
6200 (g_b_init_global_memory_status_ex): New static variables.
6201 (globals_of_w32): Initialize them.
6202 (create_toolhelp32_snapshot, process32_first, process32_next)
6203 (open_thread_token, impersonate_self, revert_to_self)
6204 (get_process_memory_info, get_process_working_set_size)
6205 (global_memory_status, global_memory_status_ex): New wrapper
6206 functions.
6207 (w32_list_system_processes, w32_system_process_attributes)
6208 (enable_privilege, restore_privilege, ltime, process_times):
6209 New functions.
6210 (convert_time_raw): New function.
6211 (convert_time): Remove conversion of FILETIME into time in 100
6212 nsec units, call convert_time_raw instead.
6213
6214 * process.h (w32_list_system_processes, w32_system_process_attributes):
6215 Add prototypes.
6216 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6217 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6218 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6219 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6220
6221 * process.c (Fsystem_process_attributes): Doc fix.
6222
62232008-08-08 Chong Yidong <cyd@stupidchicken.com>
6224
6225 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6226 a continued multi-char glyph; if so, advance to the actual glyph.
6227
62282008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6229
6230 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6231
6232 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6233 (.m.o): Use it.
6234 * config.in: Regenerate.
6235
62362008-08-07 Chong Yidong <cyd@stupidchicken.com>
6237
6238 * xdisp.c (redisplay_window): Revert last change.
6239 (try_window): Check bottom scroll margin too.
6240
62412008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6242
6243 * config.in: Regenerate.
6244
6245 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6246 -list-load-path-shadows'.
6247 (nsgui.h): Reduce number of things depending on it.
6248
62492008-08-06 Chong Yidong <cyd@stupidchicken.com>
6250
6251 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6252 instead of window-end which does the wrong thing at eob.
6253 (try_cursor_movement): Minor optimization.
6254 (redisplay_window): If scroll margin is defined, don't assume
6255 window doesn't need scrolling.
6256
62572008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6258
6259 * config.in: Regenerate.
6260
6261 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6262 (mostlyclean): Don't delete *.d under NS.
6263
6264 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6265
62662008-08-06 Kenichi Handa <handa@m17n.org>
6267
6268 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6269
62702008-08-06 Andreas Schwab <schwab@suse.de>
6271
6272 * config.in: Regenerate.
6273
62742008-08-05 Chong Yidong <cyd@stupidchicken.com>
6275
6276 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6277 forcing a window start.
6278
6279 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6280 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6281
62822008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6283
6284 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6285 argument.
6286
62872008-08-05 Juanma Barranquero <lekktu@gmail.com>
6288
6289 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6290 <scroll-down-aggressively, before-change-functions>:
6291 <after-change-functions>: Reflow docstrings.
6292
62932008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6294 Ken Raeburn <raeburn@gnu.org>
6295
6296 Dock menu customization, based on a patch by Ken Raeburn, plus some
6297 other fixes.
6298 * nsmenu.m (dockMenu): New variable.
6299 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6300
6301 * nsterm.h (dockMenu): Declare.
6302
6303 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6304 (ns_term_init): Initialize dockMenu.
6305 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6306 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6307 left.
6308
6309 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6310
63112008-08-04 Chong Yidong <cyd@stupidchicken.com>
6312
6313 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6314
6315 * config.in: Regenerate.
6316
63172008-08-04 Seiji Zenitani <zenitani@mac.com>
6318
6319 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6320
63212008-08-04 Chong Yidong <cyd@stupidchicken.com>
6322
6323 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6324
63252008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6326
6327 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6328
6329 * keyboard.h: Comment an #endif.
6330
6331 * lisp.h (have_menus_p): Adjust comment.
6332
6333 * menu.c (find_and_return_menu_selection): Fix comparison with
6334 client_data.
6335
6336 * nsmenu.m (popup_activated_flag): New variable.
6337 (popup_activated): New function.
6338 (menu-or-popup-active-p): New exported lisp definition.
6339 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6340 when popup done.
6341 (ns_popup_dialog): Set popup_activated_flag.
6342
6343 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6344 version for GNUstep (handled by conditional typedef in nsterm.m).
6345 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6346 in rgb.txt).
6347
6348 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6349
6350 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6351
6352 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6353
6354 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6355 shortcircuit if popup_activated like GTK and X toolkit.
6356
6357 * m/inter386.h: Change DARWIN to DARWIN_OS.
6358
6359 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6360 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6361 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6362 comment on NO_SOCK_SIGIO.
6363
63642008-08-03 Chong Yidong <cyd@stupidchicken.com>
6365
6366 * nsterm.m (windowDidResize): Remove stopModal call.
6367
63682008-08-03 Andreas Schwab <schwab@suse.de>
6369
6370 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6371 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6372
63732008-08-02 Chong Yidong <cyd@stupidchicken.com>
6374
6375 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6376 Don't use uninitialized pointer variable when using getrlimit.
6377
63782008-08-02 Jason Rumney <jasonr@gnu.org>
6379
6380 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6381
63822008-08-02 Eli Zaretskii <eliz@gnu.org>
6383
6384 * alloc.c (NSTATICS): Bump to 0x640.
6385
6386 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6387
6388 * lisp.h: Add prototype for directory_files_internal.
6389
6390 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6391 New functions.
6392 (syms_of_process): Defsubr them. Add initializations for various
6393 Q* symbols used in procfs_system_process_attributes.
6394 (procfs_list_system_processes, procfs_system_process_attributes)
6395 [HAVE_PROCFS]: New functions.
6396 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6397 (procfs_get_total_memory): New functions.
6398
63992008-08-01 Juanma Barranquero <lekktu@gmail.com>
6400
6401 * xfaces.c (Fx_load_color_file): Fix previous change;
6402 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6403
64042008-08-01 Michael Albinus <michael.albinus@gmx.de>
6405
6406 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6407
64082008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6409
6410 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6411
64122008-08-01 Chong Yidong <cyd@stupidchicken.com>
6413
6414 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6415
6416 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6417 define NSApplicationDelegateReplySuccess.
6418 (EmacsView -converstationIdentifier): Use long instead of
6419 NSInteger for GNUstep, since it doesn't have NSInteger.
6420
6421 * xmenu.c: Revert last change.
6422
6423 * keyboard.h: Fix last change.
6424
64252008-08-01 Juanma Barranquero <lekktu@gmail.com>
6426
6427 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6428 on Windows.
6429
64302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6431
6432 Warning clearing and clean-up in NS port.
6433 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6434 Add prototypes.
6435 * nsgui.h (FACE_DEFAULT): Remove, unused.
6436 (XGCValues): Change colors to unsigned long.
6437 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6438 nsterm.m.
6439 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6440 (ns_list_fonts): Remove, unused.
6441 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6442 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6443 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6444 (nsfont_draw): Compare face colors to 0, not nil.
6445 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6446 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6447 (-addSubmenuWithTitle:): Use NSMenuItem class.
6448 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6449 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6450 (ns_clip_to_row): Make gc arg a BOOL.
6451 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6452 ns_clip_to_row() call.
6453 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6454 used). Cast FRAME_FONT assignments.
6455 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6456 (ns_string_to_lispmod): Change arg to const char.
6457 (ns_term_init): Use NSMenuItem class.
6458 (EmacsApp -openFile:): Move to different section of file.
6459 (EmacsApp -application:openFiles:): Don't return a value, call
6460 -replyToOpenOrPrint:.
6461 (EmacsView -keyDown:): Fix up cast.
6462 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6463 (EmacsView -menuDown:): Cast tag in call to
6464 find_and_call_menu_selection().
6465 (ns_list_fonts): Remove, unused.
6466 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6467 (ns_fontname_to_xlfd): Make static.
6468 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6469 Remove prototypes (now in keyboard.h).
6470 (next_menubar_widget_id): Remove, unused.
6471 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6472 Remove prototypes (now in keyboard.h).
6473 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6474
64752008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6476
6477 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6478 (floatfns.o): Depend on syssignal.h.
6479 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6480
6481 * systty.h: Fix previous change that removed BSD_TERMIOS.
6482 Add comments to #ifdefs.
6483
64842008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6485
6486 * w32fns.c (w32-load-color-file): Remove.
6487 (x-open-connection): Use renamed Fx_load_color_file.
6488 * xfaces.c (x-load-color-file): Add.
6489 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6490 Emacs.clr.
6491 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6492
64932008-07-31 Michael Albinus <michael.albinus@gmx.de>
6494
6495 * dbusbind.c (Fdbus_call_method_asynchronously)
6496 (Fdbus_method_error_internal): New defuns.
6497 (xd_read_message): Handle also reply messages.
6498 (Vdbus_registered_functions_table): Extend docstring.
6499
65002008-07-31 Juanma Barranquero <lekktu@gmail.com>
6501
6502 * keyboard.c (gobble_input): Fix previous change.
6503
65042008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6505
6506 * bitmaps/README:
6507 * xfns.c:
6508 * termcap.c:
6509 * term.c:
6510 * syswait.h:
6511 * systty.h:
6512 * systime.h:
6513 * syssignal.h:
6514 * sysdep.c:
6515 * process.h:
6516 * process.c:
6517 * print.c:
6518 * ndir.h:
6519 * lread.c:
6520 * keyboard.c:
6521 * getpagesize.h:
6522 * floatfns.c:
6523 * fileio.c:
6524 * emacs.c:
6525 * doc.c:
6526 * dispnew.c:
6527 * dired.c:
6528 * data.c:
6529 * callproc.c:
6530 * buffer.c:
6531 * README:
6532 * Makefile.in:
6533 * s/template.h:
6534 * s/msdos.h:
6535 * m/vax.h: Remove VMS support.
6536 * s/vms.h:
6537 * vlimit.h:
6538 * uaf.h:
6539 * temacs.opt:
6540 * param.h:
6541 * ioctl.h: Remove file.
6542
65432008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6544
6545 * s/ms-w32.h (MULTI_KBOARD): Remove.
6546 * xterm.c:
6547 * xselect.c:
6548 * xfns.c:
6549 * window.c:
6550 * w32term.c:
6551 * w32fns.c:
6552 * terminal.c:
6553 * termhooks.h:
6554 * term.c:
6555 * sysdep.c:
6556 * keyboard.h:
6557 * keyboard.c:
6558 * frame.h:
6559 * frame.c:
6560 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6561 * config.in: Regenerate.
6562
65632008-07-30 Jason Rumney <jasonr@gnu.org>
6564
6565 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6566
6567 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6568 (w32font_open_internal): Get unicode version of textmetrics.
6569 Don't enable or disable glyph indices here.
6570 (w32font_open): Disable use of glyph indices.
6571
6572 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6573
65742008-07-30 Chong Yidong <cyd@stupidchicken.com>
6575
6576 * minibuf.c (Vread_buffer_function): Doc fix.
6577
65782008-07-30 John Paul Wallington <jpw@pobox.com>
6579
6580 * minibuf.c (read_buffer_completion_ignore_case): New var.
6581 (Fread_buffer): Use it.
6582
65832008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6584
6585 * systty.h (sensemode): Remove empty #if. Remove reference to
6586 BSD_TERMIOS, unused.
6587
6588 * sysdep.c: Remove reference to DGUX.
6589 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6590
6591 * config.in: Regenerate.
6592
65932008-07-30 Jason Rumney <jasonr@gnu.org>
6594
6595 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6596
65972008-07-29 Jason Rumney <jasonr@gnu.org>
6598
6599 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6600 is populated.
6601 (uniscribe_encode_char): Always use uniscribe.
6602 Avoid using context if cache is populated.
6603
66042008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6605
6606 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6607 open menu.
6608
6609 * gtkutil.c (menu_nav_ended): Remove.
6610 (create_menus): Remove signal connect for menu_nav_ended.
6611
66122008-07-28 Chong Yidong <cyd@stupidchicken.com>
6613
6614 * xdisp.c (redisplay_window): Check return value of
6615 compute_window_start_on_continuation_line before forcing a window
6616 start.
6617
66182008-07-28 Jason Rumney <jasonr@gnu.org>
6619
6620 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6621
6622 * w32term.c (w32_enable_unicode_output, cleartype_active):
6623 Remove obsolete display options.
6624 (x_draw_glyph_string_background): Don't use old cleartype_active
6625 workaround.
6626 (w32_initialize): Remove cleartype_active initialization.
6627 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6628
66292008-07-28 Andreas Schwab <schwab@suse.de>
6630
6631 * lisp.h (init_weak_hash_tables, syms_of_font)
6632 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6633 (remove_hash_entry): Don't declare.
6634 * eval.c (maybe_call_debugger): Make static and move before use.
6635 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6636 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6637 * xterm.h (x_set_frame_alpha): Declare.
6638
66392008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6640
6641 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6642 (create_menus): Connect selection-done to menu_nav_ended.
6643
66442008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6645
6646 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6647 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6648 parameter with read of 'alpha' one.
6649 (Qns_frame_parameter): Remove.
5582fbc7 6650 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6651 (next-selection-coding-system, Vselection_coding_system)
6652 (Vnext_selection_coding_system): Drop.
6653
66542008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6655
6656 * nsfns.m (do-applescript, do_applescript): Rename to
6657 ns-do-applescript, ns_do_applescript, and move within file.
6658
66592008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6660
6661 Remove support for Mac Carbon.
6662 * mactoolbox.c:
6663 * macterm.h:
6664 * macterm.c:
6665 * macselect.c:
6666 * macmenu.c:
6667 * macgui.h:
6668 * macfns.c:
6669 * mac.c: Remove file.
6670 * s/darwin.h:
6671 * m/intel386.h:
6672 * xfaces.c:
6673 * xdisp.c:
6674 * window.c:
6675 * tparam.c:
6676 * termhooks.h:
6677 * termcap.c:
6678 * term.c:
6679 * syssignal.h:
6680 * sysselect.h:
6681 * sysdep.c:
6682 * process.c:
6683 * lread.c:
6684 * lisp.h:
6685 * keyboard.c:
6686 * image.c:
6687 * fringe.c:
6688 * frame.h:
6689 * frame.c:
6690 * fontset.c:
6691 * font.h:
6692 * font.c:
6693 * fns.c:
6694 * fileio.c:
6695 * emacs.c:
6696 * dispnew.c:
6697 * dispextern.h:
6698 * config.in:
6699 * atimer.c:
2ae37cf0 6700 * Makefile.in: Remove code for Carbon.
aac0c6e3 6701
f0131492 67022008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6703
6704 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6705
67062008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6707
6708 * macterm.h (kCGBitmapByteOrder32Host): New define for
6709 non-universal SDKs.
6710
6711 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6712 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6713
6714 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6715 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6716
67172008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6718
6719 * w32inevt.c: Include dispextern.h.
6720
67212008-07-26 Andreas Schwab <schwab@suse.de>
6722
6723 * print.c (print_object): Fix off-by-one in last change.
6724
67252008-07-25 Juanma Barranquero <lekktu@gmail.com>
6726
6727 * term.c (syms_of_term): Don't initialize default_orig_pair,
6728 default_set_foreground and default_set_background on Windows.
6729
67302008-07-25 Jason Rumney <jasonr@gnu.org>
6731
6732 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6733 ScriptItemize. Clean up return value checking. Remove unused
6734 variables.
6735 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6736 shaping engine.
6737
6738 * w32font.c (w32font_has_char): Handle the case where we can't
6739 determine the script for a character.
6740
67412008-07-25 Chong Yidong <cyd@stupidchicken.com>
6742
6743 * term.c (syms_of_term): Initialize default_orig_pair,
6744 default_set_foreground, and default_set_background.
6745
6746 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6747 clash (bug#86).
6748 (getloadavg): Callers changed.
6749
6750 * image.c (svg_load_image): Fix last change.
6751 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6752 image size is valid. Use g_object_unref instead of deprecated
6753 rsvg_handle_free to free rsvg handle.
6754 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6755
67562008-07-25 Jason Rumney <jasonr@gnu.org>
6757
6758 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6759 surrogates before looking up glyph index.
6760 (w32font_text_extents): Encode as surrogates if falling back to
6761 functions that need UTF-16 wide chars.
6762
6763 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6764 BMP as surrogates before looking up glyph index.
6765
67662008-07-25 Chong Yidong <cyd@stupidchicken.com>
6767
6768 * image.c (svg_load_image): Check for failure in return value of
6769 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6770
67712008-07-25 Jason Rumney <jasonr@gnu.org>
6772
6773 * w32font.c (Fx_select_font): Reverse sense of second arg.
6774
67752008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6776
6777 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6778 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6779
6780 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6781 (PURESIZE): Use it.
6782
67832008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6784
6785 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6786 * m/alpha.h (TEXT_END):
6787 * m/ibmrs6000.h (TEXT_END):
6788 * m/macppc.h (TEXT_END):
6789 * s/darwin.h (TEXT_END):
6790 * s/msdos.h (TEXT_END): Remove, unused.
6791 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6792 * s/cygwin.h: Remove comment.
6793
6794 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6795 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6796 * m/intel386.h (DOT_GLOBAL_START):
6797 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6798 (USG): Remove, file not used on USG platforms.
6799
6800 * Makefile.in (HAVE_X11): Remove empty #else.
6801
68022008-07-24 Andreas Schwab <schwab@suse.de>
6803
6804 * fileio.c (Finsert_file_contents): Properly adjust undo list
6805 after format conversion.
6806
68072008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6808
6809 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6810 (menu_nav_ended): Remove.
6811 (create_menus): Remove signal connect for menu_nav_ended.
6812 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6813 create_menus.
6814 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6815
68162008-07-23 Jason Rumney <jasonr@gnu.org>
6817
6818 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6819 with opened font.
6820 (w32font_open): Set font type to gdi.
6821
6822 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6823
68242008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6825
6826 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6827 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6828 defines it.
6829 * unexec.c (ADDR_CORRECT): Define unconditionally.
6830
6831 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6832
6833 * unexec.c: Remove code depending on !COFF and USG, the file is
6834 not used for such systems.
6835
6836 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6837 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6838 (LD_SWITCH_SYSTEM_1): Remove, update users.
6839
6840 * s/darwin.h (DATA_END):
6841 * m/intel386.h (DATA_END):
6842 * m/ibmrs6000.h (DATA_END):
6843 * m/alpha.h (DATA_END): Remove, unused.
6844
6845 * config.in: Regenerate.
6846 * s/ms-w32.h (subprocesses): Define unconditionally.
6847 * s/template.h (subprocesses): Update comment.
6848 * s/vms.h (subprocesses):
6849 * s/usg5-4.h (subprocesses):
6850 * s/hpux10-20.h (subprocesses):
6851 * s/gnu-linux.h (subprocesses):
6852 * s/cygwin.h (subprocesses):
6853 * s/bsd-common.h (subprocesses):
6854 * s/aix4-2.h (subprocesses):
6855 * s/darwin.h (subprocesses): Do not define, defined by default now.
6856
6857 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6858 Remove all references.
6859 (temacs): Add GNUstep specific ld flags.
6860
6861 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6862 similarly to what X does.
6863
68642008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6865
6866 * nsfns.m (x-list-fonts): Remove.
6867 (syms_of_nsfns): Drop the x-list-fonts declaration.
6868 * nsterm.m: Get rid of remaining "//" comments.
6869
68702008-07-22 Chong Yidong <cyd@stupidchicken.com>
6871
6872 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6873
6874 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6875 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6876 (Fns_own_selection_internal, Fx_disown_selection_internal)
6877 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6878
6879 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6880 ... */' style of docstrings. Doc fixes.
6881
68822008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6883
6884 * terminfo.c (UP, BC, PC): Undo previous change.
6885
6886 * nsfns.m: Rename ns prefixed functions/variables to the
6887 corresponding x versions. Update references.
6888
68892008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6890
6891 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6892
68932008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6894
6895 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6896 Remove forwarding functions.
6897 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6898 non-static.
6899 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6900 non-static.
6901 (ns_frame_parm_handlers): Use the new names.
6902 (syms_of_nsfns): Move to the end of file.
6903
6904 * nsterm.m (syms_of_nsterm): Move to the end of file.
6905
6906 * dispnew.c (init_display): Remove code for X10.
6907
69082008-07-22 Jason Rumney <jasonr@gnu.org>
6909
6910 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6911 bare drive.
6912
69132008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6914
6915 * nsterm.m (syms_of_nsterm): Remove debugging println.
6916
69172008-07-22 David Reitter <david.reitter@gmail.com>
6918
6919 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6920 Carbon implementation of the same functionality: execute arbitrary
6921 AppleScript code.
6922
69232008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6924
6925 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6926 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6927 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6928 (Fx_display_mm_height, Fx_display_mm_width)
6929 (Fx_display_backing_store, Fx_display_visual_class)
6930 (Fx_display_save_under, Fx_open_connection)
6931 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6932 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6933 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6934 (Fx_display_pixel_width, Fx_display_pixel_height)
6935 (Fx_display_usable_bounds, Fx_display_planes)
6936 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6937 ... */' style of docstrings.
6938
69392008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6940
6941 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6942 on this platform.
6943 (mips):
6944 * m/iris4d.h (mips): Do not define.
6945 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6946
6947 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6948
6949 * image.c:
6950 * nsfns.m:
6951 * nsselect.m:
6952 * nsterm.h:
6953 * nsterm.m: Rename ns prefixed functions/variables to the
6954 corresponding x versions. Update references.
6955
6956 * m/ibms390x.h (NO_REMAP): Do not undefine.
6957
6958 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6959
69602008-07-21 Chong Yidong <cyd@stupidchicken.com>
6961
6962 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6963 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6964 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6965 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6966 (Fns_display_mm_height, Fns_display_mm_width)
6967 (Fns_display_backing_store, Fns_display_visual_class)
6968 (Fns_display_save_under, Fns_open_connection)
6969 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6970 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6971 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6972 (Fns_display_pixel_width, Fns_display_pixel_height)
6973 (Fns_display_usable_bounds, Fx_display_planes)
6974 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6975
69762008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6977
6978 * print.c (print_object): Check print_depth before searching for
6979 circularities.
6980
69812008-07-21 Michael Albinus <michael.albinus@gmx.de>
6982
6983 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6984 only sprintf.
6985
69862008-07-21 Kenichi Handa <handa@m17n.org>
6987
6988 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6989
69902008-07-20 Andreas Schwab <schwab@suse.de>
6991
6992 * syntax.c (find_start_pos, find_start_value)
6993 (find_start_value_byte, find_start_begv, find_defun_start)
6994 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6995
69962008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6997
6998 * s/sol2-3.h: Insert contents of s/sol2.h.
6999 (LD_SWITCH_SYSTEM): Remove redundant definition.
7000 * s/sol2.h: Remove, unused.
7001
70022008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7003
7004 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7005
70062008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7007
7008 * Makefile.in (ns_appdir): Fix typo in find command.
7009
70102008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7011
7012 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7013
7014 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7015 added not supported anymore.
7016
7017 * s/usg5-4-2.h (LIBS_SYSTEM):
7018 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7019
7020 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7021 * s/lynxos.h (GETPGRP_NO_ARG):
7022 * s/hpux10-20.h (NO_SIOCTL_H):
7023 * s/gnu.h (GETPGRP_NO_ARG):
7024 * s/gnu-linux.h (NO_SIOCTL_H):
7025 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7026 * s/cygwin.h (GETPGRP_NO_ARG):
7027 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7028 (C_DEBUG_SWITCH): Remove duplicate definition.
7029
7030 * m/ibms390.h: Remove boilerplate comments.
7031
7032 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7033
7034 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7035 (wait_reading_process_output): Remove code for SunOS, platform not
7036 supported anymore. Use SOLARIS2 instead of sun.
7037
70382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7039
7040 * font.c (font_open_by_name): Under NS, default lface height to zero.
7041 (font_open_for_lface): Under NS, set size based on frame fontsize.
7042 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7043 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7044
70452008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7046
7047 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7048 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7049 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7050 YES/NO.
7051 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7052 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7053 * Makefile.in (clean): Clear out build destination dir.
7054
70552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7056
7057 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7058 xterm, xselect.
7059 * lisp.h: Remove declaration of hash_remove.
7060 * nsgui.h: Remove redefinitions of hash_remove.
7061 * fns.c (hash_remove): Rename to hash_remove_from_table.
7062
70632008-07-19 Seiji Zenitani <zenitani@mac.com>
7064
7065 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7066 strdup() the family UTF8String before modifying it.
7067
70682008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7069
7070 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7071 NS_FACE_BACKGROUND with 0 instead of nil.
7072 * nsfont.m (nsfont_draw): Same.
7073
70742008-07-19 Chong Yidong <cyd@stupidchicken.com>
7075
7076 * nsfns.m (ns_set_background_color): Fix crash.
7077
70782008-07-18 Chong Yidong <cyd@stupidchicken.com>
7079
7080 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7081
70822008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7083
7084 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7085
70862008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7087
7088 * gtkutil.c: Include <config.h> instead of "config.h".
7089
7090 * lisp.h (Foverlay_buffer): Add EXFUN.
7091
7092 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7093 child process to complete child_setup. Undo 2005-09-21 change.
7094
7095 * s/darwin.h: Mention setsid after vfork.
7096
70972008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7098
7099 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7100 Depend on macgui.h.
7101
7102 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7103 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7104
7105 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7106 and f19.
7107 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7108
7109 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7110 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7111 Remove enumerators.
7112
7113 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7114 Check if FACE_FROM_ID returns NULL.
7115
71162008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7117
7118 * w32inevt.c (change_frame_size): Remove extern declaration.
7119 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7120 change_frame_size.
7121
71222008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7123
7124 * getloadavg.c: Revert last change (2008-07-15).
7125
71262008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7127
7128 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7129 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7130 from configure.
7131
71322008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7133
7134 * s/sol2.h:
7135 * s/sol2-4.h: Reorganize conditionals.
7136
7137 * ecrt0.c: Remove code depending on m68000, not used anymore.
7138
7139 * fns.c (hash_remove): Make static.
7140 * lisp.h (hash_remove): Don't prototype.
7141
7142 * m/ibmrs6000.h:
7143 * m/ibms390x.h:
7144 * m/macppc.h: Remove boilerplate comments.
7145
7146 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7147 Solaris, which does not need them.
7148
7149 * m/vax.h: Remove comments about unsupported systems.
7150
7151 * s/darwin.h: Reorganize ifdefs.
7152
71532008-07-17 Andreas Schwab <schwab@suse.de>
7154
7155 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7156
71572008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7158
7159 Use SDATA. Follow coding convention of placing operators at
7160 beginning of next line rather than end of previous line, and placing
7161 spaces around infix operators.
7162
7163 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7164 in case it was defined already.
7165 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7166 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7167 ns_default.
7168 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7169 Lisp_Objects.
7170 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7171 (ns_defined_color, ns_color_to_lisp): Declare.
7172 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7173 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7174 it's accepted even with USE_LISP_UNION_TYPE.
7175 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7176 (update_frame_tool_bar): Remove apparently obsolete tests for
7177 non-integerness of f->tool_bar_lines.
7178 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7179 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7180 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7181 (nsfont_open): Don't confuse NULL for Qnil.
7182 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7183 * menu.h (find_and_call_menu_selection):
7184 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7185 (find_and_return_menu_selection): Always return something.
7186 * frame.h: Include dispextern.h for Display_Info.
7187 (display_x_get_resource): Declare.
7188
71892008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7190
7191 * syntax.c: Remove stdio.h include accidentally introduced in
7192 Emacs.app commit.
7193 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7194 NS_IMPL_COCOA.
7195 * keyboard.c (handle_async_input, input_available_signal): Remove
7196 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7197
71982008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7199
7200 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7201 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7202 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7203 Use SDATA.
7204
7205 * keymap.c: Remove all NS-specific code.
7206 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7207 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7208 where_is_preferred_modifier, return a different value depending on how
7209 preferred is the binding.
7210 (where_is_internal): Adjust accordingly.
7211 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7212 Adjust to new preferred_sequence_p.
7213 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7214 * keyboard.c (parse_solitary_modifier): Not static any more.
7215 * keyboard.h (parse_solitary_modifier): Declare.
7216
72172008-07-16 Andreas Schwab <schwab@suse.de>
7218
7219 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7220 of easymenu.
7221
72222008-07-16 Chong Yidong <cyd@stupidchicken.com>
7223
7224 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7225 that we don't move off the line.
7226
72272008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7228
7229 * keyboard.c (Qsuper): Remove.
7230 (parse_menu_item): Don't call where_is_internal specially for NS.
7231
72322008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7233
7234 * s/gnu-linux.h: Remove boilerplate comments.
7235
7236 * m/alpha.h (__ELF__): Consolidate conditions.
7237
7238 * m/m68k.h (linux): Use GNU_LINUX instead.
7239 Remove boilerplate comments.
7240
7241 * m/intel386.h: Undo refactoring from previous change.
7242 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7243 too, remove dead code.
7244 (linux): Use GNU_LINUX instead.
7245
72462008-07-16 Jason Rumney <jasonr@gnu.org>
7247
7248 * w32gui.h: Repeat 26 June changes lost by last change.
7249
72502008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7251
7252 * systty.h: Remove code for Aix on 386, unsupported platform.
7253
7254 * s/ms-w32.h: Remove boilerplate comments.
7255 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7256
7257 * s/gnu-linux.h (TERM): Remove support.
7258 (HAVE_SYSVIPC): Remove, unused.
7259 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7260 for this system.
7261
7262 * process.c: Remove support for IRIS, unused.
7263 Remove support for TERM, not relevant anymore.
7264
7265 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7266 used with the definition.
7267
7268 * s/aix4-2.h (static): Do not undef.
7269
7270 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7271 only used on Aix.
7272 (HAVE_SYSVIPC): Remove, unused.
7273
7274 * m/hp800.h (CANNOT_DUMP): Do not undef.
7275
7276 * m/alpha.h: Fix comment.
7277
7278 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7279 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7280 used by this configuration.
7281 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7282 * unexec.c: Remove code depending on HPUX and
7283 USG_SHARED_LIBRARIES, not used with this file. Remove code
7284 depending on IRIS, unused. Remove if 0-ed code.
7285
7286 * s/template.h: Remove comments about static.
7287
7288 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7289 Remove if 0-ed code.
7290 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7291 were the same as the default.
7292 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7293 Remove boilerplate comments.
7294 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7295 (HAVE_SYSVIPC): Remove, unused.
7296 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7297
7298 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7299 Remove boilerplate comments.
7300 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7301 Remove boilerplate comments.
7302 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7303 Remove boilerplate comments.
7304 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7305
7306 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7307 USG systems which do not use DATA_SEG_BITS.
7308 Refactor code. Remove boilerplate comments.
7309
7310 * m/ibms390.h:
7311 * m/m68k.h:
7312 * s/bsd-common.h:
7313 * s/cygwin.h:
7314 * s/darwin.h:
7315 * s/freebsd.h:
7316 * s/gnu.h:
7317 * s/msdos.h: Remove boilerplate comments.
7318
7319 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7320 do not use this file.
aac0c6e3
MR
7321 (IRIS_4D): Remove, unused.
7322
7323 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7324 do not use this file.
aac0c6e3
MR
7325 (SIGN_EXTEND_CHAR):
7326 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7327 * unexmips.c: Remove file, unused.
7328
7329 * editfns.c (Fuser_full_name): Replace the only use of
7330 USER_FULL_NAME with its value.
7331 * config.in: Regenerate.
7332
73332008-07-16 David Reitter <david.reitter@gmail.com>
7334
7335 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7336 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7337
73382008-07-16 Glenn Morris <rgm@gnu.org>
7339
7340 * emacs.c (system-type): Doc fix.
7341
73422008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7343
7344 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7345 If the cache doesn't work, let's fix it, rather than work around it.
7346
73472008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7348
7349 * Makefile.in: Correct additions for nsfont.o in last commit.
7350 * nsfont.m: New file (forgot last commit).
7351
73522008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7353
7354 * callproc.c (set_initial_environment): Initialize
7355 Vprocess_environment under CANNOT_DUMP (fixes crash when
7356 batch-compiling for bootstrap).
7357
73582008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7359 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7360
7361 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7362 fix crash due to different init order.
7363
73642008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7365
7366 Changes and additions for NeXTstep windowing system (Cocoa and
7367 GNUstep) support.
7368
7369 * Makefile.in:
7370 * config.in: Support defines and build commands for NS port.
7371 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7372 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7373 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7374 windowing.
7375 (struct face): Add synth_ital field.
7376 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7377 (init_display): Initialize Vinitial_window_system to "ns" when so
7378 compiled.
7379 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7380 (display_arg): Use under NS.
7381 (main): Under NS, allocate autorelease pool and handle command line
7382 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7383 (standard_args): Add NS-specific args.
7384 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7385 * font.c (DEFAULT_ENCODING): New variable.
7386 (font_find_for_lface): Use it.
7387 (syms_of_font): Load syms_of_nsfont under NS.
7388 * font.h: Declare nsfont_driver when compiled under NS.
7389 * fontset.c: When compiling under NS, include nsterm.h.
7390 (fontset_from_font): Autoconstruct fontset under NS.
7391 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7392 symbol, document and use it.
7393 (do_switch_frame): When for_deletion under Cocoa, add
7394 Fraise_frame(Qnil).
7395 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7396 (x_get_arg): Allow "yes" and "no" as boolean values.
7397 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7398 Qright under Cocoa.
7399 (focus-follows-mouse): Default to 0 under NS.
7400 * frame.h (enum output_method): Add output_ns.
7401 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7402 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7403 (FRAME_WINDOW_P): NS-specific definition.
7404 * fringe.c (max_used_fringe_bitmap): Make public.
7405 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7406 (getloadavg): Use NeXT code under descendant OS's.
7407 * image.c (includes and header section, x_create_bitmap_from_data)
7408 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7409 (image_background_transparent, x_clear_image_1)
7410 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7411 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7412 (x_to_xcolors, x_from_xcolors, x_disable_image)
7413 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7414 other GUIs, including XPM support using code originally written for
7415 Carbon GUI.
7416 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7417 using NS API.
7418 (image_ascent): Use font metrics macros instead of direct struct field
7419 access.
7420 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7421 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7422 Also, handle NS as GTK for menu bar purposes.
7423 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7424 toolkit where they differ.
7425 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7426 use cachelist, still needed under NS.
7427 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7428 (struct widget_value): Define it here for menu.c.
7429 * keymap.c (includes): Include modifier internals.
7430 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7431 NS.
7432 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7433 support for preferring sequences using certain modifiers, specified by
7434 the FIRSTONLY argument.
7435 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7436 under NS GNUstep implementation.
7437 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7438 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7439 * menu.c: Include nsterm.h under NS.
7440 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7441 (free_menubar_widget_tree_value, update_submenu_strings)
7442 (find_and_call_menu_selection): Treat NS as X and NT.
7443 (find_and_return_menu_selection): New function, used for popup menus.
7444 * nsgui.h:
7445 * nsterm.h:
7446 * nsfns.m:
7447 * nsimage.m:
7448 * nsmenu.m:
7449 * nsselect.m:
7450 * nsterm.m: New files.
7451 * process.c (wait_reading_process_output): Under NS, call ns_select()
7452 instead of plain select().
7453 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7454 beginning of buffer.
7455 * sysselect.h (init_process): Rename when compiling under Cocoa to
7456 avoid name conflict.
7457 * termhooks.h (display_info): Add ns_display_info to union.
7458 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7459 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7460 COCOA environment.
7461 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7462 unexec() signature. (Note, this will dump, but the resulting file
7463 crashes; unexosx is used instead; keeping around for reference and
7464 possible aid in getting dump working under GNUstep.)
7465 * w32gui.h (button_type, widget_value): Remove definitions (now in
7466 keyboard.h).
7467 * window.c: Include nsterm.h when compiling under NS.
7468 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7469 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7470 other GUI windowing systems.
7471 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7472 GTK.
7473 (x_consider_frame_title): Under NS, set icon type and frame
7474 modified-state indicator; use ns_set_name_as_filename() when using
7475 formatted title.
7476 (update_window_cursor): Make public when compiling under NS.
7477 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7478 (hourglass_atimer, Vhourglass_delay
7479 * xfaces.c (header section, init_frame_faces, clear_font_table)
7480 (defined_color, unload_color, x_face_list_fonts)
7481 (prepare_face_for_display): Add NS support parallel to other GUIs.
7482 Emulate GCs like other non-X GUIs.
7483 (split_font_name): Don't lowercase font name under NS.
7484 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7485 under NS.
7486 * s/darwin.h: Add support for compilation under NS.
7487
74882008-07-15 Jason Rumney <jasonr@gnu.org>
7489
7490 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7491 (w32_show_hourglass): Rename from show_hourglass.
7492 (w32_hide_hourglass): Rename from hide_hourglass.
7493 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7494 (Vhourglass_delay): Declare extern.
7495 (hourglass_started): Remove.
7496
7497 * xdisp.c (Vhourglass_delay): Remove static.
7498 (hourglass_started, start_hourglass, cancel_hourglass):
7499 Don't include these versions on WINDOWSNT.
7500
75012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7502
7503 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7504 variables (formerly in xfns.c).
7505 (show_hourglass, hide_hourglass): New prototypes (same).
7506 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7507 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7508 in xfns.c).
7509 (syms_of_xdisp): Declare/initialize display-hourglass,
7510 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7511 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7512 formerly in xfns.c.
7513 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7514 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7515 (start_hourglass, cancel_hourglass): Remove.
7516 (show_hourglass, hide_hourglass): Remove prototypes and static
7517 modifiers.
7518 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7519 hourglass_atimer, hourglass_shown_p declaration/initialization.
7520 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7521 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7522 (start_hourglass, cancel_hourglass): Remove.
7523 (show_hourglass, hide_hourglass): Remove prototypes and static
7524 modifiers.
7525 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7526 hourglass_atimer, hourglass_shown_p declaration/initialization.
7527 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7528 (DEFAULT_HOURGLASS_DELAY): Remove.
7529 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7530 hourglass_shown_p declaration/initialization.
7531
75322008-07-14 Jason Rumney <jasonr@gnu.org>
7533
7534 * w32fns.c (w32_get_arg): Remove wrapper function.
7535 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7536 directly.
7537 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7538
75392008-07-14 Kenichi Handa <handa@m17n.org>
7540
7541 * xfont.c (xfont_open): Add workaround for X's bug.
7542
75432008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7544
7545 * fontset.c: Include <stdio.h> unconditionally.
7546
75472008-07-13 Michael Albinus <michael.albinus@gmx.de>
7548
7549 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7550 for filtering.
7551
75522008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7553
7554 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7555
7556 * m/macppc.h:
7557 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7558
7559 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7560 (SPECIAL_EMACS_INT):
7561 * m/ia64.h (SPECIAL_EMACS_INT):
7562 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7563 * s/gnu.h (NLIST_STRUCT):
7564 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7565 * s/gnu-linux.h (LINUX):
7566 * s/msdos.h (HAVE_FACES):
7567 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7568
7569 * systty.h:
7570 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7571 anymore.
7572
75732008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7574
7575 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7576 always defined as int.
7577
7578 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7579 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7580 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7581 * s/freebsd.h (HAVE_WAIT_HEADER):
7582 * s/bsd-common.h (HAVE_UNION_WAIT):
7583 * s/aix4-2.h (HAVE_WAIT_HEADER):
7584 * m/mips.h (HAVE_UNION_WAIT):
7585 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7586 (COFF, static): Do not define, they are undefined later in the file.
7587
7588 * process.c (update_status): Don't use a union.
7589 (status_convert):
7590 (sigchld_handler): Use int instead of WAITTYPE.
7591
75922008-07-12 Chong Yidong <cyd@stupidchicken.com>
7593
7594 * indent.c (Fvertical_motion): Restore hscroll before moving to
7595 goal column.
7596
75972008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7598
7599 * lisp.h: Remove left over code.
7600
76012008-07-11 Andreas Schwab <schwab@suse.de>
7602
7603 * lisp.h: Fix logic in last change.
7604
7605 * menu.h: New file.
7606 * menu.c: Include it.
7607 * xmenu.c: Likewise.
7608 * Makefile.in: Update dependencies.
7609
76102008-07-11 Kenichi Handa <handa@m17n.org>
7611
7612 * fontset.c (fontset_from_font): Cancel the previous change.
7613
76142008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7615
7616 * lisp.h:
7617 * w32heap.c:
7618 * emacs.c:
7619 * alloc.c: Replace all references of NO_UNION_TYPE with
7620 USE_LISP_UNION_TYPE.
7621
7622 * m/xtensa.h (NO_UNION_TYPE):
7623 * m/vax.h (NO_UNION_TYPE):
7624 * m/template.h (NO_UNION_TYPE):
7625 * m/sparc.h (NO_UNION_TYPE):
7626 * m/mips.h (NO_UNION_TYPE):
7627 * m/macppc.h (NO_UNION_TYPE):
7628 * m/m68k.h (NO_UNION_TYPE):
7629 * m/iris4d.h (NO_UNION_TYPE):
7630 * m/intel386.h (NO_UNION_TYPE):
7631 * m/ibms390x.h (NO_UNION_TYPE):
7632 * m/ibms390.h (NO_UNION_TYPE):
7633 * m/ibmrs6000.h (NO_UNION_TYPE):
7634 * m/ia64.h (NO_UNION_TYPE):
7635 * m/hp800.h (NO_UNION_TYPE):
7636 * m/arm.h (NO_UNION_TYPE):
7637 * m/amdx86-64.h (NO_UNION_TYPE):
7638 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7639 defining it the same.
7640
76412008-07-10 Chong Yidong <cyd@stupidchicken.com>
7642
7643 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7644
76452008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7646
7647 * fileio.c:
7648 * sysdep.c
7649 * systty.h:
7650 * m/ibmrs6000.h:
7651 * m/iris4d.h:
7652 * s/aix4-2.h:
7653 * s/freebsd.h:
7654 * s/gnu-linux.h:
7655 * s/hpux10-20.h:
7656 * s/hpux11.h:
7657 * s/netbsd.h:
7658 * s/sol2-3.h:
7659 * s/sol2-4.h:
7660 * s/sol2.h:
7661 * s/usg5-4.h:
7662 * s/vms.h: Remove references to unused variables.
7663
76642008-07-10 Andreas Schwab <schwab@suse.de>
7665
7666 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7667 pattern before matching the generic family.
7668
76692008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7670
7671 * unexec.c:
7672 * s/vms.h:
7673 * s/usg5-4-2.h:
7674 * s/sol2-5.h:
7675 * s/freebsd.h:
7676 * s/darwin.h: Remove dead code.
7677
7678 * m/template.h:
7679 * m/sparc.h:
7680 * m/mips.h:
7681 * m/m68k.h:
7682 * m/iris4d.h:
7683 * m/intel386.h:
7684 * m/ibms390x.h:
7685 * m/ibms390.h:
7686 * m/ia64.h:
7687 * m/hp800.h:
7688 * m/arm.h:
7689 * m/amdx86-64.h: Remove dead code and references to unused
7690 and compiler defined symbols.
7691
7692 * unexmips.c:
7693 * unexelf.c: Remove references to desupported systems.
7694
7695 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7696
7697 * m/powermac.h: Remove boilerplate comments.
7698 (NO_REMAP): Remove unused definition.
7699
7700 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7701 define them.
7702
77032008-07-10 Kenichi Handa <handa@m17n.org>
7704
7705 * xfont.c (xfont_open): Log the reason of failure.
7706
77072008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7708
7709 * fontset.c (fontset_get_font_group):
7710 * font.c (font_check_otf): Specify argument types.
7711
77122008-07-09 Kenichi Handa <handa@m17n.org>
7713
7714 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7715 non-ASCII char is found.
7716
7717 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7718 (reorder_font_vector): Change the arg preferred_family to font.
7719 Prefer the spec matching with font.
7720 (fontset_get_font_group): New function.
7721 (fontset_find_font): Change the format of an element of a realized
7722 fontset. Use fontset_get_font_group.
7723 (fontset_font): Try the current fontset, the default fontset, the
7724 fallbacks of the current fontset, and the fallbacks of the default
7725 fontset in this order.
7726 (face_for_char): Delete the shortcut to use the current font.
7727 (fontset_from_font): Don't set fonts for Latin in the fontset.
7728
7729 * font.h (font_make_object, font_match_p): Adjust prototypes.
7730
7731 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7732
7733 * font.c (font_make_object): New arg entity and pixelsize.
7734 (font_check_otf_features, font_check_otf): New functions.
7735 (font_match_p): Check :lang, :script, and :otf properties.
7736
7737 * xfont.c (xfont_open): Adjust it for the change of
7738 font_make_object.
7739 (xfont_text_extents): Fix initial setting of metrics.
7740
7741 * ftfont.c (struct ftfont_info): New member index, delete member
7742 fc_charset_idx. Make the member order compatible with struct
7743 xftfont_info.
7744 (fc_charset_table): Change charset names to registry names.
7745 (ftfont_pattern_entity): Delete the args registry and
7746 fc_charset_idx. Change the value of :font-entity property
7747 to (FONTNAME . INDEX). Always set :registry property to
7748 `iso10646-1'.
7749 (struct ftfont_cache_data): New struct.
7750 (ftfont_lookup_cache): New arg for_face.
7751 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7752 (ftfont_driver): Set the member otf_capability.
7753 (ftfont_get_charset): Adjust it for the change of
7754 fc_charset_table.
7755 (OTF_TAG_SYM): New macro.
7756 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7757 for the change of fc_charset_table.
7758 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7759 ftfont_pattern_entity. Add FC_INDEX to objset.
7760 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7761 and ftfont_pattern_entity.
7762 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7763 font_make_object, struct ftfont_info.
7764 (ftfont_has_char): Use ftfont_get_fc_charset.
7765 (ftfont_otf_features, ftfont_otf_capability): New functions.
7766 (ftfont_shape): Use ftfont_get_otf.
7767 (ftfont_text_extents): Fix initial setting of metrics.
7768
7769 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7770 member order compatible with struct ftfont_info.
7771 (xftfont_open): Add FC_CHARSET to the pattern. Set
7772 xftfont_info->ft_size. Don't unlock the face. Check BDF
7773 properties if appropriate.
7774 (xftfont_close): Unlock the face.
7775 (xftfont_anchor_point, xftfont_shape): Deleted.
7776 (syms_of_xftfont): Don't set members anchor_point and shape of
7777 xftfont_driver.
7778
7779 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7780 font_make_object.
7781
7782 * w32font.c (w32font_open): Adjust it for the change of
7783 font_make_object.
7784 (w32font_open_internal): Don't set properties of font_object here.
7785
77862008-07-08 Chong Yidong <cyd@stupidchicken.com>
7787
7788 * macfns.c (x_create_tip_frame):
7789 * w32fns.c (x_create_tip_frame):
7790 * xfns.c (x_create_tip_frame): Pass parameter argument to
7791 face-set-after-frame-default.
7792
7793 * xfaces.c (Finternal_merge_in_global_face): Save merged
7794 attributes for the default face back into the face vector.
7795
77962008-07-08 Andreas Schwab <schwab@suse.de>
7797
7798 * fontset.h: Declare fontset_from_font. Don't declare
7799 new_fontset_from_font and fontset_from_font_name.
7800 * xterm.c: Include "fontset.h".
7801 * Makefile.in (xterm.o): Update dependencies.
7802
78032008-07-08 Glenn Morris <rgm@gnu.org>
7804
7805 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7806 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7807
78082008-07-07 Chong Yidong <cyd@stupidchicken.com>
7809
7810 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7811 (x_set_frame_parameters): Don't bind it.
7812
78132008-07-07 Juanma Barranquero <lekktu@gmail.com>
7814
7815 * w32fns.c (map_w32_filename): Declare extern.
7816
78172008-07-07 Jason Rumney <jasonr@gnu.org>
7818
7819 * w32term.c (WS_EX_LAYERED): Define if not already.
7820
78212008-07-06 Chong Yidong <cyd@stupidchicken.com>
7822
7823 * xfaces.c (set_font_frame_param): Don't try to set the font
7824 parameter if it is still unspecified in the lface.
7825
78262008-07-05 Chong Yidong <cyd@stupidchicken.com>
7827
7828 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7829 face if it didn't already exist.
7830
7831 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7832
78332008-07-05 Andreas Schwab <schwab@suse.de>
7834
7835 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7836
78372008-07-05 Chong Yidong <cyd@stupidchicken.com>
7838
7839 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7840 word-wrapping.
7841 (IT_DISPLAYING_WHITESPACE): New macro.
7842 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7843 when word-wrapping. Simplify word-wrapping logic. Use correct
7844 pixel positions when saving copies of the iterator.
7845 (display_line): Use proper wrap point if the last character on a
7846 line was preceded by whitespace.
7847
78482008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7849
7850 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7851
78522008-07-04 Kenichi Handa <handa@m17n.org>
7853
7854 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7855
7856 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7857
78582008-07-02 Jason Rumney <jasonr@gnu.org>
7859
7860 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7861 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7862
7863 * xdisp.c (next_element_from_display_vector): Move assignment out
7864 of if statement.
7865
78662008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7867
7868 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7869
7870 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7871 (syms_of_fileio): Initialize and export them.
7872 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7873
7874 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7875 (Fsystem_move_file_to_trash): New function.
7876 (syms_of_w32fns): Export it to lisp.
7877
78782008-07-01 Jason Rumney <jasonr@gnu.org>
7879
7880 * w32font.c (w32font_text_extents): Don't count overhang as part
7881 of width.
7882
78832008-06-30 Miles Bader <miles@gnu.org>
7884
7885 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7886 Add `avoid_cursor_p' field.
7887
7888 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7889 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7890 (append_glyph, append_composite_glyph, produce_image_glyph)
7891 (append_stretch_glyph): Initialize avoid_cursor_p.
7892 (get_it_property): Rename from `get_line_height_property'.
7893 (x_produce_glyphs): Use get_it_property.
7894 (handle_line_prefix, push_display_prop): New functions.
7895 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7896 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7897 New variables.
7898 (syms_of_xdisp): Initialize them.
7899
79002008-06-30 Kenichi Handa <handa@m17n.org>
7901
7902 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7903 XftDefaultSubstitute (they are called in XftFontMatch).
7904 (xftfont_open): Fix args to ftfont_font_format.
7905
7906 * ftfont.c (fc_charset_table): New member lang.
7907 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7908 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7909 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7910 (ftfont_open): Fix args to ftfont_font_format.
7911 (ftfont_font_format): New arg filename.
7912
79132008-06-30 Chong Yidong <cyd@stupidchicken.com>
7914
7915 * xfaces.c (Finternal_merge_in_global_face): If default face was
7916 modified, realize it again. Update the font face attribute.
7917
79182008-06-29 Jason Rumney <jasonr@gnu.org>
7919
7920 * w32term.c (x_set_frame_alpha): Fix logic.
7921
79222008-06-29 Kenichi Handa <handa@m17n.org>
7923
7924 * fontset.c (Finternal_char_font): Return font-object instead of
7925 font-name.
7926
7927 * composite.c (get_composition_id): Fix the width calculation for TAB.
7928
79292008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7930
7931 * indent.c (Fvertical_motion): Properly handle float column arg.
7932
79332008-06-28 Jason Rumney <jasonr@gnu.org>
7934
7935 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7936 (pfnSetLayeredWindowAttributes): New function pointer.
7937 (w32_initialize): Initialize it when supported.
7938 (x_set_frame_alpha): New function.
7939
7940 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7941 (w32_frame_parm_handlers): Set alpha handler.
7942
7943 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7944
79452008-06-27 Jason Rumney <jasonr@gnu.org>
7946
7947 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7948 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7949 (w32_to_x_charset, x_to_w32_charset)
7950 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7951 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7952 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7953 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7954 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7955 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7956 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7957 (Qw32_charset_unicode): Remove.
7958 (syms_of_w32fns): Update for above changes.
7959
7960 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7961 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7962 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7963 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7964 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7965 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7966 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7967 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7968 (syms_of_w32font): Update for above changes.
7969
79702008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7971
7972 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7973 removed #if.
7974 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7975
79762008-06-26 Juanma Barranquero <lekktu@gmail.com>
7977 Eli Zaretskii <eliz@gnu.org>
7978
7979 * makefile.w32-in (LOCAL_FLAGS):
7980 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7981
7982 * sysdep.c (_spawnlp, _getpid):
7983 Declare with explicit _cdecl instead of _CRTAPI1.
7984
7985 * editfns.c (Fget_internal_run_time):
7986 Check for WINDOWSNT with #ifdef, not #if.
7987
79882008-06-26 Jason Rumney <jasonr@gnu.org>
7989
7990 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7991
7992 * w32term.c (x_draw_glyph_string_foreground)
7993 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7994 Use FONT_HANDLE macro.
7995 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7996
7997 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7998 (uniscribe_encode_char): Use FONT_HANDLE macro.
7999
8000 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8001 (w32font_text_extents): Use precast w32_font.
8002 (w32font_close): Free cached metrics.
8003 (w32font_open_internal): Allocate space for name on stack.
8004
80052008-06-26 Chong Yidong <cyd@stupidchicken.com>
8006
8007 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8008
80092008-06-26 Jason Rumney <jasonr@gnu.org>
8010
8011 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8012 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8013
80142008-06-26 Juanma Barranquero <lekktu@gmail.com>
8015
8016 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8017
80182008-06-26 Jason Rumney <jasonr@gnu.org>
8019
8020 * w32bdf.c, w32bdf.h: Remove obsolete files.
8021
8022 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8023
8024 * w32gui.h: Don't include w32bdf.h.
8025 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8026 Remove obsolete font support.
8027
8028 * w32font.h (struct w32font_info): Remove compat_w32_font.
8029 Add hfont member.
8030 (FONT_COMPAT): Remove obsolete macro.
8031
8032 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8033 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8034 (w32font_open_internal): Remove compat code. Set new hfont member.
8035 (Fx_select_font): Use new hfont member.
8036
8037 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8038 (uniscribe_encode_char): Use new hfont member.
8039
8040 * w32term.c (x_draw_glyph_string_foreground)
8041 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8042 (x_draw_glyph_string): Use metrics in w32font_info.
8043
80442008-06-26 Kenichi Handa <handa@m17n.org>
8045
8046 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8047
80482008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8049
8050 * unexnext.c:
8051 * m/ews4800.h:
8052 * m/hp9000s300.h:
8053 * m/ibm370aix.h:
8054 * m/mips-siemens.h:
8055 * m/ncr386.h:
8056 * m/next.h:
8057 * m/pmax.h:
8058 * m/powerpcle.h:
8059 * m/tandem-s2.h:
8060 * s/386bsd.h:
8061 * s/bsd386.h:
8062 * s/bsd4-1.h:
8063 * s/bsd4-2.h:
8064 * s/bsdos2-1.h:
8065 * s/bsdos2.h:
8066 * s/bsdos3.h:
8067 * s/bsdos4.h:
8068 * s/nextstep.h:
8069 * s/ultrix4-3.h:
8070 * s/usg5-0.h:
8071 * s/usg5-2-2.h:
8072 * s/usg5-2.h:
8073 * s/usg5-4-3.h:
8074 * s/ux4800.h:
8075 * s/uxpds.h:
8076 * s/uxpv.h: Remove support for obsolete systems.
8077 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8078 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8079 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8080 Remove, insert contents in s/aix4-2.h.
8081 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8082 * s/bsd4-3.h: Rename to ...
8083 * s/bsd-common.h: ... this.
8084 * data.c:
8085 * doc.c:
8086 * ecrt0.c:
8087 * emacs.c:
8088 * fileio.c:
8089 * floatfns.c:
8090 * keyboard.c:
8091 * mem-limits.h:
8092 * print.c:
8093 * process.c:
8094 * sysdep.c:
8095 * syssignal.h:
8096 * systty.h:
8097 * syswait.h:
8098 * term.c:
8099 * unexec.c:
8100 * unexelf.c:
8101 * unexhp9k800.c:
8102 * m/hp800.h:
8103 * m/ibmrs6000.h:
8104 * m/mips.h:
8105 * m/vax.h:
8106 * s/darwin.h:
8107 * s/freebsd.h:
8108 * s/gnu.h:
8109 * s/ms-w32.h:
8110 * s/msdos.h:
8111 * s/netbsd.h:
8112 * s/template.h: Remove references to obsolete variables.
8113
8114 * Makefile.in: Add dependencies for all unexec files.
8115 (admindir): Remove unused variable.
8116 (UNEXEC_SRC): Remove references.
8117
81182008-06-25 Chong Yidong <cyd@stupidchicken.com>
8119
8120 * xfns.c (x_default_font_parameter): If Xft is available, first
8121 try Monospace-12 for the default font.
8122
81232008-06-25 Jason Rumney <jasonr@gnu.org>
8124
8125 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8126
81272008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8128
8129 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8130
8131 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8132
81332008-06-25 Juanma Barranquero <lekktu@gmail.com>
8134
8135 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8136 <scroll-conservatively>: Fix typo in docstring.
8137
8138 * xselect.c (Fx_send_client_event): Doc fix.
8139
81402008-06-25 Kenichi Handa <handa@m17n.org>
8141
8142 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8143
8144 * font.c (font_parse_fcname): Remove unused variables.
8145 (font_sort_entites): Delete the arg SPEC. Caller changed.
8146 Fix for the case of ! best_only.
8147 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8148
8149 * lisp.h (Fstring_to_unibyte): EXFUN it.
8150
8151 * character.h (str_to_unibyte): Extern it.
8152
8153 * character.c (str_to_unibyte): New function.
8154
8155 * fns.c (Fstring_to_unibyte): New function.
8156 (syms_of_fns): Defsubr it.
8157
81582008-06-24 Kenichi Handa <handa@m17n.org>
8159
8160 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8161 DPI too.
8162 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8163
81642008-06-24 Andreas Schwab <schwab@suse.de>
8165
8166 * Makefile.in (${lispsource}loaddefs.el): Rename from
8167 ../lisp/loaddefs.el.
8168 (bootstrap-clean): Do what distclean does but don't remove
8169 Makefile.
8170 (distclean): Depend on bootstrap-clean and remove Makefile.
8171
81722008-06-24 Chong Yidong <cyd@stupidchicken.com>
8173
8174 * buffer.h (struct buffer): New member word_wrap.
8175
8176 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8177 word-wrap.
8178 (init_buffer_once): Initialize them.
8179
8180 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8181 line_wrap enum possessing three possible values.
8182
8183 * termopts.h: Replace truncate_partial_width_windows with
8184 Vtruncate_partial_width_windows.
8185
8186 * dispnew.c (direct_output_for_insert): Avoid direct output when
8187 inserting a space with word wrap on.
8188
8189 * indent.c (compute_motion): Obey integer values of
8190 truncate-partial-width-windows.
8191
8192 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8193 replacing truncate_partial_width_windows.
8194 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8195 truncate only if the window width is below that integer.
8196 (start_display, resize_mini_window, produce_stretch_glyph)
8197 (display_string, move_it_in_display_line_to): Use line_wrap.
8198 (back_to_previous_visible_line_start, reseat_1): Reset
8199 string_from_display_prop_p.
8200 (display_line): Extend default face to end of line when wrapping.
8201
82022008-06-24 Kim F. Storm <storm@cua.dk>
8203
8204 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8205 to wrap continued lines at word boundaries.
8206
82072008-06-24 Jason Rumney <jasonr@gnu.org>
8208
8209 * font.c (Ffont_face_attributes): Multiply pixel size before point
8210 conversion to avoid multiplying rounding error.
8211
82122008-06-23 Jason Rumney <jasonr@gnu.org>
8213
8214 * w32term.c (x_draw_glyph_string_background)
8215 (x_draw_glyph_string): Remove old bdf font code.
8216
8217 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8218
82192008-06-22 Kenichi Handa <handa@m17n.org>
8220
8221 * font.c (font_find_for_lface): Try the adstyle specified in
8222 the property of LFACE_FONT of LFACE (if any).
8223
82242008-06-21 Seiji Zenitani <zenitani@mac.com>
8225 Ryo Yoshitake <ryo@shiftmode.net>
8226
8227 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8228
82292008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8230
8231 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8232 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8233 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8234 (witness-emacs): Remove.
8235 (lisp, shortlisp): Move loaddefs.el earlier.
8236 (mostlyclean): Forget about witness-emacs.
8237
82382008-06-22 Glenn Morris <rgm@gnu.org>
8239
8240 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8241 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8242
82432008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8244
8245 * Makefile.in (PRECOMP): Remove.
8246 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8247 (witness-emacs): Run `compile-first'.
8248 (.el.elc): Use the new compile-onefile target.
8249
82502008-06-21 Kenichi Handa <handa@m17n.org>
8251
8252 * xftfont.c (xftfont_open): Handle QCembolden only when
8253 FC_EMBOLDEN is defined.
8254
82552008-06-21 Andreas Schwab <schwab@suse.de>
8256
8257 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8258 (.el.elc): Likewise.
8259
82602008-06-21 Miles Bader <miles@gnu.org>
8261
8262 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8263 build dir, not the lisp source dir.
8264
82652008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8266
8267 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8268 (bootstrapclean): Remove.
8269 (.el.elc): New rule.
8270 (PRECOMP): New var.
8271 (../lisp/subdirs.el): Remove.
8272 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8273 (witness-emacs): New target.
8274 (mostlyclean): Remove witness-emacs as well.
8275 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8276 Add witness-emacs dependency.
8277
82782008-06-20 Chong Yidong <cyd@stupidchicken.com>
8279
8280 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8281 defined by the font.
8282
82832008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8284
8285 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8286 (bootstrap-clean): New target that keeps TAGS around.
8287 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8288 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8289
82902008-06-20 Jason Rumney <jasonr@gnu.org>
8291
8292 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8293 Remove obsolete font code.
8294
8295 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8296 to determine language support.
8297
82982008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8299
8300 * sysdep.c (cfsetspeed): New fun extracted from the code.
8301 (cfmakeraw): Move before first use.
8302
83032008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8304
8305 * sysdep.c (cfmakeraw): Provide fallback implementation.
8306 (serial_configure): Provide fallback implementation of cfsetspeed.
8307
83082008-06-20 Kenichi Handa <handa@m17n.org>
8309
8310 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8311 the pattern.
8312
8313 * fontset.c (fontset_from_font): Copy font_spec before changing
8314 the elements.
8315
8316 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8317
83182008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8319
8320 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8321 for explicit `font' parameters.
8322
8323 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8324
83252008-06-19 Kenichi Handa <handa@m17n.org>
8326
8327 * frame.c: Include <ctype.h>.
8328 (x_set_font_backend): Allow spacing characters in the X resource
8329 for FontBackend.
8330
83312008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8332
8333 * w32fns.c, xfns.c (Qfont_param): New var.
8334 (syms_of_w32fns): Initialize it.
8335 (x_default_font_parameter): Record explicit `font' into
8336 `font-parameter'.
8337
83382008-06-18 Kenichi Handa <handa@m17n.org>
8339
8340 * font.c (font_parse_xlfd): Fix previous change.
8341 (font_parse_fcname): Don't use :fc-unknown-spec.
8342 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8343 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8344 (font_add_log): Prepend the driver name to the resulting fonts.
8345
8346 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8347 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8348 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8349
8350 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8351 (QCembolden): New variables.
8352 (syms_of_xftfont): DEFSYM them.
8353 (xftfont_open): Call XftFontMatch. Don't trust the result of
8354 XftTextExtents8 if the pixel_size is less than 5.
8355
83562008-06-18 Andreas Schwab <schwab@suse.de>
8357
8358 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8359 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8360
83612008-06-18 Jason Rumney <jasonr@gnu.org>
8362
8363 * w32font.c (w32font_list, w32font_match): Add logging.
8364
8365 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8366
83672008-06-17 Chong Yidong <cyd@stupidchicken.com>
8368
8369 * font.c (font_parse_fcname): Store divider characters for
8370 unknown-spec list. For known key symbols, intern using correct
8371 symbol name.
8372
83732008-06-17 Kenichi Handa <handa@m17n.org>
8374
8375 * xfaces.c (realize_default_face): If the frame is not on window
8376 system, set the fontset of face to nil.
8377
83782008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8379
8380 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8381
83822008-06-16 Juanma Barranquero <lekktu@gmail.com>
8383
8384 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8385 (build_font_name_from_vector): Delete externs.
8386
8387 * xfaces.c (struct font_name): Don't declare.
8388
83892008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8390
8391 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8392
83932008-06-16 Chong Yidong <cyd@stupidchicken.com>
8394
8395 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8396
83972008-06-16 Juanma Barranquero <lekktu@gmail.com>
8398
8399 * font.c (Ffont_spec): Fix usage in docstring.
8400 (Ffont_face_attributes): Doc fix.
8401
84022008-06-16 Andreas Schwab <schwab@suse.de>
8403
8404 * font.c (Ffont_face_attributes): Fix definition.
8405
84062008-06-16 Jason Rumney <jasonr@gnu.org>
8407
8408 * font.h (font_style_symbolic_from_value): Remove.
8409
8410 * font.c (font_style_symbolic_from_value): Remove.
8411 (font_style_symbolic): Revert to pre 2008-06-13 version.
8412
8413 * w32font.c (w32_to_fc_weight): New function.
8414 (w32font_full_name, logfont_to_fcname): Use it.
8415
84162008-06-16 Kenichi Handa <handa@m17n.org>
8417
8418 * font.c (font_check_object): Delete it.
8419 (font_clear_cache): Check if a font-object is alive.
8420 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8421 font-object to nil.
8422 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8423 (font_at): Don't call font_check_object.
8424 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8425
84262008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8427
8428 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8429
84302008-06-16 Chong Yidong <cyd@stupidchicken.com>
8431
8432 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8433
84342008-06-15 Chong Yidong <cyd@stupidchicken.com>
8435
8436 * font.c (font_parse_fcname): Only one decimal point.
8437 (font_unparse_fcname): Handle data in family and foundry indices
8438 as symbols, not strings.
8439 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8440
8441 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8442
8443 * font.h (font_unparse_gtkname): Add prototype.
8444
84452008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8446
8447 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8448
84492008-06-15 Andreas Schwab <schwab@suse.de>
8450
8451 * font.c (font_update_drivers): Fix crash when no drivers match.
8452
84532008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8454
8455 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8456 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8457
84582008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8459
8460 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8461
84622008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8463
8464 * process.c (Fserial_process_configure, Fprocess_send_eof):
8465 Use EQ to compare Lisp_Objects.
8466
84672008-06-13 Jason Rumney <jasonr@gnu.org>
8468
8469 * w32fns.c (Fw32_select_font): Remove old font API function.
8470
8471 * w32font.c (logfont_to_fcname): New function.
8472 (Fx_select_font): New font dialog function compatible with
8473 GTK/fontconfig version.
8474
8475 * font.c (font_style_symbolic_from_value): New function.
8476 (font_style_symbolic): Use it.
8477
8478 * font.h (font_style_symbolic_from_value): Declare new function.
8479
84802008-06-13 Juanma Barranquero <lekktu@gmail.com>
8481
8482 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8483 <font-width-table>: Fix typos in docstrings.
8484
84852008-06-13 Daniel Engeler <engeler@gmail.com>
8486
8487 These changes add serial port access.
8488 * process.c: Add HAVE_SERIAL.
8489 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8490 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8491 (list_processes_1, select_wrapper, Fstop_process)
8492 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8493 (status_notify): Modify to handle serial processes.
8494 [HAVE_SERIAL] (Fserial_process_configure)
8495 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8496 New functions.
8497 * process.h (struct Lisp_Process): Add `type'.
8498 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8499 New functions.
8500 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8501 serial ports.
b71ac3dd 8502 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8503 * w32.h: Add FILE_SERIAL.
8504 (struct _child_process): Add ovl_read, ovl_write.
8505
85062008-06-13 Kenichi Handa <handa@m17n.org>
8507
8508 * dispextern.h (enum lface_attribute_index): New member
8509 LFACE_FOUNDRY_INDEX.
8510
8511 * font.c (font_score): Delete arg alternate_families. Check only
8512 weight, slant, width, and size. Ignore the difference of alias
8513 style symbols.
8514 (font_sort_entites): Adjust for the above change. Reflect the
8515 order of font-driver to scores.
8516 (font_list_entities): Don't check alternate_familes here.
8517 (font_clear_prop): Handle foundry.
8518 (font_update_lface): Don't parse "foundry-family" form here.
8519 Handle FONT_FOUNDRY_INDEX.
8520 (font_find_for_lface): Likewise. Handle alternate families here.
8521 If registry is nil, try iso8859-1 and ascii-0.
8522 (font_open_for_lface): Pay attention to size in ENTITY.
8523 (font_open_by_name): Simplify by calling font_load_for_lface.
8524 (free_font_driver_list): Delete it.
8525 (font_update_drivers): Preserve the order of backends.
8526 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8527 of font_score and font_sort_entites.
8528 (font_update_sort_order): Likewise.
8529
8530 * xfaces.c (LFACE_FOUNDRY): New macro.
8531 (check_lface_attrs): Check foundry.
8532 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8533 (merge_face_vectors): Check foundry.
8534 (merge_face_ref): Likewise.
8535 (Finternal_set_lisp_face_attribute): Likewise.
8536 (x_update_menu_appearance): Likewise.
8537 (Finternal_get_lisp_face_attribute): Likewise.
8538 (lface_hash): Likewise.
8539 (lface_same_font_attributes_p): Likewise.
8540 (x_supports_face_attributes_p): Likewise.
8541 (tty_supports_face_attributes_p): Likewise.
8542 (Finternal_set_alternative_font_family_alist): Intern strings.
8543 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8544 (realize_default_face): Set LFACE_FOUNDRY (lface).
8545
8546 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8547 font-driver at first.
8548
8549 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8550
85512008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8552
8553 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8554
85552008-06-12 Jim Meyering <meyering@redhat.com>
8556
8557 Make unexec_free handle NULL the same way free does.
8558 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8559
85602008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8561
8562 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8563 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8564 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8565 (WEAK_ALIAS): Simplify.
8566 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8567 when searching a unibyte buffer.
8568
85692008-06-12 Chong Yidong <cyd@stupidchicken.com>
8570
8571 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8572
85732008-06-12 Juanma Barranquero <lekktu@gmail.com>
8574
8575 * w32font.c: Include ctype.h.
8576
85772008-06-11 Jason Rumney <jasonr@gnu.org>
8578
8579 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8580 misreported as space.
8581 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8582 as aliases for registry iso10646-1.
8583
85842008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8585
8586 * buffer.c (clone_per_buffer_values): Skip `name'.
8587
85882008-06-11 Chong Yidong <cyd@stupidchicken.com>
8589
8590 * font.c (font_parse_fcname): Fix last change; accept decimal
8591 points in font size.
8592
85932008-06-10 Jason Rumney <jasonr@gnu.org>
8594
8595 * w32uniscribe.c (add_opentype_font_name_to_list):
8596 Skip non unicode fonts.
8597
85982008-06-10 Chong Yidong <cyd@stupidchicken.com>
8599
8600 * xfns.c (Fx_font_dialog): New function.
8601
8602 * gtkutil.c (xg_dialog_response_cb): Rename from
8603 xg_file_response_callback.
8604 (pop_down_dialog): Rename from pop_down_file_dialog.
8605 (xg_get_file_name): Callers changed.
8606 (xg_get_font_name): New function.
8607
8608 * gtkutil.h (xg_get_font_name): Insert prototype.
8609
86102008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8611
8612 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8613 x_underline_minimum_display_offset.
8614 (syms_of_xdisp): Declare it here rather than in xterm.c.
8615 * dispextern.h (underline_minimum_offset): Declare it.
8616 * w32term.c (x_draw_glyph_string): Use it.
8617 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8618 (syms_of_xterm): Don't declare it any more.
8619 (x_draw_glyph_string): Adjust to the new name.
8620
86212008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8622
8623 * xterm.c (x_underline_minimum_display_offset): New var.
8624 (x_draw_glyph_string): Use it.
8625 (syms_of_xterm): Declare it.
8626
86272008-06-10 Chong Yidong <cyd@stupidchicken.com>
8628
8629 * font.c (font_parse_fcname): Accept GTK-style font names too.
8630
86312008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8632
8633 * dired.c (file_name_completion): Don't return t if the match is exact
8634 but with different capitalization.
8635 * minibuf.c (Ftry_completion): Simplify.
8636
8637 * window.c (Vwindow_point_insertion_type): New var.
8638 (set_window_buffer): Use it.
8639 (syms_of_window): Init and export it to Lisp.
8640
86412008-06-10 Kenichi Handa <handa@m17n.org>
8642
8643 * font.h (font_intern_prop): Prototype adjusted.
8644
8645 * font.c (font_intern_prop): New arg force_symbol.
8646 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8647 Adjust for the change of font_intern_prop.
8648
8649 * ftfont.c (ftfont_pattern_entity):
8650 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8651 (w32_registry):
8652 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8653 the change of font_intern_prop.
8654
86552008-06-09 Juanma Barranquero <lekktu@gmail.com>
8656
8657 * w32menu.c (digest_single_submenu): Declare extern.
8658
86592008-06-09 Jason Rumney <jasonr@gnu.org>
8660
8661 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8662
8663 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8664 (parse_single_submenu): Remove.
8665 (digest_single_submenu): Remove.
8666 (syms_of_w32menu): Don't initialise variables that have moved
8667 to menu.c.
8668 (set_frame_menubar): Sync with version in xmenu.c.
8669 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8670
8671 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8672 Make static again.
8673
86742008-06-09 Jason Rumney <jasonr@gnu.org>
8675
8676 Changes to w32 files related to the move of common menu code
8677 to menu.c on 2008-06-08 by Chong Yidong.
8678
8679 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8680 defs to w32gui.h.
8681 (single_keymap_panes, push_menu_item, push_menu_pane):
8682 Make globally visible.
8683
8684 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8685 (local_free, malloc_widget_value, free_widget_value)
8686 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8687 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8688 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8689 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8690 (menu_items, menu_items_allocated, menu_items_used)
8691 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8692 (init_menu_items, finish_menu_items, discard_menu_items)
8693 (grow_menu_items, push_submenu_start, push_submenu_end)
8694 (push_left_right_boundary, push_menu_pane, push_menu_item)
8695 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8696 (free_menubar_widget_tree_value, parse_single_submenu)
8697 (update_submenu_strings): Remove functions.
8698 (xmalloc_widget_value): Remove and declare extern.
8699
8700 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8701 (OBJ1): Build it.
8702
8703 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8704 (local_heap, local_alloc, local_free, malloc_widget_value)
8705 (free_widget_value): Define here.
8706
87072008-06-09 Kenichi Handa <handa@m17n.org>
8708
8709 * font.h (Qascii_0): Extern it.
8710
8711 * font.c (Qascii_0): New variable.
8712 (syms_of_font): DEFSYM it.
8713 (font_open_by_name): If the registry "iso8859-1" fails, try also
8714 "ascii-0".
8715
8716 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8717
87182008-06-08 Kenichi Handa <handa@m17n.org>
8719
8720 * .gdbinit (xfont): New command.
8721
87222008-06-08 Andreas Schwab <schwab@suse.de>
8723
8724 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8725 * Makefile.in (menu.o): Update dependencies.
8726
8727 * Makefile.in (obj): Always add menu.o.
8728 * emacs.c (main): Always call syms_of_menu.
8729 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8730
87312008-06-08 Chong Yidong <cyd@stupidchicken.com>
8732
8733 * Makefile.in: Compile menu.c.
8734
8735 * lisp.h: Declare syms_of_menu.
8736
8737 * emacs.c (main): Call syms_of_menu.
8738
8739 * keyboard.h: Relocate platform-independent menu definitions from
8740 xmenu.c.
8741
8742 * menu.c: New file. Relocate platform-independent menu
8743 definitions from xmenu.c. Suggested by Adrian Robert.
8744
8745 * xmenu.c: Remove platform-independent menu definitions.
8746 (menu_items menu_items_inuse, menu_items_allocated)
8747 (menu_items_used, menu_items_n_panes)
8748 (menu_items_submenu_depth): Move to keyboard.h.
8749 (init_menu_items, finish_menu_items, unuse_menu_items)
8750 (discard_menu_items, restore_menu_items, save_menu_items)
8751 (grow_menu_items, push_submenu_start, push_submenu_end)
8752 (push_left_right_boundary, push_menu_pane, push_menu_item)
8753 (keymap_panes, single_keymap_panes, single_menu_item)
8754 (list_of_panes, list_of_items, find_and_call_menu_selection)
8755 (xmalloc_widget_value, free_menubar_widget_value_tree)
8756 (parse_single_submenu, digest_single_submenu)
8757 (update_submenu_strings): Move to menu.c.
8758
87592008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8760
8761 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8762
87632008-06-06 Miles Bader <miles@gnu.org>
8764
8765 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8766 face, not frame default.
8767
87682008-06-05 Martin Rudalics <rudalics@gmx.at>
8769
8770 * window.c (pop_up_windows, pop_up_frames)
8771 (display_buffer_reuse_frames, Vpop_up_frame_function)
8772 (Vdisplay_buffer_function, Veven_window_heights)
8773 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8774 (Vspecial_display_function, Vsame_window_buffer_names)
8775 (Vsame_window_regexps, split_height_threshold)
8776 (Vsplit_window_preferred_function): Move those vars to window.el.
8777 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8778 (Fdisplay_buffer): Move those functions to window.el.
8779 (syms_of_window): Remove corresponding declarations.
8780 (display_buffer): New function.
8781 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8782 * dispnew.c (Flast_nonminibuf_frame): New function.
8783 * buffer.c (Fpop_to_buffer): Move to window.el.
8784
87852008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8786
8787 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8788
87892008-06-05 Kenichi Handa <handa@m17n.org>
8790
8791 * coding.c (detect_coding): Fix previous change.
8792 (detect_coding_system): Likewise.
8793
87942008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8795
8796 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8797
8798 * keymap.c (Vminibuffer_local_filename_must_match_map):
8799 Rename from Vminibuffer_local_must_match_filename_map.
8800 (syms_of_keymap):
8801 * minibuf.c (Fcompleting_read): Adjust accordingly.
8802 * commands.h: Rename declaration as well.
8803
88042008-06-05 Kenichi Handa <handa@m17n.org>
8805
8806 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8807 family name.
8808 (Ffont_put): Likewise.
8809
8810 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8811 current font-spec.
8812
8813 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8814 is unspecified.
8815
8816 * xfaces.c (realize_x_face): If the font-related face attributes
8817 are the same as those of default face, realize a new fontset from
8818 default->fontset.
8819 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8820
88212008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8822
8823 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8824 (move_it_in_display_line): New wrapper.
8825
8826 * window.c (window_scroll_pixel_based_preserve_x)
8827 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8828 (window_scroll_pixel_based, window_scroll_line_based):
8829 Use them to preserve column positions.
8830 (syms_of_window): Initialize them.
8831
8832 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8833 (HPOS . VPOS) pair.
8834
8835 * dispextern.h (move_it_in_display_line): Declare.
8836
88372008-06-05 Juanma Barranquero <lekktu@gmail.com>
8838
8839 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8840 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8841 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8842
88432008-06-04 Juanma Barranquero <lekktu@gmail.com>
8844
8845 * window.c (Fset_window_parameter): Doc fix.
8846 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8847
88482008-06-04 Joakim Verona <joakim@verona.se>
8849
8850 * window.h (struct window): Add new member window_parameters.
8851
8852 * window.c (Fwindow_parameters, Fwindow_parameter)
8853 (Fset_window_parameter): New defuns.
8854 (syms_of_window): Defsubr the new defuns.
8855 (make_window): Initialize window_parameters to nil.
8856
88572008-06-04 John Paul Wallington <jpw@pobox.com>
8858
8859 * eval.c (Fdefmacro): Doc fix.
8860
88612008-06-04 Kenichi Handa <handa@m17n.org>
8862
8863 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8864 Be sure to call setup_coding_system when we find a proper coding system.
8865 (detect_coding_system): Fix handling of coding->head_ascii.
8866
88672008-06-03 Andreas Schwab <schwab@suse.de>
8868
8869 * font.c (font_prop_validate_spacing): Fix last change.
8870
88712008-06-03 Kenichi Handa <handa@m17n.org>
8872
8873 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8874 (font_parse_fcname): Fix handling of unknown key.
8875
8876 * xfont.c (xfont_list): Try an alias.
8877
8878 * charset.c (char_charset): Return NULL if the arg charset_list is
8879 specified and C doesn't belong to any of them.
8880
88812008-06-02 Chip Coldwell <coldwell@redhat.com>
8882
8883 * font.c (font_pixel_size): Don't take cdr of an integer.
8884
88852008-06-02 Jim Meyering <meyering@redhat.com>
8886
8887 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8888 * alloc.c (xfree): Return right away for a NULL arg.
8889 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8890 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8891 * mac.c (create_apple_event_from_event_ref): Likewise.
8892 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8893 Likewise.
8894 * doprnt.c (doprnt1): Likewise.
8895 * frame.c (frame): Likewise.
8896 * keyboard.c (wipe_kboard): Likewise.
8897 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8898 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8899 * term.c (tty_default_color_capabilities, maybe_fatal)
8900 (delete_tty): Likewise.
8901 * w16select.c (string): Likewise.
8902 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8903 * w32bdf.c (w32_free_bdf_font): Likewise.
8904 * w32fns.c (w32_unload_font): Likewise.
8905 * w32font.c (w32font_close): Likewise.
8906 * window.c (size_window): Likewise.
8907 * xselect.c (receive_incremental_selection): Likewise.
8908 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8909 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8910 * w32.c (stat): Likewise.
8911
8912 Remove useless if-before-free tests.
8913 * editfns.c (Fset_time_zone_rule): Likewise.
8914 * lread.c (nosuffix): Likewise.
8915 * ralloc.c (get_bloc): Likewise.
8916 * regex.c (reg_free): Likewise.
8917 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8918 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8919 * xsmfns.c (smc_save_yourself_CB): Likewise.
8920
89212008-06-02 Kenichi Handa <handa@m17n.org>
8922
8923 * font.c (font_find_for_lface): Handle float font size.
8924 (font_open_for_lface): Likewise.
8925
8926 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8927 comparing the properties.
8928
89292008-06-01 Jason Rumney <jasonr@gnu.org>
8930
8931 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8932 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8933 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8934 Don't add empty script list.
8935 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8936
89372008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8938
8939 * Makefile.in (dot, dotdot): Remove, update users.
8940 ".." has been used elsewhere in the file for a long time.
8941 (LIBXT_STATIC): Remove conditional based on unused variable.
8942
89432008-06-01 Miles Bader <miles@gnu.org>
8944
8945 * xfaces.c (Vface_remapping_alist): New variable.
8946 (syms_of_xfaces): Initialize it.
8947 (enum named_merge_point_kind): New type.
8948 (struct named_merge_point): Add `named_merge_point_kind' field.
8949 (push_named_merge_point): Make cycle detection respect different
8950 named-merge-point kinds.
8951 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8952 Remove face-name alias resolution.
8953 (lface_from_face_name): New definition using
8954 `lface_from_face_name_no_resolve'.
8955 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8956 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8957 (get_lface_attributes): New definition that layers face-remapping on
8958 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8959 (lookup_basic_face): New function.
8960 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8961 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8962 `get_lface_attributes'.
8963 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8964 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8965 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8966
8967 * xdisp.c (init_iterator): Pass base_face_id through
8968 `lookup_basic_face' when we actually use it as a face-id.
8969 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8970 DEFAULT_FACE_ID.
8971
8972 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8973 lookup the initial face-id.
8974
8975 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8976
89772008-06-01 Juanma Barranquero <lekktu@gmail.com>
8978
8979 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8980 (Fremove_text_properties): Fix typos in docstrings.
8981
89822008-05-31 Kenichi Handa <handa@m17n.org>
8983
8984 * font.c (font_list_entities): Fix the car part of data to be
8985 stored in the cache.
8986
8987 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8988
89892008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8990
8991 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8992 Add a `test' argument so another predicate than `equal' can be used.
8993 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8994 (map_char_table): Remove unused vars `c' and `i'.
8995 * lisp.h (Foptimize_char_table): Adjust declaration.
8996 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8997
89982008-05-30 Kenichi Handa <handa@m17n.org>
8999
9000 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9001 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9002 defined.
9003
90042008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9005
9006 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9007 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9008 frame-local settings for the same variable.
9009
90102008-05-30 Kenichi Handa <handa@m17n.org>
9011
9012 * fontset.c (Ffont_info): Move to font.c.
9013 (syms_of_fontset): Delete defsubr of Sfont_info.
9014
9015 * font.c (font_style_to_value, font_score): Delete casting of the
9016 args to xstcasecmp.
9017 (register_font_driver): Increment num_font_drivers only when
9018 registering the driver globally.
9019 (Ffont_info): Move from fontset.c. Handle a font object too.
9020 (syms_of_font): Defsubr Sfont_info.
9021
90222008-05-29 Kenichi Handa <handa@m17n.org>
9023
9024 * coding.h (enum define_coding_utf8_arg_index): New enum.
9025 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9026 coding_attr_utf_bom.
9027 (enum utf_bom_type): Rename from utf_16_bom_type.
9028 (struct utf_16_spec): Adjust for the above change.
9029 (struct coding_system): Add utf_8_bom in `spec' union.
9030
9031 * coding.c (CODING_UTF_8_BOM): New macro.
9032 (enum coding_category): Delete coding_category_utf_8, add
9033 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9034 coding_category_utf_8_sig.
9035 (CATEGORY_MASK_UTF_8): Delete it.
9036 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9037 (CATEGORY_MASK_UTF_8_SIG): New macros.
9038 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9039 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9040 CATEGORY_MASK_UTF_8_SIG.
9041 (CATEGORY_MASK_UTF_8): New macro.
9042 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9043 (detect_coding_utf_8): Check BOM.
9044 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9045 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9046 (encode_coding_utf_16): Likewise.
9047 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9048 (detect_coding, detect_coding_system): Handle utf-8-auto.
9049 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9050 (syms_of_coding): Fix setting up of Vcoding_category_table.
9051
90522008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9053
9054 * process.c (Faccept_process_output): If `millisec' is non-nil,
9055 `seconds' default to 0.
9056 (wait_reading_process_output): Also return non-nil if we read output
9057 from a non-running process.
9058
90592008-05-29 Jason Rumney <jasonr@gnu.org>
9060
9061 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9062 `raster' specified.
9063 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9064 in the uniscribe backend, but disallow any font that has no
9065 unicode subrange support.
9066
90672008-05-29 Juanma Barranquero <lekktu@gmail.com>
9068
9069 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9070 Fix typos in docstrings.
9071
90722008-05-29 Kenichi Handa <handa@m17n.org>
9073
9074 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9075 (Fx_family_fonts): Set frame correctly.
9076
90772008-05-28 Jason Rumney <jasonr@gnu.org>
9078
9079 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9080
90812008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9082
9083 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9084 calling build_annotations.
9085
90862008-05-28 Juanma Barranquero <lekktu@gmail.com>
9087
9088 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9089 (Fencode_coding_string):
9090 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9091 <latin-extra-code-table>: Fix typos in docstrings.
9092 (syms_of_coding) <coding-system-alist>: Doc fix.
9093 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9094
90952008-05-28 Kenichi Handa <handa@m17n.org>
9096
9097 * fontset.c (Ffont_info): Don't call font_close_object.
9098
9099 * font.c (font_parse_family_registry): Use Ffont_put to validate
9100 foundry and family.
9101 (font_delete_unmatched): Don't check spacing.
9102 (font_list_entities): Add spacing to the spec to list fonts.
9103
9104 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9105 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9106
9107 * coding.c (encode_coding_raw_text): Fix previous change.
9108 (encode_coding_object): When the dst_object is a buffer and is
9109 different from src_object, move gap to PT.
9110
91112008-05-27 Chong Yidong <cyd@stupidchicken.com>
9112
9113 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9114
91152008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9116
9117 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9118 all branches. Compute it differently.
9119
9120 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9121
91222008-05-27 Juanma Barranquero <lekktu@gmail.com>
9123
9124 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9125 into "else if () ... else ...".
9126
91272008-05-27 Jason Rumney <jasonr@gnu.org>
9128
9129 * w32font.c (w32font_open_internal): Determine if glyph indices
9130 are likely to work here.
9131
91322008-05-27 Chong Yidong <cyd@stupidchicken.com>
9133
9134 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9135 draw overlap glyphs with appropriate highlighting.
9136
91372008-05-27 Kenichi Handa <handa@m17n.org>
9138
9139 * xfont.c (xfont_open): Fix calculation of font->average_width.
9140
91412008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9142
9143 * casefiddle.c (casify_object): Try to guess better whether the
9144 argument is a byte or a char.
9145
91462008-05-26 Andreas Schwab <schwab@suse.de>
9147
9148 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9149 Always send multiples of format size.
9150
9151 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9152
91532008-05-26 Jason Rumney <jasonr@gnu.org>
9154
9155 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9156 (compute_metrics): Don't set failure if we just cleared the cache.
9157 (w32_weight_table): Remove unused variable.
9158 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9159 backwards compatibility.
9160
91612008-05-25 Kenichi Handa <handa@m17n.org>
9162
9163 * w32term.c (x_draw_glyph_string):
9164 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9165
9166 * xfaces.c: Delete unused function prototypes.
9167 (xstrlwr, font_frame): Delete them.
9168 (clear_face_cache): Delete unused variable.
9169
9170 * xftfont.c (xftfont_open): Delete unused variable.
9171 If underline_thickness is not 1, adjust underline_position.
9172
9173 * ftxfont.c (ftxfont_open): Delete unused variable.
9174
9175 * fontset.c (face_for_char): Optimize for the case of no charset
9176 property.
9177
9178 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9179 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9180 (otf_open, font_otf_capability, generate_otf_features)
9181 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9182 Comment out by surrounding "#if 0" and "#endif" for the moment.
9183 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9184 (syms_of_font): Codes for accessing above commented out.
9185
91862008-05-24 Eli Zaretskii <eliz@gnu.org>
9187
9188 * w32proc.c: Include dispextern.h.
9189
9190 * w32.c: Include dispextern.h.
9191
91922008-05-23 Juanma Barranquero <lekktu@gmail.com>
9193
9194 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9195 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9196 Fix typos in docstrings.
9197
91982008-05-23 Jason Rumney <jasonr@gnu.org>
9199
9200 * xsmfns.c: Remove includes that are already included by config.h.
9201
92022008-05-23 Kenichi Handa <handa@m17n.org>
9203
9204 * charset.c (Qemacs, charset_emacs): New variables.
9205 (char_charset): Fix for non-Unicode characters.
9206 (syms_of_charset): Define charset_emacs.
9207
9208 * w32term.c (x_draw_glyph_string): Be sure to update
9209 s->underline_thickness and s->underline_position. Be sure to draw
9210 underline within the current line area.
9211
9212 * xterm.c (x_draw_glyph_string): Be sure to update
9213 s->underline_thickness and s->underline_position. Be sure to draw
9214 underline within the current line area.
9215
9216 * fontset.c: Delete unused variables and add casting for char *
9217 throughout the file.
9218 (fontset_font): Try the fallback fonts of the current fontset
9219 before consulting the default fontset.
9220
9221 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9222
9223 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9224
92252008-05-22 Jason Rumney <jasonr@gnu.org>
9226
9227 * font.c: Don't include strings.h.
9228
9229 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9230
9231 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9232 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9233 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9234 to call xstrcasecmp.
9235
9236 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9237
9238 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9239
9240 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9241
9242 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9243
92442008-05-22 Kenichi Handa <handa@m17n.org>
9245
9246 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9247
9248 * font.c (font_prop_validate_style): Adjust for the format
9249 change of font_style_table.
9250
9251 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9252 two args.
9253
9254 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9255 two args.
9256
92572008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9258
9259 * minibuf.c (keys_of_minibuf): Delete.
9260 * lisp.h (keys_of_minibuf): Delete.
9261 * emacs.c (main): Don't call keys_of_minibuf.
9262
92632008-05-22 Kenichi Handa <handa@m17n.org>
9264
9265 * ftfont.c (ftfont_resolve_generic_family): Rename from
9266 ftfont_list_generic_family. Return a single family for each
9267 generic family.
9268 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9269 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9270 Call font_add_log.
9271 (ftfont_match): Call font_add_log.
9272
9273 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9274 (FONT_DEBUG): Define it.
9275 (font_add_log): Extern it.
9276 (font_assert): Rename from xassert.
9277
9278 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9279 (xfont_list_family): Call font_add_log.
9280 (xfont_match): Likewise.
9281 (memq_no_quit): Delete.
9282
9283 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9284 call of Ffont_xlfd_name.
9285
9286 * xfaces.c (struct table_entry, slant_table, weight_table)
9287 (swidth_table): Move to font.c.
9288
9289 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9290 xassert are changed to font_assert. Delete many unused variables.
9291 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9292 New variables.
9293 (struct table_entry): Move from xfaces.c and modified.
9294 (weight_table, slant_table, width_table): Move from xfaces.c and
9295 contents adjusted for the change of struct table_entry.
9296 (font_style_to_value, font_style_symbolic): Adjust for the
9297 format change of font_style_table.
9298 (font_parse_family_registry): Don't overwrite existing foundry and
9299 family of font_spec.
9300 (font_score): Fix calculation of diff for sizes.
9301 (font_sort_entites): Call font_add_log.
9302 (font_delete_unmatched): Return a newly created list.
9303 (font_list_entities): Fix previous change. Call font_add_log.
9304 (font_matching_entity, font_open_entity, font_close_entity):
9305 Call font_add_log.
9306 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9307 (Finternal_set_font_style_table): Delete.
9308 (BUILD_STYLE_TABLE): New macro.
9309 (build_style_table): New function.
9310 (Vfont_log, font_log_env_checked): New variables.
9311 (font_add_log): New function.
9312 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9313 Declare Lisp variables "font-weight-table", "font-slant-table",
9314 "font-width-table", and "font-log". Initialize font_style_table.
9315
93162008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9317
9318 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9319
93202008-05-21 Seiji Zenitani <zenitani@mac.com>
9321 Ryo Yoshitake <ryo@shiftmode.net>
9322
9323 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9324 (Vframe_alpha_lower_limit): New variable.
9325 (x_set_alpha): New function.
9326
9327 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9328
9329 * xfns.c (x-create-frame, Qalpha):
9330 Initialize the frame parameter `alpha'.
9331 * xterm.c (OPAQUE, OPACITY): New.
9332 (x_set_frame_alpha): New function.
9333 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9334
9335 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9336 * w32fns.c (w32_frame_parm_handlers): Likewise.
9337
93382008-05-20 Jason Rumney <jasonr@gnu.org>
9339
9340 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9341 truetype fonts to opentype list.
9342
93432008-05-20 Juanma Barranquero <lekktu@gmail.com>
9344
9345 * fontset.c (Ffontset_info): Doc fix.
9346 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9347 <ignore-relative-composition>: Fix typos in docstrings.
9348
9349 * font.c (syms-of-font) <font-encoding-alist>:
9350 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9351 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9352 (Ffont_otf_alternates): Doc fixes.
9353
93542008-05-20 Kenichi Handa <handa@m17n.org>
9355
9356 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9357 font.h through out the file.
9358 (FONT_DRIVERS): Rename from FONTOBJ.
9359 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9360 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9361
9362 * emacs.c (main): Call syms_of_font unconditionally.
9363
9364 * font.h (find_font_encoding): Extern it.
9365
9366 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9367 fontset.c.
9368 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9369 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9370 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9371 only when HAVE_WINDOW_SYSTEM is defined.
9372 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9373 when HAVE_WINDOW_SYSTEM is defined.
9374
9375 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9376 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9377
9378 * xfaces.c: Include font.h unconditionally.
9379 (merge_face_ref, merge_face_vectors)
9380 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9381
93822008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9383
9384 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9385 indirect_variable.
9386 * eval.c (lisp_indirect_variable): New fun.
9387 (Fuser_variable_p): Use it.
9388
93892008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9390
9391 * lisp.h (indirect_variable):
9392 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9393 Use Lisp_Symbol pointers rather than Lisp_Object.
9394 Adjust callers.
9395 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9396 To this end, change calling-convention.
9397
9398 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9399 if some non-hidden buffers are selected by string&pred.
9400
94012008-05-19 Chong Yidong <cyd@stupidchicken.com>
9402
9403 * process.c (wait_reading_process_output): Always check status
9404 when in batch mode.
9405
94062008-05-19 Kenichi Handa <handa@m17n.org>
9407
9408 * font.c (font_list_entities): Fix handling of cache.
9409 (font_matching_entity): Likewise.
9410
9411 * ftfont.c (cs_iso8859_1): Delete.
9412 (ft_face_cache): New variable.
9413 (struct ftfont_info): New member fc_charset_idx.
9414 (ftfont_build_basic_charsets): Delete.
9415 (fc_charset_table): New variable.
9416 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9417 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9418 Callers changed.
9419 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9420 (ftfont_spec_pattern): New argument fc_charset_idx.
9421 Check registry more rigidly. Change callers.
9422 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9423 change of :font-entity property of the font.
9424
9425 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9426 property of the font.
9427
94282008-05-18 Juanma Barranquero <lekktu@gmail.com>
9429
9430 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9431 (Funencodable_char_position, Fcheck_coding_systems_region)
9432 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9433 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9434 (Ffind_operation_coding_system, Fset_coding_system_priority)
9435 (Fcoding_system_eol_type): Doc fixes.
9436
94372008-05-17 Glenn Morris <rgm@gnu.org>
9438
9439 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9440
94412008-05-16 Eli Zaretskii <eliz@gnu.org>
9442
9443 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9444 and st_gid.
9445
9446 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9447 HAVE_WINDOW_SYSTEM is not defined.
9448
9449 * xfaces.c (merge_face_ref, merge_face_vectors)
9450 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9451 HAVE_WINDOW_SYSTEM is defined.
9452 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9453
94542008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9455
9456 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9457
94582008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9459
9460 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9461
94622008-05-15 Kenichi Handa <handa@m17n.org>
9463
9464 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9465 preference.
9466
94672008-05-15 Glenn Morris <rgm@gnu.org>
9468
9469 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9470
94712008-05-15 Chong Yidong <cyd@stupidchicken.com>
9472
9473 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9474 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9475
9476 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9477
94782008-05-15 Kenichi Handa <handa@m17n.org>
9479
9480 * ftfont.c (ftfont_list): Downcase family name to check generic
9481 families.
9482
9483 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9484 font-spec for QCfont value.
9485
9486 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9487 buffer. Check the return value of it.
9488
94892008-05-14 Jason Rumney <jasonr@gnu.org>
9490
9491 * w32term.c (w32_get_glyph_overhangs): Remove.
9492 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9493
94942008-05-14 Kenichi Handa <handa@m17n.org>
9495
9496 * font.c (font_prop_validate): Make nil a valid value.
9497 (font_clear_cache): Check if the cached vector of entities is nil
9498 or not.
9499
95002008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9501
9502 * emacs.c (main_thread): Conditionalize on
9503 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9504 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9505
9506 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9507 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9508 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9509
95102008-05-14 Kenichi Handa <handa@m17n.org>
9511
9512 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9513 has no corresponding coding system.
9514
95152008-05-14 Jason Rumney <jasonr@gnu.org>
9516
9517 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9518
9519 * w32font.h (w32font_open_internal): Update declaration.
9520
9521 * w32font.c (w32font_open_internal): Change last argument from
9522 w32font_info struct to font object. Fill in font object from
9523 font_entity. Get Outline metrics if possible. Use them to
9524 calculate underline position and thickness. Use xlfd name as name
9525 property. Don't set codepage.
9526 (w32font_open): Pass font_object to w32font_open_internal. Don't
9527 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9528 (w32font_draw): Use s->font.
9529 (clear_cached_metrics): Don't clear non-existent blocks.
9530
9531 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9532 font was not found.
9533 (x_draw_glyph_string): Use underline position and thickness from font.
9534
9535 * w32uniscribe.c (uniscribe_open): Pass font_object to
9536 w32font_open_internal.
9537
95382008-05-14 Kenichi Handa <handa@m17n.org>
9539
9540 These changes are to delete all legacy font-handling codes, and
9541 make Emacs use only font-backends.
9542
9543 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9544 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9545
9546 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9547
9548 * charset.h (Vcharset_non_preferred_head)
9549 (Vcurrent_iso639_language): Extern them.
9550
9551 * charset.c (Vcharset_non_preferred_head): New variable.
9552 (Vcurrent_iso639_language): New variable.
9553 (syms_of_charset): Declare it as a Lisp variable.
9554 (char_charset): Don't check non preferred charsets. As a last
9555 resort, return charset_unicode.
9556 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9557
9558 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9559 conditionals. Don't check enable_font_backend. Delete all codes
9560 used only when USE_FONT_BACKEND is not defined.
9561
9562 * dispextern.h (struct glyph_string): Change type of `font' to
9563 `struct font *'.
9564 (struct glyph_string): New member underline_position and
9565 underline_thickness.
9566 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9567 (struct face): Change type of `font' to `struct font *'. Remove
9568 members `font_name', `font_info_id'.
9569 (per_char_metric, encode_char): Delete externs.
9570 (calc_pixel_width_or_height): Adjust the prototype.
9571
9572 * emacs.c (enable_font_backend): Delete extern.
9573 (main): Don't set enable_font_backend. Don't check the command
9574 line argument "-disable-font-backend".
9575
9576 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9577 (enum font_property_index): New members FONT_DPI_INDEX,
9578 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9579 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9580 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9581 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9582 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9583 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9584 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9585 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9586 (struct font_spec, struct font_entity): New structs.
9587 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9588 (struct font): Many members from old "struct font_info" moved to
9589 here. Members font and entity deleted.
9590 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9591 the new font-related objects.
9592 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9593 (CHECK_FONT_GET_OBJECT): Likewise.
9594 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9595 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9596 (struct font_driver): New members case_sensitive anc check. Type
9597 of the member list and open changed.
9598 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9599 (font_symbolic_width, font_find_object, font_get_spec)
9600 (font_set_lface_from_name): Delete extern.
9601 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9602
9603 * font.c: Include <strings.h>.
9604 (enable_font_backend): Delete it.
9605 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9606 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9607 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9608 (null_string): Delete it.
9609 (null_vector): Make it static.
9610 (font_family_alist): Delete it.
9611 (Qnormal): Extern it.
9612 (QCextra, QClanguage): Delete it.
9613 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9614 (font_make_spec, font_make_entity, font_make_object)
9615 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9616 the string. Callers changed.
9617 (font_pixel_size): Adjusted for the format change of font-related
9618 objects.
9619 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9620 (font_style_to_value, font_style_symbolic): New function.
9621 (build_font_family_alist): Delete it.
9622 (font_registry_charsets): Use Fassoc_string instead of
9623 assq_no_quit.
9624 (font_prop_validate_symbol): Don't return null_string.
9625 (font_prop_validate_style): Adjusted for the change of
9626 style-related values in a font vector.
9627 (font_property_table): Delete entries for QClanguage and
9628 QCantialias, add entries for QCavgwidth.
9629 (get_font_prop_index): Delete the 2nd argument FROM.
9630 (font_prop_validate): Arguments changed.
9631 (font_put_extra): Adjusted for the change of font-related objects.
9632 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9633 (font_parse_fcname, font_unparse_fcname)
9634 (font_prepare_composition): Likewise.
9635 (font_parse_family_registry): Renamed from font_merge_old_spec.
9636 (otf_open): Delete the 1st arg entity.
9637 (font_otf_capability): Adjusted for the above change.
9638 (font_score): New arg alternate_families. Adjusted for the change
9639 of font-related objects.
9640 (font_sort_entites): New arg best_only.
9641 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9642 Delete them.
9643 (font_match_p): Check alternate families.
9644 (font_find_object): Delete it.
9645 (font_check_object): New function.
9646 (font_clear_cache): Adjusted for the change of font-related objects.
9647 (font_delete_unmatched): New arg.
9648 (font_list_entities): Call font_driver->list with a spec that
9649 doesn't specify style-related properties.
9650 (font_matching_entity): Arguments changed. Caller changed.
9651 (font_open_entity): Adjusted for the change of font-related objects.
9652 (font_close_object, font_has_char, font_encode_char)
9653 (font_get_name, font_get_spec): Likewise.
9654 (font_spec_from_name, font_clear_prop, font_update_lface):
9655 New functions.
9656 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9657 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9658 (font_at): Adjusted for the change of font-related objects.
9659 (font_range): New function.
9660 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9661 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9662 (Fcopy_font_spec, Fmerge_font_spec): New function.
9663 (Ffont_family_list): Renamed from list-families.
9664 (Finternal_set_font_style_table): Arguments changed.
9665 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9666 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9667 change of font-related objects.
9668 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9669
9670 * fontset.h (struct font_info): Delete it. Most members go to
9671 struct font.
9672 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9673 (enum FONT_SPEC_INDEX): Delete it.
9674 (font_info, list_fonts_func, load_font_func, query_font_func)
9675 (set_frame_fontset_func, find_ccl_program_func)
9676 (get_font_repertory_func, new_fontset_from_font_name): Delete
9677 externs.
9678 (fontset_from_font_name): Extern it.
9679 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9680 (FONT_INFO_FROM_FACE): Deleted.
9681 (face_for_font): Adjust prototype.
9682
9683 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9684 conditionals. Don't check enable_font_backend. Delete all codes
9685 used only when USE_FONT_BACKEND is not defined.
9686 (get_font_info_func, list_font_func, load_font_func)
9687 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9688 (get_font_repertory_func): Delete them.
9689 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9690 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9691 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9692 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9693 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9694 (fontset_compare_rfontdef): New function.
9695 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9696 rfont-defs by qsort. Adjusted for the change of font-group vector.
9697 (load_font_get_repertory): Deleted.
9698 (fontset_find_font): Use new macros to ref/set elements of
9699 font-def and rfont-def.
9700 (fontset_font): Fix the timing of remembering that no font for C.
9701 (free_face_fontset): Do nothing if the face has no fontset.
9702 (face_suitable_for_char_p): Use new macros to ref/set elements of
9703 rfont-def.
9704 (face_for_char): Likewise. Call face_for_char with font_object.
9705 (fs_load_font): Delete. Delete #pragma surrounding it.
9706 (fs_query_fontset): Use strcasecmp instead of strcmp.
9707 (generate_ascii_font_name): Adjusted for the format change of
9708 font-spec.
9709 (Fset_fontset_font): Likewise. Use new macros to set elements of
9710 font-def.
9711 (Fnew_fontset): Use font_unparse_xlfd to generate
9712 FONTSET_ASCII (fontset).
9713 (new_fontset_from_font_name): Deleted.
9714 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9715 a fontset is already created for the font. FIx updating of
9716 Vfontset_alias_alist.
9717 (fontset_ascii_font): Deleted.
9718 (Ffont_info): Adjusted for the format change of font-spec.
9719 (Finternal_char_font): Likewise.
9720 (Ffontset_info): Likewise.
9721 (syms_of_fontset): Don't check load_font_func.
9722
9723 * fns.c (internal_equal): Handle PREV_FONT.
9724
9725 * frame.h: Delete USE_FONT_BACKEND conditional.
9726
9727 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9728 conditionals. Don't check enable_font_backend. Delete all codes
9729 used only when USE_FONT_BACKEND is not defined.
9730 (x_set_font): Call x_new_font, not x_new_fontset2.
9731 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9732 already set for the frame.
9733
9734 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9735 a font-entity by font_make_entity. Use font_intern_prop instead
9736 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9737 font property. If a font is scalable, set avgwidth property to 0.
9738 Set font-entity property by font_put_extra.
9739 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9740 (ffont_driver): Adjusted for the change of struct font_driver.
9741 (ftfont_spec_pattern): New function.
9742 (ftfont_list): Return a list, not vector.
9743 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9744 (ftfont_list_family): Don't downcase names.
9745 (ftfont_free_entity): Deleted.
9746 (ftfont_open): Return a font-object. Adjusted for the change of
9747 struct font. Get underline_thickness and underline_position from
9748 font property. Don't update dpyinfo->smallest_font_height and
9749 dpyinfo->smallest_char_width.
9750 (ftfont_close): Don't free `struct font'.
9751 (ftfont_has_char): Adjusted for the format change of font-entity.
9752 (ftfont_encode_char, ftfont_text_extents): Likewise.
9753
9754 * ftxfont.c (ftxfont_list): Return a list, not vector.
9755 (ftxfont_open): Return a font-object. Adjusted for the change of
9756 struct font. Get underline_thickness and underline_position from
9757 font property. Don't update dpyinfo->smallest_font_height and
9758 dpyinfo->smallest_char_width.
9759 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9760 (ftxfont_draw): Adjusted for the change of struct font.
9761
9762 * image.c (image_ascent): Don't include "charset.h". Include
9763 "character.h" and "font.h".
9764
9765 * lisp.h (enum pvec_type): New member PREV_FONT.
9766 (Fassoc_string): EXFUN it.
9767
9768 * print.c: Include font.h.
9769 (print_object): Handle font-related objects.
9770
9771 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9772 conditionals. Don't check enable_font_backend. Delete all codes
9773 used only when USE_FONT_BACKEND is not defined.
9774 (handle_auto_composed_prop): Do nothing if it->f is not on a
9775 window system. Check how many following characters can be
9776 displayed by the same font.
9777 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9778 'struct font *'.
9779 (get_char_face_and_encoding): Assign the whole encoding task to
9780 the `encode-char' method of a font driver.
9781 (fill_composite_glyph_string): Adjusted for the change of `struct
9782 face' and `struct glyph_string'.
9783 (fill_glyph_string): Likewise.
9784 (get_per_char_metric): Arguments changed.
9785 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9786 and `struct glyph_string'.
9787 (produce_stretch_glyph, calc_line_height_property)
9788 (x_produce_glyphs): Likewise.
9789
9790 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9791 conditionals. Don't check enable_font_backend. Delete all codes
9792 used only when USE_FONT_BACKEND is not defined. Use
9793 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9794 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9795 (Qp): Extern them.
9796 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9797 Deleted.
9798 (struct font_name): Deleted.
9799 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9800 (compare_fonts_by_sort_order): New function.
9801 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9802 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9803 Deleted.
9804 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9805 compare_fonts_by_sort_order.
9806 (Fx_font_family_list): Call Ffont_family_list.
9807 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9808 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9809 (face_symbolic_slant, face_symbolic_swidth)
9810 (split_font_name_into_vector, build_font_name_from_vector)
9811 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9812 (font_rescale_ratio, split_font_name, build_font_name)
9813 (free_font_names, sort_fonts, x_face_list_fonts)
9814 (face_font_available_p, sorted_font_list, cmp_font_names)
9815 (font_list_1, concat_font_list, font_list, remove_duplicates):
9816 Deleted.
9817 (Fx_list_fonts): Use Ffont_list.
9818 (LFACE_AVGWIDTH): Deleted.
9819 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9820 by FONTP.
9821 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9822 (set_lface_from_font_name): Delete it.
9823 (set_lface_from_font): Renamed from
9824 set_lface_from_font_and_fontset. Caller changed. Don't set
9825 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9826 for face.
9827 (merge_face_vectors): Copy font-spec if necessary.
9828 Clear properties of the font-spec if necessary.
9829 (merge_face_ref): Clear properties of the font-spec if necessary.
9830 (Finternal_set_lisp_face_attribute): Likewise.
9831 (set_font_frame_param): Use font_load_for_lface to load a
9832 font-object, and call Fmodify_frame_parameters with it.
9833 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9834 font name by Ffont_xlfd_name.
9835 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9836 QCslant, and QCwidth.
9837 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9838 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9839 Compare fonts by EQ.
9840 (lookup_non_ascii_face): Deleted.
9841 (face_for_font): The 2nd argument changed.
9842 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9843 Check atomic font properties by case insensitive.
9844 (realize_non_ascii_face): Set face->overstrike correctly.
9845 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9846 (dump_realized_face): Get font name from
9847 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9848
9849 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9850 conditionals. Don't check enable_font_backend. Delete all codes
9851 used only when USE_FONT_BACKEND is not defined.
9852 (xic_create_xfontset): Original code deleted and renamed from
9853 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9854 (x_make_gc): Don't set GCFont in GCs.
9855 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9856 opened by "fixed".
9857 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9858 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9859 get_font_repertory_func.
9860
9861 * xfont.c: Include <stdlib.h> and "ccl.h".
9862 (struct xfont_info): New structure.
9863 (xfont_query_font): Deleted.
9864 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9865 moved from xterm.c.
9866 (xfont_driver): Adjusted for the change of struct font_driver.
9867 (compare_font_names): New function.
9868 (xfont_list_pattern): Sort font names case insensitively. Make
9869 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9870 (xfont_list): Return a list, not vector.
9871 (xfont_match): If the font doesn't have QCname property, generate
9872 a name from the other font properties.
9873 (xfont_open): Return a font-object. Adjusted for the change of
9874 struct font. Get underline_thickness and underline_position from
9875 font property. Don't update dpyinfo->smallest_font_height and
9876 dpyinfo->smallest_char_width.
9877 (xfont_close): Don't free struct font.
9878 (xfont_prepare_face): Adjusted for the change of struct font.
9879 (xfont_done_face): Deleted.
9880 (xfont_has_char): Adjusted for the change of struct font.
9881 (xfont_encode_char, xfont_draw): Likewise.
9882 (xfont_check): New function.
9883
9884 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9885 callback function.
9886 (xftfont_match): Adjusted for the format change of font-entity.
9887 (xftfont_open): Adjusted for the format change of font-entity and
9888 font-object. Adjusted for the change of struct font. Return a
9889 font-object. Don't update dpyinfo->smallest_font_height and
9890 dpyinfo->smallest_char_width.
9891 (xftfont_close): Block input while calling XftFontClose.
9892 (xftfont_prepare_face): Don't block input while calling
9893 xftfont_get_colors. Adjusted for the change of struct font.
9894 (xftfont_shape): Return value of error case fixed.
9895
9896 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9897
9898 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9899 conditionals.
9900 (FONT_WIDTH): Return (f)->max_width.
9901 (struct x_display_info): Delete member `font'.
9902 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9903 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9904 (struct x_output): Change type of `font' to `struct font *'.
9905
9906 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9907 conditionals. Don't check enable_font_backend. Delete all codes
9908 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9909 (x_per_char_metric, x_encode_char): Deleted.
9910 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9911 (x_compute_glyph_string_overhangs): Adjusted for the change of
9912 `struct face'.
9913 (x_draw_glyph_string_foreground)
9914 (x_draw_composite_glyph_string_foreground): Likewise.
9915 (x_draw_glyph_string): Likewise. Use font->underline_position and
9916 font->underline_thickness.
9917 (x_new_font): Renamed from x_new_fontset2.
9918 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9919 (x_check_font): Call `check' method of a font driver.
9920 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9921 (x_query_font, x_get_font_repertory): Deleted.
9922 (x_find_ccl_program): Renamed and moved to xfont.c.
9923 (x_redisplay_interface): Adjusted for the change of `struct
9924 redisplay_interface'.
9925
9926 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9927 conditionals. Don't check enable_font_backend. Delete all codes
9928 used only when USE_FONT_BACKEND is not defined. Surround non-used
9929 code by "#ifdef OLD_FONT" and "endif".
9930 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9931
9932 * w32font.h (struct w32font_info): New member.
9933 (FONT_COMPAT): New macro.
9934 (w32font_open_internal): Prototype adjusted.
9935
9936 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9937 OLD_FONT" and "endif".
9938
9939 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9940 conditionals. Don't check enable_font_backend. Delete all codes
9941 used only when USE_FONT_BACKEND is not defined.
9942 (w32font_open): Return a font-object. Make a font-object by
9943 font_make_object. Adjusted for the change of struct w32font_info.
9944 (w32font_close): Don't free struct font. Adjusted for the change
9945 of struct w32font_info.
9946 (w32font_encode_char, w32font_text_extents, w32font_draw):
9947 Adjusted for the change of struct w32font_info.
9948 (w32font_draw): Likewise.
9949 (w32font_list_internal): Return a list, not vector.
9950 (w32font_open_internal): Change the 4th arg to font-object.
9951 Adjusted for the change of struct w32font_info and font-object format.
9952 (add_font_name_to_list): Don't downcase names.
9953 (w32_enumfont_pattern_entity): Make a font-entity by
9954 font_make_entity. Adjusted for the format change of font-entity.
9955 Use FONT_SET_STYLE to set a style-related font property. If a
9956 font is scalable, set avgwidth property to 0. Set font-entity
9957 property by font_put_extra.
9958 (font_matches_spec): Adjusted for the format change of font-entity.
9959 (w32_weight_table, w32_decode_weight): New variables.
9960 (w32_encode_weight): New function.
9961 (fill_in_logfont): Adjusted for the format change of font-spec.
9962 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9963 weight value.
9964 (w32font_driver): Adjusted for the change of struct font_driver.
9965
9966 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9967 conditionals. Don't check enable_font_backend. Surround non-used
9968 code by "#ifdef OLD_FONT" and "endif".
9969 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9970 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9971
9972 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9973 conditionals. Don't check enable_font_backend. Delete all codes
9974 used only when USE_FONT_BACKEND is not defined. Surround non-used
9975 code by "#ifdef OLD_FONT" and "endif".
9976
9977 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9978 (uniscribe_open): Return value changed to font-object.
9979 Adjusted for the format change of font-object.
9980 (uniscribe_otf_capability): Adjusted for the change of struct font.
9981 (add_opentype_font_name_to_list): Don't downcase names.
9982 (uniscribe_font_driver): Adjusted for the change of struct
9983 font_driver.
9984
99852008-05-13 Chong Yidong <cyd@stupidchicken.com>
9986
9987 * dispnew.c (update_frame_1): Check if tty output is still valid
9988 before flushing it.
9989
99902008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9991
9992 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9993 to Gtk+ menus.
9994
99952008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9996
9997 * dired.c (file_name_completion): Tweak the code so as to always do it
9998 in a single pass. Tighten the scope of some variables.
9999
10000 * dired.c (Qdefault_directory): New var.
10001 (file_name_completion): Use it instead of Fexpand_file_name.
10002 (syms_of_dired): Initialize it.
10003
100042008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10005
10006 * fileio.c (double_dollars): Remove dead code.
10007
100082008-05-10 Eli Zaretskii <eliz@gnu.org>
10009
10010 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10011 Mention w32-get-true-file-attributes in doc string.
10012
10013 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10014
100152008-05-09 Glenn Morris <rgm@gnu.org>
10016
10017 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10018 2008-04-23.
10019
100202008-05-09 Eli Zaretskii <eliz@gnu.org>
10021
10022 Support for reporting owner and group of each file on MS-Windows:
10023 * dired.c (stat_uname, stat_gname): New functions, with special
10024 implementation for w32.
10025 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10026
10027 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10028 (dflt_group_name): New static variable.
10029 (dflt_group): Rename from the_group.
10030 (init_user_info): Init dflt_group fields. Get user's group name
10031 from LookupAccountSid.
10032 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10033 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10034 New initialization states.
10035 (globals_of_w32): Initialize them to zero. Initialize the default
10036 group name to "None".
10037 (GetFileSecurity_Name): New global var, the name of the function
10038 to call for GetFileSecurity.
10039 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10040 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10041 (get_file_security, get_security_descriptor_owner)
10042 (get_security_descriptor_group, is_valid_sid)
10043 (get_file_security_desc, get_rid, get_name_and_id)
10044 (get_file_owner_and_group): New functions.
10045 (stat): Use get_file_security_desc and get_file_owner_and_group to
10046 report the owner and primary group of each file. Don't ignore the
10047 high 32 bits of file's size, now that st_size is 64-bit wide.
10048 Fix test when to get true file attributes.
10049 (init_user_info): Use get_rid instead of equivalent inline code.
10050 (fstat): Don't ignore the high 32 bits of file's size.
10051
100522008-05-09 Chong Yidong <cyd@stupidchicken.com>
10053
10054 * image.c (png_load): Use correct bit-depth for setting background
10055 color.
10056
100572008-05-08 Eli Zaretskii <eliz@gnu.org>
10058
10059 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10060 epa-hook.elc.
10061
100622008-05-08 Juanma Barranquero <lekktu@gmail.com>
10063
10064 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10065
100662008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10067
10068 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10069 because the original parameters are in pure storage now.
10070 (mac_window): Remove unused params. Update callers.
10071
100722008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10073
10074 * lread.c (substitute_object_recurse): Use lower-level primitives.
10075 Don't signal errors when traversing sub-char-tables.
10076 Don't loop over all the possible characters when traversing char-tables.
10077
10078 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10079 just like we do in print.c.
10080
100812008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * minibuf.c (Ftry_completion): Remove code left over from when we used
10084 scmp instead of Fcompare_strings.
10085
100862008-05-04 Juanma Barranquero <lekktu@gmail.com>
10087
10088 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10089
100902008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10091
10092 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10093 Create bitmap context in native byte order.
10094
10095 * macterm.c (XDrawLine)
10096 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10097 context in native byte order.
10098
100992008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10100
10101 * config.in: Regenerate.
10102
10103 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10104 New definitions for Image I/O support.
10105 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10106 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10107 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10108 (mac_data_provider_release_data, image_load_image_io)
10109 [USE_MAC_IMAGE_IO]: New functions.
10110 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10111 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10112 (init_image_func_pointer) [MAC_OSX]: Remove function.
10113 (image_load_quartz2d) [MAC_OSX]: Check availability of
10114 CGImageCreateWithPNGDataProvider at compile time.
10115 Use lowercase `false' for boolean constant.
10116 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10117 Use image_load_image_io.
10118 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10119 Don't check MyCGImageCreateWithPNGDataProvider.
10120 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10121 Don't call init_image_func_pointer.
10122
10123 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10124
10125 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10126 Make variable non-static.
10127 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10128 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10129
10130 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10131 (RED_FROM_ULONG): Mask off higher bits.
10132 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10133
10134 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10135 Include AvailabilityMacros.h.
10136 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10137 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10138
101392008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10140
10141 * chartab.c (Fset_char_table_range): If range is t, really set all
10142 chars to that value.
10143
101442008-05-03 Eli Zaretskii <eliz@gnu.org>
10145
10146 * dired.c (Ffile_attributes): Don't allow the device number become
10147 negative.
10148
101492008-05-02 Daiki Ueno <ueno@unixuser.org>
10150
10151 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10152
101532008-05-02 Juri Linkov <juri@jurta.org>
10154
10155 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10156 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10157 DEFAULT argument as a list of default values in docstrings.
10158
101592008-05-01 Chong Yidong <cyd@stupidchicken.com>
10160
10161 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10162
101632008-05-01 Martin Rudalics <rudalics@gmx.at>
10164
10165 * dispnew.c (change_frame_size_1): Preserve small windows when
10166 shrinking frames by calling set_window_height|width with third
10167 arg 2.
10168
10169 * window.h (struct window): Replace field too_small_ok by field
10170 resize_proportionally.
10171
10172 * window.c (make_window): Initialize resize_proportionally.
10173 (enlarge_window): Temporarily set resize_proportionally to make
10174 sure that shrink_windows does scale the window proportionally.
10175 (shrink_windows): When window has resize_proportionally set try
10176 to shrink it proportionally by stealing from other windows.
10177 (struct saved_window, Fset_window_configuration)
10178 (compare_window_configurations): Handle resize_proportionally.
10179 (WINDOW_TOTAL_SIZE): New macro.
10180 (window_min_size, shrink_windows, size_window): Use it.
10181 (check_min_window_sizes): Remove. Invalid values of
10182 window-min-height|width are handled by window_min_size_2 now.
10183 (size_window, Fsplit_window, enlarge_window)
10184 (adjust_window_trailing_edge, grow_mini_window): Don't call
10185 check_min_window_sizes.
10186 (window_min_size_2, window_min_size_1, window_min_size):
10187 New argument safe_p for retrieving "safe" minimum sizes.
10188 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10189 (adjust_window_trailing_edge, grow_mini_window):
10190 Adjust arguments of window_min_size... functions.
10191 (shrink_windows): Argument min_size removed. New argument
10192 safe_p allows shrinking windows to their safe minimum sizes.
10193 Calculate minimum size and decide whether a window shall be
10194 deleted for each window individually.
10195 (size_window): When nodelete_p equals 2, tell shrink_windows to
10196 delete windows only if their new minimum size is no more safe.
10197 (shrink_window_lowest_first): Call window_min_size_1 to make
10198 sure to preserve modeline of bottom-most window when resizing
10199 the minibuffer.
10200 (Fset_window_configuration, Fcurrent_window_configuration)
10201 (compare_window_configurations): Do not handle
10202 window-min-height|width any more.
10203 (syms_of_window): Clarify window-min-height|width doc-strings.
10204
102052008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10206
10207 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10208 some more. Copy some of the code from Ftry_completions.
10209 Remove special case code that dates back to initial revision when the
10210 slash was only added when necessary and that can't trigger nowadays.
10211
102122008-04-27 Kenichi Handa <handa@m17n.org>
10213
10214 * font.c (font_prop_validate): Signal `error' instead of `font'.
10215
102162008-04-29 Jason Rumney <jasonr@gnu.org>
10217
10218 * w32fns.c (Fw32_battery_status): New defun.
10219 (syms_of_w32fns): Defsubr it.
10220
102212008-04-28 Andreas Schwab <schwab@suse.de>
10222
10223 * dired.c (file_name_completion): Fix another mixing of encoded
10224 and decoded names.
10225
102262008-04-28 Juanma Barranquero <lekktu@gmail.com>
10227
10228 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10229
102302008-04-27 Juanma Barranquero <lekktu@gmail.com>
10231
10232 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10233
102342008-04-27 Andreas Schwab <schwab@suse.de>
10235
10236 * dired.c (file_name_completion): Fix inappropriate mixing of
10237 encoded and decoded names.
10238
10239 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10240
10241 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10242
102432008-04-26 Eli Zaretskii <eliz@gnu.org>
10244
10245 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10246 2008-03-31, it's not needed anymore with `struct stat' definition
10247 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10248 for the same reasons.
10249
102502008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10251
10252 * m/sparc.h: Additional redefinitions for GNU/Linux.
10253
102542008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10255
10256 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10257 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10258 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10259 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10260 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10261 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10262 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10263 Likewise.
10264
10265 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10266 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10267 (mac_ax_number_of_characters): Add externs.
10268 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10269 [USE_MAC_TSM]: Likewise.
10270 (mac_handle_text_input_event) [MAC_OSX]:
10271 Handle kEventTextInputOffsetToPos for no active input area case.
10272 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10273 (mac_handle_document_access_event)
10274 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10275 (install_application_handler) [MAC_OSX]: Register handlers for
10276 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10277 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10278 Register mac_handle_document_access_event.
10279
10280 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10281 Make functions non-static.
10282
102832008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10284
10285 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10286 (read_file_name_completion_ignore_case, insert_default_directory)
10287 (Qdefault_directory): Move to minibuffer.el.
10288 (Fread_file_name): Call the new `read-file-name' instead.
10289
102902008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10291
10292 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10293 Make function non-static.
10294 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10295 Remove function.
10296 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10297 Move to mactoolbox.c.
10298 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10299
10300 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10301 (mac_rect_make): New macro.
10302
10303 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10304 instead of float.
10305 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10306 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10307 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10308 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10309 CGRectMake.
10310 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10311 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10312 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10313 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10314 instead of WindowRef in argument type.
10315 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10316 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10317 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10318 instead of DISPLAY. All uses changed.
10319 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10320 (x_calc_absolute_position): Simplify so as not to use
10321 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10322
10323 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10324 instead of WindowRef in argument type.
10325 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10326 [TARGET_API_MAC_CARBON]: Remove externs.
10327 (create_apple_event, mac_event_parameters_to_lisp)
10328 [TARGET_API_MAC_CARBON]: Add externs.
10329
10330 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10331 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10332 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10333 is clicked.
10334 (x_activate_menubar): Remove extern for saved_menu_event_location.
10335 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10336 Move from mac.c.
10337
103382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10339
10340 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10341 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10342
103432008-04-23 Jason Rumney <jasonr@gnu.org>
10344
10345 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10346 attributes only for local files.
10347
10348 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10349 default to Qlocal.
10350
103512008-04-22 Juri Linkov <juri@jurta.org>
10352
10353 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10354 read-buffer-to-switch instead of using the letter "B".
10355
103562008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10357
10358 * fileio.c (Qdefault_directory): New variable.
10359 (Fread_file_name): Use it to pass `dir' to the completion functions.
10360
103612008-04-20 Chong Yidong <cyd@stupidchicken.com>
10362
10363 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10364
103652008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10366
10367 * keyboard.c (Vpre_help_message): Remove.
10368 (show_help_echo): Remove default C code.
10369
10370 * dired.c (directory_files_internal, file_name_completion):
10371 Only call ENCODE_FILE if the string is indeed decoded.
10372
103732008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10374
10375 * Makefile.in (TOOLKIT_DEFINES): Remove.
10376 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10377
103782008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10379
10380 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10381 (mactoolbox.o): New target.
10382
10383 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10384 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10385
10386 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10387 Use mac_set_frame_window_background instead of XSetWindowBackground.
10388 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10389 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10390 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10391 instead of SetWindowTitleWithCFString.
10392 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10393 Move function to mactoolbox.c.
10394 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10395 Use mac_set_window_modified instead of SetWindowModified.
10396 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10397 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10398 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10399 FrontNonFloatingWindow. Use mac_activate_window instead of
10400 ActivateWindow. Use mac_active_non_floating_window instead of
10401 ActiveNonFloatingWindow.
10402 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10403 Use mac_show_hourglass and mac_hide_hourglass.
10404 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10405 instead of GetGlobalMouse.
10406 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10407 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10408 Use mac_bring_window_to_front instead of BringToFront.
10409 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10410 mactoolbox.c.
10411 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10412 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10413 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10414 mactoolbox.c.
10415
10416 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10417 (XtPointer): Move typedef from macmenu.c.
10418 (enum button_type): Move enum from macmenu.c.
10419 (widget_value): Move typedef from macmenu.c.
10420 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10421 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10422 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10423 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10424 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10425 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10426 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10427 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10428 (Selection): Move typedef from macselect.c.
10429 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10430 macterm.c.
10431 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10432 (mac_is_window_collapsed, mac_bring_window_to_front)
10433 (mac_send_window_behind, mac_hide_window, mac_show_window)
10434 (mac_collapse_window, mac_front_non_floating_window)
10435 (mac_active_non_floating_window, mac_activate_window)
10436 (mac_move_window_structure, mac_move_window, mac_size_window)
10437 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10438
10439 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10440 (enum mac_menu_kind): Move enum to mactoolbox.c.
10441 (min_menu_id): Move variable to mactoolbox.c.
10442 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10443 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10444 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10445 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10446 [TARGET_API_MAC_CARBON]: Likewise.
10447 (XtPointer): Move typedef to macgui.h.
10448 (enum button_type): Move enum to macgui.h.
10449 (widget_value): Move typedef to macgui.h.
10450 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10451 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10452 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10453 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10454 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10455 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10456 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10457 (popup_activated_flag): Make variable non-static.
10458 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10459 (add_menu_item, fill_menu, dispose_menus):
10460 Move functions to mactoolbox.c.
10461 (restore_show_help_function, menu_target_item_handler)
10462 (install_menu_target_item_handler, mac_handle_dialog_event)
10463 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10464 [TARGET_API_MAC_CARBON]: Likewise.
10465 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10466 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10467 (find_and_call_menu_selection, name_is_separator): Make function
10468 non-static.
10469 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10470 to mactoolbox.c.
10471 (set_frame_menubar): Don't call install_menu_quit_handler.
10472 (menu_item_selection): New variable.
10473 (mac_menu_show): Use create_and_show_popup_menu.
10474 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10475 selection but set variable menu_item_selection. All uses changed.
10476 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10477 Call install_menu_quit_handler. Move to mactoolbox.c.
10478
10479 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10480 (Selection): Move typedef to macgui.h.
10481 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10482 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10483 Make variables non-static.
10484 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10485 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10486 Make functions non-static.
10487 (Vmac_service_selection) [MAC_OSX]: Likewise.
10488 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10489 (mac_valid_selection_target_p, mac_clear_selection)
10490 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10491 (mac_put_selection_value, mac_selection_has_target_p)
10492 (mac_get_selection_value, mac_get_selection_target_list)
10493 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10494 Move functions to mactoolbox.c.
10495 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10496 Likewise.
10497 (copy_scrap_flavor_data, mac_handle_service_event)
10498 (install_service_handler) [MAC_OSX]: Likewise.
10499 (syms_of_macselect) <Vmac_dnd_known_types>:
10500 Use mac_dnd_default_known_types.
10501
10502 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10503 Move to mactoolbox.c.
10504 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10505 (Fx_selection_owner_p): Add EXFUN.
10506 (install_window_handler, remove_window_handler, XSetWindowBackground):
10507 Remove externs.
10508 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10509 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10510 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10511 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10512 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10513 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10514 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10515 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10516 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10517 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10518 (mac_valid_selection_target_p, mac_clear_selection)
10519 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10520 (mac_put_selection_value, mac_selection_has_target_p)
10521 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10522 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10523 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10524 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10525 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10526 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10527 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10528 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10529 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10530
10531 * mactoolbox.c: New file.
10532
105332008-04-18 Jason Rumney <jasonr@gnu.org>
10534
10535 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10536
105372008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10538
10539 * character.c (Fmultibyte_char_to_unibyte):
10540 Return latin1 chars unchanged.
10541
10542 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10543 relocated if it points to `name'.
10544
105452008-04-17 Kenichi Handa <handa@m17n.org>
10546
10547 * data.c (Faset): Allow setting a multibyte character in an
10548 ASCII-only unibyte string.
10549
10550 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10551
105522008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10553
10554 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10555 done in config.h.
10556
105572008-04-16 Juanma Barranquero <lekktu@gmail.com>
10558
10559 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10560 (Fchar_direction): Add usage in the docstring.
10561
105622008-04-15 Chong Yidong <cyd@stupidchicken.com>
10563
10564 * keyboard.c (read_key_sequence): Remove always-true checks.
10565
105662008-04-14 Jason Rumney <jasonr@gnu.org>
10567
10568 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10569 compatibility struct, for better underline positioning.
10570
105712008-04-13 David Hansen <david.hansen@gmx.net>
10572
10573 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10574 string.
10575
105762008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10577
10578 * m/hp800.h (XUINT, XSET): Remove.
10579
105802008-04-12 Juanma Barranquero <lekktu@gmail.com>
10581
10582 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10583 previous change.
10584
105852008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10586
10587 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10588 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10589
105902008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10591
10592 * keymap.h (map_keymap_canonical): Declare.
10593 * xmenu.c (single_keymap_panes): Use it.
10594
105952008-04-11 Glenn Morris <rgm@gnu.org>
10596
10597 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10598 set the target's value to that of the alias.
10599
106002008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10601
10602 * term.c (set_tty_color_mode): Left over typo.
10603
106042008-04-10 Michael Albinus <michael.albinus@gmx.de>
10605
10606 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10607 only after check for file name handler functions. Signal, when
10608 native functionality is not supported.
10609 (syms_of_fileio): Declare it unconditionally.
10610
106112008-04-10 Jason Rumney <jasonr@gnu.org>
10612
10613 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10614 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10615
10616 * w32.c (logon_network_drive): Also logon to remote drives that
10617 are mapped to drive letters.
10618
106192008-04-10 Glenn Morris <rgm@gnu.org>
10620
10621 * xdisp.c (truncate-partial-width-windows): Doc fix.
10622
106232008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10624
10625 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10626 Move functions to minibuffer.el.
10627 (syms_of_fileio): Don't declare them.
10628
106292008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10630
10631 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10632 (syms_of_minibuf): Remove its initialization.
10633
10634 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10635
106362008-04-09 Juanma Barranquero <lekktu@gmail.com>
10637
10638 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10639
106402008-04-09 Jason Rumney <jasonr@gnu.org>
10641
10642 * makefile.w32-in (distclean): Delete makefile too.
10643 (maintainer-clean): New target.
10644
10645 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10646
10647 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10648 for new font backend and composite cases.
10649
106502008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10651
10652 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10653 Most of the code moved to run_timers.
10654 (do_pending_atimers): Call run_timers.
10655 (run_timers): New function.
10656
10657 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10658 run atimers.
10659
10660 * process.c (wait_reading_process_output): The same as above.
10661
106622008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10663
10664 * minibuf.c (last_exact_completion): Remove variable.
10665 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10666 (complete_and_exit_1, complete_and_exit_2)
10667 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10668 (Fdisplay_completion_list, display_completion_list_1)
10669 (Fminibuffer_completion_help, Fself_insert_and_exit)
10670 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10671 minibuffer.el.
10672 (syms_of_minibuf): Remove corresponding initializations.
10673
10674 * keyboard.c (Qdeactivate_mark): New var.
10675 (command_loop_1): Use it to call `deactivate-mark'.
10676 (syms_of_keyboard): Initialize it.
10677
10678 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10679 to another frame.
10680 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10681 Don't call set_tty_color_mode.
10682 (store_frame_param): Reset previous_frame rather than call
10683 set_tty_color_mode.
10684 * term.c (set_tty_color_mode): Rewrite.
10685 * dispextern.h (set_tty_color_mode): New type.
10686 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10687
106882008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10689
10690 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10691 for generic chars, which do not exist any more in emacs-unicode.
10692
106932008-04-08 Michael Albinus <michael.albinus@gmx.de>
10694
10695 * coding.c (detect_coding_emacs_mule)
10696 (Ffind_operation_coding_system): Fix typo.
10697
106982008-04-08 Jason Rumney <jasonr@gnu.org>
10699
10700 * w32uniscribe.c (SNAME): Extract only symbol name.
10701
10702 * w32font.h (struct w32_metric_cache): New struct.
10703 (w32font_info): Use it.
10704 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10705 (CACHE_BLOCKSIZE): New constants.
10706
10707 * w32font.c (Qja, Qko, Qzh): New symbols.
10708 (syms_of_w32font): Initialise them.
10709 (font_matches_spec): Use them to filter by language.
10710 (recompute_cached_metrics): Remove function.
10711 (compute_metrics, clear_cached_metrics): New functions.
10712 (w32font_encode_char): Use them to manage metric cache.
10713 (w32font_text_extents): Cache metrics for all glyphs on demand.
10714 Delay converting glyph indices to WORD until needed.
10715 (w32font_open_internal): Initialize metric cache to empty.
10716 (registry_to_w32_charset): Charset should always be a symbol.
10717 (fill_in_logfont, list_all_matching_fonts): Family should
10718 always be a symbol.
10719
107202008-04-06 Jason Rumney <jasonr@gnu.org>
10721
10722 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10723 Give up if glyph indices not supported. Use uniscribe obtained
10724 ABC widths for individual metrics. Map glyph clusters back to
10725 characters using fClusterStart flag. Return number of glyphs
10726 produced, not chars processed.
10727 (uniscribe_shape): Map char at FROM to current glyph.
10728
107292008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10730
10731 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10732 Use SetMenuItemHierarchicalMenu.
10733
107342008-04-05 Jason Rumney <jasonr@gnu.org>
10735
10736 * image.c (pbm_load): Allow color values up to 65535.
10737 Throw an error if max_color_idx is outside the supported range.
10738 Report an error when image size is invalid.
10739 Read two bytes at a time when raw images have max_color_idx above 255.
10740
107412008-04-05 Eli Zaretskii <eliz@gnu.org>
10742
10743 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10744 cFileName a file name that includes `?' characters, use the 8+3
10745 alias in cAlternateFileName instead.
10746
107472008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10748
10749 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10750 append "CCL: Quitted" when the CCL program is quitted.
10751 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10752
10753 * ccl.h (struct ccl_program): New member quit_silently.
10754
107552008-04-05 Chong Yidong <cyd@stupidchicken.com>
10756
10757 * search.c (compile_pattern_1): Treat non-nil and non-string of
10758 search-spaces-regexp as nil.
10759
10760 * minibuf.c (Fassoc_string): Tweak docstring.
10761
107622008-04-05 Eli Zaretskii <eliz@gnu.org>
10763
10764 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10765 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10766 2008-03-14 to force inode be positive.
10767
10768 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10769 _S_* ones, since we now use our own sys/stat.h.
10770 (stat, fstat): Don't mangle the inode number.
10771 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10772
107732008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10774
10775 * frame.h (struct frame): Give one more bit to `visible' since we use
10776 values larger than 1 to indicate obscured frames on ttys.
10777
10778 * keymap.c (Qkeymap_canonicalize): New var.
10779 (Fmap_keymap_internal): New fun.
10780 (describe_map): Use keymap-canonicalize.
10781
10782 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10783 (Fundo_boundary): Set them.
10784 (syms_of_undo): Initialize them.
10785 (record_point): Use them instead of last_point_position*.
10786 (last_undo_buffer): Change type.
10787
107882008-04-04 Jason Rumney <jasonr@gnu.org>
10789
10790 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10791 (recompute_cached_metrics): Don't set ascent and descent per char.
10792
10793 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10794 (uniscribe_check_otf): Add GC protection before consing.
10795 Rearrange loop for counting features.
10796
107972008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10798
10799 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10800 buffer with byte-size of source buffer.
10801
108022008-04-03 Chong Yidong <cyd@stupidchicken.com>
10803
10804 * callint.c (Fcall_interactively): Handle temporary region even
10805 when shift-select-mode is off.
10806
108072008-04-03 Jason Rumney <jasonr@gnu.org>
10808
10809 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10810
108112008-04-03 Kenichi Handa <handa@m17n.org>
10812
10813 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10814 (CATEGORY_MASK_UTF_16): Likewise.
10815 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10816 binary file.
10817 (detect_coding): Add null-byte detection for a binary file.
10818 (detect_coding_system): Likewise.
10819
108202008-04-03 Jason Rumney <jasonr@gnu.org>
10821
10822 * w32uniscribe.c: New file.
10823
10824 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10825
10826 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10827
10828 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10829 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10830 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10831 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10832 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10833 (Qphonetic): New symbols.
10834 (syms_of_w32font): Initialize them.
10835 (font_supported_scripts): Use them.
10836 (w32font_list_family): List all charsets.
10837 (w32font_text_extents, recompute_cached_metrics): Fix metric
10838 calculations.
10839 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10840 Give opentype fonts their own format.
10841 (font_matches_spec): New arguments backend and logfont.
10842 Handle :otf spec for uniscribe backend.
10843 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10844 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10845
10846 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10847 font backend.
10848 (globals_of_w32fns): Initialize uniscribe font backend.
10849
10850 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10851 dependencies.
10852 (w32uniscribe.$(O)): New file to build.
10853 (FONT_OBJ): Include w32uniscribe.$(O).
10854 (LIBS): Add uniscribe libraries.
10855
10856 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10857
108582008-04-02 Chong Yidong <cyd@stupidchicken.com>
10859
10860 * callint.c (Vshift_select_mode): New var.
10861 (Finteractive): Document new ^ spec.
10862 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10863 is present.
10864
10865 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10866 (command_loop_1): Avoid running the direct display versions of
10867 forward-char and backward-char if shift-selection may occur.
10868 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10869 shift-translation takes place.
10870
10871 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10872 avoid clobbering by define-minor-mode.
10873
10874 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10875 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10876
10877 * syntax.c (Fforward_word): Add ^ interactive spec.
10878
10879 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10880 (Fscroll_right): Add ^ interactive spec.
10881
108822008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10883
10884 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10885
10886 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10887
10888 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10889
108902008-03-31 Juri Linkov <juri@jurta.org>
10891
10892 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10893
108942008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10895
10896 * gtkutil.c (xg_set_geometry): Fix indentation.
10897 (xg_resize_outer_widget): Remove.
10898 (x_wm_size_hint_off): Fix indentation.
10899 (xg_frame_set_char_size): Call flush_and_sync after
10900 gtk_window_resize.
10901 (x_wm_set_size_hint): Pass NULL as geometry window to
10902 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10903 Add menu bar and tool bar height to base height.
10904 (xg_update_frame_menubar, free_frame_menubar)
10905 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10906 (update_frame_tool_bar, free_frame_tool_bar):
10907 Change xg_resize_outer_widget to xg_frame_set_char_size.
10908
109092008-03-30 Michael Albinus <michael.albinus@gmx.de>
10910
10911 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10912 (Fdbus_call_method): New parameter TIMEOUT.
10913 (dbus-send-signal): Optimize UNGCPRO call.
10914
109152008-03-29 Juri Linkov <juri@jurta.org>
10916
10917 * window.c (Fdisplay_buffer): Move call to
10918 Vsplit_window_preferred_function out of conditions that check
10919 if window is eligible for vertical splitting.
10920 When Vsplit_window_preferred_function is non-nil, call it and use
10921 its non-nil return value as window. Otherwise, continue doing
10922 vertical splitting using Fsplit_window with arg horflag=nil.
10923 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10924 default value from `split-window' to nil.
10925
109262008-03-29 Juri Linkov <juri@jurta.org>
10927
10928 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10929 for interactive code letters 'b' and 'B'.
10930
109312008-03-29 Eli Zaretskii <eliz@gnu.org>
10932
10933 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10934 multibyte string.
10935
109362008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10937
10938 * keyboard.c (pending_funcalls): New var.
10939 (timer_check): Run it.
10940 (syms_of_keyboard): Initialize it.
10941 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10942 (Vdelete_terminal_functions): New vars.
10943 (syms_of_terminal): Initialize them.
10944 (Fdelete_terminal): Run delete-terminal-functions.
10945 * xdisp.c (safe_eval): Rewrite.
10946 (safe_call2): New fun.
10947 * frame.c (Qdelete_frame_functions): New var.
10948 (syms_of_frame): Initialize it.
10949 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10950 * lisp.h (safe_call2, pending_funcalls): Declare.
10951
109522008-03-28 Andreas Schwab <schwab@suse.de>
10953
10954 * indent.c (Fmove_to_column): Move declaration before statements.
10955
109562008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10957
10958 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10959 (struct frame): Use bit fields for boolean vars.
10960
10961 * process.c (server_accept_connection): Simplify naming.
10962 (emacs_get_tty_pgrp): Use SDATA.
10963
10964 * coding.c (decode_coding_object): Fix last change.
10965
109662008-03-27 Jason Rumney <jasonr@gnu.org>
10967
10968 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10969
109702008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10971
10972 * charset.c (Fdefine_charset_internal): Change the way of
10973 registering charsets in Vcharset_order_list.
10974 (syms_of_charset): Make the charset `eight-bit' supplementary.
10975
109762008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10977
10978 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10979 operations, to avoid having the difference between pointers
10980 overflow.
10981
109822008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10983
10984 * indent.c (check_display_width): New fun.
10985 (scan_for_column): Use it.
10986
10987 * data.c (syms_of_data): Mark most-positive-fixnum and
10988 most-negative-fixnum as constants.
10989
10990 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10991
10992 * indent.c (scan_for_column): Extract from current_column_1.
10993 Merge with the same code from Fmove_to_column.
10994 (current_column_1, Fmove_to_column): Use it.
10995
109962008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10997
10998 * keymap.c (map_keymap_internal): New fun.
10999 (map_keymap): Use it.
11000 (Fmap_keymap_internal): New fun.
11001 (Fmap_keymap): Remove left-out test from before make_save_value.
11002
11003 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11004
11005 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11006 Use XCAR/XCDR.
11007
11008 * process.h (struct Lisp_Process): Remove filter_multibyte.
11009 * process.c (QCfilter_multibyte): Remove.
11010 (setup_process_coding_systems): Don't use filter_multibyte.
11011 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11012 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11013 (Fset_process_filter_multibyte): Change the coding-system to
11014 approximate the previous behavior.
11015 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11016 coding-system.
11017
11018 * coding.c (decode_coding_object): When not decoding into a buffer,
11019 obey the coding system's preference of (uni|multi)byte.
11020
110212008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11022
11023 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11024 every char is changed and has a different byte-length.
11025 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11026 Fix int -> EMACS_INT.
11027
110282008-03-23 David Hansen <david.hansen@gmx.net>
11029
11030 * dbusbind.c (xd_read_message): Remove extra copying of message
11031 strings. Check for NULL `interface' or `member'.
11032
110332008-03-22 Eli Zaretskii <eliz@gnu.org>
11034
11035 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11036 cFileName a file name that includes `?' characters, use the 8+3
11037 alias in cAlternateFileName instead.
11038
110392008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11040
11041 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11042
110432008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11044
11045 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11046 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11047 work on current_buffer only instead (that was already the case
11048 for some of the code anyway).
11049 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11050 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11051 (SET_PT, SET_PT_BOTH): Adjust.
11052 * intervals.h (set_point, temp_set_point, set_point_both)
11053 (temp_set_point_both): Remove redundant declarations.
11054
110552008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11056
11057 * fileio.c (Finsert_file_contents):
11058 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11059 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11060 when buffer != current_buffer anyway.
11061
110622008-03-20 Andreas Schwab <schwab@suse.de>
11063
11064 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11065 as default.
11066
110672008-03-19 Jason Rumney <jasonr@gnu.org>
11068
11069 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11070 (syms_of_w32fns): Initialize them.
11071 (HOURGLASS_ID): New constant.
11072 (x_window_to_frame): Don't check hourglass_window.
11073 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11074 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11075 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11076 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11077 Only change the cursor if hourglass is not active.
11078 (Fx_create_frame): Initialize frame's current_cursor.
11079 (hourglass_atimer): Remove.
11080 (hourglass_started): New function.
11081 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11082 (show_hourglass): Adapt to w32, changing argument to frame.
11083
11084 * w32term.h (struct w32_output): Remove hourglass_window.
11085 Add current_cursor.
11086
11087 * eval.c (call_debugger, Fsignal):
11088 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11089 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11090 (Fexecute_extended_command, cancel_hourglass_unwind):
11091 * minibuf.c (read_minibuf):
11092 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11093
110942008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11095
11096 * window.c (run_funs): New fun.
11097 (run_window_configuration_change_hook): Use it to run the buffer-local
11098 and the global part of the hook.
11099
11100 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11101 (unwind_format_mode_line): Restore selected window.
11102 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11103
111042008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11105
11106 * editfns.c (Fchar_equal): Check they are valid characters.
11107
11108 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11109
111102008-03-17 Andreas Schwab <schwab@suse.de>
11111
11112 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11113 against a charset.
11114
11115 * lisp.h (Fbuffer_list): Declare.
11116
111172008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11118
aac0c6e3
MR
11119 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11120 handlebox_widget is != 0.
11121
111222008-03-16 Juri Linkov <juri@jurta.org>
11123
11124 * callint.c (Fcall_interactively): For interactive code letters
11125 'b' and 'B' put the buffer list into the list of default "future"
11126 values of the minibuffer.
11127
111282008-03-16 Andreas Schwab <schwab@suse.de>
11129
11130 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11131 modifiers.
11132
11133 * regex.c (re_match_2_internal): Correct matching of a charset
11134 against latin-1 characters.
11135
111362008-03-16 Kenichi Handa <handa@m17n.org>
11137
11138 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11139 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11140 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11141 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11142 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11143 CHAR_STRING_ADVANCE.
11144 (produce_chars): Fix for the case that the source and the
11145 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11146 instead of CHAR_STRING_ADVANCE.
11147 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11148 STRING_CHAR_ADVANCE.
11149
111502008-03-15 Andreas Schwab <schwab@suse.de>
11151
11152 * regex.c (re_match_2_internal): Correct matching of eight bit
11153 characters in unibyte strings.
11154
111552008-03-15 Martin Rudalics <rudalics@gmx.at>
11156
11157 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11158 at end of range when it coincides with the end of the buffer.
11159
111602008-03-14 Eli Zaretskii <eliz@gnu.org>
11161
11162 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11163
11164 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11165
111662008-03-14 Jason Rumney <jasonr@gnu.org>
11167
11168 * editfns.c (initial_tz): New variable.
11169 (syms_of_editfns): Initialize it.
11170 (Fset_time_zone_rule): Set it when first called.
11171 Use it when TZSTRING is nil.
11172
11173 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11174 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11175 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11176 (globals_of_w32fns): Initialize them.
11177 (compute_tip_xy): Use them to position tooltips.
11178
111792008-03-14 Glenn Morris <rgm@gnu.org>
11180
11181 * emacs.c (main): Revert previous change.
11182 (standard_args): Revert -internal-script back to -scriptload,
11183 and remove the long-option form.
11184
111852008-03-13 Glenn Morris <rgm@gnu.org>
11186
11187 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11188 Remove option -enable-font-backend.
11189
111902008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11191
11192 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11193
111942008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11195
11196 * xterm.c (x_connection_closed): For GTK: If this is the last
11197 terminal just exit without closing the display.
11198
111992008-03-11 Jason Rumney <jasonr@gnu.org>
11200
11201 * w32font.c (w32font_full_name): Use floor to round.
11202
f0131492 112032008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11204
11205 * sound.c (alsa_configure): Declare vol at beginning of block.
11206
11207 * fontset.c (Ffontset_info): Remove extra semicolon.
11208
112092008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11210
11211 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11212 size of resulting string.
11213
112142008-03-10 Jason Rumney <jasonr@gnu.org>
11215
11216 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11217
112182008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11219
11220 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11221 Don't pretend as if characters with display property haven't been
11222 consumed for string-replacing-string case.
11223
112242008-03-08 Kim F. Storm <storm@cua.dk>
11225
11226 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11227 (get_next_display_element, next_element_from_string)
11228 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11229
112302008-03-08 Andreas Schwab <schwab@suse.de>
11231
11232 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11233
112342008-03-06 Jason Rumney <jasonr@gnu.org>
11235
11236 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11237 when charset not specified. Only translate ANSI to unicode when
11238 font_type is truetype.
11239 (w32font_coverage_ok): New function.
11240 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11241
112422008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11243
11244 * lread.c (Fread_char): Resolve modifiers.
11245 (Fread_char_exclusive): Likewise.
11246
11247 * character.c (char_resolve_modifier_mask): New function.
11248 (char_string): Use char_resolve_modifier_mask.
11249 (Fchar_resolve_modifiers): New function.
11250 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11251 function.
11252
112532008-03-04 Jason Rumney <jasonr@gnu.org>
11254
11255 * makefile.w32-in: Always include w32font.c in the build.
11256 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11257
112582008-03-04 Andreas Schwab <schwab@suse.de>
11259
11260 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11261 (versionclean): Likewise.
11262
112632008-03-04 Juanma Barranquero <lekktu@gmail.com>
11264
11265 * .cvsignore: Add oo.
11266
112672008-03-03 Andreas Schwab <schwab@suse.de>
11268
11269 * coding.c (decode_coding_object): Inhibit gap shrinking while
11270 decoding in place.
11271
112722008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11273
11274 * w32term.c: Remove unused include "gnu.h".
11275 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11276
11277 * gnu.h: Rename to ...
11278 * emacs-icon.h: ... this.
11279 * xterm.c: Use emacs-icon.h instead of gnu.h.
11280 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11281
112822008-03-03 Juanma Barranquero <lekktu@gmail.com>
11283
11284 * w32font.c: Include math.h.
11285
112862008-03-03 Jason Rumney <jasonr@gnu.org>
11287
11288 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11289 Compute options separately.
11290 (w32font_open_internal): Set glyph_idx before caching metrics.
11291
11292 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11293 Define if system headers don't.
11294 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11295 (w32font_encode_char): Don't declare here.
11296
11297 * w32font.c (Quniscribe, QCformat): New symbols.
11298 (syms_of_w32font): Define them.
11299 (w32font_has_char): Indicate uncertainty.
11300 (w32font_encode_char): Encode as glyph point. Make static.
11301 (recompute_cached_metrics): New function.
11302 (w32font_open_internal): Use it. Set font to use glyph points
11303 initially. Set format based on type of font.
11304 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11305 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11306 on it. Set format based on information available here.
11307 (add_font_entity_to_list): Identify backend based on opentype_only.
11308
113092008-03-02 Andreas Schwab <schwab@suse.de>
11310
11311 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11312
11313 * coding.c (decode_coding_big5, produce_chars):
11314 Fix typos in last change.
11315
113162008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11317
11318 * gnu.h: New icon.
11319
113202008-03-02 Kenichi Handa <handa@m17n.org>
11321
11322 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11323 `dos', don't decode '\r' if that is the last in the source.
11324 (decode_coding_utf_16, decode_coding_emacs_mule)
11325 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11326 (decode_coding_raw_text, decode_coding_charset): Likewise.
11327 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11328
113292008-03-01 Jason Rumney <jasonr@gnu.org>
11330
11331 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11332
113332008-03-01 Kim F. Storm <storm@cua.dk>
11334
11335 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11336
113372008-03-01 Jason Rumney <jasonr@gnu.org>
11338
11339 * w32font.c (w32font_full_name): New function.
11340 (w32font_open_internal): Use it.
11341
113422008-03-01 Kim F. Storm <storm@cua.dk>
11343
11344 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11345
113462008-03-01 Jason Rumney <jasonr@gnu.org>
11347
11348 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11349
113502008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11351
11352 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11353 xg_frame_resized when the event is for the edit widget.
11354
11355 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11356
11357 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11358 set_char_size.
11359 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11360 operations on widgets here. Just set frame size if needed.
11361 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11362 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11363 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11364 the whole frame.
11365 (xg_create_tool_bar): Move attachment of the tool bar to
11366 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11367 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11368
113692008-03-01 Jason Rumney <jasonr@gnu.org>
11370
11371 * w32fns.c (w32_msg_pump): Disable debug code.
11372
113732008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11374
11375 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11376
113772008-02-29 Chong Yidong <cyd@stupidchicken.com>
11378
11379 * xdisp.c (next_overlay_string): Don't set
11380 overlay_strings_at_end_processed_p if we're currently reading from
11381 a display string.
11382
113832008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11384
11385 * xdisp.c (get_overlay_strings_1): Fix typo.
11386
113872008-02-29 Chong Yidong <cyd@stupidchicken.com>
11388
11389 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11390
113912008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11392
11393 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11394
11395 * xdisp.c (display_mode_element): Cancel the previous change.
11396 (decode_mode_spec): Likewise.
11397 (handle_auto_composed_prop): Don't make composition if it->string
11398 is a string.
11399
114002008-02-27 Kim F. Storm <storm@cua.dk>
11401
11402 * lisp.h (GLYPH): Change type from int to struct with separate char
11403 and face_id members.
11404 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11405 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11406 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11407 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11408 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11409 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11410 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11411 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11412 handle new Lisp glyph code encoding, either an integer or a cons.
11413
11414 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11415 (GLYPH_ALIAS): Delete.
11416 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11417 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11418 (GLYPH_FROM_CHAR): Replace macro by ...
11419 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11420
11421 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11422 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11423 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11424 (GLYPH_INVALID_P): New macro.
11425 (spec_glyph_lookup_face): Update prototype.
11426
11427 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11428 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11429 new glyph code encoding.
11430 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11431 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11432
11433 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11434 Adapt to new glyph type and new glyph code encoding.
11435
11436 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11437
11438 * indent.c (current_column, current_column_1, Fmove_to_column)
11439 (compute_motion): Adapt to new glyph code encoding.
11440
11441 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11442
114432008-02-27 Chong Yidong <cyd@stupidchicken.com>
11444
11445 * process.c (wait_reading_process_output): Check for window
11446 changes caused by timers.
11447 Suggested by Johan Bockgård.
11448
114492008-02-27 Glenn Morris <rgm@gnu.org>
11450
11451 * emacs.c (USAGE1): Add `--disable-font-backend'.
11452
114532008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11454
11455 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11456 is made to the buffer.
11457
114582008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11459
11460 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11461 (face_at_string_position):
11462 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11463 (face_at_string_position):
11464 * xdisp.c (display_string, next_overlay_change):
11465 * buffer.h (overlays_at):
11466 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11467 Update callers.
11468
114692008-02-26 Chong Yidong <cyd@stupidchicken.com>
11470
11471 * editfns.c (Fformat): Doc fix.
11472
114732008-02-26 Juanma Barranquero <lekktu@gmail.com>
11474
11475 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11476 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11477 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11478
114792008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11480
11481 * buffer.c (Fbuffer_swap_text): New function.
11482 (syms_of_buffer): Defsubr it.
11483
114842008-02-25 Chong Yidong <cyd@stupidchicken.com>
11485
11486 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11487
114882008-02-25 Jason Rumney <jasonr@gnu.org>
11489
11490 * w32font.c (w32font_draw): Draw one character at a time when padding.
11491
114922008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11493
11494 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11495 Handle a nil arg. Use run_window_configuration_change_hook.
11496 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11497 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11498 Use run_window_configuration_change_hook.
11499
115002008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11501
11502 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11503 1-pixel width.
11504
115052008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11506
11507 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11508 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11509 if the glyph in the font is zero pixel with.
11510
11511 * dispextern.h (struct glyph_string): New member padding_p.
11512
11513 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11514
11515 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11516
11517 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11518
11519 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11520
11521 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11522
115232008-02-25 Jason Rumney <jasonr@gnu.org>
11524
11525 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11526
115272008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11528
11529 Allow fine-grained image-cache flushing.
11530 * dispextern.h (struct image): Add `dependencies' field.
11531 (clear_image_caches): Change arg to Lisp_Object.
11532 * image.c (make_image): Initialize `dependencies' field.
11533 (clear_image_cache): Change arg to allow fine-grained flushing.
11534 Perform the flush even if image-cache-eviction-delay is nil.
11535 (clear_image_caches): Change arg to Lisp_Object.
11536 (Fclear_image_cache): Expand meaning of the argument.
11537 (mark_image): Mark `dependencies' field.
11538 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11539 (lface_hash): Use XHASH rather than XFASTINT.
11540 (face_at_buffer_position): Fix int -> EMACS_INT position.
11541 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11542 (select_frame_for_redisplay): Remove code duplication.
11543 (redisplay_internal): Adapt arg to call to clear_image_caches.
11544
115452008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11546
11547 * s/vms4-0.h:
11548 * s/vms4-2.h:
11549 * s/vms4-4.h:
11550 * s/vms5-5.h: Remove, unused.
11551
11552 * s/irix5-2.h:
11553 * s/irix6-0.h:
11554 * s/riscos5.h:
11555 * s/mach-bsd4-3.h:
11556 * m/mips4.h: Remove files for obsolete systems.
11557
11558 * Makefile.in:
11559 * filelock.c:
11560 * unexmips.c:
11561 * m/hp9000s300.h:
11562 * m/iris4d.h:
11563 * s/aix3-1.h:
11564 * s/hpux.h:
11565 * s/msdos.h:
11566 * s/usg5-0.h:
11567 * s/usg5-2-2.h:
11568 * s/usg5-2.h:
11569 * s/usg5-3.h: Remove references to obsolete variables.
11570
11571 * s/irix5-0.h: Remove, move all the contents ...
11572 * s/irix6-5.h: ... here. Simplify.
11573 * config.in: Regenerate.
11574
115752008-02-24 Jason Rumney <jasonr@gnu.org>
11576
11577 * w32term.c (x_draw_glyph_string_background): Clear the background
11578 manually when cleartype is in use.
11579 (x_draw_glyph_string_foreground): Draw text transparently when
11580 cleartype is in use.
11581
11582 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11583 a font into it unless we have to.
11584
115852008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11586
11587 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11588 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11589
aac0c6e3
MR
115902008-02-18 Jason Rumney <jasonr@gnu.org>
11591
11592 * w32fns.c (Fw32_shell_execute): Encode parameters.
11593
115942008-02-09 Eli Zaretskii <eliz@gnu.org>
11595
11596 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11597
115982008-02-05 Juanma Barranquero <lekktu@gmail.com>
11599
11600 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11601
116022008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11603
11604 * xterm.c (x_set_offset): Don't change the gravity if
11605 CHANGE_GRAVITY is -1.
11606
116072008-02-23 Chong Yidong <cyd@stupidchicken.com>
11608
11609 * fileio.c (auto_save_error_occurred): New var.
11610 (auto_save_error): Set it.
11611 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11612 error occurred.
11613
116142008-02-23 Eli Zaretskii <eliz@gnu.org>
11615
11616 * w32.c (globals_of_w32): Add initializations for
11617 g_b_init_get_sid_sub_authority and
11618 g_b_init_get_sid_sub_authority_count.
11619
116202008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11621
11622 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11623 (font_parse_xlfd): Use them for sanity check.
11624 (Finternal_set_font_style_table): Make sure the table is bijective.
11625
11626 Consolidate the image_cache to the terminal struct.
11627 * termhooks.h (P_): Remove redundant def.
11628 (struct terminal): New field `image_cache'.
11629 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11630 of FRAME_X_IMAGE_CACHE.
11631 * xterm.h (struct x_display_info): Remove image_cache field.
11632 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11633 * w32term.h (struct w32_display_info): Remove image_cache field.
11634 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11635 * macterm.h (struct mac_display_info): Remove image_cache field.
11636 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11637 * xterm.c (x_term_init):
11638 * w32term.c (w32_term_init):
11639 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11640 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11641 Remove declarations.
11642 (clear_image_caches, mark_image_cache): New declarations.
11643 * xfaces.c (clear_face_cache):
11644 * xdisp.c (redisplay_internal): Use clear_image_caches.
11645 * image.c (clear_image_cache): Don't check that a frame is on
11646 a window-system before checking if it shares the same cache.
11647 (clear_image_caches): New function.
11648 (Fclear_image_cache): Use it.
11649 (mark_image): Move from allo.c.
11650 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11651 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11652 (mark_object): Don't call mark_image_cache for frames.
11653 (mark_terminals): Call mark_image_cache.
11654
11655 * lisp.h (Fdelete_terminal): Declare.
11656
11657 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11658 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11659 wrong_type_argument.
11660
116612008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11662
11663 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11664 malayalam.el, and tamil.el. Add sinhala.el.
11665
116662008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11667
11668 * xterm.c (x_connection_closed): Consolidate identical tests.
11669 (x_delete_terminal): Don't crash if called via x_connection_closed.
11670
116712008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11672
11673 * xdisp.c (decode_mode_spec): New arg string.
11674 (display_mode_element): Adjust for the above change.
11675
116762008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11677
11678 * callint.c (Fcall_interactively): Use AREF.
11679
116802008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11681
11682 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11683
116842008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11685
11686 * xfns.c (Fx_show_tip): Set string to " " if empty.
11687
116882008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11689
11690 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11691 with Qt.
11692
116932008-02-17 Kenichi Handa <handa@m17n.org>
11694
11695 * ftfont.c (ftfont_shape): Return Lispy number.
11696
11697 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11698 for GCs.
11699 (Finternal_set_font_selection_order): Call font_update_sort_order
11700 only when enable_font_backend is set.
11701 (realize_x_face): Set face->font_info to that of default face only
11702 when enable_font_backend is set.
11703
11704 * xdisp.c (handle_composition_prop): Set it->c to the fist
11705 character of the composed region.
11706 (fill_composite_glyph_string): Set base_face->font_info to
11707 s->font_info. Get a face for ascii from base_face->ascii_face.
11708 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11709 with a face already decided.
11710 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11711 non-negative.
11712 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11713 call font_prepare_composition unconditionally.
11714
11715 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11716
11717 * xterm.h (struct x_display_info): New member font.
11718
11719 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11720 (x_set_mouse_face_gc, x_new_font): Likewise.
11721 (x_term_init): Setup display_info->font.
11722 (x_delete_terminal): Free display_info->font.
11723
11724 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11725
11726 * ftxfont.c (ftxfont_default_fid): Delete it.
11727 (ftxfont_open): Set xfont->fid to 0.
11728 (ftxfont_end_for_frame): Clear data specific to the frame and the
11729 font-driver.
11730
11731 * xftfont.c (xftfont_default_fid): Delete it.
11732 (xftfont_open): Set xfont->fid to 0.
11733
11734 * fontset.c (FONTSET_OBJLIST): New macro.
11735 (fontset_find_font): Update font-object list of the fontset.
11736 (free_realized_fontset): New function.
11737 (free_face_fontset): Call free_realized_fontset.
11738 (Ffont_info): Call font_close_object only when enable_font_backend
11739 is set.
11740
11741 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11742 [HAVE_NTGUI]: Include w32term.h.
11743 [MAC_OS]: Include macterm.ch.
11744 (font_otf_ValueRecord): Use make_number.
11745 (font_finish_cache): Fix handling of reference count.
11746 (font_clear_cache): Update num_fonts.
11747 (font_open_entity): Update smallest_char_width and
11748 smallest_font_height of the frame.
11749 (font_close_object): Update num_fonts.
11750 (Fclear_font_cache): Fix finding the target cache data.
11751
117522008-02-16 Glenn Morris <rgm@gnu.org>
11753
11754 * fontset.c (Finternal_char_font): Fix compilation warning.
11755
117562008-02-16 Eli Zaretskii <eliz@gnu.org>
11757
11758 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11759 instead of char arrays. Enlarge the size of array passed to
11760 get_token_information.
11761
11762 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11763 warnings.
11764
117652008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11766
11767 * .gdbinit: Don't set `args', it breaks gdb --args.
11768
117692008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11770
11771 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11772 within a narrowed buffer.
11773
117742008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11775
11776 * coding.c (decode_coding_object, encode_coding_object):
11777 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11778
117792008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11780
11781 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11782 hardcoding 1.
11783 (detect_coding_system):
11784 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11785 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11786 * insdel.c (insert_from_gap):
11787 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11788 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11789 (string_to_multibyte):
11790 * character.c (chars_in_text, multibyte_chars_in_text):
11791 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11792
11793 * character.h (FETCH_STRING_CHAR_ADVANCE)
11794 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11795 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11796 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11797
11798 * casefiddle.c (casify_region): Only call after-change and composition
11799 functions on the part of the region that was changed.
11800
11801 * keyboard.c (read_avail_input):
11802 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11803
118042008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11805
11806 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11807 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11808
118092008-02-11 Juanma Barranquero <lekktu@gmail.com>
11810
11811 * w32menu.c (push_submenu_start, push_submenu_end)
11812 (push_left_right_boundary, push_menu_pane, push_menu_item):
11813 * keyboard.c (read_key_sequence): Don't pass args with side effects
11814 to AREF, it fails when compiling with -DENABLE_CHECKING.
11815
118162008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11817
11818 * Makefile.in (${lispsource}international/charprop.el):
11819 Delete this target.
11820
11821 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11822 emacs-unicode-2.
11823
118242008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11825
11826 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11827
118282008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11829
11830 * frame.c (Qnoelisp): New symbol.
11831 (syms_of_frame): Initialize it.
11832 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11833 harmless Elisp code, from a strong `force' from x_connection_closed.
11834 * frame.h (Qnoelisp): Declare.
11835 * xterm.c (x_connection_closed): Pass `noelisp'.
11836
11837 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11838 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11839 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11840 rather than `int' for the type of `type'.
11841
118422008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11843
11844 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11845
11846 * Makefile.in (GNUC): Remove support for gcc-1.x.
11847
118482008-02-10 Richard Stallman <rms@gnu.org>
11849
11850 * lisp.h (ASET): Use AREF, not ASLOT.
11851
118522008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11853
11854 * lisp.h (ASET): Check bounds.
11855
118562008-02-10 Glenn Morris <rgm@gnu.org>
11857
11858 * buffer.c (mode-name): Doc fix.
11859
118602008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11861
11862 * Makefile.in:
11863 * emacs.c:
11864 * gmalloc.c:
11865 * keyboard.c:
11866 * lisp.h:
11867 * m/ibm370aix.h:
11868 * process.c:
11869 * regex.c:
11870 * s/hpux.h:
11871 * sysdep.c:
11872 * sysselect.h:
11873 * systty.h:
11874 * unexec.c:
11875 * w32term.c:
11876 * xsmfns.c:
11877 * xterm.c: Remove code that deals with obsolete variables.
11878
11879 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11880
11881 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11882 nothing else needs it anymore.
11883
118842008-02-09 Eli Zaretskii <eliz@gnu.org>
11885
11886 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11887 instead of unibyte_char_to_multibyte.
11888
118892008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11890
11891 * s/gnu-linux.h: Remove commented out code.
11892
11893 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11894
11895 * Makefile.in: Update what RMS says about using autoconf.
11896 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11897 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11898 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11899 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11900
119012008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11902
11903 * keymap.c (Fkey_description): Move side effect outside of macro call.
11904
11905 * xfaces.c (Finternal_make_lisp_face):
11906 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11907
11908 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11909 (syms_of_fontset): Use ASET.
11910
11911 * fns.c (concat): Move side effect outside of macro call.
11912 (hash_clear): Use ASET.
11913
119142008-02-08 Richard Stallman <rms@gnu.org>
11915
11916 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11917 If FORCE, and frame has a surrogate minibuffer for another frame,
11918 delete the other frame first.
11919
119202008-02-07 Timo Savola <timo.savola@iki.fi>
11921
11922 * xterm.c (x_detect_focus_change): Handle embed client message.
11923 (handle_one_xevent): Ditto.
11924 (handle_one_xevent): If embedded and we get a button press/release,
11925 request focus.
11926 (xembed_set_info, xembed_send_message): New functions.
11927 (x_make_frame_visible): Call xembed_set_info if embedded.
11928 (x_make_frame_invisible): Call xembed_set_info if embedded.
11929 (x_term_init): Initialize Xatom_XEMBED.
11930 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11931 (x_iconify_frame): Ditto.
11932
11933 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11934 (enum xembed_info, enum xembed_message, enum xembed_focus)
11935 (enum xembed_modifier, enum xembed_accelerator): New.
11936 (xembed_set_info, xembed_send_message): Declare.
11937 (FRAME_X_EMBEDDED_P): New.
11938
11939 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11940 gtk_plug_new.
11941
11942 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11943 window ID of a frame.
11944 (x_window): Reparent frame if embedded.
11945 (Fx_create_frame): Don't set border width if embedded.
11946
11947 * emacs.c (USAGE3): Add --parent-id.
11948 (standard_args): Ditto.
11949
119502008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11951
11952 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11953
119542008-02-07 Jim Meyering <meyering@redhat.com>
11955
11956 Use "do...while (0)", not "if (1)...else" in macro definitions.
11957 The latter provokes a warning from gcc about the empty else, when
11958 followed by ";". Also, without that trailing semicolon, it would
11959 silently swallow up any following statement.
11960 * syntax.h (SETUP_SYNTAX_TABLE)
11961 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11962 * buffer.h (DECODE_POSITION): Likewise.
11963 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11964 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11965 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11966 (FETCH_CHAR_ADVANCE): Likewise.
11967 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11968
119692008-02-07 Jim Meyering <meyering@redhat.com>
11970
11971 * lread.c [lint]: Don't include <sys/inode.h>.
11972
119732008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11974
11975 * xselect.c (x_handle_dnd_message):
11976 * xmenu.c (digest_single_submenu, xmenu_show):
11977 * xdisp.c (with_echo_area_buffer_unwind_data)
11978 (format_mode_line_unwind_data, unwind_format_mode_line)
11979 (display_menu_bar):
11980 * eval.c (Ffetch_bytecode):
11981 * doc.c (store_function_docstring):
11982 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11983 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11984 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11985
119862008-02-07 Kenichi Handa <handa@m17n.org>
11987
11988 * ftxfont.c (ftxfont_open): Don't set
11989 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11990
11991 * ftfont.c (ftfont_open): Fix previous change.
11992
119932008-02-06 Jason Rumney <jasonr@gnu.org>
11994
11995 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11996 Use cached metrics for ASCII characters.
11997 (w32font_open_internal): Don't set font's owning_frame.
11998 Cache metrics for ASCII characters.
11999
12000 * w32font.h (struct w32font_info): Add ascii_metrics.
12001 Remove owning_frame.
12002
120032008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12004
12005 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12006 to negative value.
12007
12008 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12009
12010 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12011
12012 * charset.c (syms_of_charset): Set QCtest and Qeq.
12013
120142008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12015
12016 * process.c (Fstart_process):
12017 * callproc.c (Fcall_process): Handle the case where
12018 Funhandled_file_name_directory returns nil.
12019
12020 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12021 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12022 * font.c (check_gstring): Use them and AREF to access the vector before
12023 we know it's really a gstring.
12024 (Ffont_shape_text): Fix typo.
46e722a9 12025 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12026
12027 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12028 Declare.
12029
12030 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12031
120322008-02-05 Jason Rumney <jasonr@gnu.org>
12033
12034 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12035 Set smallest_font_height and smallest_char_width in display info.
12036
120372008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12038
12039 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12040
120412008-02-05 Miles Bader <miles@gnu.org>
12042
12043 * xfaces.c (get_lface_attributes, merge_named_face)
12044 (lookup_named_face, lookup_derived_face, realize_named_face):
12045 Revert 2008-02-01 change by cyd@stupidchicken.com.
12046
120472008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12048
12049 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12050 fallback fonts.
12051 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12052
120532008-02-04 Jason Rumney <jasonr@gnu.org>
12054
12055 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12056 set full_name.
12057 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12058
120592008-02-03 Jason Rumney <jasonr@gnu.org>
12060
12061 * makefile.w32-in (OBJ1): Include font.o here.
12062 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12063
120642008-02-02 Jason Rumney <jasonr@gnu.org>
12065
12066 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12067
120682008-02-01 Jason Rumney <jasonr@gnu.org>
12069
12070 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12071
12072 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12073
120742008-02-01 Andreas Schwab <schwab@suse.de>
12075
12076 * Makefile.in (shortlisp, lisp): Update for rename of
12077 ../lisp/language/myanmar.el.
12078
120792008-02-01 Chong Yidong <cyd@stupidchicken.com>
12080
12081 * xfaces.c (get_lface_attributes): Delete function.
12082 (merge_named_face, lookup_named_face, lookup_derived_face)
12083 (realize_named_face): Call lface_from_face_name directly, and use
12084 the fact that merge_face_vectors does not alter its FROM argument.
12085
120862008-02-01 Jason Rumney <jasonr@gnu.org>
12087
12088 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12089 input in the default locale. Handle non-Unicode multibyte input.
12090
120912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12092
12093 * fontset.c (reorder_font_vector): Exclude nil elements from the
12094 font group. Don't try multiple fonts.
12095 (fontset_font): Adjust for the above change.
12096 (Finternal_char_font): Return nil if the found font doesn't
12097 contain the character ch.
12098
12099 * Makefile.in (lisp, shortlisp): Add cham.el.
12100
121012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12102
12103 * font.h (FONTP): Make it return 1 also for a font-object.
12104
12105 * .gdbinit (xfontset): New function.
12106
12107 * font.c (font_find_for_lface): Check if the character C is
12108 supported or not only for the first font.
12109
12110 * fontset.c (reorder_font_vector): Fix typo.
12111 (fontset_find_font): Don't add a font-spec specifying a script.
12112 Use 0 (not Qt) for the indication of empty font-group. Change the
12113 format of RFONT-DEF. Return Qt if no font in the font-group
12114 support the character.
12115 (fontset_font): Adjust for the above change. If no font was
12116 found the character, remember that.
12117 (face_for_char): Adjust for the change of RFONT-DEF.
12118 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12119 no font for the target.
12120 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12121
121222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12123
12124 * font.c (font_load_for_face): Handle the case that the font in
12125 face->lface is a string.
12126
121272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12128
12129 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12130
121312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12132
12133 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12134 Fix previous change. If the frame is not on a window system,
12135 signal an error.
12136
121372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12138
12139 * coding.c (decode_coding_object, encode_coding_object): Adjust
12140 marker positions after conversion.
12141
12142 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12143
121442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12145
12146 * font.c (font_find_for_lface): Fix the handling of the return
12147 value of font_has_char.
12148 (Ffont_shape_text): Fix previous change.
12149
12150 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12151 (fontset_ref_and_range): Delete it.
12152 (fontset_find_font): Call char_table_ref_and_range instead of
12153 FONTSET_REF_AND_RANGE.
12154 (make_fontset): Don't setup font groups of Latin here.
12155 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12156 (new_fontset_from_font): Make the specified font the default for
12157 all Latin characters.
12158
121592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12160
12161 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12162 is on a window system before accessing the fontset of the frame.
12163
121642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12165
12166 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12167
12168 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12169 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12170
12171 * font.c (Ffont_shape_text): If the font driver doesn't have a
12172 shaper function, make zero-width glyphs to have at least one-pixel
12173 width. Fix setting of `to' field of glyphs.
12174
121752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12176
12177 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12178 glyphs.
12179
12180 * font.h (struct font_driver): Improve docstring of member `shape'.
12181
121822008-02-01 Kenichi Handa <handa@m17n.org>
12183
12184 * composite.c (syms_of_composite): Fix docstring of
12185 auto-composition-function.
12186
12187 * font.h (LGLYPH_SIZE): New macro.
12188
12189 * font.c (Ffont_fill_gstring): Stop filling when a character not
12190 supported by the font is found.
12191 (Ffont_shape_text): When a shape callback function returns nil,
12192 try at most two more times with larger gstring.
12193 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12194
12195 * xdisp.c (handle_auto_composed_prop): Change the argument to
12196 auto-composition-function.
12197
12198 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12199 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12200 Lispy glyph and store it in the lgstring.
12201
12202 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12203
12204 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12205
122062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12207
12208 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12209
12210 * fontset.c (Vfont_encoding_charset_alist): New variable.
12211 (syms_of_fontset): DEFVAR it.
12212 (reorder_font_vector, fontset_find_font): Optimize for the case of
12213 no need of reordering.
12214 (face_for_char): Map the charset property by
12215 Vfont_encoding_charset_alist.
12216
122172008-02-01 Jason Rumney <jasonr@gnu.org>
12218
12219 * w32font.c (logfonts_match): Don't check adstyle here.
12220 (font_matches_spec): Check here against physical font instead.
12221 (add_font_entity_to_list): Avoid some substitutions.
12222
12223 * font.c (font_parse_fcname): Default weight and slant to normal.
12224 (font_score): Prefer normal fonts if weight or slant unspecified.
12225 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12226 match freetype scores.
12227
122282008-02-01 Jason Rumney <jasonr@gnu.org>
12229
12230 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12231 font, as it may have been deleted.
12232 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12233 most common hyphenless variation.
12234 (logfonts_match): Check generic family.
12235 (font_matches_spec): Don't check generic family here.
12236 (fill_in_logfont): Set generic family based on adstyle.
12237
12238 * w32font.h (w32font_get_cache): Update declaration.
12239
122402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12241
12242 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12243
12244 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12245 If none of the new drivers are available, call font_update_drivers
12246 with the old drivers.
12247
12248 * w32font.c (w32font_get_cache): Adjust the argument type.
12249
12250 * xfont.c (xfont_get_cache): Adjust the argument type.
12251
12252 * font.h (struct font_driver): Change argument type of get_cache.
12253
12254 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12255
12256 * font.c (Ffont_get): Fix arguments to Fassoc.
12257 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12258 (font_clear_cache): New function.
12259 (font_list_entities, font_matching_entity): Use font_get_cache.
12260 (font_update_drivers): Call font_clear_cache when finishing a driver.
12261
12262 * fontset.c (fontset_find_font): Fix previous change.
12263
122642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12265
12266 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12267 dpyinfo->font_table.
12268 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12269 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12270
12271 * font.c (font_at): Handle the case that the arg C is negative.
12272 Handle the unibyte case.
12273 (Ffont_at): Call font_at with the arg C -1.
12274
12275 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12276 the position here, and call font_at with the arg C -1.
12277 Don't check the range of the existing composition at the point.
12278
122792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12280
12281 * fontset.c (fontset_add): New args charset_id and family.
12282 Change caller.
12283 (load_font_get_repertory, fontset_find_font): Assume that
12284 font_spec is always a font-spec object.
12285 (Fset_fontset_font): Always store a font-spec object in a fontset.
12286
12287 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12288 instead of get_property_and_range.
12289
122902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12291
12292 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12293 (xftfont_open): Don't keep locking face.
12294 (xftfont_close): Don't unlock face.
12295 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12296
12297 * fontset.c (fontset_find_font): Don't prefer a font of
12298 supplementary charset.
12299
123002008-02-01 Kenichi Handa <handa@m17n.org>
12301
12302 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12303 script, langsys_tag to langsys, new member script.
12304 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12305 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12306 listing to the script specified in that property. Fix arg to
12307 OTF_check_features.
12308
123092008-02-01 Jason Rumney <jasonr@gnu.org>
12310
12311 * w32font.h: New file.
12312
12313 * w32font.c: Include it.
12314 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12315 (w32font_open): Set owning_frame.
12316 (w32font_text_extents): Use owning_frame.
12317 (struct font_callback_data): Add opentype_only field.
12318 (add_font_entity_to_list): Use it to filter fonts.
12319 Don't check against full name.
12320 (w32font_list_internal): New function.
12321 (w32font_list): Use it.
12322 (w32font_match_internal): New function.
12323 (w32font_match): Use it.
12324 (w32font_open_internal): New function.
12325 (w32font_open): Use it.
12326 (w32font_get_cache, w32font_close, w32font_has_char)
12327 (w32font_encode_char, w32font_text_extents, w32font_draw):
12328 Make non-static.
12329
12330 * makefile.w32-in (w32font.o): Depend on w32font.h.
12331
123322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12333
12334 * charset.c (Fdefine_charset_internal): Record a supplementary
12335 charset at the tail of Vcharset_order_list.
12336
12337 * font.c (Ffont_shape_text): Fix the return value.
12338
12339 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12340
12341 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12342
123432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12344
12345 * ftfont.c (struct OpenTypeSpec): New struct.
12346 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12347 (ftfont_get_open_type_spec): New function.
12348 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12349
12350 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12351
123522008-02-01 Jason Rumney <jasonr@gnu.org>
12353
12354 * w32font.c (add_font_entity_to_list): Compare only the beginning
12355 of full name.
12356
123572008-02-01 Kenichi Handa <handa@m17n.org>
12358
12359 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12360 Never return HANDLED_RECOMPUTE_PROPS.
12361
123622008-02-01 Kenichi Handa <handa@m17n.org>
12363
12364 * font.c (font_gstring_produce): Delete it.
12365
12366 * composite.h (COMPOSITION_METHOD):
12367 Handle COMPOSITION_WITH_GLYPH_STRING.
12368
123692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12370
12371 * xfont.c (Qx): Delete.
12372 (syms_of_xfont): Don't initialize Qx.
12373
12374 * composite.h (enum composition_method):
12375 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12376
123772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12378
12379 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12380 (choose_face_font): Accept new form of font-spec.
12381
12382 * frame.h (font_driver_list): Declare it unconditionally.
12383 (struct frame): Define members font_driver_list and font_data_list
12384 unconditionally.
12385
12386 * fontset.c: Include "font.h" unconditionally.
12387 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12388 (Fset_fontset_font): Accept a font-spec object.
12389
12390 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12391 PIXEL_SIZE part a wild card.
12392
12393 * dispextern.h (struct glyph_string): Define members clip and
12394 num_clips unconditionally.
12395 (struct face): Define members font_info and extra unconditionally.
12396
12397 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12398 ftfont_info only when HAVE_LIBOTF is defined.
12399
124002008-02-01 Andreas Schwab <schwab@suse.de>
12401
12402 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12403 and end.
12404
124052008-02-01 Jason Rumney <jasonr@gnu.org>
12406
12407 * w32font.c (w32font_driver): Add new fields.
12408
124092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12410
12411 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12412 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12413 (LIBES): Add @M17N_FLT_CFLAGS@.
12414
12415 * composite.c (compose_text): Don't treat the new style
12416 composition specially.
12417
12418 * emacs.c (main): Call syms_of_font unconditionally.
12419
12420 * font.h (FONT_ENTITY_NOT_LOADABLE)
12421 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12422 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12423 (struct font_driver): New member shape.
12424 (font_registry_charsets): Extern it.
12425 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12426 (font_otf_capability, font_drive_otf): Delete their externs.
12427
12428 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12429 (font_charset_alist, font_registry_charsets): Move from xfont.c
12430 and rename.
12431 (font_prop_validate_otf): New function.
12432 (font_property_table): Register it for QCotf.
12433 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12434 (font_drive_otf): Delete.
12435 (font_prepare_composition): New arg F. Adjust for the change of
12436 lispy gstring.
12437 (font_find_for_lface): New arg C.
12438 (font_load_for_face): Adjust for the change of font_find_for_lface.
12439 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12440 lispy gstring.
12441 (Ffont_shape_text): New function.
12442 (Fopen_font): If the font size is not given, use 12-pixel.
12443 (Ffont_at): New arg STRING.
12444 (syms_of_font): Initalize font_charset_alist.
12445 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12446 conditionally.
12447
12448 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12449 fonts of the same font-spec. Change the format of RFONT-DEF.
12450 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12451 Adjust for the change of RFONT-DEF.
12452 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12453
12454 * ftfont.h: New file.
12455
12456 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12457 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12458 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12459 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12460 font_otf_capability and font_drive_otf, set ftfont_shape.
12461 (ftfont_list): Adjust for the change of :otf property value.
12462 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12463 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12464 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12465 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12466 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12467 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12468
12469 * w32term.c (x_draw_composite_glyph_string_foreground):
12470 Adjust for the change of lispy gstring.
12471
12472 * xdisp.c (handle_composition_prop): Adjust for the change of
12473 lispy gstring. Call a function for auto-composition with the
12474 third arg it->window.
12475 (fill_composite_glyph_string): Adjust for the change of lispy string.
12476 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12477
12478 * xfaces.c (set_font_frame_param): Adjust for the change of
12479 font_find_for_lface.
12480
12481 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12482 (xfont_registry_charsets): Likewise. Change caller.
12483 (syms_of_xfont): Don't handle x_font_charset_alist.
12484
12485 * xftfont.c: Include "ftfont.h".
12486 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12487 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12488 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12489 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12490 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12491 Set xftfont_driver.shape to xftfont_shape.
12492
12493 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12494 the change of lispy gstring.
12495
124962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12497
12498 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12499
125002008-02-01 Jason Rumney <jasonr@gnu.org>
12501
12502 * w32font.c (w32font_draw): Fill background manually.
12503
125042008-02-01 Jason Rumney <jasonr@gnu.org>
12505
12506 * font.c (Qfontp): Remove unused symbol.
12507 (QCantialias): New symbol.
12508 (syms_of_font): Define it.
12509 (font_property_table): Set a validator for QCantialias.
12510
12511 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12512 Define if not already.
12513 (QCfamily): Share with xfaces.c.
12514 (Qstandard, Qsubpixel, Qnatural): New symbols.
12515 (syms_of_w32font): Define them. Don't define QCfamily here.
12516 (w32_antialias_type, lispy_antialias_type): New functions.
12517 (w32_enumfont_pattern_entity): New arg requested_font.
12518 Set antialias parameter if non-default was requested.
12519 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12520
125212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12522
12523 * lread.c (read1): Undo the previous change.
12524
125252008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12526
12527 * frame.c (Fdelete_frame): Call font_update_drivers only when
12528 USE_FONT_BACKEND is defined.
12529
125302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12531
12532 * font.h (struct font_bitmap): New member bits_per_pixel.
12533 (struct font_driver): New members start_for_frame and end_for_frame.
12534 (struct font_data_list): New struct.
12535 (font_put_frame_data, font_get_frame_data): Extern them.
12536
12537 * frame.h (struct frame): New member font_data_list.
12538
12539 * font.c (font_update_drivers): Call driver->start_for_frame and
12540 driver->end_for_frame at proper timings.
12541 (font_put_frame_data, font_get_frame_data): New functions.
12542 (Ffont_spec): Add usage in the docstring.
12543
12544 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12545 (Fdelete_frame): Call font_update_drivers.
12546
12547 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12548 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12549 (xftfont_get_xft_draw): New function.
12550 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12551 (xftfont_end_for_frame): New function.
12552 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12553
12554 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12555 Change argument. Cache GCs in the per-frame data.
12556 (struct ftxfont_frame_data): New struct.
12557 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12558 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12559 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12560 (ftxfont_end_for_frame): New function.
12561 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12562
12563 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12564
125652008-02-01 Kenichi Handa <handa@m17n.org>
12566
12567 * xselect.c (Vselection_coding_system)
12568 (Vnext_selection_coding_system): Delete them.
12569 (syms_of_xselect): Don't declare selection-coding-system and
12570 next-selection-coding-system. They are declared in select.el.
12571
125722008-02-01 Jason Rumney <jasonr@gnu.org>
12573
12574 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12575
12576 * w32fns.c: Include imm.h.
12577 (get_composition_string_fn, get_ime_context_fn): New optional
12578 system functions.
12579 (globals_of_w32fns): Load them from imm32.dll.
12580 (ignore_ime_char): New flag.
12581 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12582 WM_IME_ENDCOMPOSITION messages.
12583
12584 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12585 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12586
125872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12588
12589 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12590 (READCHAR_REPORT_MULTIBYTE): New macro.
12591 (readchar): New 2nd arg MULTIBYTE.
12592 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12593 Make symbol's name multibyte according to the multibyteness of the
12594 source.
12595
125962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12597
12598 * xfaces.c (face_for_overlay_string): Call lookup_face with
12599 correct arguments (fix of synching with the trunk).
12600
126012008-02-01 Kenichi Handa <handa@m17n.org>
12602
12603 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12604 (font_prop_validate_non_neg, font_prop_validate_spacing):
12605 Delete argument prop_index.
12606 (font_property_table): Change arguments to validater. Change Callers.
12607 (font_lispy_object): Delete.
12608 (font_at): Use font_find_object instead fo font_lispy_object.
12609
126102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12611
12612 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12613 and file names.
12614
126152008-02-01 Jason Rumney <jasonr@gnu.org>
12616
12617 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12618 (font_matches_spec): Remove debug output.
12619 (add_font_entity_to_list): Avoid using substituted fonts.
12620
126212008-02-01 Jason Rumney <jasonr@gnu.org>
12622
12623 * doc.c (Fsnarf_documentation):
12624 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12625
126262008-02-01 Miles Bader <miles@gnu.org>
12627
12628 * dispextern.h (struct glyph_row): Only define "clip" field if
12629 HAVE_WINDOW_SYSTEM is defined.
12630
126312008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12632
12633 Fix up multi-tty merge.
12634
12635 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12636 and indentation.
12637
12638 * xfaces.c (free_realized_face, clear_face_gcs):
12639 Include font_done_for_face in the input_blocked section, just in case.
12640
12641 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12642 (get_char_face_and_encoding): Undo last change and remove the *other*
12643 duplicate definition (i.e. keep the one that's better scoped and that
12644 includes code for the font-backend).
12645
12646 * terminal.c (create_terminal): Default keyboard_coding to
12647 `no-conversion' and terminal_coding to `undecided'.
12648
12649 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12650
12651 * fontset.c (free_realized_fontsets): Check that the table entry does
12652 contain a fontset before trying to compare it to `base'.
12653
12654 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12655 syms_of_charset, and syms_of_coding earlier because init_window_once
12656 now needs Vcoding_system_hash_table to be setup.
12657
12658 * coding.h (default_buffer_file_coding): Remove.
12659
12660 * coding.c (default_buffer_file_coding): Remove.
12661 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12662 than ->symbol, and use the terminal-local coding system.
12663 (syms_of_coding): Don't setup the coding-systems that are not
12664 terminal-local.
12665 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12666
12667 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12668 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12669
12670 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12671 in chartab.c and were re-added here by mistake.
12672 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12673
12674 * doc.c (Fsnarf_documentation):
12675 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12676 src to etc.
12677
12678 * ChangeLog.10: Add mistakenly removed entry.
12679
126802008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12681
12682 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12683
126842008-02-01 Miles Bader <miles@gnu.org>
12685
12686 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12687 Add extra args to FACE_FOR_CHAR.
12688
126892008-02-01 Kenichi Handa <handa@m17n.org>
12690
12691 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12692 in sequence.
12693
12694 * chartab.c (map_sub_char_table, map_char_table): If the range
12695 contains just one character, call the function with that character
12696 even if the depth is not 3.
12697
126982008-02-01 Jason Rumney <jasonr@gnu.org>
12699
12700 * w32font.c (w32font_text_extents): Calculate metrics for the
12701 whole string.
12702
127032008-02-01 Jason Rumney <jasonr@gnu.org>
12704
12705 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12706
127072008-02-01 Jason Rumney <jasonr@gnu.org>
12708
12709 * w32term.c (x_set_glyph_string_clipping): Use
12710 get_glyph_string_clip_rects.
12711 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12712 Adjust for the change of struct glyph_string.
12713
12714 * w32font.c (w32font_draw): Do clipping here.
12715
127162008-02-01 Kenichi Handa <handa@m17n.org>
12717
12718 * xftfont.c (xftfont_draw): Adjust for the change of struct
12719 glyph_string.
12720
12721 * xterm.c (x_set_glyph_string_clipping): Use
12722 get_glyph_string_clip_rects.
12723 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12724 Adjust for the change of struct glyph_string.
12725
12726 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12727 the resulting clip(s}.
12728 (expose_overlaps): Add arg r. Change callers. Set it to
12729 row->clip temporarily.
12730 (expose_window): Redraw rows overlapping the exposed area.
12731
12732 * dispextern.h (struct glyph_row): New member clip.
12733 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12734 clip_height, new member clip, and num_clips.
12735
127362008-02-01 Kenichi Handa <handa@m17n.org>
12737
12738 * data.c (Fchar_or_string_p): Fix docstring.
12739
127402008-02-01 Kenichi Handa <handa@m17n.org>
12741
12742 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12743 create a temporary XftDraw object.
12744
127452008-02-01 Kenichi Handa <handa@m17n.org>
12746
12747 * font.c (Ffontp): Fix docstring.
12748
12749 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12750 strong evidence of ISO-2022.
12751
127522008-02-01 Kenichi Handa <handa@m17n.org>
12753
12754 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12755 SYNTAX_ENTRY_FOLLOW_PARENT.
12756
127572008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12758
12759 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12760 its type.
12761 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12762 Update to the new type of weak_hash_tables and next_weak.
12763
12764 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12765 a plain C pointer to Lisp_Hash_Table.
12766
12767 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12768 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12769 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12770 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12771 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12772 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12773 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12774 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12775 (GC_EQ): Remove since they've been identical to their non-GC_
12776 alter-egos ever since the markbit was eradicated.
12777
12778 * alloc.c:
12779 * buffer.c:
12780 * buffer.h:
12781 * data.c:
12782 * fileio.c:
12783 * filelock.c:
12784 * fns.c:
12785 * frame.h:
12786 * lisp.h:
12787 * macterm.c:
12788 * print.c:
12789 * process.c:
12790 * w32fns.c:
12791 * w32menu.c:
12792 * w32term.c:
12793 * xfns.c:
12794 * xmenu.c:
12795 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12796
127972008-02-01 Kenichi Handa <handa@m17n.org>
12798
12799 * chartab.c (map_sub_char_table): Make it work for the top-level
12800 char-table. Fix handling of parent char-table.
12801 (map_char_table): Adjust for the above change.
12802
128032008-02-01 Jason Rumney <jasonr@gnu.org>
12804
12805 * w32font.c (Qgdi): Rename from Qw32.
12806
128072008-02-01 Jason Rumney <jasonr@gnu.org>
12808
12809 * w32bdf.c (get_quoted_string): Make function static.
12810
128112008-02-01 Kenichi Handa <handa@m17n.org>
12812
12813 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12814 bigger ascent and descent than those of the font, use them as
12815 font's ascent and descent.
12816
128172008-02-01 Kenichi Handa <handa@m17n.org>
12818
12819 * Makefile.in (${lispsource}international/charprop.el): Move this
12820 target within "#ifdef HAVE_UNIDATA" and "#endif".
12821
128222008-02-01 Kenichi Handa <handa@m17n.org>
12823
12824 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12825 (shortlisp): Add ../lisp/language/tai-viet.el.
12826
128272008-02-01 Ulrich Mueller <ulm@gentoo.org>
12828
12829 * Makefile.in (${lispsource}international/charprop.el): Depend on
12830 temacs${EXEEXT}.
12831
128322008-02-01 Jason Rumney <jasonr@gnu.org>
12833
12834 * w32font.c (w32font_close): Delete the GDI font object.
12835
12836 * w32menu.c: Include character.h.
12837
12838 * w32proc.c: Likewise.
12839
12840 * w32select.c: Likewise.
12841
12842 * makefile.w32-in (w32proc.o): Depend on character.h.
12843
128442008-02-01 Jason Rumney <jasonr@gnu.org>
12845
12846 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12847
12848 * w32menu.c (syms_of_w32menu): Likewise.
12849
12850 * w32proc.c (syms_of_ntproc): Likewise.
12851
12852 * w32select.c (syms_of_w32select): Likewise.
12853
12854 * w32term.c (syms_of_w32term): Likewise.
12855
128562008-02-01 Jason Rumney <jasonr@gnu.org>
12857
12858 * w32font.c (w32font_draw): Delete brush after using it.
12859
128602008-02-01 Jason Rumney <jasonr@gnu.org>
12861
12862 * w32font.c (w32font_open): Don't set font_idx.
12863 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12864 to font settings.
12865 (w32font_draw): Fill background explicitly.
12866
128672008-02-01 Jason Rumney <jasonr@gnu.org>
12868
12869 * w32term.c (w32_initialize): Don't call w32font_initialize.
12870
12871 * w32font.c (w32font_info): Remove subranges.
12872 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12873 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12874 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12875 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12876 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12877 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12878 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12879 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12880 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12881 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12882 New symbols.
12883 (font_callback_data): New struct.
12884 (w32font_list, w32font_match): Use it.
12885 (w32font_open): Don't populate subranges.
12886 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12887 (w32font_encode_char): Always return unicode code-point as-is.
12888 (w32font_text_extents): Supply a transformation matrix to
12889 GetGlyphOutline. Never look up by glyph index. Avoid looping
12890 twice. Use unicode version of GetTexExtentPoint32 instead of
12891 glyph index version.
12892 (set_fonts_frame): Remove.
12893 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12894 set frame parameter. Use backward compatible fake foundries.
12895 Save generic family in extra slot under QCfamily. Make width slot
12896 constant. Save QCspacing value. Save list of scripts instead of
12897 binary subranges.
12898 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12899 (add_font_entity_to_list): Use font_callback_data struct. Filter
12900 unwanted fonts.
12901 (add_one_font_entity_to_list): Use font_callback_data struct.
12902 (w32_registry): Default to iso10646_1.
12903 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12904 string font registries. Don't fill in font name if it is a generic
12905 family name, fill family instead. Use spacing, family and script
12906 extra info to fill pitch, family and charset fields.
12907 (list_all_matching_fonts): Use font_callback_data struct.
12908 (unicode_range_for_char): Remove.
12909 (font_supported_scripts): New function.
12910 (w32font_initialize): Remove.
12911 (syms_of_w32font): Update which symbols are defined.
12912
129132008-02-01 Jason Rumney <jasonr@gnu.org>
12914
12915 * font.c (font_pixel_size): Reverse assq_no_quit args.
12916
12917 * w32term.h (FONT_WIDTH): Report max width, not average.
12918 (FONT_MAX_WIDTH): Remove.
12919 (FONT_AVG_WIDTH): New macro.
12920
12921 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12922 redefinition of FONT_WIDTH.
12923
12924 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12925 (w32_cache_char_metrics): Use FONT_WIDTH.
12926
12927 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12928
129292008-02-01 Jason Rumney <jasonr@gnu.org>
12930
12931 * w32font.c (w32font_open): Make lfHeight negative.
12932
12933 * w32fns.c (x_default_font_parameter): Use new style font name.
12934 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12935
129362008-02-01 Jason Rumney <jasonr@gnu.org>
12937
12938 * w32font.c (QCsubranges): New symbol.
12939 (w32font_open, w32font_has_char): Get subranges from subproperty
12940 of extra.
12941 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12942 (syms_of_w32font): Define :subranges symbol.
12943
12944 * font.c (font_put_extra): Expose externally.
12945
12946 * font.h (font_put_extra): Move declaration from font.c.
12947
12948 * font.c (Ffont_get): Use font driver to determine otf capability.
12949 (adjust_anchor): Check if driver defines anchor_point before using.
12950
12951 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12952 (w32font_draw): Use options.
12953 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12954 Fix detection of truetype fonts.
12955 (registry_to_w32_charset): Handle charsets other than iso8859-1
12956 expressed as lisp symbols.
12957 (w32_registry): Express charset as lisp symbol.
12958 (fill_in_logfont): Reverse pixel and point height logic.
12959 Don't set width here. Set quality to default.
12960
12961 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12962 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12963
12964 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12965 Remove redundant loop and allocation.
12966
12967 * makefile.w32-in (font.o, w32font.o): New objects.
12968 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12969 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12970
12971 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12972 STORE_XCHARB a valid l-value.
12973
12974 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12975 calculations for non-Truetype fonts.
12976 (x_draw_glyph_string): Sync with xterm.c.
12977 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12978 Remove redundant code.
12979 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12980
12981 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12982 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12983
12984 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12985 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12986
12987 * w32font.c: New file for w32 font backend.
12988
129892008-02-01 Kenichi Handa <handa@m17n.org>
12990
12991 * term.c: Don't include "buffer.h" twice.
12992
129932008-02-01 Kenichi Handa <handa@m17n.org>
12994
12995 * character.c (Funibyte_string): New function.
12996 (syms_of_character): Defsubr it.
12997
129982008-02-01 Jason Rumney <jasonr@gnu.org>
12999
13000 * w32term.c [USE_FONT_BACKEND]:
13001 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13002 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13003 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13004 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13005 (x_free_frame_resources): Sync with xterm.c.
13006
130072008-02-01 Andreas Schwab <schwab@suse.de>
13008
13009 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13010 char-table size.
13011
130122008-02-01 Kenichi Handa <handa@m17n.org>
13013
13014 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13015
130162008-02-01 Kenichi Handa <handa@m17n.org>
13017
13018 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13019 font_otf_gpos, add font_drive_otf.
13020
13021 * fontset.c (fontset_find_font): Pay attention to font size
13022 specified for a font.
13023 (reorder_font_vector): Check contents of font_def.
13024
13025 * font.c (struct otf_list): Delete it.
13026 (otf_list): Make it a lisp variable.
13027 (otf_open): Use lispy otf_list.
13028 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13029 (check_otf_features): New function.
13030 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13031 New functions.
13032 (font_drive_otf): New function merging font_otf_gsub and
13033 font_otf_gpos.
13034 (font_open_for_lface): New arg spec. Change argument order.
13035 (font_load_for_face): Adjust for the change of font_open_for_lface.
13036 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13037 Ffont_otf_gpos.
13038 (syms_of_font): Staticpro otf_list. Delete defsubr of
13039 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13040
13041 * xfaces.c (set_font_frame_param): Adjust for the change of
13042 font_open_for_lface.
13043
13044 * font.h (font_open_for_lface): Adjust prototype.
13045 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13046 member otf_drive.
13047 (font_otf_gsub, font_otf_gpos): Delete externs.
13048 (font_drive_otf): Extern it.
13049
130502008-02-01 Kenichi Handa <handa@m17n.org>
13051
13052 * font.c (font_at): If the window W is not on a window system,
13053 return Qnil.
13054
13055 * coding.c (produce_chars, encode_coding): Don't call
13056 insert_from_gap if no characters to produce.
13057
130582008-02-01 Kenichi Handa <handa@m17n.org>
13059
13060 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13061 Fclear_face_cache.
13062
13063 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13064
130652008-02-01 Miles Bader <miles@gnu.org>
13066
13067 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13068 Parse "--disable-font-backend" option.
13069 (standard_args): Add "--disable-font-backend" option.
13070
130712008-02-01 Kenichi Handa <handa@m17n.org>
13072
13073 * fontset.c (fontset_find_font): New function.
13074 (fontset_font): Use fontset_find_font.
13075 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13076 Register the specified font for all Latin characters.
13077 (new_fontset_from_font): Register the specified font for all Latin
13078 characters.
13079 (dump_fontset): For a realized fontset, include the base fontset
13080 name in the returned vector.
13081
130822008-02-01 Kenichi Handa <handa@m17n.org>
13083
13084 * character.h (CHAR_STRING): Cast C to unsigned on calling
13085 char_string.
13086
13087 * character.c (char_string): Type of arg C changed to unsigned.
13088 Signal an error if C is an invalid character code.
13089
13090 * editfns.c (general_insert_function, Fchar_to_string):
13091 Use CHARACTERP, not INTEGERP.
13092
130932008-02-01 Kenichi Handa <handa@m17n.org>
13094
13095 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13096 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13097
13098 * regex.c (analyse_first): Fix for multibyte characters in "case
13099 charset:" and "case categoryspec:".
13100
131012008-02-01 Andreas Schwab <schwab@suse.de>
13102
13103 * Makefile.in (LIBES): Move standard libraries to the end.
13104
131052008-02-01 Kenichi Handa <handa@m17n.org>
13106
13107 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13108 nonzero, don't shrink the buffer nextb.
13109
13110 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13111
13112 * coding.c (coding_alloc_by_making_gap): New arg offset.
13113 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13114 offset.
13115 (decode_coding_iso_2022): Update coding->safe_charsets.
13116 (decode_coding_gap): Temporarily set
13117 current_buffer->text->inhibit_shrinking to 1.
13118
131192008-02-01 Kenichi Handa <handa@m17n.org>
13120
13121 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13122 indexing into elements of s->cmp and s->char2b.
13123
131242008-02-01 Juanma Barranquero <lekktu@gmail.com>
13125
13126 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13127
131282008-02-01 Kenichi Handa <handa@m17n.org>
13129
13130 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13131 target_multibyte instead of multibyte.
13132 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13133 (bcmp_translate): Change the argument name from multibyte to
13134 target_multibyte.
13135
131362008-02-01 Kenichi Handa <handa@m17n.org>
13137
13138 These changes are to compile a regexp into a pattern that can be
13139 used both for multibyte and unibyte targets.
13140
13141 * Makefile.in (search.o): Depend on charset.h.
13142
13143 * character.c (multibyte_char_to_unibyte_safe): New function.
13144
13145 * search.c: Include "charset.h".
13146 (compile_pattern_1): Delete argument multibyte. Don't set
13147 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13148 (compile_pattern): Don't compare cp->buf.target_multibyte.
13149 Compare cp->buf.charset_unibyte.
13150 (compile_pattern): Set cp->buf.target_multibyte.
13151
13152 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13153
13154 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13155
13156 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13157 multibyte. Change callers.
13158 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13159 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13160 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13161 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13162 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13163 (regex_compile): Make the compiled pattern usable both for
13164 multibyte and unibyte targets.
13165 (analyse_first): Make the fastmap usable both for multibyte and
13166 unibyte targets.
13167 (TRANSLATE_VIA_MULTIBYTE): Delete.
13168 (re_match_2_internal): Pay attention to the case that the
13169 multibyteness of bufp and target may be different.
13170
131712008-02-01 Kenichi Handa <handa@m17n.org>
13172
13173 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13174 empty box occupy at least one column width.
13175
131762008-02-01 Miles Bader <miles@gnu.org>
13177
13178 * Makefile.in: Remove redundant HAVE_XFT clause.
13179
131802008-02-01 Kenichi Handa <handa@m17n.org>
13181
13182 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13183
131842008-02-01 Kenichi Handa <handa@m17n.org>
13185
13186 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13187 being nil.
13188
131892008-02-01 Kenichi Handa <handa@m17n.org>
13190
13191 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13192
131932008-02-01 Kenichi Handa <handa@m17n.org>
13194
13195 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13196
131972008-02-01 Kenichi Handa <handa@m17n.org>
13198
13199 * search.c (simple_search): Fix previous change.
13200
132012008-02-01 Kenichi Handa <handa@m17n.org>
13202
13203 * xftfont.c (ftfont_font_format): Extern declaration.
13204
13205 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13206
13207 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13208 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13209
13210 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13211 (ftfont_font_format): Fix previous change.
13212
13213 * font.h (Ffont_xlfd_name): EXFUN it.
13214
13215 * font.c (font_parse_xlfd): Fix the array size of `f'.
13216 (register_font_driver): Use EQ to compare driver->type.
13217
13218 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13219 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13220 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13221
132222008-02-01 Kenichi Handa <handa@m17n.org>
13223
13224 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13225 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13226
132272008-02-01 Kenichi Handa <handa@m17n.org>
13228
13229 * xfont.c (xfont_open): Set font->format.
13230
13231 * xftfont.c (xftfont_open): Set font->format.
13232
13233 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13234 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13235 (ftfont_open): Set font->format.
13236 (ftfont_font_format): New function.
13237
13238 * font.h (struct font): New member format.
13239
13240 * font.c (Qopentype): New variable.
13241 (syms_of_font): Defsym it.
13242 (Fquery_font): Change the format of the last element of the return
13243 value.
13244
132452008-02-01 Kenichi Handa <handa@m17n.org>
13246
13247 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13248 last resort.
13249
132502008-02-01 Kenichi Handa <handa@m17n.org>
13251
13252 * coding.c (detect_coding_charset): Fix detection of multi-byte
13253 charset.
13254
132552008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13256
13257 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13258
132592008-02-01 Kenichi Handa <handa@m17n.org>
13260
13261 * xdisp.c (get_next_display_element): Set it->face_id for the
13262 first component of a composition.
13263 (x_produce_glyphs): Check if the font is changed or not for composition.
13264
132652008-02-01 Kenichi Handa <handa@m17n.org>
13266
13267 * fontset.c (Qlatin): New variable.
13268 (syms_of_fontset): Define it as a lisp symbol.
13269 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13270
132712008-02-01 Kenichi Handa <handa@m17n.org>
13272
13273 * font.c (font_unparse_fcname): Pay attention to the case that
13274 some of font property is a null string.
13275
132762008-02-01 Kenichi Handa <handa@m17n.org>
13277
13278 * term.c: Include "composite.h".
13279 (encode_terminal_code): Output all components of composition.
13280 Check the size of encode_terminal_src.
13281 (produce_glyphs): For composition, call produce_composite_glyph.
13282 (append_composite_glyph, produce_composite_glyph): New functions.
13283
13284 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13285 is not found, get font_info from the current ascii face.
13286
132872008-02-01 Kenichi Handa <handa@m17n.org>
13288
13289 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13290 buffer-file-name to Qnil before calling insert_from_buffer.
13291
13292 * font.c (font_unparse_fcname): Pay attention to the case that
13293 foundry is a null string.
13294
132952008-02-01 Kenichi Handa <handa@m17n.org>
13296
13297 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13298
13299 * font.c (Qunicode_sip): New variable.
13300 (syms_of_font): Declare it as a Lisp symbol.
13301
13302 * font.h (Qunicode_sip): Extern it.
13303
133042008-02-01 Kenichi Handa <handa@m17n.org>
13305
13306 * composite.c (get_composition_id): Pay attention to TAB component.
13307
13308 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13309 TAB. Adjust for the change of s->char2b which always points to
13310 the first element of allocated memory.
13311
13312 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13313
13314 * xdisp.c (handle_composition_prop): Set it->c to the first
13315 non-TAB component.
13316 (fill_composite_glyph_string): Change argument.
13317 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13318 (x_produce_glyphs): Fix handling of left/right padding.
13319
133202008-02-01 Kenichi Handa <handa@m17n.org>
13321
13322 * coding.c (detect_coding_system): Fix for handling off
13323 inhibit_iso_escape_detection. Fix for the case that no coding
13324 system is defined for a specific coding category.
13325
133262008-02-01 Kenichi Handa <handa@m17n.org>
13327
13328 * font.c (font_matching_entity): Delete unused local var.
13329
13330 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13331 opening a font.
13332
13333 * fileio.c (Finsert_file_contents): On recovering a file, assume
13334 Unix-like eol.
13335 (choose_write_coding_system): On auto-saving a file, force
13336 Unix-like eol.
13337
13338 * coding.c (setup_coding_system): Fix setting of
13339 coding->common_flags based on eol_type.
13340 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13341 inherit from it.
13342
133432008-02-01 Kenichi Handa <handa@m17n.org>
13344
13345 * alloc.c (NSTATICS): Increas to 0x600.
13346
133472008-02-01 Kenichi Handa <handa@m17n.org>
13348
13349 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13350 (ftfont_list): Don't check :name property.
13351 (ftfont_match): New function.
13352 (ftfont_pattern_entity): If the pattern doesn't contain
13353 FC_SPACING, don't assume FC_MONO.
13354
13355 * font.h (struct font_driver): New member `match'.
13356 (font_update_drivers): Adjust prototype.
13357
13358 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13359 property of FONT.
13360 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13361 them unconditionally.
13362 (font_matching_entity): New function.
13363 (font_open_by_name): Try font_matching_entity if exact match is
13364 not found.
13365 (font_update_drivers): Delete the arg FONT. Return a list of
13366 actually used backends. Don't free faces, font caches here.
13367 Don't store data in frame parameters. Don't call x_set_font.
13368 (Ffont_spec): Store :name property as is.
13369 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13370 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13371 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13372 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13373 Call font->driver->otf_gsub instead of font_otf_gsub.
13374
13375 * frame.c (x_set_font_backend): Do more works that were done in
13376 font_update_drivers before.
13377
13378 * xfont.c (xfont_match): New function.
13379 (xfont_driver): Set xfont_driver.match to xfont_match.
13380 (xfont_draw): Set font in GC if necessary.
13381
13382 * ftxfont.c (ftxfont_match): New function.
13383 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13384
13385 * xftfont.c (xftfont_match): New function.
13386 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13387
133882008-02-01 Kenichi Handa <handa@m17n.org>
13389
13390 * font.h (struct font): New member scalable.
13391 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13392 (font_otf_gsub): Adjust prototype.
13393
13394 * font.c (font_otf_capability): Fix handling of the default langsys.
13395 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13396 Check the contents of SPEC.
13397 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13398 (check_gstring): New function.
13399 (REPLACEMENT_CHARACTER): New macro.
13400 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13401 glyph codes of GSTRING.
13402 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13403 (font_prepare_composition): Set cmp->glyph_len.
13404 (font_open_entity): Set font->scalable.
13405 (Ffont_get): Handle :otf property.
13406 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13407 functions.
13408 (Fquery_font): Use font->font.full_name.
13409 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13410 Sfont_otf_alternates.
13411
13412 * ftfont.c (ftfont_open): Set font->font.full_name and
13413 font->font.name properly. Fix calculation of font->font.height
13414 and font->min_width.
13415
13416 * ftxfont.c (ftxfont_create_gcs): New function.
13417 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13418 (ftxfont_draw_backgrond): Fix filling region.
13419 (ftxfont_default_fid): New function.
13420 (ftxfont_open): Set xfont->fid to the return value of
13421 ftxfont_default_fid.
13422 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13423 (ftxfont_done_face): Free only GCs that are created by
13424 ftxfont_create_gcs.
13425 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13426
13427 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13428 Clip to src->width, etc (not src->clip_XXX).
13429
13430 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13431 FontBackend frame parameter.
13432
134332008-02-01 Kenichi Handa <handa@m17n.org>
13434
13435 * font.h (struct font_driver_list): New member `on'.
13436 (Fclear_font_cache): EXFUN it.
13437 (font_update_drivers): Extern it.
13438
13439 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13440 (font_list_entities): Check driver_list->on.
13441 (register_font_driver): Initalize `on' member to 0.
13442 (font_update_drivers): New function.
13443 (Fclear_font_cache): Check driver_list->on.
13444
13445 * frame.h (Qfont_backend): Extern it.
13446 (x_set_font_backend): Extern it.
13447
13448 * frame.c (Qfont_backend): New variable.
13449 (frame_parms): New element for font-backend.
13450 (x_set_font_backend): New function.
13451
13452 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13453 FontBackend frame parameter.
13454 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13455 x_set_font_backend.
13456
13457 * xfont.c (xfont_list): Don't try listing by :name property if the
13458 name is not for XLFD.
13459
134602008-02-01 Kenichi Handa <handa@m17n.org>
13461
13462 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13463 (LGLYPH_SET_TO): New macros.
13464 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13465 element of G is vector or not.
13466 (font_at): Extern it.
13467
13468 * font.c: Include window.h.
13469 (font_lispy_object): New function.
13470 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13471 end of valid glyph.
13472 (font_close_object): Fix getting (struct font *).
13473 (font_at): New function.
13474 (Ffont_get): If FONT is a font-object, get entity from it.
13475 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13476 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13477 range check.
13478 (Ffont_at): New function.
13479 (syms_of_font): Defsubr Sfont_at.
13480
13481 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13482 before the entry for Qcomposition.
13483 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13484 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13485 the font in gstring.
13486 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13487 LGLYPH_FORM (g) to detect the end of valid glyph.
13488 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13489 we are composing with gstring.
13490
13491 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13492 Check if adjustment is vector or not.
13493
13494 * Makefile.in (font.o): Make it depends on window.h.
13495
134962008-02-01 Kenichi Handa <handa@m17n.org>
13497
13498 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13499 adjustment is vector or not.
13500
135012008-02-01 Miles Bader <miles@gnu.org>
13502
13503 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13504
135052008-02-01 Kenichi Handa <handa@m17n.org>
13506
13507 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13508 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13509 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13510
13511 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13512 (DEVICE_DELTA): Fix typo.
13513 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13514 LGLYPH format.
13515
13516 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13517 the change of LGLYPH format.
13518
135192008-02-01 Kenichi Handa <handa@m17n.org>
13520
13521 * ftfont.c (ftfont_list): Fix typo.
13522 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13523
135242008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13525
13526 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13527
13528 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13529 xftface_info is non-NULL.
13530
135312008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13532
13533 * ftfont.c (ftfont_list): Move misplaced #endif.
13534
135352008-02-01 Kenichi Handa <handa@m17n.org>
13536
13537 * ftfont.c (ftfont_list): Pay attention to the case that
13538 FC_CAPABILITY is not defined.
13539
135402008-02-01 Kenichi Handa <handa@m17n.org>
13541
13542 * xftfont.c (xftfont_open): Set charset related members to -1.
13543
13544 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13545 QCname.
13546 (ftfont_open): Set charset related members to -1.
13547
13548 * fontset.c (Votf_script_alist): New variable.
13549 (syms_of_fontset): Initialize it.
13550 (fontset_font): Delete unused variable.
13551
13552 * fontset.h (Votf_script_alist): Extern it.
13553
13554 * font.c (font_find_for_lface): Optimize code.
13555
13556 * font.h (font_close_object, font_merge_old_spec): Extern them.
13557
135582008-02-01 Kenichi Handa <handa@m17n.org>
13559
13560 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13561 (syms_of_font): Initialize them.
13562 (font_pixel_size): Allow float value in dpi.
13563 (font_prop_validate_type): Delete.
13564 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13565 Change caller.
13566 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13567 (font_prop_validate_extra): Delete.
13568 (font_prop_validate_spacing): New function.
13569 (font_property_table): Add elements for all known properties.
13570 (get_font_prop_index): Rename from check_font_prop_name. New
13571 argument FROM. Change caller.
13572 (font_prop_validate): Validate all known properties.
13573 (font_put_extra): Delete argument force. Change caller.
13574 (font_expand_wildcards): Make it static. Fix the way of shrinking
13575 the possible range.
13576 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13577 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13578 Change caller.
13579 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13580 (font_parse_fcname): Delete argument merge. Fix parsing of point
13581 size. Don't validate properties values here. Change caller.
13582 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13583 (font_open_by_name): Delete unused variable.
13584 (Ffont_spec): Likewise. Validate property values.
13585 (Ffont_match_p): New function.
13586
13587 * font.h (QCscalable): Extern it.
13588 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13589
13590 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13591
13592 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13593 (xfont_list_pattern): New function.
13594 (xfont_list): Use xfont_list_pattern.
13595
135962008-02-01 Kenichi Handa <handa@m17n.org>
13597
13598 * font.h (Flist_fonts): EXFUN it.
13599
136002008-02-01 Jason Rumney <jasonr@gnu.org>
13601
13602 * w32term.c (w32_initialize): Add back smoothing_type and
13603 smoothing_enabled definitions.
13604
136052008-02-01 Kenichi Handa <handa@m17n.org>
13606
13607 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13608 s->face->font on determining underline position.
13609
136102008-02-01 Kenichi Handa <handa@m17n.org>
13611
13612 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13613 (font_has_char): Accept font-object too.
13614 (font_find_for_lface): Try at first with a size specified in face.
13615
136162008-02-01 Kenichi Handa <handa@m17n.org>
13617
13618 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13619 font_open_by_name.
13620
136212008-02-01 Kenichi Handa <handa@m17n.org>
13622
13623 * font.h (QCspacing, QCdpi): Extern them.
13624 (enum font_spacing): New enum.
13625 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13626
13627 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13628 (QCspacing, QCdpi): New variables.
13629 (syms_of_font): Initialize them.
13630 (font_pixel_size): New function.
13631 (font_put_extra): New function.
13632 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13633 in FONT_EXTRA.
13634 (font_parse_fcname): Handle enumerated values (e.g. bold).
13635 Fix handling font size. Add QCname property that contains only
13636 unknown properties.
13637 (font_score): Change argument. Change caller. Pay attention to
13638 FONT_PIXEL_SIZE_QUANTUM.
13639 (font_sort_entites, font_list_entities, font_find_for_lface)
13640 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13641 (Ffont_spec): Add QCname property that contains only unknown properties.
13642
13643 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13644 include weight in listing pattern, instead check weight of each
13645 listed font. Don't include scalable in pattern. Pay attention to
13646 FONT_PIXEL_SIZE_QUANTUM.
13647
136482008-02-01 Kenichi Handa <handa@m17n.org>
13649
13650 * font.c (font_parse_fcname): Fix parsing of point-size.
13651 (font_unparse_fcname): Produce symbolic names for style properties.
13652 (font_list_entities): Handle float size correctly.
13653 (font_open_by_name): Prefer `normal' property values if the name
13654 doesn't specify them.
13655
13656 * fontset.c (Finternal_char_font): Use font_get_name, not
13657 Ffont_xlfd_name.
13658
13659 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13660 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13661 pattern. Don't force scalable.
13662
13663 * xftfont.c (xftfont_open): For generating a name, start from
13664 96-byte buffer.
13665
136662008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13667
13668 * frame.h (x_new_fontset2): Fix prototype.
13669
136702008-02-01 Kenichi Handa <handa@m17n.org>
13671
13672 * font.h (struct font_driver): Delete member parse_name.
13673 (font_match_p, font_get_spec, font_parse_fcname)
13674 (font_unparse_fcname): Extern them.
13675 (font_get_name): Adjust prototype.
13676
13677 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13678 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13679 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13680 unnecessary checks for weight, slant, and swidth.
13681 (font_parse_fcname): New function.
13682 (font_unparse_fcname): New function.
13683 (font_parse_name): New function.
13684 (font_match_p): New function.
13685 (font_get_name): Change return value to Lisp string.
13686 (font_get_spec): New function.
13687 (Qunspecified, Qignore_defface): Don't extern them.
13688 (font_find_for_lface): Assume that LFACE is fully specified.
13689 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13690 object, use it for FACE.
13691 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13692 driver->parse_name.
13693 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13694
13695 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13696 prototype.
13697
13698 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13699 argument F. Don't call Fnew_fontset. Instead, directly call
13700 make_fontset.
13701
13702 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13703
13704 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13705 of x_new_fontset2.
13706
13707 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13708 (Qsans__serif): New variables.
13709 (ftfont_generic_family_list): New variable.
13710 (syms_of_ftfont): Initialize the above variables.
13711 (ftfont_pattern_entity): Delete argument NAME.
13712 (ftfont_list_generic_family): New function.
13713 (ftfont_parse_name): Delete this function.
13714 (ftfont_list): Try generic family only when FcFontList found no font.
13715 (ftfont_list_family): Fix args to FcObjectSetBuild.
13716
13717 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13718 object in attrs[LFACE_FONT_INDEX].
13719 (set_lface_from_font_name): Cancel all changes for font-backend.
13720 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13721 function.
13722 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13723 font object in QCfont attribute.
13724 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13725 (realize_default_face) [USE_FONT_BACKEND]: Call
13726 set_lface_from_font_and_fontset.
13727
13728 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13729 "fixed", and signal error here if no suitable font was found.
13730
13731 * xfont.c (xfont_parse_name): Delete this function.
13732
13733 * xftfont.c (xftfont_open): Change coding style of error
13734 handling. Generate fontconfig's fontname pattern.
13735
13736 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13737 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13738
13739 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13740 Both args FONTSET and FONT_OBJECT must be existing ones.
13741
137422008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13743
13744 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13745
137462008-02-01 Kenichi Handa <handa@m17n.org>
13747
13748 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13749
13750 * font.h (struct font): Fix typo.
13751
13752 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13753 XLFD_XXX_INDEX.
13754 (enum xlfd_field_mask): New enum.
13755 (intern_font_field): Changed argument. Change caller. If digits
13756 are followed by non-digits, return a symbol.
13757 (font_expand_wildcards): New function.
13758 (font_parse_xlfd): Fix wildcard handling.
13759 (Ffont_spec): If :name is specified, reflect the info in the other
13760 properties.
13761
13762 * ftfont.c (ftfont_pattern_entity): Fix typo.
13763 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13764 locale.
13765
137662008-02-01 Kenichi Handa <handa@m17n.org>
13767
13768 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13769
13770 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13771 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13772 registry doesn't specify encoding part.
13773 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13774 (font_open_by_name): At first try parsing the name.
13775 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13776 as Lisp symbols.
13777
13778 * fontset.c (reorder_font_vector): Pay attention to the case that
13779 the 3rd element of font_def is nil.
13780 (fontset_font): For the default fontset, append one more fontset
13781 elements for a script-based font specification. Don't add script
13782 attribute on finding a font.
13783 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13784 font name.
13785 (fontset_ascii_font): If a font can't be opened, return nil.
13786
13787 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13788 (ftfont_pattern_entity): New function.
13789 (ftfont_get_cache): Assume that freetype_font_cache is already
13790 initialized.
13791 (ftfont_list): Handle the case that a file is specified in font
13792 name. Use ftfont_pattern_entity to generate entities.
13793 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13794 (syms_of_ftfont): Initialize freetype_font_cache.
13795
13796 * xftfont.c (xftfont_open): Make the font name fontconfig's
13797 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13798 (xftfont_close): Free font->font.name if not NULL.
13799
13800 * xfont.c (xfont_list): If script is specified for a font, return
13801 null_vector.
13802 (xfont_list_family): Declare argument type.
13803
13804 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13805 name, set LFACE_FONT (lface) to nil.
13806
13807 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13808 return Qnil.
13809
138102008-02-01 Kenichi Handa <handa@m17n.org>
13811
13812 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13813 (standard_args): Add "-enable-font-backend".
13814
138152008-02-01 Kenichi Handa <handa@m17n.org>
13816
13817 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13818 (struct xftdraw_list, xftdraw_list): Delete them.
13819 (register_xftdraw, check_xftdraw): Delete them.
13820 (xftfont_prepare_face): Don't call register_xftdraw.
13821 (xftfont_done_face): Don't call check_xftdraw.
13822 (xftfont_draw): Get background color only when with_background is
13823 nonzero.
13824
13825 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13826
138272008-02-01 Kenichi Handa <handa@m17n.org>
13828
13829 These changes are for the new font handling codes.
13830
13831 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13832 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13833 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13834 (FONTSRC, FONTOBJ): New variables.
13835 (obj): Add $(FONTOBJ).
13836 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13837 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13838 @LIBOTF_LIBS@.
13839 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13840 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13841
13842 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13843
13844 * character.h (Vscript_representative_chars): Extern it.
13845
13846 * character.c (Vscript_representative_chars): New variable.
13847 (syms_of_character): Declare it as a Lisp variable.
13848
13849 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13850 enable_font_backend is nonzero, accept the composition method
13851 COMPOSITION_WITH_GLYPH_STRING.
13852
13853 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13854 enumeration COMPOSITION_WITH_GLYPH_STRING.
13855
13856 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13857 members clip_x, clip_y, clip_width, and clip_height.
13858 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13859
13860 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13861 --enable-font-backend. Call syms_of_font.
13862
13863 * fns.c (assoc_no_quit): New function.
13864
13865 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13866 (face_for_font, new_fontset_from_font)
13867 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13868
13869 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13870 (fontset_font, fontset_ascii, face_for_char)
13871 (make_fontset_for_ascii_face, Ffont_info)
13872 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13873 is nonzero, use font-backend mechanism.
13874 (find_font_encoding): Make it non-static.
13875 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13876 New functions.
13877
13878 * frame.h (struct frame): New members resx and resy.
13879 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13880 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13881
13882 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13883 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13884
13885 * lisp.h (assoc_no_quit): Extern it.
13886
13887 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13888 Through out the file, use FONT_INFO_FROM_FACE instead of
13889 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13890 rif->per_char_metric.
13891 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13892 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13893 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13894 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13895 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13896 nonzero, use font-backend mechanism.
13897 (get_per_char_metric): New function.
13898
13899 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13900 (set_lface_from_font_name)
13901 (set_font_frame_param, free_realized_face)
13902 (prepare_face_for_display, clear_face_gcs)
13903 (Finternal_set_font_selection_order, realize_x_face)
13904 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13905 font-backend mechanism.
13906 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13907 (load_face_font) [USE_FONT_BACKEND]: Abort.
13908 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13909 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13910
13911 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13912 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13913 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13914 nonzero, register all available font drivers. Call
13915 x_default_font_parameter for deciding a font.
13916 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13917
13918 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13919 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13920 (x_set_glyph_string_clipping_exactly)
13921 (x_compute_glyph_string_overhangs)
13922 (x_draw_glyph_string_foreground)
13923 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13924 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13925 enable_font_backend is nonzero, use font-backend mechanism.
13926 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13927
139282008-02-01 Kenichi Handa <handa@m17n.org>
13929
13930 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13931 system_eol_type.
13932 (syms_of_coding): Initialize system_eol_type.
13933
13934 * process.c (Fset_process_coding_system): Inherit system's eol
13935 format if necessary.
13936
139372008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13938
13939 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13940
139412008-02-01 Kenichi Handa <handa@m17n.org>
13942
13943 * coding.c (decode_eol): Pay attention to buffer relocation in
13944 del_range_2.
13945 (decode_coding): Call decode_eol before restoring undo_list.
13946
139472008-02-01 Kenichi Handa <handa@m17n.org>
13948
13949 * charset.c (Fdefine_charset_internal): Fix setting of
13950 emacs_mule_bytes.
13951
139522008-02-01 Kenichi Handa <handa@m17n.org>
13953
13954 * keyboard.c (read_char): Check if C is a character or not before
13955 looking up Vkeyboard_translate_table.
13956
139572008-02-01 Kenichi Handa <handa@m17n.org>
13958
13959 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13960 condition to terminate the loop.
13961
139622008-02-01 Kenichi Handa <handa@m17n.org>
13963
13964 * coding.c (produce_composition): Compare charbuf[i] instead of
13965 args[i] against 0.
13966 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13967
139682008-02-01 Kenichi Handa <handa@m17n.org>
13969
13970 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13971 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13972 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13973 detect_coding.
13974 (emacs_mule_char): Handle old style (Emacs 20) component character
13975 of a composition.
13976 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13977 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13978 composition rule.
13979 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13980
139812008-02-01 Kenichi Handa <handa@m17n.org>
13982
13983 * coding.c (encode_coding_ccl): Allocate destination dynamically
13984 when necessary.
13985
139862008-02-01 Kenichi Handa <handa@m17n.org>
13987
13988 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13989 the loop. When quitted, show a proper error message.
13990
139912008-02-01 Kenichi Handa <handa@m17n.org>
13992
13993 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13994 src->clip_head and src->clip_tail temporarily instead of src->hl.
13995
13996 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13997 character sequence.
13998 (Fccl_execute_on_string): Use ASET, not XSET.
13999
140002008-02-01 Kenichi Handa <handa@m17n.org>
14001
14002 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14003
140042008-02-01 Kenichi Handa <handa@m17n.org>
14005
14006 * coding.c (decode_coding): Fix the condition of terminating the
14007 decoding loop.
14008
140092008-02-01 Kenichi Handa <handa@m17n.org>
14010
14011 * data.c (Faset): On setting a character bigger than 255 in a
14012 unibyte string, signal an error instead of make the string multibyte.
14013
140142008-02-01 Kenichi Handa <handa@m17n.org>
14015
14016 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14017 made by a mapping table.
14018
140192008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14022 not.
14023 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14024 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14025
14026 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14027 s->face is NULL or not.
14028
140292008-02-01 Kenichi Handa <handa@m17n.org>
14030
14031 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14032 (x_draw_glyph_string): Fix drawing of right_overhang and
14033 left_overhang around/on cursor.
14034
14035 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14036
140372008-02-01 Kenichi Handa <handa@m17n.org>
14038
14039 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14040
140412008-02-01 Kenichi Handa <handa@m17n.org>
14042
14043 * coding.c (Fdefine_coding_system_internal)
14044 (Fdefine_coding_system_alias): Avoid a duplicated element in
14045 Vcoding_system_alist.
14046
140472008-02-01 Kenichi Handa <handa@m17n.org>
14048
14049 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14050
14051 * coding.c (Qcoding_system_define_form): New variable.
14052 (syms_of_coding): Intern and staticpro it.
14053 (Fcoding_system_p): Check Qcoding_system_define_form.
14054 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14055
14056 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14057 Fcoding_system_p.
14058 (CHECK_CODING_SYSTEM): If ID is not available, call
14059 Fcheck_coding_system.
14060 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14061 Try also Fcheck_coding_system.
14062
140632008-02-01 Kenichi Handa <handa@m17n.org>
14064
14065 * coding.c (code_conversion_restore): GCPRO arg.
14066
140672008-02-01 Kenichi Handa <handa@m17n.org>
14068
14069 * character.c (lisp_string_width): Check multibyteness of STRING.
14070
140712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14072
14073 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14074 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14075 (decode_mac_font_name): Use decode_coding_c_string instead of
14076 decode_coding.
14077 (x_load_font): Initialize fontp->fontset to -1. Set
14078 fontp->encoding_type.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * search.c (search_buffer): Give up BM search on case-fold-search
14083 if one of a target character has a case-equivalence of different
14084 byte length even if that target charcter is an ASCII.
14085 (simple_search): Fix calculation of byte length of matched text.
14086 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14087
140882008-02-01 Kenichi Handa <handa@m17n.org>
14089
14090 * coding.c (decode_coding): Fix handling of invalid bytes.
14091
140922008-02-01 Kenichi Handa <handa@m17n.org>
14093
14094 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14095 Unicode characters.
14096
140972008-02-01 Kenichi Handa <handa@m17n.org>
14098
14099 * coding.c (encode_coding_object): If a pre-write-conversion
14100 function makes a new buffer, kill it.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * coding.c (QCascii_compatible_p): New variable.
14105 (syms_of_coding): Initialize it.
14106 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14107 calling string_char.
14108 (record_conversion_result): Add `default:' case.
14109 (coding_charset_list): Delete unused variable `coding_type'.
14110 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14111 property in the plist of the coding system.
14112 (Fcoding_system_put): Check QCascii_compatible_p.
14113
141142008-02-01 Miles Bader <miles@gnu.org>
14115
14116 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14117 removed calculation of frame `f', as it's now used.
14118
141192008-02-01 Kenichi Handa <handa@m17n.org>
14120
14121 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14122 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14123 (UNIDATA): New variable.
14124 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14125 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14126 $(RUN_TEMACS) unconditionally.
14127
141282008-02-01 Kenichi Handa <handa@m17n.org>
14129
14130 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14131 (admindir): New variable.
14132 ($(lispsource)international/charprop.el): New target.
14133
141342008-02-01 Miles Bader <miles@gnu.org>
14135
14136 * character.c (chars-in-region): Remove obsolete function.
14137 (syms_of_character): Remove its initialization.
14138
141392008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14140
14141 * w32select.c (validate_coding_system)
14142 (setup_windows_coding_system): New functions.
14143 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14144 setup_windows_coding_system.
14145 (setup_config, Fw32_get_clipboard_data): Use
14146 validate_coding_system.
14147 (Fx_selection_exists): Move call to setup_config to a place
14148 where signals are allowed.
14149
14150 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14151 (Fcheck_coding_system): Add declarations.
14152
141532008-02-01 Kenichi Handa <handa@m17n.org>
14154
14155 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14156
141572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14158
14159 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14160 string as the second argument for x_new_fontset.
14161
141622008-02-01 Kenichi Handa <handa@m17n.org>
14163
14164 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14165 (encode_coding_object): Use safe_call instead of call2.
14166
141672008-02-01 Kenichi Handa <handa@m17n.org>
14168
14169 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14170
14171 * Makefile.in (lisp): Include charprop.el.
14172
141732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14174
14175 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14176 Not sure if it's unnecessary.
14177
141782008-02-01 Steven Tamm <steventamm@mac.com>
14179
14180 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14181 some possibly unnecessary fontset checking code that crashed
14182 when creating a new frame.
14183
141842008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14187 lookup_face.
14188
14189 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14190
14191 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14192
141932008-02-01 Kenichi Handa <handa@m17n.org>
14194
14195 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14196 (coding_charset_list): New function.
14197
14198 * coding.h (coding_charset_list): Extern it.
14199
142002008-02-01 Kenichi Handa <handa@m17n.org>
14201
14202 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14203 concatenation of family and registry.
14204
142052008-02-01 Kenichi Handa <handa@m17n.org>
14206
14207 * character.h (BYTE8_STRING): Fix typo.
14208
14209 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14210 string to multibyte (sync to HEAD).
14211
14212 * casefiddle.c (casify_region): Handle changes in byte-length
14213 using replace_range_2 (sync to HEAD).
14214
142152008-02-01 Andreas Schwab <schwab@suse.de>
14216
14217 * chartab.c (map_char_table): GCPRO table and arg.
14218
142192008-02-01 Kenichi Handa <handa@m17n.org>
14220
14221 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14222 already at limit.
14223
142242008-02-01 Kenichi Handa <handa@m17n.org>
14225
14226 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14227 instead of fast_c_string_match_ignore_case.
14228 (find_font_encoding): Change argument to Lisp_Object. Use
14229 fast_string_match_ignore_case instead of
14230 fast_c_string_match_ignore_case. Change caller.
14231
142322008-02-01 Kenichi Handa <handa@m17n.org>
14233
14234 * xdisp.c (get_next_display_element): In unibyte case, decide to
14235 display in octal form by checking a character by
14236 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14237
14238 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14239
14240 * character.c (unibyte_has_multibyte_table): New variable.
14241
14242 * character.h (unibyte_has_multibyte_table): Extern it.
14243 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * coding.c (encode_coding_iso_2022): Fix handling of charset
14248 annotation.
14249
142502008-02-01 Kenichi Handa <handa@m17n.org>
14251
14252 * coding.c (setup_coding_system): If coding_system is nil, use
14253 Qundecided.
14254 (Fterminal_coding_system): Return nil if terminal coding system is
14255 `undecided'.
14256 (syms_of_coding): Define coding-system `undecided' here. Setup
14257 terminal_coding as `undecided'.
14258
142592008-02-01 Kenichi Handa <handa@m17n.org>
14260
14261 * xdisp.c (message_dolog, set_message_1): Call
14262 unibyte_char_to_multibyte with arg type int.
14263
14264 * lread.c (read1): Fix reading of a char-table.
14265
14266 * print.c (print_object): Include sub char-table in circularities
14267 detection.
14268
142692008-02-01 Kenichi Handa <handa@m17n.org>
14270
14271 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14272 Append the found sequences in car of ARGS instead of prepending.
14273
142742008-02-01 Kenichi Handa <handa@m17n.org>
14275
14276 * fileio.c (report_file_error): Make a unibyte string from
14277 strerror (errorno).
14278 (Fsubstitute_in_file_name): Fix the arg to
14279 unibyte_char_to_multibyte. It is evaluated twice.
14280
142812008-02-01 Kenichi Handa <handa@m17n.org>
14282
14283 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14284
142852008-02-01 Kenichi Handa <handa@m17n.org>
14286
14287 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14288 BOM is not found.
14289 (detect_coding, detect_coding_system): Optimization for ISO-2022
14290 when no 8-bit data is found.
14291
142922008-02-01 Jason Rumney <jasonr@gnu.org>
14293
14294 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14295
142962008-02-01 Kenichi Handa <handa@m17n.org>
14297
14298 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14299 CHARS.
14300
143012008-02-01 Steven Tamm <steventamm@mac.com>
14302
14303 * macterm.c (mac_encode_char): Add charset argument and update
14304 to use encoding_type.
14305 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14306 switch to pure fontset.
14307 (decode_mac_font_name): Temporarily remove decoding.
14308 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14309 (x_load_font): Temporarily remove encoding.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * xfaces.c (Fface_font): If frame is not on a window system,
14314 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14315 refer to face->font.
14316 (split_font_name_into_vector, build_font_name_from_vector)
14317 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14318 when HAVE_WINDOW_SYSTEM is defined.
14319
143202008-02-01 Kenichi Handa <handa@m17n.org>
14321
14322 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14323 (x_produce_glyphs): Fix setting of members of cmp in case
14324 cmp->glyph_len is zero.
14325
14326 * fontset.c (Fset_fontset_font): Fix docstring.
14327 (Ffontset_info): Make it backward compatible. New arg ALL.
14328
143292008-02-01 Kim F. Storm <storm@cua.dk>
14330
14331 * process.c (read_process_output): Grow decoding_buf when needed;
14332 this could cause a crash in allocate_string and compact_small_strings.
14333
143342008-02-01 Kenichi Handa <handa@m17n.org>
14335
14336 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14337
143382008-02-01 Kenichi Handa <handa@m17n.org>
14339
14340 * coding.c (setup_coding_system): Set coding->common_flags
14341 correctly for raw-text.
14342 (consume_chars): On encoding unibyte text by raw-text, don't check
14343 multibyte form.
14344 (encode_coding): On encoding by raw-text, never use translation tables.
14345
14346 * fileio.c (e_write): Short cut for the case of no encoding.
14347
143482008-02-01 Kenichi Handa <handa@m17n.org>
14349
14350 * coding.c (detect_coding, detect_coding_system): Delete unused
14351 variables.
14352
143532008-02-01 Kenichi Handa <handa@m17n.org>
14354
14355 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14356 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14357
143582008-02-01 Kenichi Handa <handa@m17n.org>
14359
14360 * coding.c (Ffind_coding_systems_region_internal): Include
14361 raw-text and no-conversion in the result.
14362
143632008-02-01 Kenichi Handa <handa@m17n.org>
14364
14365 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14366 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14367 FONT_DEF.
14368 (font_def_arg, add_arg, from_arg, to_arg): New args.
14369 (set_fontset_font): Change argument.
14370 (Fset_fontset_font): Fix for the case that TARGET is a script
14371 name and charset name.
14372 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14373
143742008-02-01 Kenichi Handa <handa@m17n.org>
14375
14376 * fontset.c (fontset_font): Rename from fontset_face. Change return
14377 value.
14378 (face_suitable_for_char_p, face_for_char): Adjust for the change
14379 of fontset_font.
14380 (make_fontset_for_ascii_face): Fix setting of the fontset element
14381 for ASCII.
14382 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14383 to get a font name.
14384 (Ffontset_info): Adjust for the change of fontset_font.
14385
14386 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14387
14388 * character.h (LEADING_CODE_LATIN_1_MIN)
14389 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14390
143912008-02-01 Kenichi Handa <handa@m17n.org>
14392
14393 * editfns.c (check_translation): New function.
14394 (Ftranslate_region_internal): Handle M:N mapping.
14395
143962008-02-01 Kenichi Handa <handa@m17n.org>
14397
14398 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14399
144002008-02-01 Kenichi Handa <handa@m17n.org>
14401
14402 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14403 goto invalid_code.
14404 (decode_coding_iso_2022): Fix handling of invalid designation.
14405
14406 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14407 after calling code_conversion_save.
14408
144092008-02-01 Kenichi Handa <handa@m17n.org>
14410
14411 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14412
14413 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14414
14415 * fontset.c: Include "intervals.h".
14416 (fontset_face): Fix comparing of Lisp_Objects.
14417 (free_face_fontset, new_fontset_from_font_name): Fix
14418 Lisp_Object/int mixup.
14419
14420 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14421
14422 * coding.c: Add many prototypes for static functions.
14423 (get_translation_table): Allow max_lookup to be NULL.
14424 (decode_coding, Ffind_coding_systems_region_internal)
14425 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14426 get_translation_table with max_lookup NULL.
14427
144282008-02-01 Kenichi Handa <handa@m17n.org>
14429
14430 * coding.c (get_translation_table): Declare it as Lisp_Object.
14431 (LOOKUP_TRANSLATION_TABLE): New macro.
14432 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14433 instead of CHAR_TABLE_REF.
14434
144352008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14438 annotation data format.
14439 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14440 Change arguments FROM and TO to single argument NCHARS. Change caller.
14441 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14442 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14443 (decode_coding_ccl, decode_coding_charset): Pay attention to
14444 coding->charbuf_used.
14445 (get_translation): New function.
14446 (produce_chars): New arguments translation_table and last_block.
14447 Translate characters here. Return number of carryover chars.
14448 Change caller.
14449 (produce_composition): New argument pos. Change caller.
14450 Adjust for the change of annotation data format.
14451 (produce_charset, produce_annotation): Likewise.
14452 (decode_coding, encode_coding): Don't call translate_chars.
14453 (consume_chars): New arg translation_table. Change caller.
14454 (translate_chars): Delete.
14455 (syms_of_coding): Make translation-table's number of extra slots 2.
14456
144572008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * search.c (simple_search): Fix setting this_pos_byte in backward
14460 search.
14461
14462 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14463 byte sequence.
14464 (detect_coding_ccl): Fix setting of the variable valids.
14465
144662008-02-01 Kenichi Handa <handa@m17n.org>
14467
14468 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14469
14470 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14471
14472 * editfns.c (Ftranslate_region_internal): Rename from
14473 Ftranslate_region. Accept a char-table in TABLE.
14474 (syms_of_editfns): Defsubr Stranslate_region_internal.
14475
14476 * xfaces.c (set_lface_from_font_name): If a font is specified for
14477 a frame, generate a fontset from the font.
14478 (build_scalable_font_name): If the scalable font is requested for
14479 a specific size, don't change that size.
14480 (try_font_list): Try a scalable font also in the case that a
14481 pattern string is specified.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * xfaces.c (Fface_font): New optional arg CHARACTER.
14486
144872008-02-01 Kenichi Handa <handa@m17n.org>
14488
14489 * charset.h (CHARSET_OFFSET): New macro.
14490
144912008-02-01 Kenichi Handa <handa@m17n.org>
14492
14493 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14494
14495 * fontset.c (fontset_face): Handle the case that repertory is a
14496 char-table.
14497 (find_font_encoding): Return nil for unknown encoding.
14498 (Fset_fontset_font): Ignore a font of unknown encoding.
14499
145002008-02-01 Kenichi Handa <handa@m17n.org>
14501
14502 * keymap.c (describe_vector): Handle default value of a char table.
14503
14504 * fontset.c (fontset_face): Handle fallback fonts correctly.
14505 (Ffontset_info): Return infomation about fallback fonts.
14506
145072008-02-01 Kenichi Handa <handa@m17n.org>
14508
14509 * fontset.c (FONTSET_DEFAULT): New macro.
14510 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14511 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14512 the case that it is nil.
14513 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14514 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14515
14516 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14517 subset or superset.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * emacs.c (main): Call init_charset after syms_of_XXX.
14522
14523 * charset.c (Vcharset_map_directory): Delete.
14524 (Vcharset_map_path): New variable.
14525 (load_charset_map_from_file): Use Vcharset_map_path instead.
14526 (init_charset): Initialize Vcharset_map_path.
14527 (syms_of_charset): Delete declaration of "charset-map-directory",
14528 add declaration of "charset-map-path".
14529
145302008-02-01 Kenichi Handa <handa@m17n.org>
14531
14532 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14533 ASCII only string.
14534
14535 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14536
14537 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14538 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14539
145402008-02-01 Kenichi Handa <handa@m17n.org>
14541
14542 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14543
14544 * coding.c (QCmnemonic, QCdefalut_char)
14545 (QCdecode_translation_table, QCencode_translation_table)
14546 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14547 (get_translation_table): Return a list of translation tables if
14548 necessary.
14549 (decode_coding): Call get_translation_table with ENCODEP 0.
14550 (char_encodable_p): If translation_table is non-nil, always call
14551 translate_char.
14552 (Fdefine_coding_system_internal): Accept list of translation
14553 tables as :encode-translation-table and :decode-translation-table.
14554 (Fcoding_system_put): New function.
14555 (syms_of_coding): Declare new symbols. Defsubr
14556 Scoding_system_put.
14557 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14558 typically JISX0212.
14559
14560 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14561 when the charset is superset type.
14562
14563 * character.c (translate_char): Accept list of translation tables.
14564
145652008-02-01 Kenichi Handa <handa@m17n.org>
14566
14567 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14568 (CODING_ATTR_TRANS_TBL): New macro.
14569
14570 * coding.c (get_translation_table): New function.
14571 (translate_chars): Fix the bug of skipping annotation data.
14572 (decode_coding, encode_coding): Utilize get_translation_table.
14573 (char_encodable_p, Funencodable_char_position): Translate char if
14574 necessary.
14575 (Ffind_coding_systems_region_internal)
14576 (Fcheck_coding_systems_region): Setup translation table for encode
14577 in a coding system attribute vector in advance.
14578 (Fdefine_coding_system_internal): Allow a symbol as translation
14579 table. For shift-jis type coding system, allow 4th charset.
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14584
14585 * xdisp.c (get_next_display_element): Pass -1 as POS to
14586 FACE_FOR_CHAR if displaying a C-string.
14587
145882008-02-01 Kenichi Handa <handa@m17n.org>
14589
14590 * composite.c (get_composition_id): Handle xoff and yoff in a
14591 composition rule.
14592
14593 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14594 (struct composition): New member lbearing and rbearing.
14595
14596 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14597 (x_get_glyph_overhangs): Handle a composition glyph.
14598 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14599
14600 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14601 composition glyph.
14602
146032008-02-01 Kenichi Handa <handa@m17n.org>
14604
14605 * print.c: Include charset.h.
14606 (Vprint_charset_text_property): New variable.
14607 (Qdefault): Extern it.
14608 (PRINT_STRING_NON_CHARSET_FOUND)
14609 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14610 (print_check_string_result): New variable.
14611 (print_check_string_charset_prop): New function.
14612 (print_prune_charset_plist): New variable.
14613 (print_prune_string_charset): New function.
14614 (print_object): Call print_prune_string_charset if
14615 Vprint_charset_text_property is not t.
14616 (print_interval): Print nothing if interval->plist is nil.
14617 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14618 variable. Init and staticpro print_prune_charset_plist.
14619
146202008-02-01 Kenichi Handa <handa@m17n.org>
14621
14622 * fontset.c (new_fontset_from_font_name): Use the specified font
14623 for all characters in the new fontset.
14624
14625 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14626 OBJECT args.
14627
14628 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14629 OBJECT args for composition too.
14630
14631 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14632 OBJECT args.
14633
146342008-02-01 Kenichi Handa <handa@m17n.org>
14635
14636 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14637
14638 * fontset.c (reorder_font_vector): Adjust for the change of
14639 FONT_DEF format.
14640 (fontset_face): New arg id. Change caller.
14641 (face_for_char): New args pos and object.
14642 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14643 (fs_query_fontset): Check NAME by Fassoc too.
14644 (Fset_fontset_font): Allow non-XLFD font name.
14645 (Ffontset_info): Adjust for the change of FONT_DEF format.
14646
14647 * fontset.h (face_for_char): Adjust prototype.
14648
14649 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14650 (append_space, extend_face_to_end_of_line)
14651 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14652 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14653
14654 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14655 POS and OBJECT args.
14656
14657 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14658 POS and OBJECT args.
14659
146602008-02-01 Jason Rumney <jasonr@gnu.org>
14661
14662 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14663 of GlobalAlloc'ed memory.
14664
146652008-02-01 Kenichi Handa <handa@m17n.org>
14666
14667 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14668
14669 * charset.h (charset_table_used): Delete extern.
14670
14671 * charset.c (charset_table_used): Make it static.
14672 (map_charset_chars): Fix args to c_function with.
14673
14674 * chartab.c (map_sub_char_table_for_charset): Fix args to
14675 c_function with.
14676
14677 * coding.h (enum coding_result_code): Delete
14678 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14679
14680 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14681 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14682 (Vlast_code_conversion_error): New variables.
14683 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14684 (ONE_MORE_BYTE): Record error if any instead of signaling an
14685 error. If non-ASCII multibyte char is found, return the negative
14686 value of the code. All callers changed to check it.
14687 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14688 (record_conversion_result): New function. Change all codes setting
14689 coding->result to call this function.
14690 (detect_coding_utf_8, decode_coding_utf_8)
14691 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14692 Don't use the local variable incomplete.
14693 (emacs_mule_char): Change the second arg to `const'.
14694 (decode_coding): Fix of flushing out unprocessed data.
14695 (make_conversion_work_buffer): Fix making of a work buffer.
14696 (decode_coding_object): Return coding->dst_object.
14697
14698 * fontset.c (set_fontset_font): Fix args.
14699
14700 * lisp.h (CHARACTERBITS): Define as 22.
14701
14702 * process.c (send_process): Be sure to set coding->src_multibyte.
14703
14704 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14705
147062008-02-01 Kenichi Handa <handa@m17n.org>
14707
14708 * xdisp.c (handle_auto_composed_prop): Give limit to
14709 Fnext_single_char_property_change.
14710
147112008-02-01 Kenichi Handa <handa@m17n.org>
14712
14713 * composite.c (syms_of_composite): Don't make the composition hash
14714 table weak.
14715
14716 * fontset.c (Fset_fontset_font): Fix docstring.
14717
14718 * lisp.h (detect_coding_system): Adjust prototype.
14719
14720 * fileio.c (kill_workbuf_unwind): Delete this function.
14721 (Finsert_file_contents): Adjust the call of detect_coding_system.
14722 Get conversion_buffer by code_conversion_save. Use the macro
14723 CODING_MAY_REQUIRE_DECODING. After decoding, update
14724 coding_system.
14725
14726 * coding.h (make_conversion_work_buffer): Delete extern.
14727 (code_conversion_save): Extern it.
14728
14729 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14730 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14731 (decode_coding_utf_8): Don't do eol converion.
14732 (detect_coding_utf_16): Check coding->src_chars, not
14733 coding->src_bytes. Add heuristics for those that have no signature.
14734 (decode_coding_emacs_mule, decode_coding_iso_2022)
14735 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14736 Don't do eol converion.
14737 (adjust_coding_eol_type): Return a new coding system.
14738 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14739 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14740 each change.
14741 (decode_coding): Pay attention to undo_list. Do eol conversion for
14742 all types of coding-systems (if necessary).
14743 (Vcode_conversion_work_buf_list): Delete it.
14744 (Vcode_conversion_reused_workbuf): Rename from
14745 Vcode_conversion_reused_work_buf.
14746 (Vcode_conversion_workbuf_name): New variable.
14747 (reused_workbuf_in_use): New variable.
14748 (make_conversion_work_buffer): Delete the arg DEPTH.
14749 (code_conversion_restore): Change argument to cons.
14750 (code_conversion_save): Delete the argument BUFFER. Change callers.
14751 (detect_coding_system): New argument src_chars. Change callers.
14752 Fix for utf-16 detection.
14753 (init_coding_once): Don't use ISO_carriage_return.
14754 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14755 reused_workbuf_in_use.
14756
147572008-02-01 Kenichi Handa <handa@m17n.org>
14758
14759 * keymap.c (store_in_keymap): Pay attention to the case that idx
14760 is a cons specifying a character range.
14761
147622008-02-01 Kenichi Handa <handa@m17n.org>
14763
14764 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14765 HANDLED_RECOMPUTE_PROPS.
14766
14767 * coding.c (Fdefine_coding_system_internal): Fix checking of
14768 ascii compatibility.
14769
147702008-02-01 Kenichi Handa <handa@m17n.org>
14771
14772 * charset.c (find_charsets_in_text): Delete unused locale variable.
14773 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14774
14775 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14776 Resync charset_list to Vemacs_mule_charset_list.
14777
14778 * keymap.c (store_in_keymap): Pay attention to the case that idx
14779 is a cons specifying a character range.
14780
147812008-02-01 Kenichi Handa <handa@m17n.org>
14782
14783 * composite.c (update_compositions): Bind inhibit-read-only, etc
14784 to t before calling remove-list-of-text-properties.
14785
14786 * print.c (print_object): Always print ASCII chars as is.
14787
147882008-02-01 Kenichi Handa <handa@m17n.org>
14789
14790 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14791
14792 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14793 is a char table.
14794
147952008-02-01 Kenichi Handa <handa@m17n.org>
14796
14797 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14798
147992008-02-01 Kenichi Handa <handa@m17n.org>
14800
14801 * xfaces.c (set_lface_from_font_name): Fix for the case that
14802 FONTNAME is not fontset name.
14803
148042008-02-01 Kenichi Handa <handa@m17n.org>
14805
14806 * fns.c (base64_encode_1): Fix previous change.
14807
148082008-02-01 Kenichi Handa <handa@m17n.org>
14809
14810 * fontset.c (set_fontset_font): New function.
14811 (Fset_fontset_font): If a font is specified for a charset, use
14812 map_charset_chars to store the font spec in a fontset.
14813
148142008-02-01 Kenichi Handa <handa@m17n.org>
14815
14816 * fontset.c (fontset_face): Create a fallback fontset on demand.
14817 (make_fontset): Don't create a fallback fontset here.
14818 (free_face_fontset): Free a fallback fontset (if any) too.
14819 (n_auto_fontsets): Delete this variable.
14820 (auto_fontset_alist): New variable.
14821 (new_fontset_from_font_name): Check auto_fontset_alist.
14822 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14823 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14824 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14825 Defsubr Sfontset_list_all.
14826
148272008-02-01 Kenichi Handa <handa@m17n.org>
14828
14829 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14830
148312008-02-01 Kenichi Handa <handa@m17n.org>
14832
14833 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14834
148352008-02-01 Kenichi Handa <handa@m17n.org>
14836
14837 * editfns.c (Fgoto_char): Fix docstring.
14838
148392008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * insdel.c (insert_from_gap): Adjust intervals correctly.
14842
148432008-02-01 Jason Rumney <jasonr@gnu.org>
14844
14845 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14846 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14847 (w32_initialize): Try to load it.
14848 (x_get_font_repertory): Use it if available.
14849 (w32_encode_char): Add shortcut for unicode output.
14850
14851 * w32fns.c (w32_load_system_font): Default charset to -1.
14852 (x_to_w32_charset): Match all fonts for unicode.
14853 (w32_to_x_charset): New parameter matching. Don't return partial
14854 or wildcard charsets.
14855 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14856 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14857 (w32_to_x_font): Match charset to real charset.
14858 (enum_font_cb2): Always list unicode versions.
14859
14860 * makefile.w32-in (temacs): Increase EMHEAP.
14861
148622008-02-01 Jason Rumney <jasonr@gnu.org>
14863
14864 * w32term.c (w32_encode_char): New charset parameter.
14865 font_info.encoding becomes encoding_type.
14866 (x_get_font_repertory): New function. Warning: stub only!
14867 (x_new_font): Return quickly if font already set.
14868 (x_new_fontset): fontsetname parameter is Lisp_Object.
14869 Use new fs_query_fontset. Try new_fontset_from_font_name.
14870 Use fontset_name for return value.
14871
14872 * w32term.h: Declare x_get_font_repertory.
14873
14874 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14875 place of find_charset_in_text. Use encode_coding_object in place
14876 of encode_coding.
14877 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14878 decode_coding.
14879
14880 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14881 of x_new_fontset.
14882 (w32_load_system_font): Initialize charset as unicode.
14883 font_info.encoding becomes encoding_type.
14884 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14885 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14886 (syms_of_w32fns): Set get_font_repertory_func.
14887
14888 * w32console.c: Include character.h. Use terminal_encode_buffer
14889 from term.c.
14890 (write_glyphs): Use new version of encode_terminal_code. Use
14891 encode_coding_object in place of encode_coding.
14892
14893 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14894 encoding becomes encoding_type.
14895
14896 * term.c (terminal_encode_buffer): Make externally visible.
14897
14898 * makefile.w32-in: Add character.h dependancies.
14899 (character.o, chartab.o): New targets.
14900
149012008-02-01 Kenichi Handa <handa@m17n.org>
14902
14903 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14904 CODING_ID_EOL_TYPE.
14905
149062008-02-01 Andreas Schwab <schwab@suse.de>
14907
14908 * coding.c (produce_chars): Revert last change.
14909
149102008-02-01 Kenichi Handa <handa@m17n.org>
14911
14912 * charset.h (charset_unicode): Extern it.
14913
14914 * charset.c (string_xstring_p): Check by (C >= 0x100).
14915 (find_charsets_in_text): Change format of the arc CHARSETS. New
14916 arg MULTIBYTE.
14917 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14918 change of find_charsets_in_text.
14919 (Fsplit_char): Fix doc. Never return unknown.
14920
14921 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14922
14923 * coding.c (Fdefine_coding_system_alias): Update
14924 Vcoding_system_list.
14925
14926 * fontset.c (load_font_get_repertory): Pay attention to the case
14927 that ENCODING of a font is specified by a char-table.
14928
14929 * xterm.c (x_get_font_repertory): Handle the case that the
14930 encoding of font is other than Unicode.
14931
149322008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14935 if a character is encodable by the terminal coding system. If
14936 not, produces proper number of `?'s. Update
14937 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14938 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14939
149402008-02-01 Kenichi Handa <handa@m17n.org>
14941
14942 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14943 variables.
14944 (encode_terminal_code): Change argument. Encode multiple
14945 characters at once. Store the result of encoding in
14946 terminal_encode_buffer.
14947 (write_glyphs, insert_glyphs): Adjust for the change of
14948 encode_terminal_code.
14949 (term_init): Initialize terminal_encode_buffer and
14950 terminal_encode_buf_size.
14951
14952 * coding.c (consume_chars): If coding->src_object is nil, don't
14953 check annotation.
14954
149552008-02-01 Kenichi Handa <handa@m17n.org>
14956
14957 * character.c (char_string): Use ASCII_CHAR_P instead of
14958 SINGLE_BYTE_CHAR_P.
14959
149602008-02-01 Kenichi Handa <handa@m17n.org>
14961
14962 * xdisp.c (handle_auto_composed_prop): Check if the last
14963 characters of auto-composed region is newly composed with the
14964 following characters.
14965 (handle_composition_prop): Fix checking of point being inside
14966 composition.
14967
149682008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * fns.c (concat): Don't change multibyteness of the result by
14971 concatenating an 8-bit character.
14972
14973 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14974 multibyteness of the result when newelt is an 8-bit character.
14975
149762008-02-01 Dave Love <fx@gnu.org>
14977
14978 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14979 EMACS_INT.
14980
14981 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14982
14983 * xfaces.c (face_numeric_value): Declare dim size_t.
14984 (Finternal_lisp_face_equal_p): Remove unused f.
14985
14986 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14987 (MATRIX_ROW): Remove unused vars.
14988 (draw_glyphs, x_insert_glyphs, fast_find_position)
14989 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14990 byte/char counts.
14991
14992 * regex.c (regex_compile): Remove unused var.
14993
14994 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14995
14996 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14997 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14998
14999 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15000
15001 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15002
15003 * fileio.c (Fwrite_region): Remove unused var.
15004
15005 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15006 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15007
15008 * composite.c (Fremove_list_of_text_properties): Declare.
15009
15010 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15011 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15012 (coding_inherit_eol_type): Remove unused attrs.
15013 (detect_coding): Cast arg of detect_eol.
15014
15015 * charset.c (syms_of_charset): Remove unused var p.
15016 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15017 byte/char counts.
15018
15019 * casetab.c (set_case_table): Remove unused var.
15020
15021 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15022 unused vars.
15023
150242008-02-01 Dave Love <fx@gnu.org>
15025
15026 * xterm.c (x_bitmap_mask): Declare.
15027
150282008-02-01 Dave Love <fx@gnu.org>
15029
15030 * xterm.c (x_term_init): Fix type error.
15031
15032 * lisp.h: Add Funibyte_char_to_multibyte.
15033
15034 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15035 (Fset_coding_system_priority): Doc fix.
15036
15037 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15038
15039 * indent.c (check_composition): Make start and end EMACS_INT.
15040
15041 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15042
15043 * xdisp.c (handle_composition_prop, check_point_in_composition):
15044 Make buffer positions EMACS_INT.
15045
15046 * composite.c (find_composition, run_composition_function)
15047 (update_compositions, Ffind_composition_internal): Make buffer
15048 positions EMACS_INT.
15049
15050 * composite.h (find_composition, update_compositions): Make
15051 position args EMACS_INT.
15052
15053 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15054
15055 * intervals.c (get_property_and_range):
15056 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15057
15058 * unexalpha.c: Don't include varargs.h.
15059
150602008-02-01 Dave Love <fx@gnu.org>
15061
15062 * coding.h (ENCODE_UTF_8): New.
15063
15064 * Makefile.in (gtkutil.o): Depend on coding.h.
15065
15066 * coding.c (Fset_coding_system_priority): Doc fix.
15067
150682008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15071 the case of auto saving.
15072
150732008-02-01 Andreas Schwab <schwab@suse.de>
15074
15075 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15076 `range' from GC.
15077
150782008-02-01 Kenichi Handa <handa@m17n.org>
15079
15080 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15081
150822008-02-01 Kenichi Handa <handa@m17n.org>
15083
15084 * fileio.c (choose_write_coding_system): Return a decided coding system.
15085 (Fwrite_region): Set Vlast_coding_system_used to the return value
15086 of choose_write_coding_system.
15087
150882008-02-01 Kenichi Handa <handa@m17n.org>
15089
15090 * charset.c (Fset_charset_priority): Pay attention to duplicated
15091 arguments.
15092
15093 * coding.c (QCcategory): New variable.
15094 (syms_of_coding): Defsym it. Set all elements of
15095 Vcoding_category_table and their symbol values.
15096 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15097 coding-category-XXX, and coding-category-list.
15098 (Fdefine_coding_system_internal): Add category in the plist.
15099
151002008-02-01 Kenichi Handa <handa@m17n.org>
15101
15102 * callproc.c (Fcall_process): Handle carryover correctly.
15103
15104 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15105 (raw_text_coding_system): Check NILP (coding_system).
15106 (coding_inherit_eol_type): Check NILP (coding_system) and
15107 NILP (parent).
15108 (consume_chars): Fix for the case of raw-text.
15109
15110 * process.c (read_process_output): Handle carryover correctly.
15111
151122008-02-01 Dave Love <fx@gnu.org>
15113
15114 * regex.c (re_search_2): Fix last change.
15115
151162008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15119 target_multibyte. Even in a unibyte case, return a converted
15120 multibyte char.
15121 (GET_CHAR_AFTER): New macro.
15122 (PATFETCH): Translate via multibyte char.
15123 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15124 (SETUP_MULTIBYTE_RANGE): New macro.
15125 (regex_compile): Setup compiled code so that its multibyteness
15126 matches that of a target. Fix the handling of "[X-YZ]" using
15127 SETUP_MULTIBYTE_RANGE.
15128 (analyse_first) <charset>: For filling fastmap for all multibyte
15129 characters, don't check by BASE_LEADING_CODE_P.
15130 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15131 the same as RE_MULTIBYTE_P (bufp) now.
15132 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15133 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15134 (TRANSLATE_VIA_MULTIBYTE): New macro.
15135 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15136 It is the same as RE_MULTIBYTE_P (bufp) now.
15137 <exactn>: Translate via multibyte.
15138 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15139 translate it.
15140 <charset, charset_not>: Fetch a character by
15141 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15142 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15143 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15144 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15145 by GET_CHAR_AFTER.
15146 (bcmp_translate): Likewise.
15147
15148 * search.c (compile_pattern): Check the member target_multibyte,
15149 not the member multibyte of buf.
15150
15151 * lread.c (read1): While reading a string, set force_singlebyte
15152 and force_multibyte correctly.
15153
15154 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15155 up of unibyte_to_multibyte_table.
15156
151572008-02-01 Kenichi Handa <handa@m17n.org>
15158
15159 * coding.c (setup_coding_system): If coding has
15160 post-read-conversion or pre-write-conversion, set
15161 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15162 respectively.
15163 (decode_coding_gap): Run post-read-conversion if any.
15164
15165 * fileio.c (Finsert_file_contents): Even if we read into a
15166 unibyte buffer, check if we must decode the result or not.
15167
151682008-02-01 Kenichi Handa <handa@m17n.org>
15169
15170 * coding.c (make_conversion_work_buffer): Change the work buffer
15171 name to the same one as that of Emacs 21.
15172
151732008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * coding.h (make_conversion_work_buffer): Adjust prototype.
15176 (code_conversion_restore): Don't extern it.
15177
15178 * coding.c (detected_mask): Delete unused variable.
15179 (decode_coding_iso_2022): Pay attention to the byte sequence of
15180 CTEXT extended segment, and retain those bytes as is.
15181 (decode_coding_ccl): Delete unused variable `valids'.
15182 (setup_coding_system): Delete unused variable `category'.
15183 (consume_chars): Delete unused variable `category'. Make it work
15184 for non-multibyte case.
15185 (make_conversion_work_buffer): Change argument.
15186 (saved_coding): Delete unused variable.
15187 (code_conversion_restore): Don't check saved_coding->destination.
15188 (code_conversion_save): New function.
15189 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15190 instead of record_unwind_protect.
15191 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15192 (detect_coding_system): Delete unused variable `mask'.
15193 (Fdefine_coding_system_internal): Delete unused variable id.
15194
15195 * fileio.c (kill_workbuf_unwind): New function.
15196 (Finsert_file_contents): On replacing, call
15197 make_conversion_work_buffer with correct args, and call
15198 record_unwind_protect with the first arg kill_workbuf_unwind.
15199
15200 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15201
152022008-02-01 Kenichi Handa <handa@m17n.org>
15203
15204 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15205 (fontset_add): Fix for the case that TO is less than TO1.
15206 (Ffontset_info): Don't use fallback fontset on checking the
15207 default fontset.
15208 (dump_fontset): New function for debugging.
15209
15210 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15211 coding_type is Qcharset.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15216 (map_char_table): Don't inherit the value from the parent on
15217 initializing VAL. Adjust for the above change.
15218
152192008-02-01 Kenichi Handa <handa@m17n.org>
15220
15221 * coding.c (Qsignature, Qendian): Delete these variables.
15222 (syms_of_coding): Don't initialize them.
15223 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15224 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15225 detect_info->found.
15226 (decode_coding_utf_16): Don't detect BOM here.
15227 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15228 is NOT utf_16_without_bom.
15229 (setup_coding_system): For a coding system of type utf-16, check
15230 if the attribute :endian is Qbig or not (not nil or not), and set
15231 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15232 (detect_coding): If coding type is utf-16 and BOM detection is
15233 required, detect it.
15234 (Fdefine_coding_system_internal): For a coding system of type
15235 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15236
152372008-02-01 Kenichi Handa <handa@m17n.org>
15238
15239 * coding.c (coding_set_source): Fix for the case that the current
15240 buffer is different from coding->src_object.
15241 (decode_coding_object): Don't use the conversion work buffer if
15242 DST_OBJECT is a buffer.
15243
152442008-02-01 Dave Love <fx@gnu.org>
15245
15246 * lread.c (read_emacs_mule_char) [len==2]: Index
15247 emacs_mule_charset correctly.
15248
152492008-02-01 Dave Love <fx@gnu.org>
15250
15251 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15252 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15253 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15254 treated specially.)
15255 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15256 (detected_mask): Remove Big5 bits.
15257
152582008-02-01 Kenichi Handa <handa@m17n.org>
15259
15260 The following changes are to make the font rescaling facility
15261 compatible with Emacs 21.
15262
15263 * xfaces.c (Vface_font_rescale_alist): Rename from
15264 Vface_resizing_fonts.
15265 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15266 (font_rescale_ratio): Rename from font_resizing_ratio.
15267 (split_font_name): Set font->rescale_ratio.
15268 (better_font_p): Pay attention to font->rescale_ratio.
15269 (build_scalable_font_name): Likewise. Change RESX, and RESY
15270 fields.
15271 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15272
152732008-02-01 Kenichi Handa <handa@m17n.org>
15274
15275 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15276 (Qutf_16_le): Remove these variables.
15277 (syms_of_coding): Don't DEFSYM them.
15278 (decode_coding_utf_16): Fix handling of BOM.
15279 (encode_coding_utf_16): Fix handling of BOM.
15280
152812008-02-01 Kenichi Handa <handa@m17n.org>
15282
15283 * fileio.c (Finsert_file_contents): On replacing, before decoding
15284 the file into the work buffer, set point of the work buffer to the end.
15285
152862008-02-01 Dave Love <fx@gnu.org>
15287
15288 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15289
152902008-02-01 Dave Love <fx@gnu.org>
15291
15292 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15293 and fix C types.
15294
152952008-02-01 Kenichi Handa <handa@m17n.org>
15296
15297 * xdisp.c (SKIP_GLYPHS): New macro.
15298 (set_cursor_from_row): Pay attention to string display properties.
15299
15300 * category.c (copy_category_entry): Fix for the case that RANGE
15301 is an integer.
15302
15303 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15304
15305 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15306
153072008-02-01 Kenichi Handa <handa@m17n.org>
15308
15309 * charset.c (Fcharset_id_internal): New function.
15310 (syms_of_charset): Defsubr it.
15311
15312 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15313 with the last arg charset_list acquired from coding.
15314 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15315 the attribute coding_attr_ccl_valids.
15316
15317 * coding.h (enum define_coding_ccl_arg_index): Set the first
15318 member coding_arg_ccl_decoder to coding_arg_max.
15319
15320 * ccl.h (ccl_driver): Adjust prototype.
15321
15322 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15323 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15324 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15325 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15326 last arg Qnil.
15327
153282008-02-01 Kenichi Handa <handa@m17n.org>
15329
15330 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15331 call encode_char.
15332
15333 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15334
153352008-02-01 Dave Love <fx@gnu.org>
15336
15337 * composite.c (syms_of_composite): Make composition_hash_table weak.
15338
153392008-02-01 Kenichi Handa <handa@m17n.org>
15340
15341 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15342 (font_name_registry): Don't extern them.
15343 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15344
15345 * fontset.h (Qfontset): Don't extern it.
15346 (new_fontset_from_font_name): Extern it.
15347
15348 * fontset.c: Give 8 extra slots to fontset objects.
15349 (Qfontset_info): New variable.
15350 (syms_of_fontset): Defsym it.
15351 (FONTSET_FALLBACK): New macro.
15352 (fontset_face): Try also the default fontset.
15353 (make_fontset): Realize a fallback fontset from the default fontset.
15354 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15355 using split_font_name_into_vector and build_font_name_from_vector.
15356 (Fset_fontset_font): Access the elements of font_spec by enum
15357 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15358 name by using split_font_name_into_vector.
15359 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15360 generate a proper font name from the fontset name. Update
15361 Vfontset_alias_alist.
15362 (n_auto_fontsets): New variable.
15363 (new_fontset_from_font_name): New function.
15364 (Ffont_info): Store the information about fonts generated from the
15365 default fontset in the first extra slot of the returned char-table.
15366
15367 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15368 (font_name_registry): Delete function.
15369 (split_font_name_into_vector): New function.
15370 (build_font_name_from_vector): New function.
15371 (font_list): The argument REGISTRY is now a list of registry names.
15372 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15373 specifies an explicit font name, return the name as is. Make a
15374 list of registy names.
15375
15376 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15377 of x_new_fontset.
15378 (Fx_create_frame): Don't call x_new_fontset here. Just use
15379 x_list_fonts to check the existence of fonts.
15380
15381 * xterm.h (x_new_fontset): Adjust prototype.
15382
15383 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15384 string. Use new_fontset_from_font_name to create a fontset from a
15385 font name.
15386
153872008-02-01 Kenichi Handa <handa@m17n.org>
15388
15389 * syntax.c (Vfind_word_boundary_function_table): New name for
15390 Vnext_word_boundary_function_table.
15391 (find-word-boundary-function-table): New name for
15392 next-word-boundary-function-table.
15393
153942008-02-01 Dave Love <fx@gnu.org>
15395
15396 * Makefile.in: Fix some dependencies.
15397
15398 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15399 set it to nil before returning.
15400
15401 * composite.c (update_compositions): Fix type error.
15402
15403 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15404
154052008-02-01 Kenichi Handa <handa@m17n.org>
15406
15407 * xterm.c (x_new_font): Optimize for the case that the font is
15408 already set for the frame.
15409
154102008-02-01 Kenichi Handa <handa@m17n.org>
15411
15412 * chartab.c (char_table_ascii): Check if the char table contents
15413 is sub-char-table or not.
15414 (char_table_set, char_table_set_range): Fix argument to
15415 char_table_ascii.
15416
15417 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15418 (detect_coding_utf_8, detect_coding_utf_16)
15419 (detect_coding_emacs_mule, detect_coding_iso_2022)
15420 (detect_coding_sjis, detect_coding_big5)
15421 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15422 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15423 sequence is valid in this coding system. Change callers.
15424 (MAX_ANNOTATION_LENGTH): New macro.
15425 (ADD_ANNOTATION_DATA): New macro.
15426 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15427 ADD_ANNOTATION_DATA. Change the format of annotation data.
15428 (ADD_CHARSET_DATA): New macro.
15429 (emacs_mule_char): New argument ID. Change callers.
15430 (decode_coding_emacs_mule, decode_coding_iso_2022)
15431 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15432 Produce charset annotation data in coding->charbuf.
15433 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15434 to charset annotation data in coding->charbuf.
15435 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15436 coding->common_flags if the coding system is iso-2022 based and
15437 uses designation.
15438 (produce_composition): Adjust for the new annotation data format.
15439 (produce_charset): New function.
15440 (produce_annotation): Handle charset annotation.
15441 (handle_composition_annotation, handle_charset_annotation): New
15442 functions.
15443 (consume_chars): Handle charset annotation. Utilize the above two
15444 functions.
15445 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15446 buffer, get the deleted text as a string and set
15447 coding->src_object to that string.
15448 (detect_coding, detect_coding_system): Use the new struct
15449 coding_detection_info.
15450
15451 * coding.h (struct coding_detection_info): New structure.
15452 (struct coding_system): Adjust prototype of the member `detector'.
15453 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15454
154552008-02-01 Kenichi Handa <handa@m17n.org>
15456
15457 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15458
154592008-02-01 Dave Love <fx@gnu.org>
15460
15461 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15462 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15463 to new local and nullify apropos_accumulate before returning.
15464 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15465
154662008-02-01 Kenichi Handa <handa@m17n.org>
15467
15468 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15469 correctly.
e3eea1fc 15470
aac0c6e3
MR
154712008-02-01 Dave Love <fx@gnu.org>
15472
15473 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15474
154752008-02-01 Kenichi Handa <handa@m17n.org>
15476
15477 The following changes are to make character composition happen
15478 automatically on displaying.
15479
15480 * Makefile.in (lisp, shortlisp): Add composite.elc.
15481
15482 * composite.h (Qauto_composed, Vauto_composition_function)
15483 (Qauto_composition_function): Extern them.
15484
15485 * composite.c (Vcomposition_function_table)
15486 (Qcomposition_function_table): Delete variables.
15487 (Qauto_composed, Vauto_composition_function)
15488 (Qauto_composition_function): New variables.
15489 (run_composition_function): Don't call
15490 compose-chars-after-function.
15491 (update_compositions): Clear `auto-composed' text property.
15492 (compose_chars_in_text): Delete this function.
15493 (syms_of_composite): Staticpro Qauto_composed and
15494 Qauto_composition_function. Declare Vauto_composition_function as
15495 a Lisp variable.
15496
15497 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15498
15499 * xdisp.c (it_props): Add an entry for Qauto_composed.
15500 (handle_auto_composed_prop): New function.
15501
15502 * xselect.c (selection_data_to_lisp_data): Don't call
15503 compose_chars_in_text.
15504
155052008-02-01 Dave Love <fx@gnu.org>
15506
15507 * keyboard.c (read_char): Modify checking around use of
15508 Vkeyboard_translate_table.
15509
15510 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15511 and fix C types.
15512
155132008-02-01 Kenichi Handa <handa@m17n.org>
15514
15515 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15516 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15517 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15518 the case that the last byte is '\r' correctly.
15519 (decode_coding): Flush out the unprocessed data correctly.
15520 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15521
155222008-02-01 Dave Love <fx@gnu.org>
15523
15524 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15525 Add XK_ISO... case.
15526 (xaw_scroll_callback): Revert last change.
15527
155282008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15531
155322008-02-01 Kenichi Handa <handa@m17n.org>
15533
15534 * xfaces.c (Vface_resizing_fonts): New variable.
15535 (struct font_name): New member `resizing_ratio'.
15536 (font_resizing_ratio): New function.
15537 (split_font_name): Set font->resizing_ratio.
15538 (better_font_p): Pay attention to font->resizing_ratio.
15539 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15540 RESX, and RESY fields.
15541 (try_alternative_families): Try scalable fonts if
15542 Vscalable_fonts_allowed is not Qt.
15543 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15544
155452008-02-01 Dave Love <fx@gnu.org>
15546
15547 * xterm.c (xaw_scroll_callback): Cast correctly.
15548
155492008-02-01 Dave Love <fx@gnu.org>
15550
15551 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15552 (lispy_kana_keys): Comment out.
15553 (make_lispy_event) [XK_kana_A]: Comment out.
15554
15555 * xterm.c (xaw_scroll_callback): Cast call_data.
15556 (XTread_socket): Deal with ASCII keysyms.
15557 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15558
155592008-02-01 Dave Love <fx@gnu.org>
15560
15561 * xterm.c (Vx_keysym_table): New.
15562 (syms_of_xterm): Initialize it.
15563 (XTread_socket): Use it.
15564 From head: Eliminate incorrect optimization that tried to avoid
15565 decoding the output of X*LookupString.
15566 (x_get_font_repertory): Delete charset declaration.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15571 return 0.
15572 (Fdefine_coding_system_internal): Setup
15573 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15574
155752008-02-01 Dave Love <fx@gnu.org>
15576
15577 * coding.c (Fcheck_coding_system): Doc fix.
15578
15579 * editfns.c (Finsert_byte): Return a proper value.
15580
155812008-02-01 Kenichi Handa <handa@m17n.org>
15582
15583 * coding.c (decode_coding): Fix args to translate_chars. Pay
15584 attention to Vstandard_translation_table_for_decode.
15585 (encode_coding): Fix args to translate_chars. Pay attention to
15586 Vstandard_translation_table_for_encode.
15587
15588 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15589 SINGLE_BYTE_CHAR_P.
15590
15591 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15592 not by SINGLE_BYTE_CHAR_P.
15593
15594 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15595 SINGLE_BYTE_CHAR_P.
15596
15597 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15598 SINGLE_BYTE_CHAR_P.
15599
15600 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15601 by SINGLE_BYTE_CHAR_P.
15602
15603 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15604 SINGLE_BYTE_CHAR_P.
15605
156062008-02-01 Dave Love <fx@gnu.org>
15607
15608 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15609
156102008-02-01 Dave Love <fx@gnu.org>
15611
15612 * fns.c (Flanginfo): Fix typo.
15613
15614 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15615
156162008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15619 (detect_coding_emacs_mule, detect_coding_iso_2022)
15620 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15621 incomplete byte sequence. Don't update *mask when correctly detected.
15622 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15623 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15624 (detect_coding, detect_coding_system): Adjust for the changes above.
15625
156262008-02-01 Kenichi Handa <handa@m17n.org>
15627
15628 * character.c (char_string): Rename from
15629 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15630 (string_char): Rename from string_char.
15631
15632 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15633 if C is greater than MAX_3_BYTE_CHAR.
15634 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15635 string_char instead of string_char_with_unification.
15636
156372008-02-01 Dave Love <fx@gnu.org>
15638
15639 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15640
156412008-02-01 Kenichi Handa <handa@m17n.org>
15642
15643 * keymap.c (push_key_description): Pay attention to force_multibyte.
15644
15645 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15646
156472008-02-01 Dave Love <fx@gnu.org>
15648
15649 * charset.c (define_charset_internal): Rename `supprementary'.
15650
15651 * Makefile.in (lisp, shortlisp): Remove latin-N.
15652
156532008-02-01 Dave Love <fx@gnu.org>
15654
15655 * xfns.c (x_window, x_window): Use use_xim.
15656
15657 * xterm.c (use_xim): Initialize.
15658 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15659 (x_term_init): Maybe set use_xim.
15660
15661 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15662
156632008-02-01 Kenichi Handa <handa@m17n.org>
15664
15665 * search.c (search_buffer): Fix case-fold-search of multibyte
15666 characters.
15667 (boyer_moore): Rename the last argument to char_high_bits.
15668
156692008-02-01 Kenichi Handa <handa@m17n.org>
15670
15671 * xdisp.c (display_string): Fix for the case of zero width glyph.
15672
15673 * xfns.c (x_set_font): Change the error message of the case that
15674 x_new_fontset returns Qt.
15675
15676 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15677 (Finternal_set_lisp_face_attribute): Use signal_error for the
15678 error of invalid fontset.
15679
15680 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15681 fontset, return Qt.
15682
156832008-02-01 Dave Love <fx@gnu.org>
15684
15685 * unexelf.c (unexec): Make .got handling not SGI-specific.
15686
15687 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15688
15689 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15690
15691 * keyboard.c (read_key_sequence): Fix type error.
15692
15693 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15694 type error.
15695
15696 * fontset.c (fontset_add): Return Lisp_Object.
15697
156982008-02-01 Dave Love <fx@gnu.org>
15699
15700 * charset.h (charset_ordered_list_tick): Declare extern.
15701
157022008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 The following changes (and some of 2008-02-01 changes of mine) are
15705 for handling syntax, category, and case conversion for unibyte
15706 characters by converting them to multibyte on the fly. With these
15707 changes, we don't have to setup syntax and case tables for unibyte
15708 characters in each language environment.
15709
15710 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15711 multibyte if necessary.
15712
15713 * bytecode.c (Fbyte_code): Likewise.
15714
15715 * character.h (LEADING_CODE_LATIN_1_MIN)
15716 (LEADING_CODE_LATIN_1_MAX): New macros.
15717 (unibyte_to_multibyte_table): Extern it.
15718 (unibyte_char_to_multibyte): New macro.
15719 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15720 (CHAR_LEADING_CODE): New macro.
15721 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15722
15723 * character.c (unibyte_to_multibyte_table): New variable.
15724 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15725 (multibyte_char_to_unibyte): If C is an eight-bit character,
15726 convert it to the corresponding byte value.
15727
15728 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15729 not 1, signals an error. Update the elements of
15730 unibyte_to_multibyte_table.
15731 (init_charset_once): Initialize unibyte_to_multibyte_table.
15732 (syms_of_charset): Define the charset `iso-8859-1'.
15733
15734 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15735 as is without converting it to unibyte. In a unibyte buffer,
15736 convert C to multibyte before checking the syntax.
15737
15738 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15739
15740 * minibuf.c (Fminibuffer_complete_word): Use the macro
15741 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15742
15743 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15744
15745 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15746 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15747 that is zero, convert an eight-bit char to multibyte.
15748 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15749 non-emacs case.
15750 (PATFETCH): Convert an eight-bit char to multibyte.
15751 (HANDLE_UNIBYTE_RANGE): New macro.
15752 (regex_compile): Setup the compiled pattern for multibyte chars
15753 even if the given regex string is unibyte. Use PATFETCH_RAW
15754 instead of PATFETCH in many places. To handle `charset'
15755 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15756 only for ASCII chars.
15757 (analyse_first) <exactn>: Simplify because the compiled pattern
15758 is multibyte.
15759 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15760 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15761 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15762 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15763 multibyte always 1.
15764 (re_search_2): In emacs, set the locale variable multibyte to 1,
15765 otherwise to 0. New local variable target_multibyte. Check it
15766 to decide the multibyteness of STR1 and STR2. If
15767 target_multibyte is zero, convert unibyte chars to multibyte
15768 before translating and checking fastmap.
15769 (TARGET_CHAR_AND_LENGTH): New macro.
15770 (re_match_2_internal): In emacs, set the locale variable multibyte
15771 to 1, otherwise to 0. New local variable target_multibyte. Check
15772 it to decide the multibyteness of STR1 and STR2. Use
15773 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15774 <charset, charset_not>: If multibyte is nonzero, check fastmap
15775 only for ASCII chars. Call bcmp_translate with
15776 target_multibyte, not with multibyte.
15777 <begline>: Declare the local variable C as `unsigned'.
15778 (bcmp_translate): Change the last arg name to target_multibyte.
15779
15780 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15781 the regexp pattern and the matching target. Set cp->buf.multibyte
15782 to the multibyteness of the regexp pattern. Set
15783 cp->but.target_multibyte to the multibyteness of the matching target.
15784 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15785 FETCH_STRING_CHAR_ADVANCE.
15786 (Freplace_match): Convert unibyte chars to multibyte.
15787
15788 * syntax.c (char_quoted, back_comment, scan_words)
15789 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15790 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15791 unibyte chars to multibyte.
15792 (skip_chars): Delete the arg syntaxp, and move the code for
15793 handling syntaxes to skip_syntaxes. Change callers.
15794 Fix the case that the multibyteness of STRING and the current
15795 buffer doesn't match.
15796 (skip_syntaxes): New function.
15797 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15798 SINGLE_BYTE_CHAR_P.
15799
158002008-02-01 Kenichi Handa <handa@m17n.org>
15801
15802 * xfaces.c (QCfontset): New variable.
15803 (LFACE_FONTSET): New macro.
15804 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15805 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15806 (Finternal_set_lisp_face_attribute)
15807 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15808 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15809 check also LFACE_FONTSET_INDEX.
15810 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15811 attrs[LFACE_FONT_INDEX].
15812 (syms_of_xfaces): Intern and staticpro QCfontset.
15813
15814 * dispextern.h (enum lface_attribute_index): New member
15815 LFACE_FONTSET_INDEX.
15816
15817 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15818
158192008-02-01 Kenichi Handa <handa@m17n.org>
15820
15821 * coding.c (coding_set_destination): Fix coding->destination for
15822 the case converting a region.
15823 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15824 (encode_coding_object): Fix coding->dst_pos and
15825 coding->dst_pos_byte for the case converting a region.
15826
15827 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15828
15829 * character.h (BYTE8_STRING): New macro.
15830
15831 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15832
158332008-02-01 Kenichi Handa <handa@m17n.org>
15834
15835 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15836 characters by octal form.
15837
15838 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15839
15840 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15841 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15842 _fetch_multibyte_char_len.
15843 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15844
15845 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15846
15847 * casefiddle.c (casify_object): Simplify. Handle the case that
15848 the case conversion change the byte length.
15849 (casify_region): Likewise.
15850
15851 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15852
15853 * character.c (_fetch_multibyte_char_len): Delete this variable.
15854 (syms_of_character): Setup Vprintable_chars.
15855
15856 * editfns.c (Fchar_equal): Fix for the unibyte case.
15857 (Finsert_byte): New function.
15858 (syms_of_editfns): Defsubr it.
15859
15860 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15861 of direct code 0x3ffff.
15862
15863 * search.c (Freplace_match): Fix for the unibyte case.
15864
158652008-02-01 Kenichi Handa <handa@m17n.org>
15866
15867 * lread.c (safe_to_load_p): Fix the logic.
15868
15869 * syntax.c (scan_words): Don't treat characters belonging to
15870 different scripts as constituting a word.
15871
15872 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15873
15874 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15875
15876 * emacs.c (main): In the case of --unibyte, instead of aborting on
15877 finding non-empty buffer, make it unibyte.
15878
158792008-02-01 Kenichi Handa <handa@m17n.org>
15880
15881 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15882 to create a fontset.
15883
158842008-02-01 Dave Love <fx@gnu.org>
15885
15886 * character.c (Funibyte_char_to_multibyte): Doc fix.
15887
15888 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15889
158902008-02-01 Kenichi Handa <handa@m17n.org>
15891
15892 * fontset.c (fontset_add): Make the type `int'.
15893 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15894
15895 * character.c (unibyte_char_to_multibyte)
15896 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15897 charset_unibyte, not charset_primary.
15898
15899 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15900
15901 * charset.c (charset_unibyte): Rename from charset_primary.
15902 (Funibyte_charset): Rename from Fprimary_charset.
15903 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15904 (syms_of_charset): Adjust for the above changes.
15905
15906 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15907 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15908 it->multibyte_p is zero.
15909
15910 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15911 Delete extern.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * coding.c (Fdefine_coding_system_internal): Fix category setting
15916 for a coding system of type iso-2022.
15917
159182008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15921
159222008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * syntax.c (Vnext_word_boundary_function_table): New variable.
15925 (next-word-boundary-function-table): Declare it as a Lisp variable
15926 in syms_of_syntax.
15927 (scan_words): Call functions in Vnext_word_boundary_function_table
15928 if any.
15929
15930 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15931
15932 * fontset.c (fs_load_font): If fontp->charset is not negative,
15933 return fontp without setting its members.
15934
159352008-02-01 Dave Love <fx@gnu.org>
15936
15937 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15938
15939 * m/sparc.h (HAVE_ALLOCA): Delete.
15940
15941 * s/irix6-5.h: Don't include strings.h.
15942 (bcopy, bzero, bcmp): Don't undef.
15943
15944 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15945
15946 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15947 (TIOCSIGSEND): Don't test IRIX6.
15948 (bcopy, bzero, bcmp): Define conditionally.
15949
159502008-02-01 Kenichi Handa <handa@m17n.org>
15951
15952 * buffer.c (Qas, Qmake, Qto): New variables.
15953 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15954 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15955
15956 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15957 we are inserting a process output into a multibyte buffer.
15958
15959 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15960 multibyte_char_to_unibyte.
15961
15962 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15963 by the primary charset, make it eight-bit char.
15964 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15965
15966 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15967 (charset_8_bit__control, charset_8_bit_graphic)
15968 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15969 (define_charset_internal): New function.
15970 (syms_of_charset): Call define_charset_internal for pre-defined
15971 charsets.
15972
15973 * charset.h (charset_8_bit): Extern it.
15974
15975 * coding.c (make_conversion_work_buffer): Adjust for the change
15976 of Fset_buffer_multibyte.
15977 (encode_coding_raw_text): Increment p0 in the loop.
15978
15979 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15980
15981 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15982 for the change of Fset_buffer_multibyte.
15983
15984 * fns.c (Fstring_to_multibyte): New function.
15985 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15986
159872008-02-01 Dave Love <fx@gnu.org>
15988
15989 * xfns.c (x_put_x_image): Declare args.
15990
15991 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15992 (try_font_list): Declare an arg.
15993
15994 * xdisp.c (message2_nolog, set_message): Declare an arg.
15995
15996 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15997
15998 * syntax.c (scan_sexps_forward): Declare an arg.
15999
16000 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16001 Declare an arg.
16002
16003 * lisp.h (Fnew_fontset): Declare.
16004
16005 * keymap.c (push_key_description): Call CHARACTERP correctly.
16006
16007 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16008 (face_for_char): Delete unused vars.
16009 (Fset_fontset_font): Doc fix. Delete unused vars.
16010
16011 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16012
16013 * composite.c (update_compositions): Declare arg.
16014
16015 * cm.c (calccost, cmgoto): Declare args.
16016
16017 * charset.c: Remove `emacs' conditional. Doc fixes.
16018 (map_char_table_for_charset): Declare.
16019
16020 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16021
16022 * ccl.c: Remove `emacs' conditional.
16023
160242008-02-01 Kenichi Handa <handa@m17n.org>
16025
16026 The following changes are to allow specifying multiple font
16027 patterns for a character range (specified by script or charset).
16028
16029 * Makefile.in (abbrev.o): Depend on syntax.h.
16030 (xfaces.o): Depend on charset.h.
16031
16032 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16033 SINGLE_BYTE_CHAR_P.
16034
16035 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16036
16037 * character.h (Vchar_script_table): Extern it.
16038
16039 * character.c (Vscript_alist): Delete.
16040 (Vchar_script_table, Qchar_script_table): New variable.
16041 (syms_of_character): Declare Vchar_script_table as a lisp variable
16042 and initialize it.
16043
16044 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16045 have property char-table-extra-slots, make no extra slot.
16046
16047 * dispextern.h (struct face): Delete member `charset'.
16048 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16049 SINGLE_BYTE_CHAR_P.
16050 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16051 Add prototypes.
16052 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16053 (generate_ascii_font_name): Rename from generate_ascii_font.
16054
16055 * fontset.h (get_font_repertory_func): New prototype.
16056 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16057 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16058
16059 * fontset.c (Qprepend, Qappend): New variables.
16060 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16061 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16062 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16063 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16064 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16065 (load_font_get_repertory): New functions.
16066 (fontset_set): Delete.
16067 (fontset_face): New arg FACE. Return face ID, not face.
16068 Complete re-write to handle new fontset structure. Change caller.
16069 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16070 (face_for_char): Don't call lookup_face.
16071 (make_fontset_for_ascii_face): New arg FACE.
16072 (fs_load_font): New arg CHARSET_ID. Don't check
16073 Vfont_encoding_alist here.
16074 (find_font_encoding): New function.
16075 (list_fontsets): Use STRINGP, not ! NILP.
16076 (accumulate_script_ranges): New function.
16077 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16078 re-written to handle new fontset structure.
16079 (Ffontset_font): Return a copy of element.
16080 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16081 docstring of font-encoding-alist.
16082
16083 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16084 (Fset_fotset_font): Fix arguments to 5.
16085
16086 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16087
16088 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16089 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16090 (highlight_trailing_whitespace): Adjust for the change of
16091 lookup_named_face.
16092
16093 * xfaces.c: Include charset.h.
16094 (load_face_font): Delete argument C. Change caller.
16095 (generate_ascii_font_name): Rename from generate_ascii_font.
16096 (font_name_registry): New function.
16097 (cache_face): Store ascii faces before non-ascii faces in buckets.
16098 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16099 Lookup only ascii faces.
16100 (lookup_non_ascii_face): New function.
16101 (lookup_named_face): Delete argument C. Change caller.
16102 (lookup_derived_face): Delete argument C. Change caller.
16103 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16104 a string, just call font_list with it.
16105 (choose_face_font): Delete arguments FACE and C. New arg
16106 FONT_SPEC. Change caller.
16107 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16108 Change caller.
16109 (realize_non_ascii_face): New function.
16110 (realize_x_face): Call load_face_font here.
16111 (realize_tty_face): Delete argument C. Change caller.
16112 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16113 get a face ID.
16114 (dump_realized_face): Don't print charset of FACE.
16115
16116 * xfns.c (x_set_font): Always call x_new_fontset and
16117 store_frame_parameter.
16118 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16119 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16120
16121 * xterm.h (x_get_font_repertory): Extern it.
16122
16123 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16124 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16125 it->multibyte_p is zero.
16126 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16127 (x_new_fontset): If FONTSETNAME doesn't match any existing
16128 fontsets, create a new one.
16129 (x_get_font_repertory): New function.
16130
161312008-02-01 Kenichi Handa <handa@m17n.org>
16132
16133 * coding.c (Ffind_coding_systems_region_internal): Detect an
16134 ASCII only string correctly.
16135
16136 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16137 version is 0.
16138
161392008-02-01 Kenichi Handa <handa@m17n.org>
16140
16141 * lread.c: Include "coding.h".
16142 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16143 (load_each_byte, unread_char): New variables.
16144 (readchar_backlog): Delete.
16145 (readchar): Return a character unless load_each_byte is nonzero.
16146 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16147 cons. If unread_char is not -1, simply return it.
16148 (unreadchar): Handle the case that readcharfun is
16149 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16150 (read_multibyte): Delete.
16151 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16152 (read_emacs_mule_char): New functions.
16153 (Fload): Even if the file doesn't have the extension ".elc", if
16154 safe_to_load_p returns a positive version number, assume that the
16155 file contains bytecompiled code. If the version is less than 22,
16156 load the file while decoding multibyte sequences by emacs-mule.
16157 (readevalloop): Don't use readchar_backlog.
16158 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16159 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16160 (read_escape): Delete the arg BYTEREP.
16161 (read1): Set load_each_byte to 1 temporarily while handling
16162 #@NUMBER. Don't call read_multibyte.
16163 (read_vector): Call Fread with a cons. If readcharfun is
16164 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16165 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16166 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16167 and Qload_force_doc_strings.
16168
161692008-02-01 Kenichi Handa <handa@m17n.org>
16170
16171 * xdisp.c (face_before_or_after_it_pos): Call
16172 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16173
161742008-02-01 Kenichi Handa <handa@m17n.org>
16175
16176 * character.h (TRAILING_CODE_P): New macro.
16177 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16178 (string_char_with_unification): Fix prototype.
16179 (Vscript_alist): Extern it.
16180
16181 * character.c (Vscript_alist): New variable.
16182 (string_char_with_unification, str_as_unibyte)
16183 (string_escape_byte8): Add `const' to local variables.
16184 (syms_of_character): Declare script-alist as a Lisp variable.
16185
16186 * charset.h (Vcharset_ordered_list): Extern it.
16187 (charset_ordered_list_tick): Extern it.
16188 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16189 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16190 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16191 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16192 (Funify_charset): Adjust for the change of Funify_charset.
16193
16194 * charset.c (charset_ordered_list_tick): New variable.
16195 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16196 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16197 deunify intead of unify a charset.
16198 (string_xstring_p): Add `const' to local variables.
16199 (find_charsets_in_text): Add `const' to arguments and local variables.
16200 (encode_char): Adjust for the change of Funify_charset. Fix
16201 detecting of invalid code.
16202 (Fset_charset_priority): Increment charset_ordered_list_tick.
16203 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16204 and TO_CODE.
16205
16206 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16207 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16208 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16209 (decode_coding_ccl, consume_chars)
16210 (Ffind_coding_systems_region_internal)
16211 (Fcheck_coding_systems_region): Add `const' to local variables.
16212
16213 * print.c (print_object): Use octal form for printing the
16214 contents of a bool vector.
16215
162162008-02-01 Dave Love <fx@gnu.org>
16217
16218 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16219 <version == 20>: Refuse to load.
16220
162212008-02-01 Dave Love <fx@gnu.org>
16222
16223 * fns.c: Move coding.h.
16224 (Qcodeset, Qdays, Qmonths): New.
16225 (concat): Use CHARACTERP instead of INTEGERP.
16226 (Flocale_codeset): Delete.
16227 (Flanginfo): New function.
16228 (syms_of_fns): Change accordingly.
16229
16230 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16231
162322008-02-01 Dave Love <fx@gnu.org>
16233
16234 * casetab.c (init_casetab_once, init_casetab_once): Fix
16235 CHAR_TABLE_SET call.
16236
16237 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16238
16239 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16240
16241 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16242 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16243 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16244
16245 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16246
16247 * coding.c (ENCODE_DESIGNATION, decode_eol)
16248 (make_conversion_work_buffer, code_conversion_restore)
16249 (Fdefine_coding_system_internal): Convert Lisp types.
16250 (code_conversion_restore): Use EQ, not ==.
16251 (Fencode_coding_string): Fix code_convert_string call.
16252
16253 * coding.h (code_convert_region): Fix prototype.
16254
16255 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16256
16257 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16258 (Ffontset_info): Convert Lisp types.
16259
16260 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16261
16262 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16263
16264 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16265
16266 * chartab.c: Include "...h", not <...h> in some cases.
16267
16268 * callproc.c (Fcall_process): Remove unused variables.
16269
162702008-02-01 Dave Love <fx@gnu.org>
16271
16272 * coding.c (Fset_coding_system_priority): Allow null arg list.
16273
162742008-02-01 Dave Love <fx@gnu.org>
16275
16276 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16277 (Fself_insert_and_exit): Use CHARACTERP.
16278
16279 * callproc.c (Fcall_process): Remove unused vars.
16280
16281 * xterm.c (XTread_socket): Add extra dead keysyms.
16282
16283 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16284
16285 * dispextern.h: Remove prototypes for redraw_frame,
16286 redraw_garbaged_frames.
16287
16288 * cmds.c (Fself_insert_command): Use CHARACTERP.
16289
16290 * chartab.c (make_sub_char_table): Remove unused var.
16291 (Fset_char_table_default, Fmap_char_table): Doc fix.
16292
16293 * keymap.c (access_keymap): Remove generic char code.
16294 (push_key_description): Use CHARACTERP.
16295
162962008-02-01 Dave Love <fx@gnu.org>
16297
16298 * charset.c: Doc fixes.
16299 (Funify_charset): Extra checking.
16300
163012008-02-01 Dave Love <fx@gnu.org>
16302
16303 * lread.c: Remove some unused variables.
16304 (safe_to_load_p): If safe, return the magic number version byte.
16305 (Fload): Maybe use load-with-code-conversion.
16306
163072008-02-01 Kenichi Handa <handa@m17n.org>
16308
16309 * category.c (Fmodify_category_entry): Don't modify the contents
16310 of category_set for characters out of the range. Avoid
16311 unnecessary modification.
16312
16313 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16314 Vchar_unify_table. The default value of the table is now nil.
16315
16316 * character.c (syms_of_character): Setup Vchar_width_table for
16317 eight-bit-control and raw-byte chars.
16318
16319 * charset.h (enum define_charset_arg_index): Delete
16320 charset_arg_parents and add charset_arg_subset and
16321 charset_arg_superset.
16322 (enum charset_attr_index): Delete charset_parents and add
16323 charset_subset and charset_superset.
16324 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16325 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16326 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16327 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16328 (CHARSET_SUPERSET): New macros.
16329 (charset_work): Extern it.
16330 (ENCODE_CHAR): Use charset_work.
16331 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16332 (map_charset_chars): Extern it.
16333
16334 * charset.c (load_charset_map): Set the default value of encoder
16335 and deunifier char-tables to nil.
16336 (map_charset_chars): Change argument. Change callers. Use
16337 map_char_table_for_charset instead of map_char_table.
16338 (Fmap_charset_chars): New optional args from_code and to_code.
16339 (Fdefine_charset_internal): Adjust for the change of
16340 `define-charset' (:parents -> :subset or :superset).
16341 (charset_work): New variable.
16342 (encode_char, syms_of_charset): Adjust for the change of
16343 Fdefine_charset_internal.
16344 (Ffind_charset_string): Setup the vector `charsets' correctly.
16345
16346 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16347 the previous change.
16348 (char_table_ref_and_range): Adjust for the above change.
16349 (map_sub_char_table_for_charset): New function.
16350 (map_char_table_for_charset): New function.
16351
16352 * keymap.c (describe_vector): Handle a char-table directly here.
16353 (describe_char_table): Delete.
16354
16355 * lisp.h (map_charset_chars): Delete.
16356
163572008-02-01 Dave Love <fx@gnu.org>
16358
16359 * fns.c (count_combining): Comment out (unused).
16360 (Flocale_codeset): New.
16361 (syms_of_fns): Defsubr it.
16362
16363 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16364 (size_t): Remove.
16365
163662008-02-01 Dave Love <fx@gnu.org>
16367
16368 * Makefile.in (chartab.o): Depend on charset.h.
16369
163702008-02-01 Kenichi Handa <handa@m17n.org>
16371
16372 * character.c (syms_of_character): Set the default value of
16373 Vprintable_chars to Qnil.
16374
163752008-02-01 Dave Love <fx@gnu.org>
16376
16377 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16378
163792008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * charset.c (load_charset_map): Handle the case that from < to
16382 correctly.
16383
16384 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16385 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16386 Pay attention to raw-8-bit chars.
16387
163882008-02-01 Kenichi Handa <handa@m17n.org>
16389
16390 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16391 It is not bytecompiled now.
16392
16393 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16394 (charset_jisx0208): New variables.
16395 (Fdefine_charset_internal): Setup them if appropriate.
16396 (init_charset_once): Initialize them to -1.
16397
16398 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16399 (charset_jisx0208): Extern them.
16400
16401 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16402 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16403 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16404 (setup_iso_safe_charsets): Fix arguments to Fassq.
16405 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16406 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16407 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16408 (encode_coding_iso_2022): Change the 1st arg to
16409 ENCODE_ISO_CHARACTER to a variable.
16410
164112008-02-01 Kenichi Handa <handa@m17n.org>
16412
16413 * charset.h (enum define_charset_arg_index): New enums
16414 charset_arg_min_code and charset_arg_max_code.
16415 (struct charset): New member char_index_offset.
16416
16417 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16418 Take charset->char_index_offset into account.
16419 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16420 args[charset_arg_max_code]. Setup charset.char_index_offset.
16421 (syms_of_charset): Fix args to Fdefine_charset_internal.
16422
164232008-02-01 Dave Love <fx@gnu.org>
16424
16425 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16426
164272008-02-01 Dave Love <fx@gnu.org>
16428
16429 * coding.c: Doc fixes.
16430 (Fcoding_system_aliases): Fix return value.
16431 (Qmac): Remove (duplicated) definition.
16432
164332008-02-01 Dave Love <fx@gnu.org>
16434
362654a6
JB
16435 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16436 New functions.
aac0c6e3
MR
16437
16438 * character.c (Fstring): Doc fix.
16439
16440 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16441
362654a6 16442 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16443 (font-encoding-alist): Doc fix.
16444
164452008-02-01 Dave Love <fx@gnu.org>
16446
16447 * term.c (costs_set): Declare static, non-initialized for pcc.
16448 (encode_terminal_code): Remove unused var.
16449
16450 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16451 for K&R.
16452
16453 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16454
16455 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16456 (suffixes): Move out of make_subsidiaries for K&R.
16457
16458 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16459
16460 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16461
164622008-02-01 Dave Love <fx@gnu.org>
16463
16464 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16465
16466 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16467
164682008-02-01 Yong Lu <lyongu@asia-infonet.com>
16469
16470 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16471
16472 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16473
164742008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16477 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16478
164792008-02-01 Kenichi Handa <handa@m17n.org>
16480
16481 * coding.c (decode_coding_charset): Adjust for the change of
16482 Fdefine_coding_system_internal.
16483 (Fdefine_coding_system_internal): For a coding system of
16484 `charset' type, store a list of charset IDs in
16485 `charset_attr_charset_valids' element of coding attributes.
16486
164872008-02-01 Kenichi Handa <handa@m17n.org>
16488
16489 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16490 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16491 caller. Handle 2-byte and 3-byte charsets correctly.
16492 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16493 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16494 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16495 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16496 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16497 sequence.
16498 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16499 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16500 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16501 and alt&rule composition.
16502 (decode_coding_iso_2022): Handle composition correctly.
16503 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16504
16505 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16506 re-defining a charset. If the charset has :emacs-mule-id, setup
16507 emacs_mule_bytes.
16508 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16509
165102008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16513 (encode_coding_big5, encode_coding_charset): If coding requires safe
16514 encoding, produce a character specified by
16515 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16516
165172008-02-01 Dave Love <fx@gnu.org>
16518
16519 * xterm.c (XSetIMValues): Declare.
16520
16521 * process.c: Conditionally include sys/wait.h, pty.h.
16522
16523 * print.c (print_object): Fix print format for 64-bit systems.
16524
16525 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16526
16527 * buffer.c (emacs_strerror): Declare.
16528
16529 * fontset.c (Fclear_face_cache): Declare.
16530 (accumulate_font_info): Comment-out (unused).
16531 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16532 variables.
16533
16534 * character.h (string_escape_byte8): Declare.
16535
16536 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16537 unused vars.
16538 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16539 (Fmap_charset_chars): Doc fix.
16540
16541 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16542 (Fset_coding_system_priority, Fset_coding_system_priority)
16543 (Fdefine_coding_system_internal): Doc fix.
16544
165452008-02-01 Dave Love <fx@gnu.org>
16546
16547 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16548
165492008-02-01 Kenichi Handa <handa@m17n.org>
16550
16551 * character.c (string_escape_byte8): Make multibyte string with
16552 correct size.
16553
16554 * charset.c (Fmake_char): Delete unnecessary code.
16555
165562008-02-01 Kenichi Handa <handa@m17n.org>
16557
16558 * xfns.c (x_encode_text): Allocate coding.destination here, and
16559 call encode_coding_object with dst_object Qnil.
16560
16561 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16562 multibyte form correctly.
16563
16564 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16565 against Vfont_encoding_alist.
16566
16567 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16568 handling of charset list.
16569 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16570 (decode_coding_object): Move point to coding->dst_pos before
16571 calling post-read-conversion function.
16572 (encode_coding_object): Give correct arguments to
16573 pre-write-conversion. Ignore the return value of
16574 pre-write-conversion function. Pay attention to the case that
16575 pre-write-conversion changes the current buffer. If dst_object is
16576 Qt, even if coding->src_bytes is zero, allocate at least one byte
16577 to coding->destination.
16578
16579 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16580
16581 * charset.c (Fmake_char): Make it more backward compatible.
16582 (Fmap_charset_chars): Fix docstring.
16583
165842008-02-01 Dave Love <fx@gnu.org>
16585
16586 * coding.c: Doc fixes.
16587 (Fdefine_coding_system_alias): Use names, not symbols, in
16588 coding-system-alist.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16593 of calling free_realized_face.
16594
165952008-02-01 Yong Lu <lyongu@asia-infonet.com>
16596
16597 * charset.c (read_hex): Don't treat SPC as a comment starter.
16598 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16599 (Fdecode_char): Fix typo.
16600
166012008-02-01 Kenichi Handa <handa@m17n.org>
16602
16603 * charset.h (struct charset): New member `code_space_mask'.
16604
16605 * coding.c (coding_set_source): Delete the local variable beg_byte.
16606 (encode_coding_charset, Fdefine_coding_system_internal):
16607 Delete the local variable charset.
16608 (Fdefine_coding_system_internal): Setup
16609 attrs[coding_attr_charset_valids] correctly.
16610
16611 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16612 member to check if CODE is valid or not.
16613 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16614 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16615 is within the range of charset->min_code and carset->max_code.
16616
166172008-02-01 Dave Love <fx@gnu.org>
16618
16619 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16620
16621 * dispextern.h (generate_ascii_font): Fix return type.
16622
16623 * xfaces.c (generate_ascii_font): Fix arg declaration.
16624
16625 * coding.c (coding_inherit_eol_type)
16626 (Fset_terminal_coding_system_internal)
16627 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16628
166292008-02-01 Kenichi Handa <handa@m17n.org>
16630
16631 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16632 multiple charsets correctly.
16633
166342008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * search.c (boyer_moore): Fix handling of multibyte character
16637 translation.
16638
16639 * xdisp.c (display_mode_element): When the variable `elt' is
16640 changed, update `this' and `lisp_string'.
16641
166422008-02-01 Kenichi Handa <handa@m17n.org>
16643
16644 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16645
16646 * callproc.c (Fcall_process): Be sure to give the current buffer
16647 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16648
16649 * charset.c (struct charset_map_entries): New struct.
16650 (load_charset_map): Rename from parse_charset_map. New args
16651 entries and n_entries. Change caller.
16652 (load_charset_map_from_file): Rename from load_charset_map.
16653 Change caller. New arg control_flag. Call load_charset_map at
16654 the tail.
16655 (load_charset_map_from_vector): New function.
16656 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16657 (encode_char): If the charset is compact, change a character index
16658 to a code point.
16659
16660 * coding.c (coding_alloc_by_making_gap): Check the case that the
16661 source and destination are the same correctly.
16662 (decode_coding_raw_text): Set coding->consumed_char and
16663 coding->consumed to 0.
16664 (produce_chars): If coding->chars_at_source is nonzero, update
16665 coding->consumed_char and coding->consumed before calling
16666 alloc_destination.
16667 (Fdefine_coding_system_alias): Register ALIAS in
16668 Vcoding_system_alist.
16669 (syms_of_coding): Define `no-conversion' coding system at the tail.
16670
16671 * fileio.c (Finsert_file_contents): Set coding_system instead of
16672 val. If the current buffer is multibyte, always call
16673 decode_coding_gap.
16674
16675 * xfaces.c (try_font_list): Give higher priority to fontset's
16676 family than face's family.
16677
166782008-02-01 Kenichi Handa <handa@m17n.org>
16679
16680 * callproc.c (Fcall_process): Be sure to give the current buffer
16681 to decode_coding_c_string.
16682
16683 * xfaces.c (try_font_list): Give a family specified in a fontset
16684 higher priority than a family specified in a face.
16685
166862008-02-01 Kenichi Handa <handa@m17n.org>
16687
16688 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16689 Fix arguments to insert_from_buffer.
16690
16691 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16692
166932008-02-01 Kenichi Handa <handa@m17n.org>
16694
16695 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16696 (decode_coding_gap): Set coding->dst_multibyte correctly.
16697
166982008-02-01 Kenichi Handa <handa@m17n.org>
16699
16700 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16701 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16702 (encode_coding_utf_16): Substitute coding->default_char for
16703 non-Unicode characters.
16704 (decode_coding): Don't call record_insert here.
16705 (setup_coding_system): Initialize `surrogate' of
16706 coding->spec.utf_16 to 0.
16707 (EMIT_ONE_BYTE): Fix for multibyte case.
16708
16709 * insdel.c (insert_from_gap): Call record_insert.
16710
167112008-02-01 Kenichi Handa <handa@m17n.org>
16712
16713 * casefiddle.c (casify_region): Fix multibyte case.
16714
16715 * character.c (c_string_width): Add return type `int'.
16716 (char_string_with_unification): Delete arg ADVANCED.
16717
16718 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16719 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16720 (CHAR_STRING_ADVANCE): Make it do-while statement.
16721
16722 * chartab.c (sub_char_table_set_range): Optimize for the case
16723 DEPTH == 3. Add workaround code for a GCC optimization bug.
16724
16725 * charset.c (parse_charset_map): Remove an unused variable.
16726
16727 * coding.c: Delete unused variables.
16728
16729 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16730 earlier. If inserted is zero and the coding system doesn't
16731 require flushing, don't call decode_coding_gap.
16732
16733 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16734
167352008-02-01 Kenichi Handa <handa@m17n.org>
16736
16737 The following changes are for using Unicode as an internal
16738 character model, and use UTF-8 format for buffer/string
16739 representation.
16740
16741 * .gdbinit (xchartable): Adjust for the change of char table structure.
16742 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16743
16744 * Makefile.in (obj): Add character.o and chartab.o.
16745 (lisp, shortlisp): Remove utf-8.elc.
16746 (*.o): For many files, change dependency on charset.h to
16747 character.h, and add dependency on character.h.
16748 (character.o, chartab.o): New targets.
16749
16750 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16751 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16752 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16753 of "charset.h".
16754
16755 * dired.c, filelock.c: Include "character.h".
16756
16757 * alloc.c: Include "character.h" instead of "charset.h".
16758 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16759 (syms_of_alloc): Remove defsubr for Smake_char_table.
16760
16761 * buffer.c: Include "character.h" instead of "charset.h", don't
16762 include "coding.h".
16763 (Fset_buffer_multibyte): Adjust for UTF-8.
16764
16765 * buffer.h: EXFUN Fbuffer_live_p.
16766
16767 * callproc.c: Include "character.h" instead of "charset.h".
16768 (Fcall_process): Big change for the new code-conversion APIs.
16769
16770 * casetab.c: Include "character.h" instead of "charset.h".
16771 (set_canon, set_identity, shuffle): Adjust for the new
16772 map_char_table spec.
16773 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16774 accessing the char table structure.
16775
16776 * chartab.c: New file that implements char table.
16777
16778 * category.c: Include "character.h".
16779 (copy_category_entry): New function.
16780 (copy_category_table): Call map_char_table and copy_category_entry.
16781 (Fmake_category_table): Initialize all top-level slots.
16782 (char_category_set): New function.
16783 (modify_lower_category_set): Delete.
16784 (Fmodify_category_entry): Call char_table_ref_and_range.
16785
16786 * category.h (CATEGORY_SET): Just call char_category_set.
16787
16788 * ccl.c: Include "character.h".
16789 (Qccl, Qcclp): New variables.
16790 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16791 it's less than 256.
16792 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16793 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16794 and DST type.
16795 (ccl_driver): Change types of argument, adjust code accordingly.
16796 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16797 ccl_driver.
16798 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16799
16800 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16801 New members src_multibyte, dst_multibyte, consumed, and produced.
16802 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16803 (CODING_SPEC_CCL_PROGRAM): New macro.
16804 (ccl_driver): Update prototype.
16805 (Qccl, Qcclp, Fccl_program_p): Extern them.
16806 (CHECK_CCL_PROGRAM): New macro.
16807
16808 * character.c, character.h, chartab.c: New files.
16809
16810 * charset.c: Mostly re-written. Move character and multibyte sequence
16811 handling codes to character.c.
16812
16813 * charset.h: Mostly re-written. Move character and multibyte sequence
16814 handling codes to character.h.
16815
16816 * coding.c, coding.h: Mostly re-written.
16817
16818 * composite.c: Include "character.h" instead of "charset.h".
16819 (CHAR_WIDTH): Move to character.h.
16820 (HASH_KEY, HASH_VALUE): Delete.
16821
16822 * composite.h (enum composition_method): Change order of enumeration
16823 symbols.
16824
16825 * data.c: Include "character.h" instead of "charset.h".
16826 (Faref): Call CHAR_TABLE_REF for a char table.
16827 (Faset): Call CHAR_TABLE_SET for a char table.
16828
16829 * dispextern.h (free_realized_face, check_face_attribytes)
16830 (generate_ascii_font): Extern them.
16831 (free_realized_multibyte_face): Delete extern.
16832
16833 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16834 table structure.
16835
16836 * editfns.c: Include "character.h" instead of "charset.h".
16837 (Fchar_to_string): Always call CHAR_STRING.
16838
16839 * emacs.c (main): Call init_charset_once, init_charset,
16840 syms_of_chartab, and syms_of_character.
16841
16842 * fileio.c: Include "character.h" instead of "charset.h".
16843 (Finsert_file_contents): Big change for the new code-conversion API.
16844 (choose_write_coding_system, Fwrite_region): Likewise.
16845 (build_annotations_2): Delete.
16846 (e_write): Big change for the new code-conversion API.
16847
16848 * fns.c: Include "character.h" instead of "charset.h".
16849 (copy_sub_char_table): Move to chartab.c.
16850 (Fcopy_sequence): Call copy_char_table for a char table.
16851 (concat): Delete codes calling count_multibyte.
16852 (string_char_to_byte, string_byte_to_char): Adjust for the new
16853 multibyte form.
16854 (internal_equal): Adjust for the change of char table structure.
16855 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16856 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16857 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16858 (char_table_translate, optimize_sub_char_table)
16859 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16860 chartab.c.
16861 (char_table_ref_and_index): Delete.
16862 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16863 (Fmd5): Call preferred_coding_system instead of accessing
16864 Vcoding_category_list. Adjust for the new code-conversion API.
16865 (syms_of_fns): Move defsubr for char table related functions to
16866 chartab.c.
16867
16868 * fontset.c: Mostly re-written.
16869
16870 * fontset.h (struct font_info): Change type of the member encoding_type.
16871 (enum FONT_SPEC_INDEX): New enum.
16872 (fontset_font_pattern, fs_load_font): Update prototype.
16873 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16874
16875 * indent.c: Include "character.h" instead of "charset.h".
16876 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16877
16878 * insdel.c: Include "character.h" instead of "charset.h".
16879 (copy_text): Don't refer to Vnonascii_translation_table.
16880 (insert_from_gap): New function.
16881
16882 * keyboard.c: Include "character.h" instead of "charset.h".
16883 (command_loop_1): Never call direct_output_forward_char before
16884 a non-ASCII character.
16885 (read_char): If Vkeyboard_translate_table is a char table, always
16886 translate a character.
16887
16888 * keymap.c: Include "character.h".
16889 (store_in_keymap): Handle the case that IDX is a cons.
16890 (Fdefine_key): Handle the case that KEY is a cons and the car part
16891 is also a cons (range).
16892 (push_key_description): Adjust for the new character code.
16893 (describe_vector): Call describe_char_table for a char table.
16894 (describe_char_table): New function.
16895
16896 * keymap.h (describe_char_table): Extern it.
16897
16898 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16899 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16900 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16901 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16902 Delete.
16903 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16904 structure.
16905 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16906 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16907 (CHARTAB_SIZE_BITS_3): New macros.
16908 (chartab_size): Extern it.
16909 (struct Lisp_Char_Table): Re-design.
16910 (struct Lisp_Sub_Char_Table): New structure.
16911 (HASH_KEY, HASH_VALUE): Move from fns.c.
16912 (CHARACTERBITS): Define as 22.
16913 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16914 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16915 (GC_SUB_CHAR_TABLE_P): New macro.
16916 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16917 (code_convert_string_norecord): Deleted extern.
16918 (init_character_once, syms_of_character, init_charset)
16919 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16920
16921 * lread.c: Include "character.h".
16922 (read_multibyte): New arg NBYTES.
16923 (read_escape): Change the meaning of returned *BYTEREP.
16924 (to_multibyte): Delete.
16925 (read1): Adjust the handling of char table and string.
16926
16927 * print.c: Include "character.h" instead of "charset.h".
16928 (print_string): Convert 8-bit raw bytes to octal form by
16929 string_escape_byte8.
16930 (print_object): Adjust for the new multibyte form. Print 8-bit
16931 raw bytes always in octal form. Handle sub char table correctly.
16932
16933 * process.c: Include "character.h" instead of "charset.h".
16934 (read_process_output, send_process): Adjust for the new
16935 code-conversion API.
16936
16937 * puresize.h (BASE_PURESIZE): Increase.
16938
16939 * regex.c: Include "character.h" instead of "charset.h".
16940 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16941 (regex_compile): Accept a range whose starting and ending
16942 character have different leading bytes.
16943 (analyse_first): Adjust for the above change.
16944
16945 * search.c: Include "character.h" instead of "charset.h".
16946 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16947 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16948
16949 * syntax.c: Include "character.h" instead of "charset.h".
16950 (syntax_parent_lookup): Delete.
16951 (Fmodify_syntax_entry): Accept a cons as CHAR.
16952 (skip_chars): Adjust for the new multibyte form.
16953 (init_syntax_once): Call char_table_set_range instead of directly
16954 accessing the structure of a char table.
16955
16956 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16957 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16958 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16959 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16960
16961 * term.c: Include "buffer.h" and "character.h".
16962 (encode_terminal_code, write_glyphs): Adjust for the new
16963 code-conversion API.
16964 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16965
16966 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16967
16968 * xdisp.c: Include "character.h".
16969 (get_next_display_element): Adjust for the new multibyte form.
16970 (disp_char_vector): Adjust for the new char table structure.
16971 (decode_mode_spec_coding): Adjust for the new structure of
16972 coding system.
16973 (decode_mode_spec): Adjust for the new code-conversion API.
16974
16975 * xfaces.c: Include "character.h" instead of "charset.h".
16976 (load_face_font): Adjust for the change of choose_face_font and
16977 FS_LOAD_FONT.
16978 (generate_ascii_font): New function.
16979 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16980 (set_font_frame_param): Adjust for the change of choose_face_font.
16981 (free_realized_face): Make it public.
16982 (free_realized_faces_for_fontset): Rename from
16983 free_realized_multibyte_face. Free also faces realized for ASCII.
16984 (choose_face_font): Change arguments. Adjust for the change of
16985 fontset_font_pattern and FS_LOAD_FONT.
16986
16987 * xfns.c: Include "character.h".
16988 (x_encode_text): Adjust for the new code-conversion API.
16989
16990 * xselect.c: Don't include "charset.h".
16991 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16992
16993 * xterm.c: Include "character.h".
16994 (x_encode_char): New argument CHARSET. Change caller.
16995 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16996 Call ENCODE_CHAR instead of SPLIT_CHAR.
16997 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16998 CHAR_WIDTH instead of CHARSET_WIDTH.
16999 (XTread_socket): Adjust for the new code-conversion API.
17000 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17001 (x_load_font): Adjust for the change of struct font.
17002
170032008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17004
17005 * xfaces.c (face_at_buffer_position): Remove unused vars.
17006
170072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17008
17009 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17010 Fix overflow checking.
17011
170122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17013
17014 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17015 Cancel previous change.
17016
170172008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17018
17019 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17020 ccl->eight_bit_control. Fix check for buffer overflow.
17021 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17022 (ccl_driver): Initialize extra_bytes to 0.
17023
170242008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17025
17026 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17027 return it ORed with ctrl_modifier.
17028
170292008-01-29 Miles Bader <miles@gnu.org>
17030
17031 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17032
170332008-01-28 Jason Rumney <jasonr@gnu.org>
17034
17035 * w32.c (stat): Don't double check for networked drive.
17036
170372008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17038
17039 * window.c (run_window_configuration_change_hook): New function.
17040 Code extracted from set_window_buffer. Set the selected frame.
17041 (set_window_buffer): Use it.
17042 * window.h (run_window_configuration_change_hook): Declare.
17043 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17044
17045 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17046
170472008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17048
17049 * Makefile.in: Remove references to unused macros.
17050
170512008-01-26 Eli Zaretskii <eliz@gnu.org>
17052
17053 * w32.c (g_b_init_get_sid_sub_authority)
17054 (g_b_init_get_sid_sub_authority_count): New static variables.
17055 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17056 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17057 (init_user_info): Use them to retrieve uid and gid.
17058 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17059 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17060 st_uid and st_gid of the file.
17061
170622008-01-26 Jason Rumney <jasonr@gnu.org>
17063
17064 * w32.c (logon_network_drive): New function.
17065 (stat): Use it.
17066
170672008-01-26 Chong Yidong <cyd@stupidchicken.com>
17068
17069 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17070 invisible text covered with an ellipsis.
17071
170722008-01-25 Richard Stallman <rms@gnu.org>
17073
17074 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17075 jump back to beginning. Move some other initializations after that.
17076 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17077 New variables.
17078 (syms_of_xdisp): Init them.
17079
17080 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17081
17082 * buffer.c (reset_buffer_local_variables):
17083 Implement `permanent-local-hook'.
17084 (Qpermanent_local_hook): New variable.
17085 (syms_of_buffer): Init and staticpro it.
17086
170872008-01-25 Michael Albinus <michael.albinus@gmx.de>
17088
17089 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17090
170912008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17092
17093 * fns.c (Fclrhash): Return TABLE.
17094
170952008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17096
17097 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17098 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17099 is set even without positional changes.
17100 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17101
17102 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17103
171042008-01-23 Jason Rumney <jasonr@gnu.org>
17105
17106 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17107
17108 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17109 the unicode range available in MULE by locale-coding-system.
17110 Improve dbcs lead byte detection. Set event timestamp and modifiers
17111 earlier.
17112
171132008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17114
17115 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17116 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17117 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17118 when used on child processes.
17119
171202008-01-21 Michael Albinus <michael.albinus@gmx.de>
17121
17122 * dbusbind.c (Fdbus_method_return_internal): Rename from
17123 Fdbus_method_return.
17124 (Fdbus_unregister_object): Move to dbus.el.
17125 (Fdbus_call_method, Fdbus_method_return_internal)
17126 (Fdbus_send_signal): Improve debug messages.
17127
171282008-01-20 Martin Rudalics <rudalics@gmx.at>
17129
17130 * undo.c (undo_inhibit_record_point): New variable.
17131 (syms_of_undo): Initialize it.
17132 (record_point): Don't record point when undo_inhibit_record_point
17133 is set.
17134
171352008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17136
17137 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17138
17139 * xdisp.c (Qauto_hscroll_mode): New var.
17140 (syms_of_xdisp): Initialize it.
17141 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17142 window's buffer.
17143 (hscroll_windows): Don't check automatic_hscrolling_p here.
17144
17145 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17146 vscroll if we're setting window-buffer to the value it already has.
17147
171482008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17149
17150 * m/intel386.h: Remove references to XENIX.
17151
171522008-01-17 Andreas Schwab <schwab@suse.de>
17153
17154 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17155 instead of HAVE_X86_64_LIB64_DIR.
17156 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17157
171582008-01-17 Glenn Morris <rgm@gnu.org>
17159
17160 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17161 to HAVE_X86_64_LIB64_DIR.
17162
171632008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17164
17165 * s/irix3-3.h:
17166 * s/irix4-0.h:
17167 * s/386-ix.h:
17168 * s/domain.h:
17169 * s/hpux9-x11r4.h:
17170 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17171
17172 * sysdep.c: Remove code containing references to symbols defined
17173 by unsupported systems.
17174
171752008-01-16 Glenn Morris <rgm@gnu.org>
17176
17177 * coding.c (select-safe-coding-system-function): Doc fix.
17178
171792008-01-15 Glenn Morris <rgm@gnu.org>
17180
17181 * config.in: Revert 2008-01-13 change: this is a generated file.
17182
171832008-01-13 Tom Tromey <tromey@redhat.com>
17184
17185 * lisp.h: Fix typo.
17186
171872008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17188
17189 * m/sequent-ptx.h:
17190 * m/sequent.h:
17191 * s/ptx.h:
17192 * s/ptx4-2.h:
17193 * s/ptx4.h: Remove files for systems no longer supported.
17194
17195 * callproc.c (Fcall_process): Fix previous change.
17196
171972008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17198
17199 * unexsunos4.c: Remove file, system not supported anymore.
17200
17201 * m/mips.h:
17202 * m/intel386.h:
17203 * callproc.c:
17204 * config.in:
17205 * ecrt0.c:
17206 * emacs.c:
17207 * fileio.c:
17208 * frame.c:
17209 * getpagesize.h:
17210 * keyboard.c:
17211 * lread.c:
17212 * process.c:
17213 * puresize.h:
17214 * sysdep.c:
17215 * systty.h:
17216 * syswait.h:
17217 * unexec.c:
17218 * xdisp.c:
17219 * alloc.c: Remove code containing references to symbols defined by
17220 unsupported systems.
17221
172222008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17223
17224 * coding.c (detect_coding_mask): Fix previous change.
17225
172262008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17227
17228 * coding.c (detect_coding_iso2022): New arg
17229 latin_extra_code_state. Allow Latin extra codes only
17230 when *latin_extra_code_state is nonzero.
17231 (detect_coding_mask): If there is a NULL byte, detect the encoding
17232 as UTF-16 or binary. If Latin extra codes exist, detect the
17233 encoding as ISO-2022 only when there's no other proper encoding is
17234 found.
17235
172362008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17237
17238 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17239 #ifdef MAC_OS.
17240
172412008-01-08 Richard Stallman <rms@gnu.org>
17242
17243 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17244
172452008-01-06 Nick Roberts <nickrob@snap.net.nz>
17246
17247 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17248 menu bar in parentheses.
17249
172502008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17251
17252 * m/7300.h:
17253 * m/acorn.h:
17254 * m/alliant-2800.h:
17255 * m/alliant.h:
17256 * m/alliant1.h:
17257 * m/alliant4.h:
17258 * m/altos.h:
17259 * m/amdahl.h:
17260 * m/apollo.h:
17261 * m/att3b.h:
17262 * m/aviion-intel.h:
17263 * m/aviion.h:
17264 * m/celerity.h:
17265 * m/clipper.h:
17266 * m/cnvrgnt.h:
17267 * m/convex.h:
17268 * m/cydra5.h:
17269 * m/delta88k.h:
17270 * m/dpx2.h:
17271 * m/dual.h:
17272 * m/elxsi.h:
17273 * m/f301.h:
17274 * m/gould-np1.h:
17275 * m/gould.h:
17276 * m/i860.h:
17277 * m/ibmps2-aix.h:
17278 * m/ibmrt-aix.h:
17279 * m/ibmrt.h:
17280 * m/irist.h:
17281 * m/is386.h:
17282 * m/isi-ov.h:
17283 * m/mega68.h:
17284 * m/mg1.h:
17285 * m/news-r6.h:
17286 * m/news-risc.h:
17287 * m/news.h:
17288 * m/nh3000.h:
17289 * m/nh4000.h:
17290 * m/ns16000.h:
17291 * m/ns32000.h:
17292 * m/nu.h:
17293 * m/orion.h:
17294 * m/orion105.h:
17295 * m/paragon.h:
17296 * m/pfa50.h:
17297 * m/plexus.h:
17298 * m/pyramid.h:
17299 * m/pyrmips.h:
17300 * m/sh3el.h:
17301 * m/sps7.h:
17302 * m/sr2k.h:
17303 * m/stride.h:
17304 * m/sun1.h:
17305 * m/sun2.h:
17306 * m/sun3-68881.h:
17307 * m/sun3-fpa.h:
17308 * m/sun3-soft.h:
17309 * m/sun3.h:
17310 * m/sun386.h:
17311 * m/symmetry.h:
17312 * m/tad68k.h:
17313 * m/tahoe.h:
17314 * m/targon31.h:
17315 * m/tek4300.h:
17316 * m/tekxd88.h:
17317 * m/tower32.h:
17318 * m/tower32v3.h:
17319 * m/ustation.h:
17320 * m/wicat.h:
17321 * m/xps100.h:
17322 * s/cxux.h:
17323 * s/cxux7.h:
17324 * s/dgux.h:
17325 * s/dgux4.h:
17326 * s/dgux5-4-3.h:
17327 * s/dgux5-4r2.h:
17328 * s/esix.h:
17329 * s/esix5r4.h:
17330 * s/hiuxmpp.h:
17331 * s/hiuxwe2.h:
17332 * s/iris3-5.h:
17333 * s/iris3-6.h:
17334 * s/isc2-2.h:
17335 * s/isc3-0.h:
17336 * s/isc4-0.h:
17337 * s/isc4-1.h:
17338 * s/newsos5.h:
17339 * s/newsos6.h:
17340 * s/osf1.h:
17341 * s/osf5-0.h:
17342 * s/riscix1-1.h:
17343 * s/riscix12.h:
17344 * s/sco4.h:
17345 * s/sco5.h:
17346 * s/sunos4-0.h:
17347 * s/sunos4-1.h:
17348 * s/sunos413.h:
17349 * s/sunos4shr.h:
17350 * s/umax.h:
17351 * s/unipl5-2.h:
17352 * s/xenix.h:
17353 * cxux-crt0.s:
17354 * unexapollo.c:
17355 * unexconvex.c:
17356 * unexenix.c:
17357 * unexsni.c: Remove files for systems no longer supported.
17358
17359 * m/intel386.h: Remove references to unsupported systems.
17360
17361 * w32.c (get_emacs_configuration): Remove reference to i860.
17362
17363 * sysdep.c: Remove dead code.
17364
173652008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17366
17367 * s/rtu.h:
17368 * m/masscomp.h: Remove files. Platform is obsolete.
17369
173702008-01-04 Michael Albinus <michael.albinus@gmx.de>
17371
17372 * dbusbind.c (Fdbus_method_return): New function.
17373 (xd_read_message): Add the serial number to the event.
17374 (Fdbus_register_method): Activate the function.
17375
173762008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17377
17378 * keyboard.c (read_key_sequence): Fix typo.
17379
173802008-01-03 Michael Albinus <michael.albinus@gmx.de>
17381
17382 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17383 (xd_signature, xd_append_arg): Handle element type detection for
17384 empty arrays.
17385 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17386 SDATA () calls; this must be solved more general.
17387 (Fdbus_register_signal): Use SBYTES instead of strlen.
17388
173892008-01-03 Magnus Henoch <magnus@zemdatav>
17390
17391 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17392 unsigned int for byte values (necessary for big-endian platform).
17393 (Fdbus_call_method): Handle the case of no returned arguments.
17394
173952007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17396
17397 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17398
173992007-12-31 Magnus Henoch <mange@freemail.hu>
17400
17401 * dbusbind.c (xd_signature): Signature of variant is just "v".
17402
174032007-12-30 Michael Albinus <michael.albinus@gmx.de>
17404
17405 * dbusbind.c: Fix several errors and compiler warnings.
17406 Reported by Tom Tromey <tromey@redhat.com>.
17407 (XD_ERROR, XD_DEBUG_MESSAGE)
17408 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17409 (xd_append_arg): Part for basic D-Bus types rewritten.
17410 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17411 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17412 appropriate.
17413 (xd_read_message): Return Qnil. Don't signal an error; it is not
17414 useful during event reading.
17415 (Fdbus_register_signal): Signal an error if the check for
17416 FUNCTIONP fails.
17417 (Fdbus_register_method): New function. The implementation is not
17418 complete, the call of the function signals an error therefore.
17419 (Fdbus_unregister_object): New function, renamed from
17420 Fdbus_unregister_signal. The initial check signals an error, if
17421 the object is not well formed.
17422
174232007-12-30 Richard Stallman <rms@gnu.org>
17424
17425 * textprop.c (get_char_property_and_overlay):
17426 Signal error if POSITION is out of range in a buffer.
17427
174282007-12-29 Martin Rudalics <rudalics@gmx.at>
17429
17430 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17431 because the original parameters are in pure storage now.
17432
174332007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17434
17435 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17436
174372007-12-22 Eli Zaretskii <eliz@gnu.org>
17438
17439 * callint.c (syms_of_callint) <command-history>: Add reference to
17440 history-length in the doc string.
17441
174422007-12-17 Jason Rumney <jasonr@gnu.org>
17443
17444 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17445 before passing as wParam.
17446
174472007-12-22 Michael Albinus <michael.albinus@gmx.de>
17448
17449 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17450 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17451 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17452 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17453 as number.
17454 (Fdbus_call_method): Fix docstring.
17455
174562007-12-21 Michael Albinus <michael.albinus@gmx.de>
17457
17458 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17459 New macros.
17460 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17461 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17462 Simplify.
17463 (xd_signature): New function.
17464 (xd_append_arg): Compute also signatures. Major rewrite.
17465 (xd_retrieve_arg): Make debug messages friendly.
17466 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17467 Check for signatures of arguments.
17468
174692007-12-19 Michael Albinus <michael.albinus@gmx.de>
17470
17471 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17472 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17473 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17474 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17475 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17476 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17477 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17478 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17479 (xd_retrieve_value): Remove. Functionality included in ...
17480 (xd_append_arg): New function.
17481 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17482
174832007-12-16 Michael Albinus <michael.albinus@gmx.de>
17484
17485 * dbusbind.c (top): Include <stdio.h>.
17486 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17487 dbus_message_new_method_call and dbus_message_new_signal.
17488 (Fdbus_register_signal): Rename unique_name to uname.
17489 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17490 non-existing unique name. Fix typos in matching rule. Return an
17491 object which is useful in Fdbus_unregister_signal.
17492 (Fdbus_unregister_signal): Reimplementation, in order to remove
17493 only the corresponding entry.
17494 (Vdbus_registered_functions_table): Change the order of entries.
17495 Apply these changes in xd_read_message and Fdbus_register_signal.
17496
174972007-12-16 Andreas Schwab <schwab@suse.de>
17498
17499 * fileio.c (Finsert_file_contents): Fix overflow check to not
17500 depend on undefined integer overflow.
17501
175022007-12-14 Jason Rumney <jasonr@gnu.org>
17503
17504 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17505 for characters above 127.
17506
175072007-12-13 Jason Rumney <jasonr@gnu.org>
17508
17509 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17510 before dereferencing array.
17511 (lookup_vk_code): Remove zero comparison.
17512
175132007-12-14 Michael Albinus <michael.albinus@gmx.de>
17514
17515 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17516 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17517 Use `unsigned int' instead of `uint'.
17518 (xd_read_message, Fdbus_register_signal): Split expressions into
17519 multiple lines before operators "&&" and "||", according to the
17520 GNU Coding Standards.
17521
175222007-12-14 Eli Zaretskii <eliz@gnu.org>
17523
17524 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17525
175262007-12-12 Juri Linkov <juri@jurta.org>
17527
17528 * buffer.c (Frename_buffer): In interactive spec replace
17529 `read-buffer' with `read-string' that uses `buffer-name-history'
17530 as history, and the current buffer's name as default.
17531
175322007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17533
17534 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17535 manipulating the backtrace manually.
17536 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17537 (struct backtrace, backtrace_list): Remove.
17538 (command_loop_1): Remove dead var `no_direct'.
17539
17540 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17541 preserve non-built-in buffer-local variables.
17542 (Fkill_all_local_variables): Don't re-create&re-set permanent
17543 buffer-local variables.
17544
175452007-12-09 Juri Linkov <juri@jurta.org>
17546
17547 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17548 Lisp code that uses `read-buffer' with current buffer as default.
17549
175502007-12-08 Michael Albinus <michael.albinus@gmx.de>
17551
17552 * dbusbind.c (xd_read_message): Generate an event for every
17553 registered handler. There might be several handlers registered
17554 for the same signal.
17555 (Fdbus_register_signal): Don't overwrite a registration for the
17556 same signal. Add a new registration if handlers are different.
17557 (Vdbus_registered_functions_table): Rework doc string.
17558
175592007-12-07 Michael Albinus <michael.albinus@gmx.de>
17560
17561 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17562 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17563 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17564 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17565 Unify argument lists.
17566 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17567 arguments and hash table keys. Use unique name for service.
17568 (Fdbus_unregister_signal): Remove checks.
17569 (Vdbus_registered_functions_table): Fix doc string.
17570
175712007-12-05 Magnus Henoch <mange@freemail.hu>
17572
17573 * process.c (make_process): Initialize pty_flag to 0.
17574
175752007-12-05 Jason Rumney <jasonr@gnu.org>
17576
17577 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17578 specified XBMs.
17579
175802007-12-05 Richard Stallman <rms@gnu.org>
17581
17582 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17583
175842007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17585
17586 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17587 New variable.
17588 (mac_try_close_socket) [MAC_OSX]: New function.
17589 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17590 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17591
17592 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17593 Use mac_try_close_socket.
17594
175952007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17596
17597 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17598 reloc_base.
17599 (copy_dysymtab): Compute relocation base here.
17600 (rebase_reloc_address) [__ppc64__]: New function.
17601 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17602 changed.
17603
176042007-12-05 Jason Rumney <jasonr@gnu.org>
17605
17606 * w32proc.c (sys_spawnve): Quote args with wildcards.
17607
176082007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17609
17610 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17611 __objc_* sections.
17612 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17613
176142007-12-05 Michael Albinus <michael.albinus@gmx.de>
17615
17616 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17617 Move check for Vdbus_registered_functions_table to
17618 xd_read_queued_messages.
17619 (xd_read_queued_messages): Protect xd_read_message calls by
17620 internal_condition_case_1.
17621
176222007-12-04 Michael Albinus <michael.albinus@gmx.de>
17623
17624 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17625 Qdbus_system_bus and Qdbus_session_bus, respectively.
17626 (Vdbus_intern_symbols): Remove.
17627 (Vdbus_registered_functions_table): New hash table.
17628 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17629 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17630 Rewrite in order to manage registered functions by hash table
17631 Vdbus_registered_functions_table.
17632
176332007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17634
17635 * xterm.c: Update URL to Window Manager Specification in comment.
17636
176372007-12-02 Michael Albinus <michael.albinus@gmx.de>
17638
17639 * config.in (HAVE_DBUS): Add.
17640
17641 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17642 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17643 (obj): Add $(DBUS_OBJ).
17644 (LIBES): Add $(DBUS_LIBS).
17645 (dbusbind.o): New target.
17646
17647 * dbusbind.c: New file.
17648
17649 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17650
17651 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17652 (Qdbus_event): New Lisp symbol.
17653 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17654 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17655 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17656
17657 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17658
176592007-12-01 Richard Stallman <rms@gnu.org>
17660
17661 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17662
176632007-11-30 Jason Rumney <jasonr@gnu.org>
17664
17665 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17666 (w32con_reset_terminal_modes): Clear screen buffer.
17667 (w32_face_attributes): Don't use color indexes that are out of range.
17668 Only reverse the default colors.
17669
17670 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17671 WINDOWSNT.
17672
17673 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17674
176752007-11-29 Jason Rumney <jasonr@gnu.org>
17676
17677 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17678 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17679 if the terminal colors are initialized.
17680 (unspecified_fg, unspecified_bg): Remove unused declarations.
17681
176822007-11-29 Andreas Schwab <schwab@suse.de>
17683
17684 * keyboard.c (apply_modifiers): Fix typo.
17685
176862007-11-29 Richard Stallman <rms@gnu.org>
17687
17688 * keymap.c (Fcurrent_local_map): Doc fix.
17689
176902007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17691
17692 * s/gnu-kfreebsd.h: New file.
17693
176942007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17695
17696 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17697 Don't cast redundantly.
17698
17699 * keyboard.c (KEY_TO_CHAR): New macro.
17700 (parse_modifiers, apply_modifiers): Accept integer arguments.
17701 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17702 for chars and symbol keys.
17703 After doing such remapping, apply function-key-map again.
17704
177052007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17706
17707 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17708 compiled anymore.
17709
177102007-11-26 Andreas Schwab <schwab@suse.de>
17711
17712 * process.c (list_processes_1): Fix indentation level of the
17713 command column.
17714
177152007-11-23 Andreas Schwab <schwab@suse.de>
17716
17717 * editfns.c (Fformat): Handle %c specially since it requires the
17718 argument to be of type int.
17719
177202007-11-23 Markus Triska <markus.triska@gmx.at>
17721
17722 * emacs.c (main): Call init_editfns before init_process, since
17723 init_process sets Vprocess_connection_type depending on OS release.
17724
177252007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17726
17727 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17728 (find_symbol_value): Use do_symval_forwarding.
17729
17730 * data.c (set_internal): Set the value in the `cons-cell' (for
17731 Buffer_Local_values) not only for frame-local variables.
17732
177332007-11-22 Andreas Schwab <schwab@suse.de>
17734
17735 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17736 values to sprintf.
17737 * keymap.c (Fsingle_key_description): Likewise.
17738 * print.c (print_object): Likewise.
17739
177402007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17741
17742 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17743 file for image is nil.
17744
177452007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17746
17747 * term.c: Include stdarg.h.
17748 (fatal): Implement using varargs.
17749 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17750
177512007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17752
17753 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17754 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17755 Update call to buffer_slot_type_mismatch.
17756 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17757 (buffer_slot_type_mismatch): Update.
17758 * buffer.c (buffer_local_types): Remove.
17759 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17760 (defvar_per_buffer): Set the type in the buffer_objfwd.
17761
177622007-11-21 Jason Rumney <jasonr@gnu.org>
17763
17764 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17765 CreateFileMapping returns NULL on failure.
17766
177672007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17768
17769 * search.c (Fset_match_data): Remove the `evaporate' feature.
17770 (unwind_set_match_data): Don't use the `evaporate' feature.
17771
177722007-11-21 Jason Rumney <jasonr@gnu.org>
17773
17774 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17775
17776 * w32console.c (w32con_write_glyphs): Remove unused variables.
17777
177782007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17779
17780 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17781
17782 * s/darwin.h (MULTI_KBOARD): Remove.
17783
17784 * macfns.c (x_create_tip_frame, Fx_create_frame)
17785 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17786
177872007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17788
17789 * buffer.c (Fbuffer_local_value): Remove redundant test.
17790 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17791 than in `current-buffer' to match the comment.
17792 Do the swap using swap_in_global_binding.
17793
17794 * data.c (store_symval_forwarding, set_internal):
17795 * eval.c (specbind): Remove dead code.
17796
17797 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17798 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17799 Since we do not want to see internal Lisp_*fwd objects here.
17800
178012007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17802
17803 * sysdep.c (init_system_name): Use getaddrinfo if available.
17804
17805 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17806 (x_scroll_bar_note_movement): start, end, with, height in struct
17807 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17808
178092007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17810
17811 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17812
178132007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17814
17815 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17816 This undoes Richard's change of 14-Oct-2002.
17817
17818 * alloc.c (allocate_other_vector):
17819 * lisp.h (allocate_other_vector): Remove.
17820
17821 * window.c (struct save_window_data): Move non-lisp data to the end
17822 and make it `int' rather than Lisp_Object.
17823 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17824 Done wrap/unwrap integer values.
17825 (Fset_window_configuration, compare_window_configurations):
17826 Update use of fields to their new types.
17827
17828 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17829 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17830 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17831 (SET_SCROLL_BAR_X_WINDOW): Remove.
17832 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17833 Access the new x_window field directly.
17834 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17835 Don't wrap/unwrap integers into Lisp_Objects.
17836 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17837 (x_scroll_bar_report_motion):
17838 Don't wrap/unwrap integers into Lisp_Objects.
17839 (x_term_init): Use SDATA.
17840 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17841 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17842 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17843 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17844 * xfns.c (x_set_background_color):
17845 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17846 Access the new x_window field directly.
17847
17848 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17849 (allocate_pseudovector): Make non-static.
17850
17851 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17852 (allocate_pseudovector): Declare.
17853 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17854
178552007-11-15 Andreas Schwab <schwab@suse.de>
17856
17857 * editfns.c (Fformat): Correctly format EMACS_INT values.
17858 Also take precision into account when formatting an integer.
17859
17860 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17861
178622007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17863
17864 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17865 (syms_of_keyboard): Defsubr it.
17866
17867 * data.c (swap_in_global_binding): Fix longstanding bug where
17868 store_symval_forwarding was not called with the right second argument,
17869 thus causing objfwd-ing from being dropped.
17870
178712007-11-14 Juanma Barranquero <lekktu@gmail.com>
17872
17873 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17874 (Fx_display_pixel_height, Fx_display_planes)
17875 (Fx_display_color_cells, Fx_server_max_request_size)
17876 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17877 (Fx_display_visual_class, Fx_display_save_under):
17878 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17879 (Fx_display_pixel_height, Fx_display_planes)
17880 (Fx_display_color_cells, Fx_server_max_request_size)
17881 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17882 (Fx_display_mm_height, Fx_display_mm_width)
17883 (Fx_display_backing_store, Fx_display_visual_class)
17884 (Fw32_select_font, Fx_display_save_under):
17885 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17886 (Fx_display_pixel_height, Fx_display_planes)
17887 (Fx_display_color_cells, Fx_server_max_request_size)
17888 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17889 (Fx_display_save_under): Fix typos in docstrings.
17890
178912007-11-14 Juanma Barranquero <lekktu@gmail.com>
17892
17893 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17894 corresponding to deleted entries; they are an implementation detail.
17895 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17896 Remove variables.
17897 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17898 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17899 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17900 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17901 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17902 (Fw32_define_rgb_color, Fw32_load_color_file)
17903 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17904 Fix typos in docstrings.
17905 (Fx_server_version): Reflow docstring.
17906 (Fw32_shell_execute): Doc fixes.
17907
179082007-11-13 Juanma Barranquero <lekktu@gmail.com>
17909
17910 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17911 if w32_parse_hot_key returned nil.
17912
179132007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17914
17915 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17916
179172007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17918
aac0c6e3
MR
17919 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17920
17921 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17922
17923 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17924 Remove W32_SCROLL_BAR_CLICK_EVENT.
17925
17926 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17927 Add MULTIMEDIA_KEY_EVENT.
17928
17929 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17930 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17931 (make_lispy_event) [WINDOWSNT]: Use it to translate
17932 MULTIMEDIA_KEY_EVENT.
17933
17934 * w32term.h (WM_APPCOMMAND): Define if not already.
17935 (GET_APPCOMMAND_LPARAM): Likewise.
17936
17937 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17938 WM_APPCOMMAND.
17939
17940 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17941 (syms_of_w32fns): Export and initialize it.
17942 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17943
179442007-11-09 Chong Yidong <cyd@stupidchicken.com>
17945
17946 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17947 twice.
17948
17949 * xdisp.c (handle_face_prop): Fix last change.
17950
179512007-11-09 Richard Stallman <rms@gnu.org>
17952
17953 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17954 not just for after-strings and before-strings.
17955 Call face_for_overlay_string and pass the overlay to it.
17956 (handle_display_prop): Determine whether property came from an overlay.
17957 Pass OVERLAY arg to handle_single_display_spec.
17958 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17959 (load_overlay_strings): Fill in it->string_overlays.
17960 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17961
17962 * xfaces.c (face_for_overlay_string): Function renamed from
17963 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17964
17965 * dispextern.h (struct it): New elt string_overlays.
17966 New elt from_overlay, also in stack.
17967 Rearrange a few elements.
17968 (face_for_overlay_string): Decl renamed from
17969 face_at_buffer_position_no_overlays, and add argument.
17970
179712007-11-09 Richard Stallman <rms@gnu.org>
17972
17973 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17974 to get the base face for an overlay string.
17975
17976 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17977
17978 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17979
17980 * xdisp.c (handle_stop): Move some code out of loop.
17981
179822007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17983
17984 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17985 Fix conversion from Lisp object to ATSUFontID.
17986
179872007-11-09 Jason Rumney <jasonr@gnu.org>
17988
17989 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17990
179912007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17992
17993 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17994 Don't assume regions are aligned to page boundary.
17995 (print_load_command_name): Add LC_UUID if defined.
17996
179972007-11-09 Richard Stallman <rms@gnu.org>
17998
17999 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18000
180012007-11-07 Jason Rumney <jasonr@gnu.org>
18002
18003 * s/windows95.h: Remove.
18004
180052007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18006
18007 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18008 abort with a message on unhandled store_type values.
18009
180102007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18011
18012 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18013 Remove HAVE_X11R5 and HAVE_X11R4.
18014
180152007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18016
18017 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18018
180192007-11-01 Johan Bockgård <bojohan@gnu.org>
18020
18021 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18022 Don't set s->stippled_p here, since it has already been set by
18023 x_set_glyph_string_gc from x_draw_glyph_string.
18024
180252007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18026
18027 * sunfns.c: Remove file.
18028
18029 * m/sun386.h:
18030 * m/sun2.h:
18031 * m/sparc.h: Remove Sun windows code.
18032
180332007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18034
18035 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18036 (init_keyboard): Set current_kboard's window-system to nil.
18037 (tty_read_avail_input): Typo.
18038 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18039
180402007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18041
18042 * s/usg5-4.h:
18043 * s/usg5-3.h:
18044 * s/ptx.h:
18045 * m/is386.h:
18046 * m/ibmps2-aix.h:
18047 * Makefile.in: Remove all mentions of X10.
18048
18049 * dispnew.c (syms_of_display): Don't mention version 10.
18050
180512007-10-28 Juanma Barranquero <lekktu@gmail.com>
18052
18053 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18054 ($(BLD)/abbrev.$(O)): Remove.
18055
180562007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18057
18058 Rewrite abbrev.c in Elisp.
18059 * image.c (Qcount): Don't declare as extern.
18060 (syms_of_image): Initialize and staticpro `Qcount'.
18061 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18062 * emacs.c (main): Don't call syms_of_abbrev.
18063 * Makefile.in (obj): Remove abbrev.o.
18064 (abbrev.o): Remove.
18065 * abbrev.c: Remove.
18066
180672007-10-26 Martin Rudalics <rudalics@gmx.at>
18068
18069 * window.c (window_min_size_2): Don't count header-line.
18070
180712007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18072
18073 * frame.h (struct frame): Move all bit fields after the first bit
18074 field to take advantage of the available space. Group all the
18075 chars together to reduce wasted space due to padding.
18076
180772007-10-26 Juanma Barranquero <lekktu@gmail.com>
18078
18079 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18080
18081 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18082 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18083 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18084 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18085 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18086 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18087 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18088 (last_marked, mark_object_loop_halt): Make static.
18089
18090 * frame.c (syms_of_frame) <delete-frame-functions>:
18091 Fix typo in docstring.
18092
180932007-10-25 Juanma Barranquero <lekktu@gmail.com>
18094
18095 * w32.c (init_environment): Fix tiny memory leak.
18096 (w32_get_resource): Remove unused variable `ok'.
18097
180982007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18099
18100 Make `window-system' into a keyboard-local variable (rather than
18101 frame-local as done originally by multi-tty).
18102
18103 * keyboard.h (struct kboard): Add Vwindow_system.
18104 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18105 (mark_kboards): Mark Vwindow_system.
18106
18107 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18108 (init_display): Don't set the obsolete `window-system' frame-param.
18109
18110 * xterm.c (x_term_init):
18111 * w32term.c (w32_create_terminal):
18112 * term.c (init_tty): Set Vwindow_system.
18113 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18114 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18115
18116 * xfns.c (Fx_create_frame, x_create_tip_frame):
18117 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18118 * macfns.c (Fx_create_frame):
18119 Don't set the obsolete `window-system' frame-param.
18120
18121 * frame.h (Qwindow_system): Remove.
18122 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18123 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18124
181252007-10-24 Richard Stallman <rms@gnu.org>
18126
18127 * frame.c (x_figure_window_size): For fullscreen case,
18128 set USPosition | PPosition without clobbering rest of window_prompting.
18129
18130 * keyboard.c (Fcurrent_idle_time): Doc fix.
18131
18132 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18133
181342007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18135
18136 * process.c (unwind_request_sigio): Only define if __ultrix__.
18137
18138 * callproc.c (child_setup): Remove spurious *.
18139
18140 * lisp.h (Fget_text_property): Declare.
18141 (have_menus_p): Declare it here rather than in sys-dep header files.
18142 * macterm.h (have_menus_p):
18143 * msdos.h (have_menus_p):
18144 * xterm.h (have_menus_p): Remove.
18145
18146 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18147 (Fmake_variable_frame_local): Just check the variable's const-ness
18148 rather than checking nil or t.
18149
181502007-10-22 Jason Rumney <jasonr@gnu.org>
18151
18152 * w32fns.c: Include math.h.
18153 (w32_abort): Declaration moved to nt/config.nt.
18154
18155 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18156 (abort): Redefinition moved to nt/config.nt.
18157
18158 * m/windowsnt.h: Remove.
18159
181602007-10-22 Juanma Barranquero <lekktu@gmail.com>
18161
18162 * emacs.c (Fdump_emacs): Fix typo in message.
18163 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18164 <installation-directory>: Reflow docstring.
18165
181662007-10-22 Juri Linkov <juri@jurta.org>
18167
18168 * minibuf.c: Allow minibuffer default to be a list of default values.
18169 With empty input use the first element of this list as returned default.
18170 (string_to_object)
18171 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18172 (read_minibuf): If defalt is cons, set histstring to its car.
18173 (Fread_string): If default_value is cons, set val to its car.
18174 (Fread_buffer): If def is cons, use its car.
18175 (Fcompleting_read): If defalt is cons, set val to its car.
18176
181772007-10-21 Michael Albinus <michael.albinus@gmx.de>
18178
18179 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18180
181812007-10-20 Juanma Barranquero <lekktu@gmail.com>
18182
18183 * doc.c (Fdocumentation): Check for advice in all cases.
18184
181852007-10-19 Chong Yidong <cyd@stupidchicken.com>
18186
18187 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18188
181892007-10-19 Richard Stallman <rms@gnu.org>
18190
18191 * doc.c (Fdocumentation): Check for and handle an advised function.
18192
181932007-10-19 Juanma Barranquero <lekktu@gmail.com>
18194
18195 * process.c (Fset_process_filter): Doc fix.
18196
181972007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18198
18199 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18200 which caused key-translation-map to applied repeatedly (thus breaking
18201 double-mode).
18202
182032007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18204
18205 * xselect.c (x_own_selection, x_handle_selection_clear)
18206 (x_clear_frame_selections):
18207 * w32menu.c (list_of_panes, list_of_items):
18208 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18209 * textprop.c (validate_plist, interval_has_all_properties)
18210 (interval_has_some_properties, interval_has_some_properties_list)
18211 (add_properties, text_property_list):
18212 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18213 * minibuf.c (Fassoc_string):
18214 * macselect.c (x_own_selection, x_clear_frame_selections)
18215 (Fx_disown_selection_internal):
18216 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18217 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18218
182192007-10-17 Chong Yidong <cyd@stupidchicken.com>
18220
18221 * process.c: Link to libs for calling res_init() if available.
18222 (Fmake_network_process): Call res_init() before getaddrinfo or
18223 gethostbyname, if possible.
18224
182252007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18226
18227 * lread.c (read1): Set pvectype for char_tables.
18228
18229 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18230 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18231 Add type checks.
18232 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18233
18234 * alloc.c (free_misc): Use XMISCTYPE.
18235 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18236
182372007-10-17 Glenn Morris <rgm@gnu.org>
18238
18239 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18240 (syms_of_minibuf): Add Qcompletion_ignore_case.
18241 * dired.c (Qcompletion_ignore_case): Change to external.
18242 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18243 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18244 (Fread_file_name): Use it rather than intern'ing.
18245
18246 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18247 (Fread_coding_system): Ignore case of user input.
18248
182492007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18250
18251 * xdisp.c (handle_display_prop): Ignore display specs after
18252 replacing one when string text is being replaced.
18253 (handle_single_display_spec): Pretend as if characters with display
18254 property haven't been consumed only when buffer text is being replaced.
18255
182562007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18257
18258 * xfns.c (Fx_create_frame, Fx_display_list):
18259 * window.c (window_fixed_size_p, enlarge_window)
18260 (shrink_window_lowest_first):
18261 * macterm.c (init_font_name_table):
18262 * macfns.c (Fx_create_frame, Fx_display_list):
18263 * lread.c (close_load_descs):
18264 * keyboard.c (read_char_x_menu_prompt):
18265 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18266 * coding.c (code_convert_region_unwind): Test the type of an object
18267 rather than just !NILP before extracting data from it.
18268
18269 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18270
18271 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18272 (XMISCANY): New macro.
18273 (XMISCTYPE): Use it.
18274 (struct Lisp_Misc_Any): New type.
18275 (union Lisp_Misc): Use it.
18276 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18277 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18278 (find_symbol_value, set_internal, default_value, Fset_default)
18279 (Fmake_variable_buffer_local, Fmake_local_variable)
18280 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18281 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18282 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18283 * alloc.c (allocate_buffer): Set the size and tag.
18284 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18285 Use XMISCANY.
18286 (die): Follow the GNU convention for error messages.
18287 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18288 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18289 tag any more.
18290 (set_buffer_internal_1):
18291 * frame.c (store_frame_param):
18292 * eval.c (specbind):
18293 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18294
18295 * doc.c (Fsnarf_documentation): Simplify.
18296
182972007-10-14 Juanma Barranquero <lekktu@gmail.com>
18298
18299 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18300 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18301
183022007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18303
18304 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18305
183062007-10-14 Juanma Barranquero <lekktu@gmail.com>
18307
18308 * eval.c (do_autoload): Don't save autoloads.
18309
18310 * data.c (Ffset): Save autoload of the function being set.
18311
183122007-10-07 John Paul Wallington <jpw@pobox.com>
18313
18314 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18315 parameter before setting up faces.
18316
183172007-10-13 Eli Zaretskii <eliz@gnu.org>
18318
18319 * ccl.c (Fregister_code_conversion_map):
18320 * keyboard.c (append_tool_bar_item): Reformat last change.
18321
18322 * lisp.h (eabs): Rename from `abs'. All callers changed.
18323
183242007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18325
18326 * buffer.c (add_overlay_mod_hooklist):
18327 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18328 * fontset.c (make_fontset):
18329 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18330 (append_tool_bar_item):
18331 * macmenu.c (grow_menu_items):
18332 * w32menu.c (grow_menu_items):
18333 * xmenu.c (grow_menu_items): Use larger_vector.
18334
183352007-10-13 Eli Zaretskii <eliz@gnu.org>
18336
18337 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18338 selected frame'' on MSDOS).
18339
183402007-10-12 Martin Rudalics <rudalics@gmx.at>
18341
18342 * frame.c (Qexplicit_name): New variable.
18343 (x_report_frame_params): Report it in parameter alist.
18344 (syms_of_frame): Intern and staticpro it.
18345
183462007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18347
18348 * macfns.c (x_create_tip_frame): Set terminal for frame.
18349
183502007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18351
18352 * frame.c (Qenvironment): Remove.
18353 (syms_of_frame) <Qenvironment>: Don't initialize.
18354 (Fdelete_frame): Don't treat the `environment' param specially.
18355 * frame.h (Qenvironment): Don't declare.
18356 * callproc.c (set_initial_environment): Don't set unused frame param.
18357
18358 * frame.c (Fframe_with_environment): Remove.
18359 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18360
18361 * lisp.h (Fframe_with_environment): Don't declare.
18362
183632007-10-10 Juanma Barranquero <lekktu@gmail.com>
18364
18365 * indent.c (indent_tabs_mode, last_known_column)
18366 (last_known_column_modified): Make static.
18367 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18368
183692007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18370
18371 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18372
183732007-10-09 Jason Rumney <jasonr@gnu.org>
18374
18375 * w32term.c (x_set_window_size): Disable code that attempts to tell
18376 Lisp code about a size change before it actually happens.
18377
183782007-10-09 Richard Stallman <rms@gnu.org>
18379
18380 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18381 return HANDLED_RETURN.
18382
183832007-10-08 Martin Rudalics <rudalics@gmx.at>
18384
18385 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18386 when there's an unread command event.
18387
18388 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18389 window autoselection act appropriately when leaving selected frame.
18390 (syms_of_frame): Initialize focus_follows_mouse.
18391 * frame.h (focus_follows_mouse): Extern it.
18392 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18393 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18394 * msdos.c (dos_rawgetc): Likewise.
18395 * w32term.c (w32_read_socket): Likewise.
18396 * xterm.c (handle_one_xevent): Likewise.
18397 * xdisp.c (syms_of_xdisp): In doc-string of
18398 mouse-autoselect-window mention focus-follows-mouse.
18399
184002007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18401
18402 * macterm.c (mac_load_query_font): Fix missing return value.
18403 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18404 Add BLOCK_INPUT.
18405
184062007-10-08 Richard Stallman <rms@gnu.org>
18407
18408 * xdisp.c (get_window_cursor_type): Implement documented behavior
18409 for cursor-in-non-selected-windows = t.
18410
184112007-10-08 Jason Rumney <jasonr@gnu.org>
18412
18413 * w32.c (w32_get_resource): Always close registry keys.
18414
184152007-10-08 Jason Rumney <jasonr@gnu.org>
18416
18417 * makefile.w32-in (LIBS): Add COMCTL32.
18418
18419 * w32fns.c (globals_of_w32fns): Init common controls.
18420
184212007-10-08 Richard Stallman <rms@gnu.org>
18422
18423 * image.c (our_memory_buffer): Rename from omfib_buffer.
18424
184252007-10-08 Richard Stallman <rms@gnu.org>
18426
18427 * buffer.c (Foverlays_at): Doc fix.
18428
184292007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18430
18431 * fns.c (Fplist_put): Preserve uneven tail data.
18432
184332007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18434
18435 * termhooks.h (enum event_kind): Remove trailing comma.
18436
18437 * frame.h (enum): Remove trailing comma.
18438
184392007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18440
18441 * w32proc.c (delete_child): Don't terminate threads of zombies.
18442
184432007-10-08 Martin Rudalics <rudalics@gmx.at>
18444
18445 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18446
18447 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18448 last-repeatable-command.
18449 (init_kboard): Initialize Vlast_repeatable_command.
18450 (command_loop_1): Set it to real_this_command unless that was
18451 bound to an input event.
18452 (mark_kboards): Mark it.
18453
184542007-10-08 Richard Stallman <rms@gnu.org>
18455
18456 * eval.c (condition-case): Doc fix.
18457
184582007-10-08 Masatake YAMATO <jet@gyve.org>
18459
18460 * xfaces.c (tty_supports_face_attributes_p): Fix code
18461 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18462 was copied and not edited.
18463
184642007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18465
18466 Add new `input-decode-map' keymap and use it for terminal
18467 escape sequences.
18468 * keyboard.h (struct kboard): Add Vinput_decode_map.
18469 Remove Vlocal_key_translation_map.
18470 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18471 (init_kboard): Init input-decode-map.
18472 Replace local-key-translation-map back with key-translation-map.
18473 (syms_of_keyboard): Declare input-decode-map.
18474 Remove local-key-translation-map. Update docstrings.
18475 (mark_kboards): Mark Vinput_decode_map.
18476 Don't mark Vlocal_key_translation_map.
18477 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18478 Replace local-key-translation-map back with key-translation-map.
18479 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18480 Bind in input-decode-map rather than function-key-map.
18481
18482 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18483 This was made redundant by the previous introduction of XSETPVECTYPE.
18484
184852007-10-09 Richard Stallman <rms@gnu.org>
18486
18487 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18488
184892007-09-29 Richard Stallman <rms@gnu.org>
18490
18491 * eval.c (internal_condition_case_2, internal_condition_case_1)
18492 (internal_condition_case): Reenable abort if x_catching_errors ()
18493 to see if that really happens and why.
18494
184952007-10-06 Andreas Schwab <schwab@suse.de>
18496
18497 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18498
184992007-10-04 Juanma Barranquero <lekktu@gmail.com>
18500
18501 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18502
185032007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18504
18505 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18506
185072007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18508
18509 * window.h (struct window):
18510 * window.c (struct save_window_data, struct saved_window):
18511 * termhooks.h (struct terminal):
18512 * process.h (struct Lisp_Process):
18513 * frame.h (struct frame):
18514 * buffer.h (struct buffer):
18515 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18516 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18517 The size field of (pseudo)vectors is now unsigned.
18518 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18519
18520 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18521 Turn `count' into an integer.
18522
18523 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18524 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18525 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18526 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18527 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18528
18529 * alloc.c (allocate_pseudovector): New fun.
18530 (ALLOCATE_PSEUDOVECTOR): New macro.
18531 (allocate_window, allocate_terminal, allocate_frame)
18532 (allocate_process): Use it.
18533 (mark_vectorlike): New function.
18534 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18535 (mark_terminals): Use it.
18536 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18537 (Fmake_byte_code): Use XSETPVECTYPE.
18538
18539 * frame.c (Fframe_parameters): Minor simplification.
18540
18541 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18542
18543 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18544
18545 * buffer.c (Fget_buffer_create, init_buffer_once):
18546 * lread.c (defsubr):
18547 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18548
18549 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18550 defined differently in the m/*.h files.
18551 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18552 (XSETPVECTYPE): New macro.
18553 (XSETPSEUDOVECTOR): Use it.
18554
18555 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18556 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18557
18558 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18559 * lread.c (defvar_per_buffer):
18560 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18561
18562 * window.c (candidate_window_p): Only consider as visible frames that
18563 are on the same terminal.
18564
18565 * m/ibms390x.h (MARKBIT): Remove unused macro.
18566
185672007-10-01 Juanma Barranquero <lekktu@gmail.com>
18568
18569 * lread.c (Fload): Fix typo in docstring.
18570
185712007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18572
18573 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18574 of a non-zero value can't yield zero.
18575
185762007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18577
18578 * term.c (term_clear_mouse_face, term_mouse_highlight)
18579 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18580
18581 * print.c (safe_debug_print): Use XHASH.
18582
18583 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18584 Lisp elements such as tags.
18585 (XHASH): New macro.
18586 (EQ): Use it.
18587 (SREF, SSET, STRING_COPYIN): Use SDATA.
18588 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18589
18590 * alloc.c (mark_terminal): Remove left-over declaration.
18591 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18592 (allocate_vectorlike): Remove type argument. Adjust callers.
18593 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18594 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18595
18596 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18597 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18598 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18599 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18600 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18601 Use them.
18602
18603 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18604 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18605 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18606
186072007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18608
18609 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18610 loaded by default.
18611
186122007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18613
18614 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18615 on this tty.
18616 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18617
18618 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18619 Update all users.
18620 (handle_one_term_event): Use Gpm_DrawPointer.
18621 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18622 Signal errors instead of returning nil. Always return nil.
18623 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18624 Make it a noop if gpm-mouse was not activated.
18625 (syms_of_term): Update names.
18626
186272007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18628
18629 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18630 (init_sys_modes): Check that gpm_tty is the current tty.
18631
18632 * alloc.c (allocate_terminal): Set the vector size to only count the
18633 lisp fields. Initialize those to nil.
18634 (mark_object): Don't treat terminals specially.
18635 (mark_terminal): Remove.
18636 (mark_terminals): Use mark_object instead.
18637
18638 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18639 the GC to the beginning.
18640
18641 * indent.h:
18642 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18643
18644 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18645
186462007-09-25 Jason Rumney <jasonr@gnu.org>
18647
18648 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18649
18650 * w32console.c (create_w32cons_output): Remove.
18651
18652 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18653
18654 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18655 (reset_sys_modes): Use reset_terminal_modes_hook.
18656
186572007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18658
18659 * eval.c (do_autoload): Don't output any message.
18660
186612007-09-24 Juri Linkov <juri@jurta.org>
18662
18663 * emacs.c (standard_args): Change priority of "--no-splash"
18664 from 40 to 3. Add "--no-desktop" with the same priority.
18665
186662007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18667
18668 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18669 and optimize the case where they are all 1.
18670
186712007-09-23 Johannes Weiner <hannes@saeurebad.de>
18672
18673 * lisp.h (abs): Define if not defined.
18674 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18675 Don't define `abs', since it's defined in lisp.h.
18676
186772007-09-22 Eli Zaretskii <eliz@gnu.org>
18678
18679 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18680 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18681 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18682 (init_tty): Use DEV_TTY instead of "/dev/tty".
18683 [WINDOWSNT]: No need to protect from NAME arg being null.
18684
186852007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18686
18687 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18688 up the tty state.
18689
186902007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18691
18692 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18693 (gpm_tty): Change its type.
18694 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18695 (gpm_tty): Change its type and initialize it.
18696 (Fterm_open_connection): Check the frame is indeed a tty.
18697 Use the new gpm_tty.
18698 (Fterm_close_connection): Use the new gpm_tty.
18699 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18700 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18701
187022007-09-21 Juanma Barranquero <lekktu@gmail.com>
18703
18704 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18705 underline_color, to draw strike-through.
18706
187072007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18708
18709 * lisp.h (allocate_terminal): Declare.
18710
18711 * window.c (candidate_window_p): Consider frames that are being placed
18712 by the user as somewhere between visible and iconified.
18713 (window_loop): Prefer windows on the current frame.
18714 (Fselect_window): Move the use of select-frame to the beginning so we
18715 can just delegate all the work (it'll call us back anyway).
18716
18717 * frame.c (Qdisplay_environment_variable):
18718 * frame.h (Qdisplay_environment_variable): Delete.
18719
18720 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18721 of the first arg, since that value may be a union.
18722
18723 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18724 parameter rather than Qdisplay_environment_variable. If all else
18725 fails, look for DISPLAY in initial-environment.
18726
187272007-09-21 Glenn Morris <rgm@gnu.org>
18728
18729 * Makefile.in (emacstool): Remove target.
18730 (lisp, shortlisp): Remove termdev.elc.
18731
187322007-09-21 Markus Triska <markus.triska@gmx.at>
18733
18734 * xterm.c (x_delete_display): Compile session management conditionally.
18735
187362007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18737
18738 * callproc.c (getenv_internal_1): New function.
18739 (getenv_internal): Use it.
18740 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18741
18742 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18743 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18744 (Fset_terminal_parameter): Work with dead terminals as well.
18745 (Fmodify_terminal_parameters): Remove.
18746
18747 * terminal.c (get_terminal): Handle terminals.
18748 Make sure the terminal returned is live.
18749 (create_terminal): Use allocate_terminal.
18750 (mark_terminals): Move to alloc.c.
18751 (delete_terminal): Use terminal->name as liveness status.
18752 NULL out fields after freeing their contents.
18753 Don't deallocate the object.
18754 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18755 rather than an int.
18756 (Fterminal_live_p): Accept non-integer arguments.
18757 (Fterminal_list): Return terminal objects rather than an ints.
18758
18759 * alloc.c (enum mem_type): New member for `terminal' objects.
18760 (allocate_terminal): New function.
18761 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18762 Handle terminals.
18763 (mark_terminal): New fun.
18764 (mark_terminals): Move from terminal.c.
18765
18766 * term.c (get_tty_terminal): Don't treat output_initial specially.
18767 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18768 (delete_tty): Use terminal->name as liveness status.
18769
18770 * termhooks.h (struct terminal): Make it into a pseudovector.
18771 Remove `deleted' replaced by checking `name's nullness.
18772
18773 * print.c (print_object): Handle terminals.
18774
18775 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18776 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18777
18778 * frame.c (make_terminal_frame):
18779 * keyboard.c (tty_read_avail_input):
18780 * w32term.c (x_delete_terminal):
18781 * xfns.c (Fx_create_frame, x_create_tip_frame):
18782 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18783
187842007-09-20 Glenn Morris <rgm@gnu.org>
18785
18786 * process.c (Fmake_network_process): Doc fix.
18787
187882007-09-19 Jason Rumney <jasonr@gnu.org>
18789
18790 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18791
187922007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18793
18794 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18795 Fix a C warning regarding variable constness.
18796
18797 * xterm.c (handle_one_xevent): Fix a C warning.
18798
187992007-09-18 Jason Rumney <jasonr@gnu.org>
18800
18801 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18802
188032007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18804
18805 * gtkutil.c (gdpy_def): New variable.
18806 (xg_initialize): Initialize gdpy_def.
18807 (xg_display_close): If no other display exists, set gdpy_def to a
18808 new connection.
18809
188102007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18811
18812 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18813 when we have no file name for the icon.
18814 (xg_tool_bar_expose_callback): Remove.
18815 (xg_create_tool_bar): Don't connect expose signal to
18816 xg_tool_bar_expose_callback.
18817 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18818
188192007-09-16 Andreas Schwab <schwab@suse.de>
18820
18821 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18822 values instead of zapping them.
18823
188242007-09-14 Glenn Morris <rgm@gnu.org>
18825
18826 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18827 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18828 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18829 scope and rename to omfib_buffer for clarity.
18830 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18831
188322007-09-14 Kenichi Handa <handa@m17n.org>
18833
18834 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18835
188362007-09-13 Jason Rumney <jasonr@gnu.org>
18837
18838 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18839
18840 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18841
18842 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18843 (mac_term_init): Call here instead, passing rif.
18844
188452007-09-13 Glenn Morris <rgm@gnu.org>
18846
18847 * s/hpux.h: No longer define `static' as nothing.
18848
188492007-09-13 Johan Bockgård <bojohan@gnu.org>
18850
18851 * callint.c (Fcall_interactively): Remove unused var `fun'.
18852
188532007-09-12 Romain Francoise <romain@orebokech.com>
18854
18855 * window.c (prefer_window_split_horizontally, display_buffer):
18856 Revert 2007-09-08 change.
18857
188582007-09-12 Glenn Morris <rgm@gnu.org>
18859
18860 * alloca.c: Remove file.
18861 * Makefile.in (alloca): Do not undef.
18862 (allocaobj, alloca.o): Remove.
18863 (otherobj): Remove allocaobj.
18864 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18865 * regex.c (C_ALLOCA): Remove all references and code that was only
18866 used when this was defined.
18867 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18868 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18869 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18870
18871 * Makefile.in (SOURCES, unlock, relock): Delete.
18872
18873 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18874 (menu_grab_callback): All uses changed.
18875
18876 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18877 (x_reply_selection_request): All uses changed.
18878
188792007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18880
18881 * lread.c (load_warn_old_style_backquotes): Change message to look
18882 better when it appears in the middle of byte-compiler messages.
18883
188842007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18885
18886 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18887
18888 * xterm.c (x_create_terminal): Add comment.
18889
18890 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18891
188922007-09-10 Richard Stallman <rms@gnu.org>
18893
18894 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18895
188962007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18897
18898 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18899 (DEFUN): Document `intspec', use it instead of `prompt'.
18900
18901 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18902
18903 * data.c (Finteractive_form): If the interactive specification starts
18904 with a `(', use it as a Lisp form.
18905
18906 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18907 name and file modes.
18908
18909 * callint.c (Fcall_interactively): Comment fixes.
18910
189112007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18912
18913 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18914 and compiled functions.
18915
189162007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18917
18918 * window.c (prefer_window_split_horizontally): New variable.
18919 (display_buffer): Consider splitting window horizontally depending
18920 on prefer_window_split_horizontally.
18921
189222007-09-08 Eli Zaretskii <eliz@gnu.org>
18923
18924 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18925
189262007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18927
18928 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18929
18930 * frame.c (x_set_frame_parameters): Check number is positive before
18931 using XFASTINT.
18932
18933 * window.c (freeze_window_start): Don't presume selected_window holds
18934 a window object.
18935 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18936
189372007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18938
18939 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18940
189412007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18942
18943 * window.c (Vsplit_window_preferred_function): New var.
18944 (Fdisplay_buffer): Use it.
18945 (syms_of_window): Export, and initialize it.
18946
189472007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18948
18949 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18950
189512007-09-06 Glenn Morris <rgm@gnu.org>
18952
18953 * gtkutil.c (menu_grab_callback) <cnt>:
18954 * xselect.c (x_reply_selection_request) <cnt>: Move static
18955 variable to file scope.
18956
189572007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18958
18959 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18960 consistent values of selected_frame and selected_window.
18961
189622007-09-04 Jason Rumney <jasonr@gnu.org>
18963
18964 * w32console.c (initialize_w32_display): Zero unused hooks.
18965
189662007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18967
18968 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18969 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18970
189712007-09-04 Jason Rumney <jasonr@gnu.org>
18972
18973 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18974 in w32console.c. Set up input. Remove XXX comments that have been
18975 confirmed as correct.
18976
18977 * s/ms-w32.h (MULTI_KBOARD): Define.
18978
18979 * w32console.c (one_and_only_w32cons): Remove.
18980 (initialize_w32_display): Take terminal argument.
18981
18982 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18983 initialize_w32_display.
18984 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18985
18986 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18987
18988 * keyboard.c (discard_mouse_events): Discard it.
18989 (make_lispy_event): Translate it to a lisp event.
18990 (lispy_wheel_names): Add wheel-left and right events.
18991 (syms_of_keyboard): Enlarge wheel_syms.
18992
18993 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18994 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18995
18996 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18997
18998 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18999 from WM_MOUSEHWHEEL.
19000 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19001
19002 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19003 terminal.
19004
19005 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19006 keyboard for the terminal.
19007
190082007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19009
19010 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19011 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19012 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19013 and resume-tty-function to resume-tty-hook.
19014 (Fsuspend_tty, Fresume_tty): Use new names.
19015
190162007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19017
19018 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19019 if it starts with "n:".
19020
190212007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19022
19023 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19024
190252007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19026
19027 * frame.h:
19028 * frame.c (Qterm_environment_variable): Remove.
19029 (syms_of_frame): Don't init and staticpro it.
19030
19031 * callproc.c (getenv_internal): Remove special case for $TERM.
19032
19033 * callproc.c (Vinitial_environment): New variable.
19034 (set_initial_environment): Initialize it.
19035 (syms_of_callproc): Declare it.
19036 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19037 TERM under which a process runs is never related to the TERM in which
19038 Emacs is running.
19039
190402007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19041
19042 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19043 * s/darwin.h: ... do it here.
19044
190452007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19046
19047 * lisp.h (set_initial_environment): Rename from set_global_environment.
19048
19049 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19050 removed by mistake on the multi-tty branch.
19051
19052 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19053 (Fmodify_frame_parameters): Return a value.
19054
19055 * image.c (png_load): Comment-out var only used in commented-out code.
19056
19057 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19058 before passing it to mark_object.
19059
19060 * xfaces.c (internal_resolve_face_name): Return a value.
19061 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19062
19063 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19064 (x_icon): Comment-out var only used in commented-out code.
19065
190662007-08-29 Romain Francoise <romain@orebokech.com>
19067
19068 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19069 QUIT hasn't been provided.
19070
190712007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19072
19073 * callproc.c (child_setup, getenv_internal): Use the
19074 display-environment-variable and term-environment-variable frame params.
19075 (set_initial_environment): Initialise Vprocess_environment.
19076
19077 * config.in: Disable multi-keyboard support on a mac.
19078
19079 * frame.c (Qterm_environment_variable)
19080 (Qdisplay_environment_variable): New variables.
19081 (syms_of_frame): Intern and staticpro them.
19082 (Fmake_terminal_frame): Disable output method test.
19083
19084 * frame.h: Declare them here.
19085
19086 * macfns.c (x_set_mouse_color): Get rif from the frame.
19087 (x_set_tool_bar_lines): Don't use updating_frame.
19088 (mac_window): Add 2 new parameters for consistency with other systems.
19089 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19090 frame parameters following what is done in X11 and w32. Don't use
19091 FRAME_MAC_DISPLAY_INFO.
19092 (Fx_open_connection, start_hourglass): Remove window-system check.
19093 (x_create_tip_frame): Get the keyboard from the terminal.
19094
19095 * macmenu.c: Reorder includes.
19096 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19097
19098 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19099 terminal parameter.
19100 (x_clear_frame): Add a frame parameter.
19101 (note_mouse_movement): Get rif from the frame.
19102 (mac_term_init): Initialize the terminal.
19103 (mac_initialize): Make static and move terminal initialization ...
19104 (mac_create_terminal): ... to this new function.
19105
19106 * macterm.h (struct mac_display_info): Add terminal.
19107 (mac_initialize): Delete declaration.
19108
19109 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19110
19111 * sysdep.c: Comment out text after #endif.
19112
19113 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19114 is defined. Better initialize ttys in windows. Use terminal
19115 specific mouse_position_hook.
19116
19117 * termhooks.h (union display_info): Add mac_display_info.
19118
19119 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19120 Set the default minibuffer frame, window_system and the rest of the
19121 frame parameters following what is done in X11.
19122
19123 * w32term.c (w32_initialize): Make static.
19124
19125 * xselect.c (x_handle_selection_clear): Only access
19126 terminal->kboard when MULTI_KBOARD is defined.
19127
19128 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19129 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19130
191312007-08-29 Jason Rumney <jasonr@gnu.org>
19132
19133 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19134 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19135
19136 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19137 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19138
19139 * keyboard.c (restore_kboard_configuration): Only define when
19140 MULTI_KBOARD defined.
19141
19142 * makefile.w32-in: Update dependancies from Makefile.in.
19143 (OBJ1): Add terminal.$(O)
19144
19145 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19146 Don't define function body.
19147 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19148
19149 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19150
19151 * w32.c (request_sigio, unrequest_sigio): Remove.
19152
19153 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19154 (w32con_clear_frame, w32con_clear_end_of_line)
19155 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19156 (w32con_delete_glyphs, w32con_set_terminal_window)
19157 (scroll_line, w32_sys_ring_bell): Add frame arg.
19158 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19159 Add terminal arg.
19160 (PICK_FRAME): Remove.
19161 (w32con_write_glyphs): Use frame specific terminal coding.
19162 (one_and_only_w32cons): New global variable.
19163 (initialize_w32_display): Use it for storing hooks.
19164 (create_w32cons_output): New function.
19165
19166 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19167 arg a frame.
19168
19169 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19170 Set window_system.
19171 (x_set_tool_bar_lines): Don't use updating_frame.
19172 (Fx_create_frame): Set terminal and ref count.
19173 (Fx_open_connection): Remove window-system check.
19174
19175 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19176
19177 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19178 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19179 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19180 Add frame arg.
19181 (x_delete_terminal, w32_create_terminal): New functions.
19182 (w32_term_init): Create a terminal.
19183 (w32_initialize): Move terminal specific initialization to
19184 w32_create_terminal.
19185
19186 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19187 (w32_clear_rect, w32_clear_area): Use background from frame.
19188 (w32_display_info): Add terminal.
19189 (w32_sys_ring_bell, x_delete_display): Declare here.
19190
19191 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19192
19193 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19194
191952007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19196
19197 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19198 Fix get_named_tty calls for the controlling tty.
19199
192002007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19201
19202 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19203
192042007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19205
19206 * term.c (tty_insert_glyphs): Add missing first parameter.
19207
192082007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19209
19210 * buffer.c (Fbuffer_list, Fbury_buffer):
19211 Take frame->buried_buffer_list into account.
19212
19213 * cm.c (current_tty): New variable, for cmputc().
19214 (cmputc): Use it.
19215 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19216 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19217 (cmgoto): Add tty parameter. Pass it on to calccost().
19218 Use emacs_tputs() instead of tputs().
19219
19220 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19221 tputs().
19222 (current_tty): New variable, for cmputc().
19223 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19224
19225 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19226 (internal_condition_case, internal_condition_case_1)
19227 (internal_condition_case_2): Don't abort when x_catching_errors.
19228
19229 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19230 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19231 prevent crashes caused by bogus longjmps in read_char.
19232
19233 * keymap.h (Fset_keymap_parent): Add EXFUN.
19234
19235 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19236 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19237 Remove redundant definition.
19238
19239 * macfns.c (x_set_mouse_color, x_make_gc):
19240 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19241
19242 * w32term.c (x_free_frame_resources):
19243 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19244 (w32_initialize): Use the accessor macros for terminal characteristics.
19245
19246 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19247 Use the accessor macros for terminal characteristics.
19248 * msdos.c (internal_terminal_init): Use the accessor macros for
19249 terminal characteristics.
19250 (ScreenVisualBell, internal_terminal_init):
19251 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19252
19253 * termopts.h (no_redraw_on_reenter): Declare.
19254
19255 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19256 (mark_terminals, mark_ttys): Declare.
19257 (Fgarbage_collect): Call them.
19258 (mark_object): Mark buried_buffer_list.
19259
19260 * prefix-args.c: Include stdlib.h for exit.
19261
19262 * syssignal.h: Add comment.
19263
19264 * indent.c: Include stdio.h.
19265
19266 * window.h (Vinitial_window_system): Declare.
19267 (Vwindow_system): Delete declaration.
19268
19269 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19270
19271 * image.c (lookup_image): Don't initialize `c' until the xasserts
19272 have been run.
19273
19274 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19275 FRAME_FOREGROUND_PIXEL.
19276
19277 * print.c (print_preprocess): Don't lose print_depth levels while
19278 iterating.
19279
19280 * widget.c (update_from_various_frame_slots):
19281 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19282
19283 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19284 frames.
19285 (window_internal_height): Remove bogus make_number call.
19286 (init_window_once): Call make_terminal_frame with two zero parameters.
19287
19288 * fileio.c (Fread_file_name): Update comment.
19289
19290 * callint.c (Fcall_interactively):
19291 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19292 Make sure it is correctly unwound.
19293
19294 * xsmfns.c (x_session_close): New function.
19295
19296 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19297 Delete declarations.
19298
19299 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19300 (x_output): Remove background_pixel and foreground_pixel fields.
19301 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19302 (x_delete_device, x_session_close): Declare.
19303
19304 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19305 (read_filtered_event): Call `read_char' with a local
19306 `wrong_kboard_jmpbuf'.
19307
19308 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19309 Don't call single_kboard_state. Use FRAME_RIF.
19310
19311 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19312 systems.
19313
19314 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19315 (Fframe_with_environment, Fset_input_meta_mode)
19316 (Fset_quit_char): EXFUN.
19317 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19318 (init_sys_modes, reset_sys_modes): Update prototypes.
19319 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19320
19321 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19322 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19323 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19324 Delete declarations.
19325 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19326 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19327 New declarations.
19328
19329 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19330 already does that during init_display(). Call syms_of_keymap
19331 before syms_of_keyboard. Call `syms_of_terminal'.
19332 Call set_initial_environment, not set_process_environment.
19333 (shut_down_emacs): Call reset_all_sys_modes() instead of
19334 reset_sys_modes().
19335
19336 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19337 (internal_resolve_face_name, resolve_face_name_error): New functions.
19338 (resolve_face_name): Protect against loops and errors thrown by Fget.
19339 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19340 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19341
19342 * scroll.c: Replace CURTTY() with local variables throughout the
19343 file (where applicable).
19344 (calculate_scrolling, calculate_direct_scrolling)
19345 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19346 characteristics.
19347
19348 * keymap.c (Vfunction_key_map): Remove.
19349 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19350 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19351 (Vkey_translation_map): Remove.
19352 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19353 (Fdescribe_buffer_bindings)
19354 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19355 Update for terminal-local key-translation-map.
19356
19357 * Makefile.in (callproc.o): Update dependencies.
19358 (lisp, shortlisp): Add termdev.elc.
19359 (obj): Add terminal.o.
19360 (terminal.o): Add dependencies.
19361 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19362 (data.o, fns.o): Add termhooks.h dependency.
19363 (SOME_MACHINE_LISP): Add dnd.elc.
19364 (minibuf.o): Fix typo.
19365 Update dependencies.
19366
19367 * data.c (do_symval_forwarding, store_symval_forwarding)
19368 (find_symbol_value): Use the selected frame's keyboard, not
19369 current_kboard.
19370
19371 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19372 Vwindow_system.
19373
19374 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19375 Fmenu_bar_open.
19376 (syms_of_xmenu): Update defsubr.
19377 (mouse_position_for_popup, Fx_popup_menu)
19378 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19379 (set_frame_menubar, free_frame_menubar)
b97439ce 19380 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19381 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19382 an X frame.
19383
19384 * xselect.c (x_own_selection): Abort if not an X frame.
19385 (some_frame_on_display): Check if it is an X frame.
19386 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19387
19388 * coding.c: Include frame.h and termhooks.h.
19389 (terminal_coding, keyboard_coding): Delete.
19390 (Fset_terminal_coding_system_internal)
19391 (Fset_keyboard_coding_system_internal)
19392 (Fkeyboard_coding_system)
19393 (Fterminal_coding_system): Add a terminal parameter.
19394 Get terminal_coding from the terminal.
19395 (init_coding_once): Don't call setup_coding_system here.
19396
19397 * dispextern.h (set_scroll_region, turn_off_insert)
19398 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19399 (tty_clear_end_of_line, tty_setup_colors)
19400 (delete_tty, updating_frame)
19401 (produce_special_glyphs, produce_glyphs, write_glyphs)
19402 (insert_glyphs): Remove.
19403 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19404 (tty_turn_off_highlight, get_tty_size): Add declaration.
19405 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19406
19407 * frame.h (enum output_method): Add output_initial.
19408 (struct x_output): Delete.
19409 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19410 Access foreground_pixel and background_pixel directly from the frame.
19411 (tty_display): Delete.
19412 (struct frame): Add buried_buffer_list, foreground_pixel,
19413 background_pixel and terminal. Delete kboard.
19414 (union output_data): Add tty.
19415 (FRAME_KBOARD): Get the kboard from the terminal.
19416 (FRAME_INITIAL_P): New macro.
19417 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19418 (Qterm_environment_variable, Qdisplay_environment_variable)
19419 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19420 New declarations.
19421
19422 * termchar.h (tty_output, tty_display_info): New structures.
19423 (tty_list): Declare.
19424 (FRAME_TTY, CURTTY): New macros.
19425 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19426 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19427 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19428 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19429
19430 * callproc.c: Include frame.h and termhooks.h, for terminal
19431 parameters.
19432 (add_env): New function.
19433 (child_setup): Use it.
19434 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19435 (getenv_internal): Fix get_terminal_param call.
19436 (Fgetenv_internal, egetenv): Update doc.
19437 (syms_of_callproc): Initialize Vprocess_environment to nil.
19438 Register and initialize them. Remove obsolete defvars. Update doc
19439 strings.
19440 (child_setup): Handle Vlocal_environment_variables.
19441 (getenv_internal): Add terminal parameter.
19442 Handle Vlocal_environment_variables.
19443 (Fgetenv_internal): Add terminal parameter.
19444 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19445 environment in a frame (not terminal) parameter. Update doc strings.
19446 (set_initial_environment): Rename from set_global_environment.
19447 Store Emacs environment in initial frame parameter.
19448
19449 * xdisp.c (redisplay_internal): Update references to
19450 `previous_terminal_frame'.
19451 (display_mode_line, Fformat_mode_line): Replace calls to
19452 `push_frame_kboard' with `push_kboard'.
19453 (get_glyph_string_clip_rects): Add extra parentheses and
19454 braces to prevent compiler warnings.
19455 (calc_pixel_width_or_height): Add xassert to check that the
19456 frame is alive. Don't call `lookup_image' on a termcap frame.
19457 (message2_nolog, message3_nolog, redisplay_internal)
19458 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19459 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19460 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19461 (Fx_display_pixel_width, Fx_display_pixel_height)
19462 (Fx_display_planes, Fx_display_color_cells)
19463 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19464 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19465 (Fx_display_backing_store, Fx_display_visual_class)
19466 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19467 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19468
19469 * xfns.c (x_set_foreground_color x_set_background_color)
19470 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19471 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19472 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19473 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19474 terminal that is being deleted.
19475 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19476 frame parameter, and make sure it overrides any user-supplied setting.
19477 (Fx_close_connection, Fx_synchronize): Unify argument names with
19478 the rest of the DEFUNs.
19479
19480 * dispnew.c (Fsend_string_to_terminal): Update call to
19481 `get_tty_terminal'.
19482 (Fredraw_frame, Fsend_string_to_terminal)
19483 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19484 FRAME_TERMCAP_P and FRAME_TTY.
19485 (window_change_signal): Don't believe width/height values that are
19486 impossibly small.
19487 (Vinitial_window_system): Rename from Vwindow_system.
19488 (termscript, Wcm, rif): Delete.
19489
19490 * termhooks.h (struct terminal): New struct containing the
19491 previously global text display hooks and new members NAME,
19492 DELETED and PARAM_ALIST.
19493 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19494 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19495 (FRAME_RIF): New macros.
19496 (get_terminal_param, get_device): New declarations.
19497 (termscript): Delete declaration.
19498
19499 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19500 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19501 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19502 FRAME_FOREGROUND_PIXEL.
19503 (x_fully_uncatch_errors): Disable definition.
19504 (x_scroll_bar_expose): Fix reference to foreground pixel.
19505 (XTread_socket): Disable loop on all X displays.
19506 (x_delete_terminal): Don't set terminal->deleted and let
19507 delete_terminal delete the frames on the terminal.
19508 (x_delete_display): Doc update to reflect changes in
19509 delete_terminal.
19510 (x_display_info) <terminal>: Move member earlier in the struct.
19511 (deleting_tty): Remove old variable.
19512 (Fsuspend_tty): Call clear_tty_hooks.
19513 (Fresume_tty, init_tty): Call set_tty_hooks.
19514 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19515 errors on X frames.
19516 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19517 (handle_one_xevent): Initialize `f' to NULL.
19518 (x_delete_terminal, x_create_terminal): New functions.
19519 (XTset_terminal_modes, XTreset_terminal_modes)
19520 (XTread_socket, x_connection_closed, x_term_init)
19521 (x_term_init, x_delete_display): Add terminal parameter.
19522 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19523 X connections.
19524
19525 * frame.c: Include termchar.h.
19526 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19527 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19528 (Qdisplay_environment_variable): New vars.
19529 (Fframep): Deal with output_initial.
19530 (Fframe-live-p): Doc fix.
19531 (Fwindow-system): New function.
19532 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19533 (make_terminal_frame): Don't create frames on a terminal that is
19534 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19535 (store_frame_param): Check for found_for_frame before calling XFRAME.
19536 (Fmake_terminal_frame): Handle NULL tty names correctly.
19537 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19538 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19539 frames to refer to a deleted frame in their 'environment parameter.
19540 (Fframe_with_environment): New function.
19541 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19542 (get_future_frame_param): New function.
19543 (Fmake_terminal_frame): Use it.
19544 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19545
19546 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19547 * sysdep.c (reset_sys_modes): Update for renames.
19548
19549 * keyboard.c (tty_read_avail_input): New function.
19550 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19551 (syms_of_keyboard): Defsubr them.
19552 (Fset_input_meta_mode, Fset_quit_char): New functions.
19553 (Fset_input_mode): Split to above functions.
19554 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19555 parameter. Use it in call to `read_char'.
19556 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19557 Set wrong_kboard_jmpbuf correctly in recursive calls.
19558 Use current_kboard to access Vkeyboard_translate_table.
19559 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19560 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19561 Update longjmp invocations. Remember the original current_kboard,
19562 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19563 changes it. Comment out unnecessary calls to
19564 `record_single_kboard_state' and `any_kboard_state'.
19565 Update recursive calls.
19566 (wrong_kboard_jmpbuf): Remove global variable.
19567 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19568 Handle deleted interrupted_kboards correctly; that is a legal
19569 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19570 and read_char calls. Abort if interrupted_kboard died in read_char.
19571 (any_kboard_state, single_kboard_state)
19572 (push_frame_kboard): Remove function.
19573 (pop_kboard): Switch out of single_kboard mode if the kboard has
19574 been deleted. Remove unused variable. Help debugging by not
19575 changing current_kboard unnecessarily. Set current_kboard to the
19576 kboard of the selected frame when the stored kboard object has
19577 been deleted before pop_kboard.
19578 (temporarily_switch_to_single_kboard): Change first parameter to a
19579 frame pointer. Throw an error when caller wants to change kboards
19580 while in single_kboard mode. Don't push_kboard if we weren't in
19581 single kboard state. Don't pop_kboard if we popped into any
19582 kboard state.
19583 (restore_kboard_configuration): Abort if pop_kboard changed the
19584 kboard in single_kboard mode. Call pop_kboard only after setting
19585 up single_kboard mode.
19586 (Frecursive_edit): Switch to single_kboard mode only in nested
19587 command loops.
19588 (cmd_error, command_loop, command_loop_1, timer_check):
19589 Comment out unnecessary call to `any_kboard_state' and
19590 `record_single_kboard_state'.
19591 (delete_kboard): Exit single_kboard mode if we have just deleted
19592 that kboard. Use FRAME_KBOARD.
19593 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19594 `fatal_error_signal'.
19595 (record_single_kboard_state): Don't push_kboard if we weren't in
19596 single kboard state. Don't pop_kboard if we popped into any
19597 kboard state.
19598 (push_frame_kboard): Rename to push_kboard.
19599 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19600 (read_avail_input): Read input from all terminals.
19601 (mark_kboards): Also mark Vkeyboard_translate_table.
19602 (kbd_buffer_store_event_hold): Simplify condition.
19603 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19604 (Vkeyboard_translate_table): Move to struct kboard.
19605 (init_kboard): Initialize Vkeyboard_translate_table.
19606 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19607 Vkeyboard_translate_table. Update doc strings. Update docs of
19608 local-function-key-map and function-key-map.
19609
19610 * terminal.c: New file.
19611
19612 * term.c: Include errno.h.
19613 (Vring_bell_function, device_list, initial_device)
19614 (next_device_id, ring_bell, update_begin, update_end)
19615 (set_terminal_window, cursor_to, raw_cursor_to)
19616 (clear_to_end, clear_frame, clear_end_of_line)
19617 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19618 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19619 (syms_of_term): Move their initialization to terminal.c.
19620 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19621 (Ftty_display_color_cells)
19622 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19623 (clear_tty_hooks, set_tty_hooks)
19624 (init_tty, maybe_fatal): New functions.
19625 (Ftty_type): Return nil if terminal is not on a tty instead of
19626 throwing an error. Doc update.
19627 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19628 Doc update. Initialize new subrs and variables.
19629 (delete_tty): Use terminal->deleted.
19630 (tty_set_terminal_modes): Rename from set_terminal_modes.
19631 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19632 (set_scroll_region): Rename to `tty_set_scroll_region'.
19633 (turn_on_insert): Rename to `tty_turn_on_insert'.
19634 (turn_off_insert): Rename to `tty_turn_off_insert'.
19635 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19636 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19637 (toggle_highligh): Rename to `tty_toggle_highlight'.
19638 (background_highlight): Rename to `tty_background_highlight'.
19639 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19640 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19641 (tty_set_scroll_region, tty_background_highlight)
19642 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19643 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19644 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19645 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19646 Add static modifier.
19647 (tty_reset_terminal_modes, tty_set_terminal_window)
19648 (tty_set_scroll_region, tty_background_highlight)
19649 (tty_highlight_if_desired, tty_cursor_to)
19650 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19651 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19652 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19653 renames.
19654
196552007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19656
19657 * keyboard.c: Qrtl is new.
19658 (parse_tool_bar_item): Handle :rtl keyword.
19659 (syms_of_keyboard): Intern :rtl keyword.
19660
19661 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19662
19663 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19664 so no Lisp code is executed.
19665 (file_for_image, find_rtl_image): New functions.
19666 (xg_get_image_for_pixmap): Use file_for_image.
19667 (update_frame_tool_bar): If direction is RTL, use RTL image if
19668 defined. Use Gtk stock images if defined.
19669
196702007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19671
19672 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19673 for nonexistent or zero-width glyph in composition glyph.
19674
196752007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19676
19677 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19678
19679 * xdisp.c (Finvisible_p): New function.
19680 (syms_of_xdisp): defsubr it.
19681
196822007-08-24 Juanma Barranquero <lekktu@gmail.com>
19683
19684 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19685 Doc fixes.
19686
196872007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19688
19689 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19690
196912007-08-24 Martin Rudalics <rudalics@gmx.at>
19692
19693 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19694 whether decoding has modified buffer contents.
19695
196962007-08-24 Jason Rumney <jasonr@gnu.org>
19697
19698 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19699 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19700 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19701 (init_svg_functions) [HAVE_NTGUI]: New function.
19702 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19703 (svg_load_image): Use them.
19704 (svg_load_image) [HAVE_NTGUI]: Implement background.
19705
197062007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19707
19708 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19709 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19710 (LIBX): Remove @RSVG_LIBS@.
19711 (LIBES): Add $(RSVG_LIBS).
19712
19713 * image.c (svg_load_image): Blend with specified background if exists.
19714 Use IMAGE_BACKGROUND. Add Mac OS Support.
19715
19716 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19717 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19718 Remove macros.
19719 [MAC_OSX] (socket_callback): Do nothing.
19720 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19721 ReceiveNextEvent.
19722 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19723 socket_callback.
19724 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19725
197262007-08-22 Glenn Morris <rgm@gnu.org>
19727
19728 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19729
197302007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19731
19732 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19733
19734 * image.c: Add support for SVG images. Some additional comments
19735 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19736 (svg_image_p): New function to test for SVG image.
19737 (svg_load): New function to load SVG image.
19738 (svg_load_image): New function, helper for svg_load.
19739 (Qsvg): New Lisp_object.
19740 (svg_keyword_index): New enum.
19741 (svg_format): New static `image_keyword' struct.
19742 (svg_type): New static `image_type' struct.
19743 (librsvg/rsvg.h): Include it.
19744
197452007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19746
19747 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19748
197492007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19750
19751 * lread.c (Qold_style_backquotes): New var.
19752 (syms_of_lread): Init and staticpro it.
19753 (load_warn_old_style_backquotes): New fun.
19754 (Fload): Use them to warn about old style backquotes.
19755 (end_of_file_error, Fload): Remove unused vars.
19756
19757 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19758
19759 * lread.c (Vold_style_backquotes): New var.
19760 (syms_of_lread): Init and export it to Elisp.
19761 (read1): Set it when we find an old-style (back)quote.
19762
197632007-08-22 Jason Rumney <jasonr@gnu.org>
19764
19765 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19766
197672007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19768
19769 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19770
197712007-08-19 Richard Stallman <rms@gnu.org>
19772
19773 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19774
197752007-08-19 Andreas Schwab <schwab@suse.de>
19776
19777 * alloc.c (pure): Round PURESIZE up.
19778
197792007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19780
19781 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19782 active frame.
19783
197842007-08-16 Richard Stallman <rms@gnu.org>
19785
19786 * eval.c (Fcommandp): Add parens to clarify.
19787
19788 * minibuf.c (Fall_completions): Use enum for type of table.
19789
19790 * emacs.c (USAGE2): Improve text.
19791
197922007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19793
19794 * term.c (tty_default_color_capabilities): Declare static
19795 variables in file scope, to avoid HPUX compiler problem.
19796
197972007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19798
19799 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19800 to gtk_toolbar_insert.
19801
198022007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19803
19804 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19805
19806 * insdel.c (reset_var_on_error): New fun.
19807 (signal_before_change, signal_after_change):
19808 Use it to reset (after|before)-change-functions to nil in case of error.
19809 Bind inhibit-modification-hooks to t.
19810 Don't bind (after|before)-change-functions to nil while they run.
19811
198122007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19813
19814 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19815 filling pixmap with stippled background.
19816
198172007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19818
19819 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19820 Don't use invisible frame as parent window for repositioning.
19821
198222007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19823
19824 * print.c (new_backquote_output): Rename from old_backquote_output.
19825 (print): Inverse its logic (according to its name) so as to match the
19826 behavior of new_backquote_flag in lread.c.
19827
198282007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19829
19830 * gmalloc.c (posix_memalign): New function.
19831
19832 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19833 ActivateControl/DeactivateControl here.
19834 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19835 frame-notice-user-settings is non-nil.
19836 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19837 for kEventParamFMFontStyle.
19838 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19839 mac_pass_command_to_system and mac_pass_control_to_system here.
19840 (XTread_socket): Call ActivateControl/DeactivateControl here.
19841 (XTread_socket) [TARGET_API_MAC_CARBON]:
19842 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19843 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19844 for window repositioning.
19845
198462007-08-08 Glenn Morris <rgm@gnu.org>
19847
19848 * Replace `iff' in doc-strings and comments.
19849
198502007-08-07 Chong Yidong <cyd@stupidchicken.com>
19851
19852 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19853
198542007-08-07 Martin Rudalics <rudalics@gmx.at>
19855
19856 * fileio.c (Finsert_file_contents): Run format-decode and
19857 after_insert_file_functions on entire buffer when REPLACE is
19858 non-nil and inhibit modification_hooks and point_motion_hooks.
19859 For consistency, run after_insert_file_functions iff something
19860 got inserted. Move signal_after_change and update_compositions
19861 after code running after_insert_file_functions. Make sure that
19862 undo_list doesn't record intermediate steps of the decoding process.
19863
198642007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19865
19866 * emacs.c (main)
19867 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19868 Call malloc_enable_thread on interactive startup.
19869
19870 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19871 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19872 [USE_PTHREAD]: Conditionalize with it.
19873 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19874 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19875 New functions.
19876
198772007-08-06 Chong Yidong <cyd@stupidchicken.com>
19878
19879 * xdisp.c (redisplay_window): When restoring original buffer
19880 position, make sure it is still valid.
19881
19882 * image.c (png_load): Ignore png-supplied background color.
19883
198842007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19885
19886 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19887 Use kCFAbsoluteTimeIntervalSince1970.
19888
19889 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19890 New variable.
19891 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19892 event loop should be quit.
19893 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19894 Quit dialog event loop if quit_dialog_event_loop is set.
19895
19896 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19897 (Selection): New typedef. Use instead of ScrapRef.
19898 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19899 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19900 (mac_clear_selection): Rename from clear_scrap.
19901 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19902 scrap_has_target_type. All uses changed.
19903 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19904 (mac_selection_has_target_p): New functions.
19905 (mac_put_selection_value): Rename from put_scrap_string.
19906 (mac_get_selection_value): Rename from get_scrap_string.
19907 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19908 (put_scrap_private_timestamp, scrap_has_target_type)
19909 (get_scrap_private_timestamp): Remove functions.
19910 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19911 (x_own_selection, x_get_local_selection):
19912 Use mac_valid_selection_value_p.
19913 (x_own_selection): Don't use put_scrap_private_timestamp.
19914 Record OWNERSHIP-INFO into Vselection_alist instead.
19915 (x_get_local_selection): Don't check type if request is local.
19916 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19917 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19918
199192007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19920
19921 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19922 add comment explaining why.
19923
199242007-08-03 Richard Stallman <rms@gnu.org>
19925
19926 * fileio.c (Fvisited_file_modtime): Use make_time.
19927
199282007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19929
19930 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19931 build.
19932
199332007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19934
19935 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19936
199372007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19938
19939 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19940
199412007-07-30 Richard Stallman <rms@gnu.org>
19942
19943 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19944
199452007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19946
19947 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19948
199492007-07-28 Nick Roberts <nickrob@snap.net.nz>
19950
19951 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19952 remote default-directory.
19953
19954 * buffer.c (mode-line-format): Update doc string.
19955
199562007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19957
19958 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19959 scroll bar gap.
19960 (x_scroll_bar_create): Set bar->fringe_extended_p.
19961 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19962 on frame edge. Check fringe background extension. Don't clear
19963 extended fringe background area.
19964
19965 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19966 (w32_fill_area): Enclose multiple statements with do ... while (0).
19967
19968 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19969 Extend fringe background to scroll bar gap.
19970 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19971 Set bar->fringe_extended_p.
19972 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19973 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19974 background extension. Don't clear extended fringe background area.
19975
19976 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19977 New member fringe_extended_p.
19978
199792007-07-25 Glenn Morris <rgm@gnu.org>
19980
19981 * Relicense all FSF files to GPLv3 or later.
19982
19983 * COPYING: Switch to GPLv3.
19984
199852007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19986
19987 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19988
19989 * data.c (Finteractive_form): Check for the presence of an
19990 `interactive-form' symbol property more thoroughly.
19991
19992 * data.c (Finteractive_form): Use an `interactive-form' property if
19993 present, analogous to the function-documentation property.
19994
199952007-07-24 Jason Rumney <jasonr@gnu.org>
19996
19997 * w32fns.c (x_real_positions): Get real position from OS instead of
19998 calculating it.
19999
200002007-07-23 Jason Rumney <jasonr@gnu.org>
20001
20002 * filelock.c (current_lock_owner): Allow for @ sign in username.
20003
200042007-07-22 Nick Roberts <nickrob@snap.net.nz>
20005
20006 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20007 remote default-directory.
20008
20009 * buffer.c (mode-line-format): Describe above case in doc string.
20010
200112007-07-20 Eli Zaretskii <eliz@gnu.org>
20012
20013 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20014 Define if not defined.
20015
200162007-07-18 Jason Rumney <jasonr@gnu.org>
20017
20018 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20019
200202007-07-18 Richard Stallman <rms@gnu.org>
20021
20022 * data.c (Fsetq_default): Doc fix.
20023
20024 * eval.c (Fsetq): Doc fix.
20025
200262007-07-18 Juanma Barranquero <lekktu@gmail.com>
20027
20028 * coding.c (Ffind_operation_coding_system):
20029 * eval.c (For, Fand): Doc fixes.
20030 Reported by Johan Bockgård.
20031
200322007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20033
20034 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20035
20036 * xterm.h: Declare x_ewmh_activate_frame.
20037
20038 * xterm.c (x_ewmh_activate_frame): New function.
20039 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20040
200412007-07-17 Martin Rudalics <rudalics@gmx.at>
20042
20043 * window.c (Fdisplay_buffer): If largest or LRU window is the
20044 only window, split it even if it is not eligible for splitting.
20045 This restores the original behavior broken by the 2007-07-15
20046 change.
20047
200482007-07-17 Glenn Morris <rgm@gnu.org>
20049
20050 * abbrev.c (abbrev_check_chars): New function.
20051 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20052 Call abbrev_check_chars to check abbrev characters are word
20053 constituents. Doc fix.
20054
200552007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20056
20057 * process.c (Fstart_process, Fmake_network_process)
20058 (read_process_output): Fix up last changes.
20059
200602007-07-16 Eli Zaretskii <eliz@gnu.org>
20061
20062 * makefile.w32-in (clean): Don't delete *~.
20063
200642007-07-16 Andreas Schwab <schwab@suse.de>
20065
20066 * window.c (Fdisplay_buffer): Use NILP.
20067 (Fset_window_scroll_bars): Likewise.
20068
200692007-07-15 Martin Rudalics <rudalics@gmx.at>
20070
20071 * window.c (window_min_size_2): New function.
20072 (window_min_size_1, size_window, Fdisplay_buffer)
20073 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20074 windows without mode- or header-lines when window-min-height is
20075 too small.
20076 (size_window): Reset nodelete_p after testing it, following an
20077 earlier note by Kim F. Storm.
20078 (display_buffer): Do not set split_height_threshold to twice the
20079 value of window_min_height to avoid changing the value of a
20080 customizable variable. Rather explicitly check whether the
20081 height of the window that shall be splitted is at least as large
20082 as split_height_threshold.
20083 (Fwindow_full_width_p): New defun.
20084 (syms_of_window): Defsubr it.
20085
20086 * window.h: Add EXFUN for Fwindow_full_width_p.
20087
200882007-07-14 Jason Rumney <jasonr@gnu.org>
20089
20090 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20091
200922007-07-14 Richard Stallman <rms@gnu.org>
20093
20094 * eval.c (maybe_call_debugger): New function.
20095 (find_handler_clause): Use maybe_call_debugger.
20096 Call it when the handler says `debug'.
20097 Eliminate DEBUGGER_VALUE_PTR.
20098 (Fsignal): Eliminate debugger_value.
20099 (Qdebug): New variable.
20100 (syms_of_eval): Initialize it.
20101
201022007-07-14 Juanma Barranquero <lekktu@gmail.com>
20103
20104 * eval.c (Fprogn):
20105 * keyboard.c (Ftrack_mouse):
20106 * print.c (Fwith_output_to_temp_buffer):
20107 * window.c (Fsave_window_excursion): Doc fix.
20108
201092007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20110
20111 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20112
201132007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20114
20115 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20116 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20117 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20118 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20119 Remove unused encoding_carryover.
20120 * process.c: Adjust all functions accordingly.
20121
201222007-07-12 Richard Stallman <rms@gnu.org>
20123
20124 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20125
201262007-07-11 Jason Rumney <jasonr@gnu.org>
20127
20128 * makefile.w32-in (LIBS): Include OLE32.
20129
20130 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20131 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20132
201332007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20134
20135 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20136 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20137 from a Lisp_Object into a bare pointer.
20138 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20139 Adjust the code correspondingly.
20140
20141 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20142
20143 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20144 (term_show_mouse_face): Remove unused var `j'.
20145 (handle_one_term_event): Remove unused vars `i' and `j'.
20146 Don't cast return value of ttyname since it's not necessary.
20147
201482007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20149
20150 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20151 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20152
20153 * fns.c (map_char_table): Use an array of int for `indices' rather than
20154 an array of Lisp_Objects (which are only ever integers anyway).
20155 (Fmap_char_table): Update caller.
20156 * lisp.h: Update prototype.
20157 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20158 * fontset.c (Ffontset_info):
20159 * casetab.c (set_case_table): Update callers.
20160
20161 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20162
20163 * keymap.c (struct accessible_keymaps_data)
20164 (struct where_is_internal_data): New structures.
20165 (accessible_keymaps_1, where_is_internal_1): Use them to change
20166 interface to adhere to the one used by map_keymap.
20167 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20168 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20169
20170 * keymap.h (map_keymap_function_t): More informative prototype.
20171
201722007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20173
20174 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20175 (looking_at_1): Don't change search_regs and last_thing_searched
20176 if `inhibit-changing-match-data' is non-nil.
20177 (string_match_1, search_buffer, set_search_regs): Likewise.
20178 (syms_of_search): Add Lisp level definition for
20179 `inhibit-changing-match-data' and set it to nil.
20180 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20181 start and end of the match, instead of using values in search_regs.
20182
201832007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20184
20185 * minibuf.c (Fcompleting_read): New value `confirm-only'
20186 for `require-match'.
20187
201882007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20189
20190 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20191 part of the 2007-06-27 change to syms_of_fileio.
20192
201932007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20194
20195 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20196 Check WINDOWP before using XWINDOW. Consolidate return statements.
20197
201982007-06-27 Richard Stallman <rms@gnu.org>
20199
20200 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20201
202022007-06-27 Juanma Barranquero <lekktu@gmail.com>
20203
20204 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20205
202062007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20207
20208 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20209 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20210 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20211 (_free_internal, memalign): Use them.
20212 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20213 Initialize to PTHREAD_MUTEX_INITIALIZER.
20214 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20215 (morecore_nolock): Rename from morecore. All uses changed.
20216 Use only nolock versions of internal allocation functions.
20217 (_malloc_internal_nolock, _realloc_internal_nolock)
20218 (_free_internal_nolock): New functions created from
20219 _malloc_internal, _realloc_internal, and _free_internal.
20220 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20221 Copy hook value to automatic variable before its use.
20222 (memalign): Copy hook value to automatic variable before its use.
20223
202242007-06-26 Kenichi Handa <handa@m17n.org>
20225
20226 * coding.c (Ffind_operation_coding_system): Docstring improved.
20227 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20228
202292007-06-25 David Kastrup <dak@gnu.org>
20230
20231 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20232 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20233 cater for additional parameter.
20234
20235 * keymap.h: Adjust number of parameters to `current-active-maps'.
20236
20237 * doc.c (Fsubstitute_command_keys): Adjust call of
20238 `current-active-maps'.
20239
202402007-06-25 David Kastrup <dak@gnu.org>
20241
20242 * callint.c (Fcall_interactively): Make the parsing of interactive
20243 specs somewhat more readable.
20244
202452007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20246
20247 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20248 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20249 if extended background has already been filled.
20250
202512007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20252
20253 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20254 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20255
20256 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20257 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20258 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20259 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20260 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20261 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20262 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20263 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20264 Run timers during dialog popup.
20265 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20266
202672007-06-21 Jason Rumney <jasonr@gnu.org>
20268
20269 * image.c (convert_mono_to_color_image): Swap fore and background.
20270
202712007-06-20 Jason Rumney <jasonr@gnu.org>
20272
20273 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20274 (w32_free_bdf_font): Unmap memory not handle.
20275
202762007-06-20 Sam Steingold <sds@gnu.org>
20277
20278 * gmalloc.c (__morecore): Fix the declaration to comply with the
20279 definition.
20280
202812007-06-20 Juanma Barranquero <lekktu@gmail.com>
20282
20283 * w32term.c (w32_delete_display): Remove leftover declaration.
20284 (w32_define_cursor, w32_initialize): Make static.
20285
20286 * w32.c (_wsa_errlist): Fix typo in error message.
20287 (init_environment): Ignore any environment variable from the
20288 registry having a null value.
20289
202902007-06-20 Glenn Morris <rgm@gnu.org>
20291
20292 * Makefile.in (LIBGIF): Default to -lgif.
20293
202942007-06-17 Jason Rumney <jasonr@gnu.org>
20295
20296 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20297 unicode strings.
20298
202992007-06-16 Juanma Barranquero <lekktu@gmail.com>
20300
20301 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20302 Fix typo in docstring.
20303
203042007-06-16 Eli Zaretskii <eliz@gnu.org>
20305
20306 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20307 and their keybindings.
20308
203092007-06-15 Chong Yidong <cyd@stupidchicken.com>
20310
20311 * composite.c (update_compositions): Fix last fix.
20312
203132007-06-14 Jason Rumney <jasonr@gnu.org>
20314
20315 * w32.c (get_process_times_fn): New function pointer.
20316 (globals_of_w32): Intialize it if present in kernel32.dll.
20317 (w32_get_internal_run_time): New function.
20318
20319 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20320
203212007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20322
20323 * composite.c (update_compositions): Check the validness of
20324 compositions.
20325
203262007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20327
20328 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20329 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20330
20331 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20332 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20333
20334 * macgui.h (USE_MAC_TOOLBAR): New define.
20335
20336 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20337 Return immediately unless popup is activated.
20338
20339 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20340 background to scroll bar gap.
20341 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20342 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20343 scroll bars on frame edge. Check fringe background extension.
20344 Don't clear extended fringe background area.
20345 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20346 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20347 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20348 [USE_MAC_TOOLBAR]: New macros.
20349 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20350 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20351 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20352 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20353 [USE_MAC_TOOLBAR]: New functions.
20354 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20355 manually if previous repositioning has failed.
20356 (mac_handle_keyboard_event): Use precomputed event kind.
20357 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20358 as tool bar item click. Handle mouse movement over tool bar items.
20359
20360 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20361 toolbar_win_gravity.
20362 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20363 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20364 Add externs.
20365
20366 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20367 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20368
203692007-06-14 Chong Yidong <cyd@stupidchicken.com>
20370
20371 * image.c (search_image_cache): Remove unused variable.
20372
203732007-06-13 Chong Yidong <cyd@stupidchicken.com>
20374
20375 * xfns.c, xmenu.c: Link to xaw3d if available.
20376
203772007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20378
20379 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20380 frame_foreground and frame_background.
20381
20382 * image.c (lookup_image): Save frame foreground and background colors.
20383 (search_image_cache): Check if saved and current frame colors match.
20384
203852007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20386
20387 * regex.c (regex_compile): Remove the `regnum' counter.
20388 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20389
203902007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20391
20392 * term.c: Include intervals.h to declare Fget_text_property.
20393
203942007-06-10 Jason Rumney <jasonr@gnu.org>
20395
20396 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20397
203982007-06-08 Juanma Barranquero <lekktu@gmail.com>
20399
20400 * callint.c (Fcall_interactively):
20401 * editfns.c (Fdelete_and_extract_region):
20402 * fileio.c (Fread_file_name):
20403 * fns.c (Fmapconcat):
20404 * keyboard.c (cmd_error_internal):
20405 * keymap.c (Fkey_description):
20406 * lread.c (openp):
20407 * minibuf.c (read_minibuf):
20408 * search.c (wordify):
20409 * sunfns.c (sel_read):
20410 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20411 * xfns.c (x_default_scroll_bar_color_parameter):
20412 * xmenu.c (menu_help_callback):
20413 * xselect.c (Fx_get_atom_name):
20414 * xterm.c (x_term_init): Use empty_unibyte_string.
20415
204162007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20417
20418 * alloc.c (init_strings): Initialize canonical empty strings.
20419 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20420 canonical empty string when the requested size is 0.
20421
20422 * emacs.c (empty_unibyte_string): Rename from empty_string.
20423 (empty_multibyte_string): New canonical empty string.
20424 (syms_of_emacs): Don't initialize empty_string.
20425
20426 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20427 string, if appropriate.
20428 (empty_unibyte_string, empty_multibyte_string): New externs.
20429 (empty_string): Remove extern.
20430
20431 * lread.c (syms_of_lread): Use empty_unibyte_string.
20432
204332007-06-07 Jason Rumney <jasonr@gnu.org>
20434
20435 * s/ms-w32.h: Don't define HAVE_TZNAME.
20436
20437 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20438
204392007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20440
20441 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20442
20443 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20444 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20445
20446 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20447 Don't call next handler.
20448 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20449 Remove argument. Install handler to application.
20450 (set_frame_menubar): Don't change deep_p.
20451 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20452 FRAME_OUTER_TO_INNER_DIFF_Y.
20453 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20454 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20455 [HAVE_DIALOGS]: New macros.
20456 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20457 Use them.
20458 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20459
20460 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20461 init_service_handler. All callers changed. Return OSStatus value.
20462
20463 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20464 All callers changed so as not to call SetPortWindowPort.
20465 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20466 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20467 mac_draw_string_common.
20468 (mac_draw_image_string_qd): Likewise.
20469 (mac_draw_string_common): Use them. Add INLINE.
20470 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20471 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20472 GetGlobalMouse.
20473 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20474 and FRAME_OUTER_TO_INNER_DIFF_Y.
20475 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20476 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20477 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20478 repositioning window to mac_handle_window_event.
20479 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20480 saving window location to mac_handle_window_event
20481 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20482 (install_menu_target_item_handler): Remove argument in extern.
20483 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20484 Also accept command events.
20485 (do_keystroke): New function created from XTread_socket.
20486 (init_command_handler): Remove functions.
20487 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20488 and save window location by kEventWindowShowing and kEventWindowHiding
20489 handlers here. Don't call next handler for window state change and
20490 focus events.
20491 (mac_handle_application_event, mac_handle_keyboard_event)
20492 [TARGET_API_MAC_CARBON]: New functions.
20493 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20494 kEventWindowShowing and kEventWindowHiding events. Move installation
20495 of mouse, font, text input and menu target item handlers to
20496 install_application_handler.
20497 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20498 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20499 New function.
20500 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20501 Register it.
20502 (XTread_socket) [TARGET_API_MAC_CARBON]:
20503 Consolidate SendEventToEventTarget calls.
20504 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20505 Move application activation handler to mac_handle_application_event.
20506 Move keyboard handler to mac_handle_keyboard_event.
20507 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20508 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20509 init_command_handler. Call install_application_handler.
20510
20511 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20512 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20513
205142007-06-07 Glenn Morris <rgm@gnu.org>
20515
20516 * emacs.c (main): Use `emacs-copyright' in --version output.
20517
205182007-06-06 Chong Yidong <cyd@stupidchicken.com>
20519
20520 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20521
205222007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20523
20524 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20525
20526 * macgui.h: Replace WindowPtr with WindowRef.
20527
20528 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20529 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20530 Replace ControlHandle with ControlRef.
20531 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20532
20533 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20534 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20535 Replace ControlHandle with ControlRef.
20536 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20537 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20538
20539 * macterm.h (struct scroll_bar): Rename member control_handle_low
20540 and control_handle_high to control_ref_low and control_ref_high.
20541 All uses changed.
20542 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20543 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20544 respectively. All uses changed.
20545 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20546 (install_window_handler, remove_window_handler): Replace WindowPtr
20547 with WindowRef in externs.
20548
205492007-06-05 Juanma Barranquero <lekktu@gmail.com>
20550
20551 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20552
205532007-06-03 Nick Roberts <nickrob@snap.net.nz>
20554
20555 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20556
20557 * frame.c (Fmouse_position, Fmouse_pixel_position):
20558 Condition on HAVE_GPM too.
20559
20560 * term.c (term_mouse_highlight): Remove unused variables.
20561 (Fterm_open_connection): Set gpm_zerobased to 1.
20562 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20563 Use zero based co-ordinates.
20564 (handle_one_term_event): Report a drag as mouse movement too.
20565
20566 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20567
205682007-06-03 Chong Yidong <cyd@stupidchicken.com>
20569
20570 * image.c (search_image_cache): New function. Require background
20571 color match if background color is unspecified in the image spec.
20572 (uncache_image, lookup_image): Use it.
20573
205742007-06-01 Juanma Barranquero <lekktu@gmail.com>
20575
20576 * window.c (Fshrink_window): Reflow docstring.
20577
205782007-06-02 Chong Yidong <cyd@stupidchicken.com>
20579
20580 * Version 22.1 released.
20581
205822007-06-01 Richard Stallman <rms@gnu.org>
20583
20584 * xfns.c (x_encode_text): Add GCPRO.
20585
205862007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20587
20588 * xfns.c (x_set_name_internal): Save encoded name before
20589 x_encode_text in case string data is relocated.
20590
205912007-05-31 Richard Stallman <rms@gnu.org>
20592
20593 * buffer.c (syms_of_buffer): Doc fix.
20594
205952007-05-30 Nick Roberts <nickrob@snap.net.nz>
20596
20597 * sysdep.c (init_sys_modes): Add rather than replace with
20598 O_NONBLOCK.
20599
20600 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20601 term_mouse_moveto.
20602
20603 * termhooks.h (term_mouse_moveto): New extern.
20604
20605 * term.c (mouse_face_window): Rename...
20606 (Qmouse_face_window): ...to this.
20607 (term_show_mouse_face, term_clear_mouse_face)
20608 (term_mouse_highlight): Use Qmouse_face_window.
20609 (term_mouse_moveto): New function.
20610 (term_mouse_position): Make it work.
20611 (syms_of_term): Uncomment assignment to mouse_position_hook.
20612 Staticpro Qmouse_face_window.
20613
206142007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20615
20616 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20617 around current_column call.
20618
206192007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20620
20621 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20622 * xdisp.c (next_element_from_buffer):
20623 * window.c (delete_window):
20624 * term.c (term_mouse_highlight):
20625 * msdos.c (getdefdir):
20626 * macterm.c (mac_create_bitmap_from_bitmap_data)
20627 (init_font_name_table):
20628 * fns.c (Fsxhash):
20629 * data.c (Fmake_local_variable):
20630 * ccl.c (ccl_driver): Likewise.
20631
206322007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20633
20634 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20635 Call mac_wakeup_from_rne on window size change.
20636
206372007-05-25 Chong Yidong <cyd@stupidchicken.com>
20638
20639 * image.c (uncache_image): Fix typo.
20640
206412007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20642
20643 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20644
206452007-05-22 Richard Stallman <rms@gnu.org>
20646
20647 * xterm.c (x_connection_closed): Remove NO_RETURN.
20648
206492007-05-22 Martin Rudalics <rudalics@gmx.at>
20650
20651 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20652
206532007-05-21 Chong Yidong <cyd@stupidchicken.com>
20654
20655 * image.c (uncache_image): New function.
20656 (Fimage_refresh): New function.
20657
206582007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20659
20660 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20661
206622007-05-20 Nick Roberts <nickrob@snap.net.nz>
20663
20664 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20665 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20666
206672007-05-20 Nick Roberts <nickrob@snap.net.nz>
20668
20669 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20670 conditional on [HAVE_GPM_H].
20671
206722007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20673
20674 * syntax.c (skip_chars): Update syntax-table only after we checked that
20675 the new location is valid.
20676
206772007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20678
20679 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20680 mac_get_window_bounds.
20681
206822007-05-20 Nick Roberts <nickrob@snap.net.nz>
20683
20684 * Makefile.in (LIBGPM): Allow it to be set from configure.
20685 If set then link Emacs with it.
20686
20687 * config.in: Regenerate.
20688
20689 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20690 New externs.
20691
20692 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20693 Include gpm.h.
20694 (handle_one_term_event, term_gpm): New externs.
20695
20696 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20697 and allow it to be interrupted by SIGIO.
20698
20699 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20700 (wait_reading_process_output): Wait on gpm_fd too.
20701 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20702 (add_gpm_wait_descriptor_called_flag): New variable.
20703 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20704
20705 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20706 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20707 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20708 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20709 (make_lispy_event): Add case GPM_CLICK_EVENT.
20710 (read_avail_input): Handle mouse input.
20711
20712 * term.c (write_glyphs_with_face): New function.
20713 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20714 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20715 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20716 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20717 (last_mouse_x, last_mouse_y): New variables.
20718 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20719 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20720 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20721 (Fterm_close_connection): New functions.
20722 (term_init): Initialise mouse_face_window.
20723
207242007-05-19 Chong Yidong <cyd@stupidchicken.com>
20725
20726 * xdisp.c (redisplay_window): If first window line is a
20727 continuation line, recompute the new window start instead of
20728 recentering.
20729
207302007-05-18 Glenn Morris <rgm@gnu.org>
20731
20732 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20733 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20734
207352007-05-17 Glenn Morris <rgm@gnu.org>
20736
20737 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20738
207392007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20740
20741 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20742 dead key repeat and up events.
20743
207442007-05-14 Chong Yidong <cyd@stupidchicken.com>
20745
20746 * image.c (pbm_load): Check image size for monochrome pbm.
20747
207482007-05-13 Chong Yidong <cyd@stupidchicken.com>
20749
20750 * xterm.c (XTread_socket): Revert last change.
20751
207522007-05-12 Chong Yidong <cyd@stupidchicken.com>
20753
20754 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20755
20756 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20757
207582007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20759
20760 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20761 mixup (YAILOM).
20762
207632007-05-07 Andreas Schwab <schwab@suse.de>
20764
20765 * keymap.c (Flookup_key): Fix typo in last change.
20766
207672007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20768
20769 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20770 mapping for unibyte strings.
20771
207722007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20773
20774 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20775 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20776
207772007-04-29 Richard Stallman <rms@gnu.org>
20778
20779 * insdel.c (replace_range): For undo, record insertion first.
20780
207812007-04-29 Andreas Schwab <schwab@suse.de>
20782
20783 * lisp.h (VECSIZE): Use OFFSETOF.
20784
207852007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20786
20787 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20788 disabled lines.
20789
207902007-04-28 Richard Stallman <rms@gnu.org>
20791
20792 * lread.c (read_escape): In a string, \s is always space.
20793
207942007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20795
20796 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20797
20798 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20799 submenu for menu bar items.
20800
20801See ChangeLog.10 for earlier changes.
20802
20803;; Local Variables:
20804;; coding: utf-8
20805;; add-log-time-zone-rule: t
aac0c6e3
MR
20806;; End:
20807
76b6f707 20808 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20809
20810 This file is part of GNU Emacs.
20811
20812 GNU Emacs is free software: you can redistribute it and/or modify
20813 it under the terms of the GNU General Public License as published by
20814 the Free Software Foundation, either version 3 of the License, or
20815 (at your option) any later version.
20816
20817 GNU Emacs is distributed in the hope that it will be useful,
20818 but WITHOUT ANY WARRANTY; without even the implied warranty of
20819 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20820 GNU General Public License for more details.
20821
20822 You should have received a copy of the GNU General Public License
20823 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20824
20825;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40