* window.el (display-buffer-mark-dedicated): New var.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
82c602f0
RS
12009-11-19 Richard Stallman <rms@gnu.org>
2
3 * lread.c (Funintern): Error if symbol is t or nil.
4
87e32266
SM
52009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 * insdel.c (make_gap_larger): Don't make as many assumptions about the
8 representation of Lisp integers.
9 Reported by MJ Chan <mjchan.inbox@gmail.com>.
10
1b9ac145
AS
112009-11-17 Andreas Schwab <schwab@linux-m68k.org>
12
13 * lisp.h: Remove declaration of Ffont_get_system_font.
14 * xfns.c: Move include of "xsettings.h".
15 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
16
dfb3c4c6
JD
172009-11-17 Jan Djärv <jan.h.d@swipnet.se>
18
87e32266
SM
19 * xsettings.c (something_changedCB, Ffont_get_system_font):
20 Check use_system_font.
dfb3c4c6
JD
21 (syms_of_xsettings): DEFVAR font-use-system-font.
22
9370c1d8
AS
232009-11-17 Andreas Schwab <schwab@linux-m68k.org>
24
25fe851a
AS
25 * xfns.c (x_default_font_parameter): Remove dead assignment.
26
9370c1d8
AS
27 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
28
637fa988
JD
292009-11-17 Jan Djärv <jan.h.d@swipnet.se>
30
87e32266 31 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 32 not have FC_LCD_*. #define them if not there.
a6eb20d8 33
87e32266 34 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 35
637fa988
JD
36 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
37
38 * xterm.c (handle_one_xevent): Call xft_settings_event for
39 ClientMessage, PropertyNotify and DestroyNotify.
40 (x_term_init): If we have XFT, get DPI from Xft.dpi.
41 Call xsettings_initialize.
42
43 * xftfont.c (xftfont_fix_match): New function.
44 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
45 Call xftfont_fix_match after XftFontMatch.
46
47 * xfont.c (xfont_driver): Initialize all members.
48
87e32266
SM
49 * xfns.c (x_default_font_parameter):
50 Try font from Ffont_get_system_font.
637fa988
JD
51 Do not get font from x_default_parameter if we got one from
52 Ffont_get_system_font.
87e32266 53 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
54
55 * w32font.c (w32font_driver): Initialize all members.
56
57 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
58
59 * lisp.h: Declare syms_of_xsettings.
60
87e32266
SM
61 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
62 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
63
64 * ftfont.c (ftfont_filter_properties): New function.
65
66 * frame.c (x_set_font): Remove unused variable lval.
67
87e32266 68 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
69
70 * font.c (font_put_extra): Don't return if val is nil, it means
71 boolean option is off.
72 (font_parse_fcname): Collect all extra properties in extra_props
73 and call filter_properties for all drivers with extra_props and
74 font as parameter.
87e32266
SM
75 (font_open_entity): Do not use cache, it does not pick up new
76 fontconfig settings like hinting.
637fa988
JD
77 (font_load_for_lface): If spec had a name in it, store it in entity.
78
79 * emacs.c (main): Call syms_of_xsettings
80
81 * config.in: HAVE_GCONF is new.
82
83 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
84 xsettings.o is new.
85
5a942932
KH
862009-11-17 Kenichi Handa <handa@m17n.org>
87
88 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
89 back to the default font in case that no suitable font is found.
90
b7c7a4d1
SM
912009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
92
93 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
94 Suggested by Chad Brown <yandros@mit.edu>.
95 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
96
072f1e39
JD
972009-11-16 Jan Djärv <jan.h.d@swipnet.se>
98
99 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
100
5d1e70a2
AS
1012009-11-14 Andreas Schwab <schwab@linux-m68k.org>
102
87e32266 103 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 104
a53cfbe5
JD
1052009-11-14 Jan Djärv <jan.h.d@swipnet.se>
106
473a99b7
JD
107 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
108 has a parent.
109
a53cfbe5
JD
110 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
111 dependency files in deps/. Include those files into Makefile.
112
113 * config.in: Generated (AUTO_DEPEND).
114
f04bb9b2
MA
1152009-11-13 Michael Albinus <michael.albinus@gmx.de>
116
b7c7a4d1 117 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
118 Vdbus_registered_functions_table, because it contains also
119 properties. Fix docstring.
b7c7a4d1 120 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 121
8f11f7ec
SM
1222009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
123
124 * alloc.c (mark_object): Don't reprocess marked strings.
125 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
126 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
127
8a605fe8
KH
1282009-11-13 Kenichi Handa <handa@m17n.org>
129
8f11f7ec 130 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
131 semantics of Vword_combining_categories.
132 (Vword_combining_categories): Describe the slight change of the
133 semantics.
134
241c4680
EZ
1352009-11-13 Eli Zaretskii <eliz@gnu.org>
136
137 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
138
139 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
140
5d58e44c
SM
1412009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
142
143 * xdisp.c (syms_of_xdisp): Fix typo in last change.
144
5e13f9d3
JB
1452009-11-12 Juanma Barranquero <lekktu@gmail.com>
146
147 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
148
cf54c754
DR
1492009-11-11 David Reitter <david.reitter@gmail.com>
150
151 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
152 variables to fix 2009-11-09 change.
153
a4ada374
DN
1542009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
155
91433552
DN
156 * process.c (ifflag_def): Make flag_sym constant.
157 (Fnetwork_interface_info): Use a constant pointer.
158 (ifflag_table):
159 * xfns.c (cursor_bits):
160 * xdisp.c (power_letter):
161 * termcap.c (speeds, esctab):
162 * sysdep.c (baud_convert):
163 * keyboard.c (lispy_accent_codes, modifier_names):
164 * image.c (xbm_format, xpm_format, pbm_format, png_format)
165 (jpeg_format, tiff_format, gif_format, svg_format)
166 (interlace_start, interlace_increment, gs_format):
167 * gtkutil.c (separator_names):
168 * fringe.c (swap_nibble):
169 * fns.c (base64_value_to_char, base64_char_to_value):
170 * fileio.c (make_temp_name_tbl):
171 * coding.c (suffixes): Make constant.
172
f4265f6c
DN
173 * frame.c (make_initial_frame):
174 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
175 build_string.
176 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
177
04420943
DN
178 * s/freebsd.h:
179 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
180
0a5d24ae
DN
181 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
182 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
183
a4ada374
DN
184 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
185 * xterm.c (syms_of_xterm):
186 * xfaces.c (syms_of_xfaces):
187 * xdisp.c (syms_of_xdisp):
188 * lread.c (syms_of_lread):
189 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
190 build_string.
91433552 191
a4ada374
DN
192 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
193
af98fc7f
SM
1942009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
195
196 * fns.c (Fplist_get): Merge the active and the uncommented code.
197
e90292a9
JD
1982009-11-10 Jan Djärv <jan.h.d@swipnet.se>
199
200 * keyboard.h: Declare timer_check.
201
202 * keyboard.c (timer_check_2): New function that does what the old
203 timer_check did.
204 (timer_check): Call timer_check_2 until -1 or a non-zero time is
205 returned, i.e. don't return -1 with timers pending.
206
207 * process.c: Remove extern declaration of timer_check.
208
209 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
210 even if timer_check returned -1.
211
af98fc7f
SM
212 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
213 xg_dialog_data.
e90292a9
JD
214 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
215 the event loop.
216 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
217 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
218 Destroy the dialog after xg_dialog_run.
219
045b83c0
SM
2202009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
221
222 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
223
1fb99a3a
JD
2242009-11-10 Jan Djärv <jan.h.d@swipnet.se>
225
226 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
227
04e452cb
JB
2282009-11-09 Juanma Barranquero <lekktu@gmail.com>
229
230 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
231
ef7417fd
SM
2322009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
233
234 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
235 w32menu.c, and nsmenu.m.
236 Simplify the obsolete case where position is nil.
237 (cleanup_popup_menu): New function, moved from nsmenu.m.
238 (struct skp): Remove slot `notreal'.
239 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
240 adjust callers.
241 (single_menu_item): Adjust call to parse_menu_item.
242 (syms_of_menu): Defsubr x-popup-menu.
243 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
244 (keymap_panes): Don't export any more.
245 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
246 (xmenu_show): Declare.
247 * keyboard.c (parse_menu_item): Remove arg `notreal'.
248 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
249 * keyboard.h (parse_menu_item): Update declaration.
250 * xmenu.c (Fx_popup_menu): Remove.
251 (syms_of_xmenu): Don't defsubr x-popup-menu.
252 * w32menu.c (Fx_popup_menu): Remove.
253 (syms_of_w32menu): Don't defsubr x-popup-menu.
254 * nsmenu.m (cleanup_popup_menu): Remove.
255 (ns_menu_show): Rename from ns_popup_menu and remove all the code
256 moved to menu.c's Fx_popup_menu.
257 (Fx_popup_menu): Remove.
258 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
259 menu_items (it's done in menu.c already).
260
424d6179
SM
2612009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
262
263 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
264 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
265
c0df13a6 2662009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
267
268 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 269 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
270 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
271 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
272
2de9f71c
SM
2732009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
274
275 Let integers use up 2 tags to give them one extra bit and thus double
276 their range.
277 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
278 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
279 New macros.
280 (enum Lisp_Type): Use them. Give explicit values.
281 (Lisp_Type_Limit): Remove.
282 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
283 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
284 Pay attention to USE_2_TAGS_FOR_INTS.
285 (INTEGERP): Use LISP_INT_TAG_P.
286 * fns.c (internal_equal): Simplify the default case.
287 (sxhash): Use case_Lisp_Int.
288 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
289 any more.
290 (Ftype_of): Use case_Lisp_Int.
291 (store_symval_forwarding): Take into account the fact that Ints can
292 now have more than one tag.
293 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
294 buffer_slot_type_mismatch):
295 * xfaces.c (face_attr_equal_p):
296 * print.c (print_object):
297 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
298 Use case_Lisp_Int.
299
323637a2
EZ
3002009-11-06 Eli Zaretskii <eliz@gnu.org>
301
7ac65b38
EZ
302 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
303
323637a2
EZ
304 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
305 warning.
306
e511451f
JD
3072009-11-06 Jan Djärv <jan.h.d@swipnet.se>
308
309 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
310
311 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
312
313 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
314 ButtonPressRelease and MotionNotify (bug#4870).
315
5e2327cf
DN
3162009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
317
5adc433e
DN
318 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
319
d67b4f80
DN
320 * xterm.c (syms_of_xterm):
321 * xselect.c (syms_of_xselect):
322 * xmenu.c (syms_of_xmenu):
323 * xfns.c (syms_of_xfns):
324 * xfaces.c (syms_of_xfaces):
325 * xdisp.c (syms_of_xdisp):
326 * window.c (syms_of_window):
327 * w32fns.c (syms_of_w32fns):
328 * undo.c (syms_of_undo):
329 * textprop.c (syms_of_textprop):
330 * terminal.c (syms_of_terminal):
331 * syntax.c (syms_of_syntax):
332 * sound.c (syms_of_sound):
333 * search.c (syms_of_search):
334 * print.c (syms_of_print):
335 * minibuf.c (syms_of_minibuf):
336 * macros.c (syms_of_macros):
337 * keymap.c (syms_of_keymap, initial_define_key)
338 (initial_define_lispy_key):
339 * keyboard.c (syms_of_keyboard):
340 * insdel.c (syms_of_insdel):
341 * image.c (syms_of_image):
342 * fringe.c (syms_of_fringe):
343 * frame.c (syms_of_frame):
344 * fontset.c (syms_of_fontset):
345 * fns.c (syms_of_fns):
346 * fns.c (syms_of_fns):
347 * fileio.c (syms_of_fileio):
348 * fileio.c (syms_of_fileio):
349 * eval.c (syms_of_eval):
350 * doc.c (syms_of_doc):
351 * dispnew.c (syms_of_display):
352 * dired.c (syms_of_dired):
353 * dbusbind.c (syms_of_dbusbind):
354 * data.c (syms_of_data):
355 * composite.c (syms_of_composite):
356 * coding.c (syms_of_coding):
357 * cmds.c (syms_of_cmds):
358 * charset.c (define_charset_internal, syms_of_character):
359 * ccl.c (syms_of_ccl):
360 * category.c (syms_of_category, init_category_once):
361 * casetab.c (syms_of_casetab):
362 * casefiddle.c (syms_of_casefiddle):
363 * callint.c (syms_of_callint):
364 * bytecode.c (syms_of_bytecode):
365 * buffer.c (keys_of_buffer, syms_of_buffer):
366 * alloc.c (syms_of_alloc):
367 * process.c (syms_of_process, init_process):
368 * lread.c (syms_of_lread, init_obarray):
369 * font.c (build_style_table):
370 * emacs.c (syms_of_emacs, main): Replace calls to intern with
371 intern_c_string, calls to make_pure_string with
372 make_pure_c_string. Use pure_cons instead of Fcons.
373
5e2327cf
DN
374 * process.c (socket_options): Make it const.
375 (set_socket_option, init_process): Use a const pointer.
376
377 * lread.c (intern_c_string): New function.
378 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
379 (defvar_int): Uset it. Make the name const char*.
380
381 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
382 (defvar_int): Update prototypes.
383 (DEFUN, EXFUN): Support for prototypes is now required.
384 (intern_c_string): New prototype.
385 (struct Lisp_Subr): Make symbol_name constant.
386
387 * font.c (struct table_entry): Remove unused member. Make NAMES
388 constant.
389 (weight_table, slant_table, width_table): Make constant.
390
391 * emacs.c (struct standard_args): Make name and longname constant.
392
393 * character.h (DEFSYM): Use intern_c_string.
394
a56eaaef
DN
3952009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
396
397 * alloc.c (make_pure_c_string): New function.
398
399 * eval.c (Fautoload): Purecopy all arguments.
400
f6a07420
KH
4012009-11-05 Kenichi Handa <handa@m17n.org>
402
403 * fileio.c (Finsert_file_contents): Be sure set coding-system of
404 the buffer in case of replace.
405
5d28d4b1
DN
4062009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
407
408 * puresize.h (BASE_PURESIZE): Increase to 1620000.
409
b349d111
SM
4102009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
411
d528b1ce
SM
412 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
413 when applicable (bug#4851).
414
b349d111
SM
415 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
416 (P_): Support for prototypes is now required.
417
c38eb027
CY
4182009-10-31 Chong Yidong <cyd@stupidchicken.com>
419
420 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
421 (Bug#4827).
422
0405f8d9
EZ
4232009-10-30 Eli Zaretskii <eliz@gnu.org>
424
d528b1ce 425 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 426
ca0a881a
DN
4272009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
428
429 * puresize.h (BASE_PURESIZE): Increase to 1470000.
430
d528b1ce
SM
431 * lread.c (Fload): Purecopy the file name when building
432 Vpreloaded_file_list.
ca0a881a 433
47e0e0e4
JR
4342009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
435
436 * w32fns.c (syms_of_w32fns): Change default value of
437 w32-scroll-lock-modifier to nil. (Bug#2827)
438
057bce6f
JB
4392009-10-26 Juanma Barranquero <lekktu@gmail.com>
440
782a943e 441 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 442
242bc74c
AS
4432009-10-26 Andreas Schwab <schwab@redhat.com>
444
445 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
446
522d013a
JB
4472009-10-26 Juanma Barranquero <lekktu@gmail.com>
448
449 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
450 For delta < 0, skip check that only makes sense when the mini-window
451 is going to be enlarged. (Bug#4534)
452
18060980
CY
4532009-10-25 Chong Yidong <cyd@stupidchicken.com>
454
455 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
456 string in menu maps (Bug#4471).
457
fec8f0fe
CY
4582009-10-24 Chong Yidong <cyd@stupidchicken.com>
459
460 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
461 FRAME_NS_VIEW on terminal frames (Bug#4765).
462
10d66ec0
AS
4632009-10-24 Andreas Schwab <schwab@linux-m68k.org>
464
1cae01f7
AS
465 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
466 DBUS_TYPE_UINTnn separately to get proper sign extension.
467
58a12889
AS
468 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
469 can properly handle unsigned types.
d528b1ce 470 (make_uid, make_gid): Remove.
58a12889 471
987c9327
AS
472 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
473 types again.
474
522d013a 475 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
476 (system_process_attributes): Likewise.
477
905a9ed3
DN
4782009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
479
480 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
481
482 * eval.c (Fautoload): Purecopy the filename. Simplify.
483
484 * category.c (Fdefine_category): Purecopy docstring.
485
a599b3e8
AS
4862009-10-23 Andreas Schwab <schwab@linux-m68k.org>
487
7b792fc9
AS
488 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
489
a599b3e8
AS
490 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
491
b35ac83e
CY
4922009-10-23 Chong Yidong <cyd@stupidchicken.com>
493
494 * window.c (Fwindow_edges, Fwindow_pixel_edges)
495 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
496 (Bug#4775).
497
e8903e00
SM
4982009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
499
500 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
501 (init_fileio_once):
502 * lisp.h (init_fileio_once): Remove.
503 * emacs.c (main): Don't call init_fileio_once.
504
8f43cbf3
DN
5052009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
506
507 * puresize.h (BASE_PURESIZE): Increase to 1430000.
508
26898943
AS
5092009-10-21 Andreas Schwab <schwab@linux-m68k.org>
510
511 * doprnt.c (doprnt): Fix overflow check.
512
5c646d5a
JD
5132009-10-21 Jan Djärv <jan.h.d@swipnet.se>
514
3132a7ea
JD
515 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
516
5c646d5a
JD
517 * xterm.h (x_wait_for_event): Declare it.
518
519 * xterm.c (pending_event_wait): New variable.
520 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
521 see pending_event_wait.eventtype.
522 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
523 (x_new_font): Call change_frame_size with new rows/columns before we
524 try to resize the frame.
5c646d5a 525 (x_wait_for_event): New function.
d528b1ce
SM
526 (x_set_window_size_1): Don't change gravity unless change_gravity
527 is set.
5c646d5a
JD
528 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
529 don't change frame size, instead wait for the ConfigureNotify.
530 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
531 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
532 (x_initialize): Initialize pending_event_wait.
533
534 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
535 size.
536
537 * widget.c (EmacsFrameSetValues): Add comment.
538 (EmacsFrameSetCharSize): Just call x_set_window_size.
539
540 * gtkutil.c (xg_frame_set_char_size): Flush events and call
541 x_wait_for_event.
d528b1ce 542 (flush_and_sync): Remove again.
5c646d5a
JD
543 (xg_get_font_name): Suggest monospace if no previous font is known.
544
e9c1637d
SM
5452009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
546
547 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 548 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 549
5a72cccb
YM
5502009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
551
552 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
553 processing pending events when event is filtered for input method.
ab04798f 554 (Bug#3681)
5a72cccb 555
2629aa37
JB
5562009-10-20 Juanma Barranquero <lekktu@gmail.com>
557
558 * fns.c: Add #endif accidentally removed in previous change.
559
c3417a74
DN
5602009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
561
562 * fns.c: Remove code for unsupported system: MAC_OS.
563 * image.c: Likewise. Include setjmp.h.
564
9685cef2
JD
5652009-10-19 Jan Djärv <jan.h.d@swipnet.se>
566
567 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
568 pixel -1 (bug #4742).
569
d7306fe6
DN
5702009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
571
019d2c4c
DN
572 * process.c (create_pty): Remove conditionals for no longer
573 supported systems: UNIPLUS and RTU.
574
ee6bacd4
DN
575 * xterm.c:
576 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
577
d7306fe6
DN
578 * alloc.c: Do not define struct catchtag.
579 * eval.c: Move struct catchtag definition ...
580 * lisp.h: ... here.
581
582 * image.c: Move png.h #include earlier to avoid warnings.
583
584 * xterm.c:
585 * xsmfns.c:
586 * xselect.c:
587 * xrdb.c:
588 * xmenu.c:
589 * xftfont.c:
590 * xfont.c:
591 * xfns.c:
592 * xfaces.c:
593 * xdisp.c:
594 * window.c:
595 * widget.c:
596 * w32xfns.c:
597 * w32uniscribe.c:
598 * w32term.c:
599 * w32select.c:
600 * w32reg.c:
601 * w32proc.c:
602 * w32menu.c:
603 * w32inevt.c:
604 * w32heap.c:
605 * w32font.c:
606 * w32fns.c:
607 * w32console.c:
608 * w32.c:
609 * w16select.c:
610 * vm-limit.c:
611 * unexsol.c:
612 * unexec.c:
613 * unexcw.c:
614 * unexaix.c:
615 * undo.c:
616 * tparam.c:
617 * textprop.c:
618 * terminfo.c:
619 * terminal.c:
620 * termcap.c:
621 * term.c:
622 * syntax.c:
623 * sound.c:
624 * sheap.c:
625 * search.c:
626 * scroll.c:
627 * region-cache.c:
628 * regex.c:
629 * ralloc.c:
630 * process.c:
631 * print.c:
b024548b
DN
632 * nsterm.m:
633 * nsselect.m:
634 * nsmenu.m:
635 * nsimage.m:
636 * nsfont.m:
637 * nsfns.m:
d7306fe6
DN
638 * msdos.c:
639 * minibuf.c:
640 * menu.c:
641 * marker.c:
642 * macros.c:
643 * keymap.c:
644 * keyboard.c:
645 * intervals.c:
646 * insdel.c:
647 * indent.c:
648 * gtkutil.c:
649 * ftxfont.c:
650 * ftfont.c:
651 * fringe.c:
652 * frame.c:
653 * fontset.c:
654 * font.c:
655 * fns.c:
656 * floatfns.c:
657 * filelock.c:
658 * fileio.c:
659 * emacs.c:
660 * editfns.c:
661 * dosfns.c:
662 * doprnt.c:
663 * doc.c:
664 * dispnew.c:
665 * dired.c:
666 * dbusbind.c:
667 * data.c:
668 * composite.c:
669 * coding.c:
670 * cmds.c:
671 * cm.c:
672 * chartab.c:
673 * charset.c:
674 * character.c:
675 * ccl.c:
676 * category.c:
677 * casetab.c:
678 * casefiddle.c:
679 * callproc.c:
680 * callint.c:
681 * bytecode.c:
682 * buffer.c:
683 * atimer.c: Include setjmp.h. (Bug#4643)
684
fd5f21e6
SM
6852009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
686
4c0354d7
SM
687 Remove leftover table unibyte_to_multibyte_table.
688 * character.c (unibyte_to_multibyte_table): Remove.
689 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
690 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
691 * character.h (UNIBYTE_TO_CHAR): New macro.
692 (MAKE_CHAR_MULTIBYTE): Use it.
693 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
694 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
695 (message_dolog, set_message_1):
696 * search.c (Freplace_match):
697 * editfns.c (Fcompare_buffer_substrings):
698 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
699 (concat):
700 * insdel.c (copy_text, count_size_as_multibyte):
701 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
702 * term.c (produce_glyphs):
703 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
704 * regex.c (RE_CHAR_TO_MULTIBYTE):
705 * cmds.c (internal_self_insert):
706 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
707
fd5f21e6
SM
708 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
709
4418646e
DN
7102009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
711
712 * puresize.h (BASE_PURESIZE): Increase to 1310000.
713
35f5c1d2
JB
7142009-10-16 Juanma Barranquero <lekktu@gmail.com>
715
716 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
717
a0cd8f6b
AR
7182009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
719
720 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
721 still needed under Tiger.
722
723 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
724
725 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
726 __Apple__.
727
728 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
729
01a8d3fa
KH
7302009-10-15 Kenichi Handa <handa@m17n.org>
731
732 * print.c (print_object): Escape a symbol like "2E10" too.
733
bf6c75c9 7342009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
735
736 Cleanups and changes for 64-bit compile under Snow Leopard.
737 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
738
739 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
740
c5959062 741 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
742 (ns_findfonts, nsfont_list_family): Use long format in printf, and
743 cast argument.
744 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 745 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
746
747 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
748
749 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
750 where appropriate.
751
752 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
753 where appropriate.
6e4780c5
JB
754 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
755 Use stringWithUTF8String.
bf6c75c9
AR
756 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
757
6e4780c5
JB
758 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
759 Add formal protocol mention to inheritance.
bf6c75c9
AR
760 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
761
6e4780c5
JB
762 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
763 Fix printf format.
bf6c75c9
AR
764 (ns_query_color): Use CGFloat where appropriate.
765 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
766 (EmacsScroller-mouseDown:) Use long format in printf, and cast
767 argument.
768
3d87f118
AR
769 * config.in (NS_HAVE_NSINTEGER): Drop.
770
a95c8102
AR
771 * dbusbind.c (dbus-method-return-internal)
772 (dbus-method-error-internal): Use long format in printf, and cast
773 argument.
774
775 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
776 in printf, and cast argument.
777
6873acca 778 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
779 cast argument.
780
9ec6f100
GM
7812009-10-11 Glenn Morris <rgm@gnu.org>
782
783 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
784
5be883cd
JD
7852009-10-08 Jan Djärv <jan.h.d@swipnet.se>
786
787 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
788 menu bar with a small width so it doesn't enlarge the frame.
789
d7a39b51
JB
7902009-10-08 Juanma Barranquero <lekktu@gmail.com>
791
792 * fontset.c (Fset_fontset_font): Fix typos in error messages.
793
0c2b6f8e
GM
7942009-10-06 Glenn Morris <rgm@gnu.org>
795
796 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
797 SOME_MACHINE_LISP (this enters indirectly via DOC).
798
e02131a2
EZ
7992009-10-05 Eli Zaretskii <eliz@gnu.org>
800
801 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
802
b4744254
EZ
8032009-10-04 Eli Zaretskii <eliz@gnu.org>
804
805 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
806 Doc fix.
807
dbf64827
JB
8082009-10-03 Martin Rudalics <rudalics@gmx.at>
809
810 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
811
e9a0aef8
MA
8122009-10-02 Michael Albinus <michael.albinus@gmx.de>
813
d528b1ce 814 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
815 used anymore outside fileio.c.
816
817 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
818
64eb2b56
JB
8192009-10-01 Juanma Barranquero <lekktu@gmail.com>
820
821 * lisp.h (Qdelete_directory_internal):
822 Declare, instead of Qdelete_directory.
823
824 * w32fns.c (Fsystem_move_file_to_trash): Use it.
825
9d28c33e
SM
8262009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
827
828 * eval.c (Fcalled_interactively_p): Add `kind' argument.
829
9d8f3bd9
MA
8302009-10-01 Michael Albinus <michael.albinus@gmx.de>
831
9d28c33e 832 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
833 Fdelete_directory. It is not a command anymore. It has no file
834 name handler.
835
9694740b
SM
8362009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
837
838 * xdisp.c (get_next_display_element): Use an enum in last change.
839
748e162f
KH
8402009-09-28 Kenichi Handa <handa@m17n.org>
841
9694740b 842 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
843 unibyte_display_via_language_environment in handling
844 Vnobreak_char_display.
845
17efd58d
AR
8462009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
847
848 * nsterm.h (ns_app_name): New extern variable.
849
850 * nsterm.m (ns_app_name): New variable.
851 (ns_term_init): Set and use it.
852 (ns_term_shutdown): Use it.
853
854 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
855 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
856
857 * nsfns.m (ns_set_name_iconic, ns_set_name)
858 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
859 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
860
9694740b
SM
861 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
862 Remove double-casting in client_data comparison.
31c2d412 863
3208cb35
YM
8642009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
865
866 * keyboard.c (make_lispy_event): Remember last wheel direction.
867 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
868
b7d552d6
GM
8692009-09-26 Glenn Morris <rgm@gnu.org>
870
871 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
872 internal.elc. Add term/pc-win.elc.
873 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
874 term/x-win.elc.
875 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
876 term/w32-win.elc.
877 (NS_SUPPORT): New.
878 (lisp): Add NS_SUPPORT.
879 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
880
4ff670a8
DR
8812009-09-25 David Reitter <david.reitter@gmail.com>
882
883 * nsmenu.m (EmacsMenu-clear): Recognize application menu
884 on Mac OS X 10.6+ (bug#4513).
885
feabfb6c
JB
8862009-09-24 Juanma Barranquero <lekktu@gmail.com>
887
888 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
889 some parts of Emacs code (like font selection) don't grok them.
890 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 891
de59072a
AS
8922009-09-24 Andreas Schwab <schwab@redhat.com>
893
894 * coding.c (decode_coding_iso_2022): Fix operator precedence.
895
a489517b
JB
8962009-09-24 Juanma Barranquero <lekktu@gmail.com>
897
898 * dired.c (Fdirectory_files): Fix typo in docstring.
899
0592970c
AR
9002009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
901
902 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
903 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
904 (EmacsScroller-setPosition:portion:whole:): Remove -display call
905 under GNUstep.
906 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
907
908 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
909 glyph advancement.
910
48e8a88b
AR
9112009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
912
913 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 914 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
915
916 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
917 deleted (bug #4492).
918
e14f0a78
AR
919 * nsfont.m (Vns_reg_to_script): New lisp variable.
920 (syms_of_nsfont): Declare it.
921 (ns_registry_to_script): New function.
922 (ns_get_req_script): Call it.
923 (ns_findfonts): Don't give up on non-unicode registry.
924
925 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
926
5b650faa
SM
9272009-09-20 Tom Tromey <tromey@redhat.com>
928
929 * eval.c (find_handler_clause): Make stack-trace-on-error work in
930 batch mode (bug#4228).
931
a489517b 9322009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
933
934 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 935 carefully. (Bug #4339)
0bae4e09 936
fcfe06f3
CY
9372009-09-18 Chong Yidong <cyd@stupidchicken.com>
938
d798ba87 939 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 940
31642728
AR
9412009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
942
943 * emacs.c (inhibit_x_resources): Update doc string for NS.
944 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 945 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
946
947 * nsterm.h (ns_no_defaults): Remove.
948
949 * nsterm.m (ns_no_defaults): Remove.
950 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
951 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
952 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
953 don't update the NSWindow itself.
954 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 955 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
956
957 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
958 ns_use_qd_smoothing.
959
960 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
961 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 962 (x-close-connection): Drop PSFlush() under OS X.
a489517b 963 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 964
8686ac71
JB
9652009-09-17 Juanma Barranquero <lekktu@gmail.com>
966
967 * emacs.c (inhibit_x_resources): New variable.
968 (main) [HAVE_NS]: Don't process --quick command line option.
969 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
970
971 * lisp.h (inhibit_x_resources): Declare it extern.
972
973 * w32reg.c (x_get_string_resource):
974 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
975
e227ba05
EZ
9762009-09-17 Eli Zaretskii <eliz@gnu.org>
977
362654a6
JB
978 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
979 Add lisp/term/internal.elc.
e227ba05 980
742d40e8
SM
9812009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
982
983 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
984 (bug#4461).
985
005bd5a2
DN
9862009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
987
988 * puresize.h (BASE_PURESIZE): Increase to 1290000.
989
990 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
991 (OBJECTS_MACHINE): Remove, unused.
992
f9af9719
SM
9932009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
994
995 * frame.c (x_get_resource_string): Remove unused.
996
0307c7d2
JD
9972009-09-15 Jan Djärv <jan.h.d@swipnet.se>
998
999 * xterm.c (x_new_font): Call change_frame_size before calling
1000 x_set_window_size, in case frame size won't change.
1001
1002 * frame.c (x_set_font): Remove dead code.
1003
428b13d6
SM
10042009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1005
1006 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1007
5766c380
SM
10082009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1009
1010 * lread.c (Fload): Don't output a message after loading an obsolete
1011 package any more (done in Lisp now).
1012
2fd0161b
CY
10132009-09-12 Chong Yidong <cyd@stupidchicken.com>
1014
1015 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1016
bc5e75b6
SM
10172009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1018
1019 * keymap.c (Fwhere_is_internal): Use nconc2.
1020
c31c985e
AM
10212009-09-11 Alan Mackenzie <acm@muc.de>
1022
1023 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1024 batch mode.
1025
78012bd2
AS
10262009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1027
1028 * xdisp.c (display_mode_element): Detect cycles.
1029
9d889332
SM
10302009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1031
1032 * keymap.c (where_is_internal): Don't erroneously return nil right after
1033 filling the cache.
1034 (where_is_internal_1): Fix up typo.
1035
7ab5d780
GM
10362009-09-11 Glenn Morris <rgm@gnu.org>
1037
1038 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1039 share a common doc-string.
1040
5238a749
SM
10412009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1042
66d77eda
SM
1043 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1044 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1045
5238a749
SM
1046 * keymap.c (QCadvertised_binding): New constant.
1047 (syms_of_keymap): Initialize it.
1048 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1049 if applicable.
1050
19f48442
SM
10512009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1052
50d4ba39
SM
1053 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1054 (parse_menu_item): Streamline since bindings are recomputed all the
1055 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1056 more and don't support lmenu's menu-alias any more either.
1057
a88a5372
SM
1058 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1059 (where_is_internal): Strip it down to only traverse the keymaps.
1060 Move the cache handling from Fwhere_is_internal to here.
1061 (Fwhere_is_internal): Move the handling of remapping and the choice of
1062 the best binding from where_is_internal to here.
1063 Unify the cached/noncached paths, so remapping is also handled
1064 correctly when the cache is used, and so the cache can be used to
1065 speed up remap-handling when applicable.
1066 Give preference to non-remapped bindings.
1067 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1068 non-remapped bindings.
1069 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1070 command remapping.
1071
19f48442
SM
1072 * xdisp.c (display_mode_element): Move list length limit from 50 to
1073 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1074
599498c3 10752009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1076
1077 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1078
f9b7b5ac
SM
10792009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1080
a53af587
JB
1081 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1082 (Bug#4334)
1083
f9b7b5ac
SM
1084 * keymap.c (where_is_internal): Filter out shadowed remappings.
1085 Assume that where_is_internal returns unshadowed bindings to simplify
1086 the code and get rid of the gotos. Use ASIZE.
1087
04f4b72d
JD
10882009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1089
4da146f2
JD
1090 * xterm.c (x_focus_changed): If we get a focusout and pointer
1091 is invisible, make it visible.
1092
04f4b72d
JD
1093 * xterm.h: Remove condition for declaration of
1094 x_*_window_to_frame.
1095
7cef7ce3
SM
10962009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1097
1098 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1099 initial terminal as well.
1100
a54fa5b7
JD
11012009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1102
1103 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1104 x_menubar_window_to_frame.
a54fa5b7
JD
1105
1106 * xterm.c: Remove declarations also in xterm.h
1107 (XTmouse_position): Do not return valid positions
1108 for clicks in the menubar and the toolbar for Gtk+.
1109
1110 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1111 if the widget for the event has the same top level as a frame,
1112 return the frame.
1113 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1114 internal windows, bug #4122.
1115 (x_non_menubar_window_to_frame): Remove.
1116
5a021dd0
GM
11172009-09-02 Glenn Morris <rgm@gnu.org>
1118
1119 * buffer.c (default-major-mode): Move most of the doc from here...
1120 (major-mode): ... to here.
1121
548fe2f3
NR
11222009-08-30 Nick Roberts <nickrob@snap.net.nz>
1123
1124 * process.c (wait_reading_process_output): Keep the descriptor
1125 when pty is used by a non-child process, e.g., in I/O buffer of
1126 GDB this allows inferior to be restarted.
1127
e0840eef
EZ
11282009-08-29 Eli Zaretskii <eliz@gnu.org>
1129
1130 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1131 both branches into one.
1132
82e98df4
SM
11332009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1134
1135 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1136 (main): Use enable-multibyte-characters rather than
1137 default-enable-multibyte-characters. Output a warning message when
1138 running a unibyte session.
1139
890617cb
YM
11402009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1141
1142 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1143 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1144 (copy_data_segment): Also copy __program_vars section.
1145 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1146 (dump_it) [LC_DYLD_INFO]: Use it.
1147
1148 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1149
e7adeadc
EZ
11502009-08-28 Eli Zaretskii <eliz@gnu.org>
1151
1152 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1153 $(SRC)/buildobj.h.
1154 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1155 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1156 $(SRC)/buildobj.h.
1157 (clean): Add buildobj.h.
1158
3ed8bbdc
TZ
11592009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1160
1161 * print.c (print_object): Set escapeflag to 1 when printing
1162 hashtable keys and values.
1163
155a6764
SM
11642009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1165
1166 * lread.c (read_integer): Use doubles (and potentially return a float
1167 number) as we do in string-to-number.
1168 (read1): Use strtol to read integers, signal errors on strtol's
1169 overflow and use floats if strtol's output is too large for
1170 Elisp integers.
1171
877610de
EZ
11722009-08-27 Eli Zaretskii <eliz@gnu.org>
1173
1174 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1175 (make-buildobj-SH): Fix last change.
1176 (SRC): Move to before where it's first used.
1177
ef73e7be
KH
11782009-08-27 Kenichi Handa <handa@m17n.org>
1179
550c8289
KH
1180 * process.c (send_process): Use encode_coding_object instead of
1181 encode_coding_string to perform eol-conversion even if the string
1182 is unibyte.
1183
60afa08d
KH
1184 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1185 character.
1186
ef73e7be 1187 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1188 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1189
7b3a82d7
DN
11902009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1191
5654bf63
DN
1192 * callproc.c (Fcall_process): Remove always true #if.
1193
7b3a82d7
DN
1194 * lisp.h: Replace #if 0 code for checking with text pointing to
1195 the --enable-checking configure flag.
1196
1197 * emacs.c (main): Mention the --enable-profiling configure flag
1198 instead of using CFLAGS.
1199
878bde49
KR
12002009-08-26 Ken Raeburn <raeburn@raeburn.org>
1201
1202 * Makefile.in (buildobj.h): New target.
1203 (doc.o): Depend on it.
1204 (temacs${EXEEXT}): Don't generate buildobj.lst.
1205 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1206 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1207 ($(BLD)/doc.$(O)): Depend on it.
1208 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1209 provided by Eli Zaretskii.)
1210 ($(TEMACS)): Don't generate buildobj.lst.
1211 * doc.c: Include buildobj.h.
1212 (buildobj): New static variable.
1213 (Fsnarf_documentation): Use it, instead of opening and reading
1214 buildobj.lst.
1215
1574224c
MA
12162009-08-25 Michael Albinus <michael.albinus@gmx.de>
1217
1218 * dbusbind.c (Fdbus_call_method)
1219 (Fdbus_call_method_asynchronously): Use English numeric format for
1220 timeout values in doc string.
1221
d9da2f45
KH
12222009-08-25 Kenichi Handa <handa@m17n.org>
1223
ef73e7be
KH
1224 * alloc.c (mark_char_table): New function.
1225 (mark_object): Use mark_char_table for a char-table.
1226
d9da2f45
KH
1227 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1228 (CHAR_TABLE_REF): Use it.
1229
c8edcc01
KR
12302009-08-23 Ken Raeburn <raeburn@raeburn.org>
1231
1232 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1233 before invoking the newly build emacs to check for load-path
1234 shadowing.
1235
7763401b
GM
12362009-08-22 Glenn Morris <rgm@gnu.org>
1237
1238 * Makefile.in (bootstrap_exe): New variable.
1239 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1240 Use ${bootstrap_exe}.
1241
729eadda
EZ
12422009-08-22 Eli Zaretskii <eliz@gnu.org>
1243
1244 * coding.h (encode_coding_string): Don't encode unibyte strings.
1245 (Bug#4047)
1246
eb4c6ace
MA
12472009-08-22 Michael Albinus <michael.albinus@gmx.de>
1248
1249 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1250
1251 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1252 intended as hotfix only.
1253 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1254
36e34d1b
AR
12552009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1256
1257 * nsterm.m (ns_get_color): Update documentation properly for last
1258 change, and clean up loose ends in the code left by it. Fix
1259 longstanding bug with 16-bit hex parsing, and add support for
1260 yet another X11 format (rgb:r/g/b) for compatibility.
1261 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1262 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1263
f983eb8a
SM
12642009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1265
1266 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1267
3f56d3c6
MA
12682009-08-20 Michael Albinus <michael.albinus@gmx.de>
1269
1270 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1271 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1272 (xd_initialize, xd_pending_messages): Check, whether
1273 $DBUS_SESSION_BUS_ADDRESS is set.
1274
fb641d68
YM
12752009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1276
1277 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1278
1279 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1280
cf59a374
GM
12812009-08-20 Glenn Morris <rgm@gnu.org>
1282
1283 * emacs.c (system-type): Doc fix.
1284
1373f3be
SM
12852009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1286
1287 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1288 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1289
058ed861
MA
12902009-08-18 Michael Albinus <michael.albinus@gmx.de>
1291
1373f3be
SM
1292 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1293 New functions.
058ed861
MA
1294 (xd_initialize): Revert change from 2009-08-16.
1295
563a866e 12962009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1297
1298 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1299 font-group vector, return nil.
5fc05db0 1300
e42bdf01
CY
13012009-08-17 Chong Yidong <cyd@stupidchicken.com>
1302
1303 * process.c (status_notify): Don't perform redisplay.
1304 (Fdelete_process, list_processes_1, process_send_signal):
1305 Expliticly perform redisplay.
1306 (wait_reading_process_output): Always check process status, but
1307 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1308
4230ab74
KR
13092009-08-17 Ken Raeburn <raeburn@raeburn.org>
1310
1373f3be 1311 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1312 (XFLOAT_INIT): New macro for storing a float value.
1313 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1314 * fns.c (sxhash): Copy out the value of a float in order to
1315 examine its bytes.
1316 * dbusbind.c (xd_append_arg): Likewise.
1317
4230ab74
KR
1318 * emacs.c (main): Don't call syms_of_data twice.
1319
a0645cdd
MA
13202009-08-16 Michael Albinus <michael.albinus@gmx.de>
1321
1322 * dbusbind.c (xd_initialize): Add connection file descriptor to
1323 input_wait_mask, in order to let select() detect, whether a new
1324 message has been arrived.
ca4f31ea 1325 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1326
485db0ba
MA
13272009-08-15 Michael Albinus <michael.albinus@gmx.de>
1328
1373f3be
SM
1329 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1330 New functions.
485db0ba
MA
1331
1332 * lisp.h (xd_pending_messages): Declare.
1333
1334 * keyboard.c (readable_events): Call xd_pending_messages.
1335
b5b98ff4
CY
13362009-08-15 Chong Yidong <cyd@stupidchicken.com>
1337
1373f3be 1338 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1339
f8354c6e
CY
1340 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1341
b5b98ff4
CY
1342 * buffer.c (set_buffer_internal_1)
1343 (swap_out_buffer_local_variables): Check for unbound local
1344 variables (Bug#4138).
1345
8b9fc636
EZ
13462009-08-14 Eli Zaretskii <eliz@gnu.org>
1347
1348 * process.c (create_pty): Fix last change.
1349
ce959360
CY
13502009-08-13 Chong Yidong <cyd@stupidchicken.com>
1351
1352 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1353 (xbm_load_image): Caller changed.
64b807c9 1354 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1355
c7baf7e9
NR
13562009-08-13 Nick Roberts <nickrob@snap.net.nz>
1357
1358 * process.c (create_pty): New function.
1359 (Fstart_process): Use it to allow Emacs to just associate a pty
1360 with the buffer. See associated change in gdb-mi.el.
1361 (list_processes_1): Deal with no program name.
1362 (start_process_unwind): Use pid == -2 to mean no process.
1363
1ac9108a
SM
13642009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1365
1366 * cmds.c (nonundocount): New global variable.
1367 (keys_of_cmds): Initialize it.
1368 (Fself_insert_command): Use it to combine upto 20 sequential chars
1369 into a single undo entry, just like the Qself_insert_command code in
1370 keyboard.c does.
1371 Call frame_make_pointer_invisible, also like the Qself_insert_command
1372 code in keyboard.c does.
1373 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1374 than its own local replacement for it.
1375
e267324c
KR
13762009-08-10 Ken Raeburn <raeburn@raeburn.org>
1377
1ac9108a 1378 * fns.c (concat): Don't re-set string length to its current value.
77437343 1379
1ac9108a
SM
1380 * coding.h (decode_coding_string, encode_coding_string):
1381 Use SBYTES macro.
f0bed503 1382
1ac9108a 1383 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1384 (doprnt): Merge with doprnt1, discarding lispstrings code.
1385 * lisp.h (doprnt_lisp): Don't declare.
1386
416e006d
JL
13872009-08-07 Juri Linkov <juri@jurta.org>
1388
1389 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1390
6f7d5780
DN
13912009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1392
1393 * print.c (syms_of_print): Undo previous change.
1394
f19a0f5b
TZ
13952009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1396
1397 * lread.c (read1, syms_of_lread): Read hashtables back from the
1398 readable format.
1399
1400 * print.c (print_preprocess, print_object): Print hashtables fully
1401 and readably.
1402 (syms_of_print): Provide 'hashtable-print-readable.
1403
b9173dc2
AR
14042009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1405
1406 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1407 no family set.
1408 (nsfont_open): Handle case when entity has no family.
1409
1586503c
AR
14102009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1411
1412 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1413 element, not a list, for match case.
1414
087048cd
KH
14152009-07-28 Kenichi Handa <handa@m17n.org>
1416
1417 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1418 rigidly.
1419
1420 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1421 font_parse_xlfd. Check font properties more rigidly.
1422
780c2506
DN
14232009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1424
31fd7c5c
JB
1425 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1426 bsd-common.h.
780c2506 1427
a8c0cc18
KH
14282009-07-27 Kenichi Handa <handa@m17n.org>
1429
1430 * xfaces.c (face_with_height): Call font_clear_prop.
1431
4fbe2306
CY
14322009-07-26 Chong Yidong <cyd@stupidchicken.com>
1433
111d9af3
CY
1434 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1435
1436 * xterm.c (x_term_init): Use Qx.
1437
4fbe2306
CY
1438 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1439
1ac9108a 1440 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1441 (ns_get_color): Revert 2009-07-16 change.
1442
beb0b7f9
EZ
14432009-07-25 Eli Zaretskii <eliz@gnu.org>
1444
1445 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1446 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1447
2baf5e76
KR
14482009-07-25 Ken Raeburn <raeburn@raeburn.org>
1449
1ac9108a
SM
1450 * coding.h (decode_coding_string, encode_coding_string):
1451 Use SCHARS macro.
8890e5f5 1452
2baf5e76 1453 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1454 (load_depth): Delete.
2baf5e76
KR
1455 (Qload_in_progress): New variable.
1456 (load_unwind): Don't reference load_depth or load_in_progress.
1457 (Fload): Likewise; specbind Qload_in_progress instead.
1458 (init_lread): Don't initialize load_depth.
1459 (syms_of_lread): Initialize and protect Qload_in_progress.
1460
1395c6f5
AR
14612009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1462
1463 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1464
4e2f36cf
AR
14652009-07-23 Yavor Doganov <yavor@gnu.org>
1466
1467 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1468
5dd9a6f7
AR
14692009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1470
1471 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1472 Bugs 3792, 3720, 2402.
1473 (ns_lookup_indexed_color): Check for bad index.
1474 (ns_index_color): Init unused slot to 0.
1475 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1476 Bug 3714, possibly 3082.
5dd9a6f7 1477
c902b920
JR
14782009-07-22 Jason Rumney <jasonr@gnu.org>
1479
1ac9108a
SM
1480 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1481 Position IME window at cursor (Bug#2570).
c902b920
JR
1482 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1483 (globals_of_w32fns): Dynamically load functions required above.
1484
1485 * w32term.c (w32_draw_window_cursor): Send message to reposition
1486 any IME window.
1487
090101cf
CY
14882009-07-21 Chong Yidong <cyd@stupidchicken.com>
1489
1490 * fileio.c: Revert 2009-07-16 changes.
1491 (Vauto_save_include_big_deletions): New variable.
1492 (Fdo_auto_save): Disable auto-save only if
1493 auto-save-include-big-deletions is nil.
1494
e6583e3d
CY
14952009-07-21 Chong Yidong <cyd@stupidchicken.com>
1496
1497 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1498 the overflowed pixels into account (Bug#3879).
1499
ece435a5
KR
15002009-07-21 Ken Raeburn <raeburn@raeburn.org>
1501
1502 * lread.c (load_depth): New variable.
1503 (Fload, load_unwind, init_lread): Set it to the load recursion
1504 depth; set load_in_progress as a simple boolean based on the
1505 current load_depth. (Bug#3892)
1506
40b2d973
AR
15072009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1508
1509 * nsfont.m (ns_has_attribute): Remove.
1510 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1511
10be7e0d
JL
15122009-07-18 Juri Linkov <juri@jurta.org>
1513
1514 * process.c (Fset_process_query_on_exit_flag): Mention killing
1515 a buffer in docstring.
1516
fa055055
KH
15172009-07-17 Kenichi Handa <handa@m17n.org>
1518
1519 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1520
042f7b69
YM
15212009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1522
1523 * nsfns.m (Fns_set_alpha): Remove function.
1524 (syms_of_nsfns): Don't defsubr it.
1525
1526 * nsterm.m (ns_get_color): Remove incompatible color formats.
1527 (ns_color_to_lisp): Generate #rrggbb color format string.
1528
4be941e3
RS
15292009-07-16 Richard Stallman <rms@gnu.org>
1530
1531 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1532 (Fset_buffer_auto_saved): Handle save_length = -2.
1533
4e6b227d
CY
15342009-07-16 Chong Yidong <cyd@stupidchicken.com>
1535
1536 * xterm.c (Qx_gtk_map_stock): New var.
1537
1538 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1539 of calling intern each time.
1540
a1856973
YM
15412009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1542
1543 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1544 does tiling.
1545
1546 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1547
497e54d8
KH
15482009-07-14 Kenichi Handa <handa@m17n.org>
1549
72d36834
KH
1550 * font.c (font_vconcat_entity_vectors): New function.
1551 (struct font_sort_data): New member font_driver_preference.
1552 (font_compare): Check font_driver_preference.
1553 (font_sort_entities): The format of the first argument changed.
1554 (font_delete_unmatched): Likewise.
1555 (font_list_entities): The return type changed.
1556 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1557 (font_find_for_lface): Adjuste for the above changes.
1558 Don't suppress the checking of C even if the repertory supports it.
1559 (Flist_fonts): Adjust for the above changes.
72d36834 1560
1ac9108a
SM
1561 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1562 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1563 Reject a font who has adstyle property that is different from a
1564 langname derived from registry property.
1ac9108a 1565 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1566
b6046155
EZ
15672009-07-13 Eli Zaretskii <eliz@gnu.org>
1568
1569 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1570 local copy of dirfilename.
1571
fb6b6049
KH
15722009-07-13 Kenichi Handa <handa@m17n.org>
1573
e2402a5e
KH
1574 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1575 against max_char.
1576
fb6b6049
KH
1577 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1578 calling XSYMBOL (sym).
1579
65156807
EZ
15802009-07-11 Eli Zaretskii <eliz@gnu.org>
1581
1ac9108a
SM
1582 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1583 New function.
1584 (directory_files_internal) [WINDOWSNT]:
1585 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1586 the filesystem of the directory is fast or slow.
1587
1588 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1589 file name.
1590 (is_slow_fs): New function.
1591 (stat): Use it to determine whether to issue more system calls to
1592 get accurate file attributes, when w32-get-true-file-attributes is
1593 `local'.
1594
e0ab5fcf
JD
15952009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1596
1597 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1598 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1599 parameter font-parameter as default to the font dialog.
1600
784ceded
KH
16012009-07-10 Kenichi Handa <handa@m17n.org>
1602
1603 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1604
fb8edc0b
EZ
16052009-07-09 Eli Zaretskii <eliz@gnu.org>
1606
1ac9108a 1607 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1608
fb8edc0b
EZ
1609 * w32.c (stat): Treat UNC file names as residing on remote
1610 drives. (Bug#3542)
1611
635c75b1
KH
16122009-07-09 Kenichi Handa <handa@m17n.org>
1613
1614 * fontset.c (fontset_find_font): Fix previous change.
1615
c1d5ce94
MA
16162009-07-08 Michael Albinus <michael.albinus@gmx.de>
1617
1618 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1619 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1620 error flag.
1621
edb61b39
KH
16222009-07-08 Kenichi Handa <handa@m17n.org>
1623
374bf7e4
KH
1624 * fontset.c (fontset_find_font): Fix the logic of handling
1625 charset_matched.
1626 (font_for_char): Delete unused var.
1627 (generate_ascii_font_name): Delete it.
1628
edb61b39
KH
1629 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1630
1631 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1632 (encode_coding_sjis): Fix the code range check.
1633
0f3f018c
CY
16342009-07-07 Chong Yidong <cyd@stupidchicken.com>
1635
1636 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1637 (Fexpand_file_name): Copy string data properly (Bug#3772).
1638
fcaf6f3a
JD
16392009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1640
1641 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1642 first MapNotify.
1643
6809ca75
KH
16442009-07-07 Kenichi Handa <handa@m17n.org>
1645
1646 * character.h (unibyte_has_multibyte_table): Delete extern.
1647 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1648
1649 * charset.c (Fset_charset_priority): Update charset_unibyte.
1650 (syms_of_charset): Initialize charset_unibyte.
1651
1652 * character.c (unibyte_has_multibyte_table): Delete it.
1653 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1654 charset_unibyte.
1655 (multibyte_char_to_unibyte_safe): Likewise.
1656 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1657
1ac9108a 1658 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1659 (x_produce_glyphs): Likewise.
1660
1661 * .gdbinit (xcharset): Fix the treating $arg0.
1662
ad9e2d54
EZ
16632009-07-04 Eli Zaretskii <eliz@gnu.org>
1664
1665 Emulation of `getloadavg' on MS-Windows.
1666 * w32.c: Include float.h
1667 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1668 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1669 (get_native_system_info, get_system_times): New functions.
1670 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1671 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1672 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1673 g_b_init_get_system_times, and num_of_processors.
1674
0a3472c7
JR
16752009-07-03 Jason Rumney <jasonr@gnu.org>
1676
1677 * w32term.c (w32_initialize): Use standard types.
1678
80904120
EZ
16792009-07-03 Eli Zaretskii <eliz@gnu.org>
1680
1681 * dired.c (Ffile_attributes): Decode user and group names by the
1682 locale's encoding. (Bug#3443)
1683
6978862d
DN
16842009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1685
f8d23104
DN
1686 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1687 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1688
1689 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1690
1691 * term.c (init_tty): Remove spurious #ifdef.
1692
6978862d
DN
1693 * m/mips.h: Mention this file is also used for netbsd.
1694 * m/pmax.h: Remove file.
1695
e044e4fc
JD
16962009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1697
1698 * xterm.h (struct x_display_info): Add invisible_cursor.
1699 (struct x_output): Add current_cursor.
1700
1701 * xterm.c (XTtoggle_invisible_pointer): New function.
1702 (x_define_frame_cursor): Don't define cursor if invisible or the
1703 same as before. Set current_cursor.
1704 (x_create_terminal): Set toggle_invisible_pointer_hook.
1705
1706 * xfns.c (make_invisible_cursor): New function.
1707 (x_set_mouse_color): Call make_invisible_cursor.
1708 Set current_cursor.
1709 (x_window): Set current_cursor.
1710
1711 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1712
1713 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1714 inserting a character.
1715 (read_avail_input): Call frame_make_pointer_visible.
1716
1717 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1718 (frame_make_pointer_invisible, frame_make_pointer_visible):
1719 New functions.
e044e4fc
JD
1720 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1721
1722 * frame.h: Declare frame_make_pointer_invisible and
1723 frame_make_pointer_visible.
1724 (struct frame): Add pointer_invisible.
1725
574c8efa
JD
17262009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1727
7b507248
JD
1728 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1729 frame isn't visible.
1730 (xg_frame_resized): If width/height is -1, get size of window
1731 from X server.
1732
1733 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1734 for MapNotify.
1735
835bdaa7 1736 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1737 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1738 (flush_and_sync): Reintroduce.
574c8efa 1739
3f1c6666 17402009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1741
31fd7c5c 1742 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1743
1744 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1745 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1746
1747 * frame.h: Declare Qsticky.
1748
cad9ef74
JD
1749 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1750
1751 * nsfns.m (ns_frame_parm_handlers): Ditto.
1752
1753 * frame.c: Declare Qsticky.
1754 (frame_parms): Add sticky.
1755
1756 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1757
1758 * xterm.h: Declare x_set_sticky.
1759
1760 * xterm.c (x_set_sticky): New function.
1761
69b16610
JD
1762 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1763 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1764 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1765
1766 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1767
1768 * frame.c: Qmaximized is new.
1769 (x_set_frame_parameters): Do not handle fullscreen specially.
1770 Only set width and height if explicitly set.
1771 (x_set_fullscreen): Handle Qmaximized.
1772 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1773 (syms_of_frame): Initialize Qmaximized.
1774
1ac9108a
SM
1775 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1776 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1777
1778 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1779 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1780 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1781 set gravity to NorthWestGravity when USE_GTK.
1782 (set_wm_state): New function.
31fd7c5c 1783 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1784 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1785 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1786 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1787 to x_real_positions and x_fullscreen_adjust.
1788
1789 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1790 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1791 flush_and_sync.
1792 (xg_height_changed): New function.
1793 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1794 and gtk_window_set_policy. Set frame gravity after parsing the
1795 geometry string.
3f1c6666
JD
1796 (xg_update_frame_menubar, free_frame_menubar)
1797 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1798 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1799 Remove calls to xg_frame_set_char_size.
1800
fd503d99
KH
18012009-07-01 Kenichi Handa <handa@m17n.org>
1802
1803 * keyboard.c (decode_keyboard_code): New function.
1804 (tty_read_avail_input): Decode the input bytes if necessary.
1805
1ac9108a
SM
1806 * coding.c (setup_coding_system):
1807 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1808 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1809 use Qno_conversion.
1810
24ed93fb
YM
18112009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1812
1813 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1814
99061dfc
CY
18152009-06-30 Chong Yidong <cyd@stupidchicken.com>
1816
1ac9108a 1817 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1818
ff90fbde
JR
18192009-06-30 Jason Rumney <jasonr@gnu.org>
1820
1821 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1822 is already loaded.
1823 Set user model ID if supported (bug#1849).
1824
5f445726
JM
18252009-06-29 Jim Meyering <meyering@redhat.com>
1826
1827 Remove useless if-before-xfree test.
1828 * nsfont.m (nsfont_close): Remove useless test.
1829 * term.c (delete_tty): Likewise.
1830 * w32.c (system_process_attributes): Likewise.
1831 * w32font.c (w32font_close): Likewise.
1832 * xfaces.c (x_free_gc): Likewise.
1833 * xselect.c (buffer): Likewise.
1834
b9607587
AS
18352009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1836
1837 * process.c (send_process): Keep decoded string in a local
1838 variable and protect it from GC. (Bug#3521)
1839
89ba96f4
EZ
18402009-06-28 Eli Zaretskii <eliz@gnu.org>
1841
1842 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1843 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1844
098a1589
CY
18452009-06-28 Chong Yidong <cyd@stupidchicken.com>
1846
485422be
CY
1847 * xdisp.c (start_display, handle_face_prop)
1848 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1849 (redisplay_window, try_window_id, produce_image_glyph):
1850 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1851
098a1589
CY
1852 * xterm.c (x_update_window_begin, x_new_focus_frame)
1853 (x_scroll_bar_handle_click, handle_one_xevent)
1854 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1855 (x_make_frame_visible, x_make_frame_invisible)
1856 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1857 code chunks that are now obsolete.
1858
78c38319
MA
18592009-06-28 Michael Albinus <michael.albinus@gmx.de>
1860
1861 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1862 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1863 for hours, when optimzation is enabled.
1864 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1865 (xd_read_message): Make them static.
1866
4189ed40
CY
18672009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1868
1869 * term.c (turn_on_face): Allow simultaneously bold and dim
1870 terminal faces (Bug#3530).
1871
cd9b5e16
CY
18722009-06-27 Chong Yidong <cyd@stupidchicken.com>
1873
4e23bedb
CY
1874 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1875
cd9b5e16
CY
1876 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1877 truncation glyphs (Bug#3686).
1878
07cc3c35
GM
18792009-06-27 Glenn Morris <rgm@gnu.org>
1880
1881 * m/pmax.h: Restore file, with only netbsd portions.
1882
31fd7c5c 18832009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1884
cd9b5e16 1885 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1886
42d4a64f
KH
18872009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1888
1889 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1890 the arg FORCE_SYMBOL.
1891
930fe55b 18922009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1893
1894 * fontset.c (fontset_find_font): When a usable rfont_def is found
1895 in a fallback font-group, make it the first element of the group.
1896
57ebc3fd
CY
18972009-06-24 Chong Yidong <cyd@stupidchicken.com>
1898
1899 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1900
f084f942
KH
19012009-06-24 Kenichi Handa <handa@m17n.org>
1902
1903 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1904 set for C.
1905 (fontset_font): Record the availability of a font for C both in
1906 the realized fontsets of the current one and the default one.
1907
2f686c87
DN
19082009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1909
1910 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1911 conditional, it is always defined on AIX.
1912
666e158e
MB
19132009-06-23 Miles Bader <miles@gnu.org>
1914
1915 * window.c (Vrecenter_redisplay): New variable.
1916 (syms_of_window): Initialize it.
1917 (Qtty): New extern declaration.
1918 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1919
c6da7cd2
JM
19202009-06-23 Jim Meyering <meyering@redhat.com>
1921
1ac9108a
SM
1922 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1923 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1924 pointer dereferences are guaranteed to be valid.
c6da7cd2 1925
678dca3d
KH
19262009-06-23 Kenichi Handa <handa@m17n.org>
1927
74d75424
KH
1928 * emacs.c (main): Call init_font ().
1929
1930 * font.h (Vfont_log): Extern it.
1931 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1932
1933 * font.c (font_sort_entities, font_list_entities)
1934 (font_matching_entity, font_open_entity)
1935 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1936 (Vfont_log): Delete static.
1937 (font_log_env_checked): Delete this variable.
1938 (font_add_log): Don't check font_log_env_checked.
1939 (font_deferred_log): Check Vfont_log.
1940 (init_font): New function.
1941
678dca3d
KH
1942 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1943
1944 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1945
1946 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1947
1948 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1949
1950 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1951 (face_for_char): Don't call font_deferred_log here.
1952 (font_for_char): Likewise.
1953
8a668709
CY
19542009-06-22 Chong Yidong <cyd@stupidchicken.com>
1955
9a01ee33
CY
1956 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1957 rather than its background_width for drawing the overline and
1958 underline (Bug#489).
1959
1960 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1961 rather than its background_width for drawing the overline and
1962 underline (Bug#489).
ec7c9926
CY
1963 (xg_default_icon_file): New variable.
1964 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1965 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1966
8a668709
CY
1967 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1968 (load_overlay_strings): Remove externs.
1969 (fast_find_position): Function deleted.
1970 (mouse_face_from_buffer_pos): New function, based on
1971 fast_find_position. Correctly handle before-strings,
1972 display-strings, and after-strings (Bug#1220).
1973 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1974
4d4c02d8
CY
19752009-06-21 Chong Yidong <cyd@stupidchicken.com>
1976
1ac9108a 1977 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1978 (move_it_in_display_line_to, move_it_in_display_line_to)
1979 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1980
70243478
CY
19812009-06-21 Chong Yidong <cyd@stupidchicken.com>
1982
1983 * Branch for 23.1.
1984
13087e59
JR
19852009-06-21 Jason Rumney <jasonr@gnu.org>
1986
1987 * w32term.c (keyboard_codepage): New static variable.
1988 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1989 (w32_read_socket) [WM_CHAR]: Use it to decode character
1990 input (bug#3237).
1991 (w32_initialize): Initialize it.
1992 (codepage_for_locale): New function.
1993
4735b74e
KR
19942009-06-20 Ken Raeburn <raeburn@raeburn.org>
1995
1996 * process.c (status_message): Pass Faset index argument as a lisp
1997 object, so as to work with USE_LISP_UNION_TYPE.
1998
0e727afa
YM
19992009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2000
2001 * coding.c (Ffind_coding_systems_region_internal):
2002 Cache checked characters.
2003
cf299835
KH
20042009-06-18 Kenichi Handa <handa@m17n.org>
2005
1ac9108a 2006 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2007
90f20d94
AS
20082009-06-18 Andreas Schwab <aschwab@redhat.com>
2009
2010 * xdisp.c (redisplay_internal): Check that the frame is still
2011 live after redisplay of its windows.
2012 (redisplay_windows): Check that the window is still live.
2013
7f1faf1c
KH
20142009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2015
2016 * coding.c (detect_coding_utf_16): Fix previous change.
2017
cc13543e
KH
20182009-06-16 Kenichi Handa <handa@m17n.org>
2019
2020 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2021 UTF-16 by checking the dispersion of Eth and Oth bytes.
2022
977b85f4
AS
20232009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2024
2025 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2026
66bd43d1
KH
20272009-06-15 Kenichi Handa <handa@m17n.org>
2028
2029 * process.c (status_message): Fix previous change. Be sure to
2030 decode a localized string.
2031
cb5ca9c5
YM
20322009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2033
2034 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2035 add comment explaining why.
2036
ec7709ba 20372009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2038
ec7709ba 2039 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2040
4b7f335c
AR
20412009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2042
2043 * nsfont.m (ns_attribute_value): Remove.
2044 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2045 (ns_has_attribute): Shrink the normal range.
2046 (ns_findfonts): Don't worry about requested spec in determining
2047 need for synthItal.
e41820ee 2048 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2049
73b26103
SZ
20502009-06-14 Seiji Zenitani <zenitani@mac.com>
2051
2052 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2053
5753e4da
KH
20542009-06-11 Kenichi Handa <handa@m17n.org>
2055
2056 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2057 overhang for the static composition case.
2058
3561b671
KH
20592009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2060
5753e4da
KH
2061 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2062 overhang for the automatic composition case.
2063
3561b671
KH
2064 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2065 composition case.
2066
852bbd41
CY
20672009-06-10 Chong Yidong <cyd@stupidchicken.com>
2068
2069 * xdisp.c (get_next_display_element): When handling wrap-prefix
2070 and line-prefix, treat \n as a control character (bug#3502).
2071
9903d1e6
KH
20722009-06-10 Kenichi Handa <handa@m17n.org>
2073
2074 * font.c (font_parse_family_registry): Fix for one-char foundry.
2075 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2076
0bcbaaaa
CY
20772009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2078
2079 * process.c (status_message): Fix handling of multibyte signal
2080 string (Bug#3499).
2081
40aa3f13
JM
20822009-06-09 Jim Meyering <meyering@redhat.com>
2083
1f80c7e2
CY
2084 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2085 color name is missing.
40aa3f13 2086
72d51285
KH
20872009-06-09 Kenichi Handa <handa@m17n.org>
2088
2089 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2090 FROM-CODE and TO-CODE are codepoints of CHARSET.
2091
c1d04d84
AR
20922009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2093
2094 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2095
20962009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2097
2098 Changes to support :script/:lang/:otf in NS font driver.
2099 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2100 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2101 indicate not part of font driver interface, and change callers.
2102 (ns_get_family): Remove pointless null check.
2103 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2104 ns_spec_to_descriptor, ns_descriptor_to_entity.
2105 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2106 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2107 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2108 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2109 (ns_get_req_script, ns_accumulate_script_ranges)
2110 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2111 New functions.
2112 (nsfont_list, nsfont_match): Use ns_findfonts.
2113 (nsfont_open): Use font descriptor instead of traits.
2114 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2115 (dump_glyphstring): Rename to ns_dump_glyphstring.
2116
c7eb9816
AR
2117 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2118
c1d04d84
AR
2119 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2120
2121 * fontset.c (fontset_from_font): Remove NS-specific code.
2122
ec7709ba 21232009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2124
2125 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2126 nonactive windows.
2127
31fd7c5c 21282009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2129
1ac9108a 2130 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2131
68852c13 21322009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2133
2134 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2135
6756cd1d
CY
21362009-06-07 Chong Yidong <cyd@stupidchicken.com>
2137
2138 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2139 account for the overflowing of newlines into the last glyph on the
2140 display line (Bug#3482).
2141
28bf482a
DR
21422009-06-05 David Reitter <david.reitter@gmail.com>
2143
ec7709ba
JB
2144 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2145 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2146 Fns_selection_exists_p, Fns_selection_owner_p.
2147
fdb55376
JR
21482009-06-03 Jason Rumney <jasonr@gnu.org>
2149
2150 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2151 available. (Bug#3379)
2152
05129fbe
KH
21532009-05-29 Kenichi Handa <handa@m17n.org>
2154
1ac9108a
SM
2155 * coding.c (get_translation_table):
2156 Check Venable_character_translation.
05129fbe 2157
ec7709ba 21582009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2159
ec7709ba
JB
2160 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2161 (x_make_frame_visible): Move frame to front rather than calling
15891144 2162 ns_raise_frame().
ec7709ba 2163 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2164 isn't key window.
ec7709ba 2165 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2166 drawRect may be called by NSView even if the frame is hidden.
2167
ec7709ba
JB
2168 * nsfns.m (Fx_create_frame): Follow other ports in
2169 determining visibility; default to t. Ensure async_visible is set.
15891144 2170
21f73755
EZ
21712009-05-23 Eli Zaretskii <eliz@gnu.org>
2172
2173 * dired.c (Ffile_attributes): Doc fix.
2174
34001e41
CY
21752009-05-22 Chong Yidong <cyd@stupidchicken.com>
2176
2177 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2178
46306a17
SM
21792009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2180
2181 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2182 and xfont_scratch_props.
2183 (syms_of_xfont): Do it here instead.
2184 (xfont_find_ccl_program): Delete, unused.
2185 (xfont_open): Delete unused var `i'.
2186
ef6e0694
KH
21872009-05-21 Kenichi Handa <handa@m17n.org>
2188
2189 * fontset.c (Qlatin): Don't make it static.
2190
46306a17
SM
2191 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2192 New functions.
ef6e0694
KH
2193 (xfont_scripts_cache, xfont_scratch_props): New variables.
2194 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2195 (xfont_list_pattern): Argument changed. Callers changed.
2196 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2197 (xfont_list): Don't reject a font spec with :script property.
2198 (xfont_has_char): Fix setting of encoding.
2199 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2200 xfont_scratch_props.
2201
22022009-05-19 Kenichi Handa <handa@m17n.org>
2203
46306a17 2204 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2205 Callers changed.
2206
22072009-05-18 Kenichi Handa <handa@m17n.org>
2208
2209 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2210
ac71ced7
SM
22112009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2212
2213 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2214 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2215
1c6d1051
YM
22162009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2217
2218 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2219 (x_delete_terminal): Dissociate resource database from display and
2220 then call XrmDestroyDatabase before closing display.
2221
9b9b779c
AR
22222009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2223
2224 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2225 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2226 whether selected frame is viable before raising it (based on patch
2227 by David Reitter), and improve commentary.
2228 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2229
cccd42d5
KH
22302009-05-15 Kenichi Handa <handa@m17n.org>
2231
2232 * font.c (Ffont_spec): Check arguments.
2233
337fbd17
CY
22342009-05-14 Chong Yidong <cyd@stupidchicken.com>
2235
2236 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2237 weight when testing attributes (Bug#3282).
2238
47a6002f
JD
22392009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2240
2241 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2242 what we expect to get in the next ConfigureNotify event.
2243
9cb363db
YM
2244 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2245 before Xft one (Bug#1696).
2246
b9126609
CY
22472009-05-07 David Reitter <david.reitter@gmail.com>
2248
2249 * nsfns.m (Fx_display_planes): Compute bitplanes using
2250 NSBitsPerPixelFromDepth (Bug#3207).
2251
27a69fd9
CY
22522009-05-10 Chong Yidong <cyd@stupidchicken.com>
2253
2254 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2255
00f37552
TTN
22562009-05-10 Ulrich Mueller <ulm@gentoo.org>
2257
2258 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2259
2d82a920
DR
22602009-05-07 David Reitter <david.reitter@gmail.com>
2261
ec7709ba
JB
2262 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2263 Respect mouse face background.
2d82a920 2264
46b0d52d
DR
22652009-05-07 David Reitter <david.reitter@gmail.com>
2266
ec7709ba
JB
2267 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2268 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2269 in ns_update_begin and ns_update_end.
2270
ce1b23bb
SM
22712009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2272
5996e1b7
SM
2273 * nsfns.m (ns_get_screen): Rewrite.
2274 Don't presume selected-frame is of type `ns'.
2275
ba98e3a0
SM
2276 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2277 all drivers.
2278
ce1b23bb
SM
2279 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2280
bcda200f
YM
22812009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2282
2283 * keyboard.h (add_user_signal): Fix typo in extern.
2284
2285 * lisp.h (add_user_signal): Remove extern.
2286
2287 * unexelf.c (unexec): Consider a section to precede the .bss section
2288 if its addresses overlap that of .bss.
2289 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2290 instead of dumping process.
2291
864660a2
SM
22922009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2293
2294 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2295
50da4e56
SM
22962009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2297
2298 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2299
51520a1a
DN
23002009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2301
2302 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2303 any statements.
2304
409ea3a1
AS
23052009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2306
59c4c60f
AS
2307 * process.c (read_process_output): Make sure the current buffer is
2308 always restored.
2309
409ea3a1
AS
2310 * coding.c (record_conversion_result): Don't modify
2311 Vlast_code_conversion_error for successful result.
2312 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2313
56f00ed2
KH
23142009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2315
2316 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2317 (load_charset_map): Remove unnecessary code.
56f00ed2 2318
4491c9d2
DR
23192009-04-30 David Reitter <david.reitter@gmail.com>
2320
35f5b128 2321 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2322 through f24.
2323
6970f632
CY
23242009-04-30 Chong Yidong <cyd@stupidchicken.com>
2325
2326 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2327
2328 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2329 face_at_buffer_position.
2330 (face_before_or_after_it_pos, get_next_display_element)
2331 (note_mouse_highlight): Update face_at_buffer_position call.
2332
2333 * term.c (term_mouse_highlight):
2334 * msdos.c (IT_note_mouse_highlight):
2335 * fontset.c (Finternal_char_font):
35f5b128 2336 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2337
2338 * dispextern.h (face_at_buffer_position): Update prototype.
2339
0c616f63
KH
23402009-04-30 Kenichi Handa <handa@m17n.org>
2341
35f5b128 2342 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2343
ad3aaf33
AS
23442009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2345
2346 * callproc.c (Fcall_process): Fix GC protection. Make sure
2347 current buffer is always restored.
2348
c3c963a0
YM
23492009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2350
2351 * atimer.c (init_atimer): Also clear stopped_atimers.
2352
2353 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2354
7e3386cb
YM
2355 * process.c (create_process): Clean up merger residues of
2356 2008-07-17 change.
2357
91f68422
CY
23582009-04-29 Ulrich Mueller <ulm@gentoo.org>
2359
2360 * lread.c (Vread_circle): New variable.
2361 (read1): Disable recursive read if Vread_circle is nil.
2362
24b34550
KH
23632009-04-29 Kenichi Handa <handa@m17n.org>
2364
2365 * fontset.h (set_default_ascii_font): Delete extern.
2366
2367 * fontset.c (set_default_ascii_font): Delete this unused function.
2368
2369 * frame.c (x_set_font): When ARG is a font-object, check if the
2370 font-object matches with the ASCII font-spec of the frame's
9c358bda 2371 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2372
77bf07e1
AS
23732009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2374
2375 * fns.c (Flocale_info): Protect vector from GC during decoding.
2376
2377 * process.c (Fstart_process): Protect argv strings from GC during
2378 encoding.
2379
2c55aacf
AS
23802009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2381
2382 * sysdep.c: Include <ctype.h>.
2383
b892d3c9
DR
23842009-04-27 David Reitter <david.reitter@gmail.com>
2385
35f5b128 2386 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2387 Remove commented-out code.
2388
9d0644c4
JB
23892009-04-26 Johan Bockgård <bojohan@gnu.org>
2390
2391 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2392
b7053016
JR
23932009-04-25 Jason Rumney <jasonr@gnu.org>
2394
2395 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2396
4e8231f3
YM
23972009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2398
2399 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2400 Swap bytes in short integer if fringe bitmap width > 8.
2401
493dcf2c
KH
24022009-04-23 Kenichi Handa <handa@m17n.org>
2403
2404 * xfaces.c (Fx_list_fonts): If a font size is specified in
2405 PATTERN, set it in returned scalable fonts.
2406
401e9e57
CY
24072009-04-22 Chong Yidong <cyd@stupidchicken.com>
2408
708e05dc
CY
2409 * keyboard.c (Fset_input_meta_mode): Doc fix.
2410
2411 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2412
1ac9108a 2413 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2414
2415 * coding.c (Fterminal_coding_system): Doc fix.
2416
2417 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2418 (Fx_display_pixel_height, Fx_display_planes)
2419 (Fx_display_color_cells, Fx_server_max_request_size)
2420 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2421 (Fx_display_mm_height, Fx_display_mm_width)
2422 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2423 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2424 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2425 (check_x_display_info): Handle terminal objects instead of
2426 terminal ids.
2427
401e9e57
CY
2428 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2429 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2430 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2431 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2432
df80c7f0
KH
24332009-04-21 Kenichi Handa <handa@m17n.org>
2434
5a8f12af 2435 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2436 (font_score): Check AVGWIDTH too.
908567ef 2437
df80c7f0
KH
2438 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2439 worst case.
1ac9108a
SM
2440 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2441 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2442
705af33f
JR
24432009-04-19 Jason Rumney <jasonr@gnu.org>
2444
2445 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2446 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2447
2448 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2449 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2450 get_phys_cursor_geometry.
2451
b71ac3dd 2452 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2453 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2454 using get_phys_cursor_geometry.
2455
2456 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2457 correctly calculated.
2458
dc2933eb
JD
24592009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2460
1ac9108a
SM
2461 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2462 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2463 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2464 is deprecated.
2465
973e7849
AS
24662009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2467
2468 * font.c (font_put_frame_data): Use xfree instead of free.
2469
314d66f4
JB
24702009-04-17 Juanma Barranquero <lekktu@gmail.com>
2471
2472 * w32font.c (Qja, Qko): Remove declarations.
2473 (syms_of_w32font): Don't DEFSYM them.
2474
cf702558
CY
24752009-04-17 Chong Yidong <cyd@stupidchicken.com>
2476
2477 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2478
2479 * font.h (Qja, Qko): Extern them.
2480
2481 * ftfont.c (Qja, Qko): Remove declarations.
2482
2483 * xfont.c (Qja, Qko): Remove declarations.
2484
b50504f5
KH
24852009-04-17 Kenichi Handa <handa@m17n.org>
2486
bde25748
KH
2487 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2488 string from a vector to handle Latin-1 characters correctly.
2489
b50504f5
KH
2490 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2491 entity even if the cache hits.
2492
f4646fff
AS
24932009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2494
2495 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2496 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2497
e7deaab0
AS
2498 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2499 * lisp.h: Adjust prototypes.
2500
0a0e7d49
CY
25012009-04-16 Chong Yidong <cyd@stupidchicken.com>
2502
2503 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2504 change (Bug#3003).
2505
3c908a57
KH
25062009-04-16 Kenichi Handa <handa@m17n.org>
2507
1ac9108a 2508 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2509
2510 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2511 adstyle.
2512
2513 * ftfont.c (Qja, Qko): Don't make them static.
2514 (enum ftfont_cache_for): New enum.
2515 (fc_charset_table): Undo the previous change.
2516 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2517 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2518 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2519 non-scarable font, try to get AVERAGE_WIDTH.
2520 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2521 Change ft_face_cache from a list of a hash-table. Don't check
2522 `ja' and `ko' adstyle here.
2523 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2524 FTFONT_CACHE_FOR_CHARET.
2525 (ftfont_get_charset): Undo the previous change.
1ac9108a 2526 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2527 (ftfont_close): Likewise.
2528 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2529
2530 * font.c (font_sort_entites): Change the meaning of the arg
2531 BEST-ONLY. Don't optimize for VEC of lenght 1.
2532 (font_select_entity): Just return the value of font_sort_entites.
2533
2534 * xfaces.c (merge_face_vectors): Reflect font properties in
2535 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2536 font_clear_prop if a face attribute doesn't change.
2537
3c908a57
KH
2538 * charset.h (charset_ksc5601): Extern it.
2539
2540 * charset.c (charset_ksc5601): New variable.
2541 (Fdefine_charset_internal): Set charset_ksc5601.
2542 (init_charset_once): Initialize charset_ksc5601 to -1.
2543
d65859c3
DN
25442009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2545
2546 * fileio.c (history_delete_duplicates): Remove unused declaration.
2547
2548 * callint.c (history_delete_duplicates): New declaration.
2549 (Fcall_interactively): Remove command history duplicates when
2550 history_delete_duplicates is true.
2551
3ba010e5
EZ
25522009-04-14 Eli Zaretskii <eliz@gnu.org>
2553
2554 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2555
06f19b91
KH
25562009-04-14 Kenichi Handa <handa@m17n.org>
2557
2558 * font.c (Ffont_info): Fix docstring. Fix the second element of
2559 the returned value (bug#2949).
2560
2cce8bfc
CY
25612009-04-14 Chong Yidong <cyd@stupidchicken.com>
2562
2563 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2564
d156542d
KH
25652009-04-14 Kenichi Handa <handa@m17n.org>
2566
2567 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2568 encoding charset is ascii_compatible.
2569
2570 * charset.c (Fdefine_charset_internal): Make charset
2571 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2572 code_offset is 0, and covers all ASCII characters.
2573
86fa089e
SM
25742009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2575
2576 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2577 (ns_string_to_pasteboard_internal):
2578 * nsmenu.m (process_dialog):
2579 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2580 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2581 * lisp.h (Fx_load_color_file): Declare.
2582
a8a3728b
KH
25832009-04-13 Kenichi Handa <handa@m17n.org>
2584
1ac9108a 2585 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2586 (font_select_entity): Suppress the code to optimize for the same
2587 kind of fonts.
2588 (font_load_for_lface): Get a font that supports at least ASCII
2589 characters.
2590
2591 * ftfont.c (Qja, Qko): New variables.
2592 (fc_charset_table): Delete uniquifier data for iso8859-1.
2593 (ftfont_get_latin1_charset): New function.
2594 (get_adstyle_property): New function.
2595 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2596 bitmap fonts.
2597 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2598 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2599 `ko' or `ja'.
2600 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2601 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2602 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2603 property.
2604 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2605 (syms_of_ftfont): DEFSYM Qja and Qko.
2606
483670b5
KH
26072009-04-09 Kenichi Handa <handa@m17n.org>
2608
12b55765
KH
2609 * charset.c (map_charset_chars): For a charset of `superset'
2610 method, fix calculation of code range.
2611
483670b5
KH
2612 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2613 from the list of extra properties.
2614 (font_clear_prop): Be sure to delete `:name' font property.
2615
57d3b93b
KH
26162009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2617
b4b2c2ca
YM
2618 * dispnew.c (redraw_overlapping_rows): Fix detection of
2619 overlapping for topmost and bottommost rows.
2620
1ac9108a 2621 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2622
472c3609
JR
26232009-04-06 Jason Rumney <jasonr@gnu.org>
2624
2625 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2626
ab193662
KH
26272009-04-06 Kenichi Handa <handa@m17n.org>
2628
2629 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2630
2631 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2632
0c26f026
KH
26332009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2634
2635 * ftfont.c (ftfont_open): Fix checking of the return value of
2636 FT_Load_Char. Fix setting font->underline_thickness.
2637
e173bbce
CY
26382009-04-04 Chong Yidong <cyd@stupidchicken.com>
2639
2640 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2641 (Fterminal_parameters, Fterminal_parameter)
2642 (Fset_terminal_parameter): In doc string, refer to terminal
2643 objects rather than terminal ids.
2644
693a2698
EZ
26452009-04-04 Eli Zaretskii <eliz@gnu.org>
2646
2647 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2648 ret_lim_data. (Bug#2867)
2649
d5221487
CY
26502009-04-03 Chong Yidong <cyd@stupidchicken.com>
2651
2652 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2653 so they don't get wider than the window, matching 2006-01-23
2654 change to the partner function in xdisp.c (Bug#2800).
2655
223509a3
KH
26562009-04-03 Kenichi Handa <handa@m17n.org>
2657
2658 * print.c (print_object): Make each lowest sub_char_table start a
2659 new line (Bug#2866).
2660
74fcd0b1
KH
26612009-04-02 Kenichi Handa <handa@m17n.org>
2662
2663 * fontset.c (fontset_font): Record no-font when a fontset
2664 explicitly tells not to try another font-specs.
2665
c542407d
SM
26662009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2667
2668 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2669
e3869731
KH
26702009-03-30 Kenichi Handa <handa@m17n.org>
2671
d8d2f142
KH
2672 * fontset.c (fontset_from_font): Specify only registry in a
2673 font-spec for all characters supported by that registry.
2674
e3869731
KH
2675 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2676 even if HAVE_M17N_FLT is not defined.
2677
5da5f805
CY
26782009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2679
2680 * ftfont.c: Conditionalize prototyping and use of
2681 ftfont_variation_glyphs.
2682
ab226c50
SM
26832009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2684
9628fed7
SM
2685 * frame.c (delete_frame): Work around compiler bug.
2686
2687 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2688 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2689 Some more EMACS_INT.
2690 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2691
2692 * xdisp.c (dump_glyph): Fix typo.
2693
ae19ba7c
SM
2694 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2695 (adjust_markers_gap_motion, adjust_markers_for_delete)
2696 (adjust_markers_for_insert, adjust_point)
2697 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2698 (make_gap, copy_text, count_size_as_multibyte, insert)
2699 (insert_and_inherit, insert_before_markers)
2700 (insert_before_markers_and_inherit, insert_1)
2701 (count_combining_before, count_combining_after, insert_1_both)
2702 (insert_from_string, insert_from_string_before_markers)
2703 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2704 (insert_from_buffer_1, adjust_after_replace)
2705 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2706 (replace_range_2, del_range, del_range_1, del_range_byte)
2707 (del_range_both, del_range_2, modify_region)
2708 (prepare_to_modify_buffer, signal_before_change)
2709 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2710 for buffer positions and sizes.
2711 * lisp.h: Adjust prototypes accordingly.
2712
2713 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2714 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2715 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2716
ab226c50
SM
2717 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2718
46dfb8fb
JD
27192009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2720
2721 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2722 lines and columns so we keep the same pixel height and width.
2723
2724 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2725 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2726 (x_handle_net_wm_state): New function to update frame parameter
2727 fullscreen.
2728 (x_term_init): Initialize atoms for _NET_WM_STATE.
2729
2730 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2731
d347e494
SM
27322009-03-27 Kevin Ryde <user42@zip.com.au>
2733
2734 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2735 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2736 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2737 (Fgpm_mouse_stop): Pass that new parameter.
2738 * termhooks.h (close_gpm): Adjust prototype.
2739
84db11d6
SM
27402009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2741
c95a5008
SM
2742 * lisp.h (Fx_focus_frame): Declare.
2743
84db11d6
SM
2744 * callint.c (Fcall_interactively): For '^' just delegate the work to
2745 handle-shift-selection.
2746 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2747
0a1958d6
CY
27482009-03-24 Chong Yidong <cyd@stupidchicken.com>
2749
0bfdff23
CY
2750 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2751
0a1958d6
CY
2752 * data.c (Qinteractive_form): New variable.
2753 (Finteractive_form): Use it.
2754
2755 * eval.c (Fcommandp): Use Qinteractive_form.
2756
58aec0d6
JR
27572009-03-24 Jason Rumney <jasonr@gnu.org>
2758
2759 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2760 Calculate total size precisely. Decode environment variables
2761 before substituting. (Bug#38)
2762
553dd618
KH
27632009-03-24 Kenichi Handa <handa@m17n.org>
2764
2765 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2766 encoding (Bug#2722).
553dd618 2767
c39ea606
JD
27682009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2769
2770 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2771 that gdpy is set.
2772
bc9b2b5e
AM
27732009-03-22 Alan Mackenzie <acm@muc.de>
2774
2775 * callint.c (Finteractive): Clarify the doc string - even
2776 promptless elements need \n separators.
2777
9f995a76
JR
27782009-03-22 Jason Rumney <jasonr@gnu.org>
2779
2780 * w32term.c (syms_of_w32term): Doc fix for
2781 x-use-underline-position-properties.
2782
22749e9a
EZ
27832009-03-21 Eli Zaretskii <eliz@gnu.org>
2784
2785 * w32.c (getpwuid): Change argument type to unsigned.
2786 (struct w32_id): Change type of `rid' member to unsigned.
2787 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2788 argument ID to unsigned. All callers changed.
2789 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2790
e00553bf
EZ
27912009-03-20 Eli Zaretskii <eliz@gnu.org>
2792
2793 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2794 negative, produce a float value.
2795
2796 * dired.c (make_uid, make_gid): New functions.
2797 (Ffile_attributes): Use them to avoid negative UID and GID.
2798
f761d6b6
JB
27992009-03-20 Juanma Barranquero <lekktu@gmail.com>
2800
2801 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2802 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2803 Fix typos in docstrings.
2804
d507f8d7
KH
28052009-03-19 Kenichi Handa <handa@m17n.org>
2806
2807 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2808 changed, use font_load_for_lface to get a new font object.
2809 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2810
2811 * frame.c (x_set_font): Handle the case that ARG is a cons.
2812
c68845e0
GM
28132009-03-19 Glenn Morris <rgm@gnu.org>
2814
2815 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2816
bfa49dd1
CY
28172009-03-19 Chong Yidong <cyd@stupidchicken.com>
2818
2819 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2820
8458d4c1
KH
28212009-03-19 Kenichi Handa <handa@m17n.org>
2822
2823 * charset.c (load_charset_map_from_file): When a mapfile can't be
2824 loaded, signal an error.
2825
78e7d1fe
EZ
28262009-03-18 Eli Zaretskii <eliz@gnu.org>
2827
2828 * dired.c (Ffile_attributes): Make sure UID and GID are always
2829 positive, even if the value is too large for a positive EMACS_INT.
2830 Doc fix.
2831
2832 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2833
5da9fdfa
YM
28342009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2835
2836 * xmenu.c (xdialog_show): Move Fredisplay call ...
2837 (Fx_popup_dialog): ... here.
2838
7519c40d
SM
28392009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2840
2841 * dired.c (file_name_completion): Disable the first optimization just
2842 installed, since it is not implemented correctly.
2843
2cd298e2
SM
28442009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2845
2846 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2847 only if the entry can affect bestmatch.
2cd298e2
SM
2848 Stop the search early, as Ftry_completion already does.
2849
48d37adf
CY
28502009-03-17 Chong Yidong <cyd@stupidchicken.com>
2851
e10c9c93 2852 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2853
9286b16a
CY
28542009-03-15 Chong Yidong <cyd@stupidchicken.com>
2855
2856 * keyboard.c (parse_menu_item): Don't display remappings as menu
2857 equivalent bindings (Bug#788).
2858
f7b146dc
JR
28592009-03-15 Jason Rumney <jasonr@gnu.org>
2860
2861 * w32term.h (WM_EMACS_PAINT): New message.
2862 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2863 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2864 before passing to lisp thread. (Bug#950)
2865
f761d6b6 28662009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2867
d93f9575
CY
2868 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2869 variable as it was never reset.
2870 (ns_term_init): Remove initialization of Lisp-settable defaults
2871 and ns_expand_space.
2872 (-setPanelFromDefaultValues): Remove ns_expand_space.
2873 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2874 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2875 i.e. no additional spacing, similar to Carbon port.
2876
d93f9575
CY
2877 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2878 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2879
305018ec
JD
28802009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2881
2882 * sound.c (alsa_configure): Remove call to deprecated
2883 snd_pcm_sw_params_set_xfer_align.
2884
f761d6b6 28852009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2886
2887 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2888 after clicking in a detached tool bar.
2889 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2890
46e722a9
SM
28912009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2892
348db3dd
SM
2893 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2894 int/Lisp_Object mixup).
46e722a9 2895
a3d16f39
KH
28962009-03-13 Kenichi Handa <handa@m17n.org>
2897
2898 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2899 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2900 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2901 (set_fontset_font): Change ARG to a vector. Handle range_list in
2902 ARG correctly.
2903 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2904 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2905 the above change.
2906 (fontset_from_font): Fix previous change.
fe24f56a 2907 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2908 entry. If FONTSET is the default fontset, don't set the extra
2909 slot of the returning char-table.
2910
b066e6b6
JB
29112009-03-12 Juanma Barranquero <lekktu@gmail.com>
2912
2913 * nsfns.m (Fx_close_connection): Doc fix.
2914 (Fns_do_applescript): Reflow docstring.
2915 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2916 (Fx_display_pixel_width, Fx_display_pixel_height)
2917 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2918 Fix typos in docstrings.
2919 (Fns_set_alpha): Fix typos in error messages.
2920
d472514e 29212009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2922
d472514e 2923 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2924 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2925 were used for such events.
2926
d472514e
JB
2927 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2928 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2929
d472514e 2930 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2931 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2932
fb930676
KH
29332009-03-11 Kenichi Handa <handa@m17n.org>
2934
ff85581a
KH
2935 * font.h (font_open_by_spec): Extern it.
2936
c50b7e98
KH
2937 * font.c (font_open_by_spec): New function.
2938 (font_open_by_name): Use font_open_by_spec.
2939
fb930676
KH
2940 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2941 fontset of the frame.
2942
2943 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2944 modify the default font of frames that use this fontset.
2945 (num_auto_fontsets): New variable.
2946 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2947 name. Be sure to set FONTSET_ASCII to the correct font name.
2948 (update_auto_fontset_alist): New function.
2949
df4e8455
JB
29502009-03-11 Juanma Barranquero <lekktu@gmail.com>
2951
2952 * makefile.w32-in: Update dependencies.
2953
0a375797
AR
29542009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2955
2956 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2957
61313fa3
SM
29582009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2959
2960 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2961
b55103fb
CY
29622009-03-10 Chong Yidong <cyd@stupidchicken.com>
2963
2964 * lread.c (Feval_buffer): Doc fix.
2965
dde2559c
KH
29662009-03-09 Kenichi Handa <handa@m17n.org>
2967
2968 * charset.c (Qfile_name_handler_alist): Extern it.
2969 (load_charset_map_from_file): Temporarily bind
2970 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2971
df4e8455 29722009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2973
47f588bb
GM
2974 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2975 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2976
4ddf94bd
AR
29772009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2978
4c9bdfc2
AR
2979 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2980 (x_set_window_size): Change back to calculated method of setting
2981 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2982 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2983 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2984
fe41ae9e
AR
2985 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2986
4c9bdfc2
AR
2987 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2988 accelerator in parens under GNUstep.
2989
825d0875
KH
29902009-03-06 Kenichi Handa <handa@m17n.org>
2991
2992 These changes are to detect incorrect composition sequence without
f3b3be74 2993 looking ahead the source. (Bug#2370)
825d0875
KH
2994
2995 * coding.h: Include "composite.h".
2996 (enum compisition_state): New enum.
2997 (struct compisition_status): New struct.
2998 (struct iso_2022_spec): New member cmp_status.
2999 (struct emacs_mule_spec): New struct.
3000 (struct coding_system): New members ctext_extended_segment_len and
3001 embedded_utf_8. Change the union member
3002 spec.emacs_mule_full_support to spec.emacs_mule.
3003
3004 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3005 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3006 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3007 (ADD_COMPOSITION_DATA): New arg nbytes.
3008 (emacs_mule_char): New arg cmp_status.
3009 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3010 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3011 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3012 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3013 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3014 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3015 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3016 (EMACS_MULE_COMPOSITION_END): New macro.
3017 (emacs_mule_finish_composition): New function.
3018 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3019 (decode_coding_emacs_mule): Avoid long looking ahead while
3020 handling composition.
3021 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3022 (ENCODE_COMPOSITION_RULE): New macro.
3023 (finish_composition): New function.
3024 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3025 (DECODE_COMPOSITION_START): New implementation.
3026 (DECODE_COMPOSITION_END): Likewise.
3027 (STORE_COMPOSITION_RULE): New macro.
3028 (decode_coding_iso_2022): Avoid long looking ahead while handling
3029 composition, CTEXT extended segment, and embedded UTF-8.
3030 (setup_coding_system): For a coding of type iso-2022, reset
3031 CODING_ISO_EXTSEGMENT_LEN (coding) and
3032 CODING_ISO_EMBEDDED_UTF_8 (coding).
3033 (get_translation): Delete arguments last_block, from_nchars,
3034 to_nchars. Callers changed.
3035 (produce_chars): Don't modify charbuf. Adjusted for the change of
3036 get_translation.
98a326f7 3037 (produce_composition): Adjust for the new annotation sequence.
825d0875 3038 (handle_composition_annotation): Likewise.
98a326f7 3039 (consume_chars): Adjust for the change of get_translation.
825d0875 3040
ccbc4452
AR
30412009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3042
4ddf94bd 3043 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3044
988a7ddb
KH
30452009-03-05 Kenichi Handa <handa@m17n.org>
3046
3047 * font.c (font_select_entity): New function.
3048 (font_find_for_lface): Use font_select_entity to select a font.
3049
3050 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3051 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3052 font with C restriction.
3053
98a326f7 30542009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3055
be1bce46 3056 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3057
10ea2b82
JR
30582009-03-04 Jason Rumney <jasonr@gnu.org>
3059
2c93b248 3060 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3061 characters that have already been read. (Bug#2569)
2c93b248 3062
10ea2b82
JR
3063 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3064 Log an error message if check_image_size failed.
3065 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3066 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3067
71a0c011
EZ
30682009-03-02 Eli Zaretskii <eliz@gnu.org>
3069
3070 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3071 when decoding process output.
3072
2f63bba8
RS
30732009-03-01 Richard M Stallman <rms@gnu.org>
3074
3075 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3076
3077 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3078
0a9564cb
EZ
30792009-02-28 Eli Zaretskii <eliz@gnu.org>
3080
3081 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3082 (decode_coding_emacs_mule, decode_coding_iso_2022)
3083 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3084 (decode_coding_raw_text, decode_coding_charset)
3085 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3086 Honor inhibit-eol-conversion. (Bug #2186)
3087
449148b3
JR
30882009-02-28 Jason Rumney <jasonr@gnu.org>
3089
3090 * coding.c (detect_coding_charset): If not checking latin extra,
3091 fail on characters between 0x80 and 0xA0. (Bug#2354)
3092
a4aee864
EZ
30932009-02-28 Eli Zaretskii <eliz@gnu.org>
3094
3095 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3096 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3097
d88bee5a
GM
30982009-02-27 Glenn Morris <rgm@gnu.org>
3099
3100 * callint.c (Finteractive): Doc fix.
3101
a808f22d
KH
31022009-02-27 Kenichi Handa <handa@m17n.org>
3103
3104 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3105
caf8d60c
CY
31062009-02-27 Chong Yidong <cyd@stupidchicken.com>
3107
3108 * font.c (font_style_to_value): Set value for unknown symbols to
3109 100 instead of 255.
b61137ea
CY
3110 (weight_table, slant_table, width_table): Treat "unspecified" as
3111 the default value.
caf8d60c 3112
1a0de25c
JB
31132009-02-26 Juanma Barranquero <lekktu@gmail.com>
3114
3115 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3116
8fc45744
JB
31172009-02-25 Juanma Barranquero <lekktu@gmail.com>
3118
107bd7d1
JB
3119 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3120 error as soon as a recursive load is detected.
8fc45744 3121
f097e223
AR
31222009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3123
3124 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3125 before caching.
3126
8810a12f
KH
31272009-02-24 Kenichi Handa <handa@m17n.org>
3128
3129 * fontset.c (fontset_find_font): Fix the condition for checking
3130 unavailable font.
3131
2c7d1565
GM
31322009-02-24 Glenn Morris <rgm@gnu.org>
3133
3134 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3135 whitespace that confuses documentation.
3136
a20878b6
MB
31372009-02-23 Miles Bader <miles@gnu.org>
3138
3139 * process.c (Flist_system_processes, Fprocess_attributes)
3140 (syms_of_process): Rename `system-process-attributes' to
3141 `process-attributes'.
3142
b3b58c01
AS
31432009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3144
1b3b981b
AS
3145 * coding.h (struct coding_system): Make safe_charsets a pointer to
3146 unsigned char.
3147 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3148 being 255.
3149 (SAFE_CHARSET_P): Likewise.
3150 (setup_iso_safe_charsets): Properly setup safe_charsets.
3151 (Fdefine_coding_system_internal): Likewise.
3152 (setup_coding_system): Likewise. Remove unneeded casts.
3153 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3154 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3155 unneeded casts.
3156
b3b58c01
AS
3157 * insdel.c (del_range_2): Don't modify gap contents when called
3158 from decode_coding_object. (Bug#1809)
3159
0b6f228c
CY
31602009-02-21 Chong Yidong <cyd@stupidchicken.com>
3161
3162 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3163 Qfont_object.
3164 (Ftype_of): Recognize font objects.
3165
3166 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3167
3168 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3169 moved to data.c.
3170
52f8870b
AR
31712009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3172
3173 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3174 async_iconified. Based on a patch by Christian Lynbech
3175 <christian.lynbech@tieto.com>.
3176 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3177
7087d5e9
GM
31782009-02-20 Glenn Morris <rgm@gnu.org>
3179
3180 * syntax.c (Fskip_chars_forward): Fix doc typo.
3181
41d2ceef
CY
31822009-02-20 Chong Yidong <cyd@stupidchicken.com>
3183
3184 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3185
1a3b7ca6
CY
31862009-02-19 Chong Yidong <cyd@stupidchicken.com>
3187
3188 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3189
73cce38d
KH
31902009-02-19 Kenichi Handa <handa@m17n.org>
3191
3192 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3193 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3194
a51092ee
DN
31952009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3196
3197 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3198
c423ecca
KH
31992009-02-18 Kenichi Handa <handa@m17n.org>
3200
3201 * font.c (font_check_otf_features): Fix handling of `nil' element.
3202 (Ffont_spec): Describe :lang and :otf in the docstring.
3203
4c1958f4
AS
32042009-02-16 Andreas Schwab <schwab@suse.de>
3205
3206 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3207 string.
3208
5704f39a
KH
32092009-02-16 Kenichi Handa <handa@m17n.org>
3210
3211 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3212 (Bug#1723)
5704f39a 3213
8f0085aa
CY
32142009-02-14 Chong Yidong <cyd@stupidchicken.com>
3215
a057d86a 3216 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3217
3218 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3219 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3220
aff01dd9
EZ
32212009-02-14 Eli Zaretskii <eliz@gnu.org>
3222
3223 * msdos.c (MAX_SCREEN_BUF): New macro.
3224 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3225 Encode the entire run of glyphs sharing the same face, instead of
3226 doing that one glyph at a time (fixes a bug with displaying
3227 double-size characters).
3228
ba301db3
AR
32292009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3230
3231 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3232
3233 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3234 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3235 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3236
3237 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3238 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3239
51d861de
SM
32402009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3241
3242 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3243 invisible areas.
3244
7fed8996
JR
32452009-02-12 Jason Rumney <jasonr@gnu.org>
3246
631ea4fb
JR
3247 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3248 (add_font_entity_to_list): Call check_face_name even when family
3249 is unspecified.
3250
cb4a3e42
JR
3251 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3252 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3253 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3254
7fed8996 3255 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3256 raster fonts. (Bug#2219)
7fed8996 3257
895416e3
KH
32582009-02-12 Kenichi Handa <handa@m17n.org>
3259
3260 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3261 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3262 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3263 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3264 (find_automatic_composition): While looking forward and backward,
3265 check static composition. Fix where to stop looking forward.
3266 (composition_adjust_point): Fix checking of static composition.
3267 (Fcomposition_get_gstring): Pay attention to
1dacf998 3268 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3269
3270 * lisp.h (fast_looking_at): Extern it.
3271
3272 * search.c (fast_looking_at): New function.
3273
51d861de 3274 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3275 <struct glyph>.u.cmp.to.
3276 (append_composite_glyph): Likewise.
3277
51d861de 3278 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3279 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3280 composition.
51d861de 3281 (append_composite_glyph): Adjust for the change of
895416e3
KH
3282 <strcut glyph>.u.cmp.to.
3283
8510724d
JB
32842009-02-11 Juanma Barranquero <lekktu@gmail.com>
3285
3286 * casetab.c (init_casetab_once):
3287 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3288 * font.c (font_update_lface):
3289 * fontset.c (Fnew_fontset):
3290 * ftfont.c (ftfont_drive_otf):
3291 * xfont.c (xfont_open):
3292 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3293
294fa707
SM
32942009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3295
3296 * fileio.c (Fwrite_region): !NILP -> CONSP.
3297
b5bfebec
AS
32982009-02-10 Andreas Schwab <schwab@suse.de>
3299
3300 * process.c (send_process): Properly relocate pointer into data
adab88bd 3301 when using encoded data. (Bug#2272)
b5bfebec 3302
cb84a2be
KH
33032009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3304
3305 * coding.c (detect_coding_charset): Fix previous change.
3306
89e09428
JR
33072009-02-08 Jason Rumney <jasonr@gnu.org>
3308
3309 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3310 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3311
4470a277
AS
33122009-02-07 Andreas Schwab <schwab@suse.de>
3313
3314 * unexelf.c (unexec): Fix error message.
3315
3175b12a
AR
33162009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3317
3318 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3319 when modal window is active. (Bug #2152)
3175b12a
AR
3320 (applicationShouldTerminate:): Remove now-unneeded while loop
3321 around NSRunAlertPanel.
3322
3323 * nsmenu.m (popupSession): New file-global variable.
3324 (pop_down_menu): End the popupSession before closing dialog.
3325 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3326 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3327 don't query NSApp for events (just sleep instead).
3328
8434d0b8
EZ
33292009-02-07 Eli Zaretskii <eliz@gnu.org>
3330
51d861de
SM
3331 * coding.c (syms_of_coding) <translation-table-for-input>:
3332 Modify doc string to discourage use for character code unification.
8434d0b8 3333
aa82edfd
CY
33342009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3335
3336 * atimer.c (run_timers): Update pending_atimers.
3337
2d283c7c
CY
33382009-02-06 Chong Yidong <cyd@stupidchicken.com>
3339
eb306cab
CY
3340 * image.c (svg_load_image): Fix last change.
3341
2d283c7c
CY
3342 * xfns.c (Fx_create_frame): Signal an error if no font is
3343 found (Bug#2147).
3344
4d8e170e
JB
33452009-02-05 Juanma Barranquero <lekktu@gmail.com>
3346
3347 * character.c (syms_of_character) <script-representative-chars>:
3348 Fix typo in docstring.
3349
c96169a0
AR
33502009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3351
3352 * nsmenu.m (pop_down_menu): New function.
3353 (ns_popup_dialog): Call it on unwind.
3354 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3355 call timer_check() (Bug#2154).
3356 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3357 handling_signal is set.
3358 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3359
31fd7c5c 3360 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3361
3362 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3363
3364 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3365
51d861de
SM
3366 * keyboard.c (poll_for_input_1, handle_async_input):
3367 Set handling_signal under HAVE_NS.
c96169a0 3368
aacd8ba1
GM
33692009-02-04 Glenn Morris <rgm@gnu.org>
3370
3371 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3372
4cb75c4b
KH
33732009-02-04 Kenichi Handa <handa@m17n.org>
3374
3375 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3376
3377 * charset.c (Fchar_charset): New optional arg restriction.
3378
3379 * coding.h (coding_system_charset_list): Extern it.
3380
3381 * coding.c (coding_system_charset_list): New function.
3382
3383 * composite.c: Include coding.h and termhooks.h.
3384 (composition_gstring_p): Fix for the terminal case.
3385 (composition_gstring_width): Likewise.
3386 (fill_gstring_body): Likewise.
3387 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3388 the frame.
3389 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3390 is within a composition.
867d4bb3 3391 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3392
3393 * term.c (encode_terminal_code): Fix handling of composition.
3394 (produce_composite_glyph): For static composition, get pixel_width
3395 from struct composition.
3396
826ba17e
AS
33972009-02-02 Andreas Schwab <schwab@suse.de>
3398
3399 * unexelf.c (unexec): Handle unaligned bss offset.
3400
8ad093db
AR
34012009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3402
3403 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3404 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3405
8ad093db
AR
3406 * keyboard.c (handle_interrupt): Don't call
3407 quit_throw_to_read_char() under NS.
d0a76a6e 3408
8ad093db
AR
3409 * blockinput.h: Remove NS-specific code.
3410
4d18a7a2
DN
34112009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3412
db878925
DN
3413 * dispnew.c (window_change_signal): Don't try to get the size of a
3414 suspended tty frame.
3415 * term.c (Fresume_tty): Resize if the size has changed while the
3416 tty was suspended.
3417
4d18a7a2
DN
3418 * alloc.c (mark_stack): Properly conditionalize previous change.
3419
8984df7c
JB
34202009-01-30 Juanma Barranquero <lekktu@gmail.com>
3421
3422 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3423 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3424 Remove; this code is not used on Windows.
3425
75f4f1ac
EZ
34262009-01-30 Eli Zaretskii <eliz@gnu.org>
3427
3428 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3429 EOLs that also has stray ^M characters.
3430
07a1e794
JB
34312009-01-30 Juanma Barranquero <lekktu@gmail.com>
3432
3433 * atimer.c (run_timers, alarm_signal_handler):
3434 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3435 * w32inevt.c (w32_console_read_socket):
3436 * w32term.c (w32_read_socket):
3437 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3438
a8b11cc9
CY
34392009-01-30 Chong Yidong <cyd@stupidchicken.com>
3440
3441 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3442 Initialize it as a relative filename pattern.
3443 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3444 (Fcall_process_region): Simplify temp file creation using
3445 temporary-file-directory.
3446
c279587b
EZ
34472009-01-29 Eli Zaretskii <eliz@gnu.org>
3448
3449 * msdos.c: Rename pending_signals to msdos_pending_signals.
3450 (sig_suspender, sigprocmask): Adjust.
3451
a8fe3242
CY
34522009-01-29 Chong Yidong <cyd@stupidchicken.com>
3453
3454 * keyboard.c (pending_signals): New var.
3455 (poll_for_input, input_available_signal, init_keyboard): Set it.
3456 (process_pending_signals): New function.
3457
3458 * lisp.h (QUIT): Check pending_signals instead of
3459 interrupt_input_pending. Use process_pending_signals.
3460
51d861de 3461 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3462
51d861de 3463 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3464
3465 * sysdep.c (emacs_write): Use process_pending_signals.
3466
3467 * xterm.c (XTread_socket): Update pending_signals.
3468
3469 * w32term.c (w32_read_socket): Update pending_signals.
3470
3471 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3472
6570a1c4
KH
34732009-01-29 Kenichi Handa <handa@m17n.org>
3474
3475 * xftfont.c (xftfont_has_char): New function.
3476 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3477
d72a4afa
AR
34782009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3479
3480 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3481 under GNUstep.
3482 (ns_query_color): New declaration.
3483
3484 * nsterm.m (ns_confirm_quit): New variable.
3485 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3486 (EmacsApp-applicationShouldTerminate:): Use it.
3487 (EmacsPrefsController): Let user set it.
3488 (ns_query_color): New function.
3489 (ns_defined_color): Use it.
3490 (ns_initialize): Drop.
3491 (ns_term_init): Add two lines from ns_initialize(), and set
3492 input_interrupt_mode to nil.
3493
3494 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3495 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3496
9fe78804
KH
34972009-01-28 Kenichi Handa <handa@m17n.org>
3498
3499 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3500 (fontset_get_font_group): Remember that no font-group is specified
3501 for C.
9fe78804 3502
fa57de36
CY
35032009-01-27 Chong Yidong <cyd@stupidchicken.com>
3504
930600e9
CY
3505 * fns.c (concat): Check for string overflow (bug#1787).
3506
fa57de36
CY
3507 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3508 Quadruple undo limits (bug#1501).
3509
7179ce7b
KH
35102009-01-27 Kenichi Handa <handa@m17n.org>
3511
3512 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3513 directly use GT_Get_Char_index.
3514
3515 * xftfont.c (struct xftfont_info): New member `index'.
3516
3517 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3518 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3519
5be8fcc0
CY
35202009-01-26 Kenichi Handa <handa@m17n.org>
3521
3522 * fontset.c (fontset_find_font): Fix handling of non-cons return
3523 value of fontset_get_font_group.
3524 (fontset_font): Revert last change.
3525
19ae3e61
JR
35262009-01-26 Jason Rumney <jasonr@gnu.org>
3527
3528 * w32font.c (w32font_list_internal): Return quickly if registry is
3529 unknown. Simplify final return.
3530 (add_font_entity_to_list): Break complex logic down into more
3531 manageable chunks. Move unknown registry check to
3532 w32font_list_internal.
3533
8612b71a
AR
35342009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3535
3536 Changes to remove Feval calls from GUI under NS.
3537
d8038940
JB
3538 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3539 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3540 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3541
3542 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3543 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3544 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3545 instead of NON_ASCII_KEYSTROKE_EVENT.
3546 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3547 (EmacsApp-applicationShouldTerminate:): Query user.
3548 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3549 instead of Feval.
3550
3551 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3552
3553 * keyboard.c (kbd_buffer_get_event): Check for it.
3554 (keys_of_keyboard): Define lispy keys for
3555 ns-put/unput-working-text.
3556
3557 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3558 versions.
3559 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3560
6288ae55
CY
35612009-01-25 Chong Yidong <cyd@stupidchicken.com>
3562
3563 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3564 setting current_buffer directly. (Bug#2044)
6288ae55 3565
289e7f8f
CY
35662009-01-24 Chong Yidong <cyd@stupidchicken.com>
3567
5ce87308 3568 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3569 any work. (Bug#1952, bug#1990).
5ce87308 3570
64cc3cf6 3571 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3572
b3243e6f
AR
35732009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3574
3575 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3576 (ns_no_defaults): New declaration.
3577 (main): Use it.
e0d2e69a 3578
d900b2af 3579 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3580
d900b2af 3581 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3582
d900b2af
AR
3583 * nsterm.m (ns_no_defaults): New variable.
3584 (ns_initialize): Don't read defaults when ns_no_defaults.
3585 (EmacsView-readSelectionFromPasteboard:)
3586 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3587 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3588 (ns_dumpglyphs_stretch): New function.
3589 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3590 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3591
e0d2e69a
AR
3592 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3593
3ac71f5d
CY
35942009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3595
3596 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3597 call for Sparc64.
3598
3fe53a83
AR
35992009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3600
3601 * nsfns.m:
3602 * nsgui.h:
3603 * nsmenu.m:
3604 * nsselect.m:
3605 * nsterm.h:
3606 * nsterm.m: Remove '23' comments that indicated code added during
3607 update from emacs-20 -> emacs-23.
3608
10f87c6f 36092009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3610
3611 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3612 ns_alternate_modifier. (Bug#1217)
a3b53a85 3613
c7cef62d
AR
3614 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3615 Display all shortcuts, including those w/o super modifier.
3616
575fb8bd
AR
3617 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3618
918b848b
CY
36192009-01-22 Chong Yidong <cyd@stupidchicken.com>
3620
3621 * fileio.c (Vwrite_region_post_annotation_function)
3622 (Vwrite_region_annotation_buffers): New vars.
3623 (build_annotations_unwind): Just reset
3624 Vwrite_region_annotation_buffers.
3625 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3626 Call write-region-post-annotation-function.
3627 (build_annotations): Add to Vwrite_region_annotation_buffers if
3628 buffer changes.
3629
a39e2539
AR
36302009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3631
3632 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3633 Tiger.
51d861de
SM
3634 * nsfns.m (ns_do_applescript):
3635 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3636
35ed44db
AR
36372009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3638
3639 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3640
cbe0b5bf
AR
36412009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3642
3643 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3644
6049d3a0
AR
3645 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3646
3647 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3648 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3649 handle Ctrl-tab. (Bug#1841)
3650 (ns_get_color): Use unsigned long long for scanned hex string value.
3651 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3652 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3653 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3654 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3655 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3656 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3657 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3658
d3810c21 3659 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3660 DPI. (Bug#1316)
d3810c21
AR
3661 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3662 values in onTiger section.
4c7077c3 3663
e301e634
CY
36642009-01-19 Chong Yidong <cyd@stupidchicken.com>
3665
7f82490b
CY
3666 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3667 Check return value of font_spec_from_name.
64cc3cf6 3668 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3669
3670 * font.c (font_spec_from_name): Return Qnil if font name could not
3671 be parsed.
3672 (font_parse_name): Treat a `?' character as part of an XLFD.
3673
e301e634
CY
3674 * fns.c (Fsubstring): Doc fix.
3675
1c0db158
KH
36762009-01-19 Kenichi Handa <handa@m17n.org>
3677
51d861de 3678 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3679 (ftfont_list): Likewise.
3680
acf20901
JB
36812009-01-18 Juanma Barranquero <lekktu@gmail.com>
3682
fff4e459
JB
3683 * dbusbind.c (Fdbus_register_signal):
3684 * process.c (conv_sockaddr_to_lisp):
3685 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3686
acf20901
JB
3687 * callproc.c (Fgetenv_internal): Doc fix.
3688
e7abcdfb
CY
36892009-01-16 Chong Yidong <cyd@stupidchicken.com>
3690
3691 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3692 it is not even used.
3693
b60861e6
GM
36942009-01-16 Glenn Morris <rgm@gnu.org>
3695
3696 * font.c (Ffont_variation_glyphs): Silence compiler.
3697
8db52afe
JB
36982009-01-15 Juanma Barranquero <lekktu@gmail.com>
3699
3700 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3701 Reported by David Robinow <drobinow@gmail.com>.
3702
4cddb209
KH
37032009-01-15 Kenichi Handa <handa@m17n.org>
3704
51d861de 3705 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3706
f247f67b
JR
37072009-01-14 Jason Rumney <jasonr@gnu.org>
3708
3709 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3710 never a fontset. (Bug#1562)
f247f67b 3711
f56a4450
KH
37122009-01-14 Kenichi Handa <handa@m17n.org>
3713
3714 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3715 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3716
4e99855e
CY
37172009-01-13 Chong Yidong <cyd@stupidchicken.com>
3718
3719 * font.c (font_clear_prop): If clearing the family, clear the font
3720 width index too.
3721
fff4e459 3722 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3723
24f01470
JB
37242009-01-12 Juanma Barranquero <lekktu@gmail.com>
3725
3726 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3727 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3728 functions, use sizeof.
3729
a41240a3
MR
37302009-01-12 Martin Rudalics <rudalics@gmx.at>
3731
3732 * keyboard.c (read_char): Fix case where last_nonmenu_event
3733 returned a bad value with submenus. (Bug#447)
3734
944636b8
CY
37352009-01-12 Chong Yidong <cyd@stupidchicken.com>
3736
3737 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3738 family, clear the font width index too.
3739
0dad7c6f
JR
37402009-01-11 Jason Rumney <jasonr@gnu.org>
3741
3742 * keyboard.c (cmd_error_internal): Exit when errors occur before
3743 frame creation and not in daemon mode. (Bug#1836)
3744
7c2363af
CY
37452009-01-10 Chong Yidong <cyd@stupidchicken.com>
3746
3747 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3748 of a display vector, backtrack.
3749 (try_window_reusing_current_matrix): Check glyph type before
3750 referencing charpos member.
3751
97b1b294
EZ
37522009-01-10 Eli Zaretskii <eliz@gnu.org>
3753
3754 Fix Bug #876:
3755
3756 * coding.c (inhibit_null_byte_detection): New variable.
3757 (detect_coding, detect_coding_system): Don't pay attention to null
3758 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3759 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3760 <inhibit-iso-escape-detection>: Doc fix.
3761
4624b6e3
JR
37622009-01-09 Jason Rumney <jasonr@gnu.org>
3763
3764 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3765 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3766 Only report Unicode Plane 2 fonts as unicode-sip.
3767
323b840c
CY
37682009-01-09 Chong Yidong <cyd@stupidchicken.com>
3769
51d861de
SM
3770 * xfaces.c (Fx_font_family_list): Delete function.
3771 Move compatibility version to faces.el.
323b840c 3772
51d861de 3773 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3774
eba7400d
MR
37752009-01-09 Martin Rudalics <rudalics@gmx.at>
3776
3777 * frame.c (x_set_frame_parameters): Remember requested value for
3778 fullscreen before it's reset by the parameter handler.
3779
4b09796d
GM
37802009-01-09 Glenn Morris <rgm@gnu.org>
3781
3782 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3783 (last_command_event): ... and update all users.
4b09796d
GM
3784 (last_input_char): For clarity, rename to...
3785 (last_input_event): ... and update all users.
3786 (last-command-char, last-input-char): Move to subr.el as aliases.
3787 * cmds.c, commands.h: Update for last_command_char rename.
3788
14ccea62
CY
37892009-01-08 Chong Yidong <cyd@stupidchicken.com>
3790
51d861de 3791 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3792
5f004711
JR
37932009-01-08 Jason Rumney <jasonr@gnu.org>
3794
3795 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3796 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3797 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3798 Don't declare.
fff4e459 3799 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3800 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3801
b71f6f73
KH
38022009-01-07 Kenichi Handa <handa@m17n.org>
3803
50b06221 3804 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3805 remember the coding system used for decoding in
50b06221
KH
3806 coding_system (Bug#1039).
3807
b71f6f73 3808 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3809 breaking the loop. (Bug#870)
b71f6f73
KH
3810 (decode_coding_utf_16, decode_coding_emacs_mule)
3811 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3812 (decode_coding_charset): Likewise.
3813
56f668f7
MR
38142009-01-05 Martin Rudalics <rudalics@gmx.at>
3815
3816 * frame.c (x_set_frame_parameters): Make sure height (width) get
3817 applied when fullwidth (fullheight) is set. (Bug#1522)
3818
5da9424d
JB
38192009-01-04 Juanma Barranquero <lekktu@gmail.com>
3820
3821 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3822 (utc_base): Declare as ULONGLONG, not long double.
3823 (convert_time_raw): Delete.
3824 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3825 (initialize_utc_base): New function.
3826 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3827 (convert_from_time_t): Use initialize_utc_base; compute result with
3828 64-bit arithmetic.
3829 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3830
c4605e09
EZ
38312009-01-03 Eli Zaretskii <eliz@gnu.org>
3832
9acef61c 3833 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3834 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3835 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3836 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3837 [!subprocesses]: Define.
3838 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3839 (Flist_system_processes, Fsystem_process_attributes)
3840 [!subprocesses]: Call list_system_processes and
3841 system_process_attributes instead of returning Qnil.
3842
9acef61c
JB
3843 * dosfns.c (system_process_attributes, list_system_processes):
3844 New functions.
c4605e09
EZ
3845
3846 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3847
3848 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3849 Don't use the default (no-op) implementation.
3850
8b7d0a16
JR
38512009-01-03 Jason Rumney <jasonr@gnu.org>
3852
a6d46bc1
JR
3853 * keyboard.c (parse_modifiers_uncached): Wheel events are
3854 clicks (bug#687).
3855
8b7d0a16
JR
3856 * w32term.c (x_query_colors, x_query_color): New functions.
3857
3858 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3859 (svg_load_image): Cast returned pointers from dynamically loaded
3860 functions. Eliminate W32 specific code.
3861
bfe11752
DN
38622009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3863
89e2438a
DN
3864 * nsfns.m (x_set_foreground_color, x_set_background_color)
3865 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3866 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3867 x_ prefix instead of ns_. Update references.
3868 (syms_of_nsfns): Add a FIXME comment.
3869
3870 * nsterm.m (x_set_cursor_type): New prototype.
3871 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3872
bfe11752
DN
3873 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3874 for Solaris instead of incorrectly providing Qutime and Qcutime.
3875
031da700
EZ
38762009-01-02 Eli Zaretskii <eliz@gnu.org>
3877
3878 * w32.c (process_times): Compute sum of utime and stime.
3879 (system_process_attributes): Add Qtime to the alist.
3880
3881 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3882 and add them to the alist.
3883
3884 * process.c (top level) <Qtime, Qctime>: New variables.
3885 (syms_of_process): staticpro them.
3886 (Fsystem_process_attributes): Add their documentation to the doc
3887 string.
3888
3889 * process.h: Declare Qtime and Qctime.
3890
df23bf08
JR
38912009-01-02 Jason Rumney <jasonr@gnu.org>
3892
9acef61c 3893 * image.c (Qgobject): New symbol.
df23bf08
JR
3894 (syms_of_image): Initialize it.
3895 (init_svg_functions): Load some functions from gobject library.
3896
5bbdf7aa
DN
38972009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3898
3899 * frame.c (make_terminal_frame): Remove redundant code and useless
3900 block.
3901
63136da6
AS
39022009-01-01 Andreas Schwab <schwab@suse.de>
3903
3904 * process.c (conv_sockaddr_to_lisp): Add workaround for
3905 getsockname bug on BSD.
3906
9ef69046
CY
39072009-01-01 Chong Yidong <cyd@stupidchicken.com>
3908
d6fafbe0
CY
3909 * xfns.c (x_create_tip_frame): Set border width of the X window.
3910
51d861de 3911 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3912
f9c34147
JR
39132009-01-01 Jason Rumney <jasonr@gnu.org>
3914
9acef61c 3915 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3916 Don't block input, as per earlier xterm.c changes.
3917
f5497e45
AR
39182008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3919
3920 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3921 (ns_appkit_version_int): New function.
3922 (x-server-version): Use ns_appkit_version_int and follow 21+
3923 convention of returning 3 integers.
3924
c19cab20
KH
39252008-12-30 Kenichi Handa <handa@m17n.org>
3926
3927 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3928 (CHAR_SURROGATE_PAIR_P): New macro.
3929
3930 * font.h (struct font_driver): New member get_variation_glyphs.
3931
9acef61c 3932 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3933 (Ffont_variation_glyphs): New function.
3934 (syms_of_font): Defsubr it.
3935
3936 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3937 ftfont_variation_glyphs.
3938 (setup_otf_gstring): New function.
3939 (ftfont_drive_otf): Use it.
3940 (ftfont_shape_by_flt): Handle variation selector.
3941 (ftfont_variation_glyphs): New function.
3942
28cd591f
MR
39432008-12-30 Martin Rudalics <rudalics@gmx.at>
3944
3945 * frame.c (Vemacs_iconified): Remove.
3946
7f714baf
JR
39472008-12-30 Jason Rumney <jasonr@gnu.org>
3948
3949 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3950 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3951
9d2d22ab
CY
39522008-12-30 Chong Yidong <cyd@stupidchicken.com>
3953
3954 * indent.c (Fvertical_motion): Don't advance iterator if we have
3955 reseated to the desired position.
3956
3957 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3958 checking for pos match.
3959
545312c2
KH
39602008-12-30 Kenichi Handa <handa@m17n.org>
3961
1ede3eb6
KH
3962 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3963 just get the low 8-bit of the code.
3964
545312c2
KH
3965 * font.c (font_intern_prop): Validate str as multibyte.
3966
bd7bbf29
DN
39672008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3968
31e0750e
DN
3969 * dispextern.h (struct face): Move lface and hash from the middle
3970 of bitfields.
3971
bd7bbf29
DN
3972 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3973
b5672e7c
DN
39742008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3975
3976 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3977 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3978 instead of intervals.h.
3979
d704470f
AS
39802008-12-26 Andreas Schwab <schwab@suse.de>
3981
3982 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3983 cons.
3984
54b33868
MR
39852008-12-26 Martin Rudalics <rudalics@gmx.at>
3986
3987 * textprop.c (Qminibuffer_prompt): New variable.
3988 (syms_of_textprop): Initialize it.
3989 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3990 in minibuffer-prompt face. (Bug#1662)
3991
40b615d6
JR
39922008-12-25 Jason Rumney <jasonr@gnu.org>
3993
3994 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3995
baae5c2d
JR
39962008-12-24 Jason Rumney <jasonr@gnu.org>
3997
3998 * ralloc.c (r_alloc_reset_variable): New function.
3999
4000 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4001 record of what points where. (Bug#716)
baae5c2d 4002
a9051c88
DN
40032008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4004
4005 * minibuf.c (read_minibuf): Follow the non-interactive case when
4006 running as a daemon, before detaching.
4007
8b146312
AS
40082008-12-22 Andreas Schwab <schwab@suse.de>
4009
4010 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4011 * gtkutil.c (free_widget_value): Use xfree instead of free.
4012
56f2de10
MR
40132008-12-22 Martin Rudalics <rudalics@gmx.at>
4014
4015 * frame.c (delete_frame): New function derived from
4016 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4017 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4018 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4019 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4020 * frame.h: Extern delete_frame.
4021 * window.c (window_loop):
4022 * terminal.c (delete_terminal):
4023 * xterm.c (x_connection_closed):
4024 * xfns.c (Fx_hide_tip):
9acef61c 4025 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4026
1fc200d6
JR
40272008-12-21 Jason Rumney <jasonr@gnu.org>
4028
4029 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4030 when character maps to .notdef character.
4031
5e252df2
SM
40322008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4033
4034 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4035
99b72cc4
JR
40362008-12-20 Jason Rumney <jasonr@gnu.org>
4037
4038 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4039 a graphical frame on Windows. (Bug#1325)
99b72cc4 4040
acc49a52
JD
40412008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4042
4043 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4044
6ea15123
CY
40452008-12-20 Chong Yidong <cyd@stupidchicken.com>
4046
4047 * minibuf.c (Fread_buffer): Doc fix.
4048
b2dab6c8
JR
40492008-12-20 Jason Rumney <jasonr@gnu.org>
4050
54ea0c87 4051 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4052 server name in UNC paths. (Bug#719)
54ea0c87 4053
b2dab6c8 4054 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4055 charbuf. (Bug#1035)
b2dab6c8 4056
6d1921be
DN
40572008-12-19 Daniel Engeler <engeler@gmail.com>
4058
4059 * sysdep.c (serial_configure): Fix typo.
4060
53934c98
DN
40612008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4062
4063 * sysdep.c: Include alloca.h.
f4f634e8
DN
4064 (system_process_attributes): Add implementation for Solaris.
4065
4066 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4067
06e111a6
DN
40682008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4069
4070 Reorganize implementation of Flist_system_processes and
4071 Fsystem_process_attributes. No functional changes.
4072 * process.c: Don't #include pwd.h, grp.h and limits.h.
4073 (Flist_system_processes): Just call list_system_processes.
4074 (Fsystem_process_attributes): Just call system_process_attributes.
4075 (procfs_list_system_processes, time_from_jiffies)
4076 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4077 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4078
4079 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4080 (list_system_processes): Rename from
4081 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4082 Provide a do nothing implementation.
4083 (system_process_attributes): Rename from
4084 procfs_list_system_processes.
4085 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4086 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4087
4088 * w32.c (list_system_processes): Rename from
4089 w32_list_system_processes.
4090 (system_process_attributes): Rename from
4091 w32_system_process_attributes.
4092
4093 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4094
4095 * process.h (w32_list_system_processes)
4096 (w32_system_process_attributes): Remove.
362654a6
JB
4097 (list_system_processes, system_process_attributes):
4098 New prototypes.
06e111a6 4099
6a705b23
KH
41002008-12-19 Kenichi Handa <handa@m17n.org>
4101
4102 * xfont.c (xfont_decode_coding_xlfd): New function.
4103 (xfont_encode_coding_xlfd): New function.
4104 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4105 (xfont_list): Decode and encode XLFD by iso-8859-1.
4106 (xfont_match): Likewise.
4107 (xfont_list_family): Likewise.
4108 (xfont_open): Likewise.
4109
d66c0241 4110 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4111 names are utf-8.
4112
d66c0241 4113 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4114 names are utf-8.
4115
5a130941
JD
41162008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4117
4118 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4119 changed.
bfd20325
JD
4120 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4121 clicked on a detached tool bar button.
5a130941 4122
fd95644b
DN
41232008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4124
4125 * emacs.c (main): Print and error and exit when no data is read
4126 from the pipe.
4127
e6eee6ae
JR
41282008-12-17 Jason Rumney <jasonr@gnu.org>
4129
4130 * w32font.c (w32font_has_char): Always return -1.
4131
a35dd56b
KH
41322008-12-16 Kenichi Handa <handa@m17n.org>
4133
4134 * font.c (font_open_entity): Fix previous change.
4135
0e3635c2
DN
41362008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4137
4138 * process.c: Include <limits.h>.
4139
d4835507 41402008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4141
4142 * font.c (font_update_drivers): Fix mistake in reconstructing the
4143 driver list.
4144
41452008-12-16 Chong Yidong <cyd@stupidchicken.com>
4146
4147 * font.c (font_clear_cache): Fix format of font cache data.
4148
e2cbc401
CY
41492008-12-15 Chong Yidong <cyd@stupidchicken.com>
4150
4151 * xftfont.c (xftfont_open): Free Xft font pattern if
4152 XftFontOpenPattern fails.
4153
4154 * xterm.c (x_free_frame_resources): Remove extraneous call to
4155 free_frame_faces.
4156
b131d535
CY
41572008-12-13 Chong Yidong <cyd@stupidchicken.com>
4158
4159 * xterm.c (x_delete_display): Move xim_close_dpy call to
4160 x_delete_terminal.
4161 (x_delete_terminal): Call xim_close_dpy.
4162
e6df5336
JR
41632008-12-13 Jason Rumney <jasonr@gnu.org>
4164
4165 * w32font.c (intern_font_name): New function.
4166 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4167 (w32font_open_internal, Fx_select_font): Decode font name.
4168 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4169
4170 * w32font.h (intern_font_name): Declare new function.
4171
4172 * w32uniscribe.c (add_opentype_font_name_to_list):
4173 Use intern_font_name.
4174
20d68145
CY
41752008-12-13 Chong Yidong <cyd@stupidchicken.com>
4176
9f2554de
CY
4177 * frame.c (Fdelete_frame): Call free_font_driver_list.
4178
3d9bec9a
CY
4179 * font.c (free_font_driver_list): Implement missing function.
4180
20d68145
CY
4181 * w32term.c (w32_term_init): Don't initialize the image cache
4182 here; it will be done in init_frame_faces.
4183
4184 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4185 (struct x_display_info): Remove unused member null_pixel. New
4186 member xim_callback_data.
4187
4188 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4189 (xim_initialize): Save pointer to callback function data.
4190 (xim_close_dpy): Free callback function data. Call XCloseIM,
4191 reverting 2008-11-04 change by David Smith.
4192 (x_term_init): Don't initialize the image cache here; it will be
4193 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4194 (x_delete_display): Free x_dnd_atoms member.
4195
96f9306b
KH
41962008-12-13 Kenichi Handa <handa@m17n.org>
4197
6dec9044
JB
4198 * font.c (font_rescale_ratio): Moved from xfaces.c.
4199 Argument type changed. Handle a font-spec too.
96f9306b 4200 (font_score): Check Vface_font_rescale_alist.
6dec9044 4201 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4202
4203 * xfaces.c (font_rescale_ratio): Moved to font.c.
4204
8d5b4964
CY
42052008-12-13 Chong Yidong <cyd@stupidchicken.com>
4206
4207 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4208
e6df5336
JR
42092008-12-12 Jason Rumney <jasonr@gnu.org>
4210
4211 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4212 Vwindow_system_version to the real w32 major version.
4213
97c6058a
DN
42142008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4215
4216 * term.c (init_tty): Move setting the terminal name before the
4217 potential user: maybe_fatal.
4218
ec4e88d7
CY
42192008-12-11 Chong Yidong <cyd@stupidchicken.com>
4220
d4835507
JB
4221 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4222 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4223
b4233ec9
JR
42242008-12-11 Jason Rumney <jasonr@gnu.org>
4225
8ec71e23 4226 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4227 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4228
b4233ec9 4229 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4230 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4231
011a0143
JB
42322008-12-11 Juanma Barranquero <lekktu@gmail.com>
4233
4234 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4235
3c309f34
JB
42362008-12-11 Juanma Barranquero <lekktu@gmail.com>
4237
4238 * process.c (Fsystem_process_attributes, syms_of_process):
4239 Fix typo in name of Ssystem_process_attributes.
4240 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4241
fedc6ab5
JB
42422008-12-11 Juanma Barranquero <lekktu@gmail.com>
4243
4244 * syntax.c (Fmodify_syntax_entry): Doc fix.
4245
ba3de0e8
JB
42462008-12-10 Juanma Barranquero <lekktu@gmail.com>
4247
4248 * font.c (Ffont_spec): Move usage to end of docstring.
4249
174f1c74
JR
42502008-12-10 Jason Rumney <jasonr@gnu.org>
4251
4252 * w32font.c (Qcham): New symbol.
4253 (font_supported_scripts): Add cham, and comments for other new
4254 scripts in bitfield from OpenType spec.
9d32f818
JR
4255 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4256 contain characters beyond the bmp.
174f1c74 4257
7b649478
KH
42582008-12-10 Kenichi Handa <handa@m17n.org>
4259
4260 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4261 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4262 Qunicode_sip.
4263
2133e2d1
JB
42642008-12-10 Juanma Barranquero <lekktu@gmail.com>
4265
4266 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4267 (Fcoding_system_put): Use QCdefault_char.
4268 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4269
9af886ee
CY
42702008-12-09 Chong Yidong <cyd@stupidchicken.com>
4271
74d819eb
CY
4272 * xftfont.c (syms_of_xftfont): Fix typo.
4273
4ccfa1c0 4274 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4275
7c19d3ae
DN
42762008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4277
4278 * emacs.c (main): Close daemon_pipe on exec.
4279
567826bb
CY
42802008-12-08 Chong Yidong <cyd@stupidchicken.com>
4281
4282 * termchar.h (struct tty): New members termcap_term_buffer and
4283 termcap_strings_buffer.
4284
4285 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4286 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4287 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4288 All callers changed.
4289 (init_tty): Store termcap data and string buffers in new struct
4290 tty members termcap_term_buffer and termcap_strings_buffer.
4291 (delete_tty): Free them.
4ccfa1c0 4292 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4293
aa96c42b
SZ
42942008-12-07 Seiji Zenitani <zenitani@mac.com>
4295
4296 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4297 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4298
b7e1d896
CY
42992008-12-06 Chong Yidong <cyd@stupidchicken.com>
4300
4301 * coding.c (make_conversion_work_buffer): Disable buffer
4302 modification hooks in the work buffer.
4303
b5ec91a5
EZ
43042008-12-05 Eli Zaretskii <eliz@gnu.org>
4305
4306 * process.c (procfs_system_process_attributes): If `nread' has a
4307 negative value, assign zero to it.
4308
a5d2a52b
CY
43092008-12-05 Chong Yidong <cyd@stupidchicken.com>
4310
68c5540b 4311 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4312
7bf1bb21
KH
43132008-12-05 Kenichi Handa <handa@m17n.org>
4314
4315 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4316 second character is a combining character.
4317
2fdc7d00
EZ
43182008-12-05 Eli Zaretskii <eliz@gnu.org>
4319
4320 * process.c (procfs_system_process_attributes): Don't use cmd,
4321 cmdsize, and q without initializing them first.
4322
bf6bfba8
JR
43232008-12-04 Jason Rumney <jasonr@gnu.org>
4324
4325 * w32font.c (w32font_draw): Initialize orig_clip before getting
4326 it, and delete it when finished.
4327
a3b1a468
DN
43282008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4329
4330 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4331 case when running as a daemon before detaching.
4332
8b8be8eb
JB
43332008-12-03 Juanma Barranquero <lekktu@gmail.com>
4334
805f2638 4335 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4336
b1bde622
KH
43372008-12-03 Kenichi Handa <handa@m17n.org>
4338
e500c47d
KH
4339 * font.c (font_at): Set `multibyte' at first.
4340
ca516334
KH
4341 * coding.c (decode_coding_charset): Check type of an element of
4342 vector VALIDS.
7bf1bb21 4343 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4344
4ccfa1c0 4345 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4346 (font_for_char): Likewise.
4347
1e5ecd37
CY
43482008-12-03 Chong Yidong <cyd@stupidchicken.com>
4349
d5b01609 4350 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4351 (font_update_lface): Handle fonts with corrupted size specs,
4352 i.e. non-int and non-float.
d5b01609 4353
11e3a6e4 4354 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4355 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4356 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4357
ab06788b
CY
4358 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4359
1e5ecd37 4360 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4361 underline_minimum_offset for underline position.
1e5ecd37 4362
63c125ab
DN
43632008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4364
4365 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4366
4367 * character.c (c_string_width): Specify the type for LEN.
4368
3a8406e1
KH
43692008-12-03 Kenichi Handa <handa@m17n.org>
4370
4ccfa1c0 4371 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4372 (decode_coding_utf_8): Likewise.
4ccfa1c0 4373 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4374 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4375
651df7d9
CY
43762008-12-02 Chong Yidong <cyd@stupidchicken.com>
4377
4378 * keyboard.c (make_lispy_position): Only use PT if the selected
4379 window is current.
4380
1f625c6c
AS
43812008-12-02 Andreas Schwab <schwab@suse.de>
4382
f7741ce9
AS
4383 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4384
1f625c6c
AS
4385 * doprnt.c (doprnt1): Fix size of charbuf.
4386
92bc2678
CY
43872008-12-02 Chong Yidong <cyd@stupidchicken.com>
4388
4389 * keyboard.c (timer_check): Revert last change.
4390
93b9e8cc
JB
43912008-12-02 Juanma Barranquero <lekktu@gmail.com>
4392
4393 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4394
fd7a37d5
JB
43952008-12-01 Juanma Barranquero <lekktu@gmail.com>
4396
4397 * makefile.w32-in: Update dependencies.
4398 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4399
c115043b
AS
44002008-12-01 Andreas Schwab <schwab@suse.de>
4401
4402 * font.c (register_font_driver): Use xmalloc.
4403 (font_put_frame_data): Likewise.
4404
f5668d2a
CY
44052008-12-01 Chong Yidong <cyd@stupidchicken.com>
4406
860d96be
CY
4407 * xfaces.c (realize_x_face): Make abort condition clearer.
4408
f5668d2a
CY
4409 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4410
379c17e7
CY
44112008-11-30 Chong Yidong <cyd@stupidchicken.com>
4412
4413 * keyboard.c (timer_check): After a timer runs, ensure that the
4414 selected window's buffer is current.
4415
35f36d65
JB
44162008-11-30 Juanma Barranquero <lekktu@gmail.com>
4417
f952c61c
JB
4418 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4419 It was accidentally restored by the Unicode merge.
4420
35f36d65
JB
4421 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4422
b23077df
JB
44232008-11-29 Juanma Barranquero <lekktu@gmail.com>
4424
4425 * w32proc.c: Include "coding.h".
4426 (Fw32_short_file_name): Encode filename passed to Windows API.
4427 (Fw32_long_file_name): Encode filename passed to Windows API and
4428 decode back the result. (Bug#1433)
4429
b8ebe9dd
KH
44302008-11-29 Kenichi Handa <handa@m17n.org>
4431
8cc53f96
KH
4432 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4433 not before accessing it.
4434
b8ebe9dd
KH
4435 * charset.c (Fdefine_charset_internal): After calculating
4436 min_char, max_char, and fastmap, copy the charset structure again.
4437 (encode_char): Fix the previous change.
4438
59bc82c0
SZ
44392008-11-28 Seiji Zenitani <zenitani@mac.com>
4440
4441 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4442
4443 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4444
4445 * nsterm.m (x_set_frame_alpha): New function.
4446
32247e3d
EZ
44472008-11-27 Eli Zaretskii <eliz@gnu.org>
4448
4449 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4450
b003e5ff
JB
44512008-11-27 Juanma Barranquero <lekktu@gmail.com>
4452
4453 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4454 pointer to check_face_name.
4455
708550f5
KH
44562008-11-27 Kenichi Handa <handa@m17n.org>
4457
4458 * category.h (SET_CATEGORY_SET): Call set_category_set.
4459 (set_category_set): Extern it.
4460
4461 * category.c (hash_get_category_set): New function.
4462 (Fmodify_category_entry): Adjusted for the change of
4463 char_table_ref_and_range. Call hash_get_category_set to get a
4464 category set to store in the table.
4465
4466 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4467 Funify_charset.
4468
2ae37cf0 4469 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4470 (DECODE_CHAR): Check if the decoder vector is ready.
4471 (ENCODE_CHAR): Check if the encoder char-table is ready.
4472 (maybe_unify_char): Extern it.
4473
4474 * charset.c (Vchar_unified_charset_table): Delete it.
4475 (inhibit_load_charset_map): New variable.
4476 (temp_charset_work): New variable.
4477 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4478 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4479 New macros.
4480 (load_charset_map): Meaning of control_flag changed. If
4481 inhibit_load_charset_map is nonzero, setup a table in
4482 temp_charset_work.
4483 (load_charset): New argument control_flag.
4484 (map_charset_for_dump): New function.
4485 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4486 map_charset_for_dump.
4487 (Fdefine_charset_internal): If the charset method is MAP, load
4488 mapping tables by calling load_charset.
4489 (Funify_charset): Don't load a mapping table but directly set
4490 Vchar_unify_table.
4491 (maybe_unify_char): New function.
4492 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4493 Handle the case of inhibit_load_charset_map being nonzero.
4494 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4495 Handle the case of inhibit_load_charset_map being nonzero.
4496 (Fclear_charset_maps): Just free temp_charset_work.
4497 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4498 variable.
4499
4500 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4501 change of char_table_ref_and_range.
4502 (char_table_ref_and_range): Change the meaning of argument FROM
4503 and TO. Now the caller must provide initial values for *FROM
4504 and *TO.
4505
4506 * fontset.c (fontset_add): Adjusted for the change of
4507 char_table_ref_and_range.
4508 (fontset_get_font_group): Likewise.
4509 (Ffontset_info): Likewise.
4510
4511 * keymap.c (describe_vector): Adjusted for the change of
4512 char_table_ref_and_range. For char-table, put boundary between
4513 non-ASCII and 8-bit characters.
4514
4515 * print.c (print_object): For bool-vector, delete unnecessary
4516 check of ASCII_BYTE_P.
4517
9196133b
JR
45182008-11-26 Jason Rumney <jasonr@gnu.org>
4519
4520 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4521 leading in font height. (Bug#879)
9196133b 4522
9f688acf
GM
45232008-11-26 Glenn Morris <rgm@gnu.org>
4524
4525 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4526 redefinition with ifdef. (Bug#1383)
4527
90d19aff
AR
45282008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4529
4530 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4531
4ccfa1c0 45322008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4533
4534 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4535 New EmacsView methods.
4536 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4537 Fixes bug #1048,1357,1414.
4538
45392008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4540
4541 Fix bug #1362.
4542 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4543 is not an indexed color.
4544 * nsterm.m (free_indexed_color): Add argument checking.
4545 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4546
e7d5ecb3
CY
45472008-11-24 Chong Yidong <cyd@stupidchicken.com>
4548
4549 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4550 Document confirm-after-completion value for
4551 minibuffer-completion-confirm.
4552
c285743c
JR
45532008-11-24 Jason Rumney <jasonr@gnu.org>
4554
4555 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4556 warning.
4557
b0857706
JR
45582008-11-23 Jason Rumney <jasonr@gnu.org>
4559
4560 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4561 restored before returning.
4562
4563 * w32font.c (check_face_name): New function.
4564 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4565 fonts. (Bug#642)
b0857706 4566
ee50ff07
MR
45672008-11-22 Martin Rudalics <rudalics@gmx.at>
4568
4569 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4570 confirm-nonexistent-file-or-buffer in doc-string.
4571
b8ff72fa
SM
45722008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4573
4574 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4575 Fix copy/paste typo. Add checks.
4576
cee53ed4
KH
45772008-11-21 Kenichi Handa <handa@m17n.org>
4578
4579 * coding.c (detect_coding_iso_2022): Reject invalid composition
4580 sequence.
4581 (DECODE_COMPOSITION_START): If the current source is the last
4582 block, and the current composition doesn't end, regard this
4583 sequence as invalid.
4584 (decode_coding_iso_2022): Handle invalid composition sequence.
4585
f6ef1e65
MR
45862008-11-20 Martin Rudalics <rudalics@gmx.at>
4587
4588 * window.c (coordinates_in_window): Don't return
4589 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4590 line when the window is not the rightmost one. (Bug#1372)
4591
e08b1705
MR
45922008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4593
4594 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4595
ad98e89f
EZ
45962008-11-15 Eli Zaretskii <eliz@gnu.org>
4597
4598 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4599 and bright_bg if noninteractive is non-zero.
4600
fb098a4b
CY
46012008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4602
4603 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4604 x_draw_glyph_string_background.
4605
4606 * w32term.c (x_draw_glyph_string): Likewise.
4607
ce952b6e
CY
46082008-11-15 Chong Yidong <cyd@stupidchicken.com>
4609
4610 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4611 the next glyph string once past the overhang width.
4612
4613 * nsterm.m (ns_draw_glyph_string): Likewise.
4614
4615 * w32term.c (x_draw_glyph_string): Likewise.
4616
26ea7079
CY
46172008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4618
4619 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4620 double file close.
4621
1c33c906
MR
46222008-11-14 Martin Rudalics <rudalics@gmx.at>
4623
4624 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4625 dedicated status of window before attempting to display another
4626 buffer in it.
4627
8fc29035
JB
46282008-11-14 Juanma Barranquero <lekktu@gmail.com>
4629
4630 * msdos.c (Fmsdos_long_file_names):
4631 (syms_of_msdos) <dos-unsupported-char-glyph>:
4632 * dosfns.c (Fint86): Fix typos in docstrings.
4633
55fb4286
EZ
46342008-11-14 Eli Zaretskii <eliz@gnu.org>
4635
4636 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4637
3fda0315
KY
46382008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4639
4640 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4641
7e849c17
CY
46422008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4643
4644 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4645
4646 * frame.h: Negative alpha means "don't touch".
4647
4648 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4649
4650 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4651
b9fd67bd
DN
46522008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4653
4654 * hftctl.c:
4655 * chpdef.h:
4656 * acldef.h: Remove files used only for systems no longer supported.
4657
4658 * Makefile.in: Fix .o alphabetical ordering.
4659 (hftctl.o): Remove dependency, file removed.
4660 (keymap.o, print.o): Depend on charset.h.
4661
d5998e03
KH
46622008-11-10 Kenichi Handa <handa@m17n.org>
4663
2ae37cf0 4664 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4665
be70e183
CY
46662008-11-08 Chong Yidong <cyd@stupidchicken.com>
4667
4668 * dired.c (file_name_completion): If completion_ignore_case is
4669 enabled, ignore case when checking completion-regexp-list.
4670
7cf94eac
EZ
46712008-11-08 Eli Zaretskii <eliz@gnu.org>
4672
4673 * vm-limit.c (get_lim_data): Fix last change.
4674
ee107a89
KH
46752008-11-08 Kenichi Handa <handa@m17n.org>
4676
4677 * character.c (Fget_byte): New function.
4678 (syms_of_character): Defsubr Fget_byte.
4679
5fd15622
CY
46802008-11-07 Chong Yidong <cyd@stupidchicken.com>
4681
4682 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4683 cursor position is valid after scrolling.
4684
13d62fad
JB
46852008-11-06 Juanma Barranquero <lekktu@gmail.com>
4686
4687 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4688
a1dd2936
GM
46892008-11-06 Glenn Morris <rgm@gnu.org>
4690
4691 * xterm.c (handle_one_xevent): Don't let popup menus cause
4692 mouse-autoselect-window related window switching. (Bug#1261)
4693
860cd236
CY
46942008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4695
4696 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4697
653a3150
AS
46982008-11-04 Andreas Schwab <schwab@suse.de>
4699
4700 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4701
870f5cac
CY
47022008-11-03 Chong Yidong <cyd@stupidchicken.com>
4703
4704 * xfns.c (Fx_wm_set_size_hint): New function.
4705
1e02f3cb
MR
47062008-11-03 Martin Rudalics <rudalics@gmx.at>
4707
4708 * textprop.c (Fprevious_single_char_property_change): Return 0
4709 when there's no change in a string. (Bug#1301)
4710
e630dfc6
MR
47112008-11-02 Martin Rudalics <rudalics@gmx.at>
4712
4713 * frame.c (do_switch_frame): New argument NORECORD passed to
4714 Fselect_window.
4715 (Fselect_frame): New argument NORECORD passed to
4716 do_switch_frame.
4717 (Fset_frame_selected_window): New argument NORECORD passed to
4718 Fselect_frame.
4719 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4720 in call of do_switch_frame.
4721 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4722 Handle NORECORD argument in call of Fselect_frame.
4723 * lisp.h (do_switch_frame, Fselect_frame)
4724 (Fset_frame_selected_window): Adjust declarations.
4725 * window.c (select_frame_norecord): New function.
4726 (run_window_configuration_change_hook): Use it and call
4727 Fselect_frame with NORECORD set.
4728 (Fselect_window): Pass NORECORD to Fselect_frame.
4729 (Fset_window_configuration): Handle NORECORD argument in call of
4730 do_switch_frame.
4731 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4732 Fset_frame_selected_window.
4733 * keyboard.c (command_loop_1): Handle NORECORD in call of
4734 Fselect_frame (currently ifdefd).
4735
9020b223
GM
47362008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4737
4738 * emacs.c (USAGE2): Untabify.
4739
793ffee8
SM
47402008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4741
4742 * composite.c (fill_gstring_header): Fix copy/paste typo.
4743
ab6d1131
MR
47442008-10-31 Martin Rudalics <rudalics@gmx.at>
4745
4746 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4747 (Fother_window): Rename argument and rewrite doc-string.
4748 (select_window_norecord): Fix return value. (Bug#1276)
4749
601a9cf1
JB
47502008-10-30 Juanma Barranquero <lekktu@gmail.com>
4751
4752 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4753 new frames overriding foreground for tooltips. Based on similar patch
4754 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4755
813b0652
CY
47562008-10-29 Chong Yidong <cyd@stupidchicken.com>
4757
4758 * emacs.c (Fdaemon_initialized): Initialize nfd.
4759
4414f58f
MR
47602008-10-29 Martin Rudalics <rudalics@gmx.at>
4761
4762 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4763 (Fwindow_text_height): Clarify doc-strings.
4764 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4765 doc-string of window-scroll-functions.
4766
ecdcaa09
RS
47672008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4768
4769 * category.c (syms_of_category): Fix typo in docstring.
4770
23fe745a
JB
47712008-10-28 Juanma Barranquero <lekktu@gmail.com>
4772
4773 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4774 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4775 Fix typos in docstrings.
4776
ff808935
DN
47772008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4778
4779 * emacs.c (daemon_pipe): Make non-static.
4780 (IS_DAEMON): Move definition ...
4781 * lisp.h (IS_DAEMON): ... here.
4782 (daemon_pipe): Declare.
4783 (is_daemon): Remove.
4784 * dispnew.c (init_display): Use IS_DAEMON.
4785
fc012771
SM
47862008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4787
4788 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4789 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4790
4791 * emacs.c (is_daemon): Remove.
4792 (main): Don't set is_daemon.
4793 (IS_DAEMON): New macro.
4794 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4795 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4796 parent exits.
4797 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4798
d8bdbe6f
CY
47992008-10-27 Chong Yidong <cyd@stupidchicken.com>
4800
d1a072bf
CY
4801 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4802 over-sized glyph, draw it with the default glyph width.
4803
e2e325aa
CY
4804 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4805 glyph, draw it with the default glyph width.
4806
4807 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4808 glyph, draw it with the default glyph width.
4809
d8bdbe6f
CY
4810 * xdisp.c (try_scrolling): When computing the distance from the
4811 scroll margin to PT, try moving some distance past the window
4812 bottom before giving up.
4813
7bfac547
MR
48142008-10-27 Martin Rudalics <rudalics@gmx.at>
4815
4816 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4817 (Fset_window_buffer): Explain in doc-string that a window can be
4818 "strongly" dedicated to its buffer.
4819
4ff029f6
DN
48202008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4821
4822 * emacs.c (daemon_name): New variable.
4823 (main): Deal with --daemon=SERVER_NAME.
4824 (Fdaemonp): Return a name if one was passed to --daemon.
4825
5790ef40
DN
48262008-10-26 Romain Francoise <romain@orebokech.com>
4827
f9bd0df9 4828 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4829 (main): Create a pipe before forking, make the parent exit only after
4830 the child has closed its end of the pipe. Move closing the
4831 descriptors ...
4832 (Fdaemon_initialized): ... here. New function.
4833
f5385255
SM
48342008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4835
4d632321
SM
4836 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4837 the previous unoptimized table.
4838
f5385255
SM
4839 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4840 the distinction between non-nil and non-t value of `dedicated'.
4841
6c56a0f3
CY
48422008-10-25 Chong Yidong <cyd@stupidchicken.com>
4843
4844 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4845 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4846
fec89261
MR
48472008-10-25 Martin Rudalics <rudalics@gmx.at>
4848
4849 * window.c (Fget_buffer_window, Fdelete_windows_on)
4850 (Freplace_buffer_in_windows): Make buffer argument optional and
4851 rename to buffer_or_name.
4852
34fcddd0
CY
48532008-10-24 Chong Yidong <cyd@stupidchicken.com>
4854
f5385255
SM
4855 * xdisp.c (handle_single_display_spec, handle_display_prop):
4856 Undo 2005-05-16 change.
34fcddd0
CY
4857 (handle_stop): Pop iterator if it's loaded with an empty string.
4858 (get_overlay_strings_1): Don't save iterator if it's loaded with
4859 an empty string (bug#1201).
4860
064766f2
KH
48612008-10-24 Kenichi Handa <handa@m17n.org>
4862
4863 * ftfont.c (ftfont_otf_features): Fix previous change.
4864 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4865 calling ftfont_otf_features.
4866
f9bd0df9 48672008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4868
4869 * font.c (font_match_p): Fix for the case that a vector of
4870 characters is in script-representative-chars.
4871
1dae9197
MA
48722008-10-24 Michael Albinus <michael.albinus@gmx.de>
4873
4874 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4875 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4876 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4877 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4878 macro. (Bug#1186).
4879
f9bd0df9 48802008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4881
4882 * s/sol2-10.h: New file.
4883
878a4584
JB
48842008-10-23 Juanma Barranquero <lekktu@gmail.com>
4885
4886 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4887 poor beast has survived 9+ years and the jump from xterm.c!).
4888
cd265ca6
MR
48892008-10-23 Martin Rudalics <rudalics@gmx.at>
4890
4891 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4892 Reword doc-string.
f5385255 4893 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4894
472a4dc9
JB
48952008-10-23 Juanma Barranquero <lekktu@gmail.com>
4896
4897 * character.c (syms_of_character) <script-representative-chars>:
4898 <unicode-category-table>: Doc fixes.
4899
159bd5a2
NF
49002008-10-23 Noah Friedman <friedman@splode.com>
4901
4902 * coding.c (make_conversion_work_buffer): Check that
4903 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4904 Fget_buffer_create.
4905
49f9c344
KH
49062008-10-23 Kenichi Handa <handa@m17n.org>
4907
4908 * font.c (font_add_log): Check the values of extra properties.
4909
12bb3111
MR
49102008-10-22 Martin Rudalics <rudalics@gmx.at>
4911
4912 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4913 Reword doc-string.
4914 (Fset_window_parameter): Use NILP.
4915 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4916 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4917
bbeb4e99
JB
49182008-10-22 Juanma Barranquero <lekktu@gmail.com>
4919
4920 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4921
49222008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4923
4924 * nsfns.m (ns_appkit_version): New function.
4925 (x-server-version): Use it.
4926 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4927 (x-server-vendor): Don't check_ns().
4928
4929 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4930
a9b555d3
JB
49312008-10-22 Juanma Barranquero <lekktu@gmail.com>
4932
4933 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4934 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4935
4626499f
KH
49362008-10-22 Kenichi Handa <handa@m17n.org>
4937
e3681952
KH
4938 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4939 scripts.
4940
4626499f
KH
4941 * category.c (word_boundary_p): Check scripts instead of charset.
4942 Handle nil value in word-separating-categories and
4943 word-combining-categories.
4944 (syms_of_category): Fix docstrings of word-separating-categories
4945 and word-combining-categories.
4946
1560f91a
EZ
49472008-10-21 Eli Zaretskii <eliz@gnu.org>
4948
4949 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4950 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4951
f4668441
MR
49522008-10-21 Martin Rudalics <rudalics@gmx.at>
4953
4954 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4955 Rename arg "buffer" to "buffer_or_name".
4956 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4957 it optional.
4958 (no_switch_window): Remove since the return value is not used.
a9b555d3 4959 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4960 Consider window as dedicated when Fwindow_dedicated_p returns a
4961 non-nil value.
4962 * lisp.h: Remove prototype for no_switch_window.
4963
fd75ddb2
JD
49642008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4965
4966 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4967 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4968
07295713
KH
49692008-10-21 Kenichi Handa <handa@m17n.org>
4970
4971 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4972 check Vlatin_extra_code_table.
4973
712adc82
EZ
49742008-10-20 Eli Zaretskii <eliz@gnu.org>
4975
4976 * fileio.c (Fset_file_modes): Doc fix.
4977
f549eb0b
MA
49782008-10-19 Michael Albinus <michael.albinus@gmx.de>
4979
4980 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4981 in arrays.
4982
aac0c6e3
MR
49832008-10-19 Martin Rudalics <rudalics@gmx.at>
4984
4985 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4986 Mention kill-buffer in doc-string.
4987 (Fset_window_buffer): Reinsert tem check removed in last commit.
4988 (Fenlarge_window, Fshrink_window): Have argument names and
4989 doc-string follow Elisp manual more closely.
4990
49912008-10-18 Eli Zaretskii <eliz@gnu.org>
4992
4993 * fileio.c (Fset_file_modes): Doc fix.
4994
49952008-10-18 Martin Rudalics <rudalics@gmx.at>
4996
4997 * window.c (Fwindow_width, Fset_window_start)
4998 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4999 (Fdelete_windows_on, Freplace_buffer_in_windows):
5000 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5001 (Fwindow_dedicated_p): Make window argument optional.
5002 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5003 (Fset_window_buffer): Respect any non-nil dedicated value for
5004 window. Rename "buffer" argument to "buffer_or_name".
5005
50062008-10-18 Ulrich Mueller <ulm@gentoo.org>
5007
5008 * m/sh3.h: New file, machine description for SuperH.
5009
50102008-10-17 Martin Rudalics <rudalics@gmx.at>
5011
5012 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5013
50142008-10-17 Kenichi Handa <handa@m17n.org>
5015
5016 * ftfont.c (ftfont_otf_features): Fix indexing
5017 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5018
50192008-10-16 Magnus Henoch <mange@freemail.hu>
5020
5021 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5022 (Fdbus_call_method_asynchronously): Ditto.
5023 This change makes C-h f display the argument list.
5024
50252008-10-16 Chong Yidong <cyd@stupidchicken.com>
5026
5027 * fileio.c (Fexpand_file_name): Doc fix.
5028
5029 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5030 of :foreground and :background equivalent to unspecified (20.x
5031 compatibility).
5032
50332008-10-15 Eli Zaretskii <eliz@gnu.org>
5034
5035 * buffer.c (syms_of_buffer): Doc fix.
5036
50372008-10-14 Kenichi Handa <handa@m17n.org>
5038
5039 * font.c (font_clear_prop): When clearing font width, clear the
5040 average width field too.
5041
50422008-10-12 Andreas Schwab <schwab@suse.de>
5043
5044 * ftfont.c (ftfont_shape_by_flt): Make static.
5045 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5046
5047 * font.c: Don't include <m17n-flt.h>.
5048
50492008-10-10 Eli Zaretskii <eliz@gnu.org>
5050
5051 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5052
50532008-10-09 Eli Zaretskii <eliz@gnu.org>
5054
5055 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5056 away code.
5057
50582008-10-09 Chong Yidong <cyd@stupidchicken.com>
5059
5060 * dispnew.c (update_text_area): Avoid looping due to large glyph
5061 overhangs (bug#1070).
5062
50632008-10-09 Kenichi Handa <handa@m17n.org>
5064
5065 * fontset.c (face_for_char): If face->fontset is negative, just
5066 return ascii_face.
5067
f5385255
SM
5068 * font.c (font_delete_unmatched): Fix previous change.
5069 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5070
50712008-10-09 Martin Rudalics <rudalics@gmx.at>
5072
5073 * frame.c (Fraise_frame): On text-only terminals select frame in
5074 order to make it visible. (Bug#1061)
5075
50762008-10-08 Chong Yidong <cyd@stupidchicken.com>
5077
5078 * fontset.c (fontset_find_font): Check frame validity.
5079
50802008-10-07 Chong Yidong <cyd@stupidchicken.com>
5081
a9b555d3 5082 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5083 (xg_display_close): Allow Emacs to close all displays (bug#985).
5084
50852008-10-06 Andreas Schwab <schwab@suse.de>
5086
f5385255 5087 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5088
50892008-10-06 Chong Yidong <cyd@stupidchicken.com>
5090
f5385255 5091 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5092
a9b555d3 5093 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5094
5095 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5096 during initialization.
5097
50982008-10-04 Eli Zaretskii <eliz@gnu.org>
5099
5100 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5101 whole thing on MSDOS frames as well as on a TTY.
5102
5103 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5104 well as for TTY.
5105 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5106 well as on a TTY.
5107
5108 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5109 as well as for TTY.
5110
5111 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5112
5113 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5114 MSDOS frames as well.
5115
51162008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5117
5118 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5119 correct arguments.
b71ac3dd 5120 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5121
51222008-10-03 Glenn Morris <rgm@gnu.org>
5123
5124 * emacs.c (USAGE1): Add --daemon.
5125
51262008-10-02 Eli Zaretskii <eliz@gnu.org>
5127
5128 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5129 100, so it's in percents as advertised.
5130
51312008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5132
5133 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5134 (ns_output.current_cursor, ns_output.desired_cursor)
5135 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5136 (FRAME_NEW_CURSOR_COLOR): Remove.
5137
5138 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5139 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5140 enumeration (HOLLOW_BOX_CURSOR, etc.).
5141
5142 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5143 (draw_window_cursor): Simplify code.
f5385255
SM
5144 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5145 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5146 updates manually.
a9b555d3
JB
5147 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5148 Use core Emacs cursor types.
aac0c6e3 5149
b8ff72fa 5150 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5151
51522008-10-02 Martin Rudalics <rudalics@gmx.at>
5153
5154 * process.c (Faccept_process_output): Fix doc-string.
5155
51562008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5157
5158 * gmalloc.c (__sbrk): Also define for uClibc.
5159
5160 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5161 for uClibc.
5162
51632008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5164
5165 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5166 styles.
5167 (nsfont_open): Reenable the cache.
5168
51692008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5170
5171 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5172 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5173
51742008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5175
5176 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5177 a suspended terminal.
5178
51792008-09-30 Michael Albinus <michael.albinus@gmx.de>
5180
5181 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5182
51832008-09-30 Eli Zaretskii <eliz@gnu.org>
5184
5185 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5186
51872008-09-30 Chong Yidong <cyd@stupidchicken.com>
5188
5189 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5190 in a continued line coincides with a line beginning.
5191
51922008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5193
5194 * nsfont.m (nsfont_trait_distance): Fix bug.
5195 (nsfont_list): Return a list rather than a vector (syncs with Handa
5196 changes of 2008-05-14).
5197 (nsfont_open): Improve logging.
5198
51992008-09-29 Andreas Schwab <schwab@suse.de>
5200
5201 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5202
52032008-09-28 Martin Rudalics <rudalics@gmx.at>
5204
5205 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5206 name as char-resolve-modifiers.
5207 Reported by: Markus Triska <markus.triska@gmx.at>
5208
52092008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5210
5211 * dispnew.c (init_display): Return earlier when running as a daemon.
5212
52132008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5214
5215 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5216
52172008-09-27 Eli Zaretskii <eliz@gnu.org>
5218
5219 * composite.c (Fcomposition_get_gstring)
5220 (Fcompose_region_internal, Fcompose_string_internal)
5221 (Ffind_composition_internal): Doc fix.
5222 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5223 (syms_of_composite) <auto-composition-function>: Doc fix.
5224 (syms_of_composite) <composition-function-table>: Doc fix.
5225
52262008-09-25 Chong Yidong <cyd@stupidchicken.com>
5227
5228 * search.c (wordify): New argument for lax word-ends.
5229 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5230
52312008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5232
5233 * lisp.h (is_daemon): Declare.
5234 * dispnew.c (init_display): Do not try to initialize the terminal
5235 when running as a daemon.
5236
52372008-09-22 Chong Yidong <cyd@stupidchicken.com>
5238
5239 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5240 x_display_pixel_height.
5241
52422008-09-22 Martin Rudalics <rudalics@gmx.at>
5243
5244 * undo.c (record_point): Don't call Fundo_boundary for first
5245 change. (Bug#731)
5246
52472008-09-22 Juanma Barranquero <lekktu@gmail.com>
5248
5249 * emacs.c (Fdaemonp): Doc fix.
5250
52512008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5252
5253 * emacs.c (main): Place #ifdef in the proper place.
5254
52552008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5256
5257 * emacs.c (standard_args): Add --daemon.
5258 (main): Disconnect from the terminal when --daemon is passed.
5259 (is_daemon): New variable.
5260 (Fdaemonp): New function.
5261 (syms_of_emacs): Defsubr it.
5262
52632008-09-20 Chong Yidong <cyd@stupidchicken.com>
5264
5265 * xdisp.c (get_next_display_element): Handle string display
5266 correctly when checking for the end of a box run.
5267
52682008-09-20 Glenn Morris <rgm@gnu.org>
5269
5270 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5271 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5272 (Frename_file): Avoid copying to trash if a rename involves
5273 a delete. (Bug#964).
5274
52752008-09-20 Eli Zaretskii <eliz@gnu.org>
5276
5277 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5278 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5279 frames as well as termcap frames.
5280 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5281 get_named_tty.
5282
52832008-09-19 Eli Zaretskii <eliz@gnu.org>
5284
5285 * process.c (procfs_system_process_attributes): Fix cmdline in
5286 case /proc/PID/cmdline is empty.
5287
5288 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5289 x_display_pixel_height.
5290
52912008-09-19 Juanma Barranquero <lekktu@gmail.com>
5292
5293 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5294
5295 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5296 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5297
52982008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5299
5300 * dispextern.h (struct it): Move line_wrap away from the middle of
5301 bitfields. Move voffset in struct iterator_stack_entry after the
5302 bitfields. Move tab_width near after another short.
5303
53042008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5305
5306 * frame.h (struct frame): Move alpha from the middle of bitfields.
5307
5308 * window.h (struct window): Move frozen_window_start_p after the
5309 rest of the bitfields to reduce padding.
5310
53112008-09-18 Chong Yidong <cyd@stupidchicken.com>
5312
5313 * xterm.h (x_display_info): Remove `height' and `width' members.
5314
5315 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5316
5317 * w32term.h (w32_display_info): Remove `height', `width',
5318 `height_in', and `width_in' members.
5319
b8ff72fa
SM
5320 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5321 New functions.
aac0c6e3
MR
5322 (x_calc_absolute_position): Use them.
5323 (x_term_init): Omit removed `height' and `width' members.
5324
b8ff72fa
SM
5325 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5326 New functions.
aac0c6e3
MR
5327 (w32_read_socket, x_calc_absolute_position): Use them.
5328 (w32_initialize_display_info, w32_term_init): Omit removed members
5329 of w32_display_info.
5330
b8ff72fa
SM
5331 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5332 New functions.
5333 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5334
b8ff72fa
SM
5335 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5336 New functions.
aac0c6e3
MR
5337 (x_calc_absolute_position): Use them.
5338 (x_term_init): Omit removed `height' and `width' members.
5339
5340 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5341 (compute_tip_xy):
5342 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5343 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5344 x_display_pixel_width.
5345
53462008-09-18 Kenichi Handa <handa@m17n.org>
5347
5348 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5349 (composition_compute_stop_pos): Fix handling of static composition.
5350 (Fcomposition_get_gstring): Check FROM and TO at first.
5351
53522008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5353
46e722a9 5354 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5355 mixup (YAILOM).
5356
53572008-09-17 Chong Yidong <cyd@stupidchicken.com>
5358
5359 * indent.c (Fvertical_motion): Use position reported by iterator
5360 instead of PT for determining screen motion (bug#943).
5361
53622008-09-17 Romain Francoise <romain@orebokech.com>
5363
5364 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5365
53662008-09-17 Kenichi Handa <handa@m17n.org>
5367
5368 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5369
5370 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5371 if necessary.
5372
53732008-09-16 Kenichi Handa <handa@m17n.org>
5374
5375 * coding.c (make_conversion_work_buffer): Avoid calling
5376 Fget_buffer_create if it is not necessary.
5377
53782008-09-15 Martin Rudalics <rudalics@gmx.at>
5379
5380 * window.c (Fselect_window): Don't update window_select_count and
5381 use_time when norecord is not nil.
5382
53832008-09-14 Kenichi Handa <handa@m17n.org>
5384
5385 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5386 specpdl_ptr.
5387
53882008-09-12 Kenichi Handa <handa@m17n.org>
5389
5390 * indent.c (scan_for_column): Don't handle automatic composition
5391 if the current buffer is not associated with a window.
5392
5393 * composite.c (composition_reseat_it): If the current buffer is
5394 not associated with a window, ignore the automatic composition.
5395 (find_automatic_composition): Likewise.
5396
53972008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5398
5399 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5400 (Fgpm_mouse_stop): Use it.
5401 * termhooks.h (close_gpm): Declare.
5402 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5403 connection if Gpm_GetEvent fails.
5404
5405 * window.c (set_window_buffer): Always preserve current-buffer.
5406
54072008-09-12 Glenn Morris <rgm@gnu.org>
5408
5409 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5410
54112008-09-11 Glenn Morris <rgm@gnu.org>
5412
5413 * charset.c (charset-map-path): Doc fix.
5414
54152008-09-10 Kenichi Handa <handa@m17n.org>
5416
5417 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5418
5419 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5420 compose a grapheme cluster with the preceding base glyph.
5421
5422 * composite.c (composition_compute_stop_pos): Fix previous change.
5423 Reset cmp_it->id to -1 at first.
5424
54252008-09-10 Glenn Morris <rgm@gnu.org>
5426
5427 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5428
54292008-09-09 Chong Yidong <cyd@stupidchicken.com>
5430
5431 * keyboard.c (read_key_sequence): Reapply translation maps when
5432 switching keyboards.
5433
54342008-09-09 Kenichi Handa <handa@m17n.org>
5435
5436 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5437 characters.
5438
5439 * composite.c (FORWARD_CHAR): Fix calculation
5440 of (POSITION).pos_byte.
5441 (composition_compute_stop_pos): Limit the search of composition to
5442 at most 500 characters ahead. If we reach the limit or find a
5443 newline, set cmp_it->ch to -2 and return 0.
5444 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5445
54462008-09-08 Kenichi Handa <handa@m17n.org>
5447
5448 * indent.c (Fvertical_motion): Be sure to set
5449 it_overshoot_expected if it.cmp_it.id is non-negative.
5450
54512008-09-07 Andreas Schwab <schwab@suse.de>
5452
5453 * callproc.c (Fcall_process): Don't hold references to string data
5454 across garbage collection. Move initialisation of new_argv down
5455 to avoid compiler bug.
5456
54572008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5458
5459 * process.c (Fsystem_process_attributes): Doc fix.
5460
54612008-09-07 Chong Yidong <cyd@stupidchicken.com>
5462
5463 * callproc.c (Fcall_process): Canonicalize current directory name.
5464
5465 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5466 iterator advances to the next line if the current line ends in a
5467 continued tab.
5468
54692008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5470
5471 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5472 member to point to cmp_from.
5473
5474 * xdisp.c: Doc fix for references to gidx data member.
5475
54762008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5477
5478 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5479
54802008-09-07 Kenichi Handa <handa@m17n.org>
5481
5482 * composite.c (FORWARD_CHAR): Check STOP after
5483 incrementing (POSITION).pos.
5484
54852008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5486
5487 * process.c (Fsystem_process_attributes): Doc fix.
5488
54892008-09-06 Chong Yidong <cyd@stupidchicken.com>
5490
5491 * keyboard.c (Ftop_level): Doc fix.
5492
54932008-09-06 Eli Zaretskii <eliz@gnu.org>
5494
5495 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5496 minibuffer, don't let lower part of menu invade the echo area.
5497
5498 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5499 "char *q" to access menu text and advance through it. Revert the
5500 change that displayed ">" instead of ASCII character 0x10.
5501
55022008-09-05 Eli Zaretskii <eliz@gnu.org>
5503
5504 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5505 toggle boxes and radio buttons on MS-DOS as well.
5506
55072008-09-05 Kenichi Handa <handa@m17n.org>
5508
5509 * composite.c (autocmp_chars): Check lookback count.
5510 (composition_compute_stop_pos): Set cmp_it->lookback.
5511 (composition_reseat_it): Check lookback count.
5512 (struct position_record): New struct.
5513 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5514 (find_automatic_composition): New function.
5515 (composition_adjust_point): Use find_automatic_composition.
5516
5517 * dispextern.h (struct composition_it): New member lookback.
5518
55192008-09-02 Chong Yidong <cyd@stupidchicken.com>
5520
5521 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5522 if moving by a single line.
5523
55242008-09-02 Andreas Schwab <schwab@suse.de>
5525
5526 * xterm.c (x_delete_display): Fix merge error.
5527
5528 * fileio.c (Fexpand_file_name): Remove unused variables.
5529
55302008-09-02 Eli Zaretskii <eliz@gnu.org>
5531
5532 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5533 storage on all platforms, not just on DOS_NT.
5534
55352008-09-02 Jason Rumney <jasonr@gnu.org>
5536
b8ff72fa
SM
5537 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5538 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5539
55402008-09-01 Chong Yidong <cyd@stupidchicken.com>
5541
5542 * xfaces.c (Finternal_set_alternative_font_family_alist)
5543 (Finternal_set_alternative_font_registry_alist): Properly copy
5544 entire alist structure.
5545
55462008-09-01 Kenichi Handa <handa@m17n.org>
5547
d66c0241 5548 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5549 representative chars of the script is a vector.
d66c0241
JB
5550 (ftfont_list): Handle the case where the representative chars of
5551 the script is a vector.
aac0c6e3
MR
5552
5553 * character.c (syms_of_character): Docstring of
5554 script-representative-chars fixed.
5555
55562008-08-31 Eli Zaretskii <eliz@gnu.org>
5557
5558 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5559 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5560 the menu. Allocate larger buffer for `text', to account for
5561 possible ^C characters.
5562
55632008-08-31 Martin Rudalics <rudalics@gmx.at>
5564
5565 * xdisp.c (prepare_menu_bars): Don't call
5566 Vwindow_size_change_functions with arg Qt.
5567
55682008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5569
5570 * font.h (font_range):
5571 * fileio.c (report_file_error):
46e722a9
SM
5572 * composite.c (composition_update_it): Yet another int/Lisp_Object
5573 mixup (YAILOM).
aac0c6e3
MR
5574
55752008-08-30 Glenn Morris <rgm@gnu.org>
5576
5577 * data.c (Fmake_variable_frame_local): Doc fix.
5578
5579 * frame.c (Fmodify_frame_parameters): Doc fix.
5580
55812008-08-30 Eli Zaretskii <eliz@gnu.org>
5582
5583 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5584 needed by GetTokenInformation.
5585 (w32_system_process_attributes): Check return values of all system
5586 APIs.
5587
5588 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5589 only when the state changes.
5590 (IT_update_begin, IT_update_end): Add termscript trace.
5591
5592 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5593 clipboard is unavailable. Set dst to NULL if it doesn't point to
5594 malloc'ed data.
5595 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5596 passing random values to xfree.
5597
5598 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5599 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5600
56012008-08-29 Jason Rumney <jasonr@gnu.org>
5602
5603 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5604
56052008-08-29 Eli Zaretskii <eliz@gnu.org>
5606
5607 * composite.c (fill_gstring_body): Avoid compiler warnings.
5608
5609 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5610 LGLYPH_SET_CODE to avoid compiler warnings.
5611
2ae37cf0 5612 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5613
5614 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5615
5616 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5617 LGLYPH_SET_CODE.
5618
56192008-08-29 Kenichi Handa <handa@m17n.org>
5620
5621 * fileio.c (report_file_error): Don't downcase the first character
5622 of errstring if it is still unibyte.
5623
56242008-08-29 Kenichi Handa <handa@m17n.org>
5625
5626 These changes are to re-implement the automatic composition so
5627 that it doesn't use text properties.
5628
5629 * Makefile.in (ftfont.o): Depend on composite.h.
5630 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5631
5632 * character.h (Vunicode_category_table): Extern it.
5633
5634 * character.c (Vunicode_category_table): New variable.
5635 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5636
5637 * chartab.c (optimize_sub_char_table): Perform more greedy
5638 optimization.
5639
b8ff72fa
SM
5640 * composite.h (enum composition_method):
5641 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5642 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5643 (Vcomposition_function_table): Extern it.
5644 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5645 (composition_gstring_put_cache, composition_gstring_from_id)
5646 (composition_gstring_p, composition_gstring_width)
5647 (composition_compute_stop_pos, composition_reseat_it)
5648 (composition_update_it, composition_adjust_point): Extern them.
5649 (Fcomposition_get_gstring): EXFUN it.
5650
d66c0241 5651 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5652 (Vcomposition_function_table)
5653 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5654 (gstring_hash_table, gstring_work, gstring_work_headers):
5655 New variables.
aac0c6e3
MR
5656 (gstring_lookup_cache, composition_gstring_put_cache)
5657 (composition_gstring_from_id, composition_gstring_p)
5658 (composition_gstring_width, fill_gstring_header)
5659 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5660 (composition_reseat_it, composition_update_it)
b8ff72fa 5661 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5662 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5663 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5664 Defsubr compostion_get_gstring.
5665
5666 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5667 cmp_id.
5668 (struct glyph_string): Delete the member gidx. New members
5669 cmp_id, cmp_from, and cmp_to.
5670 (enum it_method): Delete GET_FROM_COMPOSITION.
5671 (struct composition_it): New struct.
5672 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5673 Delete c, len, cmp_id, cmp_len in u.comp.
5674
5675 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5676 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5677 (enum lglyph_indices): Likewise.
b8ff72fa 5678 (font_range): Adjust extern.
aac0c6e3
MR
5679 (font_fill_lglyph_metrics): Extern it.
5680
5681 * font.c (QCf): New variable.
5682 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5683 (font_prepare_composition): Delete this function.
5684 (font_range): Type and arguments changed.
5685 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5686 (font_fill_lglyph_metrics): New function.
b8ff72fa 5687 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5688 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5689 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5690 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5691
5692 * fontset.h (font_for_char): Extern it.
5693
5694 * fontset.c (font_for_char): New function.
5695
5696 * ftfont.c: Include composite.h.
5697 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5698 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5699
5700 * indent.c: Include composite.h and dispextern.h.
5701 (check_composition): Delete this function.
5702 (scan_for_column): Handle composition by
5703 composition_compute_stop_pos, composition_reseat_it, and
5704 composition_update_it.
5705 (compute_motion): Likewise.
5706 (Fvertical_motion): Fix checking of composition.
5707
5708 * keyboard.c (adjust_point_for_property): Check composition by
5709 composition_adjust_point.
5710
b8ff72fa 5711 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5712 struct glyph_string.
5713
b8ff72fa
SM
5714 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5715 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5716 struct glyph.
5717 (produce_composite_glyph): Likewise.
5718
b8ff72fa
SM
5719 * w32term.c (x_draw_composite_glyph_string_foreground):
5720 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5721 (x_draw_glyph_string): Likewise.
5722
5723 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5724 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5725
5726 * xdisp.c: Include font.h.
5727 (it_props): Delete the entry for Qauto_composed.
5728 (init_iterator): Initialize it->cmp_it.id to -1.
5729 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5730 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5731 (handle_auto_composed_prop): Delete it.
5732 (handle_composition_prop): Handle only static composition.
5733 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5734 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5735 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5736 (pop_it): Likewise.
5737 (get_next_element): Delete next_element_from_composition.
5738 (CHAR_COMPOSED_P): New macro.
5739 (get_next_display_element): For automatic composition, get a face
5740 from the font in the glyph-string.
5741 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5742 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5743 (next_element_from_string): Check if the character at the current
5744 position is composed by CHAR_COMPOSED_P.
5745 (next_element_from_buffer): Likewise.
d66c0241
JB
5746 (next_element_from_composition): Adjust for the change of struct it.
5747 Update it->cmp_it.
b8ff72fa
SM
5748 (dump_glyph): Adjust for the change of struct glyph.
5749 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5750 it and struct glyph. Don't handle automatic composition here.
5751 (fill_gstring_glyph_string): New function.
5752 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5753 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5754 (BUILD_GSTRING_GLYPH_STRING): New macro.
5755 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5756 automatic composition.
b8ff72fa 5757 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5758 struct glyph.
b8ff72fa 5759 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5760
b8ff72fa 5761 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5762 the change of struct glyph_string.
5763 (x_draw_glyph_string): Likewise.
5764
57652008-08-29 Glenn Morris <rgm@gnu.org>
5766
5767 * buffer.c (word-wrap): Doc fix.
5768 * xdisp.c (truncate-partial-width-windows): Doc fix.
5769 Increase default to 50.
5770
57712008-08-29 Chong Yidong <cyd@stupidchicken.com>
5772
5773 * xdisp.c (update_tool_bar_unwind): New function.
5774 (update_tool_bar): Temporarily set selected frame before building
5775 tool-bar items.
5776
57772008-08-28 Michael Albinus <michael.albinus@gmx.de>
5778
5779 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5780 snprintf, respectively.
5781 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5782
57832008-08-28 Chong Yidong <cyd@stupidchicken.com>
5784
5785 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5786 LDFLAGS to GNUstep CC invocation.
5787
57882008-08-27 Chong Yidong <cyd@stupidchicken.com>
5789
5790 * indent.c (Fvertical_motion): Revert last change. Handle the
5791 general case where we are moving forward, and PT spans multiple
5792 screen lines.
5793
5794 * eval.c (find_handler_clause): Temporarily increase
5795 max-lisp-eval-depth while printing the backtrace buffer, to
5796 guarantee that help-mode code can run.
5797
57982008-08-27 Eli Zaretskii <eliz@gnu.org>
5799
5800 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5801 colors under -rv.
5802 (IT_set_frame_parameters): Don't swap foreground and background
5803 colors if `(reverse . t)' is present in the frame properties.
5804 (internal_terminal_init): Call init_frame_faces only for the
5805 initial frame.
5806
58072008-08-27 Andreas Schwab <schwab@suse.de>
5808
5809 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5810
58112008-08-27 Andreas Schwab <schwab@suse.de>
5812
5813 * search.c (search_buffer): Set char_base to zero only at the end.
5814
58152008-08-27 Kenichi Handa <handa@m17n.org>
5816
b8ff72fa 5817 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5818
58192008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5820
5821 * xterm.c (x_term_init): Temporarily hide the partially
5822 initialized terminal while calling vendor-specific-keysyms.
5823
58242008-08-26 Eli Zaretskii <eliz@gnu.org>
5825
5826 * msdos.c (internal_terminal_init): Most initializations done only
5827 once, especially initial_screen_colors[] and termscript open.
5828
58292008-08-26 Chong Yidong <cyd@stupidchicken.com>
5830
5831 * eval.c (Fcondition_case): Doc fix.
5832
5833 * widgetprv.h (EmacsFramePart): Change font member to the new font
5834 struct.
5835
5836 * widget.c: Include character.h and font.h for XSETFONT.
5837 (setup_frame_gcs): Compute X font id from font struct, just once.
5838
58392008-08-26 Eli Zaretskii <eliz@gnu.org>
5840
5841 * term.c (get_named_tty): Fix last change.
5842
58432008-08-26 Chong Yidong <cyd@stupidchicken.com>
5844
5845 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5846 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5847
58482008-08-25 Eli Zaretskii <eliz@gnu.org>
5849
5850 * frame.c (do_switch_frame): Mark previously displayed frame as
5851 obscured for FRAME_MSDOS_P frames as well.
5852
58532008-08-24 Eli Zaretskii <eliz@gnu.org>
5854
5855 * frame.c (make_terminal_frame): Initialize f->terminal,
5856 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5857 Set the top frame to newly created frame.
5858 (Fmake_terminal_frame): Reuse the_only_display_info.
5859
5860 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5861 estimating available memory.
5862
b97439ce 58632008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5864
5865 * nsterm.m (ns_draw_window_cursor): Don't call
5866 NSDisableScreenUpdates and NSEnableScreenUpdates on
5867 non-NS_IMPL_COCOA systems.
5868
58692008-08-23 Andreas Schwab <schwab@suse.de>
5870
5871 * process.c (procfs_system_process_attributes): Fix use of
5872 uninitialized variables.
5873
58742008-08-23 Eli Zaretskii <eliz@gnu.org>
5875
5876 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5877
5878 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5879 calling tty-set-up-initial-frame-faces.
5880
b8ff72fa
SM
5881 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5882 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5883
5884 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5885 addition to output_termcap.
5886
5887 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5888
5889 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5890 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5891 highlight.
5892
5893 * process.c [!subprocesses]: Define QCname.
5894 (syms_of_process): Intern and staticpro it.
5895
5896 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5897 Adjust for changes in encoding/decoding routines.
5898 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5899 encode_coding and decode_coding.
5900
b8ff72fa 5901 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5902
5903 * dosfns.c: Include frame.h before termhooks.h.
5904 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5905 variable termscript.
5906
5907 * s/msdos.h (USER_FULL_NAME): Define.
5908 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5909
5910 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5911 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5912 pw->pw_gecos.
5913
5914 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5915 SELECTED_FRAME as additional (1st) argument.
5916 (tty_read_avail_input): Handle output_msdos_raw in
5917 addition to output_termcap.
5918
5919 * msdos.c: Include frame.h before termhooks.h.
5920 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5921 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5922 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5923 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5924 (IT_set_terminal_modes, IT_reset_terminal_modes)
5925 (IT_set_frame_parameters): Use tty->termscript instead of a global
5926 variable termscript.
5927 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5928 global variable terminal_coding. Don't refer to
5929 Vnonascii_translation_table.
5930 (internal_terminal_init): Set Vwindow_system in current_kboard.
5931 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5932 Announce date and time of session start, if termscript is open.
5933 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5934 term.c:init_tty). Open termscript only of not already open.
5935 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5936 here instead of dos_ttraw. Don't initialize display if this is an
5937 initial tty. Don't set FRAME_FONT.
5938 (Vwindow_system_version): Bump to 23.
5939 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5940 is available, set up mouse_position_hook.
5941 (dos_ttraw, IT_set_terminal_modes): If called with initial
5942 terminal, do nothing.
5943 (IT_set_frame_parameters): Handle the Qtty_type frame
5944 parameter by calling internal_terminal_init.
5945 (dos_set_window_size, show_mouse_face)
5946 (clear_mouse_face, IT_note_mode_line_highlight)
5947 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5948 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5949 (initialize_msdos_display): New function.
5950 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5951 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5952 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5953 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5954 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5955 (request_sigio, unrequest_sigio): Don't define, now defined on
5956 sysdep.c.
5957 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5958
5959 * term.c [MSDOS]: Include msdos.h.
5960 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5961 conditional to DOS_NT. Allow only one call to this function in a
5962 session. Don't allocate a new struct tty_display_info; instead,
5963 reuse the_only_display_info. Call get_tty_size to get screen
5964 dimensions. Call init_baud_rate to set bad_rate.
5965 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5966 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5967 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5968 (get_tty_terminal, get_named_tty, Ftty_type)
5969 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5970 output_termcap.
b8ff72fa
SM
5971 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5972 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5973 only when subprocesses are supported.
aac0c6e3
MR
5974
5975 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5976 f->output_data.x.
5977 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5978 terminal devices.
5979
5582fbc7 5980 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5981 x_output.
5982 (FRAME_FONT): Use output_data.tty.
5983 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5984 (struct x_display_info): Rename from display_info. Update all users in
5985 msdos.c.
aac0c6e3 5986 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5987 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5988 (dos_ttraw): Update prototype.
5989
5990 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5991 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5992
59932008-08-23 Jason Rumney <jasonr@gnu.org>
5994
5995 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5996 (fn_TIFFSetDirectory): New library function used.
5997 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5998 (tiff_load): Use :index to select among multiple images. Set count
5999 property when multiple images exist.
6000 (gif_format): Use :index, not :image.
6001
60022008-08-23 Chong Yidong <cyd@stupidchicken.com>
6003
6004 * xdisp.c (try_scrolling): Check INT_MAX instead of
6005 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6006 to obtain INT_MAX.
6007
60082008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6009
6010 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6011
60122008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6013
6014 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6015 GNUstep library location.
6016
60172008-08-21 Chong Yidong <cyd@stupidchicken.com>
6018
6019 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6020 before using it.
6021
6022 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6023
60242008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6025
6026 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6027 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6028 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6029 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6030 (EmacsApp-cursor_blink_handler): Remove declaration.
6031 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6032 match 01 Feb 2008 changes in xterm.c.
6033 (ns_read_socket): Add cast to avoid warning.
6034 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6035 GNUstep.
6036
60372008-08-20 Chong Yidong <cyd@stupidchicken.com>
6038
6039 * xselect.c (x_get_foreign_selection): Return nil if desired
6040 selection could not be obtained, instead of signalling an error.
6041
60422008-08-20 David Reitter <david.reitter@gmail.com>
6043
6044 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6045 * nsterm.m: Remove ns-specific code for cursor blinking.
6046 (ns_draw_window_cursor): Clear cursor properly rather than
6047 redrawing the area. Respect width of bar cursors.
6048 These changes enable the use of generic blink-cursor-mode and
6049 generic cursor types in NS and support smooth cursor movements (do
6050 not blink off after command).
6051 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6052 Nextstep, too.
6053
60542008-08-19 Kenichi Handa <handa@m17n.org>
6055
6056 * font.c (Vfont_log_deferred): New variable.
6057 (font_add_log): Check Vfont_log_deferred.
6058 (font_deferred_log): New function.
6059
6060 * font.h (font_deferred_log): Extern it.
6061
6062 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6063 for sorting.
6064 (face_for_char): Use deferred log.
6065
60662008-08-18 Kenichi Handa <handa@m17n.org>
6067
6068 * fontset.c (face_for_char): Add font log.
6069
6070 * font.c (font_add_log): Add the font properties :script, :lang,
6071 and :otf in the log.
6072
60732008-08-17 Chong Yidong <cyd@stupidchicken.com>
6074
6075 * xdisp.c: Remove dead code.
6076 (handle_invisible_prop, next_overlay_string): Defer call to
6077 setup_for_ellipsis.
6078 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6079
60802008-08-15 Chong Yidong <cyd@stupidchicken.com>
6081
6082 * xfaces.c (lookup_derived_face): Properly handle possible zero
6083 return value of get_lface_attributes.
6084 (merge_faces): Don't tell lookup_derived_face to signal an error
6085 if face is not found.
6086
6087 * dired.c (Fdirectory_files): Doc fix.
6088
6089 * process.c (make_process): Initialize kill_without_query struct
6090 member.
6091
60922008-08-15 Eli Zaretskii <eliz@gnu.org>
6093
6094 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6095 Alternative calculation of totphys for Visual Studio 6.
6096
6097 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6098
6099 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6100 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6101 All users changed.
6102 (stat): Only root directory passed to GetDriveType. Allow RAM
6103 disk as well as local fixed disk when w32-get-true-file-attributes
6104 is set to `local'.
6105 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6106 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6107 (w32_cached_id, w32_add_to_cache): New functions.
6108 (get_name_and_id): Look account names in the cache before calling
6109 lookup_account_sid.
6110 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6111 New initialization flags.
6112 (globals_of_w32): Initialize them to zero.
6113 (w32_system_process_attributes): Use w32_cached_id and
6114 w32_add_to_cache.
6115
61162008-08-14 Lawrence Mitchell <wence@gmx.li>
6117
6118 * lread.c (Fread_char, Fread_char_exclusive): If no character
6119 event is read before timeout is reached, return nil, rather than
6120 converting to a number.
6121
61222008-08-14 Chong Yidong <cyd@stupidchicken.com>
6123
6124 * fns.c (use_dialog_box): Doc fix.
6125
6126 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6127 on OS X.
6128
61292008-08-13 Chong Yidong <cyd@stupidchicken.com>
6130
6131 * frame.c (Qns_parse_geometry): New var.
6132 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6133
61342008-08-11 Chong Yidong <cyd@stupidchicken.com>
6135
6136 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6137 space character in calculating tabs.
6138
61392008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6140
6141 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6142
61432008-08-10 Glenn Morris <rgm@gnu.org>
6144
6145 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6146 silence gcc "limited range of data type" warnings in some
6147 make_fixnum_or_float calls.
6148
61492008-08-09 Eli Zaretskii <eliz@gnu.org>
6150
6151 * w32.c (w32_system_process_attributes): If the process does not
6152 exist, return nil.
6153
6154 * w32.c: Include thelp32.h, psapi.h and coding.h.
6155 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6156 declarations.
6157 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6158 (Process32Next_Proc): New typedefs.
6159 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6160 (g_b_init_process32_next, g_b_init_open_thread_token)
6161 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6162 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6163 (g_b_init_get_process_working_set_size)
6164 (g_b_init_global_memory_status_ex): New static variables.
6165 (globals_of_w32): Initialize them.
6166 (create_toolhelp32_snapshot, process32_first, process32_next)
6167 (open_thread_token, impersonate_self, revert_to_self)
6168 (get_process_memory_info, get_process_working_set_size)
6169 (global_memory_status, global_memory_status_ex): New wrapper
6170 functions.
6171 (w32_list_system_processes, w32_system_process_attributes)
6172 (enable_privilege, restore_privilege, ltime, process_times):
6173 New functions.
6174 (convert_time_raw): New function.
6175 (convert_time): Remove conversion of FILETIME into time in 100
6176 nsec units, call convert_time_raw instead.
6177
6178 * process.h (w32_list_system_processes, w32_system_process_attributes):
6179 Add prototypes.
6180 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6181 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6182 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6183 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6184
6185 * process.c (Fsystem_process_attributes): Doc fix.
6186
61872008-08-08 Chong Yidong <cyd@stupidchicken.com>
6188
6189 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6190 a continued multi-char glyph; if so, advance to the actual glyph.
6191
61922008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6193
6194 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6195
6196 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6197 (.m.o): Use it.
6198 * config.in: Regenerate.
6199
62002008-08-07 Chong Yidong <cyd@stupidchicken.com>
6201
6202 * xdisp.c (redisplay_window): Revert last change.
6203 (try_window): Check bottom scroll margin too.
6204
62052008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6206
6207 * config.in: Regenerate.
6208
6209 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6210 -list-load-path-shadows'.
6211 (nsgui.h): Reduce number of things depending on it.
6212
62132008-08-06 Chong Yidong <cyd@stupidchicken.com>
6214
6215 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6216 instead of window-end which does the wrong thing at eob.
6217 (try_cursor_movement): Minor optimization.
6218 (redisplay_window): If scroll margin is defined, don't assume
6219 window doesn't need scrolling.
6220
62212008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6222
6223 * config.in: Regenerate.
6224
6225 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6226 (mostlyclean): Don't delete *.d under NS.
6227
6228 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6229
62302008-08-06 Kenichi Handa <handa@m17n.org>
6231
6232 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6233
62342008-08-06 Andreas Schwab <schwab@suse.de>
6235
6236 * config.in: Regenerate.
6237
62382008-08-05 Chong Yidong <cyd@stupidchicken.com>
6239
6240 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6241 forcing a window start.
6242
6243 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6244 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6245
62462008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6247
6248 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6249 argument.
6250
62512008-08-05 Juanma Barranquero <lekktu@gmail.com>
6252
6253 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6254 <scroll-down-aggressively, before-change-functions>:
6255 <after-change-functions>: Reflow docstrings.
6256
62572008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6258 Ken Raeburn <raeburn@gnu.org>
6259
6260 Dock menu customization, based on a patch by Ken Raeburn, plus some
6261 other fixes.
6262 * nsmenu.m (dockMenu): New variable.
6263 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6264
6265 * nsterm.h (dockMenu): Declare.
6266
6267 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6268 (ns_term_init): Initialize dockMenu.
6269 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6270 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6271 left.
6272
6273 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6274
62752008-08-04 Chong Yidong <cyd@stupidchicken.com>
6276
6277 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6278
6279 * config.in: Regenerate.
6280
62812008-08-04 Seiji Zenitani <zenitani@mac.com>
6282
6283 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6284
62852008-08-04 Chong Yidong <cyd@stupidchicken.com>
6286
6287 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6288
62892008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6290
6291 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6292
6293 * keyboard.h: Comment an #endif.
6294
6295 * lisp.h (have_menus_p): Adjust comment.
6296
6297 * menu.c (find_and_return_menu_selection): Fix comparison with
6298 client_data.
6299
6300 * nsmenu.m (popup_activated_flag): New variable.
6301 (popup_activated): New function.
6302 (menu-or-popup-active-p): New exported lisp definition.
6303 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6304 when popup done.
6305 (ns_popup_dialog): Set popup_activated_flag.
6306
6307 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6308 version for GNUstep (handled by conditional typedef in nsterm.m).
6309 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6310 in rgb.txt).
6311
6312 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6313
6314 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6315
6316 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6317
6318 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6319 shortcircuit if popup_activated like GTK and X toolkit.
6320
6321 * m/inter386.h: Change DARWIN to DARWIN_OS.
6322
6323 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6324 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6325 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6326 comment on NO_SOCK_SIGIO.
6327
63282008-08-03 Chong Yidong <cyd@stupidchicken.com>
6329
6330 * nsterm.m (windowDidResize): Remove stopModal call.
6331
63322008-08-03 Andreas Schwab <schwab@suse.de>
6333
6334 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6335 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6336
63372008-08-02 Chong Yidong <cyd@stupidchicken.com>
6338
6339 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6340 Don't use uninitialized pointer variable when using getrlimit.
6341
63422008-08-02 Jason Rumney <jasonr@gnu.org>
6343
6344 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6345
63462008-08-02 Eli Zaretskii <eliz@gnu.org>
6347
6348 * alloc.c (NSTATICS): Bump to 0x640.
6349
6350 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6351
6352 * lisp.h: Add prototype for directory_files_internal.
6353
6354 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6355 New functions.
6356 (syms_of_process): Defsubr them. Add initializations for various
6357 Q* symbols used in procfs_system_process_attributes.
6358 (procfs_list_system_processes, procfs_system_process_attributes)
6359 [HAVE_PROCFS]: New functions.
6360 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6361 (procfs_get_total_memory): New functions.
6362
63632008-08-01 Juanma Barranquero <lekktu@gmail.com>
6364
6365 * xfaces.c (Fx_load_color_file): Fix previous change;
6366 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6367
63682008-08-01 Michael Albinus <michael.albinus@gmx.de>
6369
6370 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6371
63722008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6373
6374 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6375
63762008-08-01 Chong Yidong <cyd@stupidchicken.com>
6377
6378 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6379
6380 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6381 define NSApplicationDelegateReplySuccess.
6382 (EmacsView -converstationIdentifier): Use long instead of
6383 NSInteger for GNUstep, since it doesn't have NSInteger.
6384
6385 * xmenu.c: Revert last change.
6386
6387 * keyboard.h: Fix last change.
6388
63892008-08-01 Juanma Barranquero <lekktu@gmail.com>
6390
6391 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6392 on Windows.
6393
63942008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6395
6396 Warning clearing and clean-up in NS port.
6397 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6398 Add prototypes.
6399 * nsgui.h (FACE_DEFAULT): Remove, unused.
6400 (XGCValues): Change colors to unsigned long.
6401 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6402 nsterm.m.
6403 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6404 (ns_list_fonts): Remove, unused.
6405 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6406 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6407 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6408 (nsfont_draw): Compare face colors to 0, not nil.
6409 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6410 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6411 (-addSubmenuWithTitle:): Use NSMenuItem class.
6412 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6413 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6414 (ns_clip_to_row): Make gc arg a BOOL.
6415 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6416 ns_clip_to_row() call.
6417 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6418 used). Cast FRAME_FONT assignments.
6419 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6420 (ns_string_to_lispmod): Change arg to const char.
6421 (ns_term_init): Use NSMenuItem class.
6422 (EmacsApp -openFile:): Move to different section of file.
6423 (EmacsApp -application:openFiles:): Don't return a value, call
6424 -replyToOpenOrPrint:.
6425 (EmacsView -keyDown:): Fix up cast.
6426 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6427 (EmacsView -menuDown:): Cast tag in call to
6428 find_and_call_menu_selection().
6429 (ns_list_fonts): Remove, unused.
6430 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6431 (ns_fontname_to_xlfd): Make static.
6432 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6433 Remove prototypes (now in keyboard.h).
6434 (next_menubar_widget_id): Remove, unused.
6435 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6436 Remove prototypes (now in keyboard.h).
6437 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6438
64392008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6440
6441 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6442 (floatfns.o): Depend on syssignal.h.
6443 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6444
6445 * systty.h: Fix previous change that removed BSD_TERMIOS.
6446 Add comments to #ifdefs.
6447
64482008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6449
6450 * w32fns.c (w32-load-color-file): Remove.
6451 (x-open-connection): Use renamed Fx_load_color_file.
6452 * xfaces.c (x-load-color-file): Add.
6453 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6454 Emacs.clr.
6455 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6456
64572008-07-31 Michael Albinus <michael.albinus@gmx.de>
6458
6459 * dbusbind.c (Fdbus_call_method_asynchronously)
6460 (Fdbus_method_error_internal): New defuns.
6461 (xd_read_message): Handle also reply messages.
6462 (Vdbus_registered_functions_table): Extend docstring.
6463
64642008-07-31 Juanma Barranquero <lekktu@gmail.com>
6465
6466 * keyboard.c (gobble_input): Fix previous change.
6467
64682008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6469
6470 * bitmaps/README:
6471 * xfns.c:
6472 * termcap.c:
6473 * term.c:
6474 * syswait.h:
6475 * systty.h:
6476 * systime.h:
6477 * syssignal.h:
6478 * sysdep.c:
6479 * process.h:
6480 * process.c:
6481 * print.c:
6482 * ndir.h:
6483 * lread.c:
6484 * keyboard.c:
6485 * getpagesize.h:
6486 * floatfns.c:
6487 * fileio.c:
6488 * emacs.c:
6489 * doc.c:
6490 * dispnew.c:
6491 * dired.c:
6492 * data.c:
6493 * callproc.c:
6494 * buffer.c:
6495 * README:
6496 * Makefile.in:
6497 * s/template.h:
6498 * s/msdos.h:
6499 * m/vax.h: Remove VMS support.
6500 * s/vms.h:
6501 * vlimit.h:
6502 * uaf.h:
6503 * temacs.opt:
6504 * param.h:
6505 * ioctl.h: Remove file.
6506
65072008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6508
6509 * s/ms-w32.h (MULTI_KBOARD): Remove.
6510 * xterm.c:
6511 * xselect.c:
6512 * xfns.c:
6513 * window.c:
6514 * w32term.c:
6515 * w32fns.c:
6516 * terminal.c:
6517 * termhooks.h:
6518 * term.c:
6519 * sysdep.c:
6520 * keyboard.h:
6521 * keyboard.c:
6522 * frame.h:
6523 * frame.c:
6524 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6525 * config.in: Regenerate.
6526
65272008-07-30 Jason Rumney <jasonr@gnu.org>
6528
6529 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6530
6531 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6532 (w32font_open_internal): Get unicode version of textmetrics.
6533 Don't enable or disable glyph indices here.
6534 (w32font_open): Disable use of glyph indices.
6535
6536 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6537
65382008-07-30 Chong Yidong <cyd@stupidchicken.com>
6539
6540 * minibuf.c (Vread_buffer_function): Doc fix.
6541
65422008-07-30 John Paul Wallington <jpw@pobox.com>
6543
6544 * minibuf.c (read_buffer_completion_ignore_case): New var.
6545 (Fread_buffer): Use it.
6546
65472008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6548
6549 * systty.h (sensemode): Remove empty #if. Remove reference to
6550 BSD_TERMIOS, unused.
6551
6552 * sysdep.c: Remove reference to DGUX.
6553 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6554
6555 * config.in: Regenerate.
6556
65572008-07-30 Jason Rumney <jasonr@gnu.org>
6558
6559 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6560
65612008-07-29 Jason Rumney <jasonr@gnu.org>
6562
6563 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6564 is populated.
6565 (uniscribe_encode_char): Always use uniscribe.
6566 Avoid using context if cache is populated.
6567
65682008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6569
6570 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6571 open menu.
6572
6573 * gtkutil.c (menu_nav_ended): Remove.
6574 (create_menus): Remove signal connect for menu_nav_ended.
6575
65762008-07-28 Chong Yidong <cyd@stupidchicken.com>
6577
6578 * xdisp.c (redisplay_window): Check return value of
6579 compute_window_start_on_continuation_line before forcing a window
6580 start.
6581
65822008-07-28 Jason Rumney <jasonr@gnu.org>
6583
6584 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6585
6586 * w32term.c (w32_enable_unicode_output, cleartype_active):
6587 Remove obsolete display options.
6588 (x_draw_glyph_string_background): Don't use old cleartype_active
6589 workaround.
6590 (w32_initialize): Remove cleartype_active initialization.
6591 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6592
65932008-07-28 Andreas Schwab <schwab@suse.de>
6594
6595 * lisp.h (init_weak_hash_tables, syms_of_font)
6596 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6597 (remove_hash_entry): Don't declare.
6598 * eval.c (maybe_call_debugger): Make static and move before use.
6599 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6600 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6601 * xterm.h (x_set_frame_alpha): Declare.
6602
66032008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6604
6605 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6606 (create_menus): Connect selection-done to menu_nav_ended.
6607
66082008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6609
6610 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6611 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6612 parameter with read of 'alpha' one.
6613 (Qns_frame_parameter): Remove.
5582fbc7 6614 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6615 (next-selection-coding-system, Vselection_coding_system)
6616 (Vnext_selection_coding_system): Drop.
6617
66182008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6619
6620 * nsfns.m (do-applescript, do_applescript): Rename to
6621 ns-do-applescript, ns_do_applescript, and move within file.
6622
66232008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6624
6625 Remove support for Mac Carbon.
6626 * mactoolbox.c:
6627 * macterm.h:
6628 * macterm.c:
6629 * macselect.c:
6630 * macmenu.c:
6631 * macgui.h:
6632 * macfns.c:
6633 * mac.c: Remove file.
6634 * s/darwin.h:
6635 * m/intel386.h:
6636 * xfaces.c:
6637 * xdisp.c:
6638 * window.c:
6639 * tparam.c:
6640 * termhooks.h:
6641 * termcap.c:
6642 * term.c:
6643 * syssignal.h:
6644 * sysselect.h:
6645 * sysdep.c:
6646 * process.c:
6647 * lread.c:
6648 * lisp.h:
6649 * keyboard.c:
6650 * image.c:
6651 * fringe.c:
6652 * frame.h:
6653 * frame.c:
6654 * fontset.c:
6655 * font.h:
6656 * font.c:
6657 * fns.c:
6658 * fileio.c:
6659 * emacs.c:
6660 * dispnew.c:
6661 * dispextern.h:
6662 * config.in:
6663 * atimer.c:
2ae37cf0 6664 * Makefile.in: Remove code for Carbon.
aac0c6e3 6665
f0131492 66662008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6667
6668 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6669
66702008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6671
6672 * macterm.h (kCGBitmapByteOrder32Host): New define for
6673 non-universal SDKs.
6674
6675 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6676 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6677
6678 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6679 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6680
66812008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6682
6683 * w32inevt.c: Include dispextern.h.
6684
66852008-07-26 Andreas Schwab <schwab@suse.de>
6686
6687 * print.c (print_object): Fix off-by-one in last change.
6688
66892008-07-25 Juanma Barranquero <lekktu@gmail.com>
6690
6691 * term.c (syms_of_term): Don't initialize default_orig_pair,
6692 default_set_foreground and default_set_background on Windows.
6693
66942008-07-25 Jason Rumney <jasonr@gnu.org>
6695
6696 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6697 ScriptItemize. Clean up return value checking. Remove unused
6698 variables.
6699 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6700 shaping engine.
6701
6702 * w32font.c (w32font_has_char): Handle the case where we can't
6703 determine the script for a character.
6704
67052008-07-25 Chong Yidong <cyd@stupidchicken.com>
6706
6707 * term.c (syms_of_term): Initialize default_orig_pair,
6708 default_set_foreground, and default_set_background.
6709
6710 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6711 clash (bug#86).
6712 (getloadavg): Callers changed.
6713
6714 * image.c (svg_load_image): Fix last change.
6715 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6716 image size is valid. Use g_object_unref instead of deprecated
6717 rsvg_handle_free to free rsvg handle.
6718 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6719
67202008-07-25 Jason Rumney <jasonr@gnu.org>
6721
6722 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6723 surrogates before looking up glyph index.
6724 (w32font_text_extents): Encode as surrogates if falling back to
6725 functions that need UTF-16 wide chars.
6726
6727 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6728 BMP as surrogates before looking up glyph index.
6729
67302008-07-25 Chong Yidong <cyd@stupidchicken.com>
6731
6732 * image.c (svg_load_image): Check for failure in return value of
6733 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6734
67352008-07-25 Jason Rumney <jasonr@gnu.org>
6736
6737 * w32font.c (Fx_select_font): Reverse sense of second arg.
6738
67392008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6740
6741 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6742 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6743
6744 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6745 (PURESIZE): Use it.
6746
67472008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6748
6749 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6750 * m/alpha.h (TEXT_END):
6751 * m/ibmrs6000.h (TEXT_END):
6752 * m/macppc.h (TEXT_END):
6753 * s/darwin.h (TEXT_END):
6754 * s/msdos.h (TEXT_END): Remove, unused.
6755 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6756 * s/cygwin.h: Remove comment.
6757
6758 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6759 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6760 * m/intel386.h (DOT_GLOBAL_START):
6761 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6762 (USG): Remove, file not used on USG platforms.
6763
6764 * Makefile.in (HAVE_X11): Remove empty #else.
6765
67662008-07-24 Andreas Schwab <schwab@suse.de>
6767
6768 * fileio.c (Finsert_file_contents): Properly adjust undo list
6769 after format conversion.
6770
67712008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6772
6773 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6774 (menu_nav_ended): Remove.
6775 (create_menus): Remove signal connect for menu_nav_ended.
6776 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6777 create_menus.
6778 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6779
67802008-07-23 Jason Rumney <jasonr@gnu.org>
6781
6782 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6783 with opened font.
6784 (w32font_open): Set font type to gdi.
6785
6786 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6787
67882008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6789
6790 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6791 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6792 defines it.
6793 * unexec.c (ADDR_CORRECT): Define unconditionally.
6794
6795 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6796
6797 * unexec.c: Remove code depending on !COFF and USG, the file is
6798 not used for such systems.
6799
6800 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6801 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6802 (LD_SWITCH_SYSTEM_1): Remove, update users.
6803
6804 * s/darwin.h (DATA_END):
6805 * m/intel386.h (DATA_END):
6806 * m/ibmrs6000.h (DATA_END):
6807 * m/alpha.h (DATA_END): Remove, unused.
6808
6809 * config.in: Regenerate.
6810 * s/ms-w32.h (subprocesses): Define unconditionally.
6811 * s/template.h (subprocesses): Update comment.
6812 * s/vms.h (subprocesses):
6813 * s/usg5-4.h (subprocesses):
6814 * s/hpux10-20.h (subprocesses):
6815 * s/gnu-linux.h (subprocesses):
6816 * s/cygwin.h (subprocesses):
6817 * s/bsd-common.h (subprocesses):
6818 * s/aix4-2.h (subprocesses):
6819 * s/darwin.h (subprocesses): Do not define, defined by default now.
6820
6821 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6822 Remove all references.
6823 (temacs): Add GNUstep specific ld flags.
6824
6825 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6826 similarly to what X does.
6827
68282008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6829
6830 * nsfns.m (x-list-fonts): Remove.
6831 (syms_of_nsfns): Drop the x-list-fonts declaration.
6832 * nsterm.m: Get rid of remaining "//" comments.
6833
68342008-07-22 Chong Yidong <cyd@stupidchicken.com>
6835
6836 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6837
6838 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6839 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6840 (Fns_own_selection_internal, Fx_disown_selection_internal)
6841 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6842
6843 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6844 ... */' style of docstrings. Doc fixes.
6845
68462008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6847
6848 * terminfo.c (UP, BC, PC): Undo previous change.
6849
6850 * nsfns.m: Rename ns prefixed functions/variables to the
6851 corresponding x versions. Update references.
6852
68532008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6854
6855 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6856
68572008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6858
6859 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6860 Remove forwarding functions.
6861 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6862 non-static.
6863 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6864 non-static.
6865 (ns_frame_parm_handlers): Use the new names.
6866 (syms_of_nsfns): Move to the end of file.
6867
6868 * nsterm.m (syms_of_nsterm): Move to the end of file.
6869
6870 * dispnew.c (init_display): Remove code for X10.
6871
68722008-07-22 Jason Rumney <jasonr@gnu.org>
6873
6874 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6875 bare drive.
6876
68772008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6878
6879 * nsterm.m (syms_of_nsterm): Remove debugging println.
6880
68812008-07-22 David Reitter <david.reitter@gmail.com>
6882
6883 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6884 Carbon implementation of the same functionality: execute arbitrary
6885 AppleScript code.
6886
68872008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6888
6889 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6890 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6891 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6892 (Fx_display_mm_height, Fx_display_mm_width)
6893 (Fx_display_backing_store, Fx_display_visual_class)
6894 (Fx_display_save_under, Fx_open_connection)
6895 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6896 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6897 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6898 (Fx_display_pixel_width, Fx_display_pixel_height)
6899 (Fx_display_usable_bounds, Fx_display_planes)
6900 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6901 ... */' style of docstrings.
6902
69032008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6904
6905 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6906 on this platform.
6907 (mips):
6908 * m/iris4d.h (mips): Do not define.
6909 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6910
6911 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6912
6913 * image.c:
6914 * nsfns.m:
6915 * nsselect.m:
6916 * nsterm.h:
6917 * nsterm.m: Rename ns prefixed functions/variables to the
6918 corresponding x versions. Update references.
6919
6920 * m/ibms390x.h (NO_REMAP): Do not undefine.
6921
6922 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6923
69242008-07-21 Chong Yidong <cyd@stupidchicken.com>
6925
6926 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6927 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6928 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6929 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6930 (Fns_display_mm_height, Fns_display_mm_width)
6931 (Fns_display_backing_store, Fns_display_visual_class)
6932 (Fns_display_save_under, Fns_open_connection)
6933 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6934 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6935 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6936 (Fns_display_pixel_width, Fns_display_pixel_height)
6937 (Fns_display_usable_bounds, Fx_display_planes)
6938 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6939
69402008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6941
6942 * print.c (print_object): Check print_depth before searching for
6943 circularities.
6944
69452008-07-21 Michael Albinus <michael.albinus@gmx.de>
6946
6947 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6948 only sprintf.
6949
69502008-07-21 Kenichi Handa <handa@m17n.org>
6951
6952 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6953
69542008-07-20 Andreas Schwab <schwab@suse.de>
6955
6956 * syntax.c (find_start_pos, find_start_value)
6957 (find_start_value_byte, find_start_begv, find_defun_start)
6958 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6959
69602008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6961
6962 * s/sol2-3.h: Insert contents of s/sol2.h.
6963 (LD_SWITCH_SYSTEM): Remove redundant definition.
6964 * s/sol2.h: Remove, unused.
6965
69662008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6967
6968 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6969
69702008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6971
6972 * Makefile.in (ns_appdir): Fix typo in find command.
6973
69742008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6975
6976 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6977
6978 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6979 added not supported anymore.
6980
6981 * s/usg5-4-2.h (LIBS_SYSTEM):
6982 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6983
6984 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6985 * s/lynxos.h (GETPGRP_NO_ARG):
6986 * s/hpux10-20.h (NO_SIOCTL_H):
6987 * s/gnu.h (GETPGRP_NO_ARG):
6988 * s/gnu-linux.h (NO_SIOCTL_H):
6989 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6990 * s/cygwin.h (GETPGRP_NO_ARG):
6991 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6992 (C_DEBUG_SWITCH): Remove duplicate definition.
6993
6994 * m/ibms390.h: Remove boilerplate comments.
6995
6996 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6997
6998 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6999 (wait_reading_process_output): Remove code for SunOS, platform not
7000 supported anymore. Use SOLARIS2 instead of sun.
7001
70022008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7003
7004 * font.c (font_open_by_name): Under NS, default lface height to zero.
7005 (font_open_for_lface): Under NS, set size based on frame fontsize.
7006 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7007 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7008
70092008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7010
7011 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7012 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7013 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7014 YES/NO.
7015 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7016 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7017 * Makefile.in (clean): Clear out build destination dir.
7018
70192008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7020
7021 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7022 xterm, xselect.
7023 * lisp.h: Remove declaration of hash_remove.
7024 * nsgui.h: Remove redefinitions of hash_remove.
7025 * fns.c (hash_remove): Rename to hash_remove_from_table.
7026
70272008-07-19 Seiji Zenitani <zenitani@mac.com>
7028
7029 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7030 strdup() the family UTF8String before modifying it.
7031
70322008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7033
7034 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7035 NS_FACE_BACKGROUND with 0 instead of nil.
7036 * nsfont.m (nsfont_draw): Same.
7037
70382008-07-19 Chong Yidong <cyd@stupidchicken.com>
7039
7040 * nsfns.m (ns_set_background_color): Fix crash.
7041
70422008-07-18 Chong Yidong <cyd@stupidchicken.com>
7043
7044 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7045
70462008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7047
7048 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7049
70502008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7051
7052 * gtkutil.c: Include <config.h> instead of "config.h".
7053
7054 * lisp.h (Foverlay_buffer): Add EXFUN.
7055
7056 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7057 child process to complete child_setup. Undo 2005-09-21 change.
7058
7059 * s/darwin.h: Mention setsid after vfork.
7060
70612008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7062
7063 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7064 Depend on macgui.h.
7065
7066 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7067 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7068
7069 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7070 and f19.
7071 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7072
7073 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7074 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7075 Remove enumerators.
7076
7077 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7078 Check if FACE_FROM_ID returns NULL.
7079
70802008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7081
7082 * w32inevt.c (change_frame_size): Remove extern declaration.
7083 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7084 change_frame_size.
7085
70862008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7087
7088 * getloadavg.c: Revert last change (2008-07-15).
7089
70902008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7091
7092 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7093 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7094 from configure.
7095
70962008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7097
7098 * s/sol2.h:
7099 * s/sol2-4.h: Reorganize conditionals.
7100
7101 * ecrt0.c: Remove code depending on m68000, not used anymore.
7102
7103 * fns.c (hash_remove): Make static.
7104 * lisp.h (hash_remove): Don't prototype.
7105
7106 * m/ibmrs6000.h:
7107 * m/ibms390x.h:
7108 * m/macppc.h: Remove boilerplate comments.
7109
7110 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7111 Solaris, which does not need them.
7112
7113 * m/vax.h: Remove comments about unsupported systems.
7114
7115 * s/darwin.h: Reorganize ifdefs.
7116
71172008-07-17 Andreas Schwab <schwab@suse.de>
7118
7119 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7120
71212008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7122
7123 Use SDATA. Follow coding convention of placing operators at
7124 beginning of next line rather than end of previous line, and placing
7125 spaces around infix operators.
7126
7127 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7128 in case it was defined already.
7129 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7130 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7131 ns_default.
7132 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7133 Lisp_Objects.
7134 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7135 (ns_defined_color, ns_color_to_lisp): Declare.
7136 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7137 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7138 it's accepted even with USE_LISP_UNION_TYPE.
7139 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7140 (update_frame_tool_bar): Remove apparently obsolete tests for
7141 non-integerness of f->tool_bar_lines.
7142 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7143 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7144 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7145 (nsfont_open): Don't confuse NULL for Qnil.
7146 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7147 * menu.h (find_and_call_menu_selection):
7148 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7149 (find_and_return_menu_selection): Always return something.
7150 * frame.h: Include dispextern.h for Display_Info.
7151 (display_x_get_resource): Declare.
7152
71532008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7154
7155 * syntax.c: Remove stdio.h include accidentally introduced in
7156 Emacs.app commit.
7157 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7158 NS_IMPL_COCOA.
7159 * keyboard.c (handle_async_input, input_available_signal): Remove
7160 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7161
71622008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7163
7164 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7165 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7166 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7167 Use SDATA.
7168
7169 * keymap.c: Remove all NS-specific code.
7170 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7171 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7172 where_is_preferred_modifier, return a different value depending on how
7173 preferred is the binding.
7174 (where_is_internal): Adjust accordingly.
7175 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7176 Adjust to new preferred_sequence_p.
7177 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7178 * keyboard.c (parse_solitary_modifier): Not static any more.
7179 * keyboard.h (parse_solitary_modifier): Declare.
7180
71812008-07-16 Andreas Schwab <schwab@suse.de>
7182
7183 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7184 of easymenu.
7185
71862008-07-16 Chong Yidong <cyd@stupidchicken.com>
7187
7188 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7189 that we don't move off the line.
7190
71912008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7192
7193 * keyboard.c (Qsuper): Remove.
7194 (parse_menu_item): Don't call where_is_internal specially for NS.
7195
71962008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7197
7198 * s/gnu-linux.h: Remove boilerplate comments.
7199
7200 * m/alpha.h (__ELF__): Consolidate conditions.
7201
7202 * m/m68k.h (linux): Use GNU_LINUX instead.
7203 Remove boilerplate comments.
7204
7205 * m/intel386.h: Undo refactoring from previous change.
7206 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7207 too, remove dead code.
7208 (linux): Use GNU_LINUX instead.
7209
72102008-07-16 Jason Rumney <jasonr@gnu.org>
7211
7212 * w32gui.h: Repeat 26 June changes lost by last change.
7213
72142008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7215
7216 * systty.h: Remove code for Aix on 386, unsupported platform.
7217
7218 * s/ms-w32.h: Remove boilerplate comments.
7219 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7220
7221 * s/gnu-linux.h (TERM): Remove support.
7222 (HAVE_SYSVIPC): Remove, unused.
7223 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7224 for this system.
7225
7226 * process.c: Remove support for IRIS, unused.
7227 Remove support for TERM, not relevant anymore.
7228
7229 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7230 used with the definition.
7231
7232 * s/aix4-2.h (static): Do not undef.
7233
7234 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7235 only used on Aix.
7236 (HAVE_SYSVIPC): Remove, unused.
7237
7238 * m/hp800.h (CANNOT_DUMP): Do not undef.
7239
7240 * m/alpha.h: Fix comment.
7241
7242 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7243 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7244 used by this configuration.
7245 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7246 * unexec.c: Remove code depending on HPUX and
7247 USG_SHARED_LIBRARIES, not used with this file. Remove code
7248 depending on IRIS, unused. Remove if 0-ed code.
7249
7250 * s/template.h: Remove comments about static.
7251
7252 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7253 Remove if 0-ed code.
7254 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7255 were the same as the default.
7256 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7257 Remove boilerplate comments.
7258 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7259 (HAVE_SYSVIPC): Remove, unused.
7260 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7261
7262 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7263 Remove boilerplate comments.
7264 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7265 Remove boilerplate comments.
7266 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7267 Remove boilerplate comments.
7268 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7269
7270 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7271 USG systems which do not use DATA_SEG_BITS.
7272 Refactor code. Remove boilerplate comments.
7273
7274 * m/ibms390.h:
7275 * m/m68k.h:
7276 * s/bsd-common.h:
7277 * s/cygwin.h:
7278 * s/darwin.h:
7279 * s/freebsd.h:
7280 * s/gnu.h:
7281 * s/msdos.h: Remove boilerplate comments.
7282
7283 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7284 do not use this file.
aac0c6e3
MR
7285 (IRIS_4D): Remove, unused.
7286
7287 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7288 do not use this file.
aac0c6e3
MR
7289 (SIGN_EXTEND_CHAR):
7290 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7291 * unexmips.c: Remove file, unused.
7292
7293 * editfns.c (Fuser_full_name): Replace the only use of
7294 USER_FULL_NAME with its value.
7295 * config.in: Regenerate.
7296
72972008-07-16 David Reitter <david.reitter@gmail.com>
7298
7299 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7300 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7301
73022008-07-16 Glenn Morris <rgm@gnu.org>
7303
7304 * emacs.c (system-type): Doc fix.
7305
73062008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7307
7308 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7309 If the cache doesn't work, let's fix it, rather than work around it.
7310
73112008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7312
7313 * Makefile.in: Correct additions for nsfont.o in last commit.
7314 * nsfont.m: New file (forgot last commit).
7315
73162008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7317
7318 * callproc.c (set_initial_environment): Initialize
7319 Vprocess_environment under CANNOT_DUMP (fixes crash when
7320 batch-compiling for bootstrap).
7321
73222008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7323 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7324
7325 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7326 fix crash due to different init order.
7327
73282008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7329
7330 Changes and additions for NeXTstep windowing system (Cocoa and
7331 GNUstep) support.
7332
7333 * Makefile.in:
7334 * config.in: Support defines and build commands for NS port.
7335 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7336 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7337 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7338 windowing.
7339 (struct face): Add synth_ital field.
7340 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7341 (init_display): Initialize Vinitial_window_system to "ns" when so
7342 compiled.
7343 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7344 (display_arg): Use under NS.
7345 (main): Under NS, allocate autorelease pool and handle command line
7346 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7347 (standard_args): Add NS-specific args.
7348 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7349 * font.c (DEFAULT_ENCODING): New variable.
7350 (font_find_for_lface): Use it.
7351 (syms_of_font): Load syms_of_nsfont under NS.
7352 * font.h: Declare nsfont_driver when compiled under NS.
7353 * fontset.c: When compiling under NS, include nsterm.h.
7354 (fontset_from_font): Autoconstruct fontset under NS.
7355 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7356 symbol, document and use it.
7357 (do_switch_frame): When for_deletion under Cocoa, add
7358 Fraise_frame(Qnil).
7359 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7360 (x_get_arg): Allow "yes" and "no" as boolean values.
7361 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7362 Qright under Cocoa.
7363 (focus-follows-mouse): Default to 0 under NS.
7364 * frame.h (enum output_method): Add output_ns.
7365 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7366 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7367 (FRAME_WINDOW_P): NS-specific definition.
7368 * fringe.c (max_used_fringe_bitmap): Make public.
7369 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7370 (getloadavg): Use NeXT code under descendant OS's.
7371 * image.c (includes and header section, x_create_bitmap_from_data)
7372 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7373 (image_background_transparent, x_clear_image_1)
7374 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7375 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7376 (x_to_xcolors, x_from_xcolors, x_disable_image)
7377 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7378 other GUIs, including XPM support using code originally written for
7379 Carbon GUI.
7380 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7381 using NS API.
7382 (image_ascent): Use font metrics macros instead of direct struct field
7383 access.
7384 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7385 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7386 Also, handle NS as GTK for menu bar purposes.
7387 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7388 toolkit where they differ.
7389 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7390 use cachelist, still needed under NS.
7391 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7392 (struct widget_value): Define it here for menu.c.
7393 * keymap.c (includes): Include modifier internals.
7394 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7395 NS.
7396 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7397 support for preferring sequences using certain modifiers, specified by
7398 the FIRSTONLY argument.
7399 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7400 under NS GNUstep implementation.
7401 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7402 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7403 * menu.c: Include nsterm.h under NS.
7404 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7405 (free_menubar_widget_tree_value, update_submenu_strings)
7406 (find_and_call_menu_selection): Treat NS as X and NT.
7407 (find_and_return_menu_selection): New function, used for popup menus.
7408 * nsgui.h:
7409 * nsterm.h:
7410 * nsfns.m:
7411 * nsimage.m:
7412 * nsmenu.m:
7413 * nsselect.m:
7414 * nsterm.m: New files.
7415 * process.c (wait_reading_process_output): Under NS, call ns_select()
7416 instead of plain select().
7417 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7418 beginning of buffer.
7419 * sysselect.h (init_process): Rename when compiling under Cocoa to
7420 avoid name conflict.
7421 * termhooks.h (display_info): Add ns_display_info to union.
7422 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7423 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7424 COCOA environment.
7425 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7426 unexec() signature. (Note, this will dump, but the resulting file
7427 crashes; unexosx is used instead; keeping around for reference and
7428 possible aid in getting dump working under GNUstep.)
7429 * w32gui.h (button_type, widget_value): Remove definitions (now in
7430 keyboard.h).
7431 * window.c: Include nsterm.h when compiling under NS.
7432 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7433 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7434 other GUI windowing systems.
7435 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7436 GTK.
7437 (x_consider_frame_title): Under NS, set icon type and frame
7438 modified-state indicator; use ns_set_name_as_filename() when using
7439 formatted title.
7440 (update_window_cursor): Make public when compiling under NS.
7441 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7442 (hourglass_atimer, Vhourglass_delay
7443 * xfaces.c (header section, init_frame_faces, clear_font_table)
7444 (defined_color, unload_color, x_face_list_fonts)
7445 (prepare_face_for_display): Add NS support parallel to other GUIs.
7446 Emulate GCs like other non-X GUIs.
7447 (split_font_name): Don't lowercase font name under NS.
7448 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7449 under NS.
7450 * s/darwin.h: Add support for compilation under NS.
7451
74522008-07-15 Jason Rumney <jasonr@gnu.org>
7453
7454 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7455 (w32_show_hourglass): Rename from show_hourglass.
7456 (w32_hide_hourglass): Rename from hide_hourglass.
7457 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7458 (Vhourglass_delay): Declare extern.
7459 (hourglass_started): Remove.
7460
7461 * xdisp.c (Vhourglass_delay): Remove static.
7462 (hourglass_started, start_hourglass, cancel_hourglass):
7463 Don't include these versions on WINDOWSNT.
7464
74652008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7466
7467 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7468 variables (formerly in xfns.c).
7469 (show_hourglass, hide_hourglass): New prototypes (same).
7470 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7471 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7472 in xfns.c).
7473 (syms_of_xdisp): Declare/initialize display-hourglass,
7474 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7475 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7476 formerly in xfns.c.
7477 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7478 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7479 (start_hourglass, cancel_hourglass): Remove.
7480 (show_hourglass, hide_hourglass): Remove prototypes and static
7481 modifiers.
7482 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7483 hourglass_atimer, hourglass_shown_p declaration/initialization.
7484 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7485 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7486 (start_hourglass, cancel_hourglass): Remove.
7487 (show_hourglass, hide_hourglass): Remove prototypes and static
7488 modifiers.
7489 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7490 hourglass_atimer, hourglass_shown_p declaration/initialization.
7491 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7492 (DEFAULT_HOURGLASS_DELAY): Remove.
7493 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7494 hourglass_shown_p declaration/initialization.
7495
74962008-07-14 Jason Rumney <jasonr@gnu.org>
7497
7498 * w32fns.c (w32_get_arg): Remove wrapper function.
7499 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7500 directly.
7501 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7502
75032008-07-14 Kenichi Handa <handa@m17n.org>
7504
7505 * xfont.c (xfont_open): Add workaround for X's bug.
7506
75072008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7508
7509 * fontset.c: Include <stdio.h> unconditionally.
7510
75112008-07-13 Michael Albinus <michael.albinus@gmx.de>
7512
7513 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7514 for filtering.
7515
75162008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7517
7518 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7519
7520 * m/macppc.h:
7521 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7522
7523 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7524 (SPECIAL_EMACS_INT):
7525 * m/ia64.h (SPECIAL_EMACS_INT):
7526 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7527 * s/gnu.h (NLIST_STRUCT):
7528 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7529 * s/gnu-linux.h (LINUX):
7530 * s/msdos.h (HAVE_FACES):
7531 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7532
7533 * systty.h:
7534 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7535 anymore.
7536
75372008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7538
7539 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7540 always defined as int.
7541
7542 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7543 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7544 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7545 * s/freebsd.h (HAVE_WAIT_HEADER):
7546 * s/bsd-common.h (HAVE_UNION_WAIT):
7547 * s/aix4-2.h (HAVE_WAIT_HEADER):
7548 * m/mips.h (HAVE_UNION_WAIT):
7549 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7550 (COFF, static): Do not define, they are undefined later in the file.
7551
7552 * process.c (update_status): Don't use a union.
7553 (status_convert):
7554 (sigchld_handler): Use int instead of WAITTYPE.
7555
75562008-07-12 Chong Yidong <cyd@stupidchicken.com>
7557
7558 * indent.c (Fvertical_motion): Restore hscroll before moving to
7559 goal column.
7560
75612008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7562
7563 * lisp.h: Remove left over code.
7564
75652008-07-11 Andreas Schwab <schwab@suse.de>
7566
7567 * lisp.h: Fix logic in last change.
7568
7569 * menu.h: New file.
7570 * menu.c: Include it.
7571 * xmenu.c: Likewise.
7572 * Makefile.in: Update dependencies.
7573
75742008-07-11 Kenichi Handa <handa@m17n.org>
7575
7576 * fontset.c (fontset_from_font): Cancel the previous change.
7577
75782008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7579
7580 * lisp.h:
7581 * w32heap.c:
7582 * emacs.c:
7583 * alloc.c: Replace all references of NO_UNION_TYPE with
7584 USE_LISP_UNION_TYPE.
7585
7586 * m/xtensa.h (NO_UNION_TYPE):
7587 * m/vax.h (NO_UNION_TYPE):
7588 * m/template.h (NO_UNION_TYPE):
7589 * m/sparc.h (NO_UNION_TYPE):
7590 * m/mips.h (NO_UNION_TYPE):
7591 * m/macppc.h (NO_UNION_TYPE):
7592 * m/m68k.h (NO_UNION_TYPE):
7593 * m/iris4d.h (NO_UNION_TYPE):
7594 * m/intel386.h (NO_UNION_TYPE):
7595 * m/ibms390x.h (NO_UNION_TYPE):
7596 * m/ibms390.h (NO_UNION_TYPE):
7597 * m/ibmrs6000.h (NO_UNION_TYPE):
7598 * m/ia64.h (NO_UNION_TYPE):
7599 * m/hp800.h (NO_UNION_TYPE):
7600 * m/arm.h (NO_UNION_TYPE):
7601 * m/amdx86-64.h (NO_UNION_TYPE):
7602 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7603 defining it the same.
7604
76052008-07-10 Chong Yidong <cyd@stupidchicken.com>
7606
7607 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7608
76092008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7610
7611 * fileio.c:
7612 * sysdep.c
7613 * systty.h:
7614 * m/ibmrs6000.h:
7615 * m/iris4d.h:
7616 * s/aix4-2.h:
7617 * s/freebsd.h:
7618 * s/gnu-linux.h:
7619 * s/hpux10-20.h:
7620 * s/hpux11.h:
7621 * s/netbsd.h:
7622 * s/sol2-3.h:
7623 * s/sol2-4.h:
7624 * s/sol2.h:
7625 * s/usg5-4.h:
7626 * s/vms.h: Remove references to unused variables.
7627
76282008-07-10 Andreas Schwab <schwab@suse.de>
7629
7630 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7631 pattern before matching the generic family.
7632
76332008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7634
7635 * unexec.c:
7636 * s/vms.h:
7637 * s/usg5-4-2.h:
7638 * s/sol2-5.h:
7639 * s/freebsd.h:
7640 * s/darwin.h: Remove dead code.
7641
7642 * m/template.h:
7643 * m/sparc.h:
7644 * m/mips.h:
7645 * m/m68k.h:
7646 * m/iris4d.h:
7647 * m/intel386.h:
7648 * m/ibms390x.h:
7649 * m/ibms390.h:
7650 * m/ia64.h:
7651 * m/hp800.h:
7652 * m/arm.h:
7653 * m/amdx86-64.h: Remove dead code and references to unused
7654 and compiler defined symbols.
7655
7656 * unexmips.c:
7657 * unexelf.c: Remove references to desupported systems.
7658
7659 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7660
7661 * m/powermac.h: Remove boilerplate comments.
7662 (NO_REMAP): Remove unused definition.
7663
7664 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7665 define them.
7666
76672008-07-10 Kenichi Handa <handa@m17n.org>
7668
7669 * xfont.c (xfont_open): Log the reason of failure.
7670
76712008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7672
7673 * fontset.c (fontset_get_font_group):
7674 * font.c (font_check_otf): Specify argument types.
7675
76762008-07-09 Kenichi Handa <handa@m17n.org>
7677
7678 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7679 non-ASCII char is found.
7680
7681 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7682 (reorder_font_vector): Change the arg preferred_family to font.
7683 Prefer the spec matching with font.
7684 (fontset_get_font_group): New function.
7685 (fontset_find_font): Change the format of an element of a realized
7686 fontset. Use fontset_get_font_group.
7687 (fontset_font): Try the current fontset, the default fontset, the
7688 fallbacks of the current fontset, and the fallbacks of the default
7689 fontset in this order.
7690 (face_for_char): Delete the shortcut to use the current font.
7691 (fontset_from_font): Don't set fonts for Latin in the fontset.
7692
7693 * font.h (font_make_object, font_match_p): Adjust prototypes.
7694
7695 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7696
7697 * font.c (font_make_object): New arg entity and pixelsize.
7698 (font_check_otf_features, font_check_otf): New functions.
7699 (font_match_p): Check :lang, :script, and :otf properties.
7700
7701 * xfont.c (xfont_open): Adjust it for the change of
7702 font_make_object.
7703 (xfont_text_extents): Fix initial setting of metrics.
7704
7705 * ftfont.c (struct ftfont_info): New member index, delete member
7706 fc_charset_idx. Make the member order compatible with struct
7707 xftfont_info.
7708 (fc_charset_table): Change charset names to registry names.
7709 (ftfont_pattern_entity): Delete the args registry and
7710 fc_charset_idx. Change the value of :font-entity property
7711 to (FONTNAME . INDEX). Always set :registry property to
7712 `iso10646-1'.
7713 (struct ftfont_cache_data): New struct.
7714 (ftfont_lookup_cache): New arg for_face.
7715 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7716 (ftfont_driver): Set the member otf_capability.
7717 (ftfont_get_charset): Adjust it for the change of
7718 fc_charset_table.
7719 (OTF_TAG_SYM): New macro.
7720 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7721 for the change of fc_charset_table.
7722 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7723 ftfont_pattern_entity. Add FC_INDEX to objset.
7724 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7725 and ftfont_pattern_entity.
7726 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7727 font_make_object, struct ftfont_info.
7728 (ftfont_has_char): Use ftfont_get_fc_charset.
7729 (ftfont_otf_features, ftfont_otf_capability): New functions.
7730 (ftfont_shape): Use ftfont_get_otf.
7731 (ftfont_text_extents): Fix initial setting of metrics.
7732
7733 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7734 member order compatible with struct ftfont_info.
7735 (xftfont_open): Add FC_CHARSET to the pattern. Set
7736 xftfont_info->ft_size. Don't unlock the face. Check BDF
7737 properties if appropriate.
7738 (xftfont_close): Unlock the face.
7739 (xftfont_anchor_point, xftfont_shape): Deleted.
7740 (syms_of_xftfont): Don't set members anchor_point and shape of
7741 xftfont_driver.
7742
7743 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7744 font_make_object.
7745
7746 * w32font.c (w32font_open): Adjust it for the change of
7747 font_make_object.
7748 (w32font_open_internal): Don't set properties of font_object here.
7749
77502008-07-08 Chong Yidong <cyd@stupidchicken.com>
7751
7752 * macfns.c (x_create_tip_frame):
7753 * w32fns.c (x_create_tip_frame):
7754 * xfns.c (x_create_tip_frame): Pass parameter argument to
7755 face-set-after-frame-default.
7756
7757 * xfaces.c (Finternal_merge_in_global_face): Save merged
7758 attributes for the default face back into the face vector.
7759
77602008-07-08 Andreas Schwab <schwab@suse.de>
7761
7762 * fontset.h: Declare fontset_from_font. Don't declare
7763 new_fontset_from_font and fontset_from_font_name.
7764 * xterm.c: Include "fontset.h".
7765 * Makefile.in (xterm.o): Update dependencies.
7766
77672008-07-08 Glenn Morris <rgm@gnu.org>
7768
7769 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7770 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7771
77722008-07-07 Chong Yidong <cyd@stupidchicken.com>
7773
7774 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7775 (x_set_frame_parameters): Don't bind it.
7776
77772008-07-07 Juanma Barranquero <lekktu@gmail.com>
7778
7779 * w32fns.c (map_w32_filename): Declare extern.
7780
77812008-07-07 Jason Rumney <jasonr@gnu.org>
7782
7783 * w32term.c (WS_EX_LAYERED): Define if not already.
7784
77852008-07-06 Chong Yidong <cyd@stupidchicken.com>
7786
7787 * xfaces.c (set_font_frame_param): Don't try to set the font
7788 parameter if it is still unspecified in the lface.
7789
77902008-07-05 Chong Yidong <cyd@stupidchicken.com>
7791
7792 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7793 face if it didn't already exist.
7794
7795 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7796
77972008-07-05 Andreas Schwab <schwab@suse.de>
7798
7799 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7800
78012008-07-05 Chong Yidong <cyd@stupidchicken.com>
7802
7803 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7804 word-wrapping.
7805 (IT_DISPLAYING_WHITESPACE): New macro.
7806 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7807 when word-wrapping. Simplify word-wrapping logic. Use correct
7808 pixel positions when saving copies of the iterator.
7809 (display_line): Use proper wrap point if the last character on a
7810 line was preceded by whitespace.
7811
78122008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7813
7814 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7815
78162008-07-04 Kenichi Handa <handa@m17n.org>
7817
7818 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7819
7820 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7821
78222008-07-02 Jason Rumney <jasonr@gnu.org>
7823
7824 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7825 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7826
7827 * xdisp.c (next_element_from_display_vector): Move assignment out
7828 of if statement.
7829
78302008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7831
7832 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7833
7834 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7835 (syms_of_fileio): Initialize and export them.
7836 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7837
7838 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7839 (Fsystem_move_file_to_trash): New function.
7840 (syms_of_w32fns): Export it to lisp.
7841
78422008-07-01 Jason Rumney <jasonr@gnu.org>
7843
7844 * w32font.c (w32font_text_extents): Don't count overhang as part
7845 of width.
7846
78472008-06-30 Miles Bader <miles@gnu.org>
7848
7849 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7850 Add `avoid_cursor_p' field.
7851
7852 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7853 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7854 (append_glyph, append_composite_glyph, produce_image_glyph)
7855 (append_stretch_glyph): Initialize avoid_cursor_p.
7856 (get_it_property): Rename from `get_line_height_property'.
7857 (x_produce_glyphs): Use get_it_property.
7858 (handle_line_prefix, push_display_prop): New functions.
7859 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7860 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7861 New variables.
7862 (syms_of_xdisp): Initialize them.
7863
78642008-06-30 Kenichi Handa <handa@m17n.org>
7865
7866 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7867 XftDefaultSubstitute (they are called in XftFontMatch).
7868 (xftfont_open): Fix args to ftfont_font_format.
7869
7870 * ftfont.c (fc_charset_table): New member lang.
7871 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7872 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7873 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7874 (ftfont_open): Fix args to ftfont_font_format.
7875 (ftfont_font_format): New arg filename.
7876
78772008-06-30 Chong Yidong <cyd@stupidchicken.com>
7878
7879 * xfaces.c (Finternal_merge_in_global_face): If default face was
7880 modified, realize it again. Update the font face attribute.
7881
78822008-06-29 Jason Rumney <jasonr@gnu.org>
7883
7884 * w32term.c (x_set_frame_alpha): Fix logic.
7885
78862008-06-29 Kenichi Handa <handa@m17n.org>
7887
7888 * fontset.c (Finternal_char_font): Return font-object instead of
7889 font-name.
7890
7891 * composite.c (get_composition_id): Fix the width calculation for TAB.
7892
78932008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7894
7895 * indent.c (Fvertical_motion): Properly handle float column arg.
7896
78972008-06-28 Jason Rumney <jasonr@gnu.org>
7898
7899 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7900 (pfnSetLayeredWindowAttributes): New function pointer.
7901 (w32_initialize): Initialize it when supported.
7902 (x_set_frame_alpha): New function.
7903
7904 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7905 (w32_frame_parm_handlers): Set alpha handler.
7906
7907 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7908
79092008-06-27 Jason Rumney <jasonr@gnu.org>
7910
7911 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7912 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7913 (w32_to_x_charset, x_to_w32_charset)
7914 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7915 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7916 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7917 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7918 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7919 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7920 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7921 (Qw32_charset_unicode): Remove.
7922 (syms_of_w32fns): Update for above changes.
7923
7924 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7925 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7926 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7927 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7928 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7929 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7930 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7931 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7932 (syms_of_w32font): Update for above changes.
7933
79342008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7935
7936 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7937 removed #if.
7938 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7939
79402008-06-26 Juanma Barranquero <lekktu@gmail.com>
7941 Eli Zaretskii <eliz@gnu.org>
7942
7943 * makefile.w32-in (LOCAL_FLAGS):
7944 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7945
7946 * sysdep.c (_spawnlp, _getpid):
7947 Declare with explicit _cdecl instead of _CRTAPI1.
7948
7949 * editfns.c (Fget_internal_run_time):
7950 Check for WINDOWSNT with #ifdef, not #if.
7951
79522008-06-26 Jason Rumney <jasonr@gnu.org>
7953
7954 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7955
7956 * w32term.c (x_draw_glyph_string_foreground)
7957 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7958 Use FONT_HANDLE macro.
7959 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7960
7961 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7962 (uniscribe_encode_char): Use FONT_HANDLE macro.
7963
7964 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7965 (w32font_text_extents): Use precast w32_font.
7966 (w32font_close): Free cached metrics.
7967 (w32font_open_internal): Allocate space for name on stack.
7968
79692008-06-26 Chong Yidong <cyd@stupidchicken.com>
7970
7971 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7972
79732008-06-26 Jason Rumney <jasonr@gnu.org>
7974
7975 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7976 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7977
79782008-06-26 Juanma Barranquero <lekktu@gmail.com>
7979
7980 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7981
79822008-06-26 Jason Rumney <jasonr@gnu.org>
7983
7984 * w32bdf.c, w32bdf.h: Remove obsolete files.
7985
7986 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7987
7988 * w32gui.h: Don't include w32bdf.h.
7989 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7990 Remove obsolete font support.
7991
7992 * w32font.h (struct w32font_info): Remove compat_w32_font.
7993 Add hfont member.
7994 (FONT_COMPAT): Remove obsolete macro.
7995
7996 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7997 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7998 (w32font_open_internal): Remove compat code. Set new hfont member.
7999 (Fx_select_font): Use new hfont member.
8000
8001 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8002 (uniscribe_encode_char): Use new hfont member.
8003
8004 * w32term.c (x_draw_glyph_string_foreground)
8005 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8006 (x_draw_glyph_string): Use metrics in w32font_info.
8007
80082008-06-26 Kenichi Handa <handa@m17n.org>
8009
8010 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8011
80122008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8013
8014 * unexnext.c:
8015 * m/ews4800.h:
8016 * m/hp9000s300.h:
8017 * m/ibm370aix.h:
8018 * m/mips-siemens.h:
8019 * m/ncr386.h:
8020 * m/next.h:
8021 * m/pmax.h:
8022 * m/powerpcle.h:
8023 * m/tandem-s2.h:
8024 * s/386bsd.h:
8025 * s/bsd386.h:
8026 * s/bsd4-1.h:
8027 * s/bsd4-2.h:
8028 * s/bsdos2-1.h:
8029 * s/bsdos2.h:
8030 * s/bsdos3.h:
8031 * s/bsdos4.h:
8032 * s/nextstep.h:
8033 * s/ultrix4-3.h:
8034 * s/usg5-0.h:
8035 * s/usg5-2-2.h:
8036 * s/usg5-2.h:
8037 * s/usg5-4-3.h:
8038 * s/ux4800.h:
8039 * s/uxpds.h:
8040 * s/uxpv.h: Remove support for obsolete systems.
8041 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8042 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8043 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8044 Remove, insert contents in s/aix4-2.h.
8045 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8046 * s/bsd4-3.h: Rename to ...
8047 * s/bsd-common.h: ... this.
8048 * data.c:
8049 * doc.c:
8050 * ecrt0.c:
8051 * emacs.c:
8052 * fileio.c:
8053 * floatfns.c:
8054 * keyboard.c:
8055 * mem-limits.h:
8056 * print.c:
8057 * process.c:
8058 * sysdep.c:
8059 * syssignal.h:
8060 * systty.h:
8061 * syswait.h:
8062 * term.c:
8063 * unexec.c:
8064 * unexelf.c:
8065 * unexhp9k800.c:
8066 * m/hp800.h:
8067 * m/ibmrs6000.h:
8068 * m/mips.h:
8069 * m/vax.h:
8070 * s/darwin.h:
8071 * s/freebsd.h:
8072 * s/gnu.h:
8073 * s/ms-w32.h:
8074 * s/msdos.h:
8075 * s/netbsd.h:
8076 * s/template.h: Remove references to obsolete variables.
8077
8078 * Makefile.in: Add dependencies for all unexec files.
8079 (admindir): Remove unused variable.
8080 (UNEXEC_SRC): Remove references.
8081
80822008-06-25 Chong Yidong <cyd@stupidchicken.com>
8083
8084 * xfns.c (x_default_font_parameter): If Xft is available, first
8085 try Monospace-12 for the default font.
8086
80872008-06-25 Jason Rumney <jasonr@gnu.org>
8088
8089 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8090
80912008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8092
8093 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8094
8095 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8096
80972008-06-25 Juanma Barranquero <lekktu@gmail.com>
8098
8099 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8100 <scroll-conservatively>: Fix typo in docstring.
8101
8102 * xselect.c (Fx_send_client_event): Doc fix.
8103
81042008-06-25 Kenichi Handa <handa@m17n.org>
8105
8106 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8107
8108 * font.c (font_parse_fcname): Remove unused variables.
8109 (font_sort_entites): Delete the arg SPEC. Caller changed.
8110 Fix for the case of ! best_only.
8111 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8112
8113 * lisp.h (Fstring_to_unibyte): EXFUN it.
8114
8115 * character.h (str_to_unibyte): Extern it.
8116
8117 * character.c (str_to_unibyte): New function.
8118
8119 * fns.c (Fstring_to_unibyte): New function.
8120 (syms_of_fns): Defsubr it.
8121
81222008-06-24 Kenichi Handa <handa@m17n.org>
8123
8124 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8125 DPI too.
8126 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8127
81282008-06-24 Andreas Schwab <schwab@suse.de>
8129
8130 * Makefile.in (${lispsource}loaddefs.el): Rename from
8131 ../lisp/loaddefs.el.
8132 (bootstrap-clean): Do what distclean does but don't remove
8133 Makefile.
8134 (distclean): Depend on bootstrap-clean and remove Makefile.
8135
81362008-06-24 Chong Yidong <cyd@stupidchicken.com>
8137
8138 * buffer.h (struct buffer): New member word_wrap.
8139
8140 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8141 word-wrap.
8142 (init_buffer_once): Initialize them.
8143
8144 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8145 line_wrap enum possessing three possible values.
8146
8147 * termopts.h: Replace truncate_partial_width_windows with
8148 Vtruncate_partial_width_windows.
8149
8150 * dispnew.c (direct_output_for_insert): Avoid direct output when
8151 inserting a space with word wrap on.
8152
8153 * indent.c (compute_motion): Obey integer values of
8154 truncate-partial-width-windows.
8155
8156 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8157 replacing truncate_partial_width_windows.
8158 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8159 truncate only if the window width is below that integer.
8160 (start_display, resize_mini_window, produce_stretch_glyph)
8161 (display_string, move_it_in_display_line_to): Use line_wrap.
8162 (back_to_previous_visible_line_start, reseat_1): Reset
8163 string_from_display_prop_p.
8164 (display_line): Extend default face to end of line when wrapping.
8165
81662008-06-24 Kim F. Storm <storm@cua.dk>
8167
8168 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8169 to wrap continued lines at word boundaries.
8170
81712008-06-24 Jason Rumney <jasonr@gnu.org>
8172
8173 * font.c (Ffont_face_attributes): Multiply pixel size before point
8174 conversion to avoid multiplying rounding error.
8175
81762008-06-23 Jason Rumney <jasonr@gnu.org>
8177
8178 * w32term.c (x_draw_glyph_string_background)
8179 (x_draw_glyph_string): Remove old bdf font code.
8180
8181 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8182
81832008-06-22 Kenichi Handa <handa@m17n.org>
8184
8185 * font.c (font_find_for_lface): Try the adstyle specified in
8186 the property of LFACE_FONT of LFACE (if any).
8187
81882008-06-21 Seiji Zenitani <zenitani@mac.com>
8189 Ryo Yoshitake <ryo@shiftmode.net>
8190
8191 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8192
81932008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8194
8195 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8196 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8197 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8198 (witness-emacs): Remove.
8199 (lisp, shortlisp): Move loaddefs.el earlier.
8200 (mostlyclean): Forget about witness-emacs.
8201
82022008-06-22 Glenn Morris <rgm@gnu.org>
8203
8204 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8205 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8206
82072008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8208
8209 * Makefile.in (PRECOMP): Remove.
8210 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8211 (witness-emacs): Run `compile-first'.
8212 (.el.elc): Use the new compile-onefile target.
8213
82142008-06-21 Kenichi Handa <handa@m17n.org>
8215
8216 * xftfont.c (xftfont_open): Handle QCembolden only when
8217 FC_EMBOLDEN is defined.
8218
82192008-06-21 Andreas Schwab <schwab@suse.de>
8220
8221 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8222 (.el.elc): Likewise.
8223
82242008-06-21 Miles Bader <miles@gnu.org>
8225
8226 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8227 build dir, not the lisp source dir.
8228
82292008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8230
8231 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8232 (bootstrapclean): Remove.
8233 (.el.elc): New rule.
8234 (PRECOMP): New var.
8235 (../lisp/subdirs.el): Remove.
8236 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8237 (witness-emacs): New target.
8238 (mostlyclean): Remove witness-emacs as well.
8239 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8240 Add witness-emacs dependency.
8241
82422008-06-20 Chong Yidong <cyd@stupidchicken.com>
8243
8244 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8245 defined by the font.
8246
82472008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8248
8249 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8250 (bootstrap-clean): New target that keeps TAGS around.
8251 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8252 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8253
82542008-06-20 Jason Rumney <jasonr@gnu.org>
8255
8256 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8257 Remove obsolete font code.
8258
8259 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8260 to determine language support.
8261
82622008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8263
8264 * sysdep.c (cfsetspeed): New fun extracted from the code.
8265 (cfmakeraw): Move before first use.
8266
82672008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8268
8269 * sysdep.c (cfmakeraw): Provide fallback implementation.
8270 (serial_configure): Provide fallback implementation of cfsetspeed.
8271
82722008-06-20 Kenichi Handa <handa@m17n.org>
8273
8274 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8275 the pattern.
8276
8277 * fontset.c (fontset_from_font): Copy font_spec before changing
8278 the elements.
8279
8280 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8281
82822008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8283
8284 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8285 for explicit `font' parameters.
8286
8287 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8288
82892008-06-19 Kenichi Handa <handa@m17n.org>
8290
8291 * frame.c: Include <ctype.h>.
8292 (x_set_font_backend): Allow spacing characters in the X resource
8293 for FontBackend.
8294
82952008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8296
8297 * w32fns.c, xfns.c (Qfont_param): New var.
8298 (syms_of_w32fns): Initialize it.
8299 (x_default_font_parameter): Record explicit `font' into
8300 `font-parameter'.
8301
83022008-06-18 Kenichi Handa <handa@m17n.org>
8303
8304 * font.c (font_parse_xlfd): Fix previous change.
8305 (font_parse_fcname): Don't use :fc-unknown-spec.
8306 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8307 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8308 (font_add_log): Prepend the driver name to the resulting fonts.
8309
8310 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8311 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8312 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8313
8314 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8315 (QCembolden): New variables.
8316 (syms_of_xftfont): DEFSYM them.
8317 (xftfont_open): Call XftFontMatch. Don't trust the result of
8318 XftTextExtents8 if the pixel_size is less than 5.
8319
83202008-06-18 Andreas Schwab <schwab@suse.de>
8321
8322 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8323 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8324
83252008-06-18 Jason Rumney <jasonr@gnu.org>
8326
8327 * w32font.c (w32font_list, w32font_match): Add logging.
8328
8329 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8330
83312008-06-17 Chong Yidong <cyd@stupidchicken.com>
8332
8333 * font.c (font_parse_fcname): Store divider characters for
8334 unknown-spec list. For known key symbols, intern using correct
8335 symbol name.
8336
83372008-06-17 Kenichi Handa <handa@m17n.org>
8338
8339 * xfaces.c (realize_default_face): If the frame is not on window
8340 system, set the fontset of face to nil.
8341
83422008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8343
8344 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8345
83462008-06-16 Juanma Barranquero <lekktu@gmail.com>
8347
8348 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8349 (build_font_name_from_vector): Delete externs.
8350
8351 * xfaces.c (struct font_name): Don't declare.
8352
83532008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8354
8355 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8356
83572008-06-16 Chong Yidong <cyd@stupidchicken.com>
8358
8359 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8360
83612008-06-16 Juanma Barranquero <lekktu@gmail.com>
8362
8363 * font.c (Ffont_spec): Fix usage in docstring.
8364 (Ffont_face_attributes): Doc fix.
8365
83662008-06-16 Andreas Schwab <schwab@suse.de>
8367
8368 * font.c (Ffont_face_attributes): Fix definition.
8369
83702008-06-16 Jason Rumney <jasonr@gnu.org>
8371
8372 * font.h (font_style_symbolic_from_value): Remove.
8373
8374 * font.c (font_style_symbolic_from_value): Remove.
8375 (font_style_symbolic): Revert to pre 2008-06-13 version.
8376
8377 * w32font.c (w32_to_fc_weight): New function.
8378 (w32font_full_name, logfont_to_fcname): Use it.
8379
83802008-06-16 Kenichi Handa <handa@m17n.org>
8381
8382 * font.c (font_check_object): Delete it.
8383 (font_clear_cache): Check if a font-object is alive.
8384 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8385 font-object to nil.
8386 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8387 (font_at): Don't call font_check_object.
8388 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8389
83902008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8391
8392 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8393
83942008-06-16 Chong Yidong <cyd@stupidchicken.com>
8395
8396 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8397
83982008-06-15 Chong Yidong <cyd@stupidchicken.com>
8399
8400 * font.c (font_parse_fcname): Only one decimal point.
8401 (font_unparse_fcname): Handle data in family and foundry indices
8402 as symbols, not strings.
8403 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8404
8405 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8406
8407 * font.h (font_unparse_gtkname): Add prototype.
8408
84092008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8410
8411 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8412
84132008-06-15 Andreas Schwab <schwab@suse.de>
8414
8415 * font.c (font_update_drivers): Fix crash when no drivers match.
8416
84172008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8418
8419 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8420 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8421
84222008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8423
8424 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8425
84262008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8427
8428 * process.c (Fserial_process_configure, Fprocess_send_eof):
8429 Use EQ to compare Lisp_Objects.
8430
84312008-06-13 Jason Rumney <jasonr@gnu.org>
8432
8433 * w32fns.c (Fw32_select_font): Remove old font API function.
8434
8435 * w32font.c (logfont_to_fcname): New function.
8436 (Fx_select_font): New font dialog function compatible with
8437 GTK/fontconfig version.
8438
8439 * font.c (font_style_symbolic_from_value): New function.
8440 (font_style_symbolic): Use it.
8441
8442 * font.h (font_style_symbolic_from_value): Declare new function.
8443
84442008-06-13 Juanma Barranquero <lekktu@gmail.com>
8445
8446 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8447 <font-width-table>: Fix typos in docstrings.
8448
84492008-06-13 Daniel Engeler <engeler@gmail.com>
8450
8451 These changes add serial port access.
8452 * process.c: Add HAVE_SERIAL.
8453 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8454 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8455 (list_processes_1, select_wrapper, Fstop_process)
8456 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8457 (status_notify): Modify to handle serial processes.
8458 [HAVE_SERIAL] (Fserial_process_configure)
8459 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8460 New functions.
8461 * process.h (struct Lisp_Process): Add `type'.
8462 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8463 New functions.
8464 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8465 serial ports.
b71ac3dd 8466 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8467 * w32.h: Add FILE_SERIAL.
8468 (struct _child_process): Add ovl_read, ovl_write.
8469
84702008-06-13 Kenichi Handa <handa@m17n.org>
8471
8472 * dispextern.h (enum lface_attribute_index): New member
8473 LFACE_FOUNDRY_INDEX.
8474
8475 * font.c (font_score): Delete arg alternate_families. Check only
8476 weight, slant, width, and size. Ignore the difference of alias
8477 style symbols.
8478 (font_sort_entites): Adjust for the above change. Reflect the
8479 order of font-driver to scores.
8480 (font_list_entities): Don't check alternate_familes here.
8481 (font_clear_prop): Handle foundry.
8482 (font_update_lface): Don't parse "foundry-family" form here.
8483 Handle FONT_FOUNDRY_INDEX.
8484 (font_find_for_lface): Likewise. Handle alternate families here.
8485 If registry is nil, try iso8859-1 and ascii-0.
8486 (font_open_for_lface): Pay attention to size in ENTITY.
8487 (font_open_by_name): Simplify by calling font_load_for_lface.
8488 (free_font_driver_list): Delete it.
8489 (font_update_drivers): Preserve the order of backends.
8490 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8491 of font_score and font_sort_entites.
8492 (font_update_sort_order): Likewise.
8493
8494 * xfaces.c (LFACE_FOUNDRY): New macro.
8495 (check_lface_attrs): Check foundry.
8496 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8497 (merge_face_vectors): Check foundry.
8498 (merge_face_ref): Likewise.
8499 (Finternal_set_lisp_face_attribute): Likewise.
8500 (x_update_menu_appearance): Likewise.
8501 (Finternal_get_lisp_face_attribute): Likewise.
8502 (lface_hash): Likewise.
8503 (lface_same_font_attributes_p): Likewise.
8504 (x_supports_face_attributes_p): Likewise.
8505 (tty_supports_face_attributes_p): Likewise.
8506 (Finternal_set_alternative_font_family_alist): Intern strings.
8507 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8508 (realize_default_face): Set LFACE_FOUNDRY (lface).
8509
8510 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8511 font-driver at first.
8512
8513 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8514
85152008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8516
8517 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8518
85192008-06-12 Jim Meyering <meyering@redhat.com>
8520
8521 Make unexec_free handle NULL the same way free does.
8522 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8523
85242008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8525
8526 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8527 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8528 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8529 (WEAK_ALIAS): Simplify.
8530 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8531 when searching a unibyte buffer.
8532
85332008-06-12 Chong Yidong <cyd@stupidchicken.com>
8534
8535 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8536
85372008-06-12 Juanma Barranquero <lekktu@gmail.com>
8538
8539 * w32font.c: Include ctype.h.
8540
85412008-06-11 Jason Rumney <jasonr@gnu.org>
8542
8543 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8544 misreported as space.
8545 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8546 as aliases for registry iso10646-1.
8547
85482008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8549
8550 * buffer.c (clone_per_buffer_values): Skip `name'.
8551
85522008-06-11 Chong Yidong <cyd@stupidchicken.com>
8553
8554 * font.c (font_parse_fcname): Fix last change; accept decimal
8555 points in font size.
8556
85572008-06-10 Jason Rumney <jasonr@gnu.org>
8558
8559 * w32uniscribe.c (add_opentype_font_name_to_list):
8560 Skip non unicode fonts.
8561
85622008-06-10 Chong Yidong <cyd@stupidchicken.com>
8563
8564 * xfns.c (Fx_font_dialog): New function.
8565
8566 * gtkutil.c (xg_dialog_response_cb): Rename from
8567 xg_file_response_callback.
8568 (pop_down_dialog): Rename from pop_down_file_dialog.
8569 (xg_get_file_name): Callers changed.
8570 (xg_get_font_name): New function.
8571
8572 * gtkutil.h (xg_get_font_name): Insert prototype.
8573
85742008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8575
8576 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8577 x_underline_minimum_display_offset.
8578 (syms_of_xdisp): Declare it here rather than in xterm.c.
8579 * dispextern.h (underline_minimum_offset): Declare it.
8580 * w32term.c (x_draw_glyph_string): Use it.
8581 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8582 (syms_of_xterm): Don't declare it any more.
8583 (x_draw_glyph_string): Adjust to the new name.
8584
85852008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8586
8587 * xterm.c (x_underline_minimum_display_offset): New var.
8588 (x_draw_glyph_string): Use it.
8589 (syms_of_xterm): Declare it.
8590
85912008-06-10 Chong Yidong <cyd@stupidchicken.com>
8592
8593 * font.c (font_parse_fcname): Accept GTK-style font names too.
8594
85952008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8596
8597 * dired.c (file_name_completion): Don't return t if the match is exact
8598 but with different capitalization.
8599 * minibuf.c (Ftry_completion): Simplify.
8600
8601 * window.c (Vwindow_point_insertion_type): New var.
8602 (set_window_buffer): Use it.
8603 (syms_of_window): Init and export it to Lisp.
8604
86052008-06-10 Kenichi Handa <handa@m17n.org>
8606
8607 * font.h (font_intern_prop): Prototype adjusted.
8608
8609 * font.c (font_intern_prop): New arg force_symbol.
8610 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8611 Adjust for the change of font_intern_prop.
8612
8613 * ftfont.c (ftfont_pattern_entity):
8614 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8615 (w32_registry):
8616 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8617 the change of font_intern_prop.
8618
86192008-06-09 Juanma Barranquero <lekktu@gmail.com>
8620
8621 * w32menu.c (digest_single_submenu): Declare extern.
8622
86232008-06-09 Jason Rumney <jasonr@gnu.org>
8624
8625 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8626
8627 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8628 (parse_single_submenu): Remove.
8629 (digest_single_submenu): Remove.
8630 (syms_of_w32menu): Don't initialise variables that have moved
8631 to menu.c.
8632 (set_frame_menubar): Sync with version in xmenu.c.
8633 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8634
8635 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8636 Make static again.
8637
86382008-06-09 Jason Rumney <jasonr@gnu.org>
8639
8640 Changes to w32 files related to the move of common menu code
8641 to menu.c on 2008-06-08 by Chong Yidong.
8642
8643 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8644 defs to w32gui.h.
8645 (single_keymap_panes, push_menu_item, push_menu_pane):
8646 Make globally visible.
8647
8648 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8649 (local_free, malloc_widget_value, free_widget_value)
8650 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8651 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8652 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8653 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8654 (menu_items, menu_items_allocated, menu_items_used)
8655 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8656 (init_menu_items, finish_menu_items, discard_menu_items)
8657 (grow_menu_items, push_submenu_start, push_submenu_end)
8658 (push_left_right_boundary, push_menu_pane, push_menu_item)
8659 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8660 (free_menubar_widget_tree_value, parse_single_submenu)
8661 (update_submenu_strings): Remove functions.
8662 (xmalloc_widget_value): Remove and declare extern.
8663
8664 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8665 (OBJ1): Build it.
8666
8667 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8668 (local_heap, local_alloc, local_free, malloc_widget_value)
8669 (free_widget_value): Define here.
8670
86712008-06-09 Kenichi Handa <handa@m17n.org>
8672
8673 * font.h (Qascii_0): Extern it.
8674
8675 * font.c (Qascii_0): New variable.
8676 (syms_of_font): DEFSYM it.
8677 (font_open_by_name): If the registry "iso8859-1" fails, try also
8678 "ascii-0".
8679
8680 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8681
86822008-06-08 Kenichi Handa <handa@m17n.org>
8683
8684 * .gdbinit (xfont): New command.
8685
86862008-06-08 Andreas Schwab <schwab@suse.de>
8687
8688 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8689 * Makefile.in (menu.o): Update dependencies.
8690
8691 * Makefile.in (obj): Always add menu.o.
8692 * emacs.c (main): Always call syms_of_menu.
8693 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8694
86952008-06-08 Chong Yidong <cyd@stupidchicken.com>
8696
8697 * Makefile.in: Compile menu.c.
8698
8699 * lisp.h: Declare syms_of_menu.
8700
8701 * emacs.c (main): Call syms_of_menu.
8702
8703 * keyboard.h: Relocate platform-independent menu definitions from
8704 xmenu.c.
8705
8706 * menu.c: New file. Relocate platform-independent menu
8707 definitions from xmenu.c. Suggested by Adrian Robert.
8708
8709 * xmenu.c: Remove platform-independent menu definitions.
8710 (menu_items menu_items_inuse, menu_items_allocated)
8711 (menu_items_used, menu_items_n_panes)
8712 (menu_items_submenu_depth): Move to keyboard.h.
8713 (init_menu_items, finish_menu_items, unuse_menu_items)
8714 (discard_menu_items, restore_menu_items, save_menu_items)
8715 (grow_menu_items, push_submenu_start, push_submenu_end)
8716 (push_left_right_boundary, push_menu_pane, push_menu_item)
8717 (keymap_panes, single_keymap_panes, single_menu_item)
8718 (list_of_panes, list_of_items, find_and_call_menu_selection)
8719 (xmalloc_widget_value, free_menubar_widget_value_tree)
8720 (parse_single_submenu, digest_single_submenu)
8721 (update_submenu_strings): Move to menu.c.
8722
87232008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8724
8725 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8726
87272008-06-06 Miles Bader <miles@gnu.org>
8728
8729 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8730 face, not frame default.
8731
87322008-06-05 Martin Rudalics <rudalics@gmx.at>
8733
8734 * window.c (pop_up_windows, pop_up_frames)
8735 (display_buffer_reuse_frames, Vpop_up_frame_function)
8736 (Vdisplay_buffer_function, Veven_window_heights)
8737 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8738 (Vspecial_display_function, Vsame_window_buffer_names)
8739 (Vsame_window_regexps, split_height_threshold)
8740 (Vsplit_window_preferred_function): Move those vars to window.el.
8741 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8742 (Fdisplay_buffer): Move those functions to window.el.
8743 (syms_of_window): Remove corresponding declarations.
8744 (display_buffer): New function.
8745 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8746 * dispnew.c (Flast_nonminibuf_frame): New function.
8747 * buffer.c (Fpop_to_buffer): Move to window.el.
8748
87492008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8750
8751 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8752
87532008-06-05 Kenichi Handa <handa@m17n.org>
8754
8755 * coding.c (detect_coding): Fix previous change.
8756 (detect_coding_system): Likewise.
8757
87582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8759
8760 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8761
8762 * keymap.c (Vminibuffer_local_filename_must_match_map):
8763 Rename from Vminibuffer_local_must_match_filename_map.
8764 (syms_of_keymap):
8765 * minibuf.c (Fcompleting_read): Adjust accordingly.
8766 * commands.h: Rename declaration as well.
8767
87682008-06-05 Kenichi Handa <handa@m17n.org>
8769
8770 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8771 family name.
8772 (Ffont_put): Likewise.
8773
8774 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8775 current font-spec.
8776
8777 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8778 is unspecified.
8779
8780 * xfaces.c (realize_x_face): If the font-related face attributes
8781 are the same as those of default face, realize a new fontset from
8782 default->fontset.
8783 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8784
87852008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8786
8787 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8788 (move_it_in_display_line): New wrapper.
8789
8790 * window.c (window_scroll_pixel_based_preserve_x)
8791 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8792 (window_scroll_pixel_based, window_scroll_line_based):
8793 Use them to preserve column positions.
8794 (syms_of_window): Initialize them.
8795
8796 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8797 (HPOS . VPOS) pair.
8798
8799 * dispextern.h (move_it_in_display_line): Declare.
8800
88012008-06-05 Juanma Barranquero <lekktu@gmail.com>
8802
8803 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8804 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8805 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8806
88072008-06-04 Juanma Barranquero <lekktu@gmail.com>
8808
8809 * window.c (Fset_window_parameter): Doc fix.
8810 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8811
88122008-06-04 Joakim Verona <joakim@verona.se>
8813
8814 * window.h (struct window): Add new member window_parameters.
8815
8816 * window.c (Fwindow_parameters, Fwindow_parameter)
8817 (Fset_window_parameter): New defuns.
8818 (syms_of_window): Defsubr the new defuns.
8819 (make_window): Initialize window_parameters to nil.
8820
88212008-06-04 John Paul Wallington <jpw@pobox.com>
8822
8823 * eval.c (Fdefmacro): Doc fix.
8824
88252008-06-04 Kenichi Handa <handa@m17n.org>
8826
8827 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8828 Be sure to call setup_coding_system when we find a proper coding system.
8829 (detect_coding_system): Fix handling of coding->head_ascii.
8830
88312008-06-03 Andreas Schwab <schwab@suse.de>
8832
8833 * font.c (font_prop_validate_spacing): Fix last change.
8834
88352008-06-03 Kenichi Handa <handa@m17n.org>
8836
8837 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8838 (font_parse_fcname): Fix handling of unknown key.
8839
8840 * xfont.c (xfont_list): Try an alias.
8841
8842 * charset.c (char_charset): Return NULL if the arg charset_list is
8843 specified and C doesn't belong to any of them.
8844
88452008-06-02 Chip Coldwell <coldwell@redhat.com>
8846
8847 * font.c (font_pixel_size): Don't take cdr of an integer.
8848
88492008-06-02 Jim Meyering <meyering@redhat.com>
8850
8851 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8852 * alloc.c (xfree): Return right away for a NULL arg.
8853 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8854 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8855 * mac.c (create_apple_event_from_event_ref): Likewise.
8856 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8857 Likewise.
8858 * doprnt.c (doprnt1): Likewise.
8859 * frame.c (frame): Likewise.
8860 * keyboard.c (wipe_kboard): Likewise.
8861 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8862 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8863 * term.c (tty_default_color_capabilities, maybe_fatal)
8864 (delete_tty): Likewise.
8865 * w16select.c (string): Likewise.
8866 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8867 * w32bdf.c (w32_free_bdf_font): Likewise.
8868 * w32fns.c (w32_unload_font): Likewise.
8869 * w32font.c (w32font_close): Likewise.
8870 * window.c (size_window): Likewise.
8871 * xselect.c (receive_incremental_selection): Likewise.
8872 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8873 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8874 * w32.c (stat): Likewise.
8875
8876 Remove useless if-before-free tests.
8877 * editfns.c (Fset_time_zone_rule): Likewise.
8878 * lread.c (nosuffix): Likewise.
8879 * ralloc.c (get_bloc): Likewise.
8880 * regex.c (reg_free): Likewise.
8881 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8882 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8883 * xsmfns.c (smc_save_yourself_CB): Likewise.
8884
88852008-06-02 Kenichi Handa <handa@m17n.org>
8886
8887 * font.c (font_find_for_lface): Handle float font size.
8888 (font_open_for_lface): Likewise.
8889
8890 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8891 comparing the properties.
8892
88932008-06-01 Jason Rumney <jasonr@gnu.org>
8894
8895 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8896 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8897 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8898 Don't add empty script list.
8899 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8900
89012008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8902
8903 * Makefile.in (dot, dotdot): Remove, update users.
8904 ".." has been used elsewhere in the file for a long time.
8905 (LIBXT_STATIC): Remove conditional based on unused variable.
8906
89072008-06-01 Miles Bader <miles@gnu.org>
8908
8909 * xfaces.c (Vface_remapping_alist): New variable.
8910 (syms_of_xfaces): Initialize it.
8911 (enum named_merge_point_kind): New type.
8912 (struct named_merge_point): Add `named_merge_point_kind' field.
8913 (push_named_merge_point): Make cycle detection respect different
8914 named-merge-point kinds.
8915 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8916 Remove face-name alias resolution.
8917 (lface_from_face_name): New definition using
8918 `lface_from_face_name_no_resolve'.
8919 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8920 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8921 (get_lface_attributes): New definition that layers face-remapping on
8922 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8923 (lookup_basic_face): New function.
8924 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8925 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8926 `get_lface_attributes'.
8927 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8928 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8929 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8930
8931 * xdisp.c (init_iterator): Pass base_face_id through
8932 `lookup_basic_face' when we actually use it as a face-id.
8933 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8934 DEFAULT_FACE_ID.
8935
8936 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8937 lookup the initial face-id.
8938
8939 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8940
89412008-06-01 Juanma Barranquero <lekktu@gmail.com>
8942
8943 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8944 (Fremove_text_properties): Fix typos in docstrings.
8945
89462008-05-31 Kenichi Handa <handa@m17n.org>
8947
8948 * font.c (font_list_entities): Fix the car part of data to be
8949 stored in the cache.
8950
8951 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8952
89532008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8954
8955 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8956 Add a `test' argument so another predicate than `equal' can be used.
8957 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8958 (map_char_table): Remove unused vars `c' and `i'.
8959 * lisp.h (Foptimize_char_table): Adjust declaration.
8960 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8961
89622008-05-30 Kenichi Handa <handa@m17n.org>
8963
8964 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8965 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8966 defined.
8967
89682008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8969
8970 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8971 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8972 frame-local settings for the same variable.
8973
89742008-05-30 Kenichi Handa <handa@m17n.org>
8975
8976 * fontset.c (Ffont_info): Move to font.c.
8977 (syms_of_fontset): Delete defsubr of Sfont_info.
8978
8979 * font.c (font_style_to_value, font_score): Delete casting of the
8980 args to xstcasecmp.
8981 (register_font_driver): Increment num_font_drivers only when
8982 registering the driver globally.
8983 (Ffont_info): Move from fontset.c. Handle a font object too.
8984 (syms_of_font): Defsubr Sfont_info.
8985
89862008-05-29 Kenichi Handa <handa@m17n.org>
8987
8988 * coding.h (enum define_coding_utf8_arg_index): New enum.
8989 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8990 coding_attr_utf_bom.
8991 (enum utf_bom_type): Rename from utf_16_bom_type.
8992 (struct utf_16_spec): Adjust for the above change.
8993 (struct coding_system): Add utf_8_bom in `spec' union.
8994
8995 * coding.c (CODING_UTF_8_BOM): New macro.
8996 (enum coding_category): Delete coding_category_utf_8, add
8997 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8998 coding_category_utf_8_sig.
8999 (CATEGORY_MASK_UTF_8): Delete it.
9000 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9001 (CATEGORY_MASK_UTF_8_SIG): New macros.
9002 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9003 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9004 CATEGORY_MASK_UTF_8_SIG.
9005 (CATEGORY_MASK_UTF_8): New macro.
9006 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9007 (detect_coding_utf_8): Check BOM.
9008 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9009 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9010 (encode_coding_utf_16): Likewise.
9011 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9012 (detect_coding, detect_coding_system): Handle utf-8-auto.
9013 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9014 (syms_of_coding): Fix setting up of Vcoding_category_table.
9015
90162008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9017
9018 * process.c (Faccept_process_output): If `millisec' is non-nil,
9019 `seconds' default to 0.
9020 (wait_reading_process_output): Also return non-nil if we read output
9021 from a non-running process.
9022
90232008-05-29 Jason Rumney <jasonr@gnu.org>
9024
9025 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9026 `raster' specified.
9027 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9028 in the uniscribe backend, but disallow any font that has no
9029 unicode subrange support.
9030
90312008-05-29 Juanma Barranquero <lekktu@gmail.com>
9032
9033 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9034 Fix typos in docstrings.
9035
90362008-05-29 Kenichi Handa <handa@m17n.org>
9037
9038 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9039 (Fx_family_fonts): Set frame correctly.
9040
90412008-05-28 Jason Rumney <jasonr@gnu.org>
9042
9043 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9044
90452008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9046
9047 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9048 calling build_annotations.
9049
90502008-05-28 Juanma Barranquero <lekktu@gmail.com>
9051
9052 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9053 (Fencode_coding_string):
9054 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9055 <latin-extra-code-table>: Fix typos in docstrings.
9056 (syms_of_coding) <coding-system-alist>: Doc fix.
9057 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9058
90592008-05-28 Kenichi Handa <handa@m17n.org>
9060
9061 * fontset.c (Ffont_info): Don't call font_close_object.
9062
9063 * font.c (font_parse_family_registry): Use Ffont_put to validate
9064 foundry and family.
9065 (font_delete_unmatched): Don't check spacing.
9066 (font_list_entities): Add spacing to the spec to list fonts.
9067
9068 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9069 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9070
9071 * coding.c (encode_coding_raw_text): Fix previous change.
9072 (encode_coding_object): When the dst_object is a buffer and is
9073 different from src_object, move gap to PT.
9074
90752008-05-27 Chong Yidong <cyd@stupidchicken.com>
9076
9077 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9078
90792008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9080
9081 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9082 all branches. Compute it differently.
9083
9084 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9085
90862008-05-27 Juanma Barranquero <lekktu@gmail.com>
9087
9088 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9089 into "else if () ... else ...".
9090
90912008-05-27 Jason Rumney <jasonr@gnu.org>
9092
9093 * w32font.c (w32font_open_internal): Determine if glyph indices
9094 are likely to work here.
9095
90962008-05-27 Chong Yidong <cyd@stupidchicken.com>
9097
9098 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9099 draw overlap glyphs with appropriate highlighting.
9100
91012008-05-27 Kenichi Handa <handa@m17n.org>
9102
9103 * xfont.c (xfont_open): Fix calculation of font->average_width.
9104
91052008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9106
9107 * casefiddle.c (casify_object): Try to guess better whether the
9108 argument is a byte or a char.
9109
91102008-05-26 Andreas Schwab <schwab@suse.de>
9111
9112 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9113 Always send multiples of format size.
9114
9115 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9116
91172008-05-26 Jason Rumney <jasonr@gnu.org>
9118
9119 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9120 (compute_metrics): Don't set failure if we just cleared the cache.
9121 (w32_weight_table): Remove unused variable.
9122 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9123 backwards compatibility.
9124
91252008-05-25 Kenichi Handa <handa@m17n.org>
9126
9127 * w32term.c (x_draw_glyph_string):
9128 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9129
9130 * xfaces.c: Delete unused function prototypes.
9131 (xstrlwr, font_frame): Delete them.
9132 (clear_face_cache): Delete unused variable.
9133
9134 * xftfont.c (xftfont_open): Delete unused variable.
9135 If underline_thickness is not 1, adjust underline_position.
9136
9137 * ftxfont.c (ftxfont_open): Delete unused variable.
9138
9139 * fontset.c (face_for_char): Optimize for the case of no charset
9140 property.
9141
9142 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9143 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9144 (otf_open, font_otf_capability, generate_otf_features)
9145 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9146 Comment out by surrounding "#if 0" and "#endif" for the moment.
9147 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9148 (syms_of_font): Codes for accessing above commented out.
9149
91502008-05-24 Eli Zaretskii <eliz@gnu.org>
9151
9152 * w32proc.c: Include dispextern.h.
9153
9154 * w32.c: Include dispextern.h.
9155
91562008-05-23 Juanma Barranquero <lekktu@gmail.com>
9157
9158 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9159 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9160 Fix typos in docstrings.
9161
91622008-05-23 Jason Rumney <jasonr@gnu.org>
9163
9164 * xsmfns.c: Remove includes that are already included by config.h.
9165
91662008-05-23 Kenichi Handa <handa@m17n.org>
9167
9168 * charset.c (Qemacs, charset_emacs): New variables.
9169 (char_charset): Fix for non-Unicode characters.
9170 (syms_of_charset): Define charset_emacs.
9171
9172 * w32term.c (x_draw_glyph_string): Be sure to update
9173 s->underline_thickness and s->underline_position. Be sure to draw
9174 underline within the current line area.
9175
9176 * xterm.c (x_draw_glyph_string): Be sure to update
9177 s->underline_thickness and s->underline_position. Be sure to draw
9178 underline within the current line area.
9179
9180 * fontset.c: Delete unused variables and add casting for char *
9181 throughout the file.
9182 (fontset_font): Try the fallback fonts of the current fontset
9183 before consulting the default fontset.
9184
9185 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9186
9187 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9188
91892008-05-22 Jason Rumney <jasonr@gnu.org>
9190
9191 * font.c: Don't include strings.h.
9192
9193 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9194
9195 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9196 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9197 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9198 to call xstrcasecmp.
9199
9200 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9201
9202 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9203
9204 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9205
9206 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9207
92082008-05-22 Kenichi Handa <handa@m17n.org>
9209
9210 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9211
9212 * font.c (font_prop_validate_style): Adjust for the format
9213 change of font_style_table.
9214
9215 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9216 two args.
9217
9218 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9219 two args.
9220
92212008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9222
9223 * minibuf.c (keys_of_minibuf): Delete.
9224 * lisp.h (keys_of_minibuf): Delete.
9225 * emacs.c (main): Don't call keys_of_minibuf.
9226
92272008-05-22 Kenichi Handa <handa@m17n.org>
9228
9229 * ftfont.c (ftfont_resolve_generic_family): Rename from
9230 ftfont_list_generic_family. Return a single family for each
9231 generic family.
9232 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9233 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9234 Call font_add_log.
9235 (ftfont_match): Call font_add_log.
9236
9237 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9238 (FONT_DEBUG): Define it.
9239 (font_add_log): Extern it.
9240 (font_assert): Rename from xassert.
9241
9242 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9243 (xfont_list_family): Call font_add_log.
9244 (xfont_match): Likewise.
9245 (memq_no_quit): Delete.
9246
9247 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9248 call of Ffont_xlfd_name.
9249
9250 * xfaces.c (struct table_entry, slant_table, weight_table)
9251 (swidth_table): Move to font.c.
9252
9253 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9254 xassert are changed to font_assert. Delete many unused variables.
9255 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9256 New variables.
9257 (struct table_entry): Move from xfaces.c and modified.
9258 (weight_table, slant_table, width_table): Move from xfaces.c and
9259 contents adjusted for the change of struct table_entry.
9260 (font_style_to_value, font_style_symbolic): Adjust for the
9261 format change of font_style_table.
9262 (font_parse_family_registry): Don't overwrite existing foundry and
9263 family of font_spec.
9264 (font_score): Fix calculation of diff for sizes.
9265 (font_sort_entites): Call font_add_log.
9266 (font_delete_unmatched): Return a newly created list.
9267 (font_list_entities): Fix previous change. Call font_add_log.
9268 (font_matching_entity, font_open_entity, font_close_entity):
9269 Call font_add_log.
9270 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9271 (Finternal_set_font_style_table): Delete.
9272 (BUILD_STYLE_TABLE): New macro.
9273 (build_style_table): New function.
9274 (Vfont_log, font_log_env_checked): New variables.
9275 (font_add_log): New function.
9276 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9277 Declare Lisp variables "font-weight-table", "font-slant-table",
9278 "font-width-table", and "font-log". Initialize font_style_table.
9279
92802008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9281
9282 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9283
92842008-05-21 Seiji Zenitani <zenitani@mac.com>
9285 Ryo Yoshitake <ryo@shiftmode.net>
9286
9287 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9288 (Vframe_alpha_lower_limit): New variable.
9289 (x_set_alpha): New function.
9290
9291 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9292
9293 * xfns.c (x-create-frame, Qalpha):
9294 Initialize the frame parameter `alpha'.
9295 * xterm.c (OPAQUE, OPACITY): New.
9296 (x_set_frame_alpha): New function.
9297 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9298
9299 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9300 * w32fns.c (w32_frame_parm_handlers): Likewise.
9301
93022008-05-20 Jason Rumney <jasonr@gnu.org>
9303
9304 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9305 truetype fonts to opentype list.
9306
93072008-05-20 Juanma Barranquero <lekktu@gmail.com>
9308
9309 * fontset.c (Ffontset_info): Doc fix.
9310 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9311 <ignore-relative-composition>: Fix typos in docstrings.
9312
9313 * font.c (syms-of-font) <font-encoding-alist>:
9314 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9315 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9316 (Ffont_otf_alternates): Doc fixes.
9317
93182008-05-20 Kenichi Handa <handa@m17n.org>
9319
9320 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9321 font.h through out the file.
9322 (FONT_DRIVERS): Rename from FONTOBJ.
9323 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9324 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9325
9326 * emacs.c (main): Call syms_of_font unconditionally.
9327
9328 * font.h (find_font_encoding): Extern it.
9329
9330 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9331 fontset.c.
9332 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9333 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9334 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9335 only when HAVE_WINDOW_SYSTEM is defined.
9336 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9337 when HAVE_WINDOW_SYSTEM is defined.
9338
9339 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9340 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9341
9342 * xfaces.c: Include font.h unconditionally.
9343 (merge_face_ref, merge_face_vectors)
9344 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9345
93462008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9347
9348 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9349 indirect_variable.
9350 * eval.c (lisp_indirect_variable): New fun.
9351 (Fuser_variable_p): Use it.
9352
93532008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9354
9355 * lisp.h (indirect_variable):
9356 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9357 Use Lisp_Symbol pointers rather than Lisp_Object.
9358 Adjust callers.
9359 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9360 To this end, change calling-convention.
9361
9362 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9363 if some non-hidden buffers are selected by string&pred.
9364
93652008-05-19 Chong Yidong <cyd@stupidchicken.com>
9366
9367 * process.c (wait_reading_process_output): Always check status
9368 when in batch mode.
9369
93702008-05-19 Kenichi Handa <handa@m17n.org>
9371
9372 * font.c (font_list_entities): Fix handling of cache.
9373 (font_matching_entity): Likewise.
9374
9375 * ftfont.c (cs_iso8859_1): Delete.
9376 (ft_face_cache): New variable.
9377 (struct ftfont_info): New member fc_charset_idx.
9378 (ftfont_build_basic_charsets): Delete.
9379 (fc_charset_table): New variable.
9380 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9381 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9382 Callers changed.
9383 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9384 (ftfont_spec_pattern): New argument fc_charset_idx.
9385 Check registry more rigidly. Change callers.
9386 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9387 change of :font-entity property of the font.
9388
9389 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9390 property of the font.
9391
93922008-05-18 Juanma Barranquero <lekktu@gmail.com>
9393
9394 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9395 (Funencodable_char_position, Fcheck_coding_systems_region)
9396 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9397 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9398 (Ffind_operation_coding_system, Fset_coding_system_priority)
9399 (Fcoding_system_eol_type): Doc fixes.
9400
94012008-05-17 Glenn Morris <rgm@gnu.org>
9402
9403 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9404
94052008-05-16 Eli Zaretskii <eliz@gnu.org>
9406
9407 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9408 and st_gid.
9409
9410 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9411 HAVE_WINDOW_SYSTEM is not defined.
9412
9413 * xfaces.c (merge_face_ref, merge_face_vectors)
9414 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9415 HAVE_WINDOW_SYSTEM is defined.
9416 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9417
94182008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9419
9420 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9421
94222008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9423
9424 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9425
94262008-05-15 Kenichi Handa <handa@m17n.org>
9427
9428 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9429 preference.
9430
94312008-05-15 Glenn Morris <rgm@gnu.org>
9432
9433 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9434
94352008-05-15 Chong Yidong <cyd@stupidchicken.com>
9436
9437 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9438 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9439
9440 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9441
94422008-05-15 Kenichi Handa <handa@m17n.org>
9443
9444 * ftfont.c (ftfont_list): Downcase family name to check generic
9445 families.
9446
9447 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9448 font-spec for QCfont value.
9449
9450 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9451 buffer. Check the return value of it.
9452
94532008-05-14 Jason Rumney <jasonr@gnu.org>
9454
9455 * w32term.c (w32_get_glyph_overhangs): Remove.
9456 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9457
94582008-05-14 Kenichi Handa <handa@m17n.org>
9459
9460 * font.c (font_prop_validate): Make nil a valid value.
9461 (font_clear_cache): Check if the cached vector of entities is nil
9462 or not.
9463
94642008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9465
9466 * emacs.c (main_thread): Conditionalize on
9467 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9468 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9469
9470 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9471 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9472 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9473
94742008-05-14 Kenichi Handa <handa@m17n.org>
9475
9476 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9477 has no corresponding coding system.
9478
94792008-05-14 Jason Rumney <jasonr@gnu.org>
9480
9481 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9482
9483 * w32font.h (w32font_open_internal): Update declaration.
9484
9485 * w32font.c (w32font_open_internal): Change last argument from
9486 w32font_info struct to font object. Fill in font object from
9487 font_entity. Get Outline metrics if possible. Use them to
9488 calculate underline position and thickness. Use xlfd name as name
9489 property. Don't set codepage.
9490 (w32font_open): Pass font_object to w32font_open_internal. Don't
9491 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9492 (w32font_draw): Use s->font.
9493 (clear_cached_metrics): Don't clear non-existent blocks.
9494
9495 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9496 font was not found.
9497 (x_draw_glyph_string): Use underline position and thickness from font.
9498
9499 * w32uniscribe.c (uniscribe_open): Pass font_object to
9500 w32font_open_internal.
9501
95022008-05-14 Kenichi Handa <handa@m17n.org>
9503
9504 These changes are to delete all legacy font-handling codes, and
9505 make Emacs use only font-backends.
9506
9507 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9508 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9509
9510 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9511
9512 * charset.h (Vcharset_non_preferred_head)
9513 (Vcurrent_iso639_language): Extern them.
9514
9515 * charset.c (Vcharset_non_preferred_head): New variable.
9516 (Vcurrent_iso639_language): New variable.
9517 (syms_of_charset): Declare it as a Lisp variable.
9518 (char_charset): Don't check non preferred charsets. As a last
9519 resort, return charset_unicode.
9520 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9521
9522 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9523 conditionals. Don't check enable_font_backend. Delete all codes
9524 used only when USE_FONT_BACKEND is not defined.
9525
9526 * dispextern.h (struct glyph_string): Change type of `font' to
9527 `struct font *'.
9528 (struct glyph_string): New member underline_position and
9529 underline_thickness.
9530 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9531 (struct face): Change type of `font' to `struct font *'. Remove
9532 members `font_name', `font_info_id'.
9533 (per_char_metric, encode_char): Delete externs.
9534 (calc_pixel_width_or_height): Adjust the prototype.
9535
9536 * emacs.c (enable_font_backend): Delete extern.
9537 (main): Don't set enable_font_backend. Don't check the command
9538 line argument "-disable-font-backend".
9539
9540 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9541 (enum font_property_index): New members FONT_DPI_INDEX,
9542 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9543 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9544 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9545 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9546 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9547 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9548 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9549 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9550 (struct font_spec, struct font_entity): New structs.
9551 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9552 (struct font): Many members from old "struct font_info" moved to
9553 here. Members font and entity deleted.
9554 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9555 the new font-related objects.
9556 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9557 (CHECK_FONT_GET_OBJECT): Likewise.
9558 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9559 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9560 (struct font_driver): New members case_sensitive anc check. Type
9561 of the member list and open changed.
9562 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9563 (font_symbolic_width, font_find_object, font_get_spec)
9564 (font_set_lface_from_name): Delete extern.
9565 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9566
9567 * font.c: Include <strings.h>.
9568 (enable_font_backend): Delete it.
9569 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9570 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9571 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9572 (null_string): Delete it.
9573 (null_vector): Make it static.
9574 (font_family_alist): Delete it.
9575 (Qnormal): Extern it.
9576 (QCextra, QClanguage): Delete it.
9577 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9578 (font_make_spec, font_make_entity, font_make_object)
9579 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9580 the string. Callers changed.
9581 (font_pixel_size): Adjusted for the format change of font-related
9582 objects.
9583 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9584 (font_style_to_value, font_style_symbolic): New function.
9585 (build_font_family_alist): Delete it.
9586 (font_registry_charsets): Use Fassoc_string instead of
9587 assq_no_quit.
9588 (font_prop_validate_symbol): Don't return null_string.
9589 (font_prop_validate_style): Adjusted for the change of
9590 style-related values in a font vector.
9591 (font_property_table): Delete entries for QClanguage and
9592 QCantialias, add entries for QCavgwidth.
9593 (get_font_prop_index): Delete the 2nd argument FROM.
9594 (font_prop_validate): Arguments changed.
9595 (font_put_extra): Adjusted for the change of font-related objects.
9596 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9597 (font_parse_fcname, font_unparse_fcname)
9598 (font_prepare_composition): Likewise.
9599 (font_parse_family_registry): Renamed from font_merge_old_spec.
9600 (otf_open): Delete the 1st arg entity.
9601 (font_otf_capability): Adjusted for the above change.
9602 (font_score): New arg alternate_families. Adjusted for the change
9603 of font-related objects.
9604 (font_sort_entites): New arg best_only.
9605 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9606 Delete them.
9607 (font_match_p): Check alternate families.
9608 (font_find_object): Delete it.
9609 (font_check_object): New function.
9610 (font_clear_cache): Adjusted for the change of font-related objects.
9611 (font_delete_unmatched): New arg.
9612 (font_list_entities): Call font_driver->list with a spec that
9613 doesn't specify style-related properties.
9614 (font_matching_entity): Arguments changed. Caller changed.
9615 (font_open_entity): Adjusted for the change of font-related objects.
9616 (font_close_object, font_has_char, font_encode_char)
9617 (font_get_name, font_get_spec): Likewise.
9618 (font_spec_from_name, font_clear_prop, font_update_lface):
9619 New functions.
9620 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9621 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9622 (font_at): Adjusted for the change of font-related objects.
9623 (font_range): New function.
9624 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9625 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9626 (Fcopy_font_spec, Fmerge_font_spec): New function.
9627 (Ffont_family_list): Renamed from list-families.
9628 (Finternal_set_font_style_table): Arguments changed.
9629 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9630 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9631 change of font-related objects.
9632 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9633
9634 * fontset.h (struct font_info): Delete it. Most members go to
9635 struct font.
9636 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9637 (enum FONT_SPEC_INDEX): Delete it.
9638 (font_info, list_fonts_func, load_font_func, query_font_func)
9639 (set_frame_fontset_func, find_ccl_program_func)
9640 (get_font_repertory_func, new_fontset_from_font_name): Delete
9641 externs.
9642 (fontset_from_font_name): Extern it.
9643 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9644 (FONT_INFO_FROM_FACE): Deleted.
9645 (face_for_font): Adjust prototype.
9646
9647 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9648 conditionals. Don't check enable_font_backend. Delete all codes
9649 used only when USE_FONT_BACKEND is not defined.
9650 (get_font_info_func, list_font_func, load_font_func)
9651 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9652 (get_font_repertory_func): Delete them.
9653 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9654 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9655 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9656 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9657 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9658 (fontset_compare_rfontdef): New function.
9659 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9660 rfont-defs by qsort. Adjusted for the change of font-group vector.
9661 (load_font_get_repertory): Deleted.
9662 (fontset_find_font): Use new macros to ref/set elements of
9663 font-def and rfont-def.
9664 (fontset_font): Fix the timing of remembering that no font for C.
9665 (free_face_fontset): Do nothing if the face has no fontset.
9666 (face_suitable_for_char_p): Use new macros to ref/set elements of
9667 rfont-def.
9668 (face_for_char): Likewise. Call face_for_char with font_object.
9669 (fs_load_font): Delete. Delete #pragma surrounding it.
9670 (fs_query_fontset): Use strcasecmp instead of strcmp.
9671 (generate_ascii_font_name): Adjusted for the format change of
9672 font-spec.
9673 (Fset_fontset_font): Likewise. Use new macros to set elements of
9674 font-def.
9675 (Fnew_fontset): Use font_unparse_xlfd to generate
9676 FONTSET_ASCII (fontset).
9677 (new_fontset_from_font_name): Deleted.
9678 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9679 a fontset is already created for the font. FIx updating of
9680 Vfontset_alias_alist.
9681 (fontset_ascii_font): Deleted.
9682 (Ffont_info): Adjusted for the format change of font-spec.
9683 (Finternal_char_font): Likewise.
9684 (Ffontset_info): Likewise.
9685 (syms_of_fontset): Don't check load_font_func.
9686
9687 * fns.c (internal_equal): Handle PREV_FONT.
9688
9689 * frame.h: Delete USE_FONT_BACKEND conditional.
9690
9691 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9692 conditionals. Don't check enable_font_backend. Delete all codes
9693 used only when USE_FONT_BACKEND is not defined.
9694 (x_set_font): Call x_new_font, not x_new_fontset2.
9695 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9696 already set for the frame.
9697
9698 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9699 a font-entity by font_make_entity. Use font_intern_prop instead
9700 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9701 font property. If a font is scalable, set avgwidth property to 0.
9702 Set font-entity property by font_put_extra.
9703 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9704 (ffont_driver): Adjusted for the change of struct font_driver.
9705 (ftfont_spec_pattern): New function.
9706 (ftfont_list): Return a list, not vector.
9707 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9708 (ftfont_list_family): Don't downcase names.
9709 (ftfont_free_entity): Deleted.
9710 (ftfont_open): Return a font-object. Adjusted for the change of
9711 struct font. Get underline_thickness and underline_position from
9712 font property. Don't update dpyinfo->smallest_font_height and
9713 dpyinfo->smallest_char_width.
9714 (ftfont_close): Don't free `struct font'.
9715 (ftfont_has_char): Adjusted for the format change of font-entity.
9716 (ftfont_encode_char, ftfont_text_extents): Likewise.
9717
9718 * ftxfont.c (ftxfont_list): Return a list, not vector.
9719 (ftxfont_open): Return a font-object. Adjusted for the change of
9720 struct font. Get underline_thickness and underline_position from
9721 font property. Don't update dpyinfo->smallest_font_height and
9722 dpyinfo->smallest_char_width.
9723 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9724 (ftxfont_draw): Adjusted for the change of struct font.
9725
9726 * image.c (image_ascent): Don't include "charset.h". Include
9727 "character.h" and "font.h".
9728
9729 * lisp.h (enum pvec_type): New member PREV_FONT.
9730 (Fassoc_string): EXFUN it.
9731
9732 * print.c: Include font.h.
9733 (print_object): Handle font-related objects.
9734
9735 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9736 conditionals. Don't check enable_font_backend. Delete all codes
9737 used only when USE_FONT_BACKEND is not defined.
9738 (handle_auto_composed_prop): Do nothing if it->f is not on a
9739 window system. Check how many following characters can be
9740 displayed by the same font.
9741 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9742 'struct font *'.
9743 (get_char_face_and_encoding): Assign the whole encoding task to
9744 the `encode-char' method of a font driver.
9745 (fill_composite_glyph_string): Adjusted for the change of `struct
9746 face' and `struct glyph_string'.
9747 (fill_glyph_string): Likewise.
9748 (get_per_char_metric): Arguments changed.
9749 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9750 and `struct glyph_string'.
9751 (produce_stretch_glyph, calc_line_height_property)
9752 (x_produce_glyphs): Likewise.
9753
9754 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9755 conditionals. Don't check enable_font_backend. Delete all codes
9756 used only when USE_FONT_BACKEND is not defined. Use
9757 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9758 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9759 (Qp): Extern them.
9760 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9761 Deleted.
9762 (struct font_name): Deleted.
9763 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9764 (compare_fonts_by_sort_order): New function.
9765 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9766 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9767 Deleted.
9768 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9769 compare_fonts_by_sort_order.
9770 (Fx_font_family_list): Call Ffont_family_list.
9771 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9772 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9773 (face_symbolic_slant, face_symbolic_swidth)
9774 (split_font_name_into_vector, build_font_name_from_vector)
9775 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9776 (font_rescale_ratio, split_font_name, build_font_name)
9777 (free_font_names, sort_fonts, x_face_list_fonts)
9778 (face_font_available_p, sorted_font_list, cmp_font_names)
9779 (font_list_1, concat_font_list, font_list, remove_duplicates):
9780 Deleted.
9781 (Fx_list_fonts): Use Ffont_list.
9782 (LFACE_AVGWIDTH): Deleted.
9783 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9784 by FONTP.
9785 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9786 (set_lface_from_font_name): Delete it.
9787 (set_lface_from_font): Renamed from
9788 set_lface_from_font_and_fontset. Caller changed. Don't set
9789 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9790 for face.
9791 (merge_face_vectors): Copy font-spec if necessary.
9792 Clear properties of the font-spec if necessary.
9793 (merge_face_ref): Clear properties of the font-spec if necessary.
9794 (Finternal_set_lisp_face_attribute): Likewise.
9795 (set_font_frame_param): Use font_load_for_lface to load a
9796 font-object, and call Fmodify_frame_parameters with it.
9797 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9798 font name by Ffont_xlfd_name.
9799 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9800 QCslant, and QCwidth.
9801 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9802 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9803 Compare fonts by EQ.
9804 (lookup_non_ascii_face): Deleted.
9805 (face_for_font): The 2nd argument changed.
9806 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9807 Check atomic font properties by case insensitive.
9808 (realize_non_ascii_face): Set face->overstrike correctly.
9809 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9810 (dump_realized_face): Get font name from
9811 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9812
9813 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9814 conditionals. Don't check enable_font_backend. Delete all codes
9815 used only when USE_FONT_BACKEND is not defined.
9816 (xic_create_xfontset): Original code deleted and renamed from
9817 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9818 (x_make_gc): Don't set GCFont in GCs.
9819 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9820 opened by "fixed".
9821 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9822 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9823 get_font_repertory_func.
9824
9825 * xfont.c: Include <stdlib.h> and "ccl.h".
9826 (struct xfont_info): New structure.
9827 (xfont_query_font): Deleted.
9828 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9829 moved from xterm.c.
9830 (xfont_driver): Adjusted for the change of struct font_driver.
9831 (compare_font_names): New function.
9832 (xfont_list_pattern): Sort font names case insensitively. Make
9833 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9834 (xfont_list): Return a list, not vector.
9835 (xfont_match): If the font doesn't have QCname property, generate
9836 a name from the other font properties.
9837 (xfont_open): Return a font-object. Adjusted for the change of
9838 struct font. Get underline_thickness and underline_position from
9839 font property. Don't update dpyinfo->smallest_font_height and
9840 dpyinfo->smallest_char_width.
9841 (xfont_close): Don't free struct font.
9842 (xfont_prepare_face): Adjusted for the change of struct font.
9843 (xfont_done_face): Deleted.
9844 (xfont_has_char): Adjusted for the change of struct font.
9845 (xfont_encode_char, xfont_draw): Likewise.
9846 (xfont_check): New function.
9847
9848 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9849 callback function.
9850 (xftfont_match): Adjusted for the format change of font-entity.
9851 (xftfont_open): Adjusted for the format change of font-entity and
9852 font-object. Adjusted for the change of struct font. Return a
9853 font-object. Don't update dpyinfo->smallest_font_height and
9854 dpyinfo->smallest_char_width.
9855 (xftfont_close): Block input while calling XftFontClose.
9856 (xftfont_prepare_face): Don't block input while calling
9857 xftfont_get_colors. Adjusted for the change of struct font.
9858 (xftfont_shape): Return value of error case fixed.
9859
9860 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9861
9862 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9863 conditionals.
9864 (FONT_WIDTH): Return (f)->max_width.
9865 (struct x_display_info): Delete member `font'.
9866 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9867 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9868 (struct x_output): Change type of `font' to `struct font *'.
9869
9870 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9871 conditionals. Don't check enable_font_backend. Delete all codes
9872 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9873 (x_per_char_metric, x_encode_char): Deleted.
9874 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9875 (x_compute_glyph_string_overhangs): Adjusted for the change of
9876 `struct face'.
9877 (x_draw_glyph_string_foreground)
9878 (x_draw_composite_glyph_string_foreground): Likewise.
9879 (x_draw_glyph_string): Likewise. Use font->underline_position and
9880 font->underline_thickness.
9881 (x_new_font): Renamed from x_new_fontset2.
9882 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9883 (x_check_font): Call `check' method of a font driver.
9884 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9885 (x_query_font, x_get_font_repertory): Deleted.
9886 (x_find_ccl_program): Renamed and moved to xfont.c.
9887 (x_redisplay_interface): Adjusted for the change of `struct
9888 redisplay_interface'.
9889
9890 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9891 conditionals. Don't check enable_font_backend. Delete all codes
9892 used only when USE_FONT_BACKEND is not defined. Surround non-used
9893 code by "#ifdef OLD_FONT" and "endif".
9894 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9895
9896 * w32font.h (struct w32font_info): New member.
9897 (FONT_COMPAT): New macro.
9898 (w32font_open_internal): Prototype adjusted.
9899
9900 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9901 OLD_FONT" and "endif".
9902
9903 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9904 conditionals. Don't check enable_font_backend. Delete all codes
9905 used only when USE_FONT_BACKEND is not defined.
9906 (w32font_open): Return a font-object. Make a font-object by
9907 font_make_object. Adjusted for the change of struct w32font_info.
9908 (w32font_close): Don't free struct font. Adjusted for the change
9909 of struct w32font_info.
9910 (w32font_encode_char, w32font_text_extents, w32font_draw):
9911 Adjusted for the change of struct w32font_info.
9912 (w32font_draw): Likewise.
9913 (w32font_list_internal): Return a list, not vector.
9914 (w32font_open_internal): Change the 4th arg to font-object.
9915 Adjusted for the change of struct w32font_info and font-object format.
9916 (add_font_name_to_list): Don't downcase names.
9917 (w32_enumfont_pattern_entity): Make a font-entity by
9918 font_make_entity. Adjusted for the format change of font-entity.
9919 Use FONT_SET_STYLE to set a style-related font property. If a
9920 font is scalable, set avgwidth property to 0. Set font-entity
9921 property by font_put_extra.
9922 (font_matches_spec): Adjusted for the format change of font-entity.
9923 (w32_weight_table, w32_decode_weight): New variables.
9924 (w32_encode_weight): New function.
9925 (fill_in_logfont): Adjusted for the format change of font-spec.
9926 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9927 weight value.
9928 (w32font_driver): Adjusted for the change of struct font_driver.
9929
9930 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9931 conditionals. Don't check enable_font_backend. Surround non-used
9932 code by "#ifdef OLD_FONT" and "endif".
9933 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9934 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9935
9936 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9937 conditionals. Don't check enable_font_backend. Delete all codes
9938 used only when USE_FONT_BACKEND is not defined. Surround non-used
9939 code by "#ifdef OLD_FONT" and "endif".
9940
9941 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9942 (uniscribe_open): Return value changed to font-object.
9943 Adjusted for the format change of font-object.
9944 (uniscribe_otf_capability): Adjusted for the change of struct font.
9945 (add_opentype_font_name_to_list): Don't downcase names.
9946 (uniscribe_font_driver): Adjusted for the change of struct
9947 font_driver.
9948
99492008-05-13 Chong Yidong <cyd@stupidchicken.com>
9950
9951 * dispnew.c (update_frame_1): Check if tty output is still valid
9952 before flushing it.
9953
99542008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9955
9956 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9957 to Gtk+ menus.
9958
99592008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9960
9961 * dired.c (file_name_completion): Tweak the code so as to always do it
9962 in a single pass. Tighten the scope of some variables.
9963
9964 * dired.c (Qdefault_directory): New var.
9965 (file_name_completion): Use it instead of Fexpand_file_name.
9966 (syms_of_dired): Initialize it.
9967
99682008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9969
9970 * fileio.c (double_dollars): Remove dead code.
9971
99722008-05-10 Eli Zaretskii <eliz@gnu.org>
9973
9974 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9975 Mention w32-get-true-file-attributes in doc string.
9976
9977 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9978
99792008-05-09 Glenn Morris <rgm@gnu.org>
9980
9981 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9982 2008-04-23.
9983
99842008-05-09 Eli Zaretskii <eliz@gnu.org>
9985
9986 Support for reporting owner and group of each file on MS-Windows:
9987 * dired.c (stat_uname, stat_gname): New functions, with special
9988 implementation for w32.
9989 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9990
9991 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9992 (dflt_group_name): New static variable.
9993 (dflt_group): Rename from the_group.
9994 (init_user_info): Init dflt_group fields. Get user's group name
9995 from LookupAccountSid.
9996 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9997 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9998 New initialization states.
9999 (globals_of_w32): Initialize them to zero. Initialize the default
10000 group name to "None".
10001 (GetFileSecurity_Name): New global var, the name of the function
10002 to call for GetFileSecurity.
10003 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10004 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10005 (get_file_security, get_security_descriptor_owner)
10006 (get_security_descriptor_group, is_valid_sid)
10007 (get_file_security_desc, get_rid, get_name_and_id)
10008 (get_file_owner_and_group): New functions.
10009 (stat): Use get_file_security_desc and get_file_owner_and_group to
10010 report the owner and primary group of each file. Don't ignore the
10011 high 32 bits of file's size, now that st_size is 64-bit wide.
10012 Fix test when to get true file attributes.
10013 (init_user_info): Use get_rid instead of equivalent inline code.
10014 (fstat): Don't ignore the high 32 bits of file's size.
10015
100162008-05-09 Chong Yidong <cyd@stupidchicken.com>
10017
10018 * image.c (png_load): Use correct bit-depth for setting background
10019 color.
10020
100212008-05-08 Eli Zaretskii <eliz@gnu.org>
10022
10023 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10024 epa-hook.elc.
10025
100262008-05-08 Juanma Barranquero <lekktu@gmail.com>
10027
10028 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10029
100302008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10031
10032 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10033 because the original parameters are in pure storage now.
10034 (mac_window): Remove unused params. Update callers.
10035
100362008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10037
10038 * lread.c (substitute_object_recurse): Use lower-level primitives.
10039 Don't signal errors when traversing sub-char-tables.
10040 Don't loop over all the possible characters when traversing char-tables.
10041
10042 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10043 just like we do in print.c.
10044
100452008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10046
10047 * minibuf.c (Ftry_completion): Remove code left over from when we used
10048 scmp instead of Fcompare_strings.
10049
100502008-05-04 Juanma Barranquero <lekktu@gmail.com>
10051
10052 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10053
100542008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10055
10056 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10057 Create bitmap context in native byte order.
10058
10059 * macterm.c (XDrawLine)
10060 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10061 context in native byte order.
10062
100632008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10064
10065 * config.in: Regenerate.
10066
10067 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10068 New definitions for Image I/O support.
10069 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10070 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10071 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10072 (mac_data_provider_release_data, image_load_image_io)
10073 [USE_MAC_IMAGE_IO]: New functions.
10074 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10075 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10076 (init_image_func_pointer) [MAC_OSX]: Remove function.
10077 (image_load_quartz2d) [MAC_OSX]: Check availability of
10078 CGImageCreateWithPNGDataProvider at compile time.
10079 Use lowercase `false' for boolean constant.
10080 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10081 Use image_load_image_io.
10082 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10083 Don't check MyCGImageCreateWithPNGDataProvider.
10084 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10085 Don't call init_image_func_pointer.
10086
10087 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10088
10089 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10090 Make variable non-static.
10091 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10092 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10093
10094 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10095 (RED_FROM_ULONG): Mask off higher bits.
10096 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10097
10098 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10099 Include AvailabilityMacros.h.
10100 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10101 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10102
101032008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10104
10105 * chartab.c (Fset_char_table_range): If range is t, really set all
10106 chars to that value.
10107
101082008-05-03 Eli Zaretskii <eliz@gnu.org>
10109
10110 * dired.c (Ffile_attributes): Don't allow the device number become
10111 negative.
10112
101132008-05-02 Daiki Ueno <ueno@unixuser.org>
10114
10115 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10116
101172008-05-02 Juri Linkov <juri@jurta.org>
10118
10119 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10120 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10121 DEFAULT argument as a list of default values in docstrings.
10122
101232008-05-01 Chong Yidong <cyd@stupidchicken.com>
10124
10125 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10126
101272008-05-01 Martin Rudalics <rudalics@gmx.at>
10128
10129 * dispnew.c (change_frame_size_1): Preserve small windows when
10130 shrinking frames by calling set_window_height|width with third
10131 arg 2.
10132
10133 * window.h (struct window): Replace field too_small_ok by field
10134 resize_proportionally.
10135
10136 * window.c (make_window): Initialize resize_proportionally.
10137 (enlarge_window): Temporarily set resize_proportionally to make
10138 sure that shrink_windows does scale the window proportionally.
10139 (shrink_windows): When window has resize_proportionally set try
10140 to shrink it proportionally by stealing from other windows.
10141 (struct saved_window, Fset_window_configuration)
10142 (compare_window_configurations): Handle resize_proportionally.
10143 (WINDOW_TOTAL_SIZE): New macro.
10144 (window_min_size, shrink_windows, size_window): Use it.
10145 (check_min_window_sizes): Remove. Invalid values of
10146 window-min-height|width are handled by window_min_size_2 now.
10147 (size_window, Fsplit_window, enlarge_window)
10148 (adjust_window_trailing_edge, grow_mini_window): Don't call
10149 check_min_window_sizes.
10150 (window_min_size_2, window_min_size_1, window_min_size):
10151 New argument safe_p for retrieving "safe" minimum sizes.
10152 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10153 (adjust_window_trailing_edge, grow_mini_window):
10154 Adjust arguments of window_min_size... functions.
10155 (shrink_windows): Argument min_size removed. New argument
10156 safe_p allows shrinking windows to their safe minimum sizes.
10157 Calculate minimum size and decide whether a window shall be
10158 deleted for each window individually.
10159 (size_window): When nodelete_p equals 2, tell shrink_windows to
10160 delete windows only if their new minimum size is no more safe.
10161 (shrink_window_lowest_first): Call window_min_size_1 to make
10162 sure to preserve modeline of bottom-most window when resizing
10163 the minibuffer.
10164 (Fset_window_configuration, Fcurrent_window_configuration)
10165 (compare_window_configurations): Do not handle
10166 window-min-height|width any more.
10167 (syms_of_window): Clarify window-min-height|width doc-strings.
10168
101692008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10170
10171 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10172 some more. Copy some of the code from Ftry_completions.
10173 Remove special case code that dates back to initial revision when the
10174 slash was only added when necessary and that can't trigger nowadays.
10175
101762008-04-27 Kenichi Handa <handa@m17n.org>
10177
10178 * font.c (font_prop_validate): Signal `error' instead of `font'.
10179
101802008-04-29 Jason Rumney <jasonr@gnu.org>
10181
10182 * w32fns.c (Fw32_battery_status): New defun.
10183 (syms_of_w32fns): Defsubr it.
10184
101852008-04-28 Andreas Schwab <schwab@suse.de>
10186
10187 * dired.c (file_name_completion): Fix another mixing of encoded
10188 and decoded names.
10189
101902008-04-28 Juanma Barranquero <lekktu@gmail.com>
10191
10192 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10193
101942008-04-27 Juanma Barranquero <lekktu@gmail.com>
10195
10196 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10197
101982008-04-27 Andreas Schwab <schwab@suse.de>
10199
10200 * dired.c (file_name_completion): Fix inappropriate mixing of
10201 encoded and decoded names.
10202
10203 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10204
10205 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10206
102072008-04-26 Eli Zaretskii <eliz@gnu.org>
10208
10209 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10210 2008-03-31, it's not needed anymore with `struct stat' definition
10211 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10212 for the same reasons.
10213
102142008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10215
10216 * m/sparc.h: Additional redefinitions for GNU/Linux.
10217
102182008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10219
10220 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10221 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10222 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10223 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10224 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10225 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10226 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10227 Likewise.
10228
10229 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10230 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10231 (mac_ax_number_of_characters): Add externs.
10232 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10233 [USE_MAC_TSM]: Likewise.
10234 (mac_handle_text_input_event) [MAC_OSX]:
10235 Handle kEventTextInputOffsetToPos for no active input area case.
10236 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10237 (mac_handle_document_access_event)
10238 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10239 (install_application_handler) [MAC_OSX]: Register handlers for
10240 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10241 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10242 Register mac_handle_document_access_event.
10243
10244 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10245 Make functions non-static.
10246
102472008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10248
10249 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10250 (read_file_name_completion_ignore_case, insert_default_directory)
10251 (Qdefault_directory): Move to minibuffer.el.
10252 (Fread_file_name): Call the new `read-file-name' instead.
10253
102542008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10255
10256 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10257 Make function non-static.
10258 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10259 Remove function.
10260 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10261 Move to mactoolbox.c.
10262 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10263
10264 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10265 (mac_rect_make): New macro.
10266
10267 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10268 instead of float.
10269 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10270 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10271 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10272 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10273 CGRectMake.
10274 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10275 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10276 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10277 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10278 instead of WindowRef in argument type.
10279 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10280 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10281 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10282 instead of DISPLAY. All uses changed.
10283 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10284 (x_calc_absolute_position): Simplify so as not to use
10285 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10286
10287 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10288 instead of WindowRef in argument type.
10289 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10290 [TARGET_API_MAC_CARBON]: Remove externs.
10291 (create_apple_event, mac_event_parameters_to_lisp)
10292 [TARGET_API_MAC_CARBON]: Add externs.
10293
10294 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10295 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10296 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10297 is clicked.
10298 (x_activate_menubar): Remove extern for saved_menu_event_location.
10299 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10300 Move from mac.c.
10301
103022008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10303
10304 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10305 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10306
103072008-04-23 Jason Rumney <jasonr@gnu.org>
10308
10309 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10310 attributes only for local files.
10311
10312 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10313 default to Qlocal.
10314
103152008-04-22 Juri Linkov <juri@jurta.org>
10316
10317 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10318 read-buffer-to-switch instead of using the letter "B".
10319
103202008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10321
10322 * fileio.c (Qdefault_directory): New variable.
10323 (Fread_file_name): Use it to pass `dir' to the completion functions.
10324
103252008-04-20 Chong Yidong <cyd@stupidchicken.com>
10326
10327 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10328
103292008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10330
10331 * keyboard.c (Vpre_help_message): Remove.
10332 (show_help_echo): Remove default C code.
10333
10334 * dired.c (directory_files_internal, file_name_completion):
10335 Only call ENCODE_FILE if the string is indeed decoded.
10336
103372008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10338
10339 * Makefile.in (TOOLKIT_DEFINES): Remove.
10340 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10341
103422008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10343
10344 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10345 (mactoolbox.o): New target.
10346
10347 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10348 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10349
10350 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10351 Use mac_set_frame_window_background instead of XSetWindowBackground.
10352 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10353 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10354 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10355 instead of SetWindowTitleWithCFString.
10356 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10357 Move function to mactoolbox.c.
10358 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10359 Use mac_set_window_modified instead of SetWindowModified.
10360 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10361 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10362 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10363 FrontNonFloatingWindow. Use mac_activate_window instead of
10364 ActivateWindow. Use mac_active_non_floating_window instead of
10365 ActiveNonFloatingWindow.
10366 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10367 Use mac_show_hourglass and mac_hide_hourglass.
10368 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10369 instead of GetGlobalMouse.
10370 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10371 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10372 Use mac_bring_window_to_front instead of BringToFront.
10373 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10374 mactoolbox.c.
10375 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10376 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10377 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10378 mactoolbox.c.
10379
10380 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10381 (XtPointer): Move typedef from macmenu.c.
10382 (enum button_type): Move enum from macmenu.c.
10383 (widget_value): Move typedef from macmenu.c.
10384 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10385 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10386 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10387 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10388 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10389 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10390 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10391 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10392 (Selection): Move typedef from macselect.c.
10393 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10394 macterm.c.
10395 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10396 (mac_is_window_collapsed, mac_bring_window_to_front)
10397 (mac_send_window_behind, mac_hide_window, mac_show_window)
10398 (mac_collapse_window, mac_front_non_floating_window)
10399 (mac_active_non_floating_window, mac_activate_window)
10400 (mac_move_window_structure, mac_move_window, mac_size_window)
10401 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10402
10403 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10404 (enum mac_menu_kind): Move enum to mactoolbox.c.
10405 (min_menu_id): Move variable to mactoolbox.c.
10406 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10407 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10408 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10409 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10410 [TARGET_API_MAC_CARBON]: Likewise.
10411 (XtPointer): Move typedef to macgui.h.
10412 (enum button_type): Move enum to macgui.h.
10413 (widget_value): Move typedef to macgui.h.
10414 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10415 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10416 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10417 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10418 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10419 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10420 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10421 (popup_activated_flag): Make variable non-static.
10422 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10423 (add_menu_item, fill_menu, dispose_menus):
10424 Move functions to mactoolbox.c.
10425 (restore_show_help_function, menu_target_item_handler)
10426 (install_menu_target_item_handler, mac_handle_dialog_event)
10427 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10428 [TARGET_API_MAC_CARBON]: Likewise.
10429 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10430 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10431 (find_and_call_menu_selection, name_is_separator): Make function
10432 non-static.
10433 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10434 to mactoolbox.c.
10435 (set_frame_menubar): Don't call install_menu_quit_handler.
10436 (menu_item_selection): New variable.
10437 (mac_menu_show): Use create_and_show_popup_menu.
10438 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10439 selection but set variable menu_item_selection. All uses changed.
10440 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10441 Call install_menu_quit_handler. Move to mactoolbox.c.
10442
10443 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10444 (Selection): Move typedef to macgui.h.
10445 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10446 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10447 Make variables non-static.
10448 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10449 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10450 Make functions non-static.
10451 (Vmac_service_selection) [MAC_OSX]: Likewise.
10452 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10453 (mac_valid_selection_target_p, mac_clear_selection)
10454 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10455 (mac_put_selection_value, mac_selection_has_target_p)
10456 (mac_get_selection_value, mac_get_selection_target_list)
10457 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10458 Move functions to mactoolbox.c.
10459 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10460 Likewise.
10461 (copy_scrap_flavor_data, mac_handle_service_event)
10462 (install_service_handler) [MAC_OSX]: Likewise.
10463 (syms_of_macselect) <Vmac_dnd_known_types>:
10464 Use mac_dnd_default_known_types.
10465
10466 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10467 Move to mactoolbox.c.
10468 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10469 (Fx_selection_owner_p): Add EXFUN.
10470 (install_window_handler, remove_window_handler, XSetWindowBackground):
10471 Remove externs.
10472 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10473 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10474 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10475 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10476 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10477 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10478 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10479 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10480 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10481 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10482 (mac_valid_selection_target_p, mac_clear_selection)
10483 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10484 (mac_put_selection_value, mac_selection_has_target_p)
10485 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10486 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10487 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10488 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10489 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10490 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10491 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10492 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10493 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10494
10495 * mactoolbox.c: New file.
10496
104972008-04-18 Jason Rumney <jasonr@gnu.org>
10498
10499 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10500
105012008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10502
10503 * character.c (Fmultibyte_char_to_unibyte):
10504 Return latin1 chars unchanged.
10505
10506 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10507 relocated if it points to `name'.
10508
105092008-04-17 Kenichi Handa <handa@m17n.org>
10510
10511 * data.c (Faset): Allow setting a multibyte character in an
10512 ASCII-only unibyte string.
10513
10514 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10515
105162008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10517
10518 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10519 done in config.h.
10520
105212008-04-16 Juanma Barranquero <lekktu@gmail.com>
10522
10523 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10524 (Fchar_direction): Add usage in the docstring.
10525
105262008-04-15 Chong Yidong <cyd@stupidchicken.com>
10527
10528 * keyboard.c (read_key_sequence): Remove always-true checks.
10529
105302008-04-14 Jason Rumney <jasonr@gnu.org>
10531
10532 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10533 compatibility struct, for better underline positioning.
10534
105352008-04-13 David Hansen <david.hansen@gmx.net>
10536
10537 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10538 string.
10539
105402008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10541
10542 * m/hp800.h (XUINT, XSET): Remove.
10543
105442008-04-12 Juanma Barranquero <lekktu@gmail.com>
10545
10546 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10547 previous change.
10548
105492008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10550
10551 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10552 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10553
105542008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10555
10556 * keymap.h (map_keymap_canonical): Declare.
10557 * xmenu.c (single_keymap_panes): Use it.
10558
105592008-04-11 Glenn Morris <rgm@gnu.org>
10560
10561 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10562 set the target's value to that of the alias.
10563
105642008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10565
10566 * term.c (set_tty_color_mode): Left over typo.
10567
105682008-04-10 Michael Albinus <michael.albinus@gmx.de>
10569
10570 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10571 only after check for file name handler functions. Signal, when
10572 native functionality is not supported.
10573 (syms_of_fileio): Declare it unconditionally.
10574
105752008-04-10 Jason Rumney <jasonr@gnu.org>
10576
10577 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10578 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10579
10580 * w32.c (logon_network_drive): Also logon to remote drives that
10581 are mapped to drive letters.
10582
105832008-04-10 Glenn Morris <rgm@gnu.org>
10584
10585 * xdisp.c (truncate-partial-width-windows): Doc fix.
10586
105872008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10588
10589 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10590 Move functions to minibuffer.el.
10591 (syms_of_fileio): Don't declare them.
10592
105932008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10594
10595 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10596 (syms_of_minibuf): Remove its initialization.
10597
10598 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10599
106002008-04-09 Juanma Barranquero <lekktu@gmail.com>
10601
10602 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10603
106042008-04-09 Jason Rumney <jasonr@gnu.org>
10605
10606 * makefile.w32-in (distclean): Delete makefile too.
10607 (maintainer-clean): New target.
10608
10609 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10610
10611 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10612 for new font backend and composite cases.
10613
106142008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10615
10616 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10617 Most of the code moved to run_timers.
10618 (do_pending_atimers): Call run_timers.
10619 (run_timers): New function.
10620
10621 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10622 run atimers.
10623
10624 * process.c (wait_reading_process_output): The same as above.
10625
106262008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10627
10628 * minibuf.c (last_exact_completion): Remove variable.
10629 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10630 (complete_and_exit_1, complete_and_exit_2)
10631 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10632 (Fdisplay_completion_list, display_completion_list_1)
10633 (Fminibuffer_completion_help, Fself_insert_and_exit)
10634 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10635 minibuffer.el.
10636 (syms_of_minibuf): Remove corresponding initializations.
10637
10638 * keyboard.c (Qdeactivate_mark): New var.
10639 (command_loop_1): Use it to call `deactivate-mark'.
10640 (syms_of_keyboard): Initialize it.
10641
10642 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10643 to another frame.
10644 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10645 Don't call set_tty_color_mode.
10646 (store_frame_param): Reset previous_frame rather than call
10647 set_tty_color_mode.
10648 * term.c (set_tty_color_mode): Rewrite.
10649 * dispextern.h (set_tty_color_mode): New type.
10650 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10651
106522008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10653
10654 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10655 for generic chars, which do not exist any more in emacs-unicode.
10656
106572008-04-08 Michael Albinus <michael.albinus@gmx.de>
10658
10659 * coding.c (detect_coding_emacs_mule)
10660 (Ffind_operation_coding_system): Fix typo.
10661
106622008-04-08 Jason Rumney <jasonr@gnu.org>
10663
10664 * w32uniscribe.c (SNAME): Extract only symbol name.
10665
10666 * w32font.h (struct w32_metric_cache): New struct.
10667 (w32font_info): Use it.
10668 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10669 (CACHE_BLOCKSIZE): New constants.
10670
10671 * w32font.c (Qja, Qko, Qzh): New symbols.
10672 (syms_of_w32font): Initialise them.
10673 (font_matches_spec): Use them to filter by language.
10674 (recompute_cached_metrics): Remove function.
10675 (compute_metrics, clear_cached_metrics): New functions.
10676 (w32font_encode_char): Use them to manage metric cache.
10677 (w32font_text_extents): Cache metrics for all glyphs on demand.
10678 Delay converting glyph indices to WORD until needed.
10679 (w32font_open_internal): Initialize metric cache to empty.
10680 (registry_to_w32_charset): Charset should always be a symbol.
10681 (fill_in_logfont, list_all_matching_fonts): Family should
10682 always be a symbol.
10683
106842008-04-06 Jason Rumney <jasonr@gnu.org>
10685
10686 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10687 Give up if glyph indices not supported. Use uniscribe obtained
10688 ABC widths for individual metrics. Map glyph clusters back to
10689 characters using fClusterStart flag. Return number of glyphs
10690 produced, not chars processed.
10691 (uniscribe_shape): Map char at FROM to current glyph.
10692
106932008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10694
10695 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10696 Use SetMenuItemHierarchicalMenu.
10697
106982008-04-05 Jason Rumney <jasonr@gnu.org>
10699
10700 * image.c (pbm_load): Allow color values up to 65535.
10701 Throw an error if max_color_idx is outside the supported range.
10702 Report an error when image size is invalid.
10703 Read two bytes at a time when raw images have max_color_idx above 255.
10704
107052008-04-05 Eli Zaretskii <eliz@gnu.org>
10706
10707 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10708 cFileName a file name that includes `?' characters, use the 8+3
10709 alias in cAlternateFileName instead.
10710
107112008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10712
10713 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10714 append "CCL: Quitted" when the CCL program is quitted.
10715 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10716
10717 * ccl.h (struct ccl_program): New member quit_silently.
10718
107192008-04-05 Chong Yidong <cyd@stupidchicken.com>
10720
10721 * search.c (compile_pattern_1): Treat non-nil and non-string of
10722 search-spaces-regexp as nil.
10723
10724 * minibuf.c (Fassoc_string): Tweak docstring.
10725
107262008-04-05 Eli Zaretskii <eliz@gnu.org>
10727
10728 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10729 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10730 2008-03-14 to force inode be positive.
10731
10732 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10733 _S_* ones, since we now use our own sys/stat.h.
10734 (stat, fstat): Don't mangle the inode number.
10735 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10736
107372008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10738
10739 * frame.h (struct frame): Give one more bit to `visible' since we use
10740 values larger than 1 to indicate obscured frames on ttys.
10741
10742 * keymap.c (Qkeymap_canonicalize): New var.
10743 (Fmap_keymap_internal): New fun.
10744 (describe_map): Use keymap-canonicalize.
10745
10746 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10747 (Fundo_boundary): Set them.
10748 (syms_of_undo): Initialize them.
10749 (record_point): Use them instead of last_point_position*.
10750 (last_undo_buffer): Change type.
10751
107522008-04-04 Jason Rumney <jasonr@gnu.org>
10753
10754 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10755 (recompute_cached_metrics): Don't set ascent and descent per char.
10756
10757 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10758 (uniscribe_check_otf): Add GC protection before consing.
10759 Rearrange loop for counting features.
10760
107612008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10762
10763 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10764 buffer with byte-size of source buffer.
10765
107662008-04-03 Chong Yidong <cyd@stupidchicken.com>
10767
10768 * callint.c (Fcall_interactively): Handle temporary region even
10769 when shift-select-mode is off.
10770
107712008-04-03 Jason Rumney <jasonr@gnu.org>
10772
10773 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10774
107752008-04-03 Kenichi Handa <handa@m17n.org>
10776
10777 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10778 (CATEGORY_MASK_UTF_16): Likewise.
10779 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10780 binary file.
10781 (detect_coding): Add null-byte detection for a binary file.
10782 (detect_coding_system): Likewise.
10783
107842008-04-03 Jason Rumney <jasonr@gnu.org>
10785
10786 * w32uniscribe.c: New file.
10787
10788 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10789
10790 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10791
10792 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10793 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10794 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10795 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10796 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10797 (Qphonetic): New symbols.
10798 (syms_of_w32font): Initialize them.
10799 (font_supported_scripts): Use them.
10800 (w32font_list_family): List all charsets.
10801 (w32font_text_extents, recompute_cached_metrics): Fix metric
10802 calculations.
10803 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10804 Give opentype fonts their own format.
10805 (font_matches_spec): New arguments backend and logfont.
10806 Handle :otf spec for uniscribe backend.
10807 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10808 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10809
10810 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10811 font backend.
10812 (globals_of_w32fns): Initialize uniscribe font backend.
10813
10814 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10815 dependencies.
10816 (w32uniscribe.$(O)): New file to build.
10817 (FONT_OBJ): Include w32uniscribe.$(O).
10818 (LIBS): Add uniscribe libraries.
10819
10820 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10821
108222008-04-02 Chong Yidong <cyd@stupidchicken.com>
10823
10824 * callint.c (Vshift_select_mode): New var.
10825 (Finteractive): Document new ^ spec.
10826 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10827 is present.
10828
10829 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10830 (command_loop_1): Avoid running the direct display versions of
10831 forward-char and backward-char if shift-selection may occur.
10832 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10833 shift-translation takes place.
10834
10835 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10836 avoid clobbering by define-minor-mode.
10837
10838 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10839 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10840
10841 * syntax.c (Fforward_word): Add ^ interactive spec.
10842
10843 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10844 (Fscroll_right): Add ^ interactive spec.
10845
108462008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10847
10848 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10849
10850 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10851
10852 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10853
108542008-03-31 Juri Linkov <juri@jurta.org>
10855
10856 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10857
108582008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10859
10860 * gtkutil.c (xg_set_geometry): Fix indentation.
10861 (xg_resize_outer_widget): Remove.
10862 (x_wm_size_hint_off): Fix indentation.
10863 (xg_frame_set_char_size): Call flush_and_sync after
10864 gtk_window_resize.
10865 (x_wm_set_size_hint): Pass NULL as geometry window to
10866 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10867 Add menu bar and tool bar height to base height.
10868 (xg_update_frame_menubar, free_frame_menubar)
10869 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10870 (update_frame_tool_bar, free_frame_tool_bar):
10871 Change xg_resize_outer_widget to xg_frame_set_char_size.
10872
108732008-03-30 Michael Albinus <michael.albinus@gmx.de>
10874
10875 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10876 (Fdbus_call_method): New parameter TIMEOUT.
10877 (dbus-send-signal): Optimize UNGCPRO call.
10878
108792008-03-29 Juri Linkov <juri@jurta.org>
10880
10881 * window.c (Fdisplay_buffer): Move call to
10882 Vsplit_window_preferred_function out of conditions that check
10883 if window is eligible for vertical splitting.
10884 When Vsplit_window_preferred_function is non-nil, call it and use
10885 its non-nil return value as window. Otherwise, continue doing
10886 vertical splitting using Fsplit_window with arg horflag=nil.
10887 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10888 default value from `split-window' to nil.
10889
108902008-03-29 Juri Linkov <juri@jurta.org>
10891
10892 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10893 for interactive code letters 'b' and 'B'.
10894
108952008-03-29 Eli Zaretskii <eliz@gnu.org>
10896
10897 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10898 multibyte string.
10899
109002008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10901
10902 * keyboard.c (pending_funcalls): New var.
10903 (timer_check): Run it.
10904 (syms_of_keyboard): Initialize it.
10905 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10906 (Vdelete_terminal_functions): New vars.
10907 (syms_of_terminal): Initialize them.
10908 (Fdelete_terminal): Run delete-terminal-functions.
10909 * xdisp.c (safe_eval): Rewrite.
10910 (safe_call2): New fun.
10911 * frame.c (Qdelete_frame_functions): New var.
10912 (syms_of_frame): Initialize it.
10913 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10914 * lisp.h (safe_call2, pending_funcalls): Declare.
10915
109162008-03-28 Andreas Schwab <schwab@suse.de>
10917
10918 * indent.c (Fmove_to_column): Move declaration before statements.
10919
109202008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10921
10922 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10923 (struct frame): Use bit fields for boolean vars.
10924
10925 * process.c (server_accept_connection): Simplify naming.
10926 (emacs_get_tty_pgrp): Use SDATA.
10927
10928 * coding.c (decode_coding_object): Fix last change.
10929
109302008-03-27 Jason Rumney <jasonr@gnu.org>
10931
10932 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10933
109342008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10935
10936 * charset.c (Fdefine_charset_internal): Change the way of
10937 registering charsets in Vcharset_order_list.
10938 (syms_of_charset): Make the charset `eight-bit' supplementary.
10939
109402008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10941
10942 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10943 operations, to avoid having the difference between pointers
10944 overflow.
10945
109462008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10947
10948 * indent.c (check_display_width): New fun.
10949 (scan_for_column): Use it.
10950
10951 * data.c (syms_of_data): Mark most-positive-fixnum and
10952 most-negative-fixnum as constants.
10953
10954 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10955
10956 * indent.c (scan_for_column): Extract from current_column_1.
10957 Merge with the same code from Fmove_to_column.
10958 (current_column_1, Fmove_to_column): Use it.
10959
109602008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10961
10962 * keymap.c (map_keymap_internal): New fun.
10963 (map_keymap): Use it.
10964 (Fmap_keymap_internal): New fun.
10965 (Fmap_keymap): Remove left-out test from before make_save_value.
10966
10967 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10968
10969 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10970 Use XCAR/XCDR.
10971
10972 * process.h (struct Lisp_Process): Remove filter_multibyte.
10973 * process.c (QCfilter_multibyte): Remove.
10974 (setup_process_coding_systems): Don't use filter_multibyte.
10975 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10976 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10977 (Fset_process_filter_multibyte): Change the coding-system to
10978 approximate the previous behavior.
10979 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10980 coding-system.
10981
10982 * coding.c (decode_coding_object): When not decoding into a buffer,
10983 obey the coding system's preference of (uni|multi)byte.
10984
109852008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10986
10987 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10988 every char is changed and has a different byte-length.
10989 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10990 Fix int -> EMACS_INT.
10991
109922008-03-23 David Hansen <david.hansen@gmx.net>
10993
10994 * dbusbind.c (xd_read_message): Remove extra copying of message
10995 strings. Check for NULL `interface' or `member'.
10996
109972008-03-22 Eli Zaretskii <eliz@gnu.org>
10998
10999 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11000 cFileName a file name that includes `?' characters, use the 8+3
11001 alias in cAlternateFileName instead.
11002
110032008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11004
11005 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11006
110072008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11008
11009 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11010 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11011 work on current_buffer only instead (that was already the case
11012 for some of the code anyway).
11013 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11014 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11015 (SET_PT, SET_PT_BOTH): Adjust.
11016 * intervals.h (set_point, temp_set_point, set_point_both)
11017 (temp_set_point_both): Remove redundant declarations.
11018
110192008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11020
11021 * fileio.c (Finsert_file_contents):
11022 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11023 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11024 when buffer != current_buffer anyway.
11025
110262008-03-20 Andreas Schwab <schwab@suse.de>
11027
11028 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11029 as default.
11030
110312008-03-19 Jason Rumney <jasonr@gnu.org>
11032
11033 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11034 (syms_of_w32fns): Initialize them.
11035 (HOURGLASS_ID): New constant.
11036 (x_window_to_frame): Don't check hourglass_window.
11037 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11038 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11039 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11040 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11041 Only change the cursor if hourglass is not active.
11042 (Fx_create_frame): Initialize frame's current_cursor.
11043 (hourglass_atimer): Remove.
11044 (hourglass_started): New function.
11045 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11046 (show_hourglass): Adapt to w32, changing argument to frame.
11047
11048 * w32term.h (struct w32_output): Remove hourglass_window.
11049 Add current_cursor.
11050
11051 * eval.c (call_debugger, Fsignal):
11052 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11053 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11054 (Fexecute_extended_command, cancel_hourglass_unwind):
11055 * minibuf.c (read_minibuf):
11056 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11057
110582008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11059
11060 * window.c (run_funs): New fun.
11061 (run_window_configuration_change_hook): Use it to run the buffer-local
11062 and the global part of the hook.
11063
11064 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11065 (unwind_format_mode_line): Restore selected window.
11066 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11067
110682008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11069
11070 * editfns.c (Fchar_equal): Check they are valid characters.
11071
11072 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11073
110742008-03-17 Andreas Schwab <schwab@suse.de>
11075
11076 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11077 against a charset.
11078
11079 * lisp.h (Fbuffer_list): Declare.
11080
110812008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11082
aac0c6e3
MR
11083 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11084 handlebox_widget is != 0.
11085
110862008-03-16 Juri Linkov <juri@jurta.org>
11087
11088 * callint.c (Fcall_interactively): For interactive code letters
11089 'b' and 'B' put the buffer list into the list of default "future"
11090 values of the minibuffer.
11091
110922008-03-16 Andreas Schwab <schwab@suse.de>
11093
11094 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11095 modifiers.
11096
11097 * regex.c (re_match_2_internal): Correct matching of a charset
11098 against latin-1 characters.
11099
111002008-03-16 Kenichi Handa <handa@m17n.org>
11101
11102 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11103 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11104 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11105 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11106 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11107 CHAR_STRING_ADVANCE.
11108 (produce_chars): Fix for the case that the source and the
11109 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11110 instead of CHAR_STRING_ADVANCE.
11111 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11112 STRING_CHAR_ADVANCE.
11113
111142008-03-15 Andreas Schwab <schwab@suse.de>
11115
11116 * regex.c (re_match_2_internal): Correct matching of eight bit
11117 characters in unibyte strings.
11118
111192008-03-15 Martin Rudalics <rudalics@gmx.at>
11120
11121 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11122 at end of range when it coincides with the end of the buffer.
11123
111242008-03-14 Eli Zaretskii <eliz@gnu.org>
11125
11126 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11127
11128 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11129
111302008-03-14 Jason Rumney <jasonr@gnu.org>
11131
11132 * editfns.c (initial_tz): New variable.
11133 (syms_of_editfns): Initialize it.
11134 (Fset_time_zone_rule): Set it when first called.
11135 Use it when TZSTRING is nil.
11136
11137 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11138 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11139 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11140 (globals_of_w32fns): Initialize them.
11141 (compute_tip_xy): Use them to position tooltips.
11142
111432008-03-14 Glenn Morris <rgm@gnu.org>
11144
11145 * emacs.c (main): Revert previous change.
11146 (standard_args): Revert -internal-script back to -scriptload,
11147 and remove the long-option form.
11148
111492008-03-13 Glenn Morris <rgm@gnu.org>
11150
11151 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11152 Remove option -enable-font-backend.
11153
111542008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11155
11156 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11157
111582008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11159
11160 * xterm.c (x_connection_closed): For GTK: If this is the last
11161 terminal just exit without closing the display.
11162
111632008-03-11 Jason Rumney <jasonr@gnu.org>
11164
11165 * w32font.c (w32font_full_name): Use floor to round.
11166
f0131492 111672008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11168
11169 * sound.c (alsa_configure): Declare vol at beginning of block.
11170
11171 * fontset.c (Ffontset_info): Remove extra semicolon.
11172
111732008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11174
11175 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11176 size of resulting string.
11177
111782008-03-10 Jason Rumney <jasonr@gnu.org>
11179
11180 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11181
111822008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11183
11184 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11185 Don't pretend as if characters with display property haven't been
11186 consumed for string-replacing-string case.
11187
111882008-03-08 Kim F. Storm <storm@cua.dk>
11189
11190 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11191 (get_next_display_element, next_element_from_string)
11192 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11193
111942008-03-08 Andreas Schwab <schwab@suse.de>
11195
11196 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11197
111982008-03-06 Jason Rumney <jasonr@gnu.org>
11199
11200 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11201 when charset not specified. Only translate ANSI to unicode when
11202 font_type is truetype.
11203 (w32font_coverage_ok): New function.
11204 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11205
112062008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11207
11208 * lread.c (Fread_char): Resolve modifiers.
11209 (Fread_char_exclusive): Likewise.
11210
11211 * character.c (char_resolve_modifier_mask): New function.
11212 (char_string): Use char_resolve_modifier_mask.
11213 (Fchar_resolve_modifiers): New function.
11214 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11215 function.
11216
112172008-03-04 Jason Rumney <jasonr@gnu.org>
11218
11219 * makefile.w32-in: Always include w32font.c in the build.
11220 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11221
112222008-03-04 Andreas Schwab <schwab@suse.de>
11223
11224 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11225 (versionclean): Likewise.
11226
112272008-03-04 Juanma Barranquero <lekktu@gmail.com>
11228
11229 * .cvsignore: Add oo.
11230
112312008-03-03 Andreas Schwab <schwab@suse.de>
11232
11233 * coding.c (decode_coding_object): Inhibit gap shrinking while
11234 decoding in place.
11235
112362008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11237
11238 * w32term.c: Remove unused include "gnu.h".
11239 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11240
11241 * gnu.h: Rename to ...
11242 * emacs-icon.h: ... this.
11243 * xterm.c: Use emacs-icon.h instead of gnu.h.
11244 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11245
112462008-03-03 Juanma Barranquero <lekktu@gmail.com>
11247
11248 * w32font.c: Include math.h.
11249
112502008-03-03 Jason Rumney <jasonr@gnu.org>
11251
11252 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11253 Compute options separately.
11254 (w32font_open_internal): Set glyph_idx before caching metrics.
11255
11256 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11257 Define if system headers don't.
11258 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11259 (w32font_encode_char): Don't declare here.
11260
11261 * w32font.c (Quniscribe, QCformat): New symbols.
11262 (syms_of_w32font): Define them.
11263 (w32font_has_char): Indicate uncertainty.
11264 (w32font_encode_char): Encode as glyph point. Make static.
11265 (recompute_cached_metrics): New function.
11266 (w32font_open_internal): Use it. Set font to use glyph points
11267 initially. Set format based on type of font.
11268 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11269 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11270 on it. Set format based on information available here.
11271 (add_font_entity_to_list): Identify backend based on opentype_only.
11272
112732008-03-02 Andreas Schwab <schwab@suse.de>
11274
11275 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11276
11277 * coding.c (decode_coding_big5, produce_chars):
11278 Fix typos in last change.
11279
112802008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11281
11282 * gnu.h: New icon.
11283
112842008-03-02 Kenichi Handa <handa@m17n.org>
11285
11286 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11287 `dos', don't decode '\r' if that is the last in the source.
11288 (decode_coding_utf_16, decode_coding_emacs_mule)
11289 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11290 (decode_coding_raw_text, decode_coding_charset): Likewise.
11291 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11292
112932008-03-01 Jason Rumney <jasonr@gnu.org>
11294
11295 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11296
112972008-03-01 Kim F. Storm <storm@cua.dk>
11298
11299 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11300
113012008-03-01 Jason Rumney <jasonr@gnu.org>
11302
11303 * w32font.c (w32font_full_name): New function.
11304 (w32font_open_internal): Use it.
11305
113062008-03-01 Kim F. Storm <storm@cua.dk>
11307
11308 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11309
113102008-03-01 Jason Rumney <jasonr@gnu.org>
11311
11312 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11313
113142008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11315
11316 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11317 xg_frame_resized when the event is for the edit widget.
11318
11319 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11320
11321 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11322 set_char_size.
11323 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11324 operations on widgets here. Just set frame size if needed.
11325 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11326 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11327 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11328 the whole frame.
11329 (xg_create_tool_bar): Move attachment of the tool bar to
11330 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11331 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11332
113332008-03-01 Jason Rumney <jasonr@gnu.org>
11334
11335 * w32fns.c (w32_msg_pump): Disable debug code.
11336
113372008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11338
11339 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11340
113412008-02-29 Chong Yidong <cyd@stupidchicken.com>
11342
11343 * xdisp.c (next_overlay_string): Don't set
11344 overlay_strings_at_end_processed_p if we're currently reading from
11345 a display string.
11346
113472008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11348
11349 * xdisp.c (get_overlay_strings_1): Fix typo.
11350
113512008-02-29 Chong Yidong <cyd@stupidchicken.com>
11352
11353 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11354
113552008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11356
11357 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11358
11359 * xdisp.c (display_mode_element): Cancel the previous change.
11360 (decode_mode_spec): Likewise.
11361 (handle_auto_composed_prop): Don't make composition if it->string
11362 is a string.
11363
113642008-02-27 Kim F. Storm <storm@cua.dk>
11365
11366 * lisp.h (GLYPH): Change type from int to struct with separate char
11367 and face_id members.
11368 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11369 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11370 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11371 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11372 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11373 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11374 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11375 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11376 handle new Lisp glyph code encoding, either an integer or a cons.
11377
11378 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11379 (GLYPH_ALIAS): Delete.
11380 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11381 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11382 (GLYPH_FROM_CHAR): Replace macro by ...
11383 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11384
11385 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11386 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11387 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11388 (GLYPH_INVALID_P): New macro.
11389 (spec_glyph_lookup_face): Update prototype.
11390
11391 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11392 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11393 new glyph code encoding.
11394 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11395 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11396
11397 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11398 Adapt to new glyph type and new glyph code encoding.
11399
11400 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11401
11402 * indent.c (current_column, current_column_1, Fmove_to_column)
11403 (compute_motion): Adapt to new glyph code encoding.
11404
11405 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11406
114072008-02-27 Chong Yidong <cyd@stupidchicken.com>
11408
11409 * process.c (wait_reading_process_output): Check for window
11410 changes caused by timers.
11411 Suggested by Johan Bockgård.
11412
114132008-02-27 Glenn Morris <rgm@gnu.org>
11414
11415 * emacs.c (USAGE1): Add `--disable-font-backend'.
11416
114172008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11418
11419 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11420 is made to the buffer.
11421
114222008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11423
11424 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11425 (face_at_string_position):
11426 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11427 (face_at_string_position):
11428 * xdisp.c (display_string, next_overlay_change):
11429 * buffer.h (overlays_at):
11430 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11431 Update callers.
11432
114332008-02-26 Chong Yidong <cyd@stupidchicken.com>
11434
11435 * editfns.c (Fformat): Doc fix.
11436
114372008-02-26 Juanma Barranquero <lekktu@gmail.com>
11438
11439 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11440 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11441 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11442
114432008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11444
11445 * buffer.c (Fbuffer_swap_text): New function.
11446 (syms_of_buffer): Defsubr it.
11447
114482008-02-25 Chong Yidong <cyd@stupidchicken.com>
11449
11450 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11451
114522008-02-25 Jason Rumney <jasonr@gnu.org>
11453
11454 * w32font.c (w32font_draw): Draw one character at a time when padding.
11455
114562008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11457
11458 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11459 Handle a nil arg. Use run_window_configuration_change_hook.
11460 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11461 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11462 Use run_window_configuration_change_hook.
11463
114642008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11465
11466 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11467 1-pixel width.
11468
114692008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11470
11471 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11472 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11473 if the glyph in the font is zero pixel with.
11474
11475 * dispextern.h (struct glyph_string): New member padding_p.
11476
11477 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11478
11479 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11480
11481 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11482
11483 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11484
11485 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11486
114872008-02-25 Jason Rumney <jasonr@gnu.org>
11488
11489 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11490
114912008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11492
11493 Allow fine-grained image-cache flushing.
11494 * dispextern.h (struct image): Add `dependencies' field.
11495 (clear_image_caches): Change arg to Lisp_Object.
11496 * image.c (make_image): Initialize `dependencies' field.
11497 (clear_image_cache): Change arg to allow fine-grained flushing.
11498 Perform the flush even if image-cache-eviction-delay is nil.
11499 (clear_image_caches): Change arg to Lisp_Object.
11500 (Fclear_image_cache): Expand meaning of the argument.
11501 (mark_image): Mark `dependencies' field.
11502 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11503 (lface_hash): Use XHASH rather than XFASTINT.
11504 (face_at_buffer_position): Fix int -> EMACS_INT position.
11505 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11506 (select_frame_for_redisplay): Remove code duplication.
11507 (redisplay_internal): Adapt arg to call to clear_image_caches.
11508
115092008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11510
11511 * s/vms4-0.h:
11512 * s/vms4-2.h:
11513 * s/vms4-4.h:
11514 * s/vms5-5.h: Remove, unused.
11515
11516 * s/irix5-2.h:
11517 * s/irix6-0.h:
11518 * s/riscos5.h:
11519 * s/mach-bsd4-3.h:
11520 * m/mips4.h: Remove files for obsolete systems.
11521
11522 * Makefile.in:
11523 * filelock.c:
11524 * unexmips.c:
11525 * m/hp9000s300.h:
11526 * m/iris4d.h:
11527 * s/aix3-1.h:
11528 * s/hpux.h:
11529 * s/msdos.h:
11530 * s/usg5-0.h:
11531 * s/usg5-2-2.h:
11532 * s/usg5-2.h:
11533 * s/usg5-3.h: Remove references to obsolete variables.
11534
11535 * s/irix5-0.h: Remove, move all the contents ...
11536 * s/irix6-5.h: ... here. Simplify.
11537 * config.in: Regenerate.
11538
115392008-02-24 Jason Rumney <jasonr@gnu.org>
11540
11541 * w32term.c (x_draw_glyph_string_background): Clear the background
11542 manually when cleartype is in use.
11543 (x_draw_glyph_string_foreground): Draw text transparently when
11544 cleartype is in use.
11545
11546 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11547 a font into it unless we have to.
11548
115492008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11550
11551 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11552 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11553
aac0c6e3
MR
115542008-02-18 Jason Rumney <jasonr@gnu.org>
11555
11556 * w32fns.c (Fw32_shell_execute): Encode parameters.
11557
115582008-02-09 Eli Zaretskii <eliz@gnu.org>
11559
11560 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11561
115622008-02-05 Juanma Barranquero <lekktu@gmail.com>
11563
11564 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11565
115662008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11567
11568 * xterm.c (x_set_offset): Don't change the gravity if
11569 CHANGE_GRAVITY is -1.
11570
115712008-02-23 Chong Yidong <cyd@stupidchicken.com>
11572
11573 * fileio.c (auto_save_error_occurred): New var.
11574 (auto_save_error): Set it.
11575 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11576 error occurred.
11577
115782008-02-23 Eli Zaretskii <eliz@gnu.org>
11579
11580 * w32.c (globals_of_w32): Add initializations for
11581 g_b_init_get_sid_sub_authority and
11582 g_b_init_get_sid_sub_authority_count.
11583
115842008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11585
11586 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11587 (font_parse_xlfd): Use them for sanity check.
11588 (Finternal_set_font_style_table): Make sure the table is bijective.
11589
11590 Consolidate the image_cache to the terminal struct.
11591 * termhooks.h (P_): Remove redundant def.
11592 (struct terminal): New field `image_cache'.
11593 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11594 of FRAME_X_IMAGE_CACHE.
11595 * xterm.h (struct x_display_info): Remove image_cache field.
11596 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11597 * w32term.h (struct w32_display_info): Remove image_cache field.
11598 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11599 * macterm.h (struct mac_display_info): Remove image_cache field.
11600 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11601 * xterm.c (x_term_init):
11602 * w32term.c (w32_term_init):
11603 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11604 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11605 Remove declarations.
11606 (clear_image_caches, mark_image_cache): New declarations.
11607 * xfaces.c (clear_face_cache):
11608 * xdisp.c (redisplay_internal): Use clear_image_caches.
11609 * image.c (clear_image_cache): Don't check that a frame is on
11610 a window-system before checking if it shares the same cache.
11611 (clear_image_caches): New function.
11612 (Fclear_image_cache): Use it.
11613 (mark_image): Move from allo.c.
11614 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11615 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11616 (mark_object): Don't call mark_image_cache for frames.
11617 (mark_terminals): Call mark_image_cache.
11618
11619 * lisp.h (Fdelete_terminal): Declare.
11620
11621 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11622 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11623 wrong_type_argument.
11624
116252008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11626
11627 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11628 malayalam.el, and tamil.el. Add sinhala.el.
11629
116302008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11631
11632 * xterm.c (x_connection_closed): Consolidate identical tests.
11633 (x_delete_terminal): Don't crash if called via x_connection_closed.
11634
116352008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11636
11637 * xdisp.c (decode_mode_spec): New arg string.
11638 (display_mode_element): Adjust for the above change.
11639
116402008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11641
11642 * callint.c (Fcall_interactively): Use AREF.
11643
116442008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11645
11646 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11647
116482008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11649
11650 * xfns.c (Fx_show_tip): Set string to " " if empty.
11651
116522008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11653
11654 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11655 with Qt.
11656
116572008-02-17 Kenichi Handa <handa@m17n.org>
11658
11659 * ftfont.c (ftfont_shape): Return Lispy number.
11660
11661 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11662 for GCs.
11663 (Finternal_set_font_selection_order): Call font_update_sort_order
11664 only when enable_font_backend is set.
11665 (realize_x_face): Set face->font_info to that of default face only
11666 when enable_font_backend is set.
11667
11668 * xdisp.c (handle_composition_prop): Set it->c to the fist
11669 character of the composed region.
11670 (fill_composite_glyph_string): Set base_face->font_info to
11671 s->font_info. Get a face for ascii from base_face->ascii_face.
11672 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11673 with a face already decided.
11674 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11675 non-negative.
11676 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11677 call font_prepare_composition unconditionally.
11678
11679 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11680
11681 * xterm.h (struct x_display_info): New member font.
11682
11683 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11684 (x_set_mouse_face_gc, x_new_font): Likewise.
11685 (x_term_init): Setup display_info->font.
11686 (x_delete_terminal): Free display_info->font.
11687
11688 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11689
11690 * ftxfont.c (ftxfont_default_fid): Delete it.
11691 (ftxfont_open): Set xfont->fid to 0.
11692 (ftxfont_end_for_frame): Clear data specific to the frame and the
11693 font-driver.
11694
11695 * xftfont.c (xftfont_default_fid): Delete it.
11696 (xftfont_open): Set xfont->fid to 0.
11697
11698 * fontset.c (FONTSET_OBJLIST): New macro.
11699 (fontset_find_font): Update font-object list of the fontset.
11700 (free_realized_fontset): New function.
11701 (free_face_fontset): Call free_realized_fontset.
11702 (Ffont_info): Call font_close_object only when enable_font_backend
11703 is set.
11704
11705 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11706 [HAVE_NTGUI]: Include w32term.h.
11707 [MAC_OS]: Include macterm.ch.
11708 (font_otf_ValueRecord): Use make_number.
11709 (font_finish_cache): Fix handling of reference count.
11710 (font_clear_cache): Update num_fonts.
11711 (font_open_entity): Update smallest_char_width and
11712 smallest_font_height of the frame.
11713 (font_close_object): Update num_fonts.
11714 (Fclear_font_cache): Fix finding the target cache data.
11715
117162008-02-16 Glenn Morris <rgm@gnu.org>
11717
11718 * fontset.c (Finternal_char_font): Fix compilation warning.
11719
117202008-02-16 Eli Zaretskii <eliz@gnu.org>
11721
11722 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11723 instead of char arrays. Enlarge the size of array passed to
11724 get_token_information.
11725
11726 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11727 warnings.
11728
117292008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11730
11731 * .gdbinit: Don't set `args', it breaks gdb --args.
11732
117332008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11734
11735 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11736 within a narrowed buffer.
11737
117382008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11739
11740 * coding.c (decode_coding_object, encode_coding_object):
11741 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11742
117432008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11746 hardcoding 1.
11747 (detect_coding_system):
11748 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11749 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11750 * insdel.c (insert_from_gap):
11751 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11752 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11753 (string_to_multibyte):
11754 * character.c (chars_in_text, multibyte_chars_in_text):
11755 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11756
11757 * character.h (FETCH_STRING_CHAR_ADVANCE)
11758 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11759 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11760 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11761
11762 * casefiddle.c (casify_region): Only call after-change and composition
11763 functions on the part of the region that was changed.
11764
11765 * keyboard.c (read_avail_input):
11766 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11767
117682008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11769
11770 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11771 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11772
117732008-02-11 Juanma Barranquero <lekktu@gmail.com>
11774
11775 * w32menu.c (push_submenu_start, push_submenu_end)
11776 (push_left_right_boundary, push_menu_pane, push_menu_item):
11777 * keyboard.c (read_key_sequence): Don't pass args with side effects
11778 to AREF, it fails when compiling with -DENABLE_CHECKING.
11779
117802008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11781
11782 * Makefile.in (${lispsource}international/charprop.el):
11783 Delete this target.
11784
11785 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11786 emacs-unicode-2.
11787
117882008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11789
11790 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11791
117922008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11793
11794 * frame.c (Qnoelisp): New symbol.
11795 (syms_of_frame): Initialize it.
11796 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11797 harmless Elisp code, from a strong `force' from x_connection_closed.
11798 * frame.h (Qnoelisp): Declare.
11799 * xterm.c (x_connection_closed): Pass `noelisp'.
11800
11801 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11802 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11803 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11804 rather than `int' for the type of `type'.
11805
118062008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11807
11808 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11809
11810 * Makefile.in (GNUC): Remove support for gcc-1.x.
11811
118122008-02-10 Richard Stallman <rms@gnu.org>
11813
11814 * lisp.h (ASET): Use AREF, not ASLOT.
11815
118162008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11817
11818 * lisp.h (ASET): Check bounds.
11819
118202008-02-10 Glenn Morris <rgm@gnu.org>
11821
11822 * buffer.c (mode-name): Doc fix.
11823
118242008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11825
11826 * Makefile.in:
11827 * emacs.c:
11828 * gmalloc.c:
11829 * keyboard.c:
11830 * lisp.h:
11831 * m/ibm370aix.h:
11832 * process.c:
11833 * regex.c:
11834 * s/hpux.h:
11835 * sysdep.c:
11836 * sysselect.h:
11837 * systty.h:
11838 * unexec.c:
11839 * w32term.c:
11840 * xsmfns.c:
11841 * xterm.c: Remove code that deals with obsolete variables.
11842
11843 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11844
11845 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11846 nothing else needs it anymore.
11847
118482008-02-09 Eli Zaretskii <eliz@gnu.org>
11849
11850 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11851 instead of unibyte_char_to_multibyte.
11852
118532008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11854
11855 * s/gnu-linux.h: Remove commented out code.
11856
11857 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11858
11859 * Makefile.in: Update what RMS says about using autoconf.
11860 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11861 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11862 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11863 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11864
118652008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11866
11867 * keymap.c (Fkey_description): Move side effect outside of macro call.
11868
11869 * xfaces.c (Finternal_make_lisp_face):
11870 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11871
11872 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11873 (syms_of_fontset): Use ASET.
11874
11875 * fns.c (concat): Move side effect outside of macro call.
11876 (hash_clear): Use ASET.
11877
118782008-02-08 Richard Stallman <rms@gnu.org>
11879
11880 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11881 If FORCE, and frame has a surrogate minibuffer for another frame,
11882 delete the other frame first.
11883
118842008-02-07 Timo Savola <timo.savola@iki.fi>
11885
11886 * xterm.c (x_detect_focus_change): Handle embed client message.
11887 (handle_one_xevent): Ditto.
11888 (handle_one_xevent): If embedded and we get a button press/release,
11889 request focus.
11890 (xembed_set_info, xembed_send_message): New functions.
11891 (x_make_frame_visible): Call xembed_set_info if embedded.
11892 (x_make_frame_invisible): Call xembed_set_info if embedded.
11893 (x_term_init): Initialize Xatom_XEMBED.
11894 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11895 (x_iconify_frame): Ditto.
11896
11897 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11898 (enum xembed_info, enum xembed_message, enum xembed_focus)
11899 (enum xembed_modifier, enum xembed_accelerator): New.
11900 (xembed_set_info, xembed_send_message): Declare.
11901 (FRAME_X_EMBEDDED_P): New.
11902
11903 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11904 gtk_plug_new.
11905
11906 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11907 window ID of a frame.
11908 (x_window): Reparent frame if embedded.
11909 (Fx_create_frame): Don't set border width if embedded.
11910
11911 * emacs.c (USAGE3): Add --parent-id.
11912 (standard_args): Ditto.
11913
119142008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11915
11916 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11917
119182008-02-07 Jim Meyering <meyering@redhat.com>
11919
11920 Use "do...while (0)", not "if (1)...else" in macro definitions.
11921 The latter provokes a warning from gcc about the empty else, when
11922 followed by ";". Also, without that trailing semicolon, it would
11923 silently swallow up any following statement.
11924 * syntax.h (SETUP_SYNTAX_TABLE)
11925 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11926 * buffer.h (DECODE_POSITION): Likewise.
11927 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11928 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11929 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11930 (FETCH_CHAR_ADVANCE): Likewise.
11931 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11932
119332008-02-07 Jim Meyering <meyering@redhat.com>
11934
11935 * lread.c [lint]: Don't include <sys/inode.h>.
11936
119372008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11938
11939 * xselect.c (x_handle_dnd_message):
11940 * xmenu.c (digest_single_submenu, xmenu_show):
11941 * xdisp.c (with_echo_area_buffer_unwind_data)
11942 (format_mode_line_unwind_data, unwind_format_mode_line)
11943 (display_menu_bar):
11944 * eval.c (Ffetch_bytecode):
11945 * doc.c (store_function_docstring):
11946 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11947 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11948 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11949
119502008-02-07 Kenichi Handa <handa@m17n.org>
11951
11952 * ftxfont.c (ftxfont_open): Don't set
11953 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11954
11955 * ftfont.c (ftfont_open): Fix previous change.
11956
119572008-02-06 Jason Rumney <jasonr@gnu.org>
11958
11959 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11960 Use cached metrics for ASCII characters.
11961 (w32font_open_internal): Don't set font's owning_frame.
11962 Cache metrics for ASCII characters.
11963
11964 * w32font.h (struct w32font_info): Add ascii_metrics.
11965 Remove owning_frame.
11966
119672008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11968
11969 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11970 to negative value.
11971
11972 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11973
11974 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11975
11976 * charset.c (syms_of_charset): Set QCtest and Qeq.
11977
119782008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11979
11980 * process.c (Fstart_process):
11981 * callproc.c (Fcall_process): Handle the case where
11982 Funhandled_file_name_directory returns nil.
11983
11984 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11985 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11986 * font.c (check_gstring): Use them and AREF to access the vector before
11987 we know it's really a gstring.
11988 (Ffont_shape_text): Fix typo.
46e722a9 11989 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11990
11991 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11992 Declare.
11993
11994 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11995
119962008-02-05 Jason Rumney <jasonr@gnu.org>
11997
11998 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11999 Set smallest_font_height and smallest_char_width in display info.
12000
120012008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12002
12003 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12004
120052008-02-05 Miles Bader <miles@gnu.org>
12006
12007 * xfaces.c (get_lface_attributes, merge_named_face)
12008 (lookup_named_face, lookup_derived_face, realize_named_face):
12009 Revert 2008-02-01 change by cyd@stupidchicken.com.
12010
120112008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12012
12013 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12014 fallback fonts.
12015 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12016
120172008-02-04 Jason Rumney <jasonr@gnu.org>
12018
12019 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12020 set full_name.
12021 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12022
120232008-02-03 Jason Rumney <jasonr@gnu.org>
12024
12025 * makefile.w32-in (OBJ1): Include font.o here.
12026 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12027
120282008-02-02 Jason Rumney <jasonr@gnu.org>
12029
12030 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12031
120322008-02-01 Jason Rumney <jasonr@gnu.org>
12033
12034 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12035
12036 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12037
120382008-02-01 Andreas Schwab <schwab@suse.de>
12039
12040 * Makefile.in (shortlisp, lisp): Update for rename of
12041 ../lisp/language/myanmar.el.
12042
120432008-02-01 Chong Yidong <cyd@stupidchicken.com>
12044
12045 * xfaces.c (get_lface_attributes): Delete function.
12046 (merge_named_face, lookup_named_face, lookup_derived_face)
12047 (realize_named_face): Call lface_from_face_name directly, and use
12048 the fact that merge_face_vectors does not alter its FROM argument.
12049
120502008-02-01 Jason Rumney <jasonr@gnu.org>
12051
12052 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12053 input in the default locale. Handle non-Unicode multibyte input.
12054
120552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12056
12057 * fontset.c (reorder_font_vector): Exclude nil elements from the
12058 font group. Don't try multiple fonts.
12059 (fontset_font): Adjust for the above change.
12060 (Finternal_char_font): Return nil if the found font doesn't
12061 contain the character ch.
12062
12063 * Makefile.in (lisp, shortlisp): Add cham.el.
12064
120652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12066
12067 * font.h (FONTP): Make it return 1 also for a font-object.
12068
12069 * .gdbinit (xfontset): New function.
12070
12071 * font.c (font_find_for_lface): Check if the character C is
12072 supported or not only for the first font.
12073
12074 * fontset.c (reorder_font_vector): Fix typo.
12075 (fontset_find_font): Don't add a font-spec specifying a script.
12076 Use 0 (not Qt) for the indication of empty font-group. Change the
12077 format of RFONT-DEF. Return Qt if no font in the font-group
12078 support the character.
12079 (fontset_font): Adjust for the above change. If no font was
12080 found the character, remember that.
12081 (face_for_char): Adjust for the change of RFONT-DEF.
12082 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12083 no font for the target.
12084 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12085
120862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12087
12088 * font.c (font_load_for_face): Handle the case that the font in
12089 face->lface is a string.
12090
120912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12092
12093 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12094
120952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12096
12097 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12098 Fix previous change. If the frame is not on a window system,
12099 signal an error.
12100
121012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12102
12103 * coding.c (decode_coding_object, encode_coding_object): Adjust
12104 marker positions after conversion.
12105
12106 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12107
121082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12109
12110 * font.c (font_find_for_lface): Fix the handling of the return
12111 value of font_has_char.
12112 (Ffont_shape_text): Fix previous change.
12113
12114 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12115 (fontset_ref_and_range): Delete it.
12116 (fontset_find_font): Call char_table_ref_and_range instead of
12117 FONTSET_REF_AND_RANGE.
12118 (make_fontset): Don't setup font groups of Latin here.
12119 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12120 (new_fontset_from_font): Make the specified font the default for
12121 all Latin characters.
12122
121232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12124
12125 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12126 is on a window system before accessing the fontset of the frame.
12127
121282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12129
12130 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12131
12132 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12133 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12134
12135 * font.c (Ffont_shape_text): If the font driver doesn't have a
12136 shaper function, make zero-width glyphs to have at least one-pixel
12137 width. Fix setting of `to' field of glyphs.
12138
121392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12140
12141 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12142 glyphs.
12143
12144 * font.h (struct font_driver): Improve docstring of member `shape'.
12145
121462008-02-01 Kenichi Handa <handa@m17n.org>
12147
12148 * composite.c (syms_of_composite): Fix docstring of
12149 auto-composition-function.
12150
12151 * font.h (LGLYPH_SIZE): New macro.
12152
12153 * font.c (Ffont_fill_gstring): Stop filling when a character not
12154 supported by the font is found.
12155 (Ffont_shape_text): When a shape callback function returns nil,
12156 try at most two more times with larger gstring.
12157 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12158
12159 * xdisp.c (handle_auto_composed_prop): Change the argument to
12160 auto-composition-function.
12161
12162 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12163 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12164 Lispy glyph and store it in the lgstring.
12165
12166 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12167
12168 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12169
121702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12171
12172 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12173
12174 * fontset.c (Vfont_encoding_charset_alist): New variable.
12175 (syms_of_fontset): DEFVAR it.
12176 (reorder_font_vector, fontset_find_font): Optimize for the case of
12177 no need of reordering.
12178 (face_for_char): Map the charset property by
12179 Vfont_encoding_charset_alist.
12180
121812008-02-01 Jason Rumney <jasonr@gnu.org>
12182
12183 * w32font.c (logfonts_match): Don't check adstyle here.
12184 (font_matches_spec): Check here against physical font instead.
12185 (add_font_entity_to_list): Avoid some substitutions.
12186
12187 * font.c (font_parse_fcname): Default weight and slant to normal.
12188 (font_score): Prefer normal fonts if weight or slant unspecified.
12189 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12190 match freetype scores.
12191
121922008-02-01 Jason Rumney <jasonr@gnu.org>
12193
12194 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12195 font, as it may have been deleted.
12196 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12197 most common hyphenless variation.
12198 (logfonts_match): Check generic family.
12199 (font_matches_spec): Don't check generic family here.
12200 (fill_in_logfont): Set generic family based on adstyle.
12201
12202 * w32font.h (w32font_get_cache): Update declaration.
12203
122042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12205
12206 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12207
12208 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12209 If none of the new drivers are available, call font_update_drivers
12210 with the old drivers.
12211
12212 * w32font.c (w32font_get_cache): Adjust the argument type.
12213
12214 * xfont.c (xfont_get_cache): Adjust the argument type.
12215
12216 * font.h (struct font_driver): Change argument type of get_cache.
12217
12218 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12219
12220 * font.c (Ffont_get): Fix arguments to Fassoc.
12221 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12222 (font_clear_cache): New function.
12223 (font_list_entities, font_matching_entity): Use font_get_cache.
12224 (font_update_drivers): Call font_clear_cache when finishing a driver.
12225
12226 * fontset.c (fontset_find_font): Fix previous change.
12227
122282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12229
12230 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12231 dpyinfo->font_table.
12232 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12233 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12234
12235 * font.c (font_at): Handle the case that the arg C is negative.
12236 Handle the unibyte case.
12237 (Ffont_at): Call font_at with the arg C -1.
12238
12239 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12240 the position here, and call font_at with the arg C -1.
12241 Don't check the range of the existing composition at the point.
12242
122432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12244
12245 * fontset.c (fontset_add): New args charset_id and family.
12246 Change caller.
12247 (load_font_get_repertory, fontset_find_font): Assume that
12248 font_spec is always a font-spec object.
12249 (Fset_fontset_font): Always store a font-spec object in a fontset.
12250
12251 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12252 instead of get_property_and_range.
12253
122542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12255
12256 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12257 (xftfont_open): Don't keep locking face.
12258 (xftfont_close): Don't unlock face.
12259 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12260
12261 * fontset.c (fontset_find_font): Don't prefer a font of
12262 supplementary charset.
12263
122642008-02-01 Kenichi Handa <handa@m17n.org>
12265
12266 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12267 script, langsys_tag to langsys, new member script.
12268 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12269 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12270 listing to the script specified in that property. Fix arg to
12271 OTF_check_features.
12272
122732008-02-01 Jason Rumney <jasonr@gnu.org>
12274
12275 * w32font.h: New file.
12276
12277 * w32font.c: Include it.
12278 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12279 (w32font_open): Set owning_frame.
12280 (w32font_text_extents): Use owning_frame.
12281 (struct font_callback_data): Add opentype_only field.
12282 (add_font_entity_to_list): Use it to filter fonts.
12283 Don't check against full name.
12284 (w32font_list_internal): New function.
12285 (w32font_list): Use it.
12286 (w32font_match_internal): New function.
12287 (w32font_match): Use it.
12288 (w32font_open_internal): New function.
12289 (w32font_open): Use it.
12290 (w32font_get_cache, w32font_close, w32font_has_char)
12291 (w32font_encode_char, w32font_text_extents, w32font_draw):
12292 Make non-static.
12293
12294 * makefile.w32-in (w32font.o): Depend on w32font.h.
12295
122962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12297
12298 * charset.c (Fdefine_charset_internal): Record a supplementary
12299 charset at the tail of Vcharset_order_list.
12300
12301 * font.c (Ffont_shape_text): Fix the return value.
12302
12303 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12304
12305 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12306
123072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12308
12309 * ftfont.c (struct OpenTypeSpec): New struct.
12310 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12311 (ftfont_get_open_type_spec): New function.
12312 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12313
12314 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12315
123162008-02-01 Jason Rumney <jasonr@gnu.org>
12317
12318 * w32font.c (add_font_entity_to_list): Compare only the beginning
12319 of full name.
12320
123212008-02-01 Kenichi Handa <handa@m17n.org>
12322
12323 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12324 Never return HANDLED_RECOMPUTE_PROPS.
12325
123262008-02-01 Kenichi Handa <handa@m17n.org>
12327
12328 * font.c (font_gstring_produce): Delete it.
12329
12330 * composite.h (COMPOSITION_METHOD):
12331 Handle COMPOSITION_WITH_GLYPH_STRING.
12332
123332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12334
12335 * xfont.c (Qx): Delete.
12336 (syms_of_xfont): Don't initialize Qx.
12337
12338 * composite.h (enum composition_method):
12339 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12340
123412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12342
12343 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12344 (choose_face_font): Accept new form of font-spec.
12345
12346 * frame.h (font_driver_list): Declare it unconditionally.
12347 (struct frame): Define members font_driver_list and font_data_list
12348 unconditionally.
12349
12350 * fontset.c: Include "font.h" unconditionally.
12351 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12352 (Fset_fontset_font): Accept a font-spec object.
12353
12354 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12355 PIXEL_SIZE part a wild card.
12356
12357 * dispextern.h (struct glyph_string): Define members clip and
12358 num_clips unconditionally.
12359 (struct face): Define members font_info and extra unconditionally.
12360
12361 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12362 ftfont_info only when HAVE_LIBOTF is defined.
12363
123642008-02-01 Andreas Schwab <schwab@suse.de>
12365
12366 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12367 and end.
12368
123692008-02-01 Jason Rumney <jasonr@gnu.org>
12370
12371 * w32font.c (w32font_driver): Add new fields.
12372
123732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12374
12375 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12376 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12377 (LIBES): Add @M17N_FLT_CFLAGS@.
12378
12379 * composite.c (compose_text): Don't treat the new style
12380 composition specially.
12381
12382 * emacs.c (main): Call syms_of_font unconditionally.
12383
12384 * font.h (FONT_ENTITY_NOT_LOADABLE)
12385 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12386 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12387 (struct font_driver): New member shape.
12388 (font_registry_charsets): Extern it.
12389 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12390 (font_otf_capability, font_drive_otf): Delete their externs.
12391
12392 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12393 (font_charset_alist, font_registry_charsets): Move from xfont.c
12394 and rename.
12395 (font_prop_validate_otf): New function.
12396 (font_property_table): Register it for QCotf.
12397 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12398 (font_drive_otf): Delete.
12399 (font_prepare_composition): New arg F. Adjust for the change of
12400 lispy gstring.
12401 (font_find_for_lface): New arg C.
12402 (font_load_for_face): Adjust for the change of font_find_for_lface.
12403 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12404 lispy gstring.
12405 (Ffont_shape_text): New function.
12406 (Fopen_font): If the font size is not given, use 12-pixel.
12407 (Ffont_at): New arg STRING.
12408 (syms_of_font): Initalize font_charset_alist.
12409 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12410 conditionally.
12411
12412 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12413 fonts of the same font-spec. Change the format of RFONT-DEF.
12414 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12415 Adjust for the change of RFONT-DEF.
12416 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12417
12418 * ftfont.h: New file.
12419
12420 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12421 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12422 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12423 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12424 font_otf_capability and font_drive_otf, set ftfont_shape.
12425 (ftfont_list): Adjust for the change of :otf property value.
12426 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12427 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12428 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12429 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12430 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12431 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12432
12433 * w32term.c (x_draw_composite_glyph_string_foreground):
12434 Adjust for the change of lispy gstring.
12435
12436 * xdisp.c (handle_composition_prop): Adjust for the change of
12437 lispy gstring. Call a function for auto-composition with the
12438 third arg it->window.
12439 (fill_composite_glyph_string): Adjust for the change of lispy string.
12440 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12441
12442 * xfaces.c (set_font_frame_param): Adjust for the change of
12443 font_find_for_lface.
12444
12445 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12446 (xfont_registry_charsets): Likewise. Change caller.
12447 (syms_of_xfont): Don't handle x_font_charset_alist.
12448
12449 * xftfont.c: Include "ftfont.h".
12450 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12451 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12452 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12453 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12454 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12455 Set xftfont_driver.shape to xftfont_shape.
12456
12457 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12458 the change of lispy gstring.
12459
124602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12461
12462 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12463
124642008-02-01 Jason Rumney <jasonr@gnu.org>
12465
12466 * w32font.c (w32font_draw): Fill background manually.
12467
124682008-02-01 Jason Rumney <jasonr@gnu.org>
12469
12470 * font.c (Qfontp): Remove unused symbol.
12471 (QCantialias): New symbol.
12472 (syms_of_font): Define it.
12473 (font_property_table): Set a validator for QCantialias.
12474
12475 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12476 Define if not already.
12477 (QCfamily): Share with xfaces.c.
12478 (Qstandard, Qsubpixel, Qnatural): New symbols.
12479 (syms_of_w32font): Define them. Don't define QCfamily here.
12480 (w32_antialias_type, lispy_antialias_type): New functions.
12481 (w32_enumfont_pattern_entity): New arg requested_font.
12482 Set antialias parameter if non-default was requested.
12483 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12484
124852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12486
12487 * lread.c (read1): Undo the previous change.
12488
124892008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12490
12491 * frame.c (Fdelete_frame): Call font_update_drivers only when
12492 USE_FONT_BACKEND is defined.
12493
124942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12495
12496 * font.h (struct font_bitmap): New member bits_per_pixel.
12497 (struct font_driver): New members start_for_frame and end_for_frame.
12498 (struct font_data_list): New struct.
12499 (font_put_frame_data, font_get_frame_data): Extern them.
12500
12501 * frame.h (struct frame): New member font_data_list.
12502
12503 * font.c (font_update_drivers): Call driver->start_for_frame and
12504 driver->end_for_frame at proper timings.
12505 (font_put_frame_data, font_get_frame_data): New functions.
12506 (Ffont_spec): Add usage in the docstring.
12507
12508 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12509 (Fdelete_frame): Call font_update_drivers.
12510
12511 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12512 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12513 (xftfont_get_xft_draw): New function.
12514 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12515 (xftfont_end_for_frame): New function.
12516 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12517
12518 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12519 Change argument. Cache GCs in the per-frame data.
12520 (struct ftxfont_frame_data): New struct.
12521 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12522 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12523 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12524 (ftxfont_end_for_frame): New function.
12525 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12526
12527 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12528
125292008-02-01 Kenichi Handa <handa@m17n.org>
12530
12531 * xselect.c (Vselection_coding_system)
12532 (Vnext_selection_coding_system): Delete them.
12533 (syms_of_xselect): Don't declare selection-coding-system and
12534 next-selection-coding-system. They are declared in select.el.
12535
125362008-02-01 Jason Rumney <jasonr@gnu.org>
12537
12538 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12539
12540 * w32fns.c: Include imm.h.
12541 (get_composition_string_fn, get_ime_context_fn): New optional
12542 system functions.
12543 (globals_of_w32fns): Load them from imm32.dll.
12544 (ignore_ime_char): New flag.
12545 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12546 WM_IME_ENDCOMPOSITION messages.
12547
12548 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12549 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12550
125512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12552
12553 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12554 (READCHAR_REPORT_MULTIBYTE): New macro.
12555 (readchar): New 2nd arg MULTIBYTE.
12556 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12557 Make symbol's name multibyte according to the multibyteness of the
12558 source.
12559
125602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12561
12562 * xfaces.c (face_for_overlay_string): Call lookup_face with
12563 correct arguments (fix of synching with the trunk).
12564
125652008-02-01 Kenichi Handa <handa@m17n.org>
12566
12567 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12568 (font_prop_validate_non_neg, font_prop_validate_spacing):
12569 Delete argument prop_index.
12570 (font_property_table): Change arguments to validater. Change Callers.
12571 (font_lispy_object): Delete.
12572 (font_at): Use font_find_object instead fo font_lispy_object.
12573
125742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12575
12576 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12577 and file names.
12578
125792008-02-01 Jason Rumney <jasonr@gnu.org>
12580
12581 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12582 (font_matches_spec): Remove debug output.
12583 (add_font_entity_to_list): Avoid using substituted fonts.
12584
125852008-02-01 Jason Rumney <jasonr@gnu.org>
12586
12587 * doc.c (Fsnarf_documentation):
12588 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12589
125902008-02-01 Miles Bader <miles@gnu.org>
12591
12592 * dispextern.h (struct glyph_row): Only define "clip" field if
12593 HAVE_WINDOW_SYSTEM is defined.
12594
125952008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12596
12597 Fix up multi-tty merge.
12598
12599 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12600 and indentation.
12601
12602 * xfaces.c (free_realized_face, clear_face_gcs):
12603 Include font_done_for_face in the input_blocked section, just in case.
12604
12605 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12606 (get_char_face_and_encoding): Undo last change and remove the *other*
12607 duplicate definition (i.e. keep the one that's better scoped and that
12608 includes code for the font-backend).
12609
12610 * terminal.c (create_terminal): Default keyboard_coding to
12611 `no-conversion' and terminal_coding to `undecided'.
12612
12613 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12614
12615 * fontset.c (free_realized_fontsets): Check that the table entry does
12616 contain a fontset before trying to compare it to `base'.
12617
12618 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12619 syms_of_charset, and syms_of_coding earlier because init_window_once
12620 now needs Vcoding_system_hash_table to be setup.
12621
12622 * coding.h (default_buffer_file_coding): Remove.
12623
12624 * coding.c (default_buffer_file_coding): Remove.
12625 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12626 than ->symbol, and use the terminal-local coding system.
12627 (syms_of_coding): Don't setup the coding-systems that are not
12628 terminal-local.
12629 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12630
12631 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12632 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12633
12634 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12635 in chartab.c and were re-added here by mistake.
12636 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12637
12638 * doc.c (Fsnarf_documentation):
12639 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12640 src to etc.
12641
12642 * ChangeLog.10: Add mistakenly removed entry.
12643
126442008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12645
12646 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12647
126482008-02-01 Miles Bader <miles@gnu.org>
12649
12650 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12651 Add extra args to FACE_FOR_CHAR.
12652
126532008-02-01 Kenichi Handa <handa@m17n.org>
12654
12655 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12656 in sequence.
12657
12658 * chartab.c (map_sub_char_table, map_char_table): If the range
12659 contains just one character, call the function with that character
12660 even if the depth is not 3.
12661
126622008-02-01 Jason Rumney <jasonr@gnu.org>
12663
12664 * w32font.c (w32font_text_extents): Calculate metrics for the
12665 whole string.
12666
126672008-02-01 Jason Rumney <jasonr@gnu.org>
12668
12669 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12670
126712008-02-01 Jason Rumney <jasonr@gnu.org>
12672
12673 * w32term.c (x_set_glyph_string_clipping): Use
12674 get_glyph_string_clip_rects.
12675 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12676 Adjust for the change of struct glyph_string.
12677
12678 * w32font.c (w32font_draw): Do clipping here.
12679
126802008-02-01 Kenichi Handa <handa@m17n.org>
12681
12682 * xftfont.c (xftfont_draw): Adjust for the change of struct
12683 glyph_string.
12684
12685 * xterm.c (x_set_glyph_string_clipping): Use
12686 get_glyph_string_clip_rects.
12687 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12688 Adjust for the change of struct glyph_string.
12689
12690 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12691 the resulting clip(s}.
12692 (expose_overlaps): Add arg r. Change callers. Set it to
12693 row->clip temporarily.
12694 (expose_window): Redraw rows overlapping the exposed area.
12695
12696 * dispextern.h (struct glyph_row): New member clip.
12697 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12698 clip_height, new member clip, and num_clips.
12699
127002008-02-01 Kenichi Handa <handa@m17n.org>
12701
12702 * data.c (Fchar_or_string_p): Fix docstring.
12703
127042008-02-01 Kenichi Handa <handa@m17n.org>
12705
12706 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12707 create a temporary XftDraw object.
12708
127092008-02-01 Kenichi Handa <handa@m17n.org>
12710
12711 * font.c (Ffontp): Fix docstring.
12712
12713 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12714 strong evidence of ISO-2022.
12715
127162008-02-01 Kenichi Handa <handa@m17n.org>
12717
12718 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12719 SYNTAX_ENTRY_FOLLOW_PARENT.
12720
127212008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12722
12723 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12724 its type.
12725 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12726 Update to the new type of weak_hash_tables and next_weak.
12727
12728 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12729 a plain C pointer to Lisp_Hash_Table.
12730
12731 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12732 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12733 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12734 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12735 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12736 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12737 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12738 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12739 (GC_EQ): Remove since they've been identical to their non-GC_
12740 alter-egos ever since the markbit was eradicated.
12741
12742 * alloc.c:
12743 * buffer.c:
12744 * buffer.h:
12745 * data.c:
12746 * fileio.c:
12747 * filelock.c:
12748 * fns.c:
12749 * frame.h:
12750 * lisp.h:
12751 * macterm.c:
12752 * print.c:
12753 * process.c:
12754 * w32fns.c:
12755 * w32menu.c:
12756 * w32term.c:
12757 * xfns.c:
12758 * xmenu.c:
12759 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12760
127612008-02-01 Kenichi Handa <handa@m17n.org>
12762
12763 * chartab.c (map_sub_char_table): Make it work for the top-level
12764 char-table. Fix handling of parent char-table.
12765 (map_char_table): Adjust for the above change.
12766
127672008-02-01 Jason Rumney <jasonr@gnu.org>
12768
12769 * w32font.c (Qgdi): Rename from Qw32.
12770
127712008-02-01 Jason Rumney <jasonr@gnu.org>
12772
12773 * w32bdf.c (get_quoted_string): Make function static.
12774
127752008-02-01 Kenichi Handa <handa@m17n.org>
12776
12777 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12778 bigger ascent and descent than those of the font, use them as
12779 font's ascent and descent.
12780
127812008-02-01 Kenichi Handa <handa@m17n.org>
12782
12783 * Makefile.in (${lispsource}international/charprop.el): Move this
12784 target within "#ifdef HAVE_UNIDATA" and "#endif".
12785
127862008-02-01 Kenichi Handa <handa@m17n.org>
12787
12788 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12789 (shortlisp): Add ../lisp/language/tai-viet.el.
12790
127912008-02-01 Ulrich Mueller <ulm@gentoo.org>
12792
12793 * Makefile.in (${lispsource}international/charprop.el): Depend on
12794 temacs${EXEEXT}.
12795
127962008-02-01 Jason Rumney <jasonr@gnu.org>
12797
12798 * w32font.c (w32font_close): Delete the GDI font object.
12799
12800 * w32menu.c: Include character.h.
12801
12802 * w32proc.c: Likewise.
12803
12804 * w32select.c: Likewise.
12805
12806 * makefile.w32-in (w32proc.o): Depend on character.h.
12807
128082008-02-01 Jason Rumney <jasonr@gnu.org>
12809
12810 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12811
12812 * w32menu.c (syms_of_w32menu): Likewise.
12813
12814 * w32proc.c (syms_of_ntproc): Likewise.
12815
12816 * w32select.c (syms_of_w32select): Likewise.
12817
12818 * w32term.c (syms_of_w32term): Likewise.
12819
128202008-02-01 Jason Rumney <jasonr@gnu.org>
12821
12822 * w32font.c (w32font_draw): Delete brush after using it.
12823
128242008-02-01 Jason Rumney <jasonr@gnu.org>
12825
12826 * w32font.c (w32font_open): Don't set font_idx.
12827 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12828 to font settings.
12829 (w32font_draw): Fill background explicitly.
12830
128312008-02-01 Jason Rumney <jasonr@gnu.org>
12832
12833 * w32term.c (w32_initialize): Don't call w32font_initialize.
12834
12835 * w32font.c (w32font_info): Remove subranges.
12836 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12837 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12838 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12839 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12840 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12841 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12842 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12843 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12844 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12845 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12846 New symbols.
12847 (font_callback_data): New struct.
12848 (w32font_list, w32font_match): Use it.
12849 (w32font_open): Don't populate subranges.
12850 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12851 (w32font_encode_char): Always return unicode code-point as-is.
12852 (w32font_text_extents): Supply a transformation matrix to
12853 GetGlyphOutline. Never look up by glyph index. Avoid looping
12854 twice. Use unicode version of GetTexExtentPoint32 instead of
12855 glyph index version.
12856 (set_fonts_frame): Remove.
12857 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12858 set frame parameter. Use backward compatible fake foundries.
12859 Save generic family in extra slot under QCfamily. Make width slot
12860 constant. Save QCspacing value. Save list of scripts instead of
12861 binary subranges.
12862 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12863 (add_font_entity_to_list): Use font_callback_data struct. Filter
12864 unwanted fonts.
12865 (add_one_font_entity_to_list): Use font_callback_data struct.
12866 (w32_registry): Default to iso10646_1.
12867 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12868 string font registries. Don't fill in font name if it is a generic
12869 family name, fill family instead. Use spacing, family and script
12870 extra info to fill pitch, family and charset fields.
12871 (list_all_matching_fonts): Use font_callback_data struct.
12872 (unicode_range_for_char): Remove.
12873 (font_supported_scripts): New function.
12874 (w32font_initialize): Remove.
12875 (syms_of_w32font): Update which symbols are defined.
12876
128772008-02-01 Jason Rumney <jasonr@gnu.org>
12878
12879 * font.c (font_pixel_size): Reverse assq_no_quit args.
12880
12881 * w32term.h (FONT_WIDTH): Report max width, not average.
12882 (FONT_MAX_WIDTH): Remove.
12883 (FONT_AVG_WIDTH): New macro.
12884
12885 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12886 redefinition of FONT_WIDTH.
12887
12888 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12889 (w32_cache_char_metrics): Use FONT_WIDTH.
12890
12891 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12892
128932008-02-01 Jason Rumney <jasonr@gnu.org>
12894
12895 * w32font.c (w32font_open): Make lfHeight negative.
12896
12897 * w32fns.c (x_default_font_parameter): Use new style font name.
12898 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12899
129002008-02-01 Jason Rumney <jasonr@gnu.org>
12901
12902 * w32font.c (QCsubranges): New symbol.
12903 (w32font_open, w32font_has_char): Get subranges from subproperty
12904 of extra.
12905 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12906 (syms_of_w32font): Define :subranges symbol.
12907
12908 * font.c (font_put_extra): Expose externally.
12909
12910 * font.h (font_put_extra): Move declaration from font.c.
12911
12912 * font.c (Ffont_get): Use font driver to determine otf capability.
12913 (adjust_anchor): Check if driver defines anchor_point before using.
12914
12915 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12916 (w32font_draw): Use options.
12917 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12918 Fix detection of truetype fonts.
12919 (registry_to_w32_charset): Handle charsets other than iso8859-1
12920 expressed as lisp symbols.
12921 (w32_registry): Express charset as lisp symbol.
12922 (fill_in_logfont): Reverse pixel and point height logic.
12923 Don't set width here. Set quality to default.
12924
12925 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12926 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12927
12928 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12929 Remove redundant loop and allocation.
12930
12931 * makefile.w32-in (font.o, w32font.o): New objects.
12932 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12933 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12934
12935 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12936 STORE_XCHARB a valid l-value.
12937
12938 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12939 calculations for non-Truetype fonts.
12940 (x_draw_glyph_string): Sync with xterm.c.
12941 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12942 Remove redundant code.
12943 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12944
12945 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12946 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12947
12948 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12949 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12950
12951 * w32font.c: New file for w32 font backend.
12952
129532008-02-01 Kenichi Handa <handa@m17n.org>
12954
12955 * term.c: Don't include "buffer.h" twice.
12956
129572008-02-01 Kenichi Handa <handa@m17n.org>
12958
12959 * character.c (Funibyte_string): New function.
12960 (syms_of_character): Defsubr it.
12961
129622008-02-01 Jason Rumney <jasonr@gnu.org>
12963
12964 * w32term.c [USE_FONT_BACKEND]:
12965 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12966 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12967 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12968 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12969 (x_free_frame_resources): Sync with xterm.c.
12970
129712008-02-01 Andreas Schwab <schwab@suse.de>
12972
12973 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12974 char-table size.
12975
129762008-02-01 Kenichi Handa <handa@m17n.org>
12977
12978 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12979
129802008-02-01 Kenichi Handa <handa@m17n.org>
12981
12982 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12983 font_otf_gpos, add font_drive_otf.
12984
12985 * fontset.c (fontset_find_font): Pay attention to font size
12986 specified for a font.
12987 (reorder_font_vector): Check contents of font_def.
12988
12989 * font.c (struct otf_list): Delete it.
12990 (otf_list): Make it a lisp variable.
12991 (otf_open): Use lispy otf_list.
12992 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12993 (check_otf_features): New function.
12994 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12995 New functions.
12996 (font_drive_otf): New function merging font_otf_gsub and
12997 font_otf_gpos.
12998 (font_open_for_lface): New arg spec. Change argument order.
12999 (font_load_for_face): Adjust for the change of font_open_for_lface.
13000 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13001 Ffont_otf_gpos.
13002 (syms_of_font): Staticpro otf_list. Delete defsubr of
13003 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13004
13005 * xfaces.c (set_font_frame_param): Adjust for the change of
13006 font_open_for_lface.
13007
13008 * font.h (font_open_for_lface): Adjust prototype.
13009 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13010 member otf_drive.
13011 (font_otf_gsub, font_otf_gpos): Delete externs.
13012 (font_drive_otf): Extern it.
13013
130142008-02-01 Kenichi Handa <handa@m17n.org>
13015
13016 * font.c (font_at): If the window W is not on a window system,
13017 return Qnil.
13018
13019 * coding.c (produce_chars, encode_coding): Don't call
13020 insert_from_gap if no characters to produce.
13021
130222008-02-01 Kenichi Handa <handa@m17n.org>
13023
13024 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13025 Fclear_face_cache.
13026
13027 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13028
130292008-02-01 Miles Bader <miles@gnu.org>
13030
13031 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13032 Parse "--disable-font-backend" option.
13033 (standard_args): Add "--disable-font-backend" option.
13034
130352008-02-01 Kenichi Handa <handa@m17n.org>
13036
13037 * fontset.c (fontset_find_font): New function.
13038 (fontset_font): Use fontset_find_font.
13039 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13040 Register the specified font for all Latin characters.
13041 (new_fontset_from_font): Register the specified font for all Latin
13042 characters.
13043 (dump_fontset): For a realized fontset, include the base fontset
13044 name in the returned vector.
13045
130462008-02-01 Kenichi Handa <handa@m17n.org>
13047
13048 * character.h (CHAR_STRING): Cast C to unsigned on calling
13049 char_string.
13050
13051 * character.c (char_string): Type of arg C changed to unsigned.
13052 Signal an error if C is an invalid character code.
13053
13054 * editfns.c (general_insert_function, Fchar_to_string):
13055 Use CHARACTERP, not INTEGERP.
13056
130572008-02-01 Kenichi Handa <handa@m17n.org>
13058
13059 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13060 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13061
13062 * regex.c (analyse_first): Fix for multibyte characters in "case
13063 charset:" and "case categoryspec:".
13064
130652008-02-01 Andreas Schwab <schwab@suse.de>
13066
13067 * Makefile.in (LIBES): Move standard libraries to the end.
13068
130692008-02-01 Kenichi Handa <handa@m17n.org>
13070
13071 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13072 nonzero, don't shrink the buffer nextb.
13073
13074 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13075
13076 * coding.c (coding_alloc_by_making_gap): New arg offset.
13077 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13078 offset.
13079 (decode_coding_iso_2022): Update coding->safe_charsets.
13080 (decode_coding_gap): Temporarily set
13081 current_buffer->text->inhibit_shrinking to 1.
13082
130832008-02-01 Kenichi Handa <handa@m17n.org>
13084
13085 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13086 indexing into elements of s->cmp and s->char2b.
13087
130882008-02-01 Juanma Barranquero <lekktu@gmail.com>
13089
13090 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13091
130922008-02-01 Kenichi Handa <handa@m17n.org>
13093
13094 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13095 target_multibyte instead of multibyte.
13096 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13097 (bcmp_translate): Change the argument name from multibyte to
13098 target_multibyte.
13099
131002008-02-01 Kenichi Handa <handa@m17n.org>
13101
13102 These changes are to compile a regexp into a pattern that can be
13103 used both for multibyte and unibyte targets.
13104
13105 * Makefile.in (search.o): Depend on charset.h.
13106
13107 * character.c (multibyte_char_to_unibyte_safe): New function.
13108
13109 * search.c: Include "charset.h".
13110 (compile_pattern_1): Delete argument multibyte. Don't set
13111 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13112 (compile_pattern): Don't compare cp->buf.target_multibyte.
13113 Compare cp->buf.charset_unibyte.
13114 (compile_pattern): Set cp->buf.target_multibyte.
13115
13116 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13117
13118 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13119
13120 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13121 multibyte. Change callers.
13122 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13123 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13124 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13125 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13126 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13127 (regex_compile): Make the compiled pattern usable both for
13128 multibyte and unibyte targets.
13129 (analyse_first): Make the fastmap usable both for multibyte and
13130 unibyte targets.
13131 (TRANSLATE_VIA_MULTIBYTE): Delete.
13132 (re_match_2_internal): Pay attention to the case that the
13133 multibyteness of bufp and target may be different.
13134
131352008-02-01 Kenichi Handa <handa@m17n.org>
13136
13137 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13138 empty box occupy at least one column width.
13139
131402008-02-01 Miles Bader <miles@gnu.org>
13141
13142 * Makefile.in: Remove redundant HAVE_XFT clause.
13143
131442008-02-01 Kenichi Handa <handa@m17n.org>
13145
13146 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13147
131482008-02-01 Kenichi Handa <handa@m17n.org>
13149
13150 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13151 being nil.
13152
131532008-02-01 Kenichi Handa <handa@m17n.org>
13154
13155 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13156
131572008-02-01 Kenichi Handa <handa@m17n.org>
13158
13159 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13160
131612008-02-01 Kenichi Handa <handa@m17n.org>
13162
13163 * search.c (simple_search): Fix previous change.
13164
131652008-02-01 Kenichi Handa <handa@m17n.org>
13166
13167 * xftfont.c (ftfont_font_format): Extern declaration.
13168
13169 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13170
13171 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13172 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13173
13174 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13175 (ftfont_font_format): Fix previous change.
13176
13177 * font.h (Ffont_xlfd_name): EXFUN it.
13178
13179 * font.c (font_parse_xlfd): Fix the array size of `f'.
13180 (register_font_driver): Use EQ to compare driver->type.
13181
13182 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13183 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13184 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13185
131862008-02-01 Kenichi Handa <handa@m17n.org>
13187
13188 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13189 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13190
131912008-02-01 Kenichi Handa <handa@m17n.org>
13192
13193 * xfont.c (xfont_open): Set font->format.
13194
13195 * xftfont.c (xftfont_open): Set font->format.
13196
13197 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13198 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13199 (ftfont_open): Set font->format.
13200 (ftfont_font_format): New function.
13201
13202 * font.h (struct font): New member format.
13203
13204 * font.c (Qopentype): New variable.
13205 (syms_of_font): Defsym it.
13206 (Fquery_font): Change the format of the last element of the return
13207 value.
13208
132092008-02-01 Kenichi Handa <handa@m17n.org>
13210
13211 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13212 last resort.
13213
132142008-02-01 Kenichi Handa <handa@m17n.org>
13215
13216 * coding.c (detect_coding_charset): Fix detection of multi-byte
13217 charset.
13218
132192008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13220
13221 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13222
132232008-02-01 Kenichi Handa <handa@m17n.org>
13224
13225 * xdisp.c (get_next_display_element): Set it->face_id for the
13226 first component of a composition.
13227 (x_produce_glyphs): Check if the font is changed or not for composition.
13228
132292008-02-01 Kenichi Handa <handa@m17n.org>
13230
13231 * fontset.c (Qlatin): New variable.
13232 (syms_of_fontset): Define it as a lisp symbol.
13233 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13234
132352008-02-01 Kenichi Handa <handa@m17n.org>
13236
13237 * font.c (font_unparse_fcname): Pay attention to the case that
13238 some of font property is a null string.
13239
132402008-02-01 Kenichi Handa <handa@m17n.org>
13241
13242 * term.c: Include "composite.h".
13243 (encode_terminal_code): Output all components of composition.
13244 Check the size of encode_terminal_src.
13245 (produce_glyphs): For composition, call produce_composite_glyph.
13246 (append_composite_glyph, produce_composite_glyph): New functions.
13247
13248 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13249 is not found, get font_info from the current ascii face.
13250
132512008-02-01 Kenichi Handa <handa@m17n.org>
13252
13253 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13254 buffer-file-name to Qnil before calling insert_from_buffer.
13255
13256 * font.c (font_unparse_fcname): Pay attention to the case that
13257 foundry is a null string.
13258
132592008-02-01 Kenichi Handa <handa@m17n.org>
13260
13261 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13262
13263 * font.c (Qunicode_sip): New variable.
13264 (syms_of_font): Declare it as a Lisp symbol.
13265
13266 * font.h (Qunicode_sip): Extern it.
13267
132682008-02-01 Kenichi Handa <handa@m17n.org>
13269
13270 * composite.c (get_composition_id): Pay attention to TAB component.
13271
13272 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13273 TAB. Adjust for the change of s->char2b which always points to
13274 the first element of allocated memory.
13275
13276 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13277
13278 * xdisp.c (handle_composition_prop): Set it->c to the first
13279 non-TAB component.
13280 (fill_composite_glyph_string): Change argument.
13281 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13282 (x_produce_glyphs): Fix handling of left/right padding.
13283
132842008-02-01 Kenichi Handa <handa@m17n.org>
13285
13286 * coding.c (detect_coding_system): Fix for handling off
13287 inhibit_iso_escape_detection. Fix for the case that no coding
13288 system is defined for a specific coding category.
13289
132902008-02-01 Kenichi Handa <handa@m17n.org>
13291
13292 * font.c (font_matching_entity): Delete unused local var.
13293
13294 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13295 opening a font.
13296
13297 * fileio.c (Finsert_file_contents): On recovering a file, assume
13298 Unix-like eol.
13299 (choose_write_coding_system): On auto-saving a file, force
13300 Unix-like eol.
13301
13302 * coding.c (setup_coding_system): Fix setting of
13303 coding->common_flags based on eol_type.
13304 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13305 inherit from it.
13306
133072008-02-01 Kenichi Handa <handa@m17n.org>
13308
13309 * alloc.c (NSTATICS): Increas to 0x600.
13310
133112008-02-01 Kenichi Handa <handa@m17n.org>
13312
13313 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13314 (ftfont_list): Don't check :name property.
13315 (ftfont_match): New function.
13316 (ftfont_pattern_entity): If the pattern doesn't contain
13317 FC_SPACING, don't assume FC_MONO.
13318
13319 * font.h (struct font_driver): New member `match'.
13320 (font_update_drivers): Adjust prototype.
13321
13322 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13323 property of FONT.
13324 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13325 them unconditionally.
13326 (font_matching_entity): New function.
13327 (font_open_by_name): Try font_matching_entity if exact match is
13328 not found.
13329 (font_update_drivers): Delete the arg FONT. Return a list of
13330 actually used backends. Don't free faces, font caches here.
13331 Don't store data in frame parameters. Don't call x_set_font.
13332 (Ffont_spec): Store :name property as is.
13333 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13334 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13335 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13336 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13337 Call font->driver->otf_gsub instead of font_otf_gsub.
13338
13339 * frame.c (x_set_font_backend): Do more works that were done in
13340 font_update_drivers before.
13341
13342 * xfont.c (xfont_match): New function.
13343 (xfont_driver): Set xfont_driver.match to xfont_match.
13344 (xfont_draw): Set font in GC if necessary.
13345
13346 * ftxfont.c (ftxfont_match): New function.
13347 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13348
13349 * xftfont.c (xftfont_match): New function.
13350 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13351
133522008-02-01 Kenichi Handa <handa@m17n.org>
13353
13354 * font.h (struct font): New member scalable.
13355 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13356 (font_otf_gsub): Adjust prototype.
13357
13358 * font.c (font_otf_capability): Fix handling of the default langsys.
13359 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13360 Check the contents of SPEC.
13361 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13362 (check_gstring): New function.
13363 (REPLACEMENT_CHARACTER): New macro.
13364 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13365 glyph codes of GSTRING.
13366 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13367 (font_prepare_composition): Set cmp->glyph_len.
13368 (font_open_entity): Set font->scalable.
13369 (Ffont_get): Handle :otf property.
13370 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13371 functions.
13372 (Fquery_font): Use font->font.full_name.
13373 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13374 Sfont_otf_alternates.
13375
13376 * ftfont.c (ftfont_open): Set font->font.full_name and
13377 font->font.name properly. Fix calculation of font->font.height
13378 and font->min_width.
13379
13380 * ftxfont.c (ftxfont_create_gcs): New function.
13381 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13382 (ftxfont_draw_backgrond): Fix filling region.
13383 (ftxfont_default_fid): New function.
13384 (ftxfont_open): Set xfont->fid to the return value of
13385 ftxfont_default_fid.
13386 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13387 (ftxfont_done_face): Free only GCs that are created by
13388 ftxfont_create_gcs.
13389 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13390
13391 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13392 Clip to src->width, etc (not src->clip_XXX).
13393
13394 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13395 FontBackend frame parameter.
13396
133972008-02-01 Kenichi Handa <handa@m17n.org>
13398
13399 * font.h (struct font_driver_list): New member `on'.
13400 (Fclear_font_cache): EXFUN it.
13401 (font_update_drivers): Extern it.
13402
13403 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13404 (font_list_entities): Check driver_list->on.
13405 (register_font_driver): Initalize `on' member to 0.
13406 (font_update_drivers): New function.
13407 (Fclear_font_cache): Check driver_list->on.
13408
13409 * frame.h (Qfont_backend): Extern it.
13410 (x_set_font_backend): Extern it.
13411
13412 * frame.c (Qfont_backend): New variable.
13413 (frame_parms): New element for font-backend.
13414 (x_set_font_backend): New function.
13415
13416 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13417 FontBackend frame parameter.
13418 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13419 x_set_font_backend.
13420
13421 * xfont.c (xfont_list): Don't try listing by :name property if the
13422 name is not for XLFD.
13423
134242008-02-01 Kenichi Handa <handa@m17n.org>
13425
13426 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13427 (LGLYPH_SET_TO): New macros.
13428 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13429 element of G is vector or not.
13430 (font_at): Extern it.
13431
13432 * font.c: Include window.h.
13433 (font_lispy_object): New function.
13434 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13435 end of valid glyph.
13436 (font_close_object): Fix getting (struct font *).
13437 (font_at): New function.
13438 (Ffont_get): If FONT is a font-object, get entity from it.
13439 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13440 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13441 range check.
13442 (Ffont_at): New function.
13443 (syms_of_font): Defsubr Sfont_at.
13444
13445 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13446 before the entry for Qcomposition.
13447 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13448 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13449 the font in gstring.
13450 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13451 LGLYPH_FORM (g) to detect the end of valid glyph.
13452 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13453 we are composing with gstring.
13454
13455 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13456 Check if adjustment is vector or not.
13457
13458 * Makefile.in (font.o): Make it depends on window.h.
13459
134602008-02-01 Kenichi Handa <handa@m17n.org>
13461
13462 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13463 adjustment is vector or not.
13464
134652008-02-01 Miles Bader <miles@gnu.org>
13466
13467 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13468
134692008-02-01 Kenichi Handa <handa@m17n.org>
13470
13471 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13472 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13473 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13474
13475 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13476 (DEVICE_DELTA): Fix typo.
13477 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13478 LGLYPH format.
13479
13480 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13481 the change of LGLYPH format.
13482
134832008-02-01 Kenichi Handa <handa@m17n.org>
13484
13485 * ftfont.c (ftfont_list): Fix typo.
13486 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13487
134882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13489
13490 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13491
13492 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13493 xftface_info is non-NULL.
13494
134952008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13496
13497 * ftfont.c (ftfont_list): Move misplaced #endif.
13498
134992008-02-01 Kenichi Handa <handa@m17n.org>
13500
13501 * ftfont.c (ftfont_list): Pay attention to the case that
13502 FC_CAPABILITY is not defined.
13503
135042008-02-01 Kenichi Handa <handa@m17n.org>
13505
13506 * xftfont.c (xftfont_open): Set charset related members to -1.
13507
13508 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13509 QCname.
13510 (ftfont_open): Set charset related members to -1.
13511
13512 * fontset.c (Votf_script_alist): New variable.
13513 (syms_of_fontset): Initialize it.
13514 (fontset_font): Delete unused variable.
13515
13516 * fontset.h (Votf_script_alist): Extern it.
13517
13518 * font.c (font_find_for_lface): Optimize code.
13519
13520 * font.h (font_close_object, font_merge_old_spec): Extern them.
13521
135222008-02-01 Kenichi Handa <handa@m17n.org>
13523
13524 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13525 (syms_of_font): Initialize them.
13526 (font_pixel_size): Allow float value in dpi.
13527 (font_prop_validate_type): Delete.
13528 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13529 Change caller.
13530 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13531 (font_prop_validate_extra): Delete.
13532 (font_prop_validate_spacing): New function.
13533 (font_property_table): Add elements for all known properties.
13534 (get_font_prop_index): Rename from check_font_prop_name. New
13535 argument FROM. Change caller.
13536 (font_prop_validate): Validate all known properties.
13537 (font_put_extra): Delete argument force. Change caller.
13538 (font_expand_wildcards): Make it static. Fix the way of shrinking
13539 the possible range.
13540 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13541 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13542 Change caller.
13543 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13544 (font_parse_fcname): Delete argument merge. Fix parsing of point
13545 size. Don't validate properties values here. Change caller.
13546 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13547 (font_open_by_name): Delete unused variable.
13548 (Ffont_spec): Likewise. Validate property values.
13549 (Ffont_match_p): New function.
13550
13551 * font.h (QCscalable): Extern it.
13552 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13553
13554 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13555
13556 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13557 (xfont_list_pattern): New function.
13558 (xfont_list): Use xfont_list_pattern.
13559
135602008-02-01 Kenichi Handa <handa@m17n.org>
13561
13562 * font.h (Flist_fonts): EXFUN it.
13563
135642008-02-01 Jason Rumney <jasonr@gnu.org>
13565
13566 * w32term.c (w32_initialize): Add back smoothing_type and
13567 smoothing_enabled definitions.
13568
135692008-02-01 Kenichi Handa <handa@m17n.org>
13570
13571 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13572 s->face->font on determining underline position.
13573
135742008-02-01 Kenichi Handa <handa@m17n.org>
13575
13576 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13577 (font_has_char): Accept font-object too.
13578 (font_find_for_lface): Try at first with a size specified in face.
13579
135802008-02-01 Kenichi Handa <handa@m17n.org>
13581
13582 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13583 font_open_by_name.
13584
135852008-02-01 Kenichi Handa <handa@m17n.org>
13586
13587 * font.h (QCspacing, QCdpi): Extern them.
13588 (enum font_spacing): New enum.
13589 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13590
13591 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13592 (QCspacing, QCdpi): New variables.
13593 (syms_of_font): Initialize them.
13594 (font_pixel_size): New function.
13595 (font_put_extra): New function.
13596 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13597 in FONT_EXTRA.
13598 (font_parse_fcname): Handle enumerated values (e.g. bold).
13599 Fix handling font size. Add QCname property that contains only
13600 unknown properties.
13601 (font_score): Change argument. Change caller. Pay attention to
13602 FONT_PIXEL_SIZE_QUANTUM.
13603 (font_sort_entites, font_list_entities, font_find_for_lface)
13604 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13605 (Ffont_spec): Add QCname property that contains only unknown properties.
13606
13607 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13608 include weight in listing pattern, instead check weight of each
13609 listed font. Don't include scalable in pattern. Pay attention to
13610 FONT_PIXEL_SIZE_QUANTUM.
13611
136122008-02-01 Kenichi Handa <handa@m17n.org>
13613
13614 * font.c (font_parse_fcname): Fix parsing of point-size.
13615 (font_unparse_fcname): Produce symbolic names for style properties.
13616 (font_list_entities): Handle float size correctly.
13617 (font_open_by_name): Prefer `normal' property values if the name
13618 doesn't specify them.
13619
13620 * fontset.c (Finternal_char_font): Use font_get_name, not
13621 Ffont_xlfd_name.
13622
13623 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13624 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13625 pattern. Don't force scalable.
13626
13627 * xftfont.c (xftfont_open): For generating a name, start from
13628 96-byte buffer.
13629
136302008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13631
13632 * frame.h (x_new_fontset2): Fix prototype.
13633
136342008-02-01 Kenichi Handa <handa@m17n.org>
13635
13636 * font.h (struct font_driver): Delete member parse_name.
13637 (font_match_p, font_get_spec, font_parse_fcname)
13638 (font_unparse_fcname): Extern them.
13639 (font_get_name): Adjust prototype.
13640
13641 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13642 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13643 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13644 unnecessary checks for weight, slant, and swidth.
13645 (font_parse_fcname): New function.
13646 (font_unparse_fcname): New function.
13647 (font_parse_name): New function.
13648 (font_match_p): New function.
13649 (font_get_name): Change return value to Lisp string.
13650 (font_get_spec): New function.
13651 (Qunspecified, Qignore_defface): Don't extern them.
13652 (font_find_for_lface): Assume that LFACE is fully specified.
13653 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13654 object, use it for FACE.
13655 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13656 driver->parse_name.
13657 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13658
13659 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13660 prototype.
13661
13662 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13663 argument F. Don't call Fnew_fontset. Instead, directly call
13664 make_fontset.
13665
13666 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13667
13668 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13669 of x_new_fontset2.
13670
13671 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13672 (Qsans__serif): New variables.
13673 (ftfont_generic_family_list): New variable.
13674 (syms_of_ftfont): Initialize the above variables.
13675 (ftfont_pattern_entity): Delete argument NAME.
13676 (ftfont_list_generic_family): New function.
13677 (ftfont_parse_name): Delete this function.
13678 (ftfont_list): Try generic family only when FcFontList found no font.
13679 (ftfont_list_family): Fix args to FcObjectSetBuild.
13680
13681 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13682 object in attrs[LFACE_FONT_INDEX].
13683 (set_lface_from_font_name): Cancel all changes for font-backend.
13684 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13685 function.
13686 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13687 font object in QCfont attribute.
13688 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13689 (realize_default_face) [USE_FONT_BACKEND]: Call
13690 set_lface_from_font_and_fontset.
13691
13692 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13693 "fixed", and signal error here if no suitable font was found.
13694
13695 * xfont.c (xfont_parse_name): Delete this function.
13696
13697 * xftfont.c (xftfont_open): Change coding style of error
13698 handling. Generate fontconfig's fontname pattern.
13699
13700 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13701 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13702
13703 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13704 Both args FONTSET and FONT_OBJECT must be existing ones.
13705
137062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13707
13708 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13709
137102008-02-01 Kenichi Handa <handa@m17n.org>
13711
13712 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13713
13714 * font.h (struct font): Fix typo.
13715
13716 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13717 XLFD_XXX_INDEX.
13718 (enum xlfd_field_mask): New enum.
13719 (intern_font_field): Changed argument. Change caller. If digits
13720 are followed by non-digits, return a symbol.
13721 (font_expand_wildcards): New function.
13722 (font_parse_xlfd): Fix wildcard handling.
13723 (Ffont_spec): If :name is specified, reflect the info in the other
13724 properties.
13725
13726 * ftfont.c (ftfont_pattern_entity): Fix typo.
13727 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13728 locale.
13729
137302008-02-01 Kenichi Handa <handa@m17n.org>
13731
13732 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13733
13734 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13735 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13736 registry doesn't specify encoding part.
13737 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13738 (font_open_by_name): At first try parsing the name.
13739 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13740 as Lisp symbols.
13741
13742 * fontset.c (reorder_font_vector): Pay attention to the case that
13743 the 3rd element of font_def is nil.
13744 (fontset_font): For the default fontset, append one more fontset
13745 elements for a script-based font specification. Don't add script
13746 attribute on finding a font.
13747 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13748 font name.
13749 (fontset_ascii_font): If a font can't be opened, return nil.
13750
13751 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13752 (ftfont_pattern_entity): New function.
13753 (ftfont_get_cache): Assume that freetype_font_cache is already
13754 initialized.
13755 (ftfont_list): Handle the case that a file is specified in font
13756 name. Use ftfont_pattern_entity to generate entities.
13757 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13758 (syms_of_ftfont): Initialize freetype_font_cache.
13759
13760 * xftfont.c (xftfont_open): Make the font name fontconfig's
13761 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13762 (xftfont_close): Free font->font.name if not NULL.
13763
13764 * xfont.c (xfont_list): If script is specified for a font, return
13765 null_vector.
13766 (xfont_list_family): Declare argument type.
13767
13768 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13769 name, set LFACE_FONT (lface) to nil.
13770
13771 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13772 return Qnil.
13773
137742008-02-01 Kenichi Handa <handa@m17n.org>
13775
13776 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13777 (standard_args): Add "-enable-font-backend".
13778
137792008-02-01 Kenichi Handa <handa@m17n.org>
13780
13781 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13782 (struct xftdraw_list, xftdraw_list): Delete them.
13783 (register_xftdraw, check_xftdraw): Delete them.
13784 (xftfont_prepare_face): Don't call register_xftdraw.
13785 (xftfont_done_face): Don't call check_xftdraw.
13786 (xftfont_draw): Get background color only when with_background is
13787 nonzero.
13788
13789 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13790
137912008-02-01 Kenichi Handa <handa@m17n.org>
13792
13793 These changes are for the new font handling codes.
13794
13795 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13796 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13797 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13798 (FONTSRC, FONTOBJ): New variables.
13799 (obj): Add $(FONTOBJ).
13800 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13801 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13802 @LIBOTF_LIBS@.
13803 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13804 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13805
13806 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13807
13808 * character.h (Vscript_representative_chars): Extern it.
13809
13810 * character.c (Vscript_representative_chars): New variable.
13811 (syms_of_character): Declare it as a Lisp variable.
13812
13813 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13814 enable_font_backend is nonzero, accept the composition method
13815 COMPOSITION_WITH_GLYPH_STRING.
13816
13817 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13818 enumeration COMPOSITION_WITH_GLYPH_STRING.
13819
13820 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13821 members clip_x, clip_y, clip_width, and clip_height.
13822 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13823
13824 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13825 --enable-font-backend. Call syms_of_font.
13826
13827 * fns.c (assoc_no_quit): New function.
13828
13829 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13830 (face_for_font, new_fontset_from_font)
13831 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13832
13833 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13834 (fontset_font, fontset_ascii, face_for_char)
13835 (make_fontset_for_ascii_face, Ffont_info)
13836 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13837 is nonzero, use font-backend mechanism.
13838 (find_font_encoding): Make it non-static.
13839 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13840 New functions.
13841
13842 * frame.h (struct frame): New members resx and resy.
13843 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13844 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13845
13846 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13847 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13848
13849 * lisp.h (assoc_no_quit): Extern it.
13850
13851 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13852 Through out the file, use FONT_INFO_FROM_FACE instead of
13853 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13854 rif->per_char_metric.
13855 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13856 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13857 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13858 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13859 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13860 nonzero, use font-backend mechanism.
13861 (get_per_char_metric): New function.
13862
13863 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13864 (set_lface_from_font_name)
13865 (set_font_frame_param, free_realized_face)
13866 (prepare_face_for_display, clear_face_gcs)
13867 (Finternal_set_font_selection_order, realize_x_face)
13868 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13869 font-backend mechanism.
13870 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13871 (load_face_font) [USE_FONT_BACKEND]: Abort.
13872 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13873 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13874
13875 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13876 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13877 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13878 nonzero, register all available font drivers. Call
13879 x_default_font_parameter for deciding a font.
13880 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13881
13882 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13883 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13884 (x_set_glyph_string_clipping_exactly)
13885 (x_compute_glyph_string_overhangs)
13886 (x_draw_glyph_string_foreground)
13887 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13888 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13889 enable_font_backend is nonzero, use font-backend mechanism.
13890 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13891
138922008-02-01 Kenichi Handa <handa@m17n.org>
13893
13894 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13895 system_eol_type.
13896 (syms_of_coding): Initialize system_eol_type.
13897
13898 * process.c (Fset_process_coding_system): Inherit system's eol
13899 format if necessary.
13900
139012008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13902
13903 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13904
139052008-02-01 Kenichi Handa <handa@m17n.org>
13906
13907 * coding.c (decode_eol): Pay attention to buffer relocation in
13908 del_range_2.
13909 (decode_coding): Call decode_eol before restoring undo_list.
13910
139112008-02-01 Kenichi Handa <handa@m17n.org>
13912
13913 * charset.c (Fdefine_charset_internal): Fix setting of
13914 emacs_mule_bytes.
13915
139162008-02-01 Kenichi Handa <handa@m17n.org>
13917
13918 * keyboard.c (read_char): Check if C is a character or not before
13919 looking up Vkeyboard_translate_table.
13920
139212008-02-01 Kenichi Handa <handa@m17n.org>
13922
13923 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13924 condition to terminate the loop.
13925
139262008-02-01 Kenichi Handa <handa@m17n.org>
13927
13928 * coding.c (produce_composition): Compare charbuf[i] instead of
13929 args[i] against 0.
13930 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13931
139322008-02-01 Kenichi Handa <handa@m17n.org>
13933
13934 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13935 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13936 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13937 detect_coding.
13938 (emacs_mule_char): Handle old style (Emacs 20) component character
13939 of a composition.
13940 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13941 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13942 composition rule.
13943 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13944
139452008-02-01 Kenichi Handa <handa@m17n.org>
13946
13947 * coding.c (encode_coding_ccl): Allocate destination dynamically
13948 when necessary.
13949
139502008-02-01 Kenichi Handa <handa@m17n.org>
13951
13952 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13953 the loop. When quitted, show a proper error message.
13954
139552008-02-01 Kenichi Handa <handa@m17n.org>
13956
13957 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13958 src->clip_head and src->clip_tail temporarily instead of src->hl.
13959
13960 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13961 character sequence.
13962 (Fccl_execute_on_string): Use ASET, not XSET.
13963
139642008-02-01 Kenichi Handa <handa@m17n.org>
13965
13966 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13967
139682008-02-01 Kenichi Handa <handa@m17n.org>
13969
13970 * coding.c (decode_coding): Fix the condition of terminating the
13971 decoding loop.
13972
139732008-02-01 Kenichi Handa <handa@m17n.org>
13974
13975 * data.c (Faset): On setting a character bigger than 255 in a
13976 unibyte string, signal an error instead of make the string multibyte.
13977
139782008-02-01 Kenichi Handa <handa@m17n.org>
13979
13980 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13981 made by a mapping table.
13982
139832008-02-01 Kenichi Handa <handa@m17n.org>
13984
13985 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13986 not.
13987 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13988 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13989
13990 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13991 s->face is NULL or not.
13992
139932008-02-01 Kenichi Handa <handa@m17n.org>
13994
13995 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13996 (x_draw_glyph_string): Fix drawing of right_overhang and
13997 left_overhang around/on cursor.
13998
13999 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14000
140012008-02-01 Kenichi Handa <handa@m17n.org>
14002
14003 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14004
140052008-02-01 Kenichi Handa <handa@m17n.org>
14006
14007 * coding.c (Fdefine_coding_system_internal)
14008 (Fdefine_coding_system_alias): Avoid a duplicated element in
14009 Vcoding_system_alist.
14010
140112008-02-01 Kenichi Handa <handa@m17n.org>
14012
14013 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14014
14015 * coding.c (Qcoding_system_define_form): New variable.
14016 (syms_of_coding): Intern and staticpro it.
14017 (Fcoding_system_p): Check Qcoding_system_define_form.
14018 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14019
14020 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14021 Fcoding_system_p.
14022 (CHECK_CODING_SYSTEM): If ID is not available, call
14023 Fcheck_coding_system.
14024 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14025 Try also Fcheck_coding_system.
14026
140272008-02-01 Kenichi Handa <handa@m17n.org>
14028
14029 * coding.c (code_conversion_restore): GCPRO arg.
14030
140312008-02-01 Kenichi Handa <handa@m17n.org>
14032
14033 * character.c (lisp_string_width): Check multibyteness of STRING.
14034
140352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14036
14037 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14038 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14039 (decode_mac_font_name): Use decode_coding_c_string instead of
14040 decode_coding.
14041 (x_load_font): Initialize fontp->fontset to -1. Set
14042 fontp->encoding_type.
14043
140442008-02-01 Kenichi Handa <handa@m17n.org>
14045
14046 * search.c (search_buffer): Give up BM search on case-fold-search
14047 if one of a target character has a case-equivalence of different
14048 byte length even if that target charcter is an ASCII.
14049 (simple_search): Fix calculation of byte length of matched text.
14050 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14051
140522008-02-01 Kenichi Handa <handa@m17n.org>
14053
14054 * coding.c (decode_coding): Fix handling of invalid bytes.
14055
140562008-02-01 Kenichi Handa <handa@m17n.org>
14057
14058 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14059 Unicode characters.
14060
140612008-02-01 Kenichi Handa <handa@m17n.org>
14062
14063 * coding.c (encode_coding_object): If a pre-write-conversion
14064 function makes a new buffer, kill it.
14065
140662008-02-01 Kenichi Handa <handa@m17n.org>
14067
14068 * coding.c (QCascii_compatible_p): New variable.
14069 (syms_of_coding): Initialize it.
14070 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14071 calling string_char.
14072 (record_conversion_result): Add `default:' case.
14073 (coding_charset_list): Delete unused variable `coding_type'.
14074 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14075 property in the plist of the coding system.
14076 (Fcoding_system_put): Check QCascii_compatible_p.
14077
140782008-02-01 Miles Bader <miles@gnu.org>
14079
14080 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14081 removed calculation of frame `f', as it's now used.
14082
140832008-02-01 Kenichi Handa <handa@m17n.org>
14084
14085 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14086 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14087 (UNIDATA): New variable.
14088 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14089 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14090 $(RUN_TEMACS) unconditionally.
14091
140922008-02-01 Kenichi Handa <handa@m17n.org>
14093
14094 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14095 (admindir): New variable.
14096 ($(lispsource)international/charprop.el): New target.
14097
140982008-02-01 Miles Bader <miles@gnu.org>
14099
14100 * character.c (chars-in-region): Remove obsolete function.
14101 (syms_of_character): Remove its initialization.
14102
141032008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14104
14105 * w32select.c (validate_coding_system)
14106 (setup_windows_coding_system): New functions.
14107 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14108 setup_windows_coding_system.
14109 (setup_config, Fw32_get_clipboard_data): Use
14110 validate_coding_system.
14111 (Fx_selection_exists): Move call to setup_config to a place
14112 where signals are allowed.
14113
14114 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14115 (Fcheck_coding_system): Add declarations.
14116
141172008-02-01 Kenichi Handa <handa@m17n.org>
14118
14119 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14120
141212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14122
14123 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14124 string as the second argument for x_new_fontset.
14125
141262008-02-01 Kenichi Handa <handa@m17n.org>
14127
14128 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14129 (encode_coding_object): Use safe_call instead of call2.
14130
141312008-02-01 Kenichi Handa <handa@m17n.org>
14132
14133 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14134
14135 * Makefile.in (lisp): Include charprop.el.
14136
141372008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14138
14139 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14140 Not sure if it's unnecessary.
14141
141422008-02-01 Steven Tamm <steventamm@mac.com>
14143
14144 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14145 some possibly unnecessary fontset checking code that crashed
14146 when creating a new frame.
14147
141482008-02-01 Kenichi Handa <handa@m17n.org>
14149
14150 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14151 lookup_face.
14152
14153 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14154
14155 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14156
141572008-02-01 Kenichi Handa <handa@m17n.org>
14158
14159 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14160 (coding_charset_list): New function.
14161
14162 * coding.h (coding_charset_list): Extern it.
14163
141642008-02-01 Kenichi Handa <handa@m17n.org>
14165
14166 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14167 concatenation of family and registry.
14168
141692008-02-01 Kenichi Handa <handa@m17n.org>
14170
14171 * character.h (BYTE8_STRING): Fix typo.
14172
14173 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14174 string to multibyte (sync to HEAD).
14175
14176 * casefiddle.c (casify_region): Handle changes in byte-length
14177 using replace_range_2 (sync to HEAD).
14178
141792008-02-01 Andreas Schwab <schwab@suse.de>
14180
14181 * chartab.c (map_char_table): GCPRO table and arg.
14182
141832008-02-01 Kenichi Handa <handa@m17n.org>
14184
14185 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14186 already at limit.
14187
141882008-02-01 Kenichi Handa <handa@m17n.org>
14189
14190 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14191 instead of fast_c_string_match_ignore_case.
14192 (find_font_encoding): Change argument to Lisp_Object. Use
14193 fast_string_match_ignore_case instead of
14194 fast_c_string_match_ignore_case. Change caller.
14195
141962008-02-01 Kenichi Handa <handa@m17n.org>
14197
14198 * xdisp.c (get_next_display_element): In unibyte case, decide to
14199 display in octal form by checking a character by
14200 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14201
14202 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14203
14204 * character.c (unibyte_has_multibyte_table): New variable.
14205
14206 * character.h (unibyte_has_multibyte_table): Extern it.
14207 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14208
142092008-02-01 Kenichi Handa <handa@m17n.org>
14210
14211 * coding.c (encode_coding_iso_2022): Fix handling of charset
14212 annotation.
14213
142142008-02-01 Kenichi Handa <handa@m17n.org>
14215
14216 * coding.c (setup_coding_system): If coding_system is nil, use
14217 Qundecided.
14218 (Fterminal_coding_system): Return nil if terminal coding system is
14219 `undecided'.
14220 (syms_of_coding): Define coding-system `undecided' here. Setup
14221 terminal_coding as `undecided'.
14222
142232008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * xdisp.c (message_dolog, set_message_1): Call
14226 unibyte_char_to_multibyte with arg type int.
14227
14228 * lread.c (read1): Fix reading of a char-table.
14229
14230 * print.c (print_object): Include sub char-table in circularities
14231 detection.
14232
142332008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14236 Append the found sequences in car of ARGS instead of prepending.
14237
142382008-02-01 Kenichi Handa <handa@m17n.org>
14239
14240 * fileio.c (report_file_error): Make a unibyte string from
14241 strerror (errorno).
14242 (Fsubstitute_in_file_name): Fix the arg to
14243 unibyte_char_to_multibyte. It is evaluated twice.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14248
142492008-02-01 Kenichi Handa <handa@m17n.org>
14250
14251 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14252 BOM is not found.
14253 (detect_coding, detect_coding_system): Optimization for ISO-2022
14254 when no 8-bit data is found.
14255
142562008-02-01 Jason Rumney <jasonr@gnu.org>
14257
14258 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14259
142602008-02-01 Kenichi Handa <handa@m17n.org>
14261
14262 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14263 CHARS.
14264
142652008-02-01 Steven Tamm <steventamm@mac.com>
14266
14267 * macterm.c (mac_encode_char): Add charset argument and update
14268 to use encoding_type.
14269 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14270 switch to pure fontset.
14271 (decode_mac_font_name): Temporarily remove decoding.
14272 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14273 (x_load_font): Temporarily remove encoding.
14274
142752008-02-01 Kenichi Handa <handa@m17n.org>
14276
14277 * xfaces.c (Fface_font): If frame is not on a window system,
14278 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14279 refer to face->font.
14280 (split_font_name_into_vector, build_font_name_from_vector)
14281 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14282 when HAVE_WINDOW_SYSTEM is defined.
14283
142842008-02-01 Kenichi Handa <handa@m17n.org>
14285
14286 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14287 (x_produce_glyphs): Fix setting of members of cmp in case
14288 cmp->glyph_len is zero.
14289
14290 * fontset.c (Fset_fontset_font): Fix docstring.
14291 (Ffontset_info): Make it backward compatible. New arg ALL.
14292
142932008-02-01 Kim F. Storm <storm@cua.dk>
14294
14295 * process.c (read_process_output): Grow decoding_buf when needed;
14296 this could cause a crash in allocate_string and compact_small_strings.
14297
142982008-02-01 Kenichi Handa <handa@m17n.org>
14299
14300 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14301
143022008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * coding.c (setup_coding_system): Set coding->common_flags
14305 correctly for raw-text.
14306 (consume_chars): On encoding unibyte text by raw-text, don't check
14307 multibyte form.
14308 (encode_coding): On encoding by raw-text, never use translation tables.
14309
14310 * fileio.c (e_write): Short cut for the case of no encoding.
14311
143122008-02-01 Kenichi Handa <handa@m17n.org>
14313
14314 * coding.c (detect_coding, detect_coding_system): Delete unused
14315 variables.
14316
143172008-02-01 Kenichi Handa <handa@m17n.org>
14318
14319 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14320 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14321
143222008-02-01 Kenichi Handa <handa@m17n.org>
14323
14324 * coding.c (Ffind_coding_systems_region_internal): Include
14325 raw-text and no-conversion in the result.
14326
143272008-02-01 Kenichi Handa <handa@m17n.org>
14328
14329 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14330 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14331 FONT_DEF.
14332 (font_def_arg, add_arg, from_arg, to_arg): New args.
14333 (set_fontset_font): Change argument.
14334 (Fset_fontset_font): Fix for the case that TARGET is a script
14335 name and charset name.
14336 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14337
143382008-02-01 Kenichi Handa <handa@m17n.org>
14339
14340 * fontset.c (fontset_font): Rename from fontset_face. Change return
14341 value.
14342 (face_suitable_for_char_p, face_for_char): Adjust for the change
14343 of fontset_font.
14344 (make_fontset_for_ascii_face): Fix setting of the fontset element
14345 for ASCII.
14346 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14347 to get a font name.
14348 (Ffontset_info): Adjust for the change of fontset_font.
14349
14350 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14351
14352 * character.h (LEADING_CODE_LATIN_1_MIN)
14353 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14354
143552008-02-01 Kenichi Handa <handa@m17n.org>
14356
14357 * editfns.c (check_translation): New function.
14358 (Ftranslate_region_internal): Handle M:N mapping.
14359
143602008-02-01 Kenichi Handa <handa@m17n.org>
14361
14362 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14363
143642008-02-01 Kenichi Handa <handa@m17n.org>
14365
14366 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14367 goto invalid_code.
14368 (decode_coding_iso_2022): Fix handling of invalid designation.
14369
14370 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14371 after calling code_conversion_save.
14372
143732008-02-01 Kenichi Handa <handa@m17n.org>
14374
14375 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14376
14377 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14378
14379 * fontset.c: Include "intervals.h".
14380 (fontset_face): Fix comparing of Lisp_Objects.
14381 (free_face_fontset, new_fontset_from_font_name): Fix
14382 Lisp_Object/int mixup.
14383
14384 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14385
14386 * coding.c: Add many prototypes for static functions.
14387 (get_translation_table): Allow max_lookup to be NULL.
14388 (decode_coding, Ffind_coding_systems_region_internal)
14389 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14390 get_translation_table with max_lookup NULL.
14391
143922008-02-01 Kenichi Handa <handa@m17n.org>
14393
14394 * coding.c (get_translation_table): Declare it as Lisp_Object.
14395 (LOOKUP_TRANSLATION_TABLE): New macro.
14396 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14397 instead of CHAR_TABLE_REF.
14398
143992008-02-01 Kenichi Handa <handa@m17n.org>
14400
14401 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14402 annotation data format.
14403 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14404 Change arguments FROM and TO to single argument NCHARS. Change caller.
14405 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14406 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14407 (decode_coding_ccl, decode_coding_charset): Pay attention to
14408 coding->charbuf_used.
14409 (get_translation): New function.
14410 (produce_chars): New arguments translation_table and last_block.
14411 Translate characters here. Return number of carryover chars.
14412 Change caller.
14413 (produce_composition): New argument pos. Change caller.
14414 Adjust for the change of annotation data format.
14415 (produce_charset, produce_annotation): Likewise.
14416 (decode_coding, encode_coding): Don't call translate_chars.
14417 (consume_chars): New arg translation_table. Change caller.
14418 (translate_chars): Delete.
14419 (syms_of_coding): Make translation-table's number of extra slots 2.
14420
144212008-02-01 Kenichi Handa <handa@m17n.org>
14422
14423 * search.c (simple_search): Fix setting this_pos_byte in backward
14424 search.
14425
14426 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14427 byte sequence.
14428 (detect_coding_ccl): Fix setting of the variable valids.
14429
144302008-02-01 Kenichi Handa <handa@m17n.org>
14431
14432 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14433
14434 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14435
14436 * editfns.c (Ftranslate_region_internal): Rename from
14437 Ftranslate_region. Accept a char-table in TABLE.
14438 (syms_of_editfns): Defsubr Stranslate_region_internal.
14439
14440 * xfaces.c (set_lface_from_font_name): If a font is specified for
14441 a frame, generate a fontset from the font.
14442 (build_scalable_font_name): If the scalable font is requested for
14443 a specific size, don't change that size.
14444 (try_font_list): Try a scalable font also in the case that a
14445 pattern string is specified.
14446
144472008-02-01 Kenichi Handa <handa@m17n.org>
14448
14449 * xfaces.c (Fface_font): New optional arg CHARACTER.
14450
144512008-02-01 Kenichi Handa <handa@m17n.org>
14452
14453 * charset.h (CHARSET_OFFSET): New macro.
14454
144552008-02-01 Kenichi Handa <handa@m17n.org>
14456
14457 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14458
14459 * fontset.c (fontset_face): Handle the case that repertory is a
14460 char-table.
14461 (find_font_encoding): Return nil for unknown encoding.
14462 (Fset_fontset_font): Ignore a font of unknown encoding.
14463
144642008-02-01 Kenichi Handa <handa@m17n.org>
14465
14466 * keymap.c (describe_vector): Handle default value of a char table.
14467
14468 * fontset.c (fontset_face): Handle fallback fonts correctly.
14469 (Ffontset_info): Return infomation about fallback fonts.
14470
144712008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * fontset.c (FONTSET_DEFAULT): New macro.
14474 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14475 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14476 the case that it is nil.
14477 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14478 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14479
14480 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14481 subset or superset.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * emacs.c (main): Call init_charset after syms_of_XXX.
14486
14487 * charset.c (Vcharset_map_directory): Delete.
14488 (Vcharset_map_path): New variable.
14489 (load_charset_map_from_file): Use Vcharset_map_path instead.
14490 (init_charset): Initialize Vcharset_map_path.
14491 (syms_of_charset): Delete declaration of "charset-map-directory",
14492 add declaration of "charset-map-path".
14493
144942008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14497 ASCII only string.
14498
14499 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14500
14501 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14502 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14503
145042008-02-01 Kenichi Handa <handa@m17n.org>
14505
14506 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14507
14508 * coding.c (QCmnemonic, QCdefalut_char)
14509 (QCdecode_translation_table, QCencode_translation_table)
14510 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14511 (get_translation_table): Return a list of translation tables if
14512 necessary.
14513 (decode_coding): Call get_translation_table with ENCODEP 0.
14514 (char_encodable_p): If translation_table is non-nil, always call
14515 translate_char.
14516 (Fdefine_coding_system_internal): Accept list of translation
14517 tables as :encode-translation-table and :decode-translation-table.
14518 (Fcoding_system_put): New function.
14519 (syms_of_coding): Declare new symbols. Defsubr
14520 Scoding_system_put.
14521 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14522 typically JISX0212.
14523
14524 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14525 when the charset is superset type.
14526
14527 * character.c (translate_char): Accept list of translation tables.
14528
145292008-02-01 Kenichi Handa <handa@m17n.org>
14530
14531 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14532 (CODING_ATTR_TRANS_TBL): New macro.
14533
14534 * coding.c (get_translation_table): New function.
14535 (translate_chars): Fix the bug of skipping annotation data.
14536 (decode_coding, encode_coding): Utilize get_translation_table.
14537 (char_encodable_p, Funencodable_char_position): Translate char if
14538 necessary.
14539 (Ffind_coding_systems_region_internal)
14540 (Fcheck_coding_systems_region): Setup translation table for encode
14541 in a coding system attribute vector in advance.
14542 (Fdefine_coding_system_internal): Allow a symbol as translation
14543 table. For shift-jis type coding system, allow 4th charset.
14544
145452008-02-01 Kenichi Handa <handa@m17n.org>
14546
14547 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14548
14549 * xdisp.c (get_next_display_element): Pass -1 as POS to
14550 FACE_FOR_CHAR if displaying a C-string.
14551
145522008-02-01 Kenichi Handa <handa@m17n.org>
14553
14554 * composite.c (get_composition_id): Handle xoff and yoff in a
14555 composition rule.
14556
14557 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14558 (struct composition): New member lbearing and rbearing.
14559
14560 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14561 (x_get_glyph_overhangs): Handle a composition glyph.
14562 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14563
14564 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14565 composition glyph.
14566
145672008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * print.c: Include charset.h.
14570 (Vprint_charset_text_property): New variable.
14571 (Qdefault): Extern it.
14572 (PRINT_STRING_NON_CHARSET_FOUND)
14573 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14574 (print_check_string_result): New variable.
14575 (print_check_string_charset_prop): New function.
14576 (print_prune_charset_plist): New variable.
14577 (print_prune_string_charset): New function.
14578 (print_object): Call print_prune_string_charset if
14579 Vprint_charset_text_property is not t.
14580 (print_interval): Print nothing if interval->plist is nil.
14581 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14582 variable. Init and staticpro print_prune_charset_plist.
14583
145842008-02-01 Kenichi Handa <handa@m17n.org>
14585
14586 * fontset.c (new_fontset_from_font_name): Use the specified font
14587 for all characters in the new fontset.
14588
14589 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14590 OBJECT args.
14591
14592 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14593 OBJECT args for composition too.
14594
14595 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14596 OBJECT args.
14597
145982008-02-01 Kenichi Handa <handa@m17n.org>
14599
14600 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14601
14602 * fontset.c (reorder_font_vector): Adjust for the change of
14603 FONT_DEF format.
14604 (fontset_face): New arg id. Change caller.
14605 (face_for_char): New args pos and object.
14606 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14607 (fs_query_fontset): Check NAME by Fassoc too.
14608 (Fset_fontset_font): Allow non-XLFD font name.
14609 (Ffontset_info): Adjust for the change of FONT_DEF format.
14610
14611 * fontset.h (face_for_char): Adjust prototype.
14612
14613 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14614 (append_space, extend_face_to_end_of_line)
14615 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14616 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14617
14618 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14619 POS and OBJECT args.
14620
14621 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14622 POS and OBJECT args.
14623
146242008-02-01 Jason Rumney <jasonr@gnu.org>
14625
14626 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14627 of GlobalAlloc'ed memory.
14628
146292008-02-01 Kenichi Handa <handa@m17n.org>
14630
14631 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14632
14633 * charset.h (charset_table_used): Delete extern.
14634
14635 * charset.c (charset_table_used): Make it static.
14636 (map_charset_chars): Fix args to c_function with.
14637
14638 * chartab.c (map_sub_char_table_for_charset): Fix args to
14639 c_function with.
14640
14641 * coding.h (enum coding_result_code): Delete
14642 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14643
14644 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14645 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14646 (Vlast_code_conversion_error): New variables.
14647 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14648 (ONE_MORE_BYTE): Record error if any instead of signaling an
14649 error. If non-ASCII multibyte char is found, return the negative
14650 value of the code. All callers changed to check it.
14651 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14652 (record_conversion_result): New function. Change all codes setting
14653 coding->result to call this function.
14654 (detect_coding_utf_8, decode_coding_utf_8)
14655 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14656 Don't use the local variable incomplete.
14657 (emacs_mule_char): Change the second arg to `const'.
14658 (decode_coding): Fix of flushing out unprocessed data.
14659 (make_conversion_work_buffer): Fix making of a work buffer.
14660 (decode_coding_object): Return coding->dst_object.
14661
14662 * fontset.c (set_fontset_font): Fix args.
14663
14664 * lisp.h (CHARACTERBITS): Define as 22.
14665
14666 * process.c (send_process): Be sure to set coding->src_multibyte.
14667
14668 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14669
146702008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * xdisp.c (handle_auto_composed_prop): Give limit to
14673 Fnext_single_char_property_change.
14674
146752008-02-01 Kenichi Handa <handa@m17n.org>
14676
14677 * composite.c (syms_of_composite): Don't make the composition hash
14678 table weak.
14679
14680 * fontset.c (Fset_fontset_font): Fix docstring.
14681
14682 * lisp.h (detect_coding_system): Adjust prototype.
14683
14684 * fileio.c (kill_workbuf_unwind): Delete this function.
14685 (Finsert_file_contents): Adjust the call of detect_coding_system.
14686 Get conversion_buffer by code_conversion_save. Use the macro
14687 CODING_MAY_REQUIRE_DECODING. After decoding, update
14688 coding_system.
14689
14690 * coding.h (make_conversion_work_buffer): Delete extern.
14691 (code_conversion_save): Extern it.
14692
14693 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14694 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14695 (decode_coding_utf_8): Don't do eol converion.
14696 (detect_coding_utf_16): Check coding->src_chars, not
14697 coding->src_bytes. Add heuristics for those that have no signature.
14698 (decode_coding_emacs_mule, decode_coding_iso_2022)
14699 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14700 Don't do eol converion.
14701 (adjust_coding_eol_type): Return a new coding system.
14702 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14703 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14704 each change.
14705 (decode_coding): Pay attention to undo_list. Do eol conversion for
14706 all types of coding-systems (if necessary).
14707 (Vcode_conversion_work_buf_list): Delete it.
14708 (Vcode_conversion_reused_workbuf): Rename from
14709 Vcode_conversion_reused_work_buf.
14710 (Vcode_conversion_workbuf_name): New variable.
14711 (reused_workbuf_in_use): New variable.
14712 (make_conversion_work_buffer): Delete the arg DEPTH.
14713 (code_conversion_restore): Change argument to cons.
14714 (code_conversion_save): Delete the argument BUFFER. Change callers.
14715 (detect_coding_system): New argument src_chars. Change callers.
14716 Fix for utf-16 detection.
14717 (init_coding_once): Don't use ISO_carriage_return.
14718 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14719 reused_workbuf_in_use.
14720
147212008-02-01 Kenichi Handa <handa@m17n.org>
14722
14723 * keymap.c (store_in_keymap): Pay attention to the case that idx
14724 is a cons specifying a character range.
14725
147262008-02-01 Kenichi Handa <handa@m17n.org>
14727
14728 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14729 HANDLED_RECOMPUTE_PROPS.
14730
14731 * coding.c (Fdefine_coding_system_internal): Fix checking of
14732 ascii compatibility.
14733
147342008-02-01 Kenichi Handa <handa@m17n.org>
14735
14736 * charset.c (find_charsets_in_text): Delete unused locale variable.
14737 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14738
14739 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14740 Resync charset_list to Vemacs_mule_charset_list.
14741
14742 * keymap.c (store_in_keymap): Pay attention to the case that idx
14743 is a cons specifying a character range.
14744
147452008-02-01 Kenichi Handa <handa@m17n.org>
14746
14747 * composite.c (update_compositions): Bind inhibit-read-only, etc
14748 to t before calling remove-list-of-text-properties.
14749
14750 * print.c (print_object): Always print ASCII chars as is.
14751
147522008-02-01 Kenichi Handa <handa@m17n.org>
14753
14754 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14755
14756 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14757 is a char table.
14758
147592008-02-01 Kenichi Handa <handa@m17n.org>
14760
14761 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14762
147632008-02-01 Kenichi Handa <handa@m17n.org>
14764
14765 * xfaces.c (set_lface_from_font_name): Fix for the case that
14766 FONTNAME is not fontset name.
14767
147682008-02-01 Kenichi Handa <handa@m17n.org>
14769
14770 * fns.c (base64_encode_1): Fix previous change.
14771
147722008-02-01 Kenichi Handa <handa@m17n.org>
14773
14774 * fontset.c (set_fontset_font): New function.
14775 (Fset_fontset_font): If a font is specified for a charset, use
14776 map_charset_chars to store the font spec in a fontset.
14777
147782008-02-01 Kenichi Handa <handa@m17n.org>
14779
14780 * fontset.c (fontset_face): Create a fallback fontset on demand.
14781 (make_fontset): Don't create a fallback fontset here.
14782 (free_face_fontset): Free a fallback fontset (if any) too.
14783 (n_auto_fontsets): Delete this variable.
14784 (auto_fontset_alist): New variable.
14785 (new_fontset_from_font_name): Check auto_fontset_alist.
14786 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14787 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14788 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14789 Defsubr Sfontset_list_all.
14790
147912008-02-01 Kenichi Handa <handa@m17n.org>
14792
14793 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14794
147952008-02-01 Kenichi Handa <handa@m17n.org>
14796
14797 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14798
147992008-02-01 Kenichi Handa <handa@m17n.org>
14800
14801 * editfns.c (Fgoto_char): Fix docstring.
14802
148032008-02-01 Kenichi Handa <handa@m17n.org>
14804
14805 * insdel.c (insert_from_gap): Adjust intervals correctly.
14806
148072008-02-01 Jason Rumney <jasonr@gnu.org>
14808
14809 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14810 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14811 (w32_initialize): Try to load it.
14812 (x_get_font_repertory): Use it if available.
14813 (w32_encode_char): Add shortcut for unicode output.
14814
14815 * w32fns.c (w32_load_system_font): Default charset to -1.
14816 (x_to_w32_charset): Match all fonts for unicode.
14817 (w32_to_x_charset): New parameter matching. Don't return partial
14818 or wildcard charsets.
14819 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14820 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14821 (w32_to_x_font): Match charset to real charset.
14822 (enum_font_cb2): Always list unicode versions.
14823
14824 * makefile.w32-in (temacs): Increase EMHEAP.
14825
148262008-02-01 Jason Rumney <jasonr@gnu.org>
14827
14828 * w32term.c (w32_encode_char): New charset parameter.
14829 font_info.encoding becomes encoding_type.
14830 (x_get_font_repertory): New function. Warning: stub only!
14831 (x_new_font): Return quickly if font already set.
14832 (x_new_fontset): fontsetname parameter is Lisp_Object.
14833 Use new fs_query_fontset. Try new_fontset_from_font_name.
14834 Use fontset_name for return value.
14835
14836 * w32term.h: Declare x_get_font_repertory.
14837
14838 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14839 place of find_charset_in_text. Use encode_coding_object in place
14840 of encode_coding.
14841 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14842 decode_coding.
14843
14844 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14845 of x_new_fontset.
14846 (w32_load_system_font): Initialize charset as unicode.
14847 font_info.encoding becomes encoding_type.
14848 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14849 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14850 (syms_of_w32fns): Set get_font_repertory_func.
14851
14852 * w32console.c: Include character.h. Use terminal_encode_buffer
14853 from term.c.
14854 (write_glyphs): Use new version of encode_terminal_code. Use
14855 encode_coding_object in place of encode_coding.
14856
14857 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14858 encoding becomes encoding_type.
14859
14860 * term.c (terminal_encode_buffer): Make externally visible.
14861
14862 * makefile.w32-in: Add character.h dependancies.
14863 (character.o, chartab.o): New targets.
14864
148652008-02-01 Kenichi Handa <handa@m17n.org>
14866
14867 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14868 CODING_ID_EOL_TYPE.
14869
148702008-02-01 Andreas Schwab <schwab@suse.de>
14871
14872 * coding.c (produce_chars): Revert last change.
14873
148742008-02-01 Kenichi Handa <handa@m17n.org>
14875
14876 * charset.h (charset_unicode): Extern it.
14877
14878 * charset.c (string_xstring_p): Check by (C >= 0x100).
14879 (find_charsets_in_text): Change format of the arc CHARSETS. New
14880 arg MULTIBYTE.
14881 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14882 change of find_charsets_in_text.
14883 (Fsplit_char): Fix doc. Never return unknown.
14884
14885 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14886
14887 * coding.c (Fdefine_coding_system_alias): Update
14888 Vcoding_system_list.
14889
14890 * fontset.c (load_font_get_repertory): Pay attention to the case
14891 that ENCODING of a font is specified by a char-table.
14892
14893 * xterm.c (x_get_font_repertory): Handle the case that the
14894 encoding of font is other than Unicode.
14895
148962008-02-01 Kenichi Handa <handa@m17n.org>
14897
14898 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14899 if a character is encodable by the terminal coding system. If
14900 not, produces proper number of `?'s. Update
14901 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14902 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14903
149042008-02-01 Kenichi Handa <handa@m17n.org>
14905
14906 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14907 variables.
14908 (encode_terminal_code): Change argument. Encode multiple
14909 characters at once. Store the result of encoding in
14910 terminal_encode_buffer.
14911 (write_glyphs, insert_glyphs): Adjust for the change of
14912 encode_terminal_code.
14913 (term_init): Initialize terminal_encode_buffer and
14914 terminal_encode_buf_size.
14915
14916 * coding.c (consume_chars): If coding->src_object is nil, don't
14917 check annotation.
14918
149192008-02-01 Kenichi Handa <handa@m17n.org>
14920
14921 * character.c (char_string): Use ASCII_CHAR_P instead of
14922 SINGLE_BYTE_CHAR_P.
14923
149242008-02-01 Kenichi Handa <handa@m17n.org>
14925
14926 * xdisp.c (handle_auto_composed_prop): Check if the last
14927 characters of auto-composed region is newly composed with the
14928 following characters.
14929 (handle_composition_prop): Fix checking of point being inside
14930 composition.
14931
149322008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * fns.c (concat): Don't change multibyteness of the result by
14935 concatenating an 8-bit character.
14936
14937 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14938 multibyteness of the result when newelt is an 8-bit character.
14939
149402008-02-01 Dave Love <fx@gnu.org>
14941
14942 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14943 EMACS_INT.
14944
14945 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14946
14947 * xfaces.c (face_numeric_value): Declare dim size_t.
14948 (Finternal_lisp_face_equal_p): Remove unused f.
14949
14950 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14951 (MATRIX_ROW): Remove unused vars.
14952 (draw_glyphs, x_insert_glyphs, fast_find_position)
14953 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14954 byte/char counts.
14955
14956 * regex.c (regex_compile): Remove unused var.
14957
14958 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14959
14960 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14961 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14962
14963 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14964
14965 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14966
14967 * fileio.c (Fwrite_region): Remove unused var.
14968
14969 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14970 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14971
14972 * composite.c (Fremove_list_of_text_properties): Declare.
14973
14974 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14975 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14976 (coding_inherit_eol_type): Remove unused attrs.
14977 (detect_coding): Cast arg of detect_eol.
14978
14979 * charset.c (syms_of_charset): Remove unused var p.
14980 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14981 byte/char counts.
14982
14983 * casetab.c (set_case_table): Remove unused var.
14984
14985 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14986 unused vars.
14987
149882008-02-01 Dave Love <fx@gnu.org>
14989
14990 * xterm.c (x_bitmap_mask): Declare.
14991
149922008-02-01 Dave Love <fx@gnu.org>
14993
14994 * xterm.c (x_term_init): Fix type error.
14995
14996 * lisp.h: Add Funibyte_char_to_multibyte.
14997
14998 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14999 (Fset_coding_system_priority): Doc fix.
15000
15001 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15002
15003 * indent.c (check_composition): Make start and end EMACS_INT.
15004
15005 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15006
15007 * xdisp.c (handle_composition_prop, check_point_in_composition):
15008 Make buffer positions EMACS_INT.
15009
15010 * composite.c (find_composition, run_composition_function)
15011 (update_compositions, Ffind_composition_internal): Make buffer
15012 positions EMACS_INT.
15013
15014 * composite.h (find_composition, update_compositions): Make
15015 position args EMACS_INT.
15016
15017 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15018
15019 * intervals.c (get_property_and_range):
15020 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15021
15022 * unexalpha.c: Don't include varargs.h.
15023
150242008-02-01 Dave Love <fx@gnu.org>
15025
15026 * coding.h (ENCODE_UTF_8): New.
15027
15028 * Makefile.in (gtkutil.o): Depend on coding.h.
15029
15030 * coding.c (Fset_coding_system_priority): Doc fix.
15031
150322008-02-01 Kenichi Handa <handa@m17n.org>
15033
15034 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15035 the case of auto saving.
15036
150372008-02-01 Andreas Schwab <schwab@suse.de>
15038
15039 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15040 `range' from GC.
15041
150422008-02-01 Kenichi Handa <handa@m17n.org>
15043
15044 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15045
150462008-02-01 Kenichi Handa <handa@m17n.org>
15047
15048 * fileio.c (choose_write_coding_system): Return a decided coding system.
15049 (Fwrite_region): Set Vlast_coding_system_used to the return value
15050 of choose_write_coding_system.
15051
150522008-02-01 Kenichi Handa <handa@m17n.org>
15053
15054 * charset.c (Fset_charset_priority): Pay attention to duplicated
15055 arguments.
15056
15057 * coding.c (QCcategory): New variable.
15058 (syms_of_coding): Defsym it. Set all elements of
15059 Vcoding_category_table and their symbol values.
15060 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15061 coding-category-XXX, and coding-category-list.
15062 (Fdefine_coding_system_internal): Add category in the plist.
15063
150642008-02-01 Kenichi Handa <handa@m17n.org>
15065
15066 * callproc.c (Fcall_process): Handle carryover correctly.
15067
15068 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15069 (raw_text_coding_system): Check NILP (coding_system).
15070 (coding_inherit_eol_type): Check NILP (coding_system) and
15071 NILP (parent).
15072 (consume_chars): Fix for the case of raw-text.
15073
15074 * process.c (read_process_output): Handle carryover correctly.
15075
150762008-02-01 Dave Love <fx@gnu.org>
15077
15078 * regex.c (re_search_2): Fix last change.
15079
150802008-02-01 Kenichi Handa <handa@m17n.org>
15081
15082 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15083 target_multibyte. Even in a unibyte case, return a converted
15084 multibyte char.
15085 (GET_CHAR_AFTER): New macro.
15086 (PATFETCH): Translate via multibyte char.
15087 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15088 (SETUP_MULTIBYTE_RANGE): New macro.
15089 (regex_compile): Setup compiled code so that its multibyteness
15090 matches that of a target. Fix the handling of "[X-YZ]" using
15091 SETUP_MULTIBYTE_RANGE.
15092 (analyse_first) <charset>: For filling fastmap for all multibyte
15093 characters, don't check by BASE_LEADING_CODE_P.
15094 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15095 the same as RE_MULTIBYTE_P (bufp) now.
15096 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15097 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15098 (TRANSLATE_VIA_MULTIBYTE): New macro.
15099 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15100 It is the same as RE_MULTIBYTE_P (bufp) now.
15101 <exactn>: Translate via multibyte.
15102 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15103 translate it.
15104 <charset, charset_not>: Fetch a character by
15105 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15106 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15107 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15108 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15109 by GET_CHAR_AFTER.
15110 (bcmp_translate): Likewise.
15111
15112 * search.c (compile_pattern): Check the member target_multibyte,
15113 not the member multibyte of buf.
15114
15115 * lread.c (read1): While reading a string, set force_singlebyte
15116 and force_multibyte correctly.
15117
15118 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15119 up of unibyte_to_multibyte_table.
15120
151212008-02-01 Kenichi Handa <handa@m17n.org>
15122
15123 * coding.c (setup_coding_system): If coding has
15124 post-read-conversion or pre-write-conversion, set
15125 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15126 respectively.
15127 (decode_coding_gap): Run post-read-conversion if any.
15128
15129 * fileio.c (Finsert_file_contents): Even if we read into a
15130 unibyte buffer, check if we must decode the result or not.
15131
151322008-02-01 Kenichi Handa <handa@m17n.org>
15133
15134 * coding.c (make_conversion_work_buffer): Change the work buffer
15135 name to the same one as that of Emacs 21.
15136
151372008-02-01 Kenichi Handa <handa@m17n.org>
15138
15139 * coding.h (make_conversion_work_buffer): Adjust prototype.
15140 (code_conversion_restore): Don't extern it.
15141
15142 * coding.c (detected_mask): Delete unused variable.
15143 (decode_coding_iso_2022): Pay attention to the byte sequence of
15144 CTEXT extended segment, and retain those bytes as is.
15145 (decode_coding_ccl): Delete unused variable `valids'.
15146 (setup_coding_system): Delete unused variable `category'.
15147 (consume_chars): Delete unused variable `category'. Make it work
15148 for non-multibyte case.
15149 (make_conversion_work_buffer): Change argument.
15150 (saved_coding): Delete unused variable.
15151 (code_conversion_restore): Don't check saved_coding->destination.
15152 (code_conversion_save): New function.
15153 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15154 instead of record_unwind_protect.
15155 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15156 (detect_coding_system): Delete unused variable `mask'.
15157 (Fdefine_coding_system_internal): Delete unused variable id.
15158
15159 * fileio.c (kill_workbuf_unwind): New function.
15160 (Finsert_file_contents): On replacing, call
15161 make_conversion_work_buffer with correct args, and call
15162 record_unwind_protect with the first arg kill_workbuf_unwind.
15163
15164 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15165
151662008-02-01 Kenichi Handa <handa@m17n.org>
15167
15168 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15169 (fontset_add): Fix for the case that TO is less than TO1.
15170 (Ffontset_info): Don't use fallback fontset on checking the
15171 default fontset.
15172 (dump_fontset): New function for debugging.
15173
15174 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15175 coding_type is Qcharset.
15176
151772008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15180 (map_char_table): Don't inherit the value from the parent on
15181 initializing VAL. Adjust for the above change.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * coding.c (Qsignature, Qendian): Delete these variables.
15186 (syms_of_coding): Don't initialize them.
15187 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15188 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15189 detect_info->found.
15190 (decode_coding_utf_16): Don't detect BOM here.
15191 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15192 is NOT utf_16_without_bom.
15193 (setup_coding_system): For a coding system of type utf-16, check
15194 if the attribute :endian is Qbig or not (not nil or not), and set
15195 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15196 (detect_coding): If coding type is utf-16 and BOM detection is
15197 required, detect it.
15198 (Fdefine_coding_system_internal): For a coding system of type
15199 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15200
152012008-02-01 Kenichi Handa <handa@m17n.org>
15202
15203 * coding.c (coding_set_source): Fix for the case that the current
15204 buffer is different from coding->src_object.
15205 (decode_coding_object): Don't use the conversion work buffer if
15206 DST_OBJECT is a buffer.
15207
152082008-02-01 Dave Love <fx@gnu.org>
15209
15210 * lread.c (read_emacs_mule_char) [len==2]: Index
15211 emacs_mule_charset correctly.
15212
152132008-02-01 Dave Love <fx@gnu.org>
15214
15215 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15216 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15217 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15218 treated specially.)
15219 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15220 (detected_mask): Remove Big5 bits.
15221
152222008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 The following changes are to make the font rescaling facility
15225 compatible with Emacs 21.
15226
15227 * xfaces.c (Vface_font_rescale_alist): Rename from
15228 Vface_resizing_fonts.
15229 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15230 (font_rescale_ratio): Rename from font_resizing_ratio.
15231 (split_font_name): Set font->rescale_ratio.
15232 (better_font_p): Pay attention to font->rescale_ratio.
15233 (build_scalable_font_name): Likewise. Change RESX, and RESY
15234 fields.
15235 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15236
152372008-02-01 Kenichi Handa <handa@m17n.org>
15238
15239 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15240 (Qutf_16_le): Remove these variables.
15241 (syms_of_coding): Don't DEFSYM them.
15242 (decode_coding_utf_16): Fix handling of BOM.
15243 (encode_coding_utf_16): Fix handling of BOM.
15244
152452008-02-01 Kenichi Handa <handa@m17n.org>
15246
15247 * fileio.c (Finsert_file_contents): On replacing, before decoding
15248 the file into the work buffer, set point of the work buffer to the end.
15249
152502008-02-01 Dave Love <fx@gnu.org>
15251
15252 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15253
152542008-02-01 Dave Love <fx@gnu.org>
15255
15256 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15257 and fix C types.
15258
152592008-02-01 Kenichi Handa <handa@m17n.org>
15260
15261 * xdisp.c (SKIP_GLYPHS): New macro.
15262 (set_cursor_from_row): Pay attention to string display properties.
15263
15264 * category.c (copy_category_entry): Fix for the case that RANGE
15265 is an integer.
15266
15267 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15268
15269 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15270
152712008-02-01 Kenichi Handa <handa@m17n.org>
15272
15273 * charset.c (Fcharset_id_internal): New function.
15274 (syms_of_charset): Defsubr it.
15275
15276 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15277 with the last arg charset_list acquired from coding.
15278 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15279 the attribute coding_attr_ccl_valids.
15280
15281 * coding.h (enum define_coding_ccl_arg_index): Set the first
15282 member coding_arg_ccl_decoder to coding_arg_max.
15283
15284 * ccl.h (ccl_driver): Adjust prototype.
15285
15286 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15287 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15288 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15289 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15290 last arg Qnil.
15291
152922008-02-01 Kenichi Handa <handa@m17n.org>
15293
15294 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15295 call encode_char.
15296
15297 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15298
152992008-02-01 Dave Love <fx@gnu.org>
15300
15301 * composite.c (syms_of_composite): Make composition_hash_table weak.
15302
153032008-02-01 Kenichi Handa <handa@m17n.org>
15304
15305 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15306 (font_name_registry): Don't extern them.
15307 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15308
15309 * fontset.h (Qfontset): Don't extern it.
15310 (new_fontset_from_font_name): Extern it.
15311
15312 * fontset.c: Give 8 extra slots to fontset objects.
15313 (Qfontset_info): New variable.
15314 (syms_of_fontset): Defsym it.
15315 (FONTSET_FALLBACK): New macro.
15316 (fontset_face): Try also the default fontset.
15317 (make_fontset): Realize a fallback fontset from the default fontset.
15318 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15319 using split_font_name_into_vector and build_font_name_from_vector.
15320 (Fset_fontset_font): Access the elements of font_spec by enum
15321 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15322 name by using split_font_name_into_vector.
15323 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15324 generate a proper font name from the fontset name. Update
15325 Vfontset_alias_alist.
15326 (n_auto_fontsets): New variable.
15327 (new_fontset_from_font_name): New function.
15328 (Ffont_info): Store the information about fonts generated from the
15329 default fontset in the first extra slot of the returned char-table.
15330
15331 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15332 (font_name_registry): Delete function.
15333 (split_font_name_into_vector): New function.
15334 (build_font_name_from_vector): New function.
15335 (font_list): The argument REGISTRY is now a list of registry names.
15336 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15337 specifies an explicit font name, return the name as is. Make a
15338 list of registy names.
15339
15340 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15341 of x_new_fontset.
15342 (Fx_create_frame): Don't call x_new_fontset here. Just use
15343 x_list_fonts to check the existence of fonts.
15344
15345 * xterm.h (x_new_fontset): Adjust prototype.
15346
15347 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15348 string. Use new_fontset_from_font_name to create a fontset from a
15349 font name.
15350
153512008-02-01 Kenichi Handa <handa@m17n.org>
15352
15353 * syntax.c (Vfind_word_boundary_function_table): New name for
15354 Vnext_word_boundary_function_table.
15355 (find-word-boundary-function-table): New name for
15356 next-word-boundary-function-table.
15357
153582008-02-01 Dave Love <fx@gnu.org>
15359
15360 * Makefile.in: Fix some dependencies.
15361
15362 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15363 set it to nil before returning.
15364
15365 * composite.c (update_compositions): Fix type error.
15366
15367 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15368
153692008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * xterm.c (x_new_font): Optimize for the case that the font is
15372 already set for the frame.
15373
153742008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * chartab.c (char_table_ascii): Check if the char table contents
15377 is sub-char-table or not.
15378 (char_table_set, char_table_set_range): Fix argument to
15379 char_table_ascii.
15380
15381 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15382 (detect_coding_utf_8, detect_coding_utf_16)
15383 (detect_coding_emacs_mule, detect_coding_iso_2022)
15384 (detect_coding_sjis, detect_coding_big5)
15385 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15386 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15387 sequence is valid in this coding system. Change callers.
15388 (MAX_ANNOTATION_LENGTH): New macro.
15389 (ADD_ANNOTATION_DATA): New macro.
15390 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15391 ADD_ANNOTATION_DATA. Change the format of annotation data.
15392 (ADD_CHARSET_DATA): New macro.
15393 (emacs_mule_char): New argument ID. Change callers.
15394 (decode_coding_emacs_mule, decode_coding_iso_2022)
15395 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15396 Produce charset annotation data in coding->charbuf.
15397 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15398 to charset annotation data in coding->charbuf.
15399 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15400 coding->common_flags if the coding system is iso-2022 based and
15401 uses designation.
15402 (produce_composition): Adjust for the new annotation data format.
15403 (produce_charset): New function.
15404 (produce_annotation): Handle charset annotation.
15405 (handle_composition_annotation, handle_charset_annotation): New
15406 functions.
15407 (consume_chars): Handle charset annotation. Utilize the above two
15408 functions.
15409 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15410 buffer, get the deleted text as a string and set
15411 coding->src_object to that string.
15412 (detect_coding, detect_coding_system): Use the new struct
15413 coding_detection_info.
15414
15415 * coding.h (struct coding_detection_info): New structure.
15416 (struct coding_system): Adjust prototype of the member `detector'.
15417 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15418
154192008-02-01 Kenichi Handa <handa@m17n.org>
15420
15421 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15422
154232008-02-01 Dave Love <fx@gnu.org>
15424
15425 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15426 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15427 to new local and nullify apropos_accumulate before returning.
15428 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15429
154302008-02-01 Kenichi Handa <handa@m17n.org>
15431
15432 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15433 correctly.
e3eea1fc 15434
aac0c6e3
MR
154352008-02-01 Dave Love <fx@gnu.org>
15436
15437 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15438
154392008-02-01 Kenichi Handa <handa@m17n.org>
15440
15441 The following changes are to make character composition happen
15442 automatically on displaying.
15443
15444 * Makefile.in (lisp, shortlisp): Add composite.elc.
15445
15446 * composite.h (Qauto_composed, Vauto_composition_function)
15447 (Qauto_composition_function): Extern them.
15448
15449 * composite.c (Vcomposition_function_table)
15450 (Qcomposition_function_table): Delete variables.
15451 (Qauto_composed, Vauto_composition_function)
15452 (Qauto_composition_function): New variables.
15453 (run_composition_function): Don't call
15454 compose-chars-after-function.
15455 (update_compositions): Clear `auto-composed' text property.
15456 (compose_chars_in_text): Delete this function.
15457 (syms_of_composite): Staticpro Qauto_composed and
15458 Qauto_composition_function. Declare Vauto_composition_function as
15459 a Lisp variable.
15460
15461 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15462
15463 * xdisp.c (it_props): Add an entry for Qauto_composed.
15464 (handle_auto_composed_prop): New function.
15465
15466 * xselect.c (selection_data_to_lisp_data): Don't call
15467 compose_chars_in_text.
15468
154692008-02-01 Dave Love <fx@gnu.org>
15470
15471 * keyboard.c (read_char): Modify checking around use of
15472 Vkeyboard_translate_table.
15473
15474 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15475 and fix C types.
15476
154772008-02-01 Kenichi Handa <handa@m17n.org>
15478
15479 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15480 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15481 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15482 the case that the last byte is '\r' correctly.
15483 (decode_coding): Flush out the unprocessed data correctly.
15484 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15485
154862008-02-01 Dave Love <fx@gnu.org>
15487
15488 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15489 Add XK_ISO... case.
15490 (xaw_scroll_callback): Revert last change.
15491
154922008-02-01 Kenichi Handa <handa@m17n.org>
15493
15494 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15495
154962008-02-01 Kenichi Handa <handa@m17n.org>
15497
15498 * xfaces.c (Vface_resizing_fonts): New variable.
15499 (struct font_name): New member `resizing_ratio'.
15500 (font_resizing_ratio): New function.
15501 (split_font_name): Set font->resizing_ratio.
15502 (better_font_p): Pay attention to font->resizing_ratio.
15503 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15504 RESX, and RESY fields.
15505 (try_alternative_families): Try scalable fonts if
15506 Vscalable_fonts_allowed is not Qt.
15507 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15508
155092008-02-01 Dave Love <fx@gnu.org>
15510
15511 * xterm.c (xaw_scroll_callback): Cast correctly.
15512
155132008-02-01 Dave Love <fx@gnu.org>
15514
15515 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15516 (lispy_kana_keys): Comment out.
15517 (make_lispy_event) [XK_kana_A]: Comment out.
15518
15519 * xterm.c (xaw_scroll_callback): Cast call_data.
15520 (XTread_socket): Deal with ASCII keysyms.
15521 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15522
155232008-02-01 Dave Love <fx@gnu.org>
15524
15525 * xterm.c (Vx_keysym_table): New.
15526 (syms_of_xterm): Initialize it.
15527 (XTread_socket): Use it.
15528 From head: Eliminate incorrect optimization that tried to avoid
15529 decoding the output of X*LookupString.
15530 (x_get_font_repertory): Delete charset declaration.
15531
155322008-02-01 Kenichi Handa <handa@m17n.org>
15533
15534 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15535 return 0.
15536 (Fdefine_coding_system_internal): Setup
15537 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15538
155392008-02-01 Dave Love <fx@gnu.org>
15540
15541 * coding.c (Fcheck_coding_system): Doc fix.
15542
15543 * editfns.c (Finsert_byte): Return a proper value.
15544
155452008-02-01 Kenichi Handa <handa@m17n.org>
15546
15547 * coding.c (decode_coding): Fix args to translate_chars. Pay
15548 attention to Vstandard_translation_table_for_decode.
15549 (encode_coding): Fix args to translate_chars. Pay attention to
15550 Vstandard_translation_table_for_encode.
15551
15552 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15553 SINGLE_BYTE_CHAR_P.
15554
15555 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15556 not by SINGLE_BYTE_CHAR_P.
15557
15558 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15559 SINGLE_BYTE_CHAR_P.
15560
15561 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15562 SINGLE_BYTE_CHAR_P.
15563
15564 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15565 by SINGLE_BYTE_CHAR_P.
15566
15567 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15568 SINGLE_BYTE_CHAR_P.
15569
155702008-02-01 Dave Love <fx@gnu.org>
15571
15572 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15573
155742008-02-01 Dave Love <fx@gnu.org>
15575
15576 * fns.c (Flanginfo): Fix typo.
15577
15578 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15579
155802008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15583 (detect_coding_emacs_mule, detect_coding_iso_2022)
15584 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15585 incomplete byte sequence. Don't update *mask when correctly detected.
15586 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15587 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15588 (detect_coding, detect_coding_system): Adjust for the changes above.
15589
155902008-02-01 Kenichi Handa <handa@m17n.org>
15591
15592 * character.c (char_string): Rename from
15593 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15594 (string_char): Rename from string_char.
15595
15596 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15597 if C is greater than MAX_3_BYTE_CHAR.
15598 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15599 string_char instead of string_char_with_unification.
15600
156012008-02-01 Dave Love <fx@gnu.org>
15602
15603 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15604
156052008-02-01 Kenichi Handa <handa@m17n.org>
15606
15607 * keymap.c (push_key_description): Pay attention to force_multibyte.
15608
15609 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15610
156112008-02-01 Dave Love <fx@gnu.org>
15612
15613 * charset.c (define_charset_internal): Rename `supprementary'.
15614
15615 * Makefile.in (lisp, shortlisp): Remove latin-N.
15616
156172008-02-01 Dave Love <fx@gnu.org>
15618
15619 * xfns.c (x_window, x_window): Use use_xim.
15620
15621 * xterm.c (use_xim): Initialize.
15622 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15623 (x_term_init): Maybe set use_xim.
15624
15625 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15626
156272008-02-01 Kenichi Handa <handa@m17n.org>
15628
15629 * search.c (search_buffer): Fix case-fold-search of multibyte
15630 characters.
15631 (boyer_moore): Rename the last argument to char_high_bits.
15632
156332008-02-01 Kenichi Handa <handa@m17n.org>
15634
15635 * xdisp.c (display_string): Fix for the case of zero width glyph.
15636
15637 * xfns.c (x_set_font): Change the error message of the case that
15638 x_new_fontset returns Qt.
15639
15640 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15641 (Finternal_set_lisp_face_attribute): Use signal_error for the
15642 error of invalid fontset.
15643
15644 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15645 fontset, return Qt.
15646
156472008-02-01 Dave Love <fx@gnu.org>
15648
15649 * unexelf.c (unexec): Make .got handling not SGI-specific.
15650
15651 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15652
15653 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15654
15655 * keyboard.c (read_key_sequence): Fix type error.
15656
15657 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15658 type error.
15659
15660 * fontset.c (fontset_add): Return Lisp_Object.
15661
156622008-02-01 Dave Love <fx@gnu.org>
15663
15664 * charset.h (charset_ordered_list_tick): Declare extern.
15665
156662008-02-01 Kenichi Handa <handa@m17n.org>
15667
15668 The following changes (and some of 2008-02-01 changes of mine) are
15669 for handling syntax, category, and case conversion for unibyte
15670 characters by converting them to multibyte on the fly. With these
15671 changes, we don't have to setup syntax and case tables for unibyte
15672 characters in each language environment.
15673
15674 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15675 multibyte if necessary.
15676
15677 * bytecode.c (Fbyte_code): Likewise.
15678
15679 * character.h (LEADING_CODE_LATIN_1_MIN)
15680 (LEADING_CODE_LATIN_1_MAX): New macros.
15681 (unibyte_to_multibyte_table): Extern it.
15682 (unibyte_char_to_multibyte): New macro.
15683 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15684 (CHAR_LEADING_CODE): New macro.
15685 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15686
15687 * character.c (unibyte_to_multibyte_table): New variable.
15688 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15689 (multibyte_char_to_unibyte): If C is an eight-bit character,
15690 convert it to the corresponding byte value.
15691
15692 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15693 not 1, signals an error. Update the elements of
15694 unibyte_to_multibyte_table.
15695 (init_charset_once): Initialize unibyte_to_multibyte_table.
15696 (syms_of_charset): Define the charset `iso-8859-1'.
15697
15698 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15699 as is without converting it to unibyte. In a unibyte buffer,
15700 convert C to multibyte before checking the syntax.
15701
15702 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15703
15704 * minibuf.c (Fminibuffer_complete_word): Use the macro
15705 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15706
15707 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15708
15709 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15710 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15711 that is zero, convert an eight-bit char to multibyte.
15712 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15713 non-emacs case.
15714 (PATFETCH): Convert an eight-bit char to multibyte.
15715 (HANDLE_UNIBYTE_RANGE): New macro.
15716 (regex_compile): Setup the compiled pattern for multibyte chars
15717 even if the given regex string is unibyte. Use PATFETCH_RAW
15718 instead of PATFETCH in many places. To handle `charset'
15719 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15720 only for ASCII chars.
15721 (analyse_first) <exactn>: Simplify because the compiled pattern
15722 is multibyte.
15723 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15724 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15725 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15726 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15727 multibyte always 1.
15728 (re_search_2): In emacs, set the locale variable multibyte to 1,
15729 otherwise to 0. New local variable target_multibyte. Check it
15730 to decide the multibyteness of STR1 and STR2. If
15731 target_multibyte is zero, convert unibyte chars to multibyte
15732 before translating and checking fastmap.
15733 (TARGET_CHAR_AND_LENGTH): New macro.
15734 (re_match_2_internal): In emacs, set the locale variable multibyte
15735 to 1, otherwise to 0. New local variable target_multibyte. Check
15736 it to decide the multibyteness of STR1 and STR2. Use
15737 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15738 <charset, charset_not>: If multibyte is nonzero, check fastmap
15739 only for ASCII chars. Call bcmp_translate with
15740 target_multibyte, not with multibyte.
15741 <begline>: Declare the local variable C as `unsigned'.
15742 (bcmp_translate): Change the last arg name to target_multibyte.
15743
15744 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15745 the regexp pattern and the matching target. Set cp->buf.multibyte
15746 to the multibyteness of the regexp pattern. Set
15747 cp->but.target_multibyte to the multibyteness of the matching target.
15748 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15749 FETCH_STRING_CHAR_ADVANCE.
15750 (Freplace_match): Convert unibyte chars to multibyte.
15751
15752 * syntax.c (char_quoted, back_comment, scan_words)
15753 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15754 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15755 unibyte chars to multibyte.
15756 (skip_chars): Delete the arg syntaxp, and move the code for
15757 handling syntaxes to skip_syntaxes. Change callers.
15758 Fix the case that the multibyteness of STRING and the current
15759 buffer doesn't match.
15760 (skip_syntaxes): New function.
15761 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15762 SINGLE_BYTE_CHAR_P.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * xfaces.c (QCfontset): New variable.
15767 (LFACE_FONTSET): New macro.
15768 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15769 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15770 (Finternal_set_lisp_face_attribute)
15771 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15772 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15773 check also LFACE_FONTSET_INDEX.
15774 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15775 attrs[LFACE_FONT_INDEX].
15776 (syms_of_xfaces): Intern and staticpro QCfontset.
15777
15778 * dispextern.h (enum lface_attribute_index): New member
15779 LFACE_FONTSET_INDEX.
15780
15781 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15782
157832008-02-01 Kenichi Handa <handa@m17n.org>
15784
15785 * coding.c (coding_set_destination): Fix coding->destination for
15786 the case converting a region.
15787 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15788 (encode_coding_object): Fix coding->dst_pos and
15789 coding->dst_pos_byte for the case converting a region.
15790
15791 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15792
15793 * character.h (BYTE8_STRING): New macro.
15794
15795 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15800 characters by octal form.
15801
15802 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15803
15804 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15805 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15806 _fetch_multibyte_char_len.
15807 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15808
15809 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15810
15811 * casefiddle.c (casify_object): Simplify. Handle the case that
15812 the case conversion change the byte length.
15813 (casify_region): Likewise.
15814
15815 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15816
15817 * character.c (_fetch_multibyte_char_len): Delete this variable.
15818 (syms_of_character): Setup Vprintable_chars.
15819
15820 * editfns.c (Fchar_equal): Fix for the unibyte case.
15821 (Finsert_byte): New function.
15822 (syms_of_editfns): Defsubr it.
15823
15824 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15825 of direct code 0x3ffff.
15826
15827 * search.c (Freplace_match): Fix for the unibyte case.
15828
158292008-02-01 Kenichi Handa <handa@m17n.org>
15830
15831 * lread.c (safe_to_load_p): Fix the logic.
15832
15833 * syntax.c (scan_words): Don't treat characters belonging to
15834 different scripts as constituting a word.
15835
15836 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15837
15838 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15839
15840 * emacs.c (main): In the case of --unibyte, instead of aborting on
15841 finding non-empty buffer, make it unibyte.
15842
158432008-02-01 Kenichi Handa <handa@m17n.org>
15844
15845 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15846 to create a fontset.
15847
158482008-02-01 Dave Love <fx@gnu.org>
15849
15850 * character.c (Funibyte_char_to_multibyte): Doc fix.
15851
15852 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15853
158542008-02-01 Kenichi Handa <handa@m17n.org>
15855
15856 * fontset.c (fontset_add): Make the type `int'.
15857 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15858
15859 * character.c (unibyte_char_to_multibyte)
15860 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15861 charset_unibyte, not charset_primary.
15862
15863 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15864
15865 * charset.c (charset_unibyte): Rename from charset_primary.
15866 (Funibyte_charset): Rename from Fprimary_charset.
15867 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15868 (syms_of_charset): Adjust for the above changes.
15869
15870 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15871 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15872 it->multibyte_p is zero.
15873
15874 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15875 Delete extern.
15876
158772008-02-01 Kenichi Handa <handa@m17n.org>
15878
15879 * coding.c (Fdefine_coding_system_internal): Fix category setting
15880 for a coding system of type iso-2022.
15881
158822008-02-01 Kenichi Handa <handa@m17n.org>
15883
15884 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15885
158862008-02-01 Kenichi Handa <handa@m17n.org>
15887
15888 * syntax.c (Vnext_word_boundary_function_table): New variable.
15889 (next-word-boundary-function-table): Declare it as a Lisp variable
15890 in syms_of_syntax.
15891 (scan_words): Call functions in Vnext_word_boundary_function_table
15892 if any.
15893
15894 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15895
15896 * fontset.c (fs_load_font): If fontp->charset is not negative,
15897 return fontp without setting its members.
15898
158992008-02-01 Dave Love <fx@gnu.org>
15900
15901 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15902
15903 * m/sparc.h (HAVE_ALLOCA): Delete.
15904
15905 * s/irix6-5.h: Don't include strings.h.
15906 (bcopy, bzero, bcmp): Don't undef.
15907
15908 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15909
15910 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15911 (TIOCSIGSEND): Don't test IRIX6.
15912 (bcopy, bzero, bcmp): Define conditionally.
15913
159142008-02-01 Kenichi Handa <handa@m17n.org>
15915
15916 * buffer.c (Qas, Qmake, Qto): New variables.
15917 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15918 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15919
15920 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15921 we are inserting a process output into a multibyte buffer.
15922
15923 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15924 multibyte_char_to_unibyte.
15925
15926 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15927 by the primary charset, make it eight-bit char.
15928 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15929
15930 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15931 (charset_8_bit__control, charset_8_bit_graphic)
15932 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15933 (define_charset_internal): New function.
15934 (syms_of_charset): Call define_charset_internal for pre-defined
15935 charsets.
15936
15937 * charset.h (charset_8_bit): Extern it.
15938
15939 * coding.c (make_conversion_work_buffer): Adjust for the change
15940 of Fset_buffer_multibyte.
15941 (encode_coding_raw_text): Increment p0 in the loop.
15942
15943 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15944
15945 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15946 for the change of Fset_buffer_multibyte.
15947
15948 * fns.c (Fstring_to_multibyte): New function.
15949 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15950
159512008-02-01 Dave Love <fx@gnu.org>
15952
15953 * xfns.c (x_put_x_image): Declare args.
15954
15955 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15956 (try_font_list): Declare an arg.
15957
15958 * xdisp.c (message2_nolog, set_message): Declare an arg.
15959
15960 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15961
15962 * syntax.c (scan_sexps_forward): Declare an arg.
15963
15964 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15965 Declare an arg.
15966
15967 * lisp.h (Fnew_fontset): Declare.
15968
15969 * keymap.c (push_key_description): Call CHARACTERP correctly.
15970
15971 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15972 (face_for_char): Delete unused vars.
15973 (Fset_fontset_font): Doc fix. Delete unused vars.
15974
15975 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15976
15977 * composite.c (update_compositions): Declare arg.
15978
15979 * cm.c (calccost, cmgoto): Declare args.
15980
15981 * charset.c: Remove `emacs' conditional. Doc fixes.
15982 (map_char_table_for_charset): Declare.
15983
15984 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15985
15986 * ccl.c: Remove `emacs' conditional.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 The following changes are to allow specifying multiple font
15991 patterns for a character range (specified by script or charset).
15992
15993 * Makefile.in (abbrev.o): Depend on syntax.h.
15994 (xfaces.o): Depend on charset.h.
15995
15996 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15997 SINGLE_BYTE_CHAR_P.
15998
15999 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16000
16001 * character.h (Vchar_script_table): Extern it.
16002
16003 * character.c (Vscript_alist): Delete.
16004 (Vchar_script_table, Qchar_script_table): New variable.
16005 (syms_of_character): Declare Vchar_script_table as a lisp variable
16006 and initialize it.
16007
16008 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16009 have property char-table-extra-slots, make no extra slot.
16010
16011 * dispextern.h (struct face): Delete member `charset'.
16012 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16013 SINGLE_BYTE_CHAR_P.
16014 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16015 Add prototypes.
16016 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16017 (generate_ascii_font_name): Rename from generate_ascii_font.
16018
16019 * fontset.h (get_font_repertory_func): New prototype.
16020 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16021 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16022
16023 * fontset.c (Qprepend, Qappend): New variables.
16024 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16025 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16026 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16027 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16028 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16029 (load_font_get_repertory): New functions.
16030 (fontset_set): Delete.
16031 (fontset_face): New arg FACE. Return face ID, not face.
16032 Complete re-write to handle new fontset structure. Change caller.
16033 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16034 (face_for_char): Don't call lookup_face.
16035 (make_fontset_for_ascii_face): New arg FACE.
16036 (fs_load_font): New arg CHARSET_ID. Don't check
16037 Vfont_encoding_alist here.
16038 (find_font_encoding): New function.
16039 (list_fontsets): Use STRINGP, not ! NILP.
16040 (accumulate_script_ranges): New function.
16041 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16042 re-written to handle new fontset structure.
16043 (Ffontset_font): Return a copy of element.
16044 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16045 docstring of font-encoding-alist.
16046
16047 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16048 (Fset_fotset_font): Fix arguments to 5.
16049
16050 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16051
16052 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16053 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16054 (highlight_trailing_whitespace): Adjust for the change of
16055 lookup_named_face.
16056
16057 * xfaces.c: Include charset.h.
16058 (load_face_font): Delete argument C. Change caller.
16059 (generate_ascii_font_name): Rename from generate_ascii_font.
16060 (font_name_registry): New function.
16061 (cache_face): Store ascii faces before non-ascii faces in buckets.
16062 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16063 Lookup only ascii faces.
16064 (lookup_non_ascii_face): New function.
16065 (lookup_named_face): Delete argument C. Change caller.
16066 (lookup_derived_face): Delete argument C. Change caller.
16067 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16068 a string, just call font_list with it.
16069 (choose_face_font): Delete arguments FACE and C. New arg
16070 FONT_SPEC. Change caller.
16071 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16072 Change caller.
16073 (realize_non_ascii_face): New function.
16074 (realize_x_face): Call load_face_font here.
16075 (realize_tty_face): Delete argument C. Change caller.
16076 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16077 get a face ID.
16078 (dump_realized_face): Don't print charset of FACE.
16079
16080 * xfns.c (x_set_font): Always call x_new_fontset and
16081 store_frame_parameter.
16082 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16083 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16084
16085 * xterm.h (x_get_font_repertory): Extern it.
16086
16087 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16088 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16089 it->multibyte_p is zero.
16090 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16091 (x_new_fontset): If FONTSETNAME doesn't match any existing
16092 fontsets, create a new one.
16093 (x_get_font_repertory): New function.
16094
160952008-02-01 Kenichi Handa <handa@m17n.org>
16096
16097 * coding.c (Ffind_coding_systems_region_internal): Detect an
16098 ASCII only string correctly.
16099
16100 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16101 version is 0.
16102
161032008-02-01 Kenichi Handa <handa@m17n.org>
16104
16105 * lread.c: Include "coding.h".
16106 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16107 (load_each_byte, unread_char): New variables.
16108 (readchar_backlog): Delete.
16109 (readchar): Return a character unless load_each_byte is nonzero.
16110 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16111 cons. If unread_char is not -1, simply return it.
16112 (unreadchar): Handle the case that readcharfun is
16113 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16114 (read_multibyte): Delete.
16115 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16116 (read_emacs_mule_char): New functions.
16117 (Fload): Even if the file doesn't have the extension ".elc", if
16118 safe_to_load_p returns a positive version number, assume that the
16119 file contains bytecompiled code. If the version is less than 22,
16120 load the file while decoding multibyte sequences by emacs-mule.
16121 (readevalloop): Don't use readchar_backlog.
16122 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16123 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16124 (read_escape): Delete the arg BYTEREP.
16125 (read1): Set load_each_byte to 1 temporarily while handling
16126 #@NUMBER. Don't call read_multibyte.
16127 (read_vector): Call Fread with a cons. If readcharfun is
16128 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16129 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16130 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16131 and Qload_force_doc_strings.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 * xdisp.c (face_before_or_after_it_pos): Call
16136 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * character.h (TRAILING_CODE_P): New macro.
16141 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16142 (string_char_with_unification): Fix prototype.
16143 (Vscript_alist): Extern it.
16144
16145 * character.c (Vscript_alist): New variable.
16146 (string_char_with_unification, str_as_unibyte)
16147 (string_escape_byte8): Add `const' to local variables.
16148 (syms_of_character): Declare script-alist as a Lisp variable.
16149
16150 * charset.h (Vcharset_ordered_list): Extern it.
16151 (charset_ordered_list_tick): Extern it.
16152 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16153 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16154 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16155 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16156 (Funify_charset): Adjust for the change of Funify_charset.
16157
16158 * charset.c (charset_ordered_list_tick): New variable.
16159 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16160 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16161 deunify intead of unify a charset.
16162 (string_xstring_p): Add `const' to local variables.
16163 (find_charsets_in_text): Add `const' to arguments and local variables.
16164 (encode_char): Adjust for the change of Funify_charset. Fix
16165 detecting of invalid code.
16166 (Fset_charset_priority): Increment charset_ordered_list_tick.
16167 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16168 and TO_CODE.
16169
16170 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16171 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16172 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16173 (decode_coding_ccl, consume_chars)
16174 (Ffind_coding_systems_region_internal)
16175 (Fcheck_coding_systems_region): Add `const' to local variables.
16176
16177 * print.c (print_object): Use octal form for printing the
16178 contents of a bool vector.
16179
161802008-02-01 Dave Love <fx@gnu.org>
16181
16182 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16183 <version == 20>: Refuse to load.
16184
161852008-02-01 Dave Love <fx@gnu.org>
16186
16187 * fns.c: Move coding.h.
16188 (Qcodeset, Qdays, Qmonths): New.
16189 (concat): Use CHARACTERP instead of INTEGERP.
16190 (Flocale_codeset): Delete.
16191 (Flanginfo): New function.
16192 (syms_of_fns): Change accordingly.
16193
16194 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16195
161962008-02-01 Dave Love <fx@gnu.org>
16197
16198 * casetab.c (init_casetab_once, init_casetab_once): Fix
16199 CHAR_TABLE_SET call.
16200
16201 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16202
16203 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16204
16205 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16206 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16207 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16208
16209 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16210
16211 * coding.c (ENCODE_DESIGNATION, decode_eol)
16212 (make_conversion_work_buffer, code_conversion_restore)
16213 (Fdefine_coding_system_internal): Convert Lisp types.
16214 (code_conversion_restore): Use EQ, not ==.
16215 (Fencode_coding_string): Fix code_convert_string call.
16216
16217 * coding.h (code_convert_region): Fix prototype.
16218
16219 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16220
16221 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16222 (Ffontset_info): Convert Lisp types.
16223
16224 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16225
16226 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16227
16228 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16229
16230 * chartab.c: Include "...h", not <...h> in some cases.
16231
16232 * callproc.c (Fcall_process): Remove unused variables.
16233
162342008-02-01 Dave Love <fx@gnu.org>
16235
16236 * coding.c (Fset_coding_system_priority): Allow null arg list.
16237
162382008-02-01 Dave Love <fx@gnu.org>
16239
16240 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16241 (Fself_insert_and_exit): Use CHARACTERP.
16242
16243 * callproc.c (Fcall_process): Remove unused vars.
16244
16245 * xterm.c (XTread_socket): Add extra dead keysyms.
16246
16247 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16248
16249 * dispextern.h: Remove prototypes for redraw_frame,
16250 redraw_garbaged_frames.
16251
16252 * cmds.c (Fself_insert_command): Use CHARACTERP.
16253
16254 * chartab.c (make_sub_char_table): Remove unused var.
16255 (Fset_char_table_default, Fmap_char_table): Doc fix.
16256
16257 * keymap.c (access_keymap): Remove generic char code.
16258 (push_key_description): Use CHARACTERP.
16259
162602008-02-01 Dave Love <fx@gnu.org>
16261
16262 * charset.c: Doc fixes.
16263 (Funify_charset): Extra checking.
16264
162652008-02-01 Dave Love <fx@gnu.org>
16266
16267 * lread.c: Remove some unused variables.
16268 (safe_to_load_p): If safe, return the magic number version byte.
16269 (Fload): Maybe use load-with-code-conversion.
16270
162712008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * category.c (Fmodify_category_entry): Don't modify the contents
16274 of category_set for characters out of the range. Avoid
16275 unnecessary modification.
16276
16277 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16278 Vchar_unify_table. The default value of the table is now nil.
16279
16280 * character.c (syms_of_character): Setup Vchar_width_table for
16281 eight-bit-control and raw-byte chars.
16282
16283 * charset.h (enum define_charset_arg_index): Delete
16284 charset_arg_parents and add charset_arg_subset and
16285 charset_arg_superset.
16286 (enum charset_attr_index): Delete charset_parents and add
16287 charset_subset and charset_superset.
16288 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16289 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16290 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16291 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16292 (CHARSET_SUPERSET): New macros.
16293 (charset_work): Extern it.
16294 (ENCODE_CHAR): Use charset_work.
16295 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16296 (map_charset_chars): Extern it.
16297
16298 * charset.c (load_charset_map): Set the default value of encoder
16299 and deunifier char-tables to nil.
16300 (map_charset_chars): Change argument. Change callers. Use
16301 map_char_table_for_charset instead of map_char_table.
16302 (Fmap_charset_chars): New optional args from_code and to_code.
16303 (Fdefine_charset_internal): Adjust for the change of
16304 `define-charset' (:parents -> :subset or :superset).
16305 (charset_work): New variable.
16306 (encode_char, syms_of_charset): Adjust for the change of
16307 Fdefine_charset_internal.
16308 (Ffind_charset_string): Setup the vector `charsets' correctly.
16309
16310 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16311 the previous change.
16312 (char_table_ref_and_range): Adjust for the above change.
16313 (map_sub_char_table_for_charset): New function.
16314 (map_char_table_for_charset): New function.
16315
16316 * keymap.c (describe_vector): Handle a char-table directly here.
16317 (describe_char_table): Delete.
16318
16319 * lisp.h (map_charset_chars): Delete.
16320
163212008-02-01 Dave Love <fx@gnu.org>
16322
16323 * fns.c (count_combining): Comment out (unused).
16324 (Flocale_codeset): New.
16325 (syms_of_fns): Defsubr it.
16326
16327 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16328 (size_t): Remove.
16329
163302008-02-01 Dave Love <fx@gnu.org>
16331
16332 * Makefile.in (chartab.o): Depend on charset.h.
16333
163342008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * character.c (syms_of_character): Set the default value of
16337 Vprintable_chars to Qnil.
16338
163392008-02-01 Dave Love <fx@gnu.org>
16340
16341 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16342
163432008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * charset.c (load_charset_map): Handle the case that from < to
16346 correctly.
16347
16348 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16349 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16350 Pay attention to raw-8-bit chars.
16351
163522008-02-01 Kenichi Handa <handa@m17n.org>
16353
16354 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16355 It is not bytecompiled now.
16356
16357 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16358 (charset_jisx0208): New variables.
16359 (Fdefine_charset_internal): Setup them if appropriate.
16360 (init_charset_once): Initialize them to -1.
16361
16362 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16363 (charset_jisx0208): Extern them.
16364
16365 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16366 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16367 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16368 (setup_iso_safe_charsets): Fix arguments to Fassq.
16369 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16370 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16371 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16372 (encode_coding_iso_2022): Change the 1st arg to
16373 ENCODE_ISO_CHARACTER to a variable.
16374
163752008-02-01 Kenichi Handa <handa@m17n.org>
16376
16377 * charset.h (enum define_charset_arg_index): New enums
16378 charset_arg_min_code and charset_arg_max_code.
16379 (struct charset): New member char_index_offset.
16380
16381 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16382 Take charset->char_index_offset into account.
16383 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16384 args[charset_arg_max_code]. Setup charset.char_index_offset.
16385 (syms_of_charset): Fix args to Fdefine_charset_internal.
16386
163872008-02-01 Dave Love <fx@gnu.org>
16388
16389 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16390
163912008-02-01 Dave Love <fx@gnu.org>
16392
16393 * coding.c: Doc fixes.
16394 (Fcoding_system_aliases): Fix return value.
16395 (Qmac): Remove (duplicated) definition.
16396
163972008-02-01 Dave Love <fx@gnu.org>
16398
362654a6
JB
16399 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16400 New functions.
aac0c6e3
MR
16401
16402 * character.c (Fstring): Doc fix.
16403
16404 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16405
362654a6 16406 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16407 (font-encoding-alist): Doc fix.
16408
164092008-02-01 Dave Love <fx@gnu.org>
16410
16411 * term.c (costs_set): Declare static, non-initialized for pcc.
16412 (encode_terminal_code): Remove unused var.
16413
16414 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16415 for K&R.
16416
16417 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16418
16419 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16420 (suffixes): Move out of make_subsidiaries for K&R.
16421
16422 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16423
16424 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16425
164262008-02-01 Dave Love <fx@gnu.org>
16427
16428 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16429
16430 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16431
164322008-02-01 Yong Lu <lyongu@asia-infonet.com>
16433
16434 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16435
16436 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16437
164382008-02-01 Kenichi Handa <handa@m17n.org>
16439
16440 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16441 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16442
164432008-02-01 Kenichi Handa <handa@m17n.org>
16444
16445 * coding.c (decode_coding_charset): Adjust for the change of
16446 Fdefine_coding_system_internal.
16447 (Fdefine_coding_system_internal): For a coding system of
16448 `charset' type, store a list of charset IDs in
16449 `charset_attr_charset_valids' element of coding attributes.
16450
164512008-02-01 Kenichi Handa <handa@m17n.org>
16452
16453 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16454 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16455 caller. Handle 2-byte and 3-byte charsets correctly.
16456 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16457 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16458 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16459 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16460 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16461 sequence.
16462 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16463 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16464 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16465 and alt&rule composition.
16466 (decode_coding_iso_2022): Handle composition correctly.
16467 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16468
16469 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16470 re-defining a charset. If the charset has :emacs-mule-id, setup
16471 emacs_mule_bytes.
16472 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16473
164742008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16477 (encode_coding_big5, encode_coding_charset): If coding requires safe
16478 encoding, produce a character specified by
16479 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16480
164812008-02-01 Dave Love <fx@gnu.org>
16482
16483 * xterm.c (XSetIMValues): Declare.
16484
16485 * process.c: Conditionally include sys/wait.h, pty.h.
16486
16487 * print.c (print_object): Fix print format for 64-bit systems.
16488
16489 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16490
16491 * buffer.c (emacs_strerror): Declare.
16492
16493 * fontset.c (Fclear_face_cache): Declare.
16494 (accumulate_font_info): Comment-out (unused).
16495 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16496 variables.
16497
16498 * character.h (string_escape_byte8): Declare.
16499
16500 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16501 unused vars.
16502 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16503 (Fmap_charset_chars): Doc fix.
16504
16505 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16506 (Fset_coding_system_priority, Fset_coding_system_priority)
16507 (Fdefine_coding_system_internal): Doc fix.
16508
165092008-02-01 Dave Love <fx@gnu.org>
16510
16511 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16512
165132008-02-01 Kenichi Handa <handa@m17n.org>
16514
16515 * character.c (string_escape_byte8): Make multibyte string with
16516 correct size.
16517
16518 * charset.c (Fmake_char): Delete unnecessary code.
16519
165202008-02-01 Kenichi Handa <handa@m17n.org>
16521
16522 * xfns.c (x_encode_text): Allocate coding.destination here, and
16523 call encode_coding_object with dst_object Qnil.
16524
16525 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16526 multibyte form correctly.
16527
16528 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16529 against Vfont_encoding_alist.
16530
16531 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16532 handling of charset list.
16533 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16534 (decode_coding_object): Move point to coding->dst_pos before
16535 calling post-read-conversion function.
16536 (encode_coding_object): Give correct arguments to
16537 pre-write-conversion. Ignore the return value of
16538 pre-write-conversion function. Pay attention to the case that
16539 pre-write-conversion changes the current buffer. If dst_object is
16540 Qt, even if coding->src_bytes is zero, allocate at least one byte
16541 to coding->destination.
16542
16543 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16544
16545 * charset.c (Fmake_char): Make it more backward compatible.
16546 (Fmap_charset_chars): Fix docstring.
16547
165482008-02-01 Dave Love <fx@gnu.org>
16549
16550 * coding.c: Doc fixes.
16551 (Fdefine_coding_system_alias): Use names, not symbols, in
16552 coding-system-alist.
16553
165542008-02-01 Kenichi Handa <handa@m17n.org>
16555
16556 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16557 of calling free_realized_face.
16558
165592008-02-01 Yong Lu <lyongu@asia-infonet.com>
16560
16561 * charset.c (read_hex): Don't treat SPC as a comment starter.
16562 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16563 (Fdecode_char): Fix typo.
16564
165652008-02-01 Kenichi Handa <handa@m17n.org>
16566
16567 * charset.h (struct charset): New member `code_space_mask'.
16568
16569 * coding.c (coding_set_source): Delete the local variable beg_byte.
16570 (encode_coding_charset, Fdefine_coding_system_internal):
16571 Delete the local variable charset.
16572 (Fdefine_coding_system_internal): Setup
16573 attrs[coding_attr_charset_valids] correctly.
16574
16575 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16576 member to check if CODE is valid or not.
16577 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16578 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16579 is within the range of charset->min_code and carset->max_code.
16580
165812008-02-01 Dave Love <fx@gnu.org>
16582
16583 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16584
16585 * dispextern.h (generate_ascii_font): Fix return type.
16586
16587 * xfaces.c (generate_ascii_font): Fix arg declaration.
16588
16589 * coding.c (coding_inherit_eol_type)
16590 (Fset_terminal_coding_system_internal)
16591 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16592
165932008-02-01 Kenichi Handa <handa@m17n.org>
16594
16595 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16596 multiple charsets correctly.
16597
165982008-02-01 Kenichi Handa <handa@m17n.org>
16599
16600 * search.c (boyer_moore): Fix handling of multibyte character
16601 translation.
16602
16603 * xdisp.c (display_mode_element): When the variable `elt' is
16604 changed, update `this' and `lisp_string'.
16605
166062008-02-01 Kenichi Handa <handa@m17n.org>
16607
16608 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16609
16610 * callproc.c (Fcall_process): Be sure to give the current buffer
16611 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16612
16613 * charset.c (struct charset_map_entries): New struct.
16614 (load_charset_map): Rename from parse_charset_map. New args
16615 entries and n_entries. Change caller.
16616 (load_charset_map_from_file): Rename from load_charset_map.
16617 Change caller. New arg control_flag. Call load_charset_map at
16618 the tail.
16619 (load_charset_map_from_vector): New function.
16620 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16621 (encode_char): If the charset is compact, change a character index
16622 to a code point.
16623
16624 * coding.c (coding_alloc_by_making_gap): Check the case that the
16625 source and destination are the same correctly.
16626 (decode_coding_raw_text): Set coding->consumed_char and
16627 coding->consumed to 0.
16628 (produce_chars): If coding->chars_at_source is nonzero, update
16629 coding->consumed_char and coding->consumed before calling
16630 alloc_destination.
16631 (Fdefine_coding_system_alias): Register ALIAS in
16632 Vcoding_system_alist.
16633 (syms_of_coding): Define `no-conversion' coding system at the tail.
16634
16635 * fileio.c (Finsert_file_contents): Set coding_system instead of
16636 val. If the current buffer is multibyte, always call
16637 decode_coding_gap.
16638
16639 * xfaces.c (try_font_list): Give higher priority to fontset's
16640 family than face's family.
16641
166422008-02-01 Kenichi Handa <handa@m17n.org>
16643
16644 * callproc.c (Fcall_process): Be sure to give the current buffer
16645 to decode_coding_c_string.
16646
16647 * xfaces.c (try_font_list): Give a family specified in a fontset
16648 higher priority than a family specified in a face.
16649
166502008-02-01 Kenichi Handa <handa@m17n.org>
16651
16652 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16653 Fix arguments to insert_from_buffer.
16654
16655 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16656
166572008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16660 (decode_coding_gap): Set coding->dst_multibyte correctly.
16661
166622008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16665 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16666 (encode_coding_utf_16): Substitute coding->default_char for
16667 non-Unicode characters.
16668 (decode_coding): Don't call record_insert here.
16669 (setup_coding_system): Initialize `surrogate' of
16670 coding->spec.utf_16 to 0.
16671 (EMIT_ONE_BYTE): Fix for multibyte case.
16672
16673 * insdel.c (insert_from_gap): Call record_insert.
16674
166752008-02-01 Kenichi Handa <handa@m17n.org>
16676
16677 * casefiddle.c (casify_region): Fix multibyte case.
16678
16679 * character.c (c_string_width): Add return type `int'.
16680 (char_string_with_unification): Delete arg ADVANCED.
16681
16682 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16683 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16684 (CHAR_STRING_ADVANCE): Make it do-while statement.
16685
16686 * chartab.c (sub_char_table_set_range): Optimize for the case
16687 DEPTH == 3. Add workaround code for a GCC optimization bug.
16688
16689 * charset.c (parse_charset_map): Remove an unused variable.
16690
16691 * coding.c: Delete unused variables.
16692
16693 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16694 earlier. If inserted is zero and the coding system doesn't
16695 require flushing, don't call decode_coding_gap.
16696
16697 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16698
166992008-02-01 Kenichi Handa <handa@m17n.org>
16700
16701 The following changes are for using Unicode as an internal
16702 character model, and use UTF-8 format for buffer/string
16703 representation.
16704
16705 * .gdbinit (xchartable): Adjust for the change of char table structure.
16706 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16707
16708 * Makefile.in (obj): Add character.o and chartab.o.
16709 (lisp, shortlisp): Remove utf-8.elc.
16710 (*.o): For many files, change dependency on charset.h to
16711 character.h, and add dependency on character.h.
16712 (character.o, chartab.o): New targets.
16713
16714 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16715 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16716 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16717 of "charset.h".
16718
16719 * dired.c, filelock.c: Include "character.h".
16720
16721 * alloc.c: Include "character.h" instead of "charset.h".
16722 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16723 (syms_of_alloc): Remove defsubr for Smake_char_table.
16724
16725 * buffer.c: Include "character.h" instead of "charset.h", don't
16726 include "coding.h".
16727 (Fset_buffer_multibyte): Adjust for UTF-8.
16728
16729 * buffer.h: EXFUN Fbuffer_live_p.
16730
16731 * callproc.c: Include "character.h" instead of "charset.h".
16732 (Fcall_process): Big change for the new code-conversion APIs.
16733
16734 * casetab.c: Include "character.h" instead of "charset.h".
16735 (set_canon, set_identity, shuffle): Adjust for the new
16736 map_char_table spec.
16737 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16738 accessing the char table structure.
16739
16740 * chartab.c: New file that implements char table.
16741
16742 * category.c: Include "character.h".
16743 (copy_category_entry): New function.
16744 (copy_category_table): Call map_char_table and copy_category_entry.
16745 (Fmake_category_table): Initialize all top-level slots.
16746 (char_category_set): New function.
16747 (modify_lower_category_set): Delete.
16748 (Fmodify_category_entry): Call char_table_ref_and_range.
16749
16750 * category.h (CATEGORY_SET): Just call char_category_set.
16751
16752 * ccl.c: Include "character.h".
16753 (Qccl, Qcclp): New variables.
16754 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16755 it's less than 256.
16756 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16757 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16758 and DST type.
16759 (ccl_driver): Change types of argument, adjust code accordingly.
16760 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16761 ccl_driver.
16762 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16763
16764 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16765 New members src_multibyte, dst_multibyte, consumed, and produced.
16766 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16767 (CODING_SPEC_CCL_PROGRAM): New macro.
16768 (ccl_driver): Update prototype.
16769 (Qccl, Qcclp, Fccl_program_p): Extern them.
16770 (CHECK_CCL_PROGRAM): New macro.
16771
16772 * character.c, character.h, chartab.c: New files.
16773
16774 * charset.c: Mostly re-written. Move character and multibyte sequence
16775 handling codes to character.c.
16776
16777 * charset.h: Mostly re-written. Move character and multibyte sequence
16778 handling codes to character.h.
16779
16780 * coding.c, coding.h: Mostly re-written.
16781
16782 * composite.c: Include "character.h" instead of "charset.h".
16783 (CHAR_WIDTH): Move to character.h.
16784 (HASH_KEY, HASH_VALUE): Delete.
16785
16786 * composite.h (enum composition_method): Change order of enumeration
16787 symbols.
16788
16789 * data.c: Include "character.h" instead of "charset.h".
16790 (Faref): Call CHAR_TABLE_REF for a char table.
16791 (Faset): Call CHAR_TABLE_SET for a char table.
16792
16793 * dispextern.h (free_realized_face, check_face_attribytes)
16794 (generate_ascii_font): Extern them.
16795 (free_realized_multibyte_face): Delete extern.
16796
16797 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16798 table structure.
16799
16800 * editfns.c: Include "character.h" instead of "charset.h".
16801 (Fchar_to_string): Always call CHAR_STRING.
16802
16803 * emacs.c (main): Call init_charset_once, init_charset,
16804 syms_of_chartab, and syms_of_character.
16805
16806 * fileio.c: Include "character.h" instead of "charset.h".
16807 (Finsert_file_contents): Big change for the new code-conversion API.
16808 (choose_write_coding_system, Fwrite_region): Likewise.
16809 (build_annotations_2): Delete.
16810 (e_write): Big change for the new code-conversion API.
16811
16812 * fns.c: Include "character.h" instead of "charset.h".
16813 (copy_sub_char_table): Move to chartab.c.
16814 (Fcopy_sequence): Call copy_char_table for a char table.
16815 (concat): Delete codes calling count_multibyte.
16816 (string_char_to_byte, string_byte_to_char): Adjust for the new
16817 multibyte form.
16818 (internal_equal): Adjust for the change of char table structure.
16819 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16820 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16821 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16822 (char_table_translate, optimize_sub_char_table)
16823 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16824 chartab.c.
16825 (char_table_ref_and_index): Delete.
16826 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16827 (Fmd5): Call preferred_coding_system instead of accessing
16828 Vcoding_category_list. Adjust for the new code-conversion API.
16829 (syms_of_fns): Move defsubr for char table related functions to
16830 chartab.c.
16831
16832 * fontset.c: Mostly re-written.
16833
16834 * fontset.h (struct font_info): Change type of the member encoding_type.
16835 (enum FONT_SPEC_INDEX): New enum.
16836 (fontset_font_pattern, fs_load_font): Update prototype.
16837 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16838
16839 * indent.c: Include "character.h" instead of "charset.h".
16840 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16841
16842 * insdel.c: Include "character.h" instead of "charset.h".
16843 (copy_text): Don't refer to Vnonascii_translation_table.
16844 (insert_from_gap): New function.
16845
16846 * keyboard.c: Include "character.h" instead of "charset.h".
16847 (command_loop_1): Never call direct_output_forward_char before
16848 a non-ASCII character.
16849 (read_char): If Vkeyboard_translate_table is a char table, always
16850 translate a character.
16851
16852 * keymap.c: Include "character.h".
16853 (store_in_keymap): Handle the case that IDX is a cons.
16854 (Fdefine_key): Handle the case that KEY is a cons and the car part
16855 is also a cons (range).
16856 (push_key_description): Adjust for the new character code.
16857 (describe_vector): Call describe_char_table for a char table.
16858 (describe_char_table): New function.
16859
16860 * keymap.h (describe_char_table): Extern it.
16861
16862 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16863 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16864 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16865 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16866 Delete.
16867 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16868 structure.
16869 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16870 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16871 (CHARTAB_SIZE_BITS_3): New macros.
16872 (chartab_size): Extern it.
16873 (struct Lisp_Char_Table): Re-design.
16874 (struct Lisp_Sub_Char_Table): New structure.
16875 (HASH_KEY, HASH_VALUE): Move from fns.c.
16876 (CHARACTERBITS): Define as 22.
16877 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16878 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16879 (GC_SUB_CHAR_TABLE_P): New macro.
16880 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16881 (code_convert_string_norecord): Deleted extern.
16882 (init_character_once, syms_of_character, init_charset)
16883 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16884
16885 * lread.c: Include "character.h".
16886 (read_multibyte): New arg NBYTES.
16887 (read_escape): Change the meaning of returned *BYTEREP.
16888 (to_multibyte): Delete.
16889 (read1): Adjust the handling of char table and string.
16890
16891 * print.c: Include "character.h" instead of "charset.h".
16892 (print_string): Convert 8-bit raw bytes to octal form by
16893 string_escape_byte8.
16894 (print_object): Adjust for the new multibyte form. Print 8-bit
16895 raw bytes always in octal form. Handle sub char table correctly.
16896
16897 * process.c: Include "character.h" instead of "charset.h".
16898 (read_process_output, send_process): Adjust for the new
16899 code-conversion API.
16900
16901 * puresize.h (BASE_PURESIZE): Increase.
16902
16903 * regex.c: Include "character.h" instead of "charset.h".
16904 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16905 (regex_compile): Accept a range whose starting and ending
16906 character have different leading bytes.
16907 (analyse_first): Adjust for the above change.
16908
16909 * search.c: Include "character.h" instead of "charset.h".
16910 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16911 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16912
16913 * syntax.c: Include "character.h" instead of "charset.h".
16914 (syntax_parent_lookup): Delete.
16915 (Fmodify_syntax_entry): Accept a cons as CHAR.
16916 (skip_chars): Adjust for the new multibyte form.
16917 (init_syntax_once): Call char_table_set_range instead of directly
16918 accessing the structure of a char table.
16919
16920 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16921 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16922 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16923 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16924
16925 * term.c: Include "buffer.h" and "character.h".
16926 (encode_terminal_code, write_glyphs): Adjust for the new
16927 code-conversion API.
16928 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16929
16930 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16931
16932 * xdisp.c: Include "character.h".
16933 (get_next_display_element): Adjust for the new multibyte form.
16934 (disp_char_vector): Adjust for the new char table structure.
16935 (decode_mode_spec_coding): Adjust for the new structure of
16936 coding system.
16937 (decode_mode_spec): Adjust for the new code-conversion API.
16938
16939 * xfaces.c: Include "character.h" instead of "charset.h".
16940 (load_face_font): Adjust for the change of choose_face_font and
16941 FS_LOAD_FONT.
16942 (generate_ascii_font): New function.
16943 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16944 (set_font_frame_param): Adjust for the change of choose_face_font.
16945 (free_realized_face): Make it public.
16946 (free_realized_faces_for_fontset): Rename from
16947 free_realized_multibyte_face. Free also faces realized for ASCII.
16948 (choose_face_font): Change arguments. Adjust for the change of
16949 fontset_font_pattern and FS_LOAD_FONT.
16950
16951 * xfns.c: Include "character.h".
16952 (x_encode_text): Adjust for the new code-conversion API.
16953
16954 * xselect.c: Don't include "charset.h".
16955 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16956
16957 * xterm.c: Include "character.h".
16958 (x_encode_char): New argument CHARSET. Change caller.
16959 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16960 Call ENCODE_CHAR instead of SPLIT_CHAR.
16961 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16962 CHAR_WIDTH instead of CHARSET_WIDTH.
16963 (XTread_socket): Adjust for the new code-conversion API.
16964 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16965 (x_load_font): Adjust for the change of struct font.
16966
169672008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16968
16969 * xfaces.c (face_at_buffer_position): Remove unused vars.
16970
169712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16972
16973 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16974 Fix overflow checking.
16975
169762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16977
16978 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16979 Cancel previous change.
16980
169812008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16982
16983 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16984 ccl->eight_bit_control. Fix check for buffer overflow.
16985 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16986 (ccl_driver): Initialize extra_bytes to 0.
16987
169882008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16989
16990 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16991 return it ORed with ctrl_modifier.
16992
169932008-01-29 Miles Bader <miles@gnu.org>
16994
16995 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16996
169972008-01-28 Jason Rumney <jasonr@gnu.org>
16998
16999 * w32.c (stat): Don't double check for networked drive.
17000
170012008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17002
17003 * window.c (run_window_configuration_change_hook): New function.
17004 Code extracted from set_window_buffer. Set the selected frame.
17005 (set_window_buffer): Use it.
17006 * window.h (run_window_configuration_change_hook): Declare.
17007 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17008
17009 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17010
170112008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17012
17013 * Makefile.in: Remove references to unused macros.
17014
170152008-01-26 Eli Zaretskii <eliz@gnu.org>
17016
17017 * w32.c (g_b_init_get_sid_sub_authority)
17018 (g_b_init_get_sid_sub_authority_count): New static variables.
17019 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17020 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17021 (init_user_info): Use them to retrieve uid and gid.
17022 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17023 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17024 st_uid and st_gid of the file.
17025
170262008-01-26 Jason Rumney <jasonr@gnu.org>
17027
17028 * w32.c (logon_network_drive): New function.
17029 (stat): Use it.
17030
170312008-01-26 Chong Yidong <cyd@stupidchicken.com>
17032
17033 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17034 invisible text covered with an ellipsis.
17035
170362008-01-25 Richard Stallman <rms@gnu.org>
17037
17038 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17039 jump back to beginning. Move some other initializations after that.
17040 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17041 New variables.
17042 (syms_of_xdisp): Init them.
17043
17044 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17045
17046 * buffer.c (reset_buffer_local_variables):
17047 Implement `permanent-local-hook'.
17048 (Qpermanent_local_hook): New variable.
17049 (syms_of_buffer): Init and staticpro it.
17050
170512008-01-25 Michael Albinus <michael.albinus@gmx.de>
17052
17053 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17054
170552008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17056
17057 * fns.c (Fclrhash): Return TABLE.
17058
170592008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17060
17061 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17062 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17063 is set even without positional changes.
17064 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17065
17066 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17067
170682008-01-23 Jason Rumney <jasonr@gnu.org>
17069
17070 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17071
17072 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17073 the unicode range available in MULE by locale-coding-system.
17074 Improve dbcs lead byte detection. Set event timestamp and modifiers
17075 earlier.
17076
170772008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17078
17079 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17080 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17081 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17082 when used on child processes.
17083
170842008-01-21 Michael Albinus <michael.albinus@gmx.de>
17085
17086 * dbusbind.c (Fdbus_method_return_internal): Rename from
17087 Fdbus_method_return.
17088 (Fdbus_unregister_object): Move to dbus.el.
17089 (Fdbus_call_method, Fdbus_method_return_internal)
17090 (Fdbus_send_signal): Improve debug messages.
17091
170922008-01-20 Martin Rudalics <rudalics@gmx.at>
17093
17094 * undo.c (undo_inhibit_record_point): New variable.
17095 (syms_of_undo): Initialize it.
17096 (record_point): Don't record point when undo_inhibit_record_point
17097 is set.
17098
170992008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17100
17101 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17102
17103 * xdisp.c (Qauto_hscroll_mode): New var.
17104 (syms_of_xdisp): Initialize it.
17105 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17106 window's buffer.
17107 (hscroll_windows): Don't check automatic_hscrolling_p here.
17108
17109 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17110 vscroll if we're setting window-buffer to the value it already has.
17111
171122008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17113
17114 * m/intel386.h: Remove references to XENIX.
17115
171162008-01-17 Andreas Schwab <schwab@suse.de>
17117
17118 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17119 instead of HAVE_X86_64_LIB64_DIR.
17120 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17121
171222008-01-17 Glenn Morris <rgm@gnu.org>
17123
17124 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17125 to HAVE_X86_64_LIB64_DIR.
17126
171272008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17128
17129 * s/irix3-3.h:
17130 * s/irix4-0.h:
17131 * s/386-ix.h:
17132 * s/domain.h:
17133 * s/hpux9-x11r4.h:
17134 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17135
17136 * sysdep.c: Remove code containing references to symbols defined
17137 by unsupported systems.
17138
171392008-01-16 Glenn Morris <rgm@gnu.org>
17140
17141 * coding.c (select-safe-coding-system-function): Doc fix.
17142
171432008-01-15 Glenn Morris <rgm@gnu.org>
17144
17145 * config.in: Revert 2008-01-13 change: this is a generated file.
17146
171472008-01-13 Tom Tromey <tromey@redhat.com>
17148
17149 * lisp.h: Fix typo.
17150
171512008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17152
17153 * m/sequent-ptx.h:
17154 * m/sequent.h:
17155 * s/ptx.h:
17156 * s/ptx4-2.h:
17157 * s/ptx4.h: Remove files for systems no longer supported.
17158
17159 * callproc.c (Fcall_process): Fix previous change.
17160
171612008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17162
17163 * unexsunos4.c: Remove file, system not supported anymore.
17164
17165 * m/mips.h:
17166 * m/intel386.h:
17167 * callproc.c:
17168 * config.in:
17169 * ecrt0.c:
17170 * emacs.c:
17171 * fileio.c:
17172 * frame.c:
17173 * getpagesize.h:
17174 * keyboard.c:
17175 * lread.c:
17176 * process.c:
17177 * puresize.h:
17178 * sysdep.c:
17179 * systty.h:
17180 * syswait.h:
17181 * unexec.c:
17182 * xdisp.c:
17183 * alloc.c: Remove code containing references to symbols defined by
17184 unsupported systems.
17185
171862008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17187
17188 * coding.c (detect_coding_mask): Fix previous change.
17189
171902008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17191
17192 * coding.c (detect_coding_iso2022): New arg
17193 latin_extra_code_state. Allow Latin extra codes only
17194 when *latin_extra_code_state is nonzero.
17195 (detect_coding_mask): If there is a NULL byte, detect the encoding
17196 as UTF-16 or binary. If Latin extra codes exist, detect the
17197 encoding as ISO-2022 only when there's no other proper encoding is
17198 found.
17199
172002008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17201
17202 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17203 #ifdef MAC_OS.
17204
172052008-01-08 Richard Stallman <rms@gnu.org>
17206
17207 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17208
172092008-01-06 Nick Roberts <nickrob@snap.net.nz>
17210
17211 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17212 menu bar in parentheses.
17213
172142008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17215
17216 * m/7300.h:
17217 * m/acorn.h:
17218 * m/alliant-2800.h:
17219 * m/alliant.h:
17220 * m/alliant1.h:
17221 * m/alliant4.h:
17222 * m/altos.h:
17223 * m/amdahl.h:
17224 * m/apollo.h:
17225 * m/att3b.h:
17226 * m/aviion-intel.h:
17227 * m/aviion.h:
17228 * m/celerity.h:
17229 * m/clipper.h:
17230 * m/cnvrgnt.h:
17231 * m/convex.h:
17232 * m/cydra5.h:
17233 * m/delta88k.h:
17234 * m/dpx2.h:
17235 * m/dual.h:
17236 * m/elxsi.h:
17237 * m/f301.h:
17238 * m/gould-np1.h:
17239 * m/gould.h:
17240 * m/i860.h:
17241 * m/ibmps2-aix.h:
17242 * m/ibmrt-aix.h:
17243 * m/ibmrt.h:
17244 * m/irist.h:
17245 * m/is386.h:
17246 * m/isi-ov.h:
17247 * m/mega68.h:
17248 * m/mg1.h:
17249 * m/news-r6.h:
17250 * m/news-risc.h:
17251 * m/news.h:
17252 * m/nh3000.h:
17253 * m/nh4000.h:
17254 * m/ns16000.h:
17255 * m/ns32000.h:
17256 * m/nu.h:
17257 * m/orion.h:
17258 * m/orion105.h:
17259 * m/paragon.h:
17260 * m/pfa50.h:
17261 * m/plexus.h:
17262 * m/pyramid.h:
17263 * m/pyrmips.h:
17264 * m/sh3el.h:
17265 * m/sps7.h:
17266 * m/sr2k.h:
17267 * m/stride.h:
17268 * m/sun1.h:
17269 * m/sun2.h:
17270 * m/sun3-68881.h:
17271 * m/sun3-fpa.h:
17272 * m/sun3-soft.h:
17273 * m/sun3.h:
17274 * m/sun386.h:
17275 * m/symmetry.h:
17276 * m/tad68k.h:
17277 * m/tahoe.h:
17278 * m/targon31.h:
17279 * m/tek4300.h:
17280 * m/tekxd88.h:
17281 * m/tower32.h:
17282 * m/tower32v3.h:
17283 * m/ustation.h:
17284 * m/wicat.h:
17285 * m/xps100.h:
17286 * s/cxux.h:
17287 * s/cxux7.h:
17288 * s/dgux.h:
17289 * s/dgux4.h:
17290 * s/dgux5-4-3.h:
17291 * s/dgux5-4r2.h:
17292 * s/esix.h:
17293 * s/esix5r4.h:
17294 * s/hiuxmpp.h:
17295 * s/hiuxwe2.h:
17296 * s/iris3-5.h:
17297 * s/iris3-6.h:
17298 * s/isc2-2.h:
17299 * s/isc3-0.h:
17300 * s/isc4-0.h:
17301 * s/isc4-1.h:
17302 * s/newsos5.h:
17303 * s/newsos6.h:
17304 * s/osf1.h:
17305 * s/osf5-0.h:
17306 * s/riscix1-1.h:
17307 * s/riscix12.h:
17308 * s/sco4.h:
17309 * s/sco5.h:
17310 * s/sunos4-0.h:
17311 * s/sunos4-1.h:
17312 * s/sunos413.h:
17313 * s/sunos4shr.h:
17314 * s/umax.h:
17315 * s/unipl5-2.h:
17316 * s/xenix.h:
17317 * cxux-crt0.s:
17318 * unexapollo.c:
17319 * unexconvex.c:
17320 * unexenix.c:
17321 * unexsni.c: Remove files for systems no longer supported.
17322
17323 * m/intel386.h: Remove references to unsupported systems.
17324
17325 * w32.c (get_emacs_configuration): Remove reference to i860.
17326
17327 * sysdep.c: Remove dead code.
17328
173292008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17330
17331 * s/rtu.h:
17332 * m/masscomp.h: Remove files. Platform is obsolete.
17333
173342008-01-04 Michael Albinus <michael.albinus@gmx.de>
17335
17336 * dbusbind.c (Fdbus_method_return): New function.
17337 (xd_read_message): Add the serial number to the event.
17338 (Fdbus_register_method): Activate the function.
17339
173402008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17341
17342 * keyboard.c (read_key_sequence): Fix typo.
17343
173442008-01-03 Michael Albinus <michael.albinus@gmx.de>
17345
17346 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17347 (xd_signature, xd_append_arg): Handle element type detection for
17348 empty arrays.
17349 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17350 SDATA () calls; this must be solved more general.
17351 (Fdbus_register_signal): Use SBYTES instead of strlen.
17352
173532008-01-03 Magnus Henoch <magnus@zemdatav>
17354
17355 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17356 unsigned int for byte values (necessary for big-endian platform).
17357 (Fdbus_call_method): Handle the case of no returned arguments.
17358
173592007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17360
17361 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17362
173632007-12-31 Magnus Henoch <mange@freemail.hu>
17364
17365 * dbusbind.c (xd_signature): Signature of variant is just "v".
17366
173672007-12-30 Michael Albinus <michael.albinus@gmx.de>
17368
17369 * dbusbind.c: Fix several errors and compiler warnings.
17370 Reported by Tom Tromey <tromey@redhat.com>.
17371 (XD_ERROR, XD_DEBUG_MESSAGE)
17372 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17373 (xd_append_arg): Part for basic D-Bus types rewritten.
17374 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17375 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17376 appropriate.
17377 (xd_read_message): Return Qnil. Don't signal an error; it is not
17378 useful during event reading.
17379 (Fdbus_register_signal): Signal an error if the check for
17380 FUNCTIONP fails.
17381 (Fdbus_register_method): New function. The implementation is not
17382 complete, the call of the function signals an error therefore.
17383 (Fdbus_unregister_object): New function, renamed from
17384 Fdbus_unregister_signal. The initial check signals an error, if
17385 the object is not well formed.
17386
173872007-12-30 Richard Stallman <rms@gnu.org>
17388
17389 * textprop.c (get_char_property_and_overlay):
17390 Signal error if POSITION is out of range in a buffer.
17391
173922007-12-29 Martin Rudalics <rudalics@gmx.at>
17393
17394 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17395 because the original parameters are in pure storage now.
17396
173972007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17398
17399 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17400
174012007-12-22 Eli Zaretskii <eliz@gnu.org>
17402
17403 * callint.c (syms_of_callint) <command-history>: Add reference to
17404 history-length in the doc string.
17405
174062007-12-17 Jason Rumney <jasonr@gnu.org>
17407
17408 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17409 before passing as wParam.
17410
174112007-12-22 Michael Albinus <michael.albinus@gmx.de>
17412
17413 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17414 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17415 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17416 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17417 as number.
17418 (Fdbus_call_method): Fix docstring.
17419
174202007-12-21 Michael Albinus <michael.albinus@gmx.de>
17421
17422 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17423 New macros.
17424 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17425 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17426 Simplify.
17427 (xd_signature): New function.
17428 (xd_append_arg): Compute also signatures. Major rewrite.
17429 (xd_retrieve_arg): Make debug messages friendly.
17430 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17431 Check for signatures of arguments.
17432
174332007-12-19 Michael Albinus <michael.albinus@gmx.de>
17434
17435 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17436 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17437 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17438 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17439 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17440 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17441 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17442 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17443 (xd_retrieve_value): Remove. Functionality included in ...
17444 (xd_append_arg): New function.
17445 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17446
174472007-12-16 Michael Albinus <michael.albinus@gmx.de>
17448
17449 * dbusbind.c (top): Include <stdio.h>.
17450 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17451 dbus_message_new_method_call and dbus_message_new_signal.
17452 (Fdbus_register_signal): Rename unique_name to uname.
17453 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17454 non-existing unique name. Fix typos in matching rule. Return an
17455 object which is useful in Fdbus_unregister_signal.
17456 (Fdbus_unregister_signal): Reimplementation, in order to remove
17457 only the corresponding entry.
17458 (Vdbus_registered_functions_table): Change the order of entries.
17459 Apply these changes in xd_read_message and Fdbus_register_signal.
17460
174612007-12-16 Andreas Schwab <schwab@suse.de>
17462
17463 * fileio.c (Finsert_file_contents): Fix overflow check to not
17464 depend on undefined integer overflow.
17465
174662007-12-14 Jason Rumney <jasonr@gnu.org>
17467
17468 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17469 for characters above 127.
17470
174712007-12-13 Jason Rumney <jasonr@gnu.org>
17472
17473 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17474 before dereferencing array.
17475 (lookup_vk_code): Remove zero comparison.
17476
174772007-12-14 Michael Albinus <michael.albinus@gmx.de>
17478
17479 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17480 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17481 Use `unsigned int' instead of `uint'.
17482 (xd_read_message, Fdbus_register_signal): Split expressions into
17483 multiple lines before operators "&&" and "||", according to the
17484 GNU Coding Standards.
17485
174862007-12-14 Eli Zaretskii <eliz@gnu.org>
17487
17488 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17489
174902007-12-12 Juri Linkov <juri@jurta.org>
17491
17492 * buffer.c (Frename_buffer): In interactive spec replace
17493 `read-buffer' with `read-string' that uses `buffer-name-history'
17494 as history, and the current buffer's name as default.
17495
174962007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17497
17498 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17499 manipulating the backtrace manually.
17500 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17501 (struct backtrace, backtrace_list): Remove.
17502 (command_loop_1): Remove dead var `no_direct'.
17503
17504 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17505 preserve non-built-in buffer-local variables.
17506 (Fkill_all_local_variables): Don't re-create&re-set permanent
17507 buffer-local variables.
17508
175092007-12-09 Juri Linkov <juri@jurta.org>
17510
17511 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17512 Lisp code that uses `read-buffer' with current buffer as default.
17513
175142007-12-08 Michael Albinus <michael.albinus@gmx.de>
17515
17516 * dbusbind.c (xd_read_message): Generate an event for every
17517 registered handler. There might be several handlers registered
17518 for the same signal.
17519 (Fdbus_register_signal): Don't overwrite a registration for the
17520 same signal. Add a new registration if handlers are different.
17521 (Vdbus_registered_functions_table): Rework doc string.
17522
175232007-12-07 Michael Albinus <michael.albinus@gmx.de>
17524
17525 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17526 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17527 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17528 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17529 Unify argument lists.
17530 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17531 arguments and hash table keys. Use unique name for service.
17532 (Fdbus_unregister_signal): Remove checks.
17533 (Vdbus_registered_functions_table): Fix doc string.
17534
175352007-12-05 Magnus Henoch <mange@freemail.hu>
17536
17537 * process.c (make_process): Initialize pty_flag to 0.
17538
175392007-12-05 Jason Rumney <jasonr@gnu.org>
17540
17541 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17542 specified XBMs.
17543
175442007-12-05 Richard Stallman <rms@gnu.org>
17545
17546 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17547
175482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17549
17550 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17551 New variable.
17552 (mac_try_close_socket) [MAC_OSX]: New function.
17553 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17554 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17555
17556 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17557 Use mac_try_close_socket.
17558
175592007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17560
17561 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17562 reloc_base.
17563 (copy_dysymtab): Compute relocation base here.
17564 (rebase_reloc_address) [__ppc64__]: New function.
17565 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17566 changed.
17567
175682007-12-05 Jason Rumney <jasonr@gnu.org>
17569
17570 * w32proc.c (sys_spawnve): Quote args with wildcards.
17571
175722007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17573
17574 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17575 __objc_* sections.
17576 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17577
175782007-12-05 Michael Albinus <michael.albinus@gmx.de>
17579
17580 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17581 Move check for Vdbus_registered_functions_table to
17582 xd_read_queued_messages.
17583 (xd_read_queued_messages): Protect xd_read_message calls by
17584 internal_condition_case_1.
17585
175862007-12-04 Michael Albinus <michael.albinus@gmx.de>
17587
17588 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17589 Qdbus_system_bus and Qdbus_session_bus, respectively.
17590 (Vdbus_intern_symbols): Remove.
17591 (Vdbus_registered_functions_table): New hash table.
17592 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17593 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17594 Rewrite in order to manage registered functions by hash table
17595 Vdbus_registered_functions_table.
17596
175972007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17598
17599 * xterm.c: Update URL to Window Manager Specification in comment.
17600
176012007-12-02 Michael Albinus <michael.albinus@gmx.de>
17602
17603 * config.in (HAVE_DBUS): Add.
17604
17605 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17606 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17607 (obj): Add $(DBUS_OBJ).
17608 (LIBES): Add $(DBUS_LIBS).
17609 (dbusbind.o): New target.
17610
17611 * dbusbind.c: New file.
17612
17613 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17614
17615 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17616 (Qdbus_event): New Lisp symbol.
17617 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17618 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17619 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17620
17621 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17622
176232007-12-01 Richard Stallman <rms@gnu.org>
17624
17625 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17626
176272007-11-30 Jason Rumney <jasonr@gnu.org>
17628
17629 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17630 (w32con_reset_terminal_modes): Clear screen buffer.
17631 (w32_face_attributes): Don't use color indexes that are out of range.
17632 Only reverse the default colors.
17633
17634 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17635 WINDOWSNT.
17636
17637 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17638
176392007-11-29 Jason Rumney <jasonr@gnu.org>
17640
17641 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17642 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17643 if the terminal colors are initialized.
17644 (unspecified_fg, unspecified_bg): Remove unused declarations.
17645
176462007-11-29 Andreas Schwab <schwab@suse.de>
17647
17648 * keyboard.c (apply_modifiers): Fix typo.
17649
176502007-11-29 Richard Stallman <rms@gnu.org>
17651
17652 * keymap.c (Fcurrent_local_map): Doc fix.
17653
176542007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17655
17656 * s/gnu-kfreebsd.h: New file.
17657
176582007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17659
17660 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17661 Don't cast redundantly.
17662
17663 * keyboard.c (KEY_TO_CHAR): New macro.
17664 (parse_modifiers, apply_modifiers): Accept integer arguments.
17665 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17666 for chars and symbol keys.
17667 After doing such remapping, apply function-key-map again.
17668
176692007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17670
17671 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17672 compiled anymore.
17673
176742007-11-26 Andreas Schwab <schwab@suse.de>
17675
17676 * process.c (list_processes_1): Fix indentation level of the
17677 command column.
17678
176792007-11-23 Andreas Schwab <schwab@suse.de>
17680
17681 * editfns.c (Fformat): Handle %c specially since it requires the
17682 argument to be of type int.
17683
176842007-11-23 Markus Triska <markus.triska@gmx.at>
17685
17686 * emacs.c (main): Call init_editfns before init_process, since
17687 init_process sets Vprocess_connection_type depending on OS release.
17688
176892007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17690
17691 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17692 (find_symbol_value): Use do_symval_forwarding.
17693
17694 * data.c (set_internal): Set the value in the `cons-cell' (for
17695 Buffer_Local_values) not only for frame-local variables.
17696
176972007-11-22 Andreas Schwab <schwab@suse.de>
17698
17699 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17700 values to sprintf.
17701 * keymap.c (Fsingle_key_description): Likewise.
17702 * print.c (print_object): Likewise.
17703
177042007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17705
17706 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17707 file for image is nil.
17708
177092007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17710
17711 * term.c: Include stdarg.h.
17712 (fatal): Implement using varargs.
17713 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17714
177152007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17716
17717 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17718 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17719 Update call to buffer_slot_type_mismatch.
17720 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17721 (buffer_slot_type_mismatch): Update.
17722 * buffer.c (buffer_local_types): Remove.
17723 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17724 (defvar_per_buffer): Set the type in the buffer_objfwd.
17725
177262007-11-21 Jason Rumney <jasonr@gnu.org>
17727
17728 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17729 CreateFileMapping returns NULL on failure.
17730
177312007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17732
17733 * search.c (Fset_match_data): Remove the `evaporate' feature.
17734 (unwind_set_match_data): Don't use the `evaporate' feature.
17735
177362007-11-21 Jason Rumney <jasonr@gnu.org>
17737
17738 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17739
17740 * w32console.c (w32con_write_glyphs): Remove unused variables.
17741
177422007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17743
17744 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17745
17746 * s/darwin.h (MULTI_KBOARD): Remove.
17747
17748 * macfns.c (x_create_tip_frame, Fx_create_frame)
17749 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17750
177512007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17752
17753 * buffer.c (Fbuffer_local_value): Remove redundant test.
17754 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17755 than in `current-buffer' to match the comment.
17756 Do the swap using swap_in_global_binding.
17757
17758 * data.c (store_symval_forwarding, set_internal):
17759 * eval.c (specbind): Remove dead code.
17760
17761 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17762 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17763 Since we do not want to see internal Lisp_*fwd objects here.
17764
177652007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17766
17767 * sysdep.c (init_system_name): Use getaddrinfo if available.
17768
17769 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17770 (x_scroll_bar_note_movement): start, end, with, height in struct
17771 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17772
177732007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17774
17775 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17776
177772007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17778
17779 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17780 This undoes Richard's change of 14-Oct-2002.
17781
17782 * alloc.c (allocate_other_vector):
17783 * lisp.h (allocate_other_vector): Remove.
17784
17785 * window.c (struct save_window_data): Move non-lisp data to the end
17786 and make it `int' rather than Lisp_Object.
17787 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17788 Done wrap/unwrap integer values.
17789 (Fset_window_configuration, compare_window_configurations):
17790 Update use of fields to their new types.
17791
17792 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17793 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17794 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17795 (SET_SCROLL_BAR_X_WINDOW): Remove.
17796 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17797 Access the new x_window field directly.
17798 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17799 Don't wrap/unwrap integers into Lisp_Objects.
17800 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17801 (x_scroll_bar_report_motion):
17802 Don't wrap/unwrap integers into Lisp_Objects.
17803 (x_term_init): Use SDATA.
17804 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17805 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17806 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17807 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17808 * xfns.c (x_set_background_color):
17809 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17810 Access the new x_window field directly.
17811
17812 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17813 (allocate_pseudovector): Make non-static.
17814
17815 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17816 (allocate_pseudovector): Declare.
17817 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17818
178192007-11-15 Andreas Schwab <schwab@suse.de>
17820
17821 * editfns.c (Fformat): Correctly format EMACS_INT values.
17822 Also take precision into account when formatting an integer.
17823
17824 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17825
178262007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17827
17828 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17829 (syms_of_keyboard): Defsubr it.
17830
17831 * data.c (swap_in_global_binding): Fix longstanding bug where
17832 store_symval_forwarding was not called with the right second argument,
17833 thus causing objfwd-ing from being dropped.
17834
178352007-11-14 Juanma Barranquero <lekktu@gmail.com>
17836
17837 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17838 (Fx_display_pixel_height, Fx_display_planes)
17839 (Fx_display_color_cells, Fx_server_max_request_size)
17840 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17841 (Fx_display_visual_class, Fx_display_save_under):
17842 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17843 (Fx_display_pixel_height, Fx_display_planes)
17844 (Fx_display_color_cells, Fx_server_max_request_size)
17845 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17846 (Fx_display_mm_height, Fx_display_mm_width)
17847 (Fx_display_backing_store, Fx_display_visual_class)
17848 (Fw32_select_font, Fx_display_save_under):
17849 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17850 (Fx_display_pixel_height, Fx_display_planes)
17851 (Fx_display_color_cells, Fx_server_max_request_size)
17852 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17853 (Fx_display_save_under): Fix typos in docstrings.
17854
178552007-11-14 Juanma Barranquero <lekktu@gmail.com>
17856
17857 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17858 corresponding to deleted entries; they are an implementation detail.
17859 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17860 Remove variables.
17861 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17862 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17863 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17864 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17865 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17866 (Fw32_define_rgb_color, Fw32_load_color_file)
17867 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17868 Fix typos in docstrings.
17869 (Fx_server_version): Reflow docstring.
17870 (Fw32_shell_execute): Doc fixes.
17871
178722007-11-13 Juanma Barranquero <lekktu@gmail.com>
17873
17874 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17875 if w32_parse_hot_key returned nil.
17876
178772007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17878
17879 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17880
178812007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17882
aac0c6e3
MR
17883 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17884
17885 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17886
17887 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17888 Remove W32_SCROLL_BAR_CLICK_EVENT.
17889
17890 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17891 Add MULTIMEDIA_KEY_EVENT.
17892
17893 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17894 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17895 (make_lispy_event) [WINDOWSNT]: Use it to translate
17896 MULTIMEDIA_KEY_EVENT.
17897
17898 * w32term.h (WM_APPCOMMAND): Define if not already.
17899 (GET_APPCOMMAND_LPARAM): Likewise.
17900
17901 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17902 WM_APPCOMMAND.
17903
17904 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17905 (syms_of_w32fns): Export and initialize it.
17906 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17907
179082007-11-09 Chong Yidong <cyd@stupidchicken.com>
17909
17910 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17911 twice.
17912
17913 * xdisp.c (handle_face_prop): Fix last change.
17914
179152007-11-09 Richard Stallman <rms@gnu.org>
17916
17917 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17918 not just for after-strings and before-strings.
17919 Call face_for_overlay_string and pass the overlay to it.
17920 (handle_display_prop): Determine whether property came from an overlay.
17921 Pass OVERLAY arg to handle_single_display_spec.
17922 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17923 (load_overlay_strings): Fill in it->string_overlays.
17924 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17925
17926 * xfaces.c (face_for_overlay_string): Function renamed from
17927 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17928
17929 * dispextern.h (struct it): New elt string_overlays.
17930 New elt from_overlay, also in stack.
17931 Rearrange a few elements.
17932 (face_for_overlay_string): Decl renamed from
17933 face_at_buffer_position_no_overlays, and add argument.
17934
179352007-11-09 Richard Stallman <rms@gnu.org>
17936
17937 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17938 to get the base face for an overlay string.
17939
17940 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17941
17942 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17943
17944 * xdisp.c (handle_stop): Move some code out of loop.
17945
179462007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17947
17948 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17949 Fix conversion from Lisp object to ATSUFontID.
17950
179512007-11-09 Jason Rumney <jasonr@gnu.org>
17952
17953 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17954
179552007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17956
17957 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17958 Don't assume regions are aligned to page boundary.
17959 (print_load_command_name): Add LC_UUID if defined.
17960
179612007-11-09 Richard Stallman <rms@gnu.org>
17962
17963 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17964
179652007-11-07 Jason Rumney <jasonr@gnu.org>
17966
17967 * s/windows95.h: Remove.
17968
179692007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17970
17971 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17972 abort with a message on unhandled store_type values.
17973
179742007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17975
17976 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17977 Remove HAVE_X11R5 and HAVE_X11R4.
17978
179792007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17980
17981 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17982
179832007-11-01 Johan Bockgård <bojohan@gnu.org>
17984
17985 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17986 Don't set s->stippled_p here, since it has already been set by
17987 x_set_glyph_string_gc from x_draw_glyph_string.
17988
179892007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17990
17991 * sunfns.c: Remove file.
17992
17993 * m/sun386.h:
17994 * m/sun2.h:
17995 * m/sparc.h: Remove Sun windows code.
17996
179972007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17998
17999 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18000 (init_keyboard): Set current_kboard's window-system to nil.
18001 (tty_read_avail_input): Typo.
18002 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18003
180042007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18005
18006 * s/usg5-4.h:
18007 * s/usg5-3.h:
18008 * s/ptx.h:
18009 * m/is386.h:
18010 * m/ibmps2-aix.h:
18011 * Makefile.in: Remove all mentions of X10.
18012
18013 * dispnew.c (syms_of_display): Don't mention version 10.
18014
180152007-10-28 Juanma Barranquero <lekktu@gmail.com>
18016
18017 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18018 ($(BLD)/abbrev.$(O)): Remove.
18019
180202007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18021
18022 Rewrite abbrev.c in Elisp.
18023 * image.c (Qcount): Don't declare as extern.
18024 (syms_of_image): Initialize and staticpro `Qcount'.
18025 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18026 * emacs.c (main): Don't call syms_of_abbrev.
18027 * Makefile.in (obj): Remove abbrev.o.
18028 (abbrev.o): Remove.
18029 * abbrev.c: Remove.
18030
180312007-10-26 Martin Rudalics <rudalics@gmx.at>
18032
18033 * window.c (window_min_size_2): Don't count header-line.
18034
180352007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18036
18037 * frame.h (struct frame): Move all bit fields after the first bit
18038 field to take advantage of the available space. Group all the
18039 chars together to reduce wasted space due to padding.
18040
180412007-10-26 Juanma Barranquero <lekktu@gmail.com>
18042
18043 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18044
18045 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18046 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18047 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18048 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18049 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18050 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18051 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18052 (last_marked, mark_object_loop_halt): Make static.
18053
18054 * frame.c (syms_of_frame) <delete-frame-functions>:
18055 Fix typo in docstring.
18056
180572007-10-25 Juanma Barranquero <lekktu@gmail.com>
18058
18059 * w32.c (init_environment): Fix tiny memory leak.
18060 (w32_get_resource): Remove unused variable `ok'.
18061
180622007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18063
18064 Make `window-system' into a keyboard-local variable (rather than
18065 frame-local as done originally by multi-tty).
18066
18067 * keyboard.h (struct kboard): Add Vwindow_system.
18068 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18069 (mark_kboards): Mark Vwindow_system.
18070
18071 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18072 (init_display): Don't set the obsolete `window-system' frame-param.
18073
18074 * xterm.c (x_term_init):
18075 * w32term.c (w32_create_terminal):
18076 * term.c (init_tty): Set Vwindow_system.
18077 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18078 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18079
18080 * xfns.c (Fx_create_frame, x_create_tip_frame):
18081 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18082 * macfns.c (Fx_create_frame):
18083 Don't set the obsolete `window-system' frame-param.
18084
18085 * frame.h (Qwindow_system): Remove.
18086 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18087 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18088
180892007-10-24 Richard Stallman <rms@gnu.org>
18090
18091 * frame.c (x_figure_window_size): For fullscreen case,
18092 set USPosition | PPosition without clobbering rest of window_prompting.
18093
18094 * keyboard.c (Fcurrent_idle_time): Doc fix.
18095
18096 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18097
180982007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18099
18100 * process.c (unwind_request_sigio): Only define if __ultrix__.
18101
18102 * callproc.c (child_setup): Remove spurious *.
18103
18104 * lisp.h (Fget_text_property): Declare.
18105 (have_menus_p): Declare it here rather than in sys-dep header files.
18106 * macterm.h (have_menus_p):
18107 * msdos.h (have_menus_p):
18108 * xterm.h (have_menus_p): Remove.
18109
18110 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18111 (Fmake_variable_frame_local): Just check the variable's const-ness
18112 rather than checking nil or t.
18113
181142007-10-22 Jason Rumney <jasonr@gnu.org>
18115
18116 * w32fns.c: Include math.h.
18117 (w32_abort): Declaration moved to nt/config.nt.
18118
18119 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18120 (abort): Redefinition moved to nt/config.nt.
18121
18122 * m/windowsnt.h: Remove.
18123
181242007-10-22 Juanma Barranquero <lekktu@gmail.com>
18125
18126 * emacs.c (Fdump_emacs): Fix typo in message.
18127 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18128 <installation-directory>: Reflow docstring.
18129
181302007-10-22 Juri Linkov <juri@jurta.org>
18131
18132 * minibuf.c: Allow minibuffer default to be a list of default values.
18133 With empty input use the first element of this list as returned default.
18134 (string_to_object)
18135 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18136 (read_minibuf): If defalt is cons, set histstring to its car.
18137 (Fread_string): If default_value is cons, set val to its car.
18138 (Fread_buffer): If def is cons, use its car.
18139 (Fcompleting_read): If defalt is cons, set val to its car.
18140
181412007-10-21 Michael Albinus <michael.albinus@gmx.de>
18142
18143 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18144
181452007-10-20 Juanma Barranquero <lekktu@gmail.com>
18146
18147 * doc.c (Fdocumentation): Check for advice in all cases.
18148
181492007-10-19 Chong Yidong <cyd@stupidchicken.com>
18150
18151 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18152
181532007-10-19 Richard Stallman <rms@gnu.org>
18154
18155 * doc.c (Fdocumentation): Check for and handle an advised function.
18156
181572007-10-19 Juanma Barranquero <lekktu@gmail.com>
18158
18159 * process.c (Fset_process_filter): Doc fix.
18160
181612007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18162
18163 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18164 which caused key-translation-map to applied repeatedly (thus breaking
18165 double-mode).
18166
181672007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18168
18169 * xselect.c (x_own_selection, x_handle_selection_clear)
18170 (x_clear_frame_selections):
18171 * w32menu.c (list_of_panes, list_of_items):
18172 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18173 * textprop.c (validate_plist, interval_has_all_properties)
18174 (interval_has_some_properties, interval_has_some_properties_list)
18175 (add_properties, text_property_list):
18176 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18177 * minibuf.c (Fassoc_string):
18178 * macselect.c (x_own_selection, x_clear_frame_selections)
18179 (Fx_disown_selection_internal):
18180 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18181 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18182
181832007-10-17 Chong Yidong <cyd@stupidchicken.com>
18184
18185 * process.c: Link to libs for calling res_init() if available.
18186 (Fmake_network_process): Call res_init() before getaddrinfo or
18187 gethostbyname, if possible.
18188
181892007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18190
18191 * lread.c (read1): Set pvectype for char_tables.
18192
18193 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18194 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18195 Add type checks.
18196 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18197
18198 * alloc.c (free_misc): Use XMISCTYPE.
18199 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18200
182012007-10-17 Glenn Morris <rgm@gnu.org>
18202
18203 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18204 (syms_of_minibuf): Add Qcompletion_ignore_case.
18205 * dired.c (Qcompletion_ignore_case): Change to external.
18206 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18207 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18208 (Fread_file_name): Use it rather than intern'ing.
18209
18210 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18211 (Fread_coding_system): Ignore case of user input.
18212
182132007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18214
18215 * xdisp.c (handle_display_prop): Ignore display specs after
18216 replacing one when string text is being replaced.
18217 (handle_single_display_spec): Pretend as if characters with display
18218 property haven't been consumed only when buffer text is being replaced.
18219
182202007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18221
18222 * xfns.c (Fx_create_frame, Fx_display_list):
18223 * window.c (window_fixed_size_p, enlarge_window)
18224 (shrink_window_lowest_first):
18225 * macterm.c (init_font_name_table):
18226 * macfns.c (Fx_create_frame, Fx_display_list):
18227 * lread.c (close_load_descs):
18228 * keyboard.c (read_char_x_menu_prompt):
18229 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18230 * coding.c (code_convert_region_unwind): Test the type of an object
18231 rather than just !NILP before extracting data from it.
18232
18233 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18234
18235 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18236 (XMISCANY): New macro.
18237 (XMISCTYPE): Use it.
18238 (struct Lisp_Misc_Any): New type.
18239 (union Lisp_Misc): Use it.
18240 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18241 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18242 (find_symbol_value, set_internal, default_value, Fset_default)
18243 (Fmake_variable_buffer_local, Fmake_local_variable)
18244 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18245 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18246 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18247 * alloc.c (allocate_buffer): Set the size and tag.
18248 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18249 Use XMISCANY.
18250 (die): Follow the GNU convention for error messages.
18251 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18252 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18253 tag any more.
18254 (set_buffer_internal_1):
18255 * frame.c (store_frame_param):
18256 * eval.c (specbind):
18257 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18258
18259 * doc.c (Fsnarf_documentation): Simplify.
18260
182612007-10-14 Juanma Barranquero <lekktu@gmail.com>
18262
18263 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18264 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18265
182662007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18267
18268 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18269
182702007-10-14 Juanma Barranquero <lekktu@gmail.com>
18271
18272 * eval.c (do_autoload): Don't save autoloads.
18273
18274 * data.c (Ffset): Save autoload of the function being set.
18275
182762007-10-07 John Paul Wallington <jpw@pobox.com>
18277
18278 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18279 parameter before setting up faces.
18280
182812007-10-13 Eli Zaretskii <eliz@gnu.org>
18282
18283 * ccl.c (Fregister_code_conversion_map):
18284 * keyboard.c (append_tool_bar_item): Reformat last change.
18285
18286 * lisp.h (eabs): Rename from `abs'. All callers changed.
18287
182882007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18289
18290 * buffer.c (add_overlay_mod_hooklist):
18291 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18292 * fontset.c (make_fontset):
18293 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18294 (append_tool_bar_item):
18295 * macmenu.c (grow_menu_items):
18296 * w32menu.c (grow_menu_items):
18297 * xmenu.c (grow_menu_items): Use larger_vector.
18298
182992007-10-13 Eli Zaretskii <eliz@gnu.org>
18300
18301 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18302 selected frame'' on MSDOS).
18303
183042007-10-12 Martin Rudalics <rudalics@gmx.at>
18305
18306 * frame.c (Qexplicit_name): New variable.
18307 (x_report_frame_params): Report it in parameter alist.
18308 (syms_of_frame): Intern and staticpro it.
18309
183102007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18311
18312 * macfns.c (x_create_tip_frame): Set terminal for frame.
18313
183142007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18315
18316 * frame.c (Qenvironment): Remove.
18317 (syms_of_frame) <Qenvironment>: Don't initialize.
18318 (Fdelete_frame): Don't treat the `environment' param specially.
18319 * frame.h (Qenvironment): Don't declare.
18320 * callproc.c (set_initial_environment): Don't set unused frame param.
18321
18322 * frame.c (Fframe_with_environment): Remove.
18323 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18324
18325 * lisp.h (Fframe_with_environment): Don't declare.
18326
183272007-10-10 Juanma Barranquero <lekktu@gmail.com>
18328
18329 * indent.c (indent_tabs_mode, last_known_column)
18330 (last_known_column_modified): Make static.
18331 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18332
183332007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18334
18335 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18336
183372007-10-09 Jason Rumney <jasonr@gnu.org>
18338
18339 * w32term.c (x_set_window_size): Disable code that attempts to tell
18340 Lisp code about a size change before it actually happens.
18341
183422007-10-09 Richard Stallman <rms@gnu.org>
18343
18344 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18345 return HANDLED_RETURN.
18346
183472007-10-08 Martin Rudalics <rudalics@gmx.at>
18348
18349 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18350 when there's an unread command event.
18351
18352 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18353 window autoselection act appropriately when leaving selected frame.
18354 (syms_of_frame): Initialize focus_follows_mouse.
18355 * frame.h (focus_follows_mouse): Extern it.
18356 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18357 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18358 * msdos.c (dos_rawgetc): Likewise.
18359 * w32term.c (w32_read_socket): Likewise.
18360 * xterm.c (handle_one_xevent): Likewise.
18361 * xdisp.c (syms_of_xdisp): In doc-string of
18362 mouse-autoselect-window mention focus-follows-mouse.
18363
183642007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18365
18366 * macterm.c (mac_load_query_font): Fix missing return value.
18367 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18368 Add BLOCK_INPUT.
18369
183702007-10-08 Richard Stallman <rms@gnu.org>
18371
18372 * xdisp.c (get_window_cursor_type): Implement documented behavior
18373 for cursor-in-non-selected-windows = t.
18374
183752007-10-08 Jason Rumney <jasonr@gnu.org>
18376
18377 * w32.c (w32_get_resource): Always close registry keys.
18378
183792007-10-08 Jason Rumney <jasonr@gnu.org>
18380
18381 * makefile.w32-in (LIBS): Add COMCTL32.
18382
18383 * w32fns.c (globals_of_w32fns): Init common controls.
18384
183852007-10-08 Richard Stallman <rms@gnu.org>
18386
18387 * image.c (our_memory_buffer): Rename from omfib_buffer.
18388
183892007-10-08 Richard Stallman <rms@gnu.org>
18390
18391 * buffer.c (Foverlays_at): Doc fix.
18392
183932007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18394
18395 * fns.c (Fplist_put): Preserve uneven tail data.
18396
183972007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18398
18399 * termhooks.h (enum event_kind): Remove trailing comma.
18400
18401 * frame.h (enum): Remove trailing comma.
18402
184032007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18404
18405 * w32proc.c (delete_child): Don't terminate threads of zombies.
18406
184072007-10-08 Martin Rudalics <rudalics@gmx.at>
18408
18409 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18410
18411 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18412 last-repeatable-command.
18413 (init_kboard): Initialize Vlast_repeatable_command.
18414 (command_loop_1): Set it to real_this_command unless that was
18415 bound to an input event.
18416 (mark_kboards): Mark it.
18417
184182007-10-08 Richard Stallman <rms@gnu.org>
18419
18420 * eval.c (condition-case): Doc fix.
18421
184222007-10-08 Masatake YAMATO <jet@gyve.org>
18423
18424 * xfaces.c (tty_supports_face_attributes_p): Fix code
18425 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18426 was copied and not edited.
18427
184282007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18429
18430 Add new `input-decode-map' keymap and use it for terminal
18431 escape sequences.
18432 * keyboard.h (struct kboard): Add Vinput_decode_map.
18433 Remove Vlocal_key_translation_map.
18434 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18435 (init_kboard): Init input-decode-map.
18436 Replace local-key-translation-map back with key-translation-map.
18437 (syms_of_keyboard): Declare input-decode-map.
18438 Remove local-key-translation-map. Update docstrings.
18439 (mark_kboards): Mark Vinput_decode_map.
18440 Don't mark Vlocal_key_translation_map.
18441 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18442 Replace local-key-translation-map back with key-translation-map.
18443 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18444 Bind in input-decode-map rather than function-key-map.
18445
18446 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18447 This was made redundant by the previous introduction of XSETPVECTYPE.
18448
184492007-10-09 Richard Stallman <rms@gnu.org>
18450
18451 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18452
184532007-09-29 Richard Stallman <rms@gnu.org>
18454
18455 * eval.c (internal_condition_case_2, internal_condition_case_1)
18456 (internal_condition_case): Reenable abort if x_catching_errors ()
18457 to see if that really happens and why.
18458
184592007-10-06 Andreas Schwab <schwab@suse.de>
18460
18461 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18462
184632007-10-04 Juanma Barranquero <lekktu@gmail.com>
18464
18465 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18466
184672007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18468
18469 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18470
184712007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18472
18473 * window.h (struct window):
18474 * window.c (struct save_window_data, struct saved_window):
18475 * termhooks.h (struct terminal):
18476 * process.h (struct Lisp_Process):
18477 * frame.h (struct frame):
18478 * buffer.h (struct buffer):
18479 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18480 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18481 The size field of (pseudo)vectors is now unsigned.
18482 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18483
18484 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18485 Turn `count' into an integer.
18486
18487 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18488 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18489 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18490 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18491 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18492
18493 * alloc.c (allocate_pseudovector): New fun.
18494 (ALLOCATE_PSEUDOVECTOR): New macro.
18495 (allocate_window, allocate_terminal, allocate_frame)
18496 (allocate_process): Use it.
18497 (mark_vectorlike): New function.
18498 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18499 (mark_terminals): Use it.
18500 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18501 (Fmake_byte_code): Use XSETPVECTYPE.
18502
18503 * frame.c (Fframe_parameters): Minor simplification.
18504
18505 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18506
18507 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18508
18509 * buffer.c (Fget_buffer_create, init_buffer_once):
18510 * lread.c (defsubr):
18511 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18512
18513 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18514 defined differently in the m/*.h files.
18515 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18516 (XSETPVECTYPE): New macro.
18517 (XSETPSEUDOVECTOR): Use it.
18518
18519 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18520 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18521
18522 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18523 * lread.c (defvar_per_buffer):
18524 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18525
18526 * window.c (candidate_window_p): Only consider as visible frames that
18527 are on the same terminal.
18528
18529 * m/ibms390x.h (MARKBIT): Remove unused macro.
18530
185312007-10-01 Juanma Barranquero <lekktu@gmail.com>
18532
18533 * lread.c (Fload): Fix typo in docstring.
18534
185352007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18536
18537 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18538 of a non-zero value can't yield zero.
18539
185402007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18541
18542 * term.c (term_clear_mouse_face, term_mouse_highlight)
18543 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18544
18545 * print.c (safe_debug_print): Use XHASH.
18546
18547 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18548 Lisp elements such as tags.
18549 (XHASH): New macro.
18550 (EQ): Use it.
18551 (SREF, SSET, STRING_COPYIN): Use SDATA.
18552 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18553
18554 * alloc.c (mark_terminal): Remove left-over declaration.
18555 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18556 (allocate_vectorlike): Remove type argument. Adjust callers.
18557 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18558 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18559
18560 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18561 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18562 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18563 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18564 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18565 Use them.
18566
18567 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18568 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18569 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18570
185712007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18572
18573 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18574 loaded by default.
18575
185762007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18577
18578 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18579 on this tty.
18580 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18581
18582 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18583 Update all users.
18584 (handle_one_term_event): Use Gpm_DrawPointer.
18585 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18586 Signal errors instead of returning nil. Always return nil.
18587 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18588 Make it a noop if gpm-mouse was not activated.
18589 (syms_of_term): Update names.
18590
185912007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18592
18593 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18594 (init_sys_modes): Check that gpm_tty is the current tty.
18595
18596 * alloc.c (allocate_terminal): Set the vector size to only count the
18597 lisp fields. Initialize those to nil.
18598 (mark_object): Don't treat terminals specially.
18599 (mark_terminal): Remove.
18600 (mark_terminals): Use mark_object instead.
18601
18602 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18603 the GC to the beginning.
18604
18605 * indent.h:
18606 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18607
18608 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18609
186102007-09-25 Jason Rumney <jasonr@gnu.org>
18611
18612 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18613
18614 * w32console.c (create_w32cons_output): Remove.
18615
18616 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18617
18618 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18619 (reset_sys_modes): Use reset_terminal_modes_hook.
18620
186212007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18622
18623 * eval.c (do_autoload): Don't output any message.
18624
186252007-09-24 Juri Linkov <juri@jurta.org>
18626
18627 * emacs.c (standard_args): Change priority of "--no-splash"
18628 from 40 to 3. Add "--no-desktop" with the same priority.
18629
186302007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18631
18632 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18633 and optimize the case where they are all 1.
18634
186352007-09-23 Johannes Weiner <hannes@saeurebad.de>
18636
18637 * lisp.h (abs): Define if not defined.
18638 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18639 Don't define `abs', since it's defined in lisp.h.
18640
186412007-09-22 Eli Zaretskii <eliz@gnu.org>
18642
18643 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18644 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18645 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18646 (init_tty): Use DEV_TTY instead of "/dev/tty".
18647 [WINDOWSNT]: No need to protect from NAME arg being null.
18648
186492007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18650
18651 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18652 up the tty state.
18653
186542007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18655
18656 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18657 (gpm_tty): Change its type.
18658 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18659 (gpm_tty): Change its type and initialize it.
18660 (Fterm_open_connection): Check the frame is indeed a tty.
18661 Use the new gpm_tty.
18662 (Fterm_close_connection): Use the new gpm_tty.
18663 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18664 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18665
186662007-09-21 Juanma Barranquero <lekktu@gmail.com>
18667
18668 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18669 underline_color, to draw strike-through.
18670
186712007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18672
18673 * lisp.h (allocate_terminal): Declare.
18674
18675 * window.c (candidate_window_p): Consider frames that are being placed
18676 by the user as somewhere between visible and iconified.
18677 (window_loop): Prefer windows on the current frame.
18678 (Fselect_window): Move the use of select-frame to the beginning so we
18679 can just delegate all the work (it'll call us back anyway).
18680
18681 * frame.c (Qdisplay_environment_variable):
18682 * frame.h (Qdisplay_environment_variable): Delete.
18683
18684 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18685 of the first arg, since that value may be a union.
18686
18687 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18688 parameter rather than Qdisplay_environment_variable. If all else
18689 fails, look for DISPLAY in initial-environment.
18690
186912007-09-21 Glenn Morris <rgm@gnu.org>
18692
18693 * Makefile.in (emacstool): Remove target.
18694 (lisp, shortlisp): Remove termdev.elc.
18695
186962007-09-21 Markus Triska <markus.triska@gmx.at>
18697
18698 * xterm.c (x_delete_display): Compile session management conditionally.
18699
187002007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18701
18702 * callproc.c (getenv_internal_1): New function.
18703 (getenv_internal): Use it.
18704 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18705
18706 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18707 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18708 (Fset_terminal_parameter): Work with dead terminals as well.
18709 (Fmodify_terminal_parameters): Remove.
18710
18711 * terminal.c (get_terminal): Handle terminals.
18712 Make sure the terminal returned is live.
18713 (create_terminal): Use allocate_terminal.
18714 (mark_terminals): Move to alloc.c.
18715 (delete_terminal): Use terminal->name as liveness status.
18716 NULL out fields after freeing their contents.
18717 Don't deallocate the object.
18718 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18719 rather than an int.
18720 (Fterminal_live_p): Accept non-integer arguments.
18721 (Fterminal_list): Return terminal objects rather than an ints.
18722
18723 * alloc.c (enum mem_type): New member for `terminal' objects.
18724 (allocate_terminal): New function.
18725 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18726 Handle terminals.
18727 (mark_terminal): New fun.
18728 (mark_terminals): Move from terminal.c.
18729
18730 * term.c (get_tty_terminal): Don't treat output_initial specially.
18731 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18732 (delete_tty): Use terminal->name as liveness status.
18733
18734 * termhooks.h (struct terminal): Make it into a pseudovector.
18735 Remove `deleted' replaced by checking `name's nullness.
18736
18737 * print.c (print_object): Handle terminals.
18738
18739 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18740 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18741
18742 * frame.c (make_terminal_frame):
18743 * keyboard.c (tty_read_avail_input):
18744 * w32term.c (x_delete_terminal):
18745 * xfns.c (Fx_create_frame, x_create_tip_frame):
18746 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18747
187482007-09-20 Glenn Morris <rgm@gnu.org>
18749
18750 * process.c (Fmake_network_process): Doc fix.
18751
187522007-09-19 Jason Rumney <jasonr@gnu.org>
18753
18754 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18755
187562007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18757
18758 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18759 Fix a C warning regarding variable constness.
18760
18761 * xterm.c (handle_one_xevent): Fix a C warning.
18762
187632007-09-18 Jason Rumney <jasonr@gnu.org>
18764
18765 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18766
187672007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18768
18769 * gtkutil.c (gdpy_def): New variable.
18770 (xg_initialize): Initialize gdpy_def.
18771 (xg_display_close): If no other display exists, set gdpy_def to a
18772 new connection.
18773
187742007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18775
18776 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18777 when we have no file name for the icon.
18778 (xg_tool_bar_expose_callback): Remove.
18779 (xg_create_tool_bar): Don't connect expose signal to
18780 xg_tool_bar_expose_callback.
18781 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18782
187832007-09-16 Andreas Schwab <schwab@suse.de>
18784
18785 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18786 values instead of zapping them.
18787
187882007-09-14 Glenn Morris <rgm@gnu.org>
18789
18790 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18791 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18792 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18793 scope and rename to omfib_buffer for clarity.
18794 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18795
187962007-09-14 Kenichi Handa <handa@m17n.org>
18797
18798 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18799
188002007-09-13 Jason Rumney <jasonr@gnu.org>
18801
18802 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18803
18804 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18805
18806 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18807 (mac_term_init): Call here instead, passing rif.
18808
188092007-09-13 Glenn Morris <rgm@gnu.org>
18810
18811 * s/hpux.h: No longer define `static' as nothing.
18812
188132007-09-13 Johan Bockgård <bojohan@gnu.org>
18814
18815 * callint.c (Fcall_interactively): Remove unused var `fun'.
18816
188172007-09-12 Romain Francoise <romain@orebokech.com>
18818
18819 * window.c (prefer_window_split_horizontally, display_buffer):
18820 Revert 2007-09-08 change.
18821
188222007-09-12 Glenn Morris <rgm@gnu.org>
18823
18824 * alloca.c: Remove file.
18825 * Makefile.in (alloca): Do not undef.
18826 (allocaobj, alloca.o): Remove.
18827 (otherobj): Remove allocaobj.
18828 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18829 * regex.c (C_ALLOCA): Remove all references and code that was only
18830 used when this was defined.
18831 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18832 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18833 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18834
18835 * Makefile.in (SOURCES, unlock, relock): Delete.
18836
18837 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18838 (menu_grab_callback): All uses changed.
18839
18840 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18841 (x_reply_selection_request): All uses changed.
18842
188432007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18844
18845 * lread.c (load_warn_old_style_backquotes): Change message to look
18846 better when it appears in the middle of byte-compiler messages.
18847
188482007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18849
18850 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18851
18852 * xterm.c (x_create_terminal): Add comment.
18853
18854 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18855
188562007-09-10 Richard Stallman <rms@gnu.org>
18857
18858 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18859
188602007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18861
18862 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18863 (DEFUN): Document `intspec', use it instead of `prompt'.
18864
18865 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18866
18867 * data.c (Finteractive_form): If the interactive specification starts
18868 with a `(', use it as a Lisp form.
18869
18870 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18871 name and file modes.
18872
18873 * callint.c (Fcall_interactively): Comment fixes.
18874
188752007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18876
18877 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18878 and compiled functions.
18879
188802007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18881
18882 * window.c (prefer_window_split_horizontally): New variable.
18883 (display_buffer): Consider splitting window horizontally depending
18884 on prefer_window_split_horizontally.
18885
188862007-09-08 Eli Zaretskii <eliz@gnu.org>
18887
18888 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18889
188902007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18891
18892 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18893
18894 * frame.c (x_set_frame_parameters): Check number is positive before
18895 using XFASTINT.
18896
18897 * window.c (freeze_window_start): Don't presume selected_window holds
18898 a window object.
18899 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18900
189012007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18902
18903 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18904
189052007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18906
18907 * window.c (Vsplit_window_preferred_function): New var.
18908 (Fdisplay_buffer): Use it.
18909 (syms_of_window): Export, and initialize it.
18910
189112007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18912
18913 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18914
189152007-09-06 Glenn Morris <rgm@gnu.org>
18916
18917 * gtkutil.c (menu_grab_callback) <cnt>:
18918 * xselect.c (x_reply_selection_request) <cnt>: Move static
18919 variable to file scope.
18920
189212007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18922
18923 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18924 consistent values of selected_frame and selected_window.
18925
189262007-09-04 Jason Rumney <jasonr@gnu.org>
18927
18928 * w32console.c (initialize_w32_display): Zero unused hooks.
18929
189302007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18931
18932 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18933 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18934
189352007-09-04 Jason Rumney <jasonr@gnu.org>
18936
18937 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18938 in w32console.c. Set up input. Remove XXX comments that have been
18939 confirmed as correct.
18940
18941 * s/ms-w32.h (MULTI_KBOARD): Define.
18942
18943 * w32console.c (one_and_only_w32cons): Remove.
18944 (initialize_w32_display): Take terminal argument.
18945
18946 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18947 initialize_w32_display.
18948 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18949
18950 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18951
18952 * keyboard.c (discard_mouse_events): Discard it.
18953 (make_lispy_event): Translate it to a lisp event.
18954 (lispy_wheel_names): Add wheel-left and right events.
18955 (syms_of_keyboard): Enlarge wheel_syms.
18956
18957 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18958 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18959
18960 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18961
18962 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18963 from WM_MOUSEHWHEEL.
18964 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18965
18966 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18967 terminal.
18968
18969 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18970 keyboard for the terminal.
18971
189722007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18973
18974 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18975 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18976 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18977 and resume-tty-function to resume-tty-hook.
18978 (Fsuspend_tty, Fresume_tty): Use new names.
18979
189802007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18981
18982 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18983 if it starts with "n:".
18984
189852007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18986
18987 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18988
189892007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18990
18991 * frame.h:
18992 * frame.c (Qterm_environment_variable): Remove.
18993 (syms_of_frame): Don't init and staticpro it.
18994
18995 * callproc.c (getenv_internal): Remove special case for $TERM.
18996
18997 * callproc.c (Vinitial_environment): New variable.
18998 (set_initial_environment): Initialize it.
18999 (syms_of_callproc): Declare it.
19000 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19001 TERM under which a process runs is never related to the TERM in which
19002 Emacs is running.
19003
190042007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19005
19006 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19007 * s/darwin.h: ... do it here.
19008
190092007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19010
19011 * lisp.h (set_initial_environment): Rename from set_global_environment.
19012
19013 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19014 removed by mistake on the multi-tty branch.
19015
19016 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19017 (Fmodify_frame_parameters): Return a value.
19018
19019 * image.c (png_load): Comment-out var only used in commented-out code.
19020
19021 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19022 before passing it to mark_object.
19023
19024 * xfaces.c (internal_resolve_face_name): Return a value.
19025 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19026
19027 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19028 (x_icon): Comment-out var only used in commented-out code.
19029
190302007-08-29 Romain Francoise <romain@orebokech.com>
19031
19032 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19033 QUIT hasn't been provided.
19034
190352007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19036
19037 * callproc.c (child_setup, getenv_internal): Use the
19038 display-environment-variable and term-environment-variable frame params.
19039 (set_initial_environment): Initialise Vprocess_environment.
19040
19041 * config.in: Disable multi-keyboard support on a mac.
19042
19043 * frame.c (Qterm_environment_variable)
19044 (Qdisplay_environment_variable): New variables.
19045 (syms_of_frame): Intern and staticpro them.
19046 (Fmake_terminal_frame): Disable output method test.
19047
19048 * frame.h: Declare them here.
19049
19050 * macfns.c (x_set_mouse_color): Get rif from the frame.
19051 (x_set_tool_bar_lines): Don't use updating_frame.
19052 (mac_window): Add 2 new parameters for consistency with other systems.
19053 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19054 frame parameters following what is done in X11 and w32. Don't use
19055 FRAME_MAC_DISPLAY_INFO.
19056 (Fx_open_connection, start_hourglass): Remove window-system check.
19057 (x_create_tip_frame): Get the keyboard from the terminal.
19058
19059 * macmenu.c: Reorder includes.
19060 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19061
19062 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19063 terminal parameter.
19064 (x_clear_frame): Add a frame parameter.
19065 (note_mouse_movement): Get rif from the frame.
19066 (mac_term_init): Initialize the terminal.
19067 (mac_initialize): Make static and move terminal initialization ...
19068 (mac_create_terminal): ... to this new function.
19069
19070 * macterm.h (struct mac_display_info): Add terminal.
19071 (mac_initialize): Delete declaration.
19072
19073 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19074
19075 * sysdep.c: Comment out text after #endif.
19076
19077 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19078 is defined. Better initialize ttys in windows. Use terminal
19079 specific mouse_position_hook.
19080
19081 * termhooks.h (union display_info): Add mac_display_info.
19082
19083 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19084 Set the default minibuffer frame, window_system and the rest of the
19085 frame parameters following what is done in X11.
19086
19087 * w32term.c (w32_initialize): Make static.
19088
19089 * xselect.c (x_handle_selection_clear): Only access
19090 terminal->kboard when MULTI_KBOARD is defined.
19091
19092 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19093 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19094
190952007-08-29 Jason Rumney <jasonr@gnu.org>
19096
19097 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19098 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19099
19100 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19101 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19102
19103 * keyboard.c (restore_kboard_configuration): Only define when
19104 MULTI_KBOARD defined.
19105
19106 * makefile.w32-in: Update dependancies from Makefile.in.
19107 (OBJ1): Add terminal.$(O)
19108
19109 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19110 Don't define function body.
19111 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19112
19113 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19114
19115 * w32.c (request_sigio, unrequest_sigio): Remove.
19116
19117 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19118 (w32con_clear_frame, w32con_clear_end_of_line)
19119 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19120 (w32con_delete_glyphs, w32con_set_terminal_window)
19121 (scroll_line, w32_sys_ring_bell): Add frame arg.
19122 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19123 Add terminal arg.
19124 (PICK_FRAME): Remove.
19125 (w32con_write_glyphs): Use frame specific terminal coding.
19126 (one_and_only_w32cons): New global variable.
19127 (initialize_w32_display): Use it for storing hooks.
19128 (create_w32cons_output): New function.
19129
19130 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19131 arg a frame.
19132
19133 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19134 Set window_system.
19135 (x_set_tool_bar_lines): Don't use updating_frame.
19136 (Fx_create_frame): Set terminal and ref count.
19137 (Fx_open_connection): Remove window-system check.
19138
19139 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19140
19141 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19142 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19143 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19144 Add frame arg.
19145 (x_delete_terminal, w32_create_terminal): New functions.
19146 (w32_term_init): Create a terminal.
19147 (w32_initialize): Move terminal specific initialization to
19148 w32_create_terminal.
19149
19150 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19151 (w32_clear_rect, w32_clear_area): Use background from frame.
19152 (w32_display_info): Add terminal.
19153 (w32_sys_ring_bell, x_delete_display): Declare here.
19154
19155 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19156
19157 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19158
191592007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19160
19161 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19162 Fix get_named_tty calls for the controlling tty.
19163
191642007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19165
19166 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19167
191682007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19169
19170 * term.c (tty_insert_glyphs): Add missing first parameter.
19171
191722007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19173
19174 * buffer.c (Fbuffer_list, Fbury_buffer):
19175 Take frame->buried_buffer_list into account.
19176
19177 * cm.c (current_tty): New variable, for cmputc().
19178 (cmputc): Use it.
19179 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19180 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19181 (cmgoto): Add tty parameter. Pass it on to calccost().
19182 Use emacs_tputs() instead of tputs().
19183
19184 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19185 tputs().
19186 (current_tty): New variable, for cmputc().
19187 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19188
19189 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19190 (internal_condition_case, internal_condition_case_1)
19191 (internal_condition_case_2): Don't abort when x_catching_errors.
19192
19193 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19194 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19195 prevent crashes caused by bogus longjmps in read_char.
19196
19197 * keymap.h (Fset_keymap_parent): Add EXFUN.
19198
19199 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19200 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19201 Remove redundant definition.
19202
19203 * macfns.c (x_set_mouse_color, x_make_gc):
19204 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19205
19206 * w32term.c (x_free_frame_resources):
19207 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19208 (w32_initialize): Use the accessor macros for terminal characteristics.
19209
19210 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19211 Use the accessor macros for terminal characteristics.
19212 * msdos.c (internal_terminal_init): Use the accessor macros for
19213 terminal characteristics.
19214 (ScreenVisualBell, internal_terminal_init):
19215 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19216
19217 * termopts.h (no_redraw_on_reenter): Declare.
19218
19219 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19220 (mark_terminals, mark_ttys): Declare.
19221 (Fgarbage_collect): Call them.
19222 (mark_object): Mark buried_buffer_list.
19223
19224 * prefix-args.c: Include stdlib.h for exit.
19225
19226 * syssignal.h: Add comment.
19227
19228 * indent.c: Include stdio.h.
19229
19230 * window.h (Vinitial_window_system): Declare.
19231 (Vwindow_system): Delete declaration.
19232
19233 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19234
19235 * image.c (lookup_image): Don't initialize `c' until the xasserts
19236 have been run.
19237
19238 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19239 FRAME_FOREGROUND_PIXEL.
19240
19241 * print.c (print_preprocess): Don't lose print_depth levels while
19242 iterating.
19243
19244 * widget.c (update_from_various_frame_slots):
19245 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19246
19247 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19248 frames.
19249 (window_internal_height): Remove bogus make_number call.
19250 (init_window_once): Call make_terminal_frame with two zero parameters.
19251
19252 * fileio.c (Fread_file_name): Update comment.
19253
19254 * callint.c (Fcall_interactively):
19255 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19256 Make sure it is correctly unwound.
19257
19258 * xsmfns.c (x_session_close): New function.
19259
19260 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19261 Delete declarations.
19262
19263 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19264 (x_output): Remove background_pixel and foreground_pixel fields.
19265 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19266 (x_delete_device, x_session_close): Declare.
19267
19268 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19269 (read_filtered_event): Call `read_char' with a local
19270 `wrong_kboard_jmpbuf'.
19271
19272 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19273 Don't call single_kboard_state. Use FRAME_RIF.
19274
19275 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19276 systems.
19277
19278 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19279 (Fframe_with_environment, Fset_input_meta_mode)
19280 (Fset_quit_char): EXFUN.
19281 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19282 (init_sys_modes, reset_sys_modes): Update prototypes.
19283 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19284
19285 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19286 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19287 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19288 Delete declarations.
19289 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19290 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19291 New declarations.
19292
19293 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19294 already does that during init_display(). Call syms_of_keymap
19295 before syms_of_keyboard. Call `syms_of_terminal'.
19296 Call set_initial_environment, not set_process_environment.
19297 (shut_down_emacs): Call reset_all_sys_modes() instead of
19298 reset_sys_modes().
19299
19300 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19301 (internal_resolve_face_name, resolve_face_name_error): New functions.
19302 (resolve_face_name): Protect against loops and errors thrown by Fget.
19303 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19304 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19305
19306 * scroll.c: Replace CURTTY() with local variables throughout the
19307 file (where applicable).
19308 (calculate_scrolling, calculate_direct_scrolling)
19309 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19310 characteristics.
19311
19312 * keymap.c (Vfunction_key_map): Remove.
19313 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19314 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19315 (Vkey_translation_map): Remove.
19316 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19317 (Fdescribe_buffer_bindings)
19318 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19319 Update for terminal-local key-translation-map.
19320
19321 * Makefile.in (callproc.o): Update dependencies.
19322 (lisp, shortlisp): Add termdev.elc.
19323 (obj): Add terminal.o.
19324 (terminal.o): Add dependencies.
19325 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19326 (data.o, fns.o): Add termhooks.h dependency.
19327 (SOME_MACHINE_LISP): Add dnd.elc.
19328 (minibuf.o): Fix typo.
19329 Update dependencies.
19330
19331 * data.c (do_symval_forwarding, store_symval_forwarding)
19332 (find_symbol_value): Use the selected frame's keyboard, not
19333 current_kboard.
19334
19335 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19336 Vwindow_system.
19337
19338 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19339 Fmenu_bar_open.
19340 (syms_of_xmenu): Update defsubr.
19341 (mouse_position_for_popup, Fx_popup_menu)
19342 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19343 (set_frame_menubar, free_frame_menubar)
b97439ce 19344 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19345 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19346 an X frame.
19347
19348 * xselect.c (x_own_selection): Abort if not an X frame.
19349 (some_frame_on_display): Check if it is an X frame.
19350 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19351
19352 * coding.c: Include frame.h and termhooks.h.
19353 (terminal_coding, keyboard_coding): Delete.
19354 (Fset_terminal_coding_system_internal)
19355 (Fset_keyboard_coding_system_internal)
19356 (Fkeyboard_coding_system)
19357 (Fterminal_coding_system): Add a terminal parameter.
19358 Get terminal_coding from the terminal.
19359 (init_coding_once): Don't call setup_coding_system here.
19360
19361 * dispextern.h (set_scroll_region, turn_off_insert)
19362 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19363 (tty_clear_end_of_line, tty_setup_colors)
19364 (delete_tty, updating_frame)
19365 (produce_special_glyphs, produce_glyphs, write_glyphs)
19366 (insert_glyphs): Remove.
19367 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19368 (tty_turn_off_highlight, get_tty_size): Add declaration.
19369 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19370
19371 * frame.h (enum output_method): Add output_initial.
19372 (struct x_output): Delete.
19373 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19374 Access foreground_pixel and background_pixel directly from the frame.
19375 (tty_display): Delete.
19376 (struct frame): Add buried_buffer_list, foreground_pixel,
19377 background_pixel and terminal. Delete kboard.
19378 (union output_data): Add tty.
19379 (FRAME_KBOARD): Get the kboard from the terminal.
19380 (FRAME_INITIAL_P): New macro.
19381 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19382 (Qterm_environment_variable, Qdisplay_environment_variable)
19383 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19384 New declarations.
19385
19386 * termchar.h (tty_output, tty_display_info): New structures.
19387 (tty_list): Declare.
19388 (FRAME_TTY, CURTTY): New macros.
19389 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19390 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19391 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19392 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19393
19394 * callproc.c: Include frame.h and termhooks.h, for terminal
19395 parameters.
19396 (add_env): New function.
19397 (child_setup): Use it.
19398 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19399 (getenv_internal): Fix get_terminal_param call.
19400 (Fgetenv_internal, egetenv): Update doc.
19401 (syms_of_callproc): Initialize Vprocess_environment to nil.
19402 Register and initialize them. Remove obsolete defvars. Update doc
19403 strings.
19404 (child_setup): Handle Vlocal_environment_variables.
19405 (getenv_internal): Add terminal parameter.
19406 Handle Vlocal_environment_variables.
19407 (Fgetenv_internal): Add terminal parameter.
19408 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19409 environment in a frame (not terminal) parameter. Update doc strings.
19410 (set_initial_environment): Rename from set_global_environment.
19411 Store Emacs environment in initial frame parameter.
19412
19413 * xdisp.c (redisplay_internal): Update references to
19414 `previous_terminal_frame'.
19415 (display_mode_line, Fformat_mode_line): Replace calls to
19416 `push_frame_kboard' with `push_kboard'.
19417 (get_glyph_string_clip_rects): Add extra parentheses and
19418 braces to prevent compiler warnings.
19419 (calc_pixel_width_or_height): Add xassert to check that the
19420 frame is alive. Don't call `lookup_image' on a termcap frame.
19421 (message2_nolog, message3_nolog, redisplay_internal)
19422 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19423 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19424 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19425 (Fx_display_pixel_width, Fx_display_pixel_height)
19426 (Fx_display_planes, Fx_display_color_cells)
19427 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19428 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19429 (Fx_display_backing_store, Fx_display_visual_class)
19430 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19431 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19432
19433 * xfns.c (x_set_foreground_color x_set_background_color)
19434 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19435 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19436 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19437 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19438 terminal that is being deleted.
19439 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19440 frame parameter, and make sure it overrides any user-supplied setting.
19441 (Fx_close_connection, Fx_synchronize): Unify argument names with
19442 the rest of the DEFUNs.
19443
19444 * dispnew.c (Fsend_string_to_terminal): Update call to
19445 `get_tty_terminal'.
19446 (Fredraw_frame, Fsend_string_to_terminal)
19447 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19448 FRAME_TERMCAP_P and FRAME_TTY.
19449 (window_change_signal): Don't believe width/height values that are
19450 impossibly small.
19451 (Vinitial_window_system): Rename from Vwindow_system.
19452 (termscript, Wcm, rif): Delete.
19453
19454 * termhooks.h (struct terminal): New struct containing the
19455 previously global text display hooks and new members NAME,
19456 DELETED and PARAM_ALIST.
19457 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19458 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19459 (FRAME_RIF): New macros.
19460 (get_terminal_param, get_device): New declarations.
19461 (termscript): Delete declaration.
19462
19463 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19464 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19465 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19466 FRAME_FOREGROUND_PIXEL.
19467 (x_fully_uncatch_errors): Disable definition.
19468 (x_scroll_bar_expose): Fix reference to foreground pixel.
19469 (XTread_socket): Disable loop on all X displays.
19470 (x_delete_terminal): Don't set terminal->deleted and let
19471 delete_terminal delete the frames on the terminal.
19472 (x_delete_display): Doc update to reflect changes in
19473 delete_terminal.
19474 (x_display_info) <terminal>: Move member earlier in the struct.
19475 (deleting_tty): Remove old variable.
19476 (Fsuspend_tty): Call clear_tty_hooks.
19477 (Fresume_tty, init_tty): Call set_tty_hooks.
19478 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19479 errors on X frames.
19480 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19481 (handle_one_xevent): Initialize `f' to NULL.
19482 (x_delete_terminal, x_create_terminal): New functions.
19483 (XTset_terminal_modes, XTreset_terminal_modes)
19484 (XTread_socket, x_connection_closed, x_term_init)
19485 (x_term_init, x_delete_display): Add terminal parameter.
19486 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19487 X connections.
19488
19489 * frame.c: Include termchar.h.
19490 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19491 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19492 (Qdisplay_environment_variable): New vars.
19493 (Fframep): Deal with output_initial.
19494 (Fframe-live-p): Doc fix.
19495 (Fwindow-system): New function.
19496 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19497 (make_terminal_frame): Don't create frames on a terminal that is
19498 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19499 (store_frame_param): Check for found_for_frame before calling XFRAME.
19500 (Fmake_terminal_frame): Handle NULL tty names correctly.
19501 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19502 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19503 frames to refer to a deleted frame in their 'environment parameter.
19504 (Fframe_with_environment): New function.
19505 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19506 (get_future_frame_param): New function.
19507 (Fmake_terminal_frame): Use it.
19508 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19509
19510 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19511 * sysdep.c (reset_sys_modes): Update for renames.
19512
19513 * keyboard.c (tty_read_avail_input): New function.
19514 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19515 (syms_of_keyboard): Defsubr them.
19516 (Fset_input_meta_mode, Fset_quit_char): New functions.
19517 (Fset_input_mode): Split to above functions.
19518 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19519 parameter. Use it in call to `read_char'.
19520 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19521 Set wrong_kboard_jmpbuf correctly in recursive calls.
19522 Use current_kboard to access Vkeyboard_translate_table.
19523 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19524 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19525 Update longjmp invocations. Remember the original current_kboard,
19526 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19527 changes it. Comment out unnecessary calls to
19528 `record_single_kboard_state' and `any_kboard_state'.
19529 Update recursive calls.
19530 (wrong_kboard_jmpbuf): Remove global variable.
19531 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19532 Handle deleted interrupted_kboards correctly; that is a legal
19533 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19534 and read_char calls. Abort if interrupted_kboard died in read_char.
19535 (any_kboard_state, single_kboard_state)
19536 (push_frame_kboard): Remove function.
19537 (pop_kboard): Switch out of single_kboard mode if the kboard has
19538 been deleted. Remove unused variable. Help debugging by not
19539 changing current_kboard unnecessarily. Set current_kboard to the
19540 kboard of the selected frame when the stored kboard object has
19541 been deleted before pop_kboard.
19542 (temporarily_switch_to_single_kboard): Change first parameter to a
19543 frame pointer. Throw an error when caller wants to change kboards
19544 while in single_kboard mode. Don't push_kboard if we weren't in
19545 single kboard state. Don't pop_kboard if we popped into any
19546 kboard state.
19547 (restore_kboard_configuration): Abort if pop_kboard changed the
19548 kboard in single_kboard mode. Call pop_kboard only after setting
19549 up single_kboard mode.
19550 (Frecursive_edit): Switch to single_kboard mode only in nested
19551 command loops.
19552 (cmd_error, command_loop, command_loop_1, timer_check):
19553 Comment out unnecessary call to `any_kboard_state' and
19554 `record_single_kboard_state'.
19555 (delete_kboard): Exit single_kboard mode if we have just deleted
19556 that kboard. Use FRAME_KBOARD.
19557 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19558 `fatal_error_signal'.
19559 (record_single_kboard_state): Don't push_kboard if we weren't in
19560 single kboard state. Don't pop_kboard if we popped into any
19561 kboard state.
19562 (push_frame_kboard): Rename to push_kboard.
19563 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19564 (read_avail_input): Read input from all terminals.
19565 (mark_kboards): Also mark Vkeyboard_translate_table.
19566 (kbd_buffer_store_event_hold): Simplify condition.
19567 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19568 (Vkeyboard_translate_table): Move to struct kboard.
19569 (init_kboard): Initialize Vkeyboard_translate_table.
19570 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19571 Vkeyboard_translate_table. Update doc strings. Update docs of
19572 local-function-key-map and function-key-map.
19573
19574 * terminal.c: New file.
19575
19576 * term.c: Include errno.h.
19577 (Vring_bell_function, device_list, initial_device)
19578 (next_device_id, ring_bell, update_begin, update_end)
19579 (set_terminal_window, cursor_to, raw_cursor_to)
19580 (clear_to_end, clear_frame, clear_end_of_line)
19581 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19582 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19583 (syms_of_term): Move their initialization to terminal.c.
19584 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19585 (Ftty_display_color_cells)
19586 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19587 (clear_tty_hooks, set_tty_hooks)
19588 (init_tty, maybe_fatal): New functions.
19589 (Ftty_type): Return nil if terminal is not on a tty instead of
19590 throwing an error. Doc update.
19591 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19592 Doc update. Initialize new subrs and variables.
19593 (delete_tty): Use terminal->deleted.
19594 (tty_set_terminal_modes): Rename from set_terminal_modes.
19595 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19596 (set_scroll_region): Rename to `tty_set_scroll_region'.
19597 (turn_on_insert): Rename to `tty_turn_on_insert'.
19598 (turn_off_insert): Rename to `tty_turn_off_insert'.
19599 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19600 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19601 (toggle_highligh): Rename to `tty_toggle_highlight'.
19602 (background_highlight): Rename to `tty_background_highlight'.
19603 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19604 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19605 (tty_set_scroll_region, tty_background_highlight)
19606 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19607 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19608 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19609 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19610 Add static modifier.
19611 (tty_reset_terminal_modes, tty_set_terminal_window)
19612 (tty_set_scroll_region, tty_background_highlight)
19613 (tty_highlight_if_desired, tty_cursor_to)
19614 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19615 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19616 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19617 renames.
19618
196192007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19620
19621 * keyboard.c: Qrtl is new.
19622 (parse_tool_bar_item): Handle :rtl keyword.
19623 (syms_of_keyboard): Intern :rtl keyword.
19624
19625 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19626
19627 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19628 so no Lisp code is executed.
19629 (file_for_image, find_rtl_image): New functions.
19630 (xg_get_image_for_pixmap): Use file_for_image.
19631 (update_frame_tool_bar): If direction is RTL, use RTL image if
19632 defined. Use Gtk stock images if defined.
19633
196342007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19635
19636 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19637 for nonexistent or zero-width glyph in composition glyph.
19638
196392007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19640
19641 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19642
19643 * xdisp.c (Finvisible_p): New function.
19644 (syms_of_xdisp): defsubr it.
19645
196462007-08-24 Juanma Barranquero <lekktu@gmail.com>
19647
19648 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19649 Doc fixes.
19650
196512007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19652
19653 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19654
196552007-08-24 Martin Rudalics <rudalics@gmx.at>
19656
19657 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19658 whether decoding has modified buffer contents.
19659
196602007-08-24 Jason Rumney <jasonr@gnu.org>
19661
19662 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19663 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19664 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19665 (init_svg_functions) [HAVE_NTGUI]: New function.
19666 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19667 (svg_load_image): Use them.
19668 (svg_load_image) [HAVE_NTGUI]: Implement background.
19669
196702007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19671
19672 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19673 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19674 (LIBX): Remove @RSVG_LIBS@.
19675 (LIBES): Add $(RSVG_LIBS).
19676
19677 * image.c (svg_load_image): Blend with specified background if exists.
19678 Use IMAGE_BACKGROUND. Add Mac OS Support.
19679
19680 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19681 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19682 Remove macros.
19683 [MAC_OSX] (socket_callback): Do nothing.
19684 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19685 ReceiveNextEvent.
19686 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19687 socket_callback.
19688 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19689
196902007-08-22 Glenn Morris <rgm@gnu.org>
19691
19692 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19693
196942007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19695
19696 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19697
19698 * image.c: Add support for SVG images. Some additional comments
19699 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19700 (svg_image_p): New function to test for SVG image.
19701 (svg_load): New function to load SVG image.
19702 (svg_load_image): New function, helper for svg_load.
19703 (Qsvg): New Lisp_object.
19704 (svg_keyword_index): New enum.
19705 (svg_format): New static `image_keyword' struct.
19706 (svg_type): New static `image_type' struct.
19707 (librsvg/rsvg.h): Include it.
19708
197092007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19710
19711 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19712
197132007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19714
19715 * lread.c (Qold_style_backquotes): New var.
19716 (syms_of_lread): Init and staticpro it.
19717 (load_warn_old_style_backquotes): New fun.
19718 (Fload): Use them to warn about old style backquotes.
19719 (end_of_file_error, Fload): Remove unused vars.
19720
19721 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19722
19723 * lread.c (Vold_style_backquotes): New var.
19724 (syms_of_lread): Init and export it to Elisp.
19725 (read1): Set it when we find an old-style (back)quote.
19726
197272007-08-22 Jason Rumney <jasonr@gnu.org>
19728
19729 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19730
197312007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19732
19733 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19734
197352007-08-19 Richard Stallman <rms@gnu.org>
19736
19737 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19738
197392007-08-19 Andreas Schwab <schwab@suse.de>
19740
19741 * alloc.c (pure): Round PURESIZE up.
19742
197432007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19744
19745 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19746 active frame.
19747
197482007-08-16 Richard Stallman <rms@gnu.org>
19749
19750 * eval.c (Fcommandp): Add parens to clarify.
19751
19752 * minibuf.c (Fall_completions): Use enum for type of table.
19753
19754 * emacs.c (USAGE2): Improve text.
19755
197562007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19757
19758 * term.c (tty_default_color_capabilities): Declare static
19759 variables in file scope, to avoid HPUX compiler problem.
19760
197612007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19762
19763 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19764 to gtk_toolbar_insert.
19765
197662007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19767
19768 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19769
19770 * insdel.c (reset_var_on_error): New fun.
19771 (signal_before_change, signal_after_change):
19772 Use it to reset (after|before)-change-functions to nil in case of error.
19773 Bind inhibit-modification-hooks to t.
19774 Don't bind (after|before)-change-functions to nil while they run.
19775
197762007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19777
19778 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19779 filling pixmap with stippled background.
19780
197812007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19782
19783 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19784 Don't use invisible frame as parent window for repositioning.
19785
197862007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19787
19788 * print.c (new_backquote_output): Rename from old_backquote_output.
19789 (print): Inverse its logic (according to its name) so as to match the
19790 behavior of new_backquote_flag in lread.c.
19791
197922007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19793
19794 * gmalloc.c (posix_memalign): New function.
19795
19796 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19797 ActivateControl/DeactivateControl here.
19798 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19799 frame-notice-user-settings is non-nil.
19800 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19801 for kEventParamFMFontStyle.
19802 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19803 mac_pass_command_to_system and mac_pass_control_to_system here.
19804 (XTread_socket): Call ActivateControl/DeactivateControl here.
19805 (XTread_socket) [TARGET_API_MAC_CARBON]:
19806 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19807 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19808 for window repositioning.
19809
198102007-08-08 Glenn Morris <rgm@gnu.org>
19811
19812 * Replace `iff' in doc-strings and comments.
19813
198142007-08-07 Chong Yidong <cyd@stupidchicken.com>
19815
19816 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19817
198182007-08-07 Martin Rudalics <rudalics@gmx.at>
19819
19820 * fileio.c (Finsert_file_contents): Run format-decode and
19821 after_insert_file_functions on entire buffer when REPLACE is
19822 non-nil and inhibit modification_hooks and point_motion_hooks.
19823 For consistency, run after_insert_file_functions iff something
19824 got inserted. Move signal_after_change and update_compositions
19825 after code running after_insert_file_functions. Make sure that
19826 undo_list doesn't record intermediate steps of the decoding process.
19827
198282007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19829
19830 * emacs.c (main)
19831 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19832 Call malloc_enable_thread on interactive startup.
19833
19834 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19835 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19836 [USE_PTHREAD]: Conditionalize with it.
19837 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19838 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19839 New functions.
19840
198412007-08-06 Chong Yidong <cyd@stupidchicken.com>
19842
19843 * xdisp.c (redisplay_window): When restoring original buffer
19844 position, make sure it is still valid.
19845
19846 * image.c (png_load): Ignore png-supplied background color.
19847
198482007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19849
19850 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19851 Use kCFAbsoluteTimeIntervalSince1970.
19852
19853 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19854 New variable.
19855 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19856 event loop should be quit.
19857 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19858 Quit dialog event loop if quit_dialog_event_loop is set.
19859
19860 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19861 (Selection): New typedef. Use instead of ScrapRef.
19862 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19863 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19864 (mac_clear_selection): Rename from clear_scrap.
19865 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19866 scrap_has_target_type. All uses changed.
19867 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19868 (mac_selection_has_target_p): New functions.
19869 (mac_put_selection_value): Rename from put_scrap_string.
19870 (mac_get_selection_value): Rename from get_scrap_string.
19871 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19872 (put_scrap_private_timestamp, scrap_has_target_type)
19873 (get_scrap_private_timestamp): Remove functions.
19874 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19875 (x_own_selection, x_get_local_selection):
19876 Use mac_valid_selection_value_p.
19877 (x_own_selection): Don't use put_scrap_private_timestamp.
19878 Record OWNERSHIP-INFO into Vselection_alist instead.
19879 (x_get_local_selection): Don't check type if request is local.
19880 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19881 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19882
198832007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19884
19885 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19886 add comment explaining why.
19887
198882007-08-03 Richard Stallman <rms@gnu.org>
19889
19890 * fileio.c (Fvisited_file_modtime): Use make_time.
19891
198922007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19893
19894 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19895 build.
19896
198972007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19898
19899 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19900
199012007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19902
19903 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19904
199052007-07-30 Richard Stallman <rms@gnu.org>
19906
19907 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19908
199092007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19910
19911 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19912
199132007-07-28 Nick Roberts <nickrob@snap.net.nz>
19914
19915 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19916 remote default-directory.
19917
19918 * buffer.c (mode-line-format): Update doc string.
19919
199202007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19921
19922 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19923 scroll bar gap.
19924 (x_scroll_bar_create): Set bar->fringe_extended_p.
19925 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19926 on frame edge. Check fringe background extension. Don't clear
19927 extended fringe background area.
19928
19929 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19930 (w32_fill_area): Enclose multiple statements with do ... while (0).
19931
19932 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19933 Extend fringe background to scroll bar gap.
19934 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19935 Set bar->fringe_extended_p.
19936 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19937 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19938 background extension. Don't clear extended fringe background area.
19939
19940 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19941 New member fringe_extended_p.
19942
199432007-07-25 Glenn Morris <rgm@gnu.org>
19944
19945 * Relicense all FSF files to GPLv3 or later.
19946
19947 * COPYING: Switch to GPLv3.
19948
199492007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19950
19951 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19952
19953 * data.c (Finteractive_form): Check for the presence of an
19954 `interactive-form' symbol property more thoroughly.
19955
19956 * data.c (Finteractive_form): Use an `interactive-form' property if
19957 present, analogous to the function-documentation property.
19958
199592007-07-24 Jason Rumney <jasonr@gnu.org>
19960
19961 * w32fns.c (x_real_positions): Get real position from OS instead of
19962 calculating it.
19963
199642007-07-23 Jason Rumney <jasonr@gnu.org>
19965
19966 * filelock.c (current_lock_owner): Allow for @ sign in username.
19967
199682007-07-22 Nick Roberts <nickrob@snap.net.nz>
19969
19970 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19971 remote default-directory.
19972
19973 * buffer.c (mode-line-format): Describe above case in doc string.
19974
199752007-07-20 Eli Zaretskii <eliz@gnu.org>
19976
19977 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19978 Define if not defined.
19979
199802007-07-18 Jason Rumney <jasonr@gnu.org>
19981
19982 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19983
199842007-07-18 Richard Stallman <rms@gnu.org>
19985
19986 * data.c (Fsetq_default): Doc fix.
19987
19988 * eval.c (Fsetq): Doc fix.
19989
199902007-07-18 Juanma Barranquero <lekktu@gmail.com>
19991
19992 * coding.c (Ffind_operation_coding_system):
19993 * eval.c (For, Fand): Doc fixes.
19994 Reported by Johan Bockgård.
19995
199962007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19997
19998 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19999
20000 * xterm.h: Declare x_ewmh_activate_frame.
20001
20002 * xterm.c (x_ewmh_activate_frame): New function.
20003 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20004
200052007-07-17 Martin Rudalics <rudalics@gmx.at>
20006
20007 * window.c (Fdisplay_buffer): If largest or LRU window is the
20008 only window, split it even if it is not eligible for splitting.
20009 This restores the original behavior broken by the 2007-07-15
20010 change.
20011
200122007-07-17 Glenn Morris <rgm@gnu.org>
20013
20014 * abbrev.c (abbrev_check_chars): New function.
20015 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20016 Call abbrev_check_chars to check abbrev characters are word
20017 constituents. Doc fix.
20018
200192007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20020
20021 * process.c (Fstart_process, Fmake_network_process)
20022 (read_process_output): Fix up last changes.
20023
200242007-07-16 Eli Zaretskii <eliz@gnu.org>
20025
20026 * makefile.w32-in (clean): Don't delete *~.
20027
200282007-07-16 Andreas Schwab <schwab@suse.de>
20029
20030 * window.c (Fdisplay_buffer): Use NILP.
20031 (Fset_window_scroll_bars): Likewise.
20032
200332007-07-15 Martin Rudalics <rudalics@gmx.at>
20034
20035 * window.c (window_min_size_2): New function.
20036 (window_min_size_1, size_window, Fdisplay_buffer)
20037 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20038 windows without mode- or header-lines when window-min-height is
20039 too small.
20040 (size_window): Reset nodelete_p after testing it, following an
20041 earlier note by Kim F. Storm.
20042 (display_buffer): Do not set split_height_threshold to twice the
20043 value of window_min_height to avoid changing the value of a
20044 customizable variable. Rather explicitly check whether the
20045 height of the window that shall be splitted is at least as large
20046 as split_height_threshold.
20047 (Fwindow_full_width_p): New defun.
20048 (syms_of_window): Defsubr it.
20049
20050 * window.h: Add EXFUN for Fwindow_full_width_p.
20051
200522007-07-14 Jason Rumney <jasonr@gnu.org>
20053
20054 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20055
200562007-07-14 Richard Stallman <rms@gnu.org>
20057
20058 * eval.c (maybe_call_debugger): New function.
20059 (find_handler_clause): Use maybe_call_debugger.
20060 Call it when the handler says `debug'.
20061 Eliminate DEBUGGER_VALUE_PTR.
20062 (Fsignal): Eliminate debugger_value.
20063 (Qdebug): New variable.
20064 (syms_of_eval): Initialize it.
20065
200662007-07-14 Juanma Barranquero <lekktu@gmail.com>
20067
20068 * eval.c (Fprogn):
20069 * keyboard.c (Ftrack_mouse):
20070 * print.c (Fwith_output_to_temp_buffer):
20071 * window.c (Fsave_window_excursion): Doc fix.
20072
200732007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20074
20075 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20076
200772007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20078
20079 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20080 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20081 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20082 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20083 Remove unused encoding_carryover.
20084 * process.c: Adjust all functions accordingly.
20085
200862007-07-12 Richard Stallman <rms@gnu.org>
20087
20088 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20089
200902007-07-11 Jason Rumney <jasonr@gnu.org>
20091
20092 * makefile.w32-in (LIBS): Include OLE32.
20093
20094 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20095 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20096
200972007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20098
20099 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20100 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20101 from a Lisp_Object into a bare pointer.
20102 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20103 Adjust the code correspondingly.
20104
20105 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20106
20107 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20108 (term_show_mouse_face): Remove unused var `j'.
20109 (handle_one_term_event): Remove unused vars `i' and `j'.
20110 Don't cast return value of ttyname since it's not necessary.
20111
201122007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20113
20114 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20115 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20116
20117 * fns.c (map_char_table): Use an array of int for `indices' rather than
20118 an array of Lisp_Objects (which are only ever integers anyway).
20119 (Fmap_char_table): Update caller.
20120 * lisp.h: Update prototype.
20121 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20122 * fontset.c (Ffontset_info):
20123 * casetab.c (set_case_table): Update callers.
20124
20125 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20126
20127 * keymap.c (struct accessible_keymaps_data)
20128 (struct where_is_internal_data): New structures.
20129 (accessible_keymaps_1, where_is_internal_1): Use them to change
20130 interface to adhere to the one used by map_keymap.
20131 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20132 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20133
20134 * keymap.h (map_keymap_function_t): More informative prototype.
20135
201362007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20137
20138 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20139 (looking_at_1): Don't change search_regs and last_thing_searched
20140 if `inhibit-changing-match-data' is non-nil.
20141 (string_match_1, search_buffer, set_search_regs): Likewise.
20142 (syms_of_search): Add Lisp level definition for
20143 `inhibit-changing-match-data' and set it to nil.
20144 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20145 start and end of the match, instead of using values in search_regs.
20146
201472007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20148
20149 * minibuf.c (Fcompleting_read): New value `confirm-only'
20150 for `require-match'.
20151
201522007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20153
20154 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20155 part of the 2007-06-27 change to syms_of_fileio.
20156
201572007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20158
20159 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20160 Check WINDOWP before using XWINDOW. Consolidate return statements.
20161
201622007-06-27 Richard Stallman <rms@gnu.org>
20163
20164 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20165
201662007-06-27 Juanma Barranquero <lekktu@gmail.com>
20167
20168 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20169
201702007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20171
20172 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20173 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20174 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20175 (_free_internal, memalign): Use them.
20176 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20177 Initialize to PTHREAD_MUTEX_INITIALIZER.
20178 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20179 (morecore_nolock): Rename from morecore. All uses changed.
20180 Use only nolock versions of internal allocation functions.
20181 (_malloc_internal_nolock, _realloc_internal_nolock)
20182 (_free_internal_nolock): New functions created from
20183 _malloc_internal, _realloc_internal, and _free_internal.
20184 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20185 Copy hook value to automatic variable before its use.
20186 (memalign): Copy hook value to automatic variable before its use.
20187
201882007-06-26 Kenichi Handa <handa@m17n.org>
20189
20190 * coding.c (Ffind_operation_coding_system): Docstring improved.
20191 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20192
201932007-06-25 David Kastrup <dak@gnu.org>
20194
20195 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20196 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20197 cater for additional parameter.
20198
20199 * keymap.h: Adjust number of parameters to `current-active-maps'.
20200
20201 * doc.c (Fsubstitute_command_keys): Adjust call of
20202 `current-active-maps'.
20203
202042007-06-25 David Kastrup <dak@gnu.org>
20205
20206 * callint.c (Fcall_interactively): Make the parsing of interactive
20207 specs somewhat more readable.
20208
202092007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20210
20211 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20212 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20213 if extended background has already been filled.
20214
202152007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20216
20217 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20218 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20219
20220 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20221 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20222 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20223 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20224 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20225 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20226 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20227 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20228 Run timers during dialog popup.
20229 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20230
202312007-06-21 Jason Rumney <jasonr@gnu.org>
20232
20233 * image.c (convert_mono_to_color_image): Swap fore and background.
20234
202352007-06-20 Jason Rumney <jasonr@gnu.org>
20236
20237 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20238 (w32_free_bdf_font): Unmap memory not handle.
20239
202402007-06-20 Sam Steingold <sds@gnu.org>
20241
20242 * gmalloc.c (__morecore): Fix the declaration to comply with the
20243 definition.
20244
202452007-06-20 Juanma Barranquero <lekktu@gmail.com>
20246
20247 * w32term.c (w32_delete_display): Remove leftover declaration.
20248 (w32_define_cursor, w32_initialize): Make static.
20249
20250 * w32.c (_wsa_errlist): Fix typo in error message.
20251 (init_environment): Ignore any environment variable from the
20252 registry having a null value.
20253
202542007-06-20 Glenn Morris <rgm@gnu.org>
20255
20256 * Makefile.in (LIBGIF): Default to -lgif.
20257
202582007-06-17 Jason Rumney <jasonr@gnu.org>
20259
20260 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20261 unicode strings.
20262
202632007-06-16 Juanma Barranquero <lekktu@gmail.com>
20264
20265 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20266 Fix typo in docstring.
20267
202682007-06-16 Eli Zaretskii <eliz@gnu.org>
20269
20270 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20271 and their keybindings.
20272
202732007-06-15 Chong Yidong <cyd@stupidchicken.com>
20274
20275 * composite.c (update_compositions): Fix last fix.
20276
202772007-06-14 Jason Rumney <jasonr@gnu.org>
20278
20279 * w32.c (get_process_times_fn): New function pointer.
20280 (globals_of_w32): Intialize it if present in kernel32.dll.
20281 (w32_get_internal_run_time): New function.
20282
20283 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20284
202852007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20286
20287 * composite.c (update_compositions): Check the validness of
20288 compositions.
20289
202902007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20291
20292 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20293 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20294
20295 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20296 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20297
20298 * macgui.h (USE_MAC_TOOLBAR): New define.
20299
20300 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20301 Return immediately unless popup is activated.
20302
20303 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20304 background to scroll bar gap.
20305 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20306 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20307 scroll bars on frame edge. Check fringe background extension.
20308 Don't clear extended fringe background area.
20309 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20310 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20311 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20312 [USE_MAC_TOOLBAR]: New macros.
20313 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20314 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20315 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20316 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20317 [USE_MAC_TOOLBAR]: New functions.
20318 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20319 manually if previous repositioning has failed.
20320 (mac_handle_keyboard_event): Use precomputed event kind.
20321 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20322 as tool bar item click. Handle mouse movement over tool bar items.
20323
20324 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20325 toolbar_win_gravity.
20326 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20327 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20328 Add externs.
20329
20330 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20331 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20332
203332007-06-14 Chong Yidong <cyd@stupidchicken.com>
20334
20335 * image.c (search_image_cache): Remove unused variable.
20336
203372007-06-13 Chong Yidong <cyd@stupidchicken.com>
20338
20339 * xfns.c, xmenu.c: Link to xaw3d if available.
20340
203412007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20342
20343 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20344 frame_foreground and frame_background.
20345
20346 * image.c (lookup_image): Save frame foreground and background colors.
20347 (search_image_cache): Check if saved and current frame colors match.
20348
203492007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20350
20351 * regex.c (regex_compile): Remove the `regnum' counter.
20352 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20353
203542007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20355
20356 * term.c: Include intervals.h to declare Fget_text_property.
20357
203582007-06-10 Jason Rumney <jasonr@gnu.org>
20359
20360 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20361
203622007-06-08 Juanma Barranquero <lekktu@gmail.com>
20363
20364 * callint.c (Fcall_interactively):
20365 * editfns.c (Fdelete_and_extract_region):
20366 * fileio.c (Fread_file_name):
20367 * fns.c (Fmapconcat):
20368 * keyboard.c (cmd_error_internal):
20369 * keymap.c (Fkey_description):
20370 * lread.c (openp):
20371 * minibuf.c (read_minibuf):
20372 * search.c (wordify):
20373 * sunfns.c (sel_read):
20374 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20375 * xfns.c (x_default_scroll_bar_color_parameter):
20376 * xmenu.c (menu_help_callback):
20377 * xselect.c (Fx_get_atom_name):
20378 * xterm.c (x_term_init): Use empty_unibyte_string.
20379
203802007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20381
20382 * alloc.c (init_strings): Initialize canonical empty strings.
20383 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20384 canonical empty string when the requested size is 0.
20385
20386 * emacs.c (empty_unibyte_string): Rename from empty_string.
20387 (empty_multibyte_string): New canonical empty string.
20388 (syms_of_emacs): Don't initialize empty_string.
20389
20390 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20391 string, if appropriate.
20392 (empty_unibyte_string, empty_multibyte_string): New externs.
20393 (empty_string): Remove extern.
20394
20395 * lread.c (syms_of_lread): Use empty_unibyte_string.
20396
203972007-06-07 Jason Rumney <jasonr@gnu.org>
20398
20399 * s/ms-w32.h: Don't define HAVE_TZNAME.
20400
20401 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20402
204032007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20404
20405 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20406
20407 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20408 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20409
20410 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20411 Don't call next handler.
20412 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20413 Remove argument. Install handler to application.
20414 (set_frame_menubar): Don't change deep_p.
20415 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20416 FRAME_OUTER_TO_INNER_DIFF_Y.
20417 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20418 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20419 [HAVE_DIALOGS]: New macros.
20420 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20421 Use them.
20422 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20423
20424 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20425 init_service_handler. All callers changed. Return OSStatus value.
20426
20427 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20428 All callers changed so as not to call SetPortWindowPort.
20429 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20430 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20431 mac_draw_string_common.
20432 (mac_draw_image_string_qd): Likewise.
20433 (mac_draw_string_common): Use them. Add INLINE.
20434 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20435 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20436 GetGlobalMouse.
20437 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20438 and FRAME_OUTER_TO_INNER_DIFF_Y.
20439 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20440 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20441 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20442 repositioning window to mac_handle_window_event.
20443 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20444 saving window location to mac_handle_window_event
20445 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20446 (install_menu_target_item_handler): Remove argument in extern.
20447 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20448 Also accept command events.
20449 (do_keystroke): New function created from XTread_socket.
20450 (init_command_handler): Remove functions.
20451 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20452 and save window location by kEventWindowShowing and kEventWindowHiding
20453 handlers here. Don't call next handler for window state change and
20454 focus events.
20455 (mac_handle_application_event, mac_handle_keyboard_event)
20456 [TARGET_API_MAC_CARBON]: New functions.
20457 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20458 kEventWindowShowing and kEventWindowHiding events. Move installation
20459 of mouse, font, text input and menu target item handlers to
20460 install_application_handler.
20461 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20462 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20463 New function.
20464 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20465 Register it.
20466 (XTread_socket) [TARGET_API_MAC_CARBON]:
20467 Consolidate SendEventToEventTarget calls.
20468 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20469 Move application activation handler to mac_handle_application_event.
20470 Move keyboard handler to mac_handle_keyboard_event.
20471 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20472 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20473 init_command_handler. Call install_application_handler.
20474
20475 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20476 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20477
204782007-06-07 Glenn Morris <rgm@gnu.org>
20479
20480 * emacs.c (main): Use `emacs-copyright' in --version output.
20481
204822007-06-06 Chong Yidong <cyd@stupidchicken.com>
20483
20484 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20485
204862007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20487
20488 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20489
20490 * macgui.h: Replace WindowPtr with WindowRef.
20491
20492 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20493 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20494 Replace ControlHandle with ControlRef.
20495 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20496
20497 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20498 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20499 Replace ControlHandle with ControlRef.
20500 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20501 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20502
20503 * macterm.h (struct scroll_bar): Rename member control_handle_low
20504 and control_handle_high to control_ref_low and control_ref_high.
20505 All uses changed.
20506 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20507 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20508 respectively. All uses changed.
20509 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20510 (install_window_handler, remove_window_handler): Replace WindowPtr
20511 with WindowRef in externs.
20512
205132007-06-05 Juanma Barranquero <lekktu@gmail.com>
20514
20515 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20516
205172007-06-03 Nick Roberts <nickrob@snap.net.nz>
20518
20519 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20520
20521 * frame.c (Fmouse_position, Fmouse_pixel_position):
20522 Condition on HAVE_GPM too.
20523
20524 * term.c (term_mouse_highlight): Remove unused variables.
20525 (Fterm_open_connection): Set gpm_zerobased to 1.
20526 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20527 Use zero based co-ordinates.
20528 (handle_one_term_event): Report a drag as mouse movement too.
20529
20530 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20531
205322007-06-03 Chong Yidong <cyd@stupidchicken.com>
20533
20534 * image.c (search_image_cache): New function. Require background
20535 color match if background color is unspecified in the image spec.
20536 (uncache_image, lookup_image): Use it.
20537
205382007-06-01 Juanma Barranquero <lekktu@gmail.com>
20539
20540 * window.c (Fshrink_window): Reflow docstring.
20541
205422007-06-02 Chong Yidong <cyd@stupidchicken.com>
20543
20544 * Version 22.1 released.
20545
205462007-06-01 Richard Stallman <rms@gnu.org>
20547
20548 * xfns.c (x_encode_text): Add GCPRO.
20549
205502007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20551
20552 * xfns.c (x_set_name_internal): Save encoded name before
20553 x_encode_text in case string data is relocated.
20554
205552007-05-31 Richard Stallman <rms@gnu.org>
20556
20557 * buffer.c (syms_of_buffer): Doc fix.
20558
205592007-05-30 Nick Roberts <nickrob@snap.net.nz>
20560
20561 * sysdep.c (init_sys_modes): Add rather than replace with
20562 O_NONBLOCK.
20563
20564 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20565 term_mouse_moveto.
20566
20567 * termhooks.h (term_mouse_moveto): New extern.
20568
20569 * term.c (mouse_face_window): Rename...
20570 (Qmouse_face_window): ...to this.
20571 (term_show_mouse_face, term_clear_mouse_face)
20572 (term_mouse_highlight): Use Qmouse_face_window.
20573 (term_mouse_moveto): New function.
20574 (term_mouse_position): Make it work.
20575 (syms_of_term): Uncomment assignment to mouse_position_hook.
20576 Staticpro Qmouse_face_window.
20577
205782007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20579
20580 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20581 around current_column call.
20582
205832007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20584
20585 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20586 * xdisp.c (next_element_from_buffer):
20587 * window.c (delete_window):
20588 * term.c (term_mouse_highlight):
20589 * msdos.c (getdefdir):
20590 * macterm.c (mac_create_bitmap_from_bitmap_data)
20591 (init_font_name_table):
20592 * fns.c (Fsxhash):
20593 * data.c (Fmake_local_variable):
20594 * ccl.c (ccl_driver): Likewise.
20595
205962007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20597
20598 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20599 Call mac_wakeup_from_rne on window size change.
20600
206012007-05-25 Chong Yidong <cyd@stupidchicken.com>
20602
20603 * image.c (uncache_image): Fix typo.
20604
206052007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20606
20607 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20608
206092007-05-22 Richard Stallman <rms@gnu.org>
20610
20611 * xterm.c (x_connection_closed): Remove NO_RETURN.
20612
206132007-05-22 Martin Rudalics <rudalics@gmx.at>
20614
20615 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20616
206172007-05-21 Chong Yidong <cyd@stupidchicken.com>
20618
20619 * image.c (uncache_image): New function.
20620 (Fimage_refresh): New function.
20621
206222007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20623
20624 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20625
206262007-05-20 Nick Roberts <nickrob@snap.net.nz>
20627
20628 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20629 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20630
206312007-05-20 Nick Roberts <nickrob@snap.net.nz>
20632
20633 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20634 conditional on [HAVE_GPM_H].
20635
206362007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20637
20638 * syntax.c (skip_chars): Update syntax-table only after we checked that
20639 the new location is valid.
20640
206412007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20642
20643 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20644 mac_get_window_bounds.
20645
206462007-05-20 Nick Roberts <nickrob@snap.net.nz>
20647
20648 * Makefile.in (LIBGPM): Allow it to be set from configure.
20649 If set then link Emacs with it.
20650
20651 * config.in: Regenerate.
20652
20653 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20654 New externs.
20655
20656 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20657 Include gpm.h.
20658 (handle_one_term_event, term_gpm): New externs.
20659
20660 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20661 and allow it to be interrupted by SIGIO.
20662
20663 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20664 (wait_reading_process_output): Wait on gpm_fd too.
20665 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20666 (add_gpm_wait_descriptor_called_flag): New variable.
20667 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20668
20669 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20670 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20671 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20672 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20673 (make_lispy_event): Add case GPM_CLICK_EVENT.
20674 (read_avail_input): Handle mouse input.
20675
20676 * term.c (write_glyphs_with_face): New function.
20677 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20678 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20679 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20680 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20681 (last_mouse_x, last_mouse_y): New variables.
20682 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20683 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20684 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20685 (Fterm_close_connection): New functions.
20686 (term_init): Initialise mouse_face_window.
20687
206882007-05-19 Chong Yidong <cyd@stupidchicken.com>
20689
20690 * xdisp.c (redisplay_window): If first window line is a
20691 continuation line, recompute the new window start instead of
20692 recentering.
20693
206942007-05-18 Glenn Morris <rgm@gnu.org>
20695
20696 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20697 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20698
206992007-05-17 Glenn Morris <rgm@gnu.org>
20700
20701 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20702
207032007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20704
20705 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20706 dead key repeat and up events.
20707
207082007-05-14 Chong Yidong <cyd@stupidchicken.com>
20709
20710 * image.c (pbm_load): Check image size for monochrome pbm.
20711
207122007-05-13 Chong Yidong <cyd@stupidchicken.com>
20713
20714 * xterm.c (XTread_socket): Revert last change.
20715
207162007-05-12 Chong Yidong <cyd@stupidchicken.com>
20717
20718 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20719
20720 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20721
207222007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20723
20724 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20725 mixup (YAILOM).
20726
207272007-05-07 Andreas Schwab <schwab@suse.de>
20728
20729 * keymap.c (Flookup_key): Fix typo in last change.
20730
207312007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20732
20733 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20734 mapping for unibyte strings.
20735
207362007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20737
20738 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20739 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20740
207412007-04-29 Richard Stallman <rms@gnu.org>
20742
20743 * insdel.c (replace_range): For undo, record insertion first.
20744
207452007-04-29 Andreas Schwab <schwab@suse.de>
20746
20747 * lisp.h (VECSIZE): Use OFFSETOF.
20748
207492007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20750
20751 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20752 disabled lines.
20753
207542007-04-28 Richard Stallman <rms@gnu.org>
20755
20756 * lread.c (read_escape): In a string, \s is always space.
20757
207582007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20759
20760 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20761
20762 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20763 submenu for menu bar items.
20764
20765See ChangeLog.10 for earlier changes.
20766
20767;; Local Variables:
20768;; coding: utf-8
20769;; add-log-time-zone-rule: t
aac0c6e3
MR
20770;; End:
20771
76b6f707 20772 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20773
20774 This file is part of GNU Emacs.
20775
20776 GNU Emacs is free software: you can redistribute it and/or modify
20777 it under the terms of the GNU General Public License as published by
20778 the Free Software Foundation, either version 3 of the License, or
20779 (at your option) any later version.
20780
20781 GNU Emacs is distributed in the hope that it will be useful,
20782 but WITHOUT ANY WARRANTY; without even the implied warranty of
20783 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20784 GNU General Public License for more details.
20785
20786 You should have received a copy of the GNU General Public License
20787 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20788
20789;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40